From 350ccbbbf48adf255adf6e369662c7a1c161fb5b Mon Sep 17 00:00:00 2001 From: jitendra Date: Mon, 1 Nov 2021 21:06:09 +0530 Subject: [PATCH] Updated changelog --- .env.example | 2 +- CHANGELOG for v1.x.x.md | 262 ++++++++++++++++++ .../Webkul/UI/publishable/assets/js/ui.js | 2 +- .../UI/publishable/assets/mix-manifest.json | 2 +- 4 files changed, 265 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 321af69ba..3d67d2443 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ APP_NAME='Krayin CRM' APP_ENV=local -APP_VERSION=1.1.3 +APP_VERSION=1.2.0 APP_KEY= APP_DEBUG=true APP_URL=http://localhost diff --git a/CHANGELOG for v1.x.x.md b/CHANGELOG for v1.x.x.md index 937750355..671fd2418 100755 --- a/CHANGELOG for v1.x.x.md +++ b/CHANGELOG for v1.x.x.md @@ -1,3 +1,265 @@ +## **v1.2.0 (1st of November 2021)** + +* [feature] Pipeline feature implemented + +* [feature] Quick create option implemented + +* [feature] Brand new setting page implemented + + +* #138 [fixed] - fix column spacing in quotes inside the respective leads + +* #170 [fixed] - If admin Inactive any user who is logged in on CRM then the user should automatically logged out + +* #171 [fixed] - When admin/user logged in to their panel then the name of logged in user should be mention to the top right corner + +* #192 [fixed] - When we appying the filters to search leads . then the end date input should not take the date which is less then start date. + +* #196 [fixed] - When we creating Attributes after choosing select from type dropdown and options from options dropdown . Then Input Validation field should be disabled. + +* #204 [fixed] - When we creating activity and selecting date in 'To' input box which is less then 'From' date. Inside schedule label. then it should give an error. + +* #255 [fixed] - When the user trying to create/edit Activity. then there should be a suggestion in placeholder of Participants input field for search Participants. + +* #265 [fixed] - The user or person should not be add into participants which is already added as a participants. + +* #277 [fixed] - When we trying to delete any lead. then There should be a confirm box before delete lead. + +* #280 [fixed] - Filters should be visible to filter the leads. + +* #281 [fixed] - When we are creating Note. Then ' Note created successfully ' should be show in message box. + +* #282 [fixed] - There should be a scrollbar to scroll the leads inside lead tab. + +* #283 [fixed] - The date filter should work properly in leads section + +* #285 [fixed] - When we are deleting any Note. then there should be a confirm box before delete Note + +* #286 [fixed] - When we are removing the search keyword from the search box inside lead. then there should be visible all leads + +* #287 [fixed] - When we are adding a person, then there should be a suggestion in organization input field + +* #288 [fixed] - When we are trying to delete multiple persons at a time, then there should be a confirm box before delete person + +* #289 [fixed] - When we are trying to delete multiple Leads at a time, then there should be a confirm box before delete the Lead. + +* #296 [fixed] - When we are deleting any Note. Then ' Note deleted successfully ' should be show in message box + +* #297 [fixed] - Search box should be work properly. when we are searching any attribute + +* #298 [fixed] - The status is not updating of login user and showing 'User updated successfully'. + +* #299 [fixed] - Search box should be work properly. when we are searching any user + +* #300 [fixed] - When we are creating the lead then The color should be change of the tab after filled all the required fields + +* #301 [fixed] - Search box should be work properly. when we are searching any Quote + +* #305 [fixed] - The Warning message should be show, if the user adding same product again and again in quote items. + +* #306 [fixed] - There should be a option to select date in created at' input field, if user want to filter activities. + +* #309 [fixed] - When we applying filters to search activities . then filters should be work properly to search activities + +* #313 [fixed] - There should be a option to delete multiple activites at a time + +* #318 [fixed] - There should be a option to select date in created date input field, if user want to filter the inbox mails. + +* #319 [fixed] - There should be a warning message, if user creating activities for less then current schedule time + +* #321 [fixed] - The filter should be work properly, when user filter activity by lead name. + +* #324 [fixed] - Popup box should not show until we select any action + +* #325 [fixed] - The inbox mail detail should be visible, if we want to view any inbox mail. + +* #334 [fixed] - Page should be redirect to inbox. after delete mail with success message. + +* #337 [fixed] - Page should be redirect to inbox. after send mail + +* #338 [fixed] - HTML code should not be visible in attachment place. + +* #341 [fixed] - Search box should be work properly. when we are searching any Lead + +* #351 [fixed] - Fix column spacing in Inbox inside the mail tab + +* #352 [fixed] - There should not be any exception. if user want to filter inbox mail. + +* #354 [fixed] - The date filter should be work properly in Activity tab. + +* #361 [fixed] - There should be a submit button if we want to filter dashboard data using date + +* #363 [fixed] - Search box should be work properly. when we are searching any Organizations + +* #364 [fixed] - There should not be any error if we are adding new organization. + +* #367 [fixed] - The filter should be work properly, when user trying to filter Attributes by type + +* #368 [fixed] - There should be a option to edit the tag + +* #369 [fixed] - The filters should be work properly, if user trying to filter tags. + +* #372 [fixed] - There should be a option to delete the multiple tags at a time. + +* #377 [fixed] - Date input fields should be cleared, after click on cross icon. + +* #378 [fixed] - The details of contact person should be fill automatically. + +* #380 [fixed] - The person should be received mail , after delete person. if we have create a workflow for the same. + +* #381 [fixed] - The Created by field should be visible only one time in activity table. + +* #384 [fixed] - The default image should be show in product section. + +* #386 [fixed] - There should be asterisk icon in Quote item. + +* #396 [fixed] - The contact number field should not take the blank value. + +* #397 [fixed] - The input fields should be shown to add product + +* #398 [fixed] - Filters should be work properly in quote. + +* #399 [fixed] - There should not be an exception when we are trying to view inbox mail. + +* #400 [fixed] - The mails should be deleted when the user trying to delete multiple emails at a time. + +* #402 [fixed] - The user should have the option to compose mail. + +* #403 [fixed] - The person attributes should be shown inside the placeholder. + +* #404 [fixed] - The filters should be work properly in the activity section. + +* #407 [fixed] - The filters should work properly in the activity section. + +* #410 [fixed] - Filters should be work properly in the activity section + +* #411 [fixed] - There should not be an exception when the user trying to edit any role. + +* #412 [fixed] - The page should not be asked to choose file when we are trying to view draft mails + +* #413 [fixed] - There should not be an exception when user trying to create a lead. + +* #415 [fixed] - There should not be a blank option in the activity type dropdown when the user is trying to create an activity. + +* #416 [fixed] - There should be a dropdown instead of an input box when the user trying to filter activities by type. + +* #419 [fixed] - There should be a suggestion for users to search for products. + +* #420 [fixed] - There should be a warning message if the user trying to delete the leads when the user has no permission to delete the leads. + +* #422 [fixed] - There should be an option to create tags if the user has permission to create a tag. + +* #426 [fixed] - The mails should be visible in the inbox. + +* #427 [fixed] - The ' To ' field should not take a blank value when the user trying to compose a mail. + +* #432 [fixed] - The search box should not take the blank value. + +* #433 [fixed] - There should be a dropdown instead of the input box when the user trying to filter the pipeline by " is Default" . + +* #434 [fixed] - The person id should be visible in the person table. + +* #436 [fixed] - Filters should work properly in the Attributes section. + +* #441 [fixed] - The calculation should be correct when the user trying to create the quote. + +* #447 [fixed] - The delete icon should not be visible when the user is adding only one product in the quote item. + +* #448 [fixed] - The Leads should be visible in the lead's table. + +* #452 [fixed] - There should be a field of created date in the quote table. + +* #459 [fixed] - At least one pipeline should be the default pipeline. + +* #460 [fixed] - When we are trying to create a new user, then it should not give a warning message. + +* #465 [fixed] - There should be ' Select user ' instead of 'User' in the Leads filter. + +* #471 [fixed] - There should be an error if the user trying to create multiple sources with the same name. + +* #479 [fixed] - There should a warning message when the user trying to enter the character in the quantity input field + +* #481 [fixed] - There should a warning message when the user trying to enter the character in the Price and discount input field. + +* #482 [fixed] - Date inputs should be blank when the user is removing the date filters. + +* #484 [fixed] - When the user trying to see **Leads Over Time** leads from the dashboard, then only **Leads Over Time** leads should be visible on the leads table. + +* #485 [fixed] - When the user trying to add multiple-stage with the same name in the pipeline, then there should a warning message instead of an exception. + +* #488 [fixed] - When the user trying to click on submit button without selecting any action, then there should be a warning for select any action to perform. + +* #489 [fixed] - There should be a warning message if the user trying to add the same tag multiple times in a lead. + +* #492 [fixed] - There should be a warning message if the user trying to edit leads [by drag and drop] without permission. + +* #495 [fixed] - The user should not be able to edit leads without permission. + +* #498 [fixed] - There should be a success message after reply on mail. + +* #499 [fixed] - There should be an option to give permissions-related quotes to a role. + +* #500 [fixed] - The user should log out automatically if the user has no permission for any tab. + +* #504 [fixed] - There should be a warning message if the user is adding the same email and contact number multiple time + +* #505 [fixed] - The user should be redirected to the login page after deleting the self account. + +* #512 [fixed] - There should not be any exception when the user trying to view the lead. + +* #514 [fixed] - The user should not be able to select the date greater than today in the created date input field. + +* #530 [fixed] - The user should not be able to delete tags if the user has no permission for the same. + +* #531 [fixed] - The Add stage and Save as pipeline buttons should not be disabled when the user removing the duplicate stage + +* #534 [fixed] - The user should not be able to add a tag on a lead if the user has no permission for edit the lead. + +* #541 [fixed] - 'Expected Close Date' should not be less than Created date + +* #542 [fixed] - There should not be any exception when the user tries to filter quotes by created date. + +* #543 [fixed] - The numerator should not be greater than the denominator in the dashboard. + +* #544 [fixed] - There should be Yes or No' in 'Is Done dropdown' when the user trying to filter activity by 'is done' filter. + +* #545 [fixed] - There should be an option to select date instead of input type text. + +* #568 [fixed] - When the admin trying to delete self account the message should be correct + +* #569 [fixed] - There should be a success message, When the admin tries to delete any other user. + +* #571 [fixed] - The user should not be able to edit another user without permission. + +* #577 [fixed] - The user should not be able to access the 'sent, trash, inbox' pages without permission. + +* #585 [fixed] - The Setting option should be visible if the user has permission for the same. + +* #586 [fixed] - There should not be any exception when the user is trying to compose mail. + +* #589 [fixed] - When the user is trying to delete default attributes, then the message should be correct. + +* #590 [fixed] - The user should not be able to view the quotes if the user has no permission for the same. + +* #592 [fixed] - The user should not be able to view the leads if the user has no permission for the same. + +* #599 [fixed] - There should be an option to filter quotes 'by is expired' + +* #600 [fixed] - The date filter should work properly when the user is trying to filter the leads. + +* #601 [fixed] - The rotting date should be correct when the user is trying to view any lead. + +* #606 [fixed] - Filters should work properly. when the user is trying to filter the activity. + +* #607 [fixed] - There should a warning message if the user is trying to add the same stage multiple times. + +* #619 [fixed] - The user should not be able to view the admin's data if the user has group permission. + +* #620 [fixed] - The Link Lead option should work properly on mail section. + + + + ## **v1.1.3 (23rd of September 2021)** * [feature] Refactored data grid code diff --git a/packages/Webkul/UI/publishable/assets/js/ui.js b/packages/Webkul/UI/publishable/assets/js/ui.js index 2f44ac795..8de579f5b 100644 --- a/packages/Webkul/UI/publishable/assets/js/ui.js +++ b/packages/Webkul/UI/publishable/assets/js/ui.js @@ -1,2 +1,2 @@ /*! For license information please see ui.js.LICENSE.txt */ -(()=>{var e,t={26981:(e,t,n)=>{"use strict";n(11983);var r,a=(r=n(40115))&&r.__esModule?r:{default:r};a.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),a.default._babelPolyfill=!0},11983:(e,t,n)=>{"use strict";n(16266),n(10990),n(70911),n(14160),n(6197),n(96728),n(54039),n(93568),n(78051),n(38250),n(15434),n(54952),n(96337),n(35666)},280:(e,t,n)=>{"use strict";const r={filters:{},tableData:{records:{data:{}},columns:[],actions:[],tabFilters:[],massactions:[],paginationData:{has_pages:!1}},allSelected:!1,sidebarFilter:!1,selectedTableRows:[],filterData:{deal_amount_range:{label:"Deal Amount Range",type:"integer_range",values:["1000","50000"]},contact_person:{label:"Contact Person",type:"add",placeholder:"Add Person",input_field_placeholder:"Enter Person",values:["Shubham","Webkul"]},date_range:{label:"Date Range",type:"date_range",values:["2021-04-02","2021-04-03"]},status:{label:"Status",type:"dropdown",placeholder:"Select Status",values:["Won","Lost"],options:["Won","Lost"]},phone_number:{label:"Phone",type:"add",placeholder:"Add Number",input_field_placeholder:"Enter Number",values:["987654321","987654321"]}},customTabFilter:!1};const a={toggleSidebarFilter:function(e){var t=e.state;t.sidebarFilter=!t.sidebarFilter,$(".sidebar-filter").toggleClass("show")},updateFilterValues:function(e,t){(0,e.commit)("UPDATE_FILTER_VALUES",t)},selectAllRows:function(e,t){(0,e.commit)("SELECT_ALL_ROWS",t)},selectTableRow:function(e,t){(0,e.commit)("SELECT_TABLE_ROW",t)},updateTableData:function(e,t){e.state.tableData=t}};const i={UPDATE_FILTER_VALUES:function(e,t){var n,r=(null==t?void 0:t.key)||null;if(r)for(var a in e.tableData.columns)a==r&&(r=e.tableData.columns[a].index,e.tableData.columns[a].values=t.values);EventBus.$emit("updateFilter",{key:r,value:null==t||null===(n=t.values)||void 0===n?void 0:n.toString(),cond:(null==t?void 0:t.condition)||"in"})},SELECT_ALL_ROWS:function(e,t){t&&e.selectedTableRows.length>0?(e.selectedTableRows=[],e.allSelected=!1):(e.selectedTableRows=[],e.allSelected=t||!e.allSelected,e.tableData.records.data.forEach((function(t){e.allSelected&&e.selectedTableRows.push(t.id)})))},SELECT_TABLE_ROW:function(e,t){var n=!1;e.selectedTableRows.forEach((function(r,a){r==t&&(n=!0,e.selectedTableRows.splice(a,1))})),n||e.selectedTableRows.push(t),e.allSelected=e.tableData.records.data.length==e.selectedTableRows.length}};const o=new(n(20629).ZP.Store)({state:r,actions:a,mutations:i});function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){for(var n=0;n=0)return 1;return 0}();var h=u&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),c))}};function f(e){return e&&"[object Function]"==={}.toString.call(e)}function m(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function p(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function _(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=m(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:_(p(e))}function g(e){return e&&e.referenceNode?e.referenceNode:e}var v=u&&!(!window.MSInputMethodContext||!document.documentMode),y=u&&/MSIE 10/.test(navigator.userAgent);function b(e){return 11===e?v:10===e?y:v||y}function M(e){if(!e)return document.documentElement;for(var t=b(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===m(n,"position")?M(n):n:e?e.ownerDocument.documentElement:document.documentElement}function w(e){return null!==e.parentNode?w(e.parentNode):e}function k(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(a,0);var o,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(a))return"BODY"===(s=(o=l).nodeName)||"HTML"!==s&&M(o.firstElementChild)!==o?M(l):l;var d=w(e);return d.host?k(d.host,t):k(e,w(t).host)}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var a=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||a;return i[n]}return e[n]}function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=L(t,"top"),a=L(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=a*i,e.right+=a*i,e}function D(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],b(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function S(e){var t=e.body,n=e.documentElement,r=b(10)&&getComputedStyle(n);return{height:Y("Height",t,n,r),width:Y("Width",t,n,r)}}var T=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=b(10),a="HTML"===t.nodeName,i=H(e),o=H(t),s=_(e),l=m(t),d=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&a&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var c=P({top:i.top-o.top-d,left:i.left-o.left-u,width:i.width,height:i.height});if(c.marginTop=0,c.marginLeft=0,!r&&a){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);c.top-=d-h,c.bottom-=d-h,c.left-=u-f,c.right-=u-f,c.marginTop=h,c.marginLeft=f}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(c=x(c,t)),c}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=A(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:L(n),s=t?0:L(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:a,height:i};return P(l)}function F(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===m(e,"position"))return!0;var n=p(e);return!!n&&F(n)}function N(e){if(!e||!e.parentElement||b())return document.documentElement;for(var t=e.parentElement;t&&"none"===m(t,"transform");)t=t.parentElement;return t||document.documentElement}function I(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},o=a?N(e):k(e,g(t));if("viewport"===r)i=E(o,a);else{var s=void 0;"scrollParent"===r?"BODY"===(s=_(p(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=A(s,o,a);if("HTML"!==s.nodeName||F(o))i=l;else{var d=S(e.ownerDocument),u=d.height,c=d.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=c+l.left}}var h="number"==typeof(n=n||0);return i.left+=h?n:n.left||0,i.top+=h?n:n.top||0,i.right-=h?n:n.right||0,i.bottom-=h?n:n.bottom||0,i}function R(e){return e.width*e.height}function W(e,t,n,r,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=I(n,r,i,a),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map((function(e){return C({key:e},s[e],{area:R(s[e])})})).sort((function(e,t){return t.area-e.area})),d=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=d.length>0?d[0].key:l[0].key,c=e.split("-")[1];return u+(c?"-"+c:"")}function z(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=r?N(t):k(t,g(n));return A(n,a,r)}function V(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function B(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function U(e,t,n){n=n.split("-")[0];var r=V(e),a={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),o=i?"top":"left",s=i?"left":"top",l=i?"height":"width",d=i?"width":"height";return a[o]=t[o]+t[l]/2-r[l]/2,a[s]=n===s?t[s]-r[d]:t[B(s)],a}function G(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function J(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=G(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&f(n)&&(t.offsets.popper=P(t.offsets.popper),t.offsets.reference=P(t.offsets.reference),t=n(t,e))})),t}function Z(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=z(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=W(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=U(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=J(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function q(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function K(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=de.indexOf(e),r=de.slice(n+1).concat(de.slice(0,n));return t?r.reverse():r}var ce="flip",he="clockwise",fe="counterclockwise";function me(e,t,n,r){var a=[0,0],i=-1!==["right","left"].indexOf(r),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(G(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return d=d.map((function(e,r){var a=(1===r?!i:i)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],o=a[2];if(!i)return e;if(0===o.indexOf("%")){return P("%p"===o?n:r)[t]/100*i}if("vh"===o||"vw"===o)return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,a,t,n)}))})),d.forEach((function(e,t){e.forEach((function(n,r){ae(n)&&(a[t]+=n*("-"===e[r-1]?-1:1))}))})),a}var pe={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,i=a.reference,o=a.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",d=s?"width":"height",u={start:j({},l,i[l]),end:j({},l,i[l]+i[d]-o[d])};e.offsets.popper=C({},o,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,a=e.offsets,i=a.popper,o=a.reference,s=r.split("-")[0],l=void 0;return l=ae(+n)?[+n,0]:me(n,i,o,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||M(e.instance.popper);e.instance.reference===n&&(n=M(n));var r=K("transform"),a=e.instance.popper.style,i=a.top,o=a.left,s=a[r];a.top="",a.left="",a[r]="";var l=I(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=i,a.left=o,a[r]=s,t.boundaries=l;var d=t.priority,u=e.offsets.popper,c={primary:function(e){var n=u[e];return u[e]l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),j({},n,r)}};return d.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=C({},u,c[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],i=Math.floor,o=-1!==["top","bottom"].indexOf(a),s=o?"right":"bottom",l=o?"left":"top",d=o?"width":"height";return n[s]i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!se(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],i=e.offsets,o=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(a),d=l?"height":"width",u=l?"Top":"Left",c=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=V(r)[d];s[f]-po[f]&&(e.offsets.popper[c]+=s[c]+p-o[f]),e.offsets.popper=P(e.offsets.popper);var _=s[c]+s[d]/2-p/2,g=m(e.instance.popper),v=parseFloat(g["margin"+u]),y=parseFloat(g["border"+u+"Width"]),b=_-e.offsets.popper[c]-v-y;return b=Math.max(Math.min(o[d]-p,b),0),e.arrowElement=r,e.offsets.arrow=(j(n={},c,Math.round(b)),j(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(q(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=B(r),i=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case ce:o=[r,a];break;case he:o=ue(r);break;case fe:o=ue(r,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],a=B(r);var d=e.offsets.popper,u=e.offsets.reference,c=Math.floor,h="left"===r&&c(d.right)>c(u.left)||"right"===r&&c(d.left)c(u.top)||"bottom"===r&&c(d.top)c(n.right),p=c(d.top)c(n.bottom),g="left"===r&&f||"right"===r&&m||"top"===r&&p||"bottom"===r&&_,v=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(v&&"start"===i&&f||v&&"end"===i&&m||!v&&"start"===i&&p||!v&&"end"===i&&_),b=!!t.flipVariationsByContent&&(v&&"start"===i&&m||v&&"end"===i&&f||!v&&"start"===i&&_||!v&&"end"===i&&p),M=y||b;(h||g||M)&&(e.flipped=!0,(h||g)&&(r=o[l+1]),M&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=C({},e.offsets.popper,U(e.instance.popper,e.offsets.reference,e.placement)),e=J(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,a=r.popper,i=r.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return a[o?"left":"top"]=i[n]-(s?a[o?"width":"height"]:0),e.placement=B(t),e.offsets.popper=P(a),e}},hide:{order:800,enabled:!0,fn:function(e){if(!se(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=G(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};T(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=h(this.update.bind(this)),this.options=C({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(C({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=C({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return C({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&f(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return O(e,[{key:"update",value:function(){return Z.call(this)}},{key:"destroy",value:function(){return X.call(this)}},{key:"enableEventListeners",value:function(){return ne.call(this)}},{key:"disableEventListeners",value:function(){return re.call(this)}}]),e}();ge.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ge.placements=le,ge.Defaults=_e;const ve=ge;var ye,be=n(18446),Me=n.n(be);function we(){we.init||(we.init=!0,ye=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}function ke(e,t,n,r,a,i,o,s,l,d){"boolean"!=typeof o&&(l=s,s=o,o=!1);var u,c="function"==typeof n?n.options:n;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,a&&(c.functional=!0)),r&&(c._scopeId=r),i?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=u):t&&(u=o?function(e){t.call(this,d(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(c.functional){var h=c.render;c.render=function(e,t){return u.call(t),h(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return n}var Le={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;we(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()}));var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",ye&&this.$el.appendChild(t),t.data="about:blank",ye||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!ye&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},xe=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})};xe._withStripped=!0;var De=ke({render:xe,staticRenderFns:[]},undefined,Le,"data-v-8859cc6c",false,undefined,!1,void 0,void 0,void 0);var Ye={version:"1.0.1",install:function(e){e.component("resize-observer",De),e.component("ResizeObserver",De)}},Se=null;"undefined"!=typeof window?Se=window.Vue:void 0!==n.g&&(Se=n.g.Vue),Se&&Se.use(Ye);var Te=n(82492),Oe=n.n(Te),je=function(){};function Ce(e){return"string"==typeof e&&(e=e.split(" ")),e}function Pe(e,t){var n,r=Ce(t);n=e.className instanceof je?Ce(e.className.baseVal):Ce(e.className),r.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}function He(e,t){var n,r=Ce(t);n=e.className instanceof je?Ce(e.className.baseVal):Ce(e.className),r.forEach((function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}"undefined"!=typeof window&&(je=window.SVGAnimatedString);var Ae=!1;if("undefined"!=typeof window){Ae=!1;try{var Ee=Object.defineProperty({},"passive",{get:function(){Ae=!0}});window.addEventListener("test",null,Ee)}catch(e){}}function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t
',trigger:"hover focus",offset:0},Re=[],We=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"_events",[]),l(this,"_setTooltipNodeEvent",(function(e,t,n,a){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!r._tooltipNode.contains(i)&&(r._tooltipNode.addEventListener(e.type,(function n(i){var o=i.relatedreference||i.toElement||i.relatedTarget;r._tooltipNode.removeEventListener(e.type,n),t.contains(o)||r._scheduleHide(t,a.delay,a,i)})),!0)})),n=Ne(Ne({},Ie),n),t.jquery&&(t=t[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=t,this.options=n,this._isOpen=!1,this._init()}var t,n,r;return t=e,(n=[{key:"show",value:function(){this._show(this.reference,this.options)}},{key:"hide",value:function(){this._hide()}},{key:"dispose",value:function(){this._dispose()}},{key:"toggle",value:function(){return this._isOpen?this.hide():this.show()}},{key:"setClasses",value:function(e){this._classes=e}},{key:"setContent",value:function(e){this.options.title=e,this._tooltipNode&&this._setContent(e,this.options)}},{key:"setOptions",value:function(e){var t=!1,n=e&&e.classes||Xe.options.defaultClass;Me()(this._classes,n)||(this.setClasses(n),t=!0),e=Ge(e);var r=!1,a=!1;for(var i in this.options.offset===e.offset&&this.options.placement===e.placement||(r=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(a=!0),e)this.options[i]=e[i];if(this._tooltipNode)if(a){var o=this._isOpen;this.dispose(),this._init(),o&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var e="string"==typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf("manual"),e=e.filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})),this._setEventListeners(this.reference,e,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(e,t){var n=this,r=window.document.createElement("div");r.innerHTML=t.trim();var a=r.childNodes[0];return a.id=this.options.ariaId||"tooltip_".concat(Math.random().toString(36).substr(2,10)),a.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(a.addEventListener("mouseenter",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)})),a.addEventListener("click",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)}))),a}},{key:"_setContent",value:function(e,t){var n=this;this.asyncContent=!1,this._applyContent(e,t).then((function(){n.popperInstance&&n.popperInstance.update()}))}},{key:"_applyContent",value:function(e,t){var n=this;return new Promise((function(r,a){var i=t.html,o=n._tooltipNode;if(o){var s=o.querySelector(n.options.innerSelector);if(1===e.nodeType){if(i){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(e)}}else{if("function"==typeof e){var l=e();return void(l&&"function"==typeof l.then?(n.asyncContent=!0,t.loadingClass&&Pe(o,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),l.then((function(e){return t.loadingClass&&He(o,t.loadingClass),n._applyContent(e,t)})).then(r).catch(a)):n._applyContent(l,t).then(r).catch(a))}i?s.innerHTML=e:s.innerText=e}r()}}))}},{key:"_show",value:function(e,t){if(!t||"string"!=typeof t.container||document.querySelector(t.container)){clearTimeout(this._disposeTimer),delete(t=Object.assign({},t)).offset;var n=!0;this._tooltipNode&&(Pe(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(e,t);return n&&this._tooltipNode&&Pe(this._tooltipNode,this._classes),Pe(e,["v-tooltip-open"]),r}}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,Re.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(t.title,t),this;var r=e.getAttribute("title")||t.title;if(!r)return this;var a=this._create(e,t.template);this._tooltipNode=a,e.setAttribute("aria-describedby",a.id);var i=this._findContainer(t.container,e);this._append(a,i);var o=Ne(Ne({},t.popperOptions),{},{placement:t.placement});return o.modifiers=Ne(Ne({},o.modifiers),{},{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(o.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new ve(e,a,o),this._setContent(r,t),requestAnimationFrame((function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame((function(){n._isDisposed?n.dispose():n._isOpen&&a.setAttribute("aria-hidden","false")}))):n.dispose()})),this}},{key:"_noLongerOpen",value:function(){var e=Re.indexOf(this);-1!==e&&Re.splice(e,1)}},{key:"_hide",value:function(){var e=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var t=Xe.options.disposeTimeout;return null!==t&&(this._disposeTimer=setTimeout((function(){e._tooltipNode&&(e._tooltipNode.removeEventListener("mouseenter",e.hide),e._tooltipNode.removeEventListener("click",e.hide),e._removeTooltipNode())}),t)),He(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var e=this._tooltipNode.parentNode;e&&(e.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var e=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach((function(t){var n=t.func,r=t.event;e.reference.removeEventListener(r,n)})),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var r=this,a=[],i=[];t.forEach((function(e){switch(e){case"hover":a.push("mouseenter"),i.push("mouseleave"),r.options.hideOnTargetClick&&i.push("click");break;case"focus":a.push("focus"),i.push("blur"),r.options.hideOnTargetClick&&i.push("click");break;case"click":a.push("click"),i.push("click")}})),a.forEach((function(t){var a=function(t){!0!==r._isOpen&&(t.usedByTooltip=!0,r._scheduleShow(e,n.delay,n,t))};r._events.push({event:t,func:a}),e.addEventListener(t,a)})),i.forEach((function(t){var a=function(t){!0!==t.usedByTooltip&&r._scheduleHide(e,n.delay,n,t)};r._events.push({event:t,func:a}),e.addEventListener(t,a)}))}},{key:"_onDocumentTouch",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:"_scheduleShow",value:function(e,t,n){var r=this,a=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return r._show(e,n)}),a)}},{key:"_scheduleHide",value:function(e,t,n,r){var a=this,i=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==a._isOpen&&a._tooltipNode.ownerDocument.body.contains(a._tooltipNode)){if("mouseleave"===r.type&&a._setTooltipNodeEvent(r,e,t,n))return;a._hide(e,n)}}),i)}}])&&d(t.prototype,n),r&&d(t,r),e}();function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t
',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultOpenClass:"open",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function Ge(e){var t={placement:void 0!==e.placement?e.placement:Xe.options.defaultPlacement,delay:void 0!==e.delay?e.delay:Xe.options.defaultDelay,html:void 0!==e.html?e.html:Xe.options.defaultHtml,template:void 0!==e.template?e.template:Xe.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:Xe.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:Xe.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:Xe.options.defaultTrigger,offset:void 0!==e.offset?e.offset:Xe.options.defaultOffset,container:void 0!==e.container?e.container:Xe.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:Xe.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:Xe.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:Xe.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:Xe.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:Xe.options.defaultLoadingContent,popperOptions:Ve({},void 0!==e.popperOptions?e.popperOptions:Xe.options.defaultPopperOptions)};if(t.offset){var n=s(t.offset),r=t.offset;("number"===n||"string"===n&&-1===r.indexOf(","))&&(r="0, ".concat(r)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:r}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function Je(e,t){for(var n=e.placement,r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=Ze(t),a=void 0!==t.classes?t.classes:Xe.options.defaultClass,i=Ve({title:r},Ge(Ve(Ve({},"object"===s(t)?t:{}),{},{placement:Je(t,n)}))),o=e._tooltip=new We(e,i);o.setClasses(a),o._vueEl=e;var l=void 0!==t.targetClasses?t.targetClasses:Xe.options.defaultTargetClass;return e._tooltipTargetClasses=l,Pe(e,l),o}(e,n,a),void 0!==n.show&&n.show!==e._tooltipOldShow&&(e._tooltipOldShow=n.show,n.show?r.show():r.hide())):qe(e)}var Xe={options:Ue,bind:Ke,update:Ke,unbind:function(e){qe(e)}};function Qe(e){e.addEventListener("click",tt),e.addEventListener("touchstart",nt,!!Ae&&{passive:!0})}function et(e){e.removeEventListener("click",tt),e.removeEventListener("touchstart",nt),e.removeEventListener("touchend",rt),e.removeEventListener("touchcancel",at)}function tt(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function nt(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",rt),t.addEventListener("touchcancel",at)}}function rt(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function at(e){e.currentTarget.$_vclosepopover_touch=!1}var it={bind:function(e,t){var n=t.value,r=t.modifiers;e.$_closePopoverModifiers=r,(void 0===n||n)&&Qe(e)},update:function(e,t){var n=t.value,r=t.oldValue,a=t.modifiers;e.$_closePopoverModifiers=a,n!==r&&(void 0===n||n?Qe(e):et(e))},unbind:function(e){et(e)}};function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.event;t.skipDelay;var r=t.force,a=void 0!==r&&r;!a&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame((function(){e.$_beingShowed=!1}))},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay,this.$_scheduleHide(t),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var r=this.$_findContainer(this.container,t);if(!r)return void console.warn("No container for popover",this);r.appendChild(n),this.$_mounted=!0,this.isOpen=!1,this.popperInstance&&requestAnimationFrame((function(){e.hidden||(e.isOpen=!0)}))}if(!this.popperInstance){var a=st(st({},this.popperOptions),{},{placement:this.placement});if(a.modifiers=st(st({},a.modifiers),{},{arrow:st(st({},a.modifiers&&a.modifiers.arrow),{},{element:this.$refs.arrow})}),this.offset){var i=this.$_getOffset();a.modifiers.offset=st(st({},a.modifiers&&a.modifiers.offset),{},{offset:i})}this.boundariesElement&&(a.modifiers.preventOverflow=st(st({},a.modifiers&&a.modifiers.preventOverflow),{},{boundariesElement:this.boundariesElement})),this.popperInstance=new ve(t,n,a),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();!e.$_isDisposed&&e.popperInstance?(e.popperInstance.scheduleUpdate(),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();e.$_isDisposed?e.dispose():e.isOpen=!0}))):e.dispose()}))}var o=this.openGroup;if(o)for(var s,l=0;l1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout((function(){if(e.isOpen){if(t&&"mouseleave"===t.type)if(e.$_setTooltipNodeEvent(t))return;e.$_hide()}}),r)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,r=this.$refs.popover,a=e.relatedreference||e.toElement||e.relatedTarget;return!!r.contains(a)&&(r.addEventListener(e.type,(function a(i){var o=i.relatedreference||i.toElement||i.relatedTarget;r.removeEventListener(e.type,a),n.contains(o)||t.hide({event:i})})),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach((function(t){var n=t.func,r=t.event;e.removeEventListener(r,n)})),this.$_events=[]},$_updatePopper:function(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout((function(){t.$_preventOpen=!1}),300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function ft(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var r=ut[n];if(r.$refs.popover){var a=r.$refs.popover.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&a||r.autoHide&&!a)&&r.$_handleGlobalClose(e,t)}))}},r=0;r1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0;var r={};Oe()(r,Ue,n),vt.options=r,Xe.options=r,t.directive("tooltip",Xe),t.directive("close-popover",it),t.component("VPopover",gt)}},get enabled(){return $e.enabled},set enabled(e){$e.enabled=e}},yt=null;"undefined"!=typeof window?yt=window.Vue:void 0!==n.g&&(yt=n.g.Vue),yt&&yt.use(vt);const bt=vt;var Mt=n(27144),wt=n.n(Mt);n(25314);Vue.use(wt()),Vue.use(n(42513)),window.EventBus=new Vue,window.debounce=n(20863),bt.options.disposeTimeout=0,Vue.directive("tooltip",bt.VTooltip),Vue.directive("debounce",n(91722).Z),Vue.filter("formatDate",(function(e){if(e){var t=new Date(e);return"".concat(t.getDate()," ").concat(t.toLocaleString("default",{month:"short"})," ").concat(t.getFullYear()," ").concat(t.getHours(),":").concat(t.getMinutes())}})),Vue.filter("toFixed",(function(e,t){if(e)return parseFloat(e).toFixed(t||2)})),Vue.config.productionTip=!1,Vue.mixin({store:o,methods:{addFlashMessages:function(e){e.type=e.type||"success",window.addFlashMessages(e)},toggleButtonDisable:function(e){for(var t=document.getElementsByTagName("button"),n=0;nt?e.substring(0,t)+n:e})),Vue.filter("date",(function(e){return e?moment(val).format("YYYY-MM-DD"):""})),n(48917),n(26981)},89774:e=>{e.exports={methods:{__:function(e,t){var n=e.split("."),r=window._translations;return n.forEach((function(e){r=r[e]})),t&&Object.keys(t).forEach((function(e){var n=t[e];r=r.replace(":".concat(e),n)})),r}}}},20863:e=>{e.exports=function(e,t){var n=null;return function(){clearTimeout(n);var r=arguments,a=this;n=setTimeout((function(){e.apply(a,r)}),t)}}},53353:()=>{$((function(){function e(){if(dropdown=$(".dropdown-open"),!dropdown.find(".dropdown-list").hasClass("top-left")&&!dropdown.find(".dropdown-list").hasClass("top-right")&&dropdown.length){dropdown=dropdown.find(".dropdown-list"),height=dropdown.height()+50;var e=dropdown.offset().top-70,t=$(window).height()-e-dropdown.height();t>e||height1&&(a-=1)),[360*a,100*i,100*d]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var n=t[e];if(n)return n;var a,i=1/0;for(var o in r)if(r.hasOwnProperty(o)){var s=l(e,r[o]);s.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,a,i,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[i=255*l,i,i];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var d=0;d<3;d++)(r=o+1/3*-(d-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[d]=255*i;return a},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,a=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,a*=i<=1?i:2-i,[t,100*(0===r?2*a/(i+a):2*n/(r+n)),(r+n)/2*100]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,a){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},a.hsv.hsl=function(e){var t,n,r,a=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-i)*o,n=i*s,[a,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,a,i,o,s,l=e[0]/360,d=e[1]/100,u=e[2]/100,c=d+u;switch(c>1&&(d/=c,u/=c),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),a=d+r*((n=1-u)-d),t){default:i=n,o=a,s=d;break;case 1:i=a,o=n,s=d;break;case 2:i=d,o=n,s=a;break;case 3:i=d,o=a,s=n;break;case 4:i=a,o=d,s=n;break;case 5:i=n,o=d,s=a}return[255*i,255*o,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},a.xyz.rgb=function(e){var t,n,r,a=e[0]/100,i=e[1]/100,o=e[2]/100;return n=-.9689*a+1.8758*i+.0415*o,r=.0557*a+-.204*i+1.057*o,t=(t=3.2406*a+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,a=e[0];t=e[1]/500+(n=(a+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.max(Math.max(n,r),a),o=Math.min(Math.min(n,r),a),s=i-o;return t=s<=0?0:i===n?(r-a)/s%6:i===r?2+(a-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var a=[0,0,0],i=t%1*6,o=i%1,s=1-o,l=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return l=(1-n)*r,[255*(n*a[0]+l),255*(n*a[1]+l),255*(n*a[2]+l)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function i(){for(var e={},t=Object.keys(a),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function h(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,a=0;a=0&&t<1?C(Math.round(255*t)):"")}function k(e,t){return t<1||e[3]&&e[3]<1?L(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function L(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function x(e,t){return t<1||e[3]&&e[3]<1?D(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"}function D(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function Y(e,t){return t<1||e[3]&&e[3]<1?S(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function S(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function T(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function O(e){return P[e.slice(0,3)]}function j(e,t,n){return Math.min(Math.max(t,e),n)}function C(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var P={};for(var H in m)P[m[H]]=H;var A=function(e){return e instanceof A?e:this instanceof A?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=p.getRgba(e))?this.setValues("rgb",t):(t=p.getHsla(e))?this.setValues("hsl",t):(t=p.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new A(e);var t};A.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return p.hexString(this.values.rgb)},rgbString:function(){return p.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return p.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return p.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return p.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return p.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return p.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return p.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,r=e,a=void 0===t?.5:t,i=2*a-1,o=n.alpha()-r.alpha(),s=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue()).alpha(n.alpha()*a+r.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new A,r=this.values,a=n.values;for(var i in r)r.hasOwnProperty(i)&&(e=r[i],"[object Array]"===(t={}.toString.call(e))?a[i]=e.slice(0):"[object Number]"===t?a[i]=e:console.error("unexpected color value:",e));return n}},A.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},A.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},A.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r=0;a--)t.call(n,e[a],a);else for(a=0;a=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-W.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*W.easeInBounce(2*e):.5*W.easeOutBounce(2*e-1)+.5}},z={effects:W};R.easingEffects=W;var V=Math.PI,$=V/180,B=2*V,U=V/2,G=V/4,J=2*V/3,Z={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,a,i){if(i){var o=Math.min(i,a/2,r/2),s=t+o,l=n+o,d=t+r-o,u=n+a-o;e.moveTo(t,l),st.left-n&&e.xt.top-n&&e.y0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,r,a=this.animations,i=0;i=n?(se.callback(e.onAnimationComplete,[e],t),t.animating=!1,a.splice(i,1)):++i}},ye=se.options.resolve,be=["push","pop","shift","splice","unshift"];function Me(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),be.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),a=r.apply(this,t);return se.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),a}})})))}function we(e,t){var n=e._chartjs;if(n){var r=n.listeners,a=r.indexOf(t);-1!==a&&r.splice(a,1),r.length>0||(be.forEach((function(t){delete e[t]})),delete e._chartjs)}}var ke=function(e,t){this.initialize(e,t)};se.extend(ke.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,r=n.scales,a=e.getDataset(),i=n.options.scales;null!==t.xAxisID&&t.xAxisID in r&&!a.xAxisID||(t.xAxisID=a.xAxisID||i.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in r&&!a.yAxisID||(t.yAxisID=a.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&we(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,r=n.getMeta(),a=n.getDataset().data||[],i=r.data;for(e=0,t=a.length;er&&e.insertElements(r,a-r)},insertElements:function(e,t){for(var n=0;na?(i=a/t.innerRadius,e.arc(o,s,t.innerRadius-a,r+i,n-i,!0)):e.arc(o,s,a,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function Ye(e,t,n,r){var a,i=n.endAngle;for(r&&(n.endAngle=n.startAngle+xe,De(e,n),n.endAngle=i,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=xe,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+xe,n.startAngle,!0),a=0;as;)a-=xe;for(;a=o&&a<=s,d=i>=n.innerRadius&&i<=n.outerRadius;return l&&d}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,a={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/xe)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+xe,t.beginPath(),t.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),t.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),t.closePath(),e=0;ee.x&&(t=We(t,"left","right")):e.basen?n:r,r:l.right||a<0?0:a>t?t:a,b:l.bottom||i<0?0:i>n?n:i,l:l.left||o<0?0:o>t?t:o}}function $e(e){var t=Re(e),n=t.right-t.left,r=t.bottom-t.top,a=Ve(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b}}}function Be(e,t,n){var r=null===t,a=null===n,i=!(!e||r&&a)&&Re(e);return i&&(r||t>=i.left&&t<=i.right)&&(a||n>=i.top&&n<=i.bottom)}X._set("global",{elements:{rectangle:{backgroundColor:Ne,borderColor:Ne,borderSkipped:"bottom",borderWidth:0}}});var Ue=pe.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=$e(t),r=n.outer,a=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===a.w&&r.h===a.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(a.x,a.y,a.w,a.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return Be(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return Ie(n)?Be(n,e,null):Be(n,null,t)},inXRange:function(e){return Be(this._view,e,null)},inYRange:function(e){return Be(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return Ie(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return Ie(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Ge={},Je=Te,Ze=Ce,qe=Fe,Ke=Ue;Ge.Arc=Je,Ge.Line=Ze,Ge.Point=qe,Ge.Rectangle=Ke;var Xe=se._deprecated,Qe=se.valueOrDefault;function et(e,t){var n,r,a,i,o=e._length;for(a=1,i=t.length;a0?Math.min(o,Math.abs(r-n)):o,n=r;return o}function tt(e,t,n){var r,a,i=n.barThickness,o=t.stackCount,s=t.pixels[e],l=se.isNullOrUndef(i)?et(t.scale,t.pixels):-1;return se.isNullOrUndef(i)?(r=l*n.categoryPercentage,a=n.barPercentage):(r=i*o,a=1),{chunk:r/o,ratio:a,start:s-r/2}}function nt(e,t,n){var r,a=t.pixels,i=a[e],o=e>0?a[e-1]:null,s=e=0&&_.min>=0?_.min:_.max,M=void 0===_.start?_.end:_.max>=0&&_.min>=0?_.max-_.min:_.min-_.max,w=p.length;if(v||void 0===v&&void 0!==y)for(r=0;r=0&&d.max>=0?d.max:d.min,(_.min<0&&i<0||_.max>=0&&i>0)&&(b+=i));return o=h.getPixelForValue(b),l=(s=h.getPixelForValue(b+M))-o,void 0!==g&&Math.abs(l)=0&&!f||M<0&&f?o-g:o+g),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,r){var a=this,i="flex"===r.barThickness?nt(t,n,r):tt(t,n,r),o=a.getStackIndex(e,a.getMeta().stack),s=i.start+i.chunk*o+i.chunk/2,l=Math.min(Qe(r.maxBarThickness,1/0),i.chunk*i.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),r=e.getMeta().data,a=e.getDataset(),i=r.length,o=0;for(se.canvas.clipArea(t.ctx,t.chartArea);o=lt?-dt:v<-lt?dt:0)+_,b=Math.cos(v),M=Math.sin(v),w=Math.cos(y),k=Math.sin(y),L=v<=0&&y>=0||y>=dt,x=v<=ut&&y>=ut||y>=dt+ut,D=v<=-ut&&y>=-ut||y>=lt+ut,Y=v===-lt||y>=lt?-1:Math.min(b,b*p,w,w*p),S=D?-1:Math.min(M,M*p,k,k*p),T=L?1:Math.max(b,b*p,w,w*p),O=x?1:Math.max(M,M*p,k,k*p);d=(T-Y)/2,u=(O-S)/2,c=-(T+Y)/2,h=-(O+S)/2}for(r=0,a=m.length;r0&&!isNaN(e)?dt*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,a,i,o,s,l,d=this,u=0,c=d.chart;if(!e)for(t=0,n=c.data.datasets.length;t(u=s>u?s:u)?l:u);return u},setHoverStyle:function(e){var t=e._model,n=e._options,r=se.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=st(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=st(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=st(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n0&&pt(d[e-1]._model,l)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,l.left,l.right),n.controlPointPreviousY=u(n.controlPointPreviousY,l.top,l.bottom)),e0&&(i=e.getDatasetMeta(i[0]._datasetIndex).data),i},"x-axis":function(e,t){return jt(e,t,{intersect:!1})},point:function(e,t){return St(e,Dt(t,e))},nearest:function(e,t,n){var r=Dt(t,e);n.axis=n.axis||"xy";var a=Ot(n.axis);return Tt(e,r,n.intersect,a)},x:function(e,t,n){var r=Dt(t,e),a=[],i=!1;return Yt(e,(function(e){e.inXRange(r.x)&&a.push(e),e.inRange(r.x,r.y)&&(i=!0)})),n.intersect&&!i&&(a=[]),a},y:function(e,t,n){var r=Dt(t,e),a=[],i=!1;return Yt(e,(function(e){e.inYRange(r.y)&&a.push(e),e.inRange(r.x,r.y)&&(i=!0)})),n.intersect&&!i&&(a=[]),a}}},Pt=se.extend;function Ht(e,t){return se.where(e,(function(e){return e.pos===t}))}function At(e,t){return e.sort((function(e,n){var r=t?n:e,a=t?e:n;return r.weight===a.weight?r.index-a.index:r.weight-a.weight}))}function Et(e){var t,n,r,a=[];for(t=0,n=(e||[]).length;t div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",Jt=n(Object.freeze({__proto__:null,default:Gt})),Zt="$chartjs",qt="chartjs-",Kt=qt+"size-monitor",Xt=qt+"render-monitor",Qt=qt+"render-animation",en=["animationstart","webkitAnimationStart"],tn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function nn(e,t){var n=se.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}function rn(e,t){var n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[Zt]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===a||""===a){var i=nn(e,"width");void 0!==i&&(e.width=i)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=nn(e,"height");void 0!==i&&(e.height=o)}return e}var an=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}(),on=!!an&&{passive:!0};function sn(e,t,n){e.addEventListener(t,n,on)}function ln(e,t,n){e.removeEventListener(t,n,on)}function dn(e,t,n,r,a){return{type:e,chart:t,native:a||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function un(e,t){var n=tn[e.type]||e.type,r=se.getRelativePosition(e,t);return dn(n,t,r.x,r.y,e)}function cn(e,t){var n=!1,r=[];return function(){r=Array.prototype.slice.call(arguments),t=t||this,n||(n=!0,se.requestAnimFrame.call(window,(function(){n=!1,e.apply(t,r)})))}}function hn(e){var t=document.createElement("div");return t.className=e||"",t}function fn(e){var t=1e6,n=hn(Kt),r=hn(Kt+"-expand"),a=hn(Kt+"-shrink");r.appendChild(hn()),a.appendChild(hn()),n.appendChild(r),n.appendChild(a),n._reset=function(){r.scrollLeft=t,r.scrollTop=t,a.scrollLeft=t,a.scrollTop=t};var i=function(){n._reset(),e()};return sn(r,"scroll",i.bind(r,"expand")),sn(a,"scroll",i.bind(a,"shrink")),n}function mn(e,t){var n=e[Zt]||(e[Zt]={}),r=n.renderProxy=function(e){e.animationName===Qt&&t()};se.each(en,(function(t){sn(e,t,r)})),n.reflow=!!e.offsetParent,e.classList.add(Xt)}function pn(e){var t=e[Zt]||{},n=t.renderProxy;n&&(se.each(en,(function(t){ln(e,t,n)})),delete t.renderProxy),e.classList.remove(Xt)}function _n(e,t,n){var r=e[Zt]||(e[Zt]={}),a=r.resizer=fn(cn((function(){if(r.resizer){var a=n.options.maintainAspectRatio&&e.parentNode,i=a?a.clientWidth:0;t(dn("resize",n)),a&&a.clientWidth0){var i=e[0];i.label?n=i.label:i.xLabel?n=i.xLabel:a>0&&i.index-1?e.split("\n"):e}function Tn(e){var t=e._xScale,n=e._yScale||e._scale,r=e._index,a=e._datasetIndex,i=e._chart.getDatasetMeta(a).controller,o=i._getIndexScale(),s=i._getValueScale();return{xLabel:t?t.getLabelForIndex(r,a):"",yLabel:n?n.getLabelForIndex(r,a):"",label:o?""+o.getLabelForIndex(r,a):"",value:s?""+s.getLabelForIndex(r,a):"",index:r,datasetIndex:a,x:e._model.x,y:e._model.y}}function On(e){var t=X.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Ln(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Ln(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Ln(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Ln(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Ln(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Ln(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Ln(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Ln(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Ln(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function jn(e,t){var n=e._chart.ctx,r=2*t.yPadding,a=0,i=t.body,o=i.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);o+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,d=t.titleFontSize,u=t.bodyFontSize,c=t.footerFontSize;r+=s*d,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=o*u,r+=o?(o-1)*t.bodySpacing:0,r+=l?t.footerMarginTop:0,r+=l*c,r+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){a=Math.max(a,n.measureText(e).width+h)};return n.font=se.fontString(d,t._titleFontStyle,t._titleFontFamily),se.each(t.title,f),n.font=se.fontString(u,t._bodyFontStyle,t._bodyFontFamily),se.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?u+2:0,se.each(i,(function(e){se.each(e.before,f),se.each(e.lines,f),se.each(e.after,f)})),h=0,n.font=se.fontString(c,t._footerFontStyle,t._footerFontFamily),se.each(t.footer,f),{width:a+=2*t.xPadding,height:r}}function Cn(e,t){var n,r,a,i,o,s=e._model,l=e._chart,d=e._chart.chartArea,u="center",c="center";s.yl.height-t.height&&(c="bottom");var h=(d.left+d.right)/2,f=(d.top+d.bottom)/2;"center"===c?(n=function(e){return e<=h},r=function(e){return e>h}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),a=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},i=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=f?"top":"bottom"},n(s.x)?(u="left",a(s.x)&&(u="center",c=o(s.y))):r(s.x)&&(u="right",i(s.x)&&(u="center",c=o(s.y)));var m=e._options;return{xAlign:m.xAlign?m.xAlign:u,yAlign:m.yAlign?m.yAlign:c}}function Pn(e,t,n,r){var a=e.x,i=e.y,o=e.caretSize,s=e.caretPadding,l=e.cornerRadius,d=n.xAlign,u=n.yAlign,c=o+s,h=l+s;return"right"===d?a-=t.width:"center"===d&&((a-=t.width/2)+t.width>r.width&&(a=r.width-t.width),a<0&&(a=0)),"top"===u?i+=c:i-="bottom"===u?t.height+c:t.height/2,"center"===u?"left"===d?a+=c:"right"===d&&(a-=c):"left"===d?a-=h:"right"===d&&(a+=h),{x:a,y:i}}function Hn(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function An(e){return Yn([],Sn(e))}var En=pe.extend({initialize:function(){this._model=On(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),r=t.title.apply(e,arguments),a=t.afterTitle.apply(e,arguments),i=[];return i=Yn(i,Sn(n)),i=Yn(i,Sn(r)),i=Yn(i,Sn(a))},getBeforeBody:function(){return An(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,a=[];return se.each(e,(function(e){var i={before:[],lines:[],after:[]};Yn(i.before,Sn(r.beforeLabel.call(n,e,t))),Yn(i.lines,r.label.call(n,e,t)),Yn(i.after,Sn(r.afterLabel.call(n,e,t))),a.push(i)})),a},getAfterBody:function(){return An(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),a=t.afterFooter.apply(e,arguments),i=[];return i=Yn(i,Sn(n)),i=Yn(i,Sn(r)),i=Yn(i,Sn(a))},update:function(e){var t,n,r=this,a=r._options,i=r._model,o=r._model=On(a),s=r._active,l=r._data,d={xAlign:i.xAlign,yAlign:i.yAlign},u={x:i.x,y:i.y},c={width:i.width,height:i.height},h={x:i.caretX,y:i.caretY};if(s.length){o.opacity=1;var f=[],m=[];h=Dn[a.position].call(r,s,r._eventPosition);var p=[];for(t=0,n=s.length;t0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},a=Math.abs(t.opacity<.001)?0:t.opacity,i=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&i&&(e.save(),e.globalAlpha=a,this.drawBackground(r,t,e,n),r.y+=t.yPadding,se.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),se.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t=this,n=t._options,r=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&t._active.reverse()),(r=!se.arrayEquals(t._active,t._lastActive))&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),r}}),Fn=Dn,Nn=En;Nn.positioners=Fn;var In=se.valueOrDefault;function Rn(){return se.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var a,i,o,s=n[e].length;for(t[e]||(t[e]=[]),a=0;a=t[e].length&&t[e].push({}),!t[e][a].type||o.type&&o.type!==t[e][a].type?se.merge(t[e][a],[kn.getScaleDefaults(i),o]):se.merge(t[e][a],o)}else se._merger(e,t,n,r)}})}function Wn(){return se.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){var a=t[e]||Object.create(null),i=n[e];"scales"===e?t[e]=Rn(a,i):"scale"===e?t[e]=se.merge(a,[kn.getScaleDefaults(i.type),i]):se._merger(e,t,n,r)}})}function zn(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Wn(X.global,X[e.type],e.options||{}),e}function Vn(e){var t=e.options;se.each(e.scales,(function(t){Bt.removeBox(e,t)})),t=Wn(X.global,X[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function $n(e,t,n){var r,a=function(e){return e.id===r};do{r=t+n++}while(se.findIndex(e,a)>=0);return r}function Bn(e){return"top"===e||"bottom"===e}function Un(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}X._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Gn=function(e,t){return this.construct(e,t),this};se.extend(Gn.prototype,{construct:function(e,t){var n=this;t=zn(t);var r=Mn.acquireContext(e,t),a=r&&r.canvas,i=a&&a.height,o=a&&a.width;n.id=se.uid(),n.ctx=r,n.canvas=a,n.config=t,n.width=o,n.height=i,n.aspectRatio=i?o/i:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Gn.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return wn.notify(e,"beforeInit"),se.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),wn.notify(e,"afterInit"),e},clear:function(){return se.canvas.clear(this),this},stop:function(){return ve.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,a=n.maintainAspectRatio&&t.aspectRatio||null,i=Math.max(0,Math.floor(se.getMaximumWidth(r))),o=Math.max(0,Math.floor(a?i/a:se.getMaximumHeight(r)));if((t.width!==i||t.height!==o)&&(r.width=t.width=i,r.height=t.height=o,r.style.width=i+"px",r.style.height=o+"px",se.retinaScale(t,n.devicePixelRatio),!e)){var s={width:i,height:o};wn.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;se.each(t.xAxes,(function(e,n){e.id||(e.id=$n(t.xAxes,"x-axis-",n))})),se.each(t.yAxes,(function(e,n){e.id||(e.id=$n(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],a=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),se.each(r,(function(t){var r=t.options,i=r.id,o=In(r.type,t.dtype);Bn(r.position)!==Bn(t.dposition)&&(r.position=t.dposition),a[i]=!0;var s=null;if(i in n&&n[i].type===o)(s=n[i]).options=r,s.ctx=e.ctx,s.chart=e;else{var l=kn.getScaleConstructor(o);if(!l)return;s=new l({id:i,type:o,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),se.each(a,(function(e,t){e||delete n[t]})),e.scales=n,kn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],a=n.data.datasets;for(e=0,t=a.length;e=0;--n)r.drawDataset(t[n],e);wn.notify(r,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,r={meta:e,index:e.index,easingValue:t};!1!==wn.notify(n,"beforeDatasetDraw",[r])&&(e.controller.draw(t),wn.notify(n,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this,n=t.tooltip,r={tooltip:n,easingValue:e};!1!==wn.notify(t,"beforeTooltipDraw",[r])&&(n.draw(),wn.notify(t,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return Ct.modes.single(this,e)},getElementsAtEvent:function(e){return Ct.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Ct.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=Ct.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return Ct.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var r=n._meta[t.id];return r||(r=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t=0;r--){var a=e[r];if(t(a))return a}},se.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},se.almostEquals=function(e,t,n){return Math.abs(e-t)=e},se.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},se.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},se.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},se.toRadians=function(e){return e*(Math.PI/180)},se.toDegrees=function(e){return e*(180/Math.PI)},se._decimalPlaces=function(e){if(se.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},se.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r),i=Math.atan2(r,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:a}},se.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},se.aliasPixel=function(e){return e%2==0?0:.5},se._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,a=n/2;return Math.round((t-a)*r)/r+a},se.splineCurve=function(e,t,n,r){var a=e.skip?t:e,i=t,o=n.skip?t:n,s=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),l=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),d=s/(s+l),u=l/(s+l),c=r*(d=isNaN(d)?0:d),h=r*(u=isNaN(u)?0:u);return{previous:{x:i.x-c*(o.x-a.x),y:i.y-c*(o.y-a.y)},next:{x:i.x+h*(o.x-a.x),y:i.y+h*(o.y-a.y)}}},se.EPSILON=Number.EPSILON||1e-14,se.splineCurveMonotone=function(e){var t,n,r,a,i,o,s,l,d,u=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),c=u.length;for(t=0;t0?u[t-1]:null,(a=t0?u[t-1]:null,a=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},se.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},se.niceNum=function(e,t){var n=Math.floor(se.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},se.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},se.getRelativePosition=function(e,t){var n,r,a=e.originalEvent||e,i=e.target||e.srcElement,o=i.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=a.clientX,r=a.clientY);var l=parseFloat(se.getStyle(i,"padding-left")),d=parseFloat(se.getStyle(i,"padding-top")),u=parseFloat(se.getStyle(i,"padding-right")),c=parseFloat(se.getStyle(i,"padding-bottom")),h=o.right-o.left-l-u,f=o.bottom-o.top-d-c;return{x:n=Math.round((n-o.left-l)/h*i.width/t.currentDevicePixelRatio),y:r=Math.round((r-o.top-d)/f*i.height/t.currentDevicePixelRatio)}},se.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},se.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},se._calculatePadding=function(e,t,n){return(t=se.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},se._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},se.getMaximumWidth=function(e){var t=se._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-se._calculatePadding(t,"padding-left",n)-se._calculatePadding(t,"padding-right",n),a=se.getConstraintWidth(e);return isNaN(a)?r:Math.min(r,a)},se.getMaximumHeight=function(e){var t=se._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-se._calculatePadding(t,"padding-top",n)-se._calculatePadding(t,"padding-bottom",n),a=se.getConstraintHeight(e);return isNaN(a)?r:Math.min(r,a)},se.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},se.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,a=e.height,i=e.width;r.height=a*n,r.width=i*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=a+"px",r.style.width=i+"px")}},se.fontString=function(e,t,n){return t+" "+e+"px "+n},se.longestText=function(e,t,n,r){var a=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},i=r.garbageCollect=[],r.font=t),e.font=t;var o,s,l,d,u,c=0,h=n.length;for(o=0;on.length){for(o=0;or&&(r=i),r},se.numberOfLabelLines=function(e){var t=1;return se.each(e,(function(e){se.isArray(e)&&e.length>t&&(t=e.length)})),t},se.color=E?function(e){return e instanceof CanvasGradient&&(e=X.global.defaultColor),E(e)}:function(e){return console.error("Color.js not found!"),e},se.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:se.color(e).saturate(.5).darken(.1).rgbString()}};function qn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Kn(e){this.options=e||{}}se.extend(Kn.prototype,{formats:qn,parse:qn,format:qn,add:qn,diff:qn,startOf:qn,endOf:qn,_create:function(e){return e}}),Kn.override=function(e){se.extend(Kn.prototype,e)};var Xn={_date:Kn},Qn={formatters:{values:function(e){return se.isArray(e)?e:""+e},linear:function(e,t,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var a=se.log10(Math.abs(r)),i="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=se.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(a);s=Math.max(Math.min(s,20),0),i=e.toExponential(s)}else{var l=-1*Math.floor(a);l=Math.max(Math.min(l,20),0),i=e.toFixed(l)}else i="0";return i},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(se.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},er=se.isArray,tr=se.isNullOrUndef,nr=se.valueOrDefault,rr=se.valueAtIndexOrDefault;function ar(e,t){for(var n=[],r=e.length/t,a=0,i=e.length;al+d)))return o}function or(e,t){se.each(e,(function(e){var n,r=e.gc,a=r.length/2;if(a>t){for(n=0;nd)return i;return Math.max(d,1)}function pr(e){var t,n,r=[];for(t=0,n=e.length;t=h||u<=1||!s.isHorizontal()?s.labelRotation=c:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),t+6>(a=l.offset?s.maxWidth/u:r/(u-1))&&(a=r/(u-(l.offset?.5:1)),i=s.maxHeight-lr(l.gridLines)-d.padding-dr(l.scaleLabel),o=Math.sqrt(t*t+n*n),f=se.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/a,1)),Math.asin(Math.min(i/o,1))-Math.asin(n/o))),f=Math.max(c,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){se.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){se.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,a=r.ticks,i=r.scaleLabel,o=r.gridLines,s=e._isVisible(),l="bottom"===r.position,d=e.isHorizontal();if(d?t.width=e.maxWidth:s&&(t.width=lr(o)+dr(i)),d?s&&(t.height=lr(o)+dr(i)):t.height=e.maxHeight,a.display&&s){var u=cr(a),c=e._getLabelSizes(),h=c.first,f=c.last,m=c.widest,p=c.highest,_=.4*u.minor.lineHeight,g=a.padding;if(d){var v=0!==e.labelRotation,y=se.toRadians(e.labelRotation),b=Math.cos(y),M=Math.sin(y),w=M*m.width+b*(p.height-(v?p.offset:0))+(v?0:_);t.height=Math.min(e.maxHeight,t.height+w+g);var k,L,x=e.getPixelForTick(0)-e.left,D=e.right-e.getPixelForTick(e.getTicks().length-1);v?(k=l?b*h.width+M*h.offset:M*(h.height-h.offset),L=l?M*(f.height-f.offset):b*f.width+M*f.offset):(k=h.width/2,L=f.width/2),e.paddingLeft=Math.max((k-x)*e.width/(e.width-x),0)+3,e.paddingRight=Math.max((L-D)*e.width/(e.width-D),0)+3}else{var Y=a.mirror?0:m.width+g+_;t.width=Math.min(e.maxWidth,t.width+Y),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),d?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){se.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(tr(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,a=this;for(a.ticks=e.map((function(e){return e.value})),a.beforeTickToLabelConversion(),t=a.convertTicksToLabels(e)||a.ticks,a.afterTickToLabelConversion(),n=0,r=e.length;nr-1?null:t.getPixelForDecimal(e*a+(n?a/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,r,a,i=this,o=i.options.ticks,s=i._length,l=o.maxTicksLimit||s/i._tickSize()+1,d=o.major.enabled?pr(e):[],u=d.length,c=d[0],h=d[u-1];if(u>l)return _r(e,d,u/l),hr(e);if(r=mr(d,e,s,l),u>0){for(t=0,n=u-1;t1?(h-c)/(u-1):null,gr(e,r,se.isNullOrUndef(a)?0:c-a,c),gr(e,r,h,se.isNullOrUndef(a)?e.length:h+a),hr(e)}return gr(e,r),hr(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=se.toRadians(e.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),i=e._getLabelSizes(),o=t.autoSkipPadding||0,s=i?i.widest.width+o:0,l=i?i.highest.height+o:0;return e.isHorizontal()?l*r>s*a?s/r:l/a:l*a=0&&(o=e),void 0!==i&&(e=n.indexOf(i))>=0&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=n[o],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,r=e.maxIndex;e.ticks=0===n&&r===t.length-1?t:t.slice(n,r+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;yr.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,a,i,o=this;return br(t)||br(n)||(e=o.chart.data.datasets[n].data[t]),br(e)||(r=o.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(a=o._getLabels(),e=se.valueOrDefault(r,e),t=-1!==(i=a.indexOf(e))?i:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),kr=Mr;wr._defaults=kr;var Lr=se.noop,xr=se.isNullOrUndef;function Dr(e,t){var n,r,a,i,o=[],s=1e-14,l=e.stepSize,d=l||1,u=e.maxTicks-1,c=e.min,h=e.max,f=e.precision,m=t.min,p=t.max,_=se.niceNum((p-m)/u/d)*d;if(_u&&(_=se.niceNum(i*_/u/d)*d),l||xr(f)?n=Math.pow(10,se._decimalPlaces(_)):(n=Math.pow(10,f),_=Math.ceil(_*n)/n),r=Math.floor(m/_)*_,a=Math.ceil(p/_)*_,l&&(!xr(c)&&se.almostWhole(c/_,_/1e3)&&(r=c),!xr(h)&&se.almostWhole(h/_,_/1e3)&&(a=h)),i=(a-r)/_,i=se.almostEquals(i,Math.round(i),_/1e3)?Math.round(i):Math.ceil(i),r=Math.round(r*n)/n,a=Math.round(a*n)/n,o.push(xr(c)?r:c);for(var g=1;g0&&r>0&&(e.min=0)}var a=void 0!==t.min||void 0!==t.suggestedMin,i=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),a!==i&&e.min>=e.max&&(a?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,r=n.stepSize,a=n.maxTicksLimit;return r?e=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(e=t._computeTickLimit(),a=a||11),a&&(e=Math.min(a,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Lr,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:se.valueOrDefault(t.fixedStepSize,t.stepSize)},a=e.ticks=Dr(r,e);e.handleDirectionalChanges(),e.max=se.max(a),e.min=se.min(a),t.reverse?(a.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),yr.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),r=t.min,a=t.max;yr.prototype._configure.call(t),t.options.offset&&n.length&&(r-=e=(a-r)/Math.max(n.length-1,1)/2,a+=e),t._startValue=r,t._endValue=a,t._valueRange=a-r}}),Sr={position:"left",ticks:{callback:Qn.formatters.linear}},Tr=0,Or=1;function jr(e,t,n){var r=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[r]&&(e[r]={pos:[],neg:[]}),e[r]}function Cr(e,t,n,r){var a,i,o=e.options,s=jr(t,o.stacked,n),l=s.pos,d=s.neg,u=r.length;for(a=0;at.length-1?null:this.getPixelForValue(t[e])}}),Ar=Sr;Hr._defaults=Ar;var Er=se.valueOrDefault,Fr=se.math.log10;function Nr(e,t){var n,r,a=[],i=Er(e.min,Math.pow(10,Math.floor(Fr(t.min)))),o=Math.floor(Fr(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===i?(n=Math.floor(Fr(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),a.push(i),i=r*Math.pow(10,n)):(n=Math.floor(Fr(i)),r=Math.floor(i/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{a.push(i),10==++r&&(r=1,l=++n>=0?1:l),i=Math.round(r*Math.pow(10,n)*l)/l}while(n=0?e:t}var Wr=yr.extend({determineDataLimits:function(){var e,t,n,r,a,i,o=this,s=o.options,l=o.chart,d=l.data.datasets,u=o.isHorizontal();function c(e){return u?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e0){var t=se.min(e),n=se.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,n)}}))}else for(e=0;e0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Fr(e.max))):e.minNotZero=n)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Rr(t.min),max:Rr(t.max)},a=e.ticks=Nr(r,e);e.max=se.max(a),e.min=se.min(a),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),yr.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Fr(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;yr.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Er(e.options.ticks.fontSize,X.global.defaultFontSize)/e._length),e._startValue=Fr(t),e._valueOffset=n,e._valueRange=(Fr(e.max)-Fr(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Fr(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),zr=Ir;Wr._defaults=zr;var Vr=se.valueOrDefault,$r=se.valueAtIndexOrDefault,Br=se.options.resolve,Ur={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Qn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Gr(e){var t=e.ticks;return t.display&&e.display?Vr(t.fontSize,X.global.defaultFontSize)+2*t.backdropPaddingY:0}function Jr(e,t,n){return se.isArray(n)?{w:se.longestText(e,e.font,n),h:n.length*t}:{w:e.measureText(n).width,h:t}}function Zr(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:ea?{start:t-n,end:t}:{start:t,end:t+n}}function qr(e){var t,n,r,a=se.options._parseFont(e.options.pointLabels),i={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=a.string,e._pointLabelSizes=[];var s=e.chart.data.labels.length;for(t=0;ti.r&&(i.r=u.end,o.r=l),c.starti.b&&(i.b=c.end,o.b=l)}e.setReductions(e.drawingArea,i,o)}function Kr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Xr(e,t,n,r){var a,i,o=n.y+r/2;if(se.isArray(t))for(a=0,i=t.length;a270||e<90)&&(n.y-=t.h)}function ea(e){var t=e.ctx,n=e.options,r=n.pointLabels,a=Gr(n),i=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),o=se.options._parseFont(r);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?a/2:0,d=e.getPointPosition(s,i+l+5),u=$r(r.fontColor,s,X.global.defaultFontColor);t.fillStyle=u;var c=e.getIndexAngle(s),h=se.toDegrees(c);t.textAlign=Kr(h),Qr(h,e._pointLabelSizes[s],d),Xr(t,e.pointLabels[s],d,o.lineHeight)}t.restore()}function ta(e,t,n,r){var a,i=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=$r(t.color,r-1),d=$r(t.lineWidth,r-1);if((o||s)&&l&&d){if(i.save(),i.strokeStyle=l,i.lineWidth=d,i.setLineDash&&(i.setLineDash(t.borderDash||[]),i.lineDashOffset=t.borderDashOffset||0),i.beginPath(),o)i.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{a=e.getPointPosition(0,n),i.moveTo(a.x,a.y);for(var u=1;u0&&r>0?n:0)},_drawGrid:function(){var e,t,n,r=this,a=r.ctx,i=r.options,o=i.gridLines,s=i.angleLines,l=Vr(s.lineWidth,o.lineWidth),d=Vr(s.color,o.color);if(i.pointLabels.display&&ea(r),o.display&&se.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),ta(r,o,t,n))})),s.display&&l&&d){for(a.save(),a.lineWidth=l,a.strokeStyle=d,a.setLineDash&&(a.setLineDash(Br([s.borderDash,o.borderDash,[]])),a.lineDashOffset=Br([s.borderDashOffset,o.borderDashOffset,0])),e=r.chart.data.labels.length-1;e>=0;e--)t=r.getDistanceFromCenterForValue(i.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),a.beginPath(),a.moveTo(r.xCenter,r.yCenter),a.lineTo(n.x,n.y),a.stroke();a.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,a,i=e.getIndexAngle(0),o=se.options._parseFont(n),s=Vr(n.fontColor,X.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",se.each(e.ticks,(function(i,l){(0!==l||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(a=t.measureText(i).width,t.fillStyle=n.backdropColor,t.fillRect(-a/2-n.backdropPaddingX,-r-o.size/2-n.backdropPaddingY,a+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(i,0,-r))})),t.restore()}},_drawTitle:se.noop}),aa=Ur;ra._defaults=aa;var ia=se._deprecated,oa=se.options.resolve,sa=se.valueOrDefault,la=Number.MIN_SAFE_INTEGER||-9007199254740991,da=Number.MAX_SAFE_INTEGER||9007199254740991,ua={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}},ca=Object.keys(ua);function ha(e,t){return e-t}function fa(e){var t,n,r,a={},i=[];for(t=0,n=e.length;tt&&s=0&&o<=s;){if(a=e[(r=o+s>>1)-1]||null,i=e[r],!a)return{lo:null,hi:i};if(i[t]n))return{lo:a,hi:i};s=r-1}}return{lo:i,hi:null}}function va(e,t,n,r){var a=ga(e,t,n),i=a.lo?a.hi?a.lo:e[e.length-2]:e[0],o=a.lo?a.hi?a.hi:e[e.length-1]:e[1],s=o[t]-i[t],l=s?(n-i[t])/s:0,d=(o[r]-i[r])*l;return i[r]+d}function ya(e,t){var n=e._adapter,r=e.options.time,a=r.parser,i=a||r.format,o=t;return"function"==typeof a&&(o=a(o)),se.isFinite(o)||(o="string"==typeof i?n.parse(o,i):n.parse(o)),null!==o?+o:(a||"function"!=typeof i||(o=i(t),se.isFinite(o)||(o=n.parse(o))),o)}function ba(e,t){if(se.isNullOrUndef(t))return null;var n=e.options.time,r=ya(e,e.getRightValue(t));return null===r||n.round&&(r=+e._adapter.startOf(r,n.round)),r}function Ma(e,t,n,r){var a,i,o,s=ca.length;for(a=ca.indexOf(e);a=ca.indexOf(n);i--)if(o=ca[i],ua[o].common&&e._adapter.diff(a,r,o)>=t-1)return o;return ca[n?ca.indexOf(n):0]}function ka(e){for(var t=ca.indexOf(e)+1,n=ca.length;t1e5*d)throw t+" and "+n+" are too far apart with stepSize of "+d+" "+l;for(a=c;a=0&&(t[i].major=!0);return t}function Ya(e,t,n){var r,a,i=[],o={},s=t.length;for(r=0;r1?fa(m).sort(ha):m.sort(ha),h=Math.min(h,m[0]),f=Math.max(f,m[m.length-1])),h=ba(s,ma(u))||h,f=ba(s,pa(u))||f,h=h===da?+d.startOf(Date.now(),c):h,f=f===la?+d.endOf(Date.now(),c)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:m,datasets:p,labels:_}},buildTicks:function(){var e,t,n,r=this,a=r.min,i=r.max,o=r.options,s=o.ticks,l=o.time,d=r._timestamps,u=[],c=r.getLabelCapacity(a),h=s.source,f=o.distribution;for(d="data"===h||"auto"===h&&"series"===f?d.data:"labels"===h?d.labels:La(r,a,i,c),"ticks"===o.bounds&&d.length&&(a=d[0],i=d[d.length-1]),a=ba(r,ma(o))||a,i=ba(r,pa(o))||i,e=0,t=d.length;e=a&&n<=i&&u.push(n);return r.min=a,r.max=i,r._unit=l.unit||(s.autoSkip?Ma(l.minUnit,r.min,r.max,c):wa(r,u.length,l.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?ka(r._unit):void 0,r._table=_a(r._timestamps.data,a,i,f),r._offsets=xa(r._table,u,a,i,o),s.reverse&&u.reverse(),Ya(r,u,r._majorUnit)},getLabelForIndex:function(e,t){var n=this,r=n._adapter,a=n.chart.data,i=n.options.time,o=a.labels&&e=0&&e0?s:1}}),Oa=Sa;Ta._defaults=Oa;var ja={category:wr,linear:Hr,logarithmic:Wr,radialLinear:ra,time:Ta},Ca={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Xn._date.override("function"==typeof e?{_id:"moment",formats:function(){return Ca},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),X._set("global",{plugins:{filler:{propagate:!0}}});var Pa={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),a=r&&n.isDatasetVisible(t)&&r.dataset._children||[],i=a.length||0;return i?function(e,t){return t=n)&&r;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function Aa(e){var t,n=e.el._model||{},r=e.el._scale||{},a=e.fill,i=null;if(isFinite(a))return null;if("start"===a?i=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===a?i=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:r.getBasePixel&&(i=r.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if(se.isFinite(i))return{x:(t=r.isHorizontal())?i:null,y:t?null:i}}return null}function Ea(e){var t,n,r,a,i,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,d=e.fill,u=[];if(!l)return null;for(t=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,r=o.getPointPositionForValue(0,t),a=0;a0;--i)se.canvas.lineTo(e,n[i],n[i-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),i=a-1;i>0;--i)e.arc(o,s,l,n[i].angle,n[i-1].angle,!0)}}function za(e,t,n,r,a,i){var o,s,l,d,u,c,h,f,m=t.length,p=r.spanGaps,_=[],g=[],v=0,y=0;for(e.beginPath(),o=0,s=m;o=0;--n)(t=l[n].$filler)&&t.visible&&(a=(r=t.el)._view,i=r._children||[],o=t.mapper,s=a.backgroundColor||X.global.defaultColor,o&&s&&i.length&&(se.canvas.clipArea(d,e.chartArea),za(d,i,o,a,s,r._loop),se.canvas.unclipArea(d)))}},$a=se.rtl.getRtlAdapter,Ba=se.noop,Ua=se.valueOrDefault;function Ga(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}X._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,a=r.getDatasetMeta(n);a.hidden=null===a.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var a=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:a.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,rotation:a.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,a=document.createElement("ul"),i=e.data.datasets;for(a.setAttribute("class",e.id+"-legend"),t=0,n=i.length;tl.width)&&(c+=o+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:r,height:o},u[u.length-1]+=r+n.padding})),l.height+=c}else{var h=n.padding,f=e.columnWidths=[],m=e.columnHeights=[],p=n.padding,_=0,g=0;se.each(e.legendItems,(function(e,t){var r=Ga(n,o)+o/2+a.measureText(e.text).width;t>0&&g+o+2*h>l.height&&(p+=_+n.padding,f.push(_),m.push(g),_=0,g=0),_=Math.max(_,r),g+=o+h,s[t]={left:0,top:0,width:r,height:o}})),p+=_,f.push(_),m.push(g),l.width+=p}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:Ba,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=X.global,a=r.defaultColor,i=r.elements.line,o=e.height,s=e.columnHeights,l=e.width,d=e.lineWidths;if(t.display){var u,c=$a(t.rtl,e.left,e.minSize.width),h=e.ctx,f=Ua(n.fontColor,r.defaultFontColor),m=se.options._parseFont(n),p=m.size;h.textAlign=c.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=m.string;var _=Ga(n,p),g=e.legendHitBoxes,v=function(e,t,r){if(!(isNaN(_)||_<=0)){h.save();var o=Ua(r.lineWidth,i.borderWidth);if(h.fillStyle=Ua(r.fillStyle,a),h.lineCap=Ua(r.lineCap,i.borderCapStyle),h.lineDashOffset=Ua(r.lineDashOffset,i.borderDashOffset),h.lineJoin=Ua(r.lineJoin,i.borderJoinStyle),h.lineWidth=o,h.strokeStyle=Ua(r.strokeStyle,a),h.setLineDash&&h.setLineDash(Ua(r.lineDash,i.borderDash)),n&&n.usePointStyle){var s=_*Math.SQRT2/2,l=c.xPlus(e,_/2),d=t+p/2;se.canvas.drawPoint(h,r.pointStyle,s,l,d,r.rotation)}else h.fillRect(c.leftForLtr(e,_),t,_,p),0!==o&&h.strokeRect(c.leftForLtr(e,_),t,_,p);h.restore()}},y=function(e,t,n,r){var a=p/2,i=c.xPlus(e,_+a),o=t+a;h.fillText(n.text,i,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(i,o),h.lineTo(c.xPlus(i,r),o),h.stroke())},b=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},M=e.isHorizontal();u=M?{x:e.left+b(l,d[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+b(o,s[0]),line:0},se.rtl.overrideTextDirection(e.ctx,t.textDirection);var w=p+n.padding;se.each(e.legendItems,(function(t,r){var a=h.measureText(t.text).width,i=_+p/2+a,f=u.x,m=u.y;c.setWidth(e.minSize.width),M?r>0&&f+i+n.padding>e.left+e.minSize.width&&(m=u.y+=w,u.line++,f=u.x=e.left+b(l,d[u.line])):r>0&&m+w>e.top+e.minSize.height&&(f=u.x=f+e.columnWidths[u.line]+n.padding,u.line++,m=u.y=e.top+b(o,s[u.line]));var k=c.x(f);v(k,m,t),g[r].left=c.leftForLtr(k,g[r].width),g[r].top=m,y(k,m,t,a),M?u.x+=i+n.padding:u.y+=w})),se.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,a,i=this;if(e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom)for(a=i.legendHitBoxes,n=0;n=(r=a[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return i.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,a="mouseup"===e.type?"click":e.type;if("mousemove"===a){if(!r.onHover&&!r.onLeave)return}else{if("click"!==a)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===a?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function Za(e,t){var n=new Ja({ctx:e.ctx,options:t,chart:e});Bt.configure(e,n,t),Bt.addBox(e,n),e.legend=n}var qa={id:"legend",_element:Ja,beforeInit:function(e){var t=e.options.legend;t&&Za(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(se.mergeIf(t,X.global.legend),n?(Bt.configure(e,n,t),n.options=t):Za(e,t)):n&&(Bt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Ka=se.noop;X._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Xa=pe.extend({initialize:function(e){var t=this;se.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:Ka,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Ka,beforeSetDimensions:Ka,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Ka,beforeBuildLabels:Ka,buildLabels:Ka,afterBuildLabels:Ka,beforeFit:Ka,fit:function(){var e,t=this,n=t.options,r=t.minSize={},a=t.isHorizontal();n.display?(e=(se.isArray(n.text)?n.text.length:1)*se.options._parseFont(n).lineHeight+2*n.padding,t.width=r.width=a?t.maxWidth:e,t.height=r.height=a?e:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:Ka,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,a,i,o=se.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,d=0,u=e.top,c=e.left,h=e.bottom,f=e.right;t.fillStyle=se.valueOrDefault(n.fontColor,X.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(a=c+(f-c)/2,i=u+l,r=f-c):(a="left"===n.position?c+l:f-l,i=u+(h-u)/2,r=h-u,d=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(a,i),t.rotate(d),t.textAlign="center",t.textBaseline="middle";var m=n.text;if(se.isArray(m))for(var p=0,_=0;_{n(95767),n(68132),n(48388),n(37470),n(94882),n(41520),n(27476),n(79622),n(89375),n(43533),n(84672),n(64157),n(35095),n(49892),n(75115),n(99176),n(68838),n(96253),n(39730),n(6059),n(48377),n(71084),n(64299),n(11246),n(30726),n(1901),n(75972),n(53403),n(92516),n(49371),n(86479),n(91736),n(51889),n(65177),n(81246),n(76503),n(66786),n(50932),n(57526),n(21591),n(9073),n(80347),n(30579),n(4669),n(67710),n(45789),n(33514),n(99978),n(58472),n(86946),n(35068),n(413),n(50191),n(98306),n(64564),n(39115),n(29539),n(96620),n(62850),n(10823),n(17732),n(40856),n(80703),n(91539),n(5292),n(45177),n(73694),n(37648),n(27795),n(4531),n(23605),n(6780),n(69937),n(10511),n(81822),n(19977),n(91031),n(46331),n(41560),n(20774),n(30522),n(58295),n(87842),n(50110),n(20075),n(24336),n(19371),n(98837),n(26773),n(15745),n(33057),n(3750),n(23369),n(99564),n(32e3),n(48977),n(52310),n(94899),n(31842),n(56997),n(83946),n(18269),n(66108),n(76774),n(21466),n(59357),n(76142),n(51876),n(40851),n(88416),n(98184),n(30147),n(59192),n(30142),n(1786),n(75368),n(46964),n(62152),n(74821),n(79103),n(81303),n(83318),n(70162),n(33834),n(21572),n(82139),n(10685),n(85535),n(17347),n(83049),n(96633),n(68989),n(78270),n(64510),n(73984),n(75769),n(50055),n(96014),e.exports=n(25645)},70911:(e,t,n)=>{n(1268),e.exports=n(25645).Array.flatMap},10990:(e,t,n)=>{n(62773),e.exports=n(25645).Array.includes},15434:(e,t,n)=>{n(83276),e.exports=n(25645).Object.entries},78051:(e,t,n)=>{n(98351),e.exports=n(25645).Object.getOwnPropertyDescriptors},38250:(e,t,n)=>{n(96409),e.exports=n(25645).Object.values},54952:(e,t,n)=>{"use strict";n(40851),n(9865),e.exports=n(25645).Promise.finally},6197:(e,t,n)=>{n(92770),e.exports=n(25645).String.padEnd},14160:(e,t,n)=>{n(41784),e.exports=n(25645).String.padStart},54039:(e,t,n)=>{n(94325),e.exports=n(25645).String.trimRight},96728:(e,t,n)=>{n(65869),e.exports=n(25645).String.trimLeft},93568:(e,t,n)=>{n(79665),e.exports=n(28787).f("asyncIterator")},40115:(e,t,n)=>{n(34579),e.exports=n(11327).global},85663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},12159:(e,t,n)=>{var r=n(36727);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},11327:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},19216:(e,t,n)=>{var r=n(85663);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},89666:(e,t,n)=>{e.exports=!n(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},97467:(e,t,n)=>{var r=n(36727),a=n(33938).document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},83856:(e,t,n)=>{var r=n(33938),a=n(11327),i=n(19216),o=n(41818),s=n(27069),l=function(e,t,n){var d,u,c,h=e&l.F,f=e&l.G,m=e&l.S,p=e&l.P,_=e&l.B,g=e&l.W,v=f?a:a[t]||(a[t]={}),y=v.prototype,b=f?r:m?r[t]:(r[t]||{}).prototype;for(d in f&&(n=t),n)(u=!h&&b&&void 0!==b[d])&&s(v,d)||(c=u?b[d]:n[d],v[d]=f&&"function"!=typeof b[d]?n[d]:_&&u?i(c,r):g&&b[d]==c?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):p&&"function"==typeof c?i(Function.call,c):c,p&&((v.virtual||(v.virtual={}))[d]=c,e&l.R&&y&&!y[d]&&o(y,d,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},33938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},27069:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},41818:(e,t,n)=>{var r=n(4743),a=n(83101);e.exports=n(89666)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},33758:(e,t,n)=>{e.exports=!n(89666)&&!n(7929)((function(){return 7!=Object.defineProperty(n(97467)("div"),"a",{get:function(){return 7}}).a}))},36727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},4743:(e,t,n)=>{var r=n(12159),a=n(33758),i=n(33206),o=Object.defineProperty;t.f=n(89666)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},83101:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},33206:(e,t,n)=>{var r=n(36727);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},34579:(e,t,n)=>{var r=n(83856);r(r.G,{global:n(33938)})},24963:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},83365:(e,t,n)=>{var r=n(92032);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},17722:(e,t,n)=>{var r=n(86314)("unscopables"),a=Array.prototype;null==a[r]&&n(87728)(a,r,{}),e.exports=function(e){a[r][e]=!0}},76793:(e,t,n)=>{"use strict";var r=n(24496)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},83328:e=>{e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},27007:(e,t,n)=>{var r=n(55286);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},5216:(e,t,n)=>{"use strict";var r=n(20508),a=n(92337),i=n(10875);e.exports=[].copyWithin||function(e,t){var n=r(this),o=i(n.length),s=a(e,o),l=a(t,o),d=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===d?o:a(d,o))-l,o-s),c=1;for(l0;)l in n?n[s]=n[l]:delete n[s],s+=c,l+=c;return n}},46852:(e,t,n)=>{"use strict";var r=n(20508),a=n(92337),i=n(10875);e.exports=function(e){for(var t=r(this),n=i(t.length),o=arguments.length,s=a(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,d=void 0===l?n:a(l,n);d>s;)t[s++]=e;return t}},79315:(e,t,n)=>{var r=n(22110),a=n(10875),i=n(92337);e.exports=function(e){return function(t,n,o){var s,l=r(t),d=a(l.length),u=i(o,d);if(e&&n!=n){for(;d>u;)if((s=l[u++])!=s)return!0}else for(;d>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},10050:(e,t,n)=>{var r=n(741),a=n(49797),i=n(20508),o=n(10875),s=n(16886);e.exports=function(e,t){var n=1==e,l=2==e,d=3==e,u=4==e,c=6==e,h=5==e||c,f=t||s;return function(t,s,m){for(var p,_,g=i(t),v=a(g),y=r(s,m,3),b=o(v.length),M=0,w=n?f(t,b):l?f(t,0):void 0;b>M;M++)if((h||M in v)&&(_=y(p=v[M],M,g),e))if(n)w[M]=_;else if(_)switch(e){case 3:return!0;case 5:return p;case 6:return M;case 2:w.push(p)}else if(u)return!1;return c?-1:d||u?u:w}}},37628:(e,t,n)=>{var r=n(24963),a=n(20508),i=n(49797),o=n(10875);e.exports=function(e,t,n,s,l){r(t);var d=a(e),u=i(d),c=o(d.length),h=l?c-1:0,f=l?-1:1;if(n<2)for(;;){if(h in u){s=u[h],h+=f;break}if(h+=f,l?h<0:c<=h)throw TypeError("Reduce of empty array with no initial value")}for(;l?h>=0:c>h;h+=f)h in u&&(s=t(s,u[h],h,d));return s}},42736:(e,t,n)=>{var r=n(55286),a=n(4302),i=n(86314)("species");e.exports=function(e){var t;return a(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!a(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},16886:(e,t,n)=>{var r=n(42736);e.exports=function(e,t){return new(r(e))(t)}},34398:(e,t,n)=>{"use strict";var r=n(24963),a=n(55286),i=n(97242),o=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var r=[],a=0;a{var r=n(92032),a=n(86314)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:i?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},92032:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},9824:(e,t,n)=>{"use strict";var r=n(99275).f,a=n(42503),i=n(24408),o=n(741),s=n(83328),l=n(3531),d=n(42923),u=n(15436),c=n(2974),h=n(67057),f=n(84728).fastKey,m=n(1616),p=h?"_s":"size",_=function(e,t){var n,r=f(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,d){var u=e((function(e,r){s(e,u,t,"_i"),e._t=t,e._i=a(null),e._f=void 0,e._l=void 0,e[p]=0,null!=r&&l(r,n,e[d],e)}));return i(u.prototype,{clear:function(){for(var e=m(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[p]=0},delete:function(e){var n=m(this,t),r=_(n,e);if(r){var a=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=a),a&&(a.p=i),n._f==r&&(n._f=a),n._l==r&&(n._l=i),n[p]--}return!!r},forEach:function(e){m(this,t);for(var n,r=o(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!_(m(this,t),e)}}),h&&r(u.prototype,"size",{get:function(){return m(this,t)[p]}}),u},def:function(e,t,n){var r,a,i=_(e,t);return i?i.v=n:(e._l=i={i:a=f(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[p]++,"F"!==a&&(e._i[a]=i)),e},getEntry:_,setStrong:function(e,t,n){d(e,t,(function(e,n){this._t=m(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,u(1))}),n?"entries":"values",!n,!0),c(t)}}},23657:(e,t,n)=>{"use strict";var r=n(24408),a=n(84728).getWeak,i=n(27007),o=n(55286),s=n(83328),l=n(3531),d=n(10050),u=n(79181),c=n(1616),h=d(5),f=d(6),m=0,p=function(e){return e._l||(e._l=new _)},_=function(){this.a=[]},g=function(e,t){return h(e.a,(function(e){return e[0]===t}))};_.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var d=e((function(e,r){s(e,d,t,"_i"),e._t=t,e._i=m++,e._l=void 0,null!=r&&l(r,n,e[i],e)}));return r(d.prototype,{delete:function(e){if(!o(e))return!1;var n=a(e);return!0===n?p(c(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!o(e))return!1;var n=a(e);return!0===n?p(c(this,t)).has(e):n&&u(n,this._i)}}),d},def:function(e,t,n){var r=a(i(t),!0);return!0===r?p(e).set(t,n):r[e._i]=n,e},ufstore:p}},45795:(e,t,n)=>{"use strict";var r=n(3816),a=n(42985),i=n(77234),o=n(24408),s=n(84728),l=n(3531),d=n(83328),u=n(55286),c=n(74253),h=n(7462),f=n(22943),m=n(40266);e.exports=function(e,t,n,p,_,g){var v=r[e],y=v,b=_?"set":"add",M=y&&y.prototype,w={},k=function(e){var t=M[e];i(M,e,"delete"==e||"has"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(g||M.forEach&&!c((function(){(new y).entries().next()})))){var L=new y,x=L[b](g?{}:-0,1)!=L,D=c((function(){L.has(1)})),Y=h((function(e){new y(e)})),S=!g&&c((function(){for(var e=new y,t=5;t--;)e[b](t,t);return!e.has(-0)}));Y||((y=t((function(t,n){d(t,y,e);var r=m(new v,t,y);return null!=n&&l(n,_,r[b],r),r}))).prototype=M,M.constructor=y),(D||S)&&(k("delete"),k("has"),_&&k("get")),(S||x)&&k(b),g&&M.clear&&delete M.clear}else y=p.getConstructor(t,e,_,b),o(y.prototype,n),s.NEED=!0;return f(y,e),w[e]=y,a(a.G+a.W+a.F*(y!=v),w),g||p.setStrong(y,e,_),y}},25645:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},92811:(e,t,n)=>{"use strict";var r=n(99275),a=n(90681);e.exports=function(e,t,n){t in e?r.f(e,t,a(0,n)):e[t]=n}},741:(e,t,n)=>{var r=n(24963);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},53537:(e,t,n)=>{"use strict";var r=n(74253),a=Date.prototype.getTime,i=Date.prototype.toISOString,o=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-50000000000001))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(a.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+o(e.getUTCMonth()+1)+"-"+o(e.getUTCDate())+"T"+o(e.getUTCHours())+":"+o(e.getUTCMinutes())+":"+o(e.getUTCSeconds())+"."+(n>99?n:"0"+o(n))+"Z"}:i},870:(e,t,n)=>{"use strict";var r=n(27007),a=n(21689),i="number";e.exports=function(e){if("string"!==e&&e!==i&&"default"!==e)throw TypeError("Incorrect hint");return a(r(this),e!=i)}},91355:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},67057:(e,t,n)=>{e.exports=!n(74253)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},62457:(e,t,n)=>{var r=n(55286),a=n(3816).document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},74430:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},5541:(e,t,n)=>{var r=n(47184),a=n(64548),i=n(14682);e.exports=function(e){var t=r(e),n=a.f;if(n)for(var o,s=n(e),l=i.f,d=0;s.length>d;)l.call(e,o=s[d++])&&t.push(o);return t}},42985:(e,t,n)=>{var r=n(3816),a=n(25645),i=n(87728),o=n(77234),s=n(741),l=function(e,t,n){var d,u,c,h,f=e&l.F,m=e&l.G,p=e&l.S,_=e&l.P,g=e&l.B,v=m?r:p?r[t]||(r[t]={}):(r[t]||{}).prototype,y=m?a:a[t]||(a[t]={}),b=y.prototype||(y.prototype={});for(d in m&&(n=t),n)c=((u=!f&&v&&void 0!==v[d])?v:n)[d],h=g&&u?s(c,r):_&&"function"==typeof c?s(Function.call,c):c,v&&o(v,d,c,e&l.U),y[d]!=c&&i(y,d,h),_&&b[d]!=c&&(b[d]=c)};r.core=a,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},8852:(e,t,n)=>{var r=n(86314)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},74253:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},28082:(e,t,n)=>{"use strict";n(18269);var r=n(77234),a=n(87728),i=n(74253),o=n(91355),s=n(86314),l=n(21165),d=s("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),c=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=f?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[d]=function(){return n}),n[h](""),!t})):void 0;if(!f||!m||"replace"===e&&!u||"split"===e&&!c){var p=/./[h],_=n(o,h,""[e],(function(e,t,n,r,a){return t.exec===l?f&&!a?{done:!0,value:p.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),g=_[0],v=_[1];r(String.prototype,e,g),a(RegExp.prototype,h,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},53218:(e,t,n)=>{"use strict";var r=n(27007);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},13325:(e,t,n)=>{"use strict";var r=n(4302),a=n(55286),i=n(10875),o=n(741),s=n(86314)("isConcatSpreadable");e.exports=function e(t,n,l,d,u,c,h,f){for(var m,p,_=u,g=0,v=!!h&&o(h,f,3);g0)_=e(t,n,m,i(m.length),_,c-1)-1;else{if(_>=9007199254740991)throw TypeError();t[_]=m}_++}g++}return _}},3531:(e,t,n)=>{var r=n(741),a=n(28851),i=n(86555),o=n(27007),s=n(10875),l=n(69002),d={},u={},c=e.exports=function(e,t,n,c,h){var f,m,p,_,g=h?function(){return e}:l(e),v=r(n,c,t?2:1),y=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(f=s(e.length);f>y;y++)if((_=t?v(o(m=e[y])[0],m[1]):v(e[y]))===d||_===u)return _}else for(p=g.call(e);!(m=p.next()).done;)if((_=a(p,v,m.value,t))===d||_===u)return _};c.BREAK=d,c.RETURN=u},40018:(e,t,n)=>{e.exports=n(3825)("native-function-to-string",Function.toString)},3816:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},79181:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},87728:(e,t,n)=>{var r=n(99275),a=n(90681);e.exports=n(67057)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},40639:(e,t,n)=>{var r=n(3816).document;e.exports=r&&r.documentElement},1734:(e,t,n)=>{e.exports=!n(67057)&&!n(74253)((function(){return 7!=Object.defineProperty(n(62457)("div"),"a",{get:function(){return 7}}).a}))},40266:(e,t,n)=>{var r=n(55286),a=n(27375).set;e.exports=function(e,t,n){var i,o=t.constructor;return o!==n&&"function"==typeof o&&(i=o.prototype)!==n.prototype&&r(i)&&a&&a(e,i),e}},97242:e=>{e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},49797:(e,t,n)=>{var r=n(92032);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},86555:(e,t,n)=>{var r=n(87234),a=n(86314)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[a]===e)}},4302:(e,t,n)=>{var r=n(92032);e.exports=Array.isArray||function(e){return"Array"==r(e)}},18367:(e,t,n)=>{var r=n(55286),a=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&a(e)===e}},55286:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},55364:(e,t,n)=>{var r=n(55286),a=n(92032),i=n(86314)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==a(e))}},28851:(e,t,n)=>{var r=n(27007);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},49988:(e,t,n)=>{"use strict";var r=n(42503),a=n(90681),i=n(22943),o={};n(87728)(o,n(86314)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:a(1,n)}),i(e,t+" Iterator")}},42923:(e,t,n)=>{"use strict";var r=n(4461),a=n(42985),i=n(77234),o=n(87728),s=n(87234),l=n(49988),d=n(22943),u=n(468),c=n(86314)("iterator"),h=!([].keys&&"next"in[].keys()),f="keys",m="values",p=function(){return this};e.exports=function(e,t,n,_,g,v,y){l(n,t,_);var b,M,w,k=function(e){if(!h&&e in Y)return Y[e];switch(e){case f:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},L=t+" Iterator",x=g==m,D=!1,Y=e.prototype,S=Y[c]||Y["@@iterator"]||g&&Y[g],T=S||k(g),O=g?x?k("entries"):T:void 0,j="Array"==t&&Y.entries||S;if(j&&(w=u(j.call(new e)))!==Object.prototype&&w.next&&(d(w,L,!0),r||"function"==typeof w[c]||o(w,c,p)),x&&S&&S.name!==m&&(D=!0,T=function(){return S.call(this)}),r&&!y||!h&&!D&&Y[c]||o(Y,c,T),s[t]=T,s[L]=p,g)if(b={values:x?T:k(m),keys:v?T:k(f),entries:O},y)for(M in b)M in Y||i(Y,M,b[M]);else a(a.P+a.F*(h||D),t,b);return b}},7462:(e,t,n)=>{var r=n(86314)("iterator"),a=!1;try{var i=[7][r]();i.return=function(){a=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var i=[7],o=i[r]();o.next=function(){return{done:n=!0}},i[r]=function(){return o},e(i)}catch(e){}return n}},15436:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},87234:e=>{e.exports={}},4461:e=>{e.exports=!1},13086:e=>{var t=Math.expm1;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:t},34934:(e,t,n)=>{var r=n(61801),a=Math.pow,i=a(2,-52),o=a(2,-23),s=a(2,127)*(2-o),l=a(2,-126);e.exports=Math.fround||function(e){var t,n,a=Math.abs(e),d=r(e);return as||n!=n?d*(1/0):d*n}},46206:e=>{e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},61801:e=>{e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},84728:(e,t,n)=>{var r=n(93953)("meta"),a=n(55286),i=n(79181),o=n(99275).f,s=0,l=Object.isExtensible||function(){return!0},d=!n(74253)((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},c=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return d&&c.NEED&&l(e)&&!i(e,r)&&u(e),e}}},14351:(e,t,n)=>{var r=n(3816),a=n(74193).set,i=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,l="process"==n(92032)(o);e.exports=function(){var e,t,n,d=function(){var r,a;for(l&&(r=o.domain)&&r.exit();e;){a=e.fn,e=e.next;try{a()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){o.nextTick(d)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(d)}}else n=function(){a.call(r,d)};else{var c=!0,h=document.createTextNode("");new i(d).observe(h,{characterData:!0}),n=function(){h.data=c=!c}}return function(r){var a={fn:r,next:void 0};t&&(t.next=a),e||(e=a,n()),t=a}}},43499:(e,t,n)=>{"use strict";var r=n(24963);function a(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new a(e)}},35345:(e,t,n)=>{"use strict";var r=n(67057),a=n(47184),i=n(64548),o=n(14682),s=n(20508),l=n(49797),d=Object.assign;e.exports=!d||n(74253)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||Object.keys(d({},t)).join("")!=r}))?function(e,t){for(var n=s(e),d=arguments.length,u=1,c=i.f,h=o.f;d>u;)for(var f,m=l(arguments[u++]),p=c?a(m).concat(c(m)):a(m),_=p.length,g=0;_>g;)f=p[g++],r&&!h.call(m,f)||(n[f]=m[f]);return n}:d},42503:(e,t,n)=>{var r=n(27007),a=n(35588),i=n(74430),o=n(69335)("IE_PROTO"),s=function(){},l=function(){var e,t=n(62457)("iframe"),r=i.length;for(t.style.display="none",n(40639).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("