@justifi/webcomponents 5.7.3-rc-01 → 5.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Checkout-BsYZoJ0a.js → Checkout-TZnRz3-3.js} +3 -1
- package/dist/cjs/{ComponentError-CEv9ltwy.js → ComponentError-C4MdBBMe.js} +0 -2
- package/dist/cjs/{Refund-BDFOEJv_.js → Refund-BFE-2OxN.js} +56 -0
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -7
- package/dist/cjs/{bank-account-form_7.cjs.entry.js → bank-account-form_9.cjs.entry.js} +190 -20
- package/dist/cjs/{business-additional-questions-schema-CHOaeZot.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
- package/dist/cjs/{business-identity-schema-DmpEndsx.js → business-identity-schema-Diqj_WVQ.js} +10 -10
- package/dist/cjs/{business.service-ev-3rHag.js → business.service-DNvLrr-n.js} +3 -4
- package/dist/cjs/{Analytics-DYN4hp2b.js → check-pkg-version-BlUxyRaM.js} +23 -24
- package/dist/cjs/{checkout.service-D4hTYr1i.js → checkout.service-Bx0RBq-I.js} +3 -4
- package/dist/cjs/checkouts-list-core.cjs.entry.js +4 -5
- package/dist/cjs/custom-popper_4.cjs.entry.js +6 -6
- package/dist/cjs/{dispute.service-Dru9NStj.js → dispute.service-DbUcp4sD.js} +3 -4
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/{get-business-BiEc-jdH.js → get-business-BJrtsomz.js} +2 -2
- package/dist/cjs/{get-payment-details-AOibpML7.js → get-payment-details-C7Ezks0M.js} +4 -5
- package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-CXEQkjDm.js} +2 -2
- package/dist/cjs/{get-subaccounts-Dw7CbPDi.js → get-subaccounts-UpfFbDHH.js} +4 -5
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/iframe-input-styles-state-BJ9xnomM.js +26 -0
- package/dist/cjs/{hidden-input_2.cjs.entry.js → iframe-input.cjs.entry.js} +14 -111
- package/dist/cjs/{form-CWW8IM-X.js → index.esm-CVuJLXJZ.js} +10022 -10022
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +50 -24
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -13
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +42 -42
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-business-form.cjs.entry.js +16 -17
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +67 -24
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -5
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -11
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -13
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -9
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -13
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -13
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -18
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +18 -17
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -6
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -5
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -16
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DF9mLjoQ.js → package-v-c3ZR5a.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/{payment-provisioning-actions-SNMCdsyF.js → payment-provisioning-actions-BkWSDJQQ.js} +2 -2
- package/dist/cjs/{payment.service-rsnscZu7.js → payment.service-CVZgDrZw.js} +3 -4
- package/dist/cjs/payments-list-core.cjs.entry.js +4 -5
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payout.service-BnmI3X4n.js → payout.service-D6kmeDsy.js} +3 -4
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -5
- package/dist/cjs/{schema-validations-C0BNwMBi.js → schema-validations-BSeMee-o.js} +31 -54
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -6
- package/dist/cjs/{terminal-orders-table-OxMHSAJ1.js → terminal-orders-table-CUOWHQ6V.js} +3 -4
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service--PPaq5xS.js → terminal.service-BxRchD7X.js} +3 -4
- package/dist/cjs/terminals-list-core.cjs.entry.js +4 -5
- package/dist/cjs/{utils-IGCnjtqc.js → utils-l0veqT9y.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Checkout.js +3 -1
- package/dist/collection/api/ComponentError.js +0 -2
- package/dist/collection/collection-manifest.json +1 -8
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +36 -8
- package/dist/collection/components/business-forms/schemas/schema-validations.js +1 -47
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -11
- package/dist/collection/components/checkout/payment-method-options.js +33 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +240 -0
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +12 -10
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -10
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +5 -10
- package/dist/docs.json +250 -841
- package/dist/esm/{Api-CqimcNgb.js → Api-BNYhCiE2.js} +1 -1
- package/dist/esm/{Checkout-CV6qgU0r.js → Checkout-B9LrTq63.js} +4 -2
- package/dist/esm/{ComponentError-BhrFjjAs.js → ComponentError-SdntD1xf.js} +0 -2
- package/dist/esm/{Payment-BEvE6jAC.js → Payment-BGiKmQYR.js} +1 -1
- package/dist/esm/{Refund-CwUn_GFj.js → Refund-DDIEc_gu.js} +56 -2
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-D_Q0kAPD.js → badge-C-nwyQ3h.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -11
- package/dist/esm/{bank-account-form_7.entry.js → bank-account-form_9.entry.js} +186 -18
- package/dist/esm/{business-additional-questions-schema-0lssJqN7.js → business-additional-questions-schema-uQlQ8fXQ.js} +2 -2
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-Bel1K5mu.js → business-identity-schema-BsrgqgDl.js} +2 -2
- package/dist/esm/{business.service-BM8hLxHS.js → business.service-DP2HUV0w.js} +5 -6
- package/dist/esm/{button-BVAxQPpP.js → button-BGlG9iX5.js} +1 -1
- package/dist/esm/{Analytics-DR277kvb.js → check-pkg-version-Dff5h73V.js} +25 -26
- package/dist/esm/{checkout.service-CuCgG9hv.js → checkout.service-DkTEFCSZ.js} +5 -6
- package/dist/esm/checkouts-list-core.entry.js +11 -12
- package/dist/esm/{checkouts-table-Cc6U-0md.js → checkouts-table-rhDm-zAB.js} +3 -3
- package/dist/esm/custom-popper_4.entry.js +8 -8
- package/dist/esm/{dispute.service-rB4Hq6ot.js → dispute.service-CUcw-v4N.js} +5 -6
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-_SAT-ts2.js → form-control-error-text-CwJc1ShT.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-Cjeu_VrV.js → form-control-help-text-COx__-BM.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +6 -6
- package/dist/esm/form-control-number-masked_2.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/{get-business-BSRtbTh7.js → get-business-GEPTefIj.js} +2 -2
- package/dist/esm/{get-payment-details-DtkGDTwo.js → get-payment-details-Ea6HDOQH.js} +6 -7
- package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D7IYYqVL.js} +2 -2
- package/dist/esm/{get-subaccounts-C-ENQBmY.js → get-subaccounts-DcHphsRK.js} +7 -8
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-5FIT-wD7.js → header-1-Dj4_I_9S.js} +1 -1
- package/dist/esm/{header-3-Ce9WLWBm.js → header-3-CLoMDfp0.js} +1 -1
- package/dist/esm/iframe-input-styles-state-CfSmDqfA.js +23 -0
- package/dist/esm/{hidden-input_2.entry.js → iframe-input.entry.js} +10 -106
- package/dist/esm/{form-BjGUIqxU.js → index.esm-BCNUj0Dx.js} +10022 -10022
- package/dist/esm/{insurance-state-BcwZy_5w.js → insurance-state-CUJP_TDB.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +46 -20
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -13
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- package/dist/esm/justifi-business-details.entry.js +13 -14
- package/dist/esm/justifi-business-form.entry.js +19 -20
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +8 -8
- package/dist/esm/justifi-checkout.entry.js +66 -23
- package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -8
- package/dist/esm/justifi-checkouts-list.entry.js +15 -16
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +11 -12
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -17
- package/dist/esm/justifi-gross-payment-chart.entry.js +11 -12
- package/dist/esm/justifi-order-terminals.entry.js +15 -16
- package/dist/esm/justifi-owner-form_3.entry.js +14 -15
- package/dist/esm/justifi-payment-details.entry.js +13 -14
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -12
- package/dist/esm/justifi-payment-transactions-list.entry.js +14 -15
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +15 -16
- package/dist/esm/justifi-payout-details.entry.js +13 -14
- package/dist/esm/justifi-payout-transactions-list.entry.js +14 -15
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +17 -18
- package/dist/esm/justifi-refund-payment.entry.js +15 -16
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -18
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -9
- package/dist/esm/justifi-terminal-orders-list.entry.js +13 -14
- package/dist/esm/justifi-terminals-list-filters.entry.js +7 -8
- package/dist/esm/justifi-terminals-list.entry.js +15 -16
- package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -19
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CyXXks-Q.js → package-DzXsHdKv.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-_6eQgwfE.js → parts-BrLVc_85.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +14 -14
- package/dist/esm/{payment-provisioning-actions-2qP7AtHj.js → payment-provisioning-actions-BIfyW239.js} +2 -2
- package/dist/esm/{payment.service-DoUv1QsX.js → payment.service-BBse35Bb.js} +5 -6
- package/dist/esm/payments-list-core.entry.js +12 -13
- package/dist/esm/{payments-status-BeL2gi3P.js → payments-status-CO0mZyxH.js} +1 -1
- package/dist/esm/{payments-table-MrDAlH2o.js → payments-table-BYmcN_eJ.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-B_Fm08zQ.js → payout.service-DYk7xoLp.js} +5 -6
- package/dist/esm/payouts-list-core.entry.js +12 -13
- package/dist/esm/{payouts-status-BxbhUjA3.js → payouts-status-BqhlFWZJ.js} +1 -1
- package/dist/esm/{payouts-table-HoX3UYIj.js → payouts-table-BoNMXUDt.js} +3 -3
- package/dist/esm/{schema-validations-DYV7urvw.js → schema-validations-DLWfpHyI.js} +2 -23
- package/dist/esm/{skeleton-CPNYhX-V.js → skeleton-D6agoQ_l.js} +1 -1
- package/dist/esm/{spinner-Cl-6YJPf.js → spinner-C8twYXzL.js} +1 -1
- package/dist/esm/{table-RCk8zh4L.js → table-BzdzS7PI.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +11 -12
- package/dist/esm/{terminal-orders-table-DxHLNkx_.js → terminal-orders-table-BxZFOqli.js} +7 -8
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-2VkdfNas.js → terminal.service-WIpzxBkU.js} +5 -6
- package/dist/esm/terminals-list-core.entry.js +11 -12
- package/dist/esm/{terminals-table-v-LOevYA.js → terminals-table-DVreYpwc.js} +3 -3
- package/dist/esm/{utils-BjLkBMLe.js → utils-DB5fh6Iv.js} +1 -1
- package/dist/esm/{utils-1WrbuHVR.js → utils-DGozGJLI.js} +1 -1
- package/dist/esm/{utils-BZvep88z.js → utils-Dccsn9BY.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +3 -3
- package/dist/module/Refund.js +55 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-document-inputs.js +1 -2
- package/dist/module/bank-account-form2.js +2 -2
- package/dist/module/billing-form.js +3 -3
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +37 -11
- package/dist/module/business-bank-account-form-step.js +0 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -2
- package/dist/module/business.service.js +0 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/{Analytics.js → check-pkg-version.js} +21 -22
- package/dist/module/checkout-core.js +38 -32
- package/dist/module/checkout.service.js +0 -1
- package/dist/module/checkouts-list-core2.js +2 -3
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-actions.js +0 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +2 -2
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/form.js +1 -1
- package/dist/module/get-payment-details.js +0 -1
- package/dist/module/get-subaccounts.js +0 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -2
- package/dist/module/justifi-checkout.js +99 -48
- package/dist/module/justifi-checkouts-list-filters.js +2 -3
- package/dist/module/justifi-checkouts-list.js +2 -3
- package/dist/module/justifi-dispute-management.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-order-terminals.js +4 -5
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -2
- package/dist/module/justifi-payment-transactions-list.js +4 -5
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -3
- package/dist/module/justifi-payout-details.js +1 -2
- package/dist/module/justifi-payout-transactions-list.js +4 -5
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -3
- package/dist/module/justifi-refund-payment.js +2 -3
- package/dist/module/justifi-season-interruption-insurance.js +11 -10
- package/dist/module/justifi-sezzle-payment-method.js +1 -108
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -4
- package/dist/module/justifi-terminal-orders-list.js +3 -4
- package/dist/module/justifi-terminals-list-filters.js +2 -3
- package/dist/module/justifi-terminals-list.js +3 -4
- package/dist/module/justifi-tokenize-payment-method.js +40 -42
- package/dist/module/package.js +3 -3
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-options.js +51 -34
- package/dist/module/payment.service.js +0 -1
- package/dist/module/payments-list-core2.js +2 -3
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +0 -1
- package/dist/module/payouts-list-core2.js +2 -3
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/saved-payment-method.js +22 -2
- package/dist/module/schema-validations.js +2 -23
- package/dist/module/sezzle-payment-method.js +104 -0
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/terminal-orders-list-core2.js +2 -3
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +0 -1
- package/dist/module/terminals-list-core2.js +2 -3
- package/dist/types/api/Checkout.d.ts +13 -14
- package/dist/types/api/ComponentError.d.ts +1 -3
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -7
- package/dist/types/components/checkout/checkout.d.ts +0 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
- package/dist/types/components/{modular-checkout-parts → checkout}/sezzle-payment-method.d.ts +8 -2
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
- package/dist/types/components.d.ts +22 -165
- package/dist/types/ui-components/form/iframe-input.d.ts +1 -2
- package/dist/webcomponents/p--B09FkmB.js +1 -0
- package/dist/webcomponents/p-08b3ec57.entry.js +1 -0
- package/dist/webcomponents/p-0b28597b.entry.js +1 -0
- package/dist/webcomponents/p-0b52d1dd.entry.js +1 -0
- package/dist/webcomponents/p-0b964616.entry.js +1 -0
- package/dist/webcomponents/p-186a25e3.entry.js +1 -0
- package/dist/webcomponents/p-234c0b0a.entry.js +1 -0
- package/dist/webcomponents/{p-df2ad580.entry.js → p-27a7ba0d.entry.js} +1 -1
- package/dist/webcomponents/p-297b4a1a.entry.js +1 -0
- package/dist/webcomponents/p-299c215b.entry.js +1 -0
- package/dist/webcomponents/p-2GKzt6ql.js +1 -0
- package/dist/webcomponents/p-39236b05.entry.js +1 -0
- package/dist/webcomponents/{p-5da3ba38.entry.js → p-3af7b1ee.entry.js} +1 -1
- package/dist/webcomponents/{p-15c63931.entry.js → p-3ddaea2d.entry.js} +1 -1
- package/dist/webcomponents/p-41ce682a.entry.js +1 -0
- package/dist/webcomponents/{p-5ea3cfca.entry.js → p-454d5cab.entry.js} +1 -1
- package/dist/webcomponents/p-4bf6f767.entry.js +1 -0
- package/dist/webcomponents/p-59a2ccdb.entry.js +1 -0
- package/dist/webcomponents/p-68425065.entry.js +1 -0
- package/dist/webcomponents/p-69e8b394.entry.js +1 -0
- package/dist/webcomponents/p-6ab28931.entry.js +1 -0
- package/dist/webcomponents/p-6f08cc3e.entry.js +1 -0
- package/dist/webcomponents/p-74412d52.entry.js +1 -0
- package/dist/webcomponents/p-77957f7f.entry.js +1 -0
- package/dist/webcomponents/p-7a254093.entry.js +20 -0
- package/dist/webcomponents/p-7db9f780.entry.js +1 -0
- package/dist/webcomponents/p-7fbdaa8a.entry.js +1 -0
- package/dist/webcomponents/p-86112ed3.entry.js +1 -0
- package/dist/webcomponents/p-863d53ef.entry.js +1 -0
- package/dist/webcomponents/p-8a62bc7a.entry.js +1 -0
- package/dist/webcomponents/p-8b02e43a.entry.js +1 -0
- package/dist/webcomponents/p-8f354461.entry.js +1 -0
- package/dist/webcomponents/{p-584ba20d.entry.js → p-90d36a2f.entry.js} +1 -1
- package/dist/webcomponents/{p-be51c7c5.entry.js → p-959d5f08.entry.js} +1 -1
- package/dist/webcomponents/p-972531a2.entry.js +1 -0
- package/dist/webcomponents/{p-b3e6d27c.entry.js → p-99ff608b.entry.js} +1 -1
- package/dist/webcomponents/p-9bb3ccba.entry.js +1 -0
- package/dist/webcomponents/{p-e8294f7e.entry.js → p-9be5b03a.entry.js} +1 -1
- package/dist/webcomponents/{p-f71b1ff0.entry.js → p-9e7c8e33.entry.js} +1 -1
- package/dist/webcomponents/p-9ef53bb1.entry.js +1 -0
- package/dist/webcomponents/p-AW4YV_IW.js +1 -0
- package/dist/webcomponents/p-B2ts3XP0.js +1 -0
- package/dist/webcomponents/p-BBEApkWm.js +1 -0
- package/dist/webcomponents/{p-B4MIwTdb.js → p-BC1KMlPG.js} +1 -1
- package/dist/webcomponents/p-BERbc4aX.js +1 -0
- package/dist/webcomponents/p-BLm_qZkx.js +1 -0
- package/dist/webcomponents/{p-BxfUcCXo.js → p-BTS3E50C.js} +1 -1
- package/dist/webcomponents/p-BdTK0wi9.js +1 -0
- package/dist/webcomponents/{p-Yj41tobi.js → p-BjDSEZvx.js} +1 -1
- package/dist/webcomponents/{p-9REosSLu.js → p-BnE7qgLh.js} +1 -1
- package/dist/webcomponents/{p-_6eQgwfE.js → p-BrLVc_85.js} +1 -1
- package/dist/webcomponents/{p-D3SYNGyb.js → p-C-78OQ89.js} +1 -1
- package/dist/webcomponents/p-C26QVwoo.js +1 -0
- package/dist/webcomponents/p-C5RuuShs.js +1 -0
- package/dist/webcomponents/p-C6qAZgXn.js +1 -0
- package/dist/webcomponents/{p-B7VsiIW-.js → p-CEqUppok.js} +1 -1
- package/dist/webcomponents/{p-BSUCBhkJ.js → p-CNv7zeGM.js} +1 -1
- package/dist/webcomponents/p-CU_goaUQ.js +1 -0
- package/dist/webcomponents/p-CgSKeuxa.js +1 -0
- package/dist/webcomponents/p-Co9WxzRf.js +1 -0
- package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
- package/dist/webcomponents/{p-CqVelcDt.js → p-DOb1iL29.js} +1 -1
- package/dist/webcomponents/p-DPUXZApk.js +1 -0
- package/dist/webcomponents/p-DVnVdicA.js +1 -0
- package/dist/webcomponents/p-DbhOyu_u.js +1 -0
- package/dist/webcomponents/p-DcwpS5VC.js +1 -0
- package/dist/webcomponents/p-DgPQlpzy.js +1 -0
- package/dist/webcomponents/{p-Ctw40vkk.js → p-DmLTJr3R.js} +1 -1
- package/dist/webcomponents/p-DniQ6yo6.js +1 -0
- package/dist/webcomponents/{p-D7js9xfx.js → p-DzFysjCc.js} +1 -1
- package/dist/webcomponents/p-DzXsHdKv.js +1 -0
- package/dist/webcomponents/{p-BhLPwu1L.js → p-EVfmZi89.js} +1 -1
- package/dist/webcomponents/p-JOSiCHl7.js +1 -0
- package/dist/webcomponents/p-SdntD1xf.js +1 -0
- package/dist/webcomponents/p-UyFPa3Jb.js +1 -0
- package/dist/webcomponents/p-a1860b96.entry.js +1 -0
- package/dist/webcomponents/{p-ea664ada.entry.js → p-a7f5262a.entry.js} +1 -1
- package/dist/webcomponents/{p-712220f9.entry.js → p-ae62bc55.entry.js} +1 -1
- package/dist/webcomponents/p-am93SGf-.js +1 -0
- package/dist/webcomponents/p-b2086753.entry.js +1 -0
- package/dist/webcomponents/p-b3de3312.entry.js +1 -0
- package/dist/webcomponents/p-b4da0e31.entry.js +1 -0
- package/dist/webcomponents/{p-ff223825.entry.js → p-ba7c7025.entry.js} +1 -1
- package/dist/webcomponents/p-bd387500.entry.js +1 -0
- package/dist/webcomponents/p-c3b8c25f.entry.js +1 -0
- package/dist/webcomponents/p-c5f3f2cc.entry.js +1 -0
- package/dist/webcomponents/p-c60219ba.entry.js +1 -0
- package/dist/webcomponents/p-caa90e8c.entry.js +1 -0
- package/dist/webcomponents/{p-9a17fd5a.entry.js → p-d144c5e5.entry.js} +1 -1
- package/dist/webcomponents/p-d44c7900.entry.js +1 -0
- package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
- package/dist/webcomponents/{p-ef9dcfe1.entry.js → p-ded52cad.entry.js} +1 -1
- package/dist/webcomponents/p-df044e50.entry.js +1 -0
- package/dist/webcomponents/p-e0c8e41a.entry.js +1 -0
- package/dist/webcomponents/p-e8a1dbe2.entry.js +1 -0
- package/dist/webcomponents/p-ef930355.entry.js +1 -0
- package/dist/webcomponents/p-f4aa30b8.entry.js +1 -0
- package/dist/webcomponents/p-f7c23a96.entry.js +1 -0
- package/dist/webcomponents/p-f9510372.entry.js +1 -0
- package/dist/webcomponents/p-fe8938ba.entry.js +1 -0
- package/dist/webcomponents/p-iPHDHB_q.js +1 -0
- package/dist/webcomponents/p-lfLAtTgJ.js +1 -0
- package/dist/webcomponents/p-n0Sbmvzb.js +1 -0
- package/dist/webcomponents/p-oE-E7kjN.js +1 -0
- package/dist/webcomponents/{p-DddGO-XR.js → p-vTsHmSQQ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Document-rXGBUaOh.js +0 -58
- package/dist/cjs/billing-form-schema-oZ4GROWP.js +0 -26
- package/dist/cjs/checkout-actions-CRbQgLn0.js +0 -61
- package/dist/cjs/checkout.store-osqdxFMq.js +0 -29
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -85
- package/dist/cjs/justifi-billing-information-form.cjs.entry.js +0 -51
- package/dist/cjs/justifi-card-form.cjs.entry.js +0 -93
- package/dist/cjs/justifi-checkout-summary.cjs.entry.js +0 -21
- package/dist/cjs/justifi-modular-checkout.cjs.entry.js +0 -205
- package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -50
- package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +0 -31
- package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +0 -80
- package/dist/cjs/payment-method-option-utils-imuSE7KV.js +0 -25
- package/dist/collection/api/BillingInformation.js +0 -1
- package/dist/collection/api/PaymentMethod.js +0 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +0 -345
- package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +0 -10
- package/dist/collection/components/modular-checkout-parts/bank-account.js +0 -119
- package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +0 -21
- package/dist/collection/components/modular-checkout-parts/billing-form.js +0 -116
- package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +0 -10
- package/dist/collection/components/modular-checkout-parts/card-form.js +0 -123
- package/dist/collection/components/modular-checkout-parts/postal-code-form.js +0 -114
- package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +0 -23
- package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +0 -127
- package/dist/collection/components/modular-checkout-parts/summary.js +0 -12
- package/dist/collection/store/checkout.store.js +0 -25
- package/dist/esm/Document-Ct-uNz2r.js +0 -55
- package/dist/esm/billing-form-schema-PFvYpvy4.js +0 -24
- package/dist/esm/checkout-actions-UQ6g1s7I.js +0 -58
- package/dist/esm/checkout.store-DQrlfeus.js +0 -27
- package/dist/esm/justifi-bank-account-form.entry.js +0 -83
- package/dist/esm/justifi-billing-information-form.entry.js +0 -49
- package/dist/esm/justifi-card-form.entry.js +0 -91
- package/dist/esm/justifi-checkout-summary.entry.js +0 -19
- package/dist/esm/justifi-modular-checkout.entry.js +0 -203
- package/dist/esm/justifi-postal-code-form.entry.js +0 -48
- package/dist/esm/justifi-saved-payment-methods.entry.js +0 -29
- package/dist/esm/justifi-sezzle-payment-method.entry.js +0 -78
- package/dist/esm/payment-method-option-utils-8n_ALxec.js +0 -23
- package/dist/module/Document.js +0 -55
- package/dist/module/billing-form-schema.js +0 -24
- package/dist/module/checkout-actions.js +0 -58
- package/dist/module/checkout.store.js +0 -27
- package/dist/module/justifi-bank-account-form.d.ts +0 -11
- package/dist/module/justifi-bank-account-form.js +0 -103
- package/dist/module/justifi-billing-information-form.d.ts +0 -11
- package/dist/module/justifi-billing-information-form.js +0 -94
- package/dist/module/justifi-card-form.d.ts +0 -11
- package/dist/module/justifi-card-form.js +0 -111
- package/dist/module/justifi-checkout-summary.d.ts +0 -11
- package/dist/module/justifi-checkout-summary.js +0 -37
- package/dist/module/justifi-modular-checkout.d.ts +0 -11
- package/dist/module/justifi-modular-checkout.js +0 -219
- package/dist/module/justifi-postal-code-form.d.ts +0 -11
- package/dist/module/justifi-postal-code-form.js +0 -86
- package/dist/module/justifi-saved-payment-methods.d.ts +0 -11
- package/dist/module/justifi-saved-payment-methods.js +0 -58
- package/dist/module/payment-method-option-utils.js +0 -23
- package/dist/types/api/BillingInformation.d.ts +0 -13
- package/dist/types/api/PaymentMethod.d.ts +0 -21
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -31
- package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +0 -6
- package/dist/types/components/modular-checkout-parts/bank-account.d.ts +0 -18
- package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +0 -23
- package/dist/types/components/modular-checkout-parts/billing-form.d.ts +0 -16
- package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +0 -6
- package/dist/types/components/modular-checkout-parts/card-form.d.ts +0 -20
- package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +0 -16
- package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +0 -5
- package/dist/types/components/modular-checkout-parts/summary.d.ts +0 -3
- package/dist/types/store/checkout.store.d.ts +0 -19
- package/dist/webcomponents/p-00900e52.entry.js +0 -1
- package/dist/webcomponents/p-025ae692.entry.js +0 -1
- package/dist/webcomponents/p-02e26641.entry.js +0 -1
- package/dist/webcomponents/p-04c91ec1.entry.js +0 -1
- package/dist/webcomponents/p-0d5e93b3.entry.js +0 -1
- package/dist/webcomponents/p-19b5f93a.entry.js +0 -1
- package/dist/webcomponents/p-1ac365b4.entry.js +0 -1
- package/dist/webcomponents/p-1d64d86b.entry.js +0 -1
- package/dist/webcomponents/p-20d7db42.entry.js +0 -1
- package/dist/webcomponents/p-25b310f0.entry.js +0 -1
- package/dist/webcomponents/p-271b131d.entry.js +0 -1
- package/dist/webcomponents/p-2882b4e9.entry.js +0 -1
- package/dist/webcomponents/p-2a08ba01.entry.js +0 -1
- package/dist/webcomponents/p-2f027626.entry.js +0 -1
- package/dist/webcomponents/p-2fa36c0e.entry.js +0 -1
- package/dist/webcomponents/p-379584fb.entry.js +0 -1
- package/dist/webcomponents/p-39f31e23.entry.js +0 -1
- package/dist/webcomponents/p-3b6888c5.entry.js +0 -1
- package/dist/webcomponents/p-3d62f9a5.entry.js +0 -1
- package/dist/webcomponents/p-3edd5ebd.entry.js +0 -1
- package/dist/webcomponents/p-4232760b.entry.js +0 -1
- package/dist/webcomponents/p-4be4f7b4.entry.js +0 -1
- package/dist/webcomponents/p-531738ae.entry.js +0 -1
- package/dist/webcomponents/p-54019e68.entry.js +0 -1
- package/dist/webcomponents/p-5bc6f1e6.entry.js +0 -20
- package/dist/webcomponents/p-5bfbb0f8.entry.js +0 -1
- package/dist/webcomponents/p-5f9dbaff.entry.js +0 -1
- package/dist/webcomponents/p-6b229318.entry.js +0 -1
- package/dist/webcomponents/p-6fc1ace5.entry.js +0 -1
- package/dist/webcomponents/p-716d41f2.entry.js +0 -1
- package/dist/webcomponents/p-7253f1ea.entry.js +0 -1
- package/dist/webcomponents/p-80b662de.entry.js +0 -1
- package/dist/webcomponents/p-82164a5e.entry.js +0 -1
- package/dist/webcomponents/p-8532c68c.entry.js +0 -1
- package/dist/webcomponents/p-8590c5df.entry.js +0 -1
- package/dist/webcomponents/p-8e555a6e.entry.js +0 -1
- package/dist/webcomponents/p-96f89c69.entry.js +0 -1
- package/dist/webcomponents/p-98a39544.entry.js +0 -1
- package/dist/webcomponents/p-9a9f9c57.entry.js +0 -1
- package/dist/webcomponents/p-B8Ovjy6S.js +0 -1
- package/dist/webcomponents/p-BE5Nvydk.js +0 -1
- package/dist/webcomponents/p-BGHVK-vQ.js +0 -1
- package/dist/webcomponents/p-BPCw4WEY.js +0 -1
- package/dist/webcomponents/p-BhrFjjAs.js +0 -1
- package/dist/webcomponents/p-Bond4qGX.js +0 -1
- package/dist/webcomponents/p-BpEw7AJl.js +0 -1
- package/dist/webcomponents/p-C-WgCIei.js +0 -1
- package/dist/webcomponents/p-CCpqJxzB.js +0 -1
- package/dist/webcomponents/p-CLpgfEbx.js +0 -1
- package/dist/webcomponents/p-CRYPNa2o.js +0 -1
- package/dist/webcomponents/p-CeNlJX4-.js +0 -1
- package/dist/webcomponents/p-CnnRWu7z.js +0 -1
- package/dist/webcomponents/p-Ct-uNz2r.js +0 -1
- package/dist/webcomponents/p-CvChBLtI.js +0 -1
- package/dist/webcomponents/p-CwHYDF33.js +0 -1
- package/dist/webcomponents/p-CyXXks-Q.js +0 -1
- package/dist/webcomponents/p-Czro_9VO.js +0 -1
- package/dist/webcomponents/p-DKClunJd.js +0 -1
- package/dist/webcomponents/p-DOB09NZD.js +0 -1
- package/dist/webcomponents/p-DUdzWNqB.js +0 -1
- package/dist/webcomponents/p-D_FOQEGU.js +0 -1
- package/dist/webcomponents/p-DaS3t0DL.js +0 -1
- package/dist/webcomponents/p-Dge4w7_c.js +0 -1
- package/dist/webcomponents/p-DkWBoLsd.js +0 -1
- package/dist/webcomponents/p-DknV-QPT.js +0 -1
- package/dist/webcomponents/p-DuiQuWNq.js +0 -1
- package/dist/webcomponents/p-Dw6NWKHn.js +0 -1
- package/dist/webcomponents/p-DzPrenCi.js +0 -1
- package/dist/webcomponents/p-NqdaxjDT.js +0 -1
- package/dist/webcomponents/p-YDuIVoos.js +0 -1
- package/dist/webcomponents/p-a2db11b5.entry.js +0 -1
- package/dist/webcomponents/p-a31913e3.entry.js +0 -1
- package/dist/webcomponents/p-a4d457e9.entry.js +0 -1
- package/dist/webcomponents/p-b8ee41c1.entry.js +0 -1
- package/dist/webcomponents/p-bde749ac.entry.js +0 -1
- package/dist/webcomponents/p-bf16b11c.entry.js +0 -1
- package/dist/webcomponents/p-ce291c6a.entry.js +0 -1
- package/dist/webcomponents/p-d82b509a.entry.js +0 -1
- package/dist/webcomponents/p-d9b06582.entry.js +0 -1
- package/dist/webcomponents/p-dbc02ba8.entry.js +0 -1
- package/dist/webcomponents/p-dcad0df5.entry.js +0 -1
- package/dist/webcomponents/p-e03630ec.entry.js +0 -1
- package/dist/webcomponents/p-e07sVz4Z.js +0 -1
- package/dist/webcomponents/p-e563df65.entry.js +0 -1
- package/dist/webcomponents/p-ec9bb3f6.entry.js +0 -1
- package/dist/webcomponents/p-ecf6a315.entry.js +0 -1
- package/dist/webcomponents/p-f7e24a51.entry.js +0 -1
- package/dist/webcomponents/p-hDoH7hHP.js +0 -1
- package/dist/webcomponents/p-pGzabKc7.js +0 -1
- package/dist/webcomponents/p-zucQG3cz.js +0 -1
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as s}from"./p-Bta_r52Z.js";import{f as n,l as r}from"./p-9REosSLu.js";import{E as o}from"./p-CnnRWu7z.js";import{S as h}from"./p-DkWBoLsd.js";import"./p-BFTU3MAI.js";import"./p-_6eQgwfE.js";
|
|
2
|
-
/*!
|
|
3
|
-
* @kurkle/color v0.3.4
|
|
4
|
-
* https://github.com/kurkle/color#readme
|
|
5
|
-
* (c) 2024 Jukka Kurkela
|
|
6
|
-
* Released under the MIT License
|
|
7
|
-
*/function a(t){return t+.5|0}const c=(t,e,i)=>Math.max(Math.min(t,i),e);function l(t){return c(a(2.55*t),0,255)}function u(t){return c(a(255*t),0,255)}function f(t){return c(a(t/2.55)/100,0,1)}function d(t){return c(a(100*t),0,100)}const b={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},g=[..."0123456789ABCDEF"],p=t=>g[15&t],m=t=>g[(240&t)>>4]+g[15&t],v=t=>(240&t)>>4==(15&t);const x=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function y(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function M(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function w(t,e,i){const s=y(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function _(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=(n+r)/2;let h,a,c;return n!==r&&(c=n-r,a=o>.5?c/(2-n-r):c/(n+r),h=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,c,n),h=60*h+.5),[0|h,a||0,o]}function k(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(u)}function O(t,e,i){return k(y,t,e,i)}function S(t){return(t%360+360)%360}const A={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},D={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let j;const R=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,C=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,E=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function L(t,e,i){if(t){let s=_(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=O(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function P(t,e){return t?Object.assign(e||{},t):t}function T(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=u(t[3]))):(e=P(t,{r:0,g:0,b:0,a:1})).a=u(e.a),e}function I(t){return"r"===t.charAt(0)?function(t){const e=R.exec(t);let i,s,n,r=255;if(e){if(e[7]!==i){const t=+e[7];r=e[8]?l(t):c(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?l(i):c(i,0,255)),s=255&(e[4]?l(s):c(s,0,255)),n=255&(e[6]?l(n):c(n,0,255)),{r:i,g:s,b:n,a:r}}}(t):function(t){const e=x.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?l(+e[5]):u(+e[5]));const n=S(+e[2]),r=+e[3]/100,o=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return k(w,t,e,i)}(n,r,o):"hsv"===e[1]?function(t,e,i){return k(M,t,e,i)}(n,r,o):O(n,r,o),{r:i[0],g:i[1],b:i[2],a:s}}(t)}class F{constructor(t){if(t instanceof F)return t;const e=typeof t;let i;var s,n,r;"object"===e?i=T(t):"string"===e&&(r=(s=t).length,"#"===s[0]&&(4===r||5===r?n={r:255&17*b[s[1]],g:255&17*b[s[2]],b:255&17*b[s[3]],a:5===r?17*b[s[4]]:255}:7!==r&&9!==r||(n={r:b[s[1]]<<4|b[s[2]],g:b[s[3]]<<4|b[s[4]],b:b[s[5]]<<4|b[s[6]],a:9===r?b[s[7]]<<4|b[s[8]]:255})),i=n||function(t){j||(j=function(){const t={},e=Object.keys(D),i=Object.keys(A);let s,n,r,o,h;for(s=0;s<e.length;s++){for(o=h=e[s],n=0;n<i.length;n++)r=i[n],h=h.replace(r,A[r]);r=parseInt(D[o],16),t[h]=[r>>16&255,r>>8&255,255&r]}return t}(),j.transparent=[0,0,0,0]);const e=j[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||I(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=P(this._rgb);return t&&(t.a=f(t.a)),t}set rgb(t){this._rgb=T(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${f(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(e=(t=>v(t.r)&&v(t.g)&&v(t.b)&&v(t.a))(t=this._rgb)?p:m,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=_(t),i=e[0],s=d(e[1]),n=d(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${f(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const r=e===n?.5:e,o=2*r-1,h=i.a-s.a,a=((o*h==-1?o:(o+h)/(1+o*h))+1)/2;n=1-a,i.r=255&a*i.r+n*s.r+.5,i.g=255&a*i.g+n*s.g+.5,i.b=255&a*i.b+n*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=E(f(t.r)),n=E(f(t.g)),r=E(f(t.b));return{r:u(C(s+i*(E(f(e.r))-s))),g:u(C(n+i*(E(f(e.g))-n))),b:u(C(r+i*(E(f(e.b))-r))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new F(this.rgb)}alpha(t){return this._rgb.a=u(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=a(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return L(this._rgb,2,t),this}darken(t){return L(this._rgb,2,-t),this}saturate(t){return L(this._rgb,1,t),this}desaturate(t){return L(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=_(t);i[0]=S(i[0]+e),i=O(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}
|
|
8
|
-
/*!
|
|
9
|
-
* Chart.js v4.4.9
|
|
10
|
-
* https://www.chartjs.org
|
|
11
|
-
* (c) 2025 Chart.js Contributors
|
|
12
|
-
* Released under the MIT License
|
|
13
|
-
*/function B(){}const W=(()=>{let t=0;return()=>t++})();function N(t){return null==t}function z(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function H(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function $(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Y(t,e){return $(t)?t:e}function V(t,e){return void 0===t?e:t}const X=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function U(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function Z(t,e,i){let s,n,r;if(z(t))for(n=t.length,s=0;s<n;s++)e.call(i,t[s],s);else if(H(t))for(r=Object.keys(t),n=r.length,s=0;s<n;s++)e.call(i,t[r[s]],r[s])}function K(t,e){let i,s,n,r;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],r=e[i],n.datasetIndex!==r.datasetIndex||n.index!==r.index)return!1;return!0}function Q(t){if(z(t))return t.map(Q);if(H(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=Q(t[i[n]]);return e}return t}function q(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function G(t,e,i,s){if(!q(t))return;const n=e[t],r=i[t];H(n)&&H(r)?J(n,r,s):e[t]=Q(r)}function J(t,e,i){const s=z(e)?e:[e],n=s.length;if(!H(t))return t;const r=(i=i||{}).merger||G;let o;for(let e=0;e<n;++e){if(o=s[e],!H(o))continue;const n=Object.keys(o);for(let e=0,s=n.length;e<s;++e)r(n[e],t,o,i)}return t}function tt(t,e){return J(t,e,{merger:et})}function et(t,e,i){if(!q(t))return;const s=e[t],n=i[t];H(s)&&H(n)?tt(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Q(n))}const it={"":t=>t,x:t=>t.x,y:t=>t.y};function st(t,e){const i=it[e]||(it[e]=function(t){const e=function(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function nt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const rt=t=>void 0!==t,ot=t=>"function"==typeof t,ht=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},at=Math.PI,ct=2*at,lt=Number.POSITIVE_INFINITY,ut=at/180,ft=at/2,dt=at/4,bt=2*at/3,gt=Math.log10,pt=Math.sign;function mt(t,e,i){return Math.abs(t-e)<i}function vt(t){const e=Math.round(t);t=mt(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(gt(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function xt(t){return!function(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function yt(t){return t*(at/180)}function Mt(t){if(!$(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function wt(t){return(t%ct+ct)%ct}function _t(t,e,i,s){const n=wt(t),r=wt(e),o=wt(i),h=wt(r-n),a=wt(o-n),c=wt(n-r),l=wt(n-o);return n===r||n===o||s&&r===o||h>a&&c<l}function kt(t,e,i){return Math.max(e,Math.min(i,t))}function Ot(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function St(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,r=0;for(;n-r>1;)s=r+n>>1,i(s)?r=s:n=s;return{lo:r,hi:n}}const At=(t,e,i,s)=>St(t,i,s?s=>{const n=t[s][e];return n<i||n===i&&t[s+1][e]===i}:s=>t[s][e]<i),Dt=(t,e,i)=>St(t,i,(s=>t[s][e]>=i)),jt=["push","pop","shift","splice","unshift"];function Rt(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(jt.forEach((e=>{delete t[e]})),delete t._chartjs)}const Ct="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Et(t,e){let i=[],s=!1;return function(...n){i=n,s||(s=!0,Ct.call(window,(()=>{s=!1,t.apply(e,i)})))}}const Lt=t=>"start"===t?"left":"end"===t?"right":"center",Pt=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,Tt=t=>0===t||1===t,It=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ct/i),Ft=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*ct/i)+1,Bt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*ft),easeOutSine:t=>Math.sin(t*ft),easeInOutSine:t=>-.5*(Math.cos(at*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Tt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Tt(t)?t:It(t,.075,.3),easeOutElastic:t=>Tt(t)?t:Ft(t,.075,.3),easeInOutElastic(t){const e=.1125;return Tt(t)?t:t<.5?.5*It(2*t,e,.45):.5+.5*Ft(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Bt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*Bt.easeInBounce(2*t):.5*Bt.easeOutBounce(2*t-1)+.5};function Wt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Nt(t){return Wt(t)?t:new F(t)}function zt(t){return Wt(t)?t:new F(t).saturate(.5).darken(.1).hexString()}const Ht=["x","y","borderWidth","radius","tension"],$t=["color","borderColor","backgroundColor"],Yt=new Map;function Vt(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=Yt.get(i);return s||(s=new Intl.NumberFormat(t,e),Yt.set(i,s)),s}(e,i).format(t)}var Xt={formatters:{values:t=>z(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let n,r=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),r=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const o=gt(Math.abs(r)),h=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),a={notation:n,minimumFractionDigits:h,maximumFractionDigits:h};return Object.assign(a,this.options.ticks.format),Vt(t,s,a)}}};const Ut=Object.create(null),Zt=Object.create(null);function Kt(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;e<s;++e){const s=i[e];t=t[s]||(t[s]=Object.create(null))}return t}function Qt(t,e,i){return"string"==typeof e?J(Kt(t,e),i):J(Kt(t,""),e)}class qt{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>zt(e.backgroundColor),this.hoverBorderColor=(t,e)=>zt(e.borderColor),this.hoverColor=(t,e)=>zt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Qt(this,t,e)}get(t){return Kt(this,t)}describe(t,e){return Qt(Zt,t,e)}override(t,e){return Qt(Ut,t,e)}route(t,e,i,s){const n=Kt(this,t),r=Kt(this,i),o="_"+e;Object.defineProperties(n,{[o]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=r[s];return H(t)?Object.assign({},e,t):V(t,e)},set(t){this[o]=t}}})}apply(t){t.forEach((t=>t(this)))}}var Gt=new qt({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:$t},numbers:{type:"number",properties:Ht}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Xt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Jt(t,e,i,s,n){let r=e[n];return r||(r=e[n]=t.measureText(n).width,i.push(n)),r>s&&(s=r),s}function te(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function ee(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ie(t,e,i,s){se(t,e,i,s,null)}function se(t,e,i,s,n){let r,o,h,a,c,l,u,f;const d=e.pointStyle,b=e.rotation,g=e.radius;let p=(b||0)*ut;if(d&&"object"==typeof d&&(r=d.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(i,s),t.rotate(p),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),d){default:n?t.ellipse(i,s,n/2,g,0,0,ct):t.arc(i,s,g,0,ct),t.closePath();break;case"triangle":l=n?n/2:g,t.moveTo(i+Math.sin(p)*l,s-Math.cos(p)*g),p+=bt,t.lineTo(i+Math.sin(p)*l,s-Math.cos(p)*g),p+=bt,t.lineTo(i+Math.sin(p)*l,s-Math.cos(p)*g),t.closePath();break;case"rectRounded":c=.516*g,a=g-c,o=Math.cos(p+dt)*a,u=Math.cos(p+dt)*(n?n/2-c:a),h=Math.sin(p+dt)*a,f=Math.sin(p+dt)*(n?n/2-c:a),t.arc(i-u,s-h,c,p-at,p-ft),t.arc(i+f,s-o,c,p-ft,p),t.arc(i+u,s+h,c,p,p+ft),t.arc(i-f,s+o,c,p+ft,p+at),t.closePath();break;case"rect":if(!b){a=Math.SQRT1_2*g,l=n?n/2:a,t.rect(i-l,s-a,2*l,2*a);break}p+=dt;case"rectRot":u=Math.cos(p)*(n?n/2:g),o=Math.cos(p)*g,h=Math.sin(p)*g,f=Math.sin(p)*(n?n/2:g),t.moveTo(i-u,s-h),t.lineTo(i+f,s-o),t.lineTo(i+u,s+h),t.lineTo(i-f,s+o),t.closePath();break;case"crossRot":p+=dt;case"cross":u=Math.cos(p)*(n?n/2:g),o=Math.cos(p)*g,h=Math.sin(p)*g,f=Math.sin(p)*(n?n/2:g),t.moveTo(i-u,s-h),t.lineTo(i+u,s+h),t.moveTo(i+f,s-o),t.lineTo(i-f,s+o);break;case"star":u=Math.cos(p)*(n?n/2:g),o=Math.cos(p)*g,h=Math.sin(p)*g,f=Math.sin(p)*(n?n/2:g),t.moveTo(i-u,s-h),t.lineTo(i+u,s+h),t.moveTo(i+f,s-o),t.lineTo(i-f,s+o),p+=dt,u=Math.cos(p)*(n?n/2:g),o=Math.cos(p)*g,h=Math.sin(p)*g,f=Math.sin(p)*(n?n/2:g),t.moveTo(i-u,s-h),t.lineTo(i+u,s+h),t.moveTo(i+f,s-o),t.lineTo(i-f,s+o);break;case"line":o=n?n/2:Math.cos(p)*g,h=Math.sin(p)*g,t.moveTo(i-o,s-h),t.lineTo(i+o,s+h);break;case"dash":t.moveTo(i,s),t.lineTo(i+Math.cos(p)*(n?n/2:g),s+Math.sin(p)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function ne(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function re(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function oe(t){t.restore()}function he(t,e,i,s,n){if(n.strikethrough||n.underline){const r=t.measureText(s),o=e-r.actualBoundingBoxLeft,h=e+r.actualBoundingBoxRight,a=i+r.actualBoundingBoxDescent,c=n.strikethrough?(i-r.actualBoundingBoxAscent+a)/2:a;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(o,c),t.lineTo(h,c),t.stroke()}}function ae(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function ce(t,e,i,s,n,r={}){const o=z(e)?e:[e],h=r.strokeWidth>0&&""!==r.strokeColor;let a,c;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),N(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),a=0;a<o.length;++a)c=o[a],r.backdrop&&ae(t,r.backdrop),h&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),N(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,i,s,r.maxWidth)),t.fillText(c,i,s,r.maxWidth),he(t,i,s,c,r),s+=Number(n.lineHeight);t.restore()}function le(t,e){const{x:i,y:s,w:n,h:r,radius:o}=e;t.arc(i+o.topLeft,s+o.topLeft,o.topLeft,1.5*at,at,!0),t.lineTo(i,s+r-o.bottomLeft),t.arc(i+o.bottomLeft,s+r-o.bottomLeft,o.bottomLeft,at,ft,!0),t.lineTo(i+n-o.bottomRight,s+r),t.arc(i+n-o.bottomRight,s+r-o.bottomRight,o.bottomRight,ft,0,!0),t.lineTo(i+n,s+o.topRight),t.arc(i+n-o.topRight,s+o.topRight,o.topRight,0,-ft,!0),t.lineTo(i+o.topLeft,s)}const ue=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,fe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function de(t,e){const i=(""+t).match(ue);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}function be(t,e){const i={},s=H(e),n=s?Object.keys(e):e,r=H(t)?s?i=>V(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=+r(t)||0;return i}function ge(t){return be(t,{top:"y",right:"x",bottom:"y",left:"x"})}function pe(t){return be(t,["topLeft","topRight","bottomLeft","bottomRight"])}function me(t){const e=ge(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ve(t,e){let i=V((t=t||{}).size,(e=e||Gt.font).size);"string"==typeof i&&(i=parseInt(i,10));let s=V(t.style,e.style);s&&!(""+s).match(fe)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:V(t.family,e.family),lineHeight:de(V(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:V(t.weight,e.weight),string:""};return n.string=function(t){return!t||N(t.size)||N(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function xe(t){let e,i,s;for(e=0,i=t.length;e<i;++e)if(s=t[e],void 0!==s&&void 0!==s)return s}function ye(t,e){return Object.assign(Object.create(t),e)}function Me(t,e=[""],i,s,n=()=>t[0]){const r=i||t;void 0===s&&(s=Ee("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:s,_getTarget:n,override:i=>Me([i,...t],e,r,s)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>Se(i,s,(()=>function(t,e,i,s){let n;for(const r of e)if(n=Ee(ke(r,t),i),void 0!==n)return Oe(t,n)?Re(i,s,t,n):n}(s,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Le(t).includes(e),ownKeys:t=>Le(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function we(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:_e(t,s),setContext:e=>we(t,e,i,s),override:n=>we(t.override(n),e,i,s)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Se(t,e,(()=>function(t,e,i){const{_proxy:s,_context:n,_subProxy:r,_descriptors:o}=t;let h=s[e];return ot(h)&&o.isScriptable(e)&&(h=function(t,e,i,s){const{_proxy:n,_context:r,_subProxy:o,_stack:h}=i;if(h.has(t))throw new Error("Recursion detected: "+Array.from(h).join("->")+"->"+t);h.add(t);let a=e(r,o||s);return h.delete(t),Oe(t,a)&&(a=Re(n._scopes,n,t,a)),a}(e,h,t,i)),z(h)&&h.length&&(h=function(t,e,i,s){const{_proxy:n,_context:r,_subProxy:o,_descriptors:h}=i;if(void 0!==r.index&&s(t))return e[r.index%e.length];if(H(e[0])){const i=e,s=n._scopes.filter((t=>t!==i));e=[];for(const a of i){const i=Re(s,n,t,a);e.push(we(i,r,o&&o[t],h))}}return e}(e,h,t,o.isIndexable)),Oe(e,h)&&(h=we(h,n,r&&r[e],o)),h}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function _e(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:ot(i)?i:()=>i,isIndexable:ot(s)?s:()=>s}}const ke=(t,e)=>t?t+nt(e):e,Oe=(t,e)=>H(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Se(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const s=i();return t[e]=s,s}function Ae(t,e,i){return ot(t)?t(e,i):t}const De=(t,e)=>!0===t?e:"string"==typeof t?st(e,t):void 0;function je(t,e,i,s,n){for(const r of e){const e=De(i,r);if(e){t.add(e);const r=Ae(e._fallback,i,n);if(void 0!==r&&r!==i&&r!==s)return r}else if(!1===e&&void 0!==s&&i!==s)return null}return!1}function Re(t,e,i,s){const n=e._rootScopes,r=Ae(e._fallback,i,s),o=[...t,...n],h=new Set;h.add(s);let a=Ce(h,o,i,r||i,s);return null!==a&&(void 0===r||r===i||(a=Ce(h,o,r,a,s),null!==a))&&Me(Array.from(h),[""],n,r,(()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];return z(n)&&H(i)?i:n||{}}(e,i,s)))}function Ce(t,e,i,s,n){for(;i;)i=je(t,e,i,s,n);return i}function Ee(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function Le(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Pe(t,e,i,s){const{iScale:n}=t,{key:r="r"}=this._parsing,o=new Array(s);let h,a,c,l;for(h=0,a=s;h<a;++h)c=h+i,l=e[c],o[h]={r:n.parse(st(l,r),c)};return o}function Te(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ie(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Fe(t,e,i){let s;return"string"==typeof t?(s=parseInt(t,10),-1!==t.indexOf("%")&&(s=s/100*e.parentNode[i])):s=t,s}const Be=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),We=["top","right","bottom","left"];function Ne(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const r=We[n];s[r]=parseFloat(t[e+"-"+r+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}function ze(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=Be(i),r="border-box"===n.boxSizing,o=Ne(n,"padding"),h=Ne(n,"border","width"),{x:a,y:c,box:l}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:r}=s;let o,h,a=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(n,r,t.target))o=n,h=r;else{const t=e.getBoundingClientRect();o=s.clientX-t.left,h=s.clientY-t.top,a=!0}return{x:o,y:h,box:a}}(t,i),u=o.left+(l&&h.left),f=o.top+(l&&h.top);let{width:d,height:b}=e;return r&&(d-=o.width+h.width,b-=o.height+h.height),{x:Math.round((a-u)/d*i.width/s),y:Math.round((c-f)/b*i.height/s)}}const He=t=>Math.round(10*t)/10;function $e(t,e,i){const s=e||1,n=Math.floor(t.height*s),r=Math.floor(t.width*s);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(i||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||o.height!==n||o.width!==r)&&(t.currentDevicePixelRatio=s,o.height=n,o.width=r,t.ctx.setTransform(s,0,0,s,0,0),!0)}const Ye=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Te()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Ve(t,e){const i=function(t,e){return Be(t).getPropertyValue(e)}(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Xe(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:t=>t}}function Ue(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function Ze(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Ke(t,e,i){return t.options.clip?t[i]:e[i]}
|
|
14
|
-
/*!
|
|
15
|
-
* Chart.js v4.4.9
|
|
16
|
-
* https://www.chartjs.org
|
|
17
|
-
* (c) 2025 Chart.js Contributors
|
|
18
|
-
* Released under the MIT License
|
|
19
|
-
*/
|
|
20
|
-
class Qe{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.duration;e.listeners[s].forEach((s=>s({chart:t,initial:e.initial,numSteps:n,currentStep:Math.min(i-e.start,n)})))}_refresh(){this._request||(this._running=!0,this._request=Ct.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let r,o=n.length-1,h=!1;for(;o>=0;--o)r=n[o],r._active?(r._total>i.duration&&(i.duration=r._total),r.tick(t),h=!0):(n[o]=n[n.length-1],n.pop());h&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var qe=new Qe;const Ge="transparent",Je={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Nt(t||Ge),n=s.valid&&Nt(e||Ge);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class ti{constructor(t,e,i,s){const n=e[i];s=xe([t.to,s,n,t.from]);const r=xe([t.from,n,s]);this._active=!0,this._fn=t.fn||Je[t.type||typeof r],this._easing=Bt[t.easing]||Bt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,r=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=xe([t.to,e,s,t.from]),this._from=xe([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,r=this._loop,o=this._to;let h;if(this._active=n!==o&&(r||e<i),!this._active)return this._target[s]=o,void this._notify(!0);e<0?this._target[s]=n:(h=e/i%2,h=r&&h>1?2-h:h,h=this._easing(Math.min(1,Math.max(0,h))),this._target[s]=this._fn(n,o,h))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class ei{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!H(t))return;const e=Object.keys(Gt.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach((s=>{const n=t[s];if(!H(n))return;const r={};for(const t of e)r[t]=n[t];(z(n.properties)&&n.properties||[s]).forEach((t=>{t!==s&&i.has(t)||i.set(t,r)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),r=Object.keys(e),o=Date.now();let h;for(h=r.length-1;h>=0;--h){const a=r[h];if("$"===a.charAt(0))continue;if("options"===a){s.push(...this._animateOptions(t,e));continue}const c=e[a];let l=n[a];const u=i.get(a);if(l){if(u&&l.active()){l.update(u,c,o);continue}l.cancel()}u&&u.duration?(n[a]=l=new ti(u,t,a,c),s.push(l)):t[a]=c}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(qe.add(this._chart,i),!0):void 0}}function ii(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,r=void 0===i.max?e:0;return{start:s?r:n,end:s?n:r}}function si(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,r;for(n=0,r=s.length;n<r;++n)i.push(s[n].index);return i}function ni(t,e,i,s={}){const n=t.keys,r="single"===s.mode;let o,h,a,c;if(null===e)return;let l=!1;for(o=0,h=n.length;o<h;++o){if(a=+n[o],a===i){if(l=!0,s.all)continue;break}c=t.values[a],$(c)&&(r||0===e||pt(e)===pt(c))&&(e+=c)}return l||s.all?e:0}function ri(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function oi(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function hi(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function ai(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:r,vScale:o,index:h}=s,a=r.axis,c=o.axis,l=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(r,o,s),u=e.length;let f;for(let t=0;t<u;++t){const i=e[t],{[a]:r,[c]:u}=i;f=(i._stacks||(i._stacks={}))[c]=oi(n,l,r),f[h]=u,f._top=hi(f,o,!0,s.type),f._bottom=hi(f,o,!1,s.type),(f._visualValues||(f._visualValues={}))[h]=u}}function ci(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function li(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i],void 0!==e[s]._visualValues&&void 0!==e[s]._visualValues[i]&&delete e[s]._visualValues[i]}}}const ui=t=>"reset"===t||"none"===t,fi=(t,e)=>e?t:Object.assign({},t);class di{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ri(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&li(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=V(i.xAxisID,ci(t,"x")),r=e.yAxisID=V(i.yAxisID,ci(t,"y")),o=e.rAxisID=V(i.rAxisID,ci(t,"r")),h=e.indexAxis,a=e.iAxisID=s(h,n,r,o),c=e.vAxisID=s(h,r,n,o);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(a),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Rt(this._data,this),t._stacked&&li(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(H(e))this._data=function(t,e){const{iScale:i,vScale:s}=e,n="x"===i.axis?"x":"y",r="x"===s.axis?"x":"y",o=Object.keys(t),h=new Array(o.length);let a,c,l;for(a=0,c=o.length;a<c;++a)l=o[a],h[a]={[n]:l,[r]:t[l]};return h}(e,this._cachedMeta);else if(i!==e){if(i){Rt(i,this);const t=this._cachedMeta;li(t),t._parsed=[]}e&&Object.isExtensible(e)&&((s=e)._chartjs?s._chartjs.listeners.push(this):(Object.defineProperty(s,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),jt.forEach((t=>{const e="_onData"+nt(t),i=s[t];Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value(...t){const n=i.apply(this,t);return s._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),n}})})))),this._syncList=[],this._data=e}var s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=ri(e.vScale,e),e.stack!==i.stack&&(s=!0,li(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&(ai(this,e._parsed),e._stacked=ri(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:n,_stacked:r}=i,o=n.axis;let h,a,c,l=0===t&&e===s.length||i._sorted,u=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,c=s;else{c=z(s[t])?this.parseArrayData(i,s,t,e):H(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const n=()=>null===a[o]||u&&a[o]<u[o];for(h=0;h<e;++h)i._parsed[h+t]=a=c[h],l&&(n()&&(l=!1),u=a);i._sorted=l}r&&ai(this,c)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:r}=t,o=n.axis,h=r.axis,a=n.getLabels(),c=n===r,l=new Array(s);let u,f,d;for(u=0,f=s;u<f;++u)d=u+i,l[u]={[o]:c||n.parse(a[d],d),[h]:r.parse(e[d],d)};return l}parseArrayData(t,e,i,s){const{xScale:n,yScale:r}=t,o=new Array(s);let h,a,c,l;for(h=0,a=s;h<a;++h)c=h+i,l=e[c],o[h]={x:n.parse(l[0],c),y:r.parse(l[1],c)};return o}parseObjectData(t,e,i,s){const{xScale:n,yScale:r}=t,{xAxisKey:o="x",yAxisKey:h="y"}=this._parsing,a=new Array(s);let c,l,u,f;for(c=0,l=s;c<l;++c)u=c+i,f=e[u],a[c]={x:n.parse(st(f,o),u),y:r.parse(st(f,h),u)};return a}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this._cachedMeta,n=e[t.axis];return ni({keys:si(this.chart,!0),values:e._stacks[t.axis]._visualValues},n,s.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let r=null===n?NaN:n;const o=s&&i._stacks[e.axis];s&&o&&(s.values=o,r=ni(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,r=s.length,o=this._getOtherScale(t),h=((t,e)=>t&&!e.hidden&&e._stacked&&{keys:si(this.chart,!0),values:null})(e,i),a={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:l}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(o);let u,f;function d(){f=s[u];const e=f[o.axis];return!$(f[t.axis])||c>e||l<e}for(u=0;u<r&&(d()||(this.updateRangeFromParsed(a,t,f,h),!n));++u);if(n)for(u=r-1;u>=0;--u)if(!d()){this.updateRangeFromParsed(a,t,f,h);break}return a}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,r;for(s=0,n=e.length;s<n;++s)r=e[s][t.axis],$(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,n;return H(t)?(e=t.top,i=t.right,s=t.bottom,n=t.left):e=i=s=n=t,{top:e,right:i,bottom:s,left:n,disabled:!1===t}}(V(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=ii(t,i),n=ii(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this._cachedMeta,i=e.data||[],s=this.chart.chartArea,n=[],r=this._drawStart||0,o=this._drawCount||i.length-r,h=this.options.drawActiveElementsOnTop;let a;for(e.dataset&&e.dataset.draw(t,s,r,o),a=r;a<r+o;++a){const e=i[a];e.hidden||(e.active&&h?n.push(e):e.draw(t,s))}for(a=0;a<n.length;++a)n[a].draw(t,s)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return ye(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return ye(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const s="active"===e,n=this._cachedDataOpts,r=t+"-"+e,o=n[r],h=this.enableOptionSharing&&rt(i);if(o)return fi(o,h);const a=this.chart.config,c=a.datasetElementScopeKeys(this._type,t),l=s?[`${t}Hover`,"hover",t,""]:[t,""],u=a.getOptionScopes(this.getDataset(),c),f=Object.keys(Gt.elements[t]),d=a.resolveNamedOptions(u,f,(()=>this.getContext(i,s,e)),l);return d.$shared&&(d.$shared=h,n[r]=Object.freeze(fi(d,h))),d}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,r=`animation-${e}`,o=n[r];if(o)return o;let h;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),r=s.getOptionScopes(this.getDataset(),n);h=s.createResolver(r,this.getContext(t,i,e))}const a=new ei(s,h&&h.animations);return h&&h._cacheable&&(n[r]=Object.freeze(a)),a}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||ui(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),r=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:r}}updateElement(t,e,i,s){ui(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!ui(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,r=Math.min(n,s);r&&this.parse(0,r),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,r=t+e;let o;const h=t=>{for(t.length+=e,o=t.length-1;o>=r;o--)t[o]=t[o-e]};for(h(n),o=t;o<r;++o)n[o]=new this.dataElementType;this._parsing&&h(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&li(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function bi(t,e,i,s){return z(t)?function(t,e,i,s){const n=i.parse(t[0],s),r=i.parse(t[1],s),o=Math.min(n,r),h=Math.max(n,r);let a=o,c=h;Math.abs(o)>Math.abs(h)&&(a=h,c=o),e[i.axis]=c,e._custom={barStart:a,barEnd:c,start:n,end:r,min:o,max:h}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function gi(t,e,i,s){const n=t.iScale,r=t.vScale,o=n.getLabels(),h=n===r,a=[];let c,l,u,f;for(c=i,l=i+s;c<l;++c)f=e[c],u={},u[n.axis]=h||n.parse(o[c],c),a.push(bi(f,u,r,c));return a}function pi(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function mi(t,e,i,s){let n=e.borderSkipped;const r={};if(!n)return void(t.borderSkipped=r);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:h,reverse:a,top:c,bottom:l}=function(t){let e,i,s,n,r;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.base<t.y,i="bottom",s="top"),e?(n="end",r="start"):(n="start",r="end"),{start:i,end:s,reverse:e,top:n,bottom:r}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=c:(i._bottom||0)===s?n=l:(r[vi(l,o,h,a)]=!0,n=c)),r[vi(n,o,h,a)]=!0,t.borderSkipped=r}function vi(t,e,i,s){var n,r,o;return s?(o=i,t=xi(t=(n=t)===(r=e)?o:n===o?r:n,i,e)):t=xi(t,e,i),t}function xi(t,e,i){return"start"===t?e:"end"===t?i:t}function yi(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}class Mi extends di{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map(((e,n)=>{const r=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,fontColor:s,lineWidth:r.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,r,o=t=>+i[t];if(H(i[t])){const{key:t="value"}=this._parsing;o=e=>+st(i[e],t)}for(n=t,r=t+e;n<r;++n)s._parsed[n]=o(n)}}_getRotation(){return yt(this.options.rotation-90)}_getCircumference(){return yt(this.options.circumference)}_getRotationExtents(){let t=ct,e=-ct;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),r=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,o=Math.max((Math.min(i.width,i.height)-r)/2,0),h=Math.min((c=o,"string"==typeof(a=this.options.cutout)&&a.endsWith("%")?parseFloat(a)/100:+a/c),1);var a,c;const l=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:d,ratioY:b,offsetX:g,offsetY:p}=function(t,e,i){let s=1,n=1,r=0,o=0;if(e<ct){const h=t,a=h+e,c=Math.cos(h),l=Math.sin(h),u=Math.cos(a),f=Math.sin(a),d=(t,e,s)=>_t(t,h,a,!0)?1:Math.max(e,e*i,s,s*i),b=(t,e,s)=>_t(t,h,a,!0)?-1:Math.min(e,e*i,s,s*i),g=d(0,c,u),p=d(ft,l,f),m=b(at,c,u),v=b(at+ft,l,f);s=(g-m)/2,n=(p-v)/2,r=-(g+m)/2,o=-(p+v)/2}return{ratioX:s,ratioY:n,offsetX:r,offsetY:o}}(f,u,h),m=Math.max(Math.min((i.width-r)/d,(i.height-r)/b)/2,0),v=X(this.options.radius,m),x=(v-Math.max(v*h,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*v,this.offsetY=p*v,s.total=this.calculateTotal(),this.outerRadius=v-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*l,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/ct)}updateElements(t,e,i,s){const n="reset"===s,r=this.chart,o=r.chartArea,h=(o.left+o.right)/2,a=(o.top+o.bottom)/2,c=n&&r.options.animation.animateScale,l=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:f,includeOptions:d}=this._getSharedOptions(e,s);let b,g=this._getRotation();for(b=0;b<e;++b)g+=this._circumference(b,n);for(b=e;b<e+i;++b){const e=this._circumference(b,n),i=t[b],r={x:h+this.offsetX,y:a+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:u,innerRadius:l};d&&(r.options=f||this.resolveDataElementOptions(b,i.active?"active":s)),g+=e,this.updateElement(i,b,r,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?ct*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this.chart,i=e.data.labels||[],s=Vt(this._cachedMeta._parsed[t],e.options.locale);return{label:i[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,r,o,h;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){r=i.getDatasetMeta(s),t=r.data,o=r.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)h=o.resolveDataElementOptions(s),"inner"!==h.borderAlign&&(e=Math.max(e,h.borderWidth||0,h.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(V(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class wi extends di{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map(((e,n)=>{const r=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,fontColor:s,lineWidth:r.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this.chart,i=e.data.labels||[],s=Vt(this._cachedMeta._parsed[t].r,e.options.locale);return{label:i[t]||"",value:s}}parseObjectData(t,e,i,s){return Pe.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach(((e,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<t.min&&(t.min=s),s>t.max&&(t.max=s))})),t}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),r=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,i,s){const n="reset"===s,r=this.chart,o=r.options.animation,h=this._cachedMeta.rScale,a=h.xCenter,c=h.yCenter,l=h.getIndexAngle(0)-.5*at;let u,f=l;const d=360/this.countVisibleElements();for(u=0;u<e;++u)f+=this._computeAngle(u,s,d);for(u=e;u<e+i;u++){const e=t[u];let i=f,b=f+this._computeAngle(u,s,d),g=r.getDataVisibility(u)?h.getDistanceFromCenterForValue(this.getParsed(u).r):0;f=b,n&&(o.animateScale&&(g=0),o.animateRotate&&(i=b=l));const p={x:a,y:c,innerRadius:0,outerRadius:g,startAngle:i,endAngle:b,options:this.resolveDataElementOptions(u,e.active?"active":s)};this.updateElement(e,u,p,s)}}countVisibleElements(){let t=0;return this._cachedMeta.data.forEach(((e,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&t++})),t}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?yt(this.resolveDataElementOptions(t,e).angle||i):0}}function _i(t,e,i,s){const{controller:n,data:r,_sorted:o}=t,h=n._cachedMeta.iScale,a=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(h&&e===h.axis&&"r"!==e&&o&&r.length){const o=h._reversePixels?Dt:At;if(!s){const s=o(r,e,i);if(a){const{vScale:e}=n._cachedMeta,{_parsed:i}=t,r=i.slice(0,s.lo+1).reverse().findIndex((t=>!N(t[e.axis])));s.lo-=Math.max(0,r);const o=i.slice(s.hi).findIndex((t=>!N(t[e.axis])));s.hi+=Math.max(0,o)}return s}if(n._sharedOptions){const t=r[0],s="function"==typeof t.getRange&&t.getRange(e);if(s){const t=o(r,e,i-s),n=o(r,e,i+s);return{lo:t.lo,hi:n.hi}}}}return{lo:0,hi:r.length-1}}function ki(t,e,i,s,n){const r=t.getSortedVisibleDatasetMetas(),o=i[e];for(let t=0,i=r.length;t<i;++t){const{index:i,data:h}=r[t],{lo:a,hi:c}=_i(r[t],e,o,n);for(let t=a;t<=c;++t){const e=h[t];e.skip||s(e,i,t)}}}function Oi(t,e,i,s,n){const r=[];return n||t.isPointInArea(e)?(ki(t,i,e,(function(i,o,h){(n||ne(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&r.push({element:i,datasetIndex:o,index:h})}),!0),r):r}function Si(t,e,i,s,n,r){return r||t.isPointInArea(e)?"r"!==i||s?function(t,e,i,s,n,r){let o=[];const h=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,r=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2))}}(i);let a=Number.POSITIVE_INFINITY;return ki(t,i,e,(function(i,c,l){const u=i.inRange(e.x,e.y,n);if(s&&!u)return;const f=i.getCenterPoint(n);if(!r&&!t.isPointInArea(f)&&!u)return;const d=h(e,f);d<a?(o=[{element:i,datasetIndex:c,index:l}],a=d):d===a&&o.push({element:i,datasetIndex:c,index:l})})),o}(t,e,i,s,n,r):function(t,e,i,s){let n=[];return ki(t,i,e,(function(t,i,r){const{startAngle:o,endAngle:h}=t.getProps(["startAngle","endAngle"],s),{angle:a}=function(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let r=Math.atan2(s,i);return r<-.5*at&&(r+=ct),{angle:r,distance:n}}(t,{x:e.x,y:e.y});_t(a,o,h)&&n.push({element:t,datasetIndex:i,index:r})})),n}(t,e,i,n):[]}function Ai(t,e,i,s,n){const r=[],o="x"===i?"inXRange":"inYRange";let h=!1;return ki(t,i,e,((t,s,a)=>{t[o]&&t[o](e[i],n)&&(r.push({element:t,datasetIndex:s,index:a}),h=h||t.inRange(e.x,e.y,n))})),s&&!h?[]:r}var Di={modes:{index(t,e,i,s){const n=ze(e,t),r=i.axis||"x",o=i.includeInvisible||!1,h=i.intersect?Oi(t,n,r,s,o):Si(t,n,r,!1,s,o),a=[];return h.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=h[0].index,i=t.data[e];i&&!i.skip&&a.push({element:i,datasetIndex:t.index,index:e})})),a):[]},dataset(t,e,i,s){const n=ze(e,t),r=i.axis||"xy",o=i.includeInvisible||!1;let h=i.intersect?Oi(t,n,r,s,o):Si(t,n,r,!1,s,o);if(h.length>0){const e=h[0].datasetIndex,i=t.getDatasetMeta(e).data;h=[];for(let t=0;t<i.length;++t)h.push({element:i[t],datasetIndex:e,index:t})}return h},point:(t,e,i,s)=>Oi(t,ze(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest:(t,e,i,s)=>Si(t,ze(e,t),i.axis||"xy",i.intersect,s,i.includeInvisible||!1),x:(t,e,i,s)=>Ai(t,ze(e,t),"x",i.intersect,s),y:(t,e,i,s)=>Ai(t,ze(e,t),"y",i.intersect,s)}};const ji=["left","top","right","bottom"];function Ri(t,e){return t.filter((t=>t.pos===e))}function Ci(t,e){return t.filter((t=>-1===ji.indexOf(t.pos)&&t.box.axis===e))}function Ei(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function Li(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function Pi(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ti(t,e,i,s){const{pos:n,box:r}=i,o=t.maxPadding;if(!H(n)){i.size&&(t[n]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[n]+=i.size}r.getPadding&&Pi(o,r.getPadding());const h=Math.max(0,e.outerWidth-Li(o,t,"left","right")),a=Math.max(0,e.outerHeight-Li(o,t,"top","bottom")),c=h!==t.w,l=a!==t.h;return t.w=h,t.h=a,i.horizontal?{same:c,other:l}:{same:l,other:c}}function Ii(t,e){const i=e.maxPadding;return function(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{s[t]=Math.max(e[t],i[t])})),s}(t?["left","right"]:["top","bottom"])}function Fi(t,e,i,s){const n=[];let r,o,h,a,c,l;for(r=0,o=t.length,c=0;r<o;++r){h=t[r],a=h.box,a.update(h.width||e.w,h.height||e.h,Ii(h.horizontal,e));const{same:o,other:u}=Ti(e,i,h,s);c|=o&&n.length,l=l||u,a.fullSize||n.push(h)}return c&&Fi(n,e,i,s)||l}function Bi(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function Wi(t,e,i,s){const n=i.padding;let{x:r,y:o}=e;for(const h of t){const t=h.box,a=s[h.stack]||{placed:0,weight:1},c=h.stackWeight/a.weight||1;if(h.horizontal){const s=e.w*c,r=a.size||t.height;rt(a.start)&&(o=a.start),t.fullSize?Bi(t,n.left,o,i.outerWidth-n.right-n.left,r):Bi(t,e.left+a.placed,o,s,r),a.start=o,a.placed+=s,o=t.bottom}else{const s=e.h*c,o=a.size||t.width;rt(a.start)&&(r=a.start),t.fullSize?Bi(t,r,n.top,o,i.outerHeight-n.bottom-n.top):Bi(t,r,e.top+a.placed,o,s),a.start=r,a.placed+=s,r=t.right}}e.x=r,e.y=o}var Ni={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=me(t.options.layout.padding),r=Math.max(e-n.width,0),o=Math.max(i-n.height,0),h=function(t){const e=function(t){const e=[];let i,s,n,r,o,h;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:r,options:{stack:o,stackWeight:h=1}}=n),e.push({index:i,box:n,pos:r,horizontal:n.isHorizontal(),weight:n.weight,stack:o&&r+o,stackWeight:h});return e}(t),i=Ei(e.filter((t=>t.box.fullSize)),!0),s=Ei(Ri(e,"left"),!0),n=Ei(Ri(e,"right")),r=Ei(Ri(e,"top"),!0),o=Ei(Ri(e,"bottom")),h=Ci(e,"x"),a=Ci(e,"y");return{fullSize:i,leftAndTop:s.concat(r),rightAndBottom:n.concat(a).concat(o).concat(h),chartArea:Ri(e,"chartArea"),vertical:s.concat(n).concat(a),horizontal:r.concat(o).concat(h)}}(t.boxes),a=h.vertical,c=h.horizontal;Z(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const l=a.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/l,hBoxMaxHeight:o/2}),f=Object.assign({},n);Pi(f,me(s));const d=Object.assign({maxPadding:f,w:r,h:o,x:n.left,y:n.top},n),b=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!ji.includes(s))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let r,o,h;for(r=0,o=t.length;r<o;++r){h=t[r];const{fullSize:o}=h.box,a=i[h.stack],c=a&&h.stackWeight/a.weight;h.horizontal?(h.width=c?c*s:o&&e.availableWidth,h.height=n):(h.width=s,h.height=c?c*n:o&&e.availableHeight)}return i}(a.concat(c),u);Fi(h.fullSize,d,u,b),Fi(a,d,u,b),Fi(c,d,u,b)&&Fi(a,d,u,b),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(d),Wi(h.leftAndTop,d,u,b),d.x+=d.w,d.y+=d.h,Wi(h.rightAndBottom,d,u,b),t.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},Z(h.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})}))}};class zi{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Hi extends zi{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const $i="$chartjs",Yi={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vi=t=>null===t||""===t,Xi=!!Ye&&{passive:!0};function Ui(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,Xi)}function Zi(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Ki(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Zi(i.addedNodes,s),e=e&&!Zi(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function Qi(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Zi(i.removedNodes,s),e=e&&!Zi(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const qi=new Map;let Gi=0;function Ji(){const t=window.devicePixelRatio;t!==Gi&&(Gi=t,qi.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function ts(t,e,i){const s=t.canvas,n=s&&Ie(s);if(!n)return;const r=Et(((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()}),window),o=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||r(i,s)}));return o.observe(n),function(t,e){qi.size||window.addEventListener("resize",Ji),qi.set(t,e)}(t,r),o}function es(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){qi.delete(t),qi.size||window.removeEventListener("resize",Ji)}(t)}function is(t,e,i){const s=t.canvas,n=Et((e=>{null!==t.ctx&&i(function(t,e){const i=Yi[t.type]||t.type,{x:s,y:n}=ze(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))}),t);return function(t,e,i){t&&t.addEventListener(e,i,Xi)}(s,e,n),n}class ss extends zi{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[$i]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Vi(n)){const e=Ve(t,"width");void 0!==e&&(t.width=e)}if(Vi(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Ve(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[$i])return!1;const i=e[$i].initial;["height","width"].forEach((t=>{const s=i[t];N(s)?e.removeAttribute(t):e.setAttribute(t,s)}));const s=i.style||{};return Object.keys(s).forEach((t=>{e.style[t]=s[t]})),e.width=e.width,delete e[$i],!0}addEventListener(t,e,i){this.removeEventListener(t,e),(t.$proxies||(t.$proxies={}))[e]=({attach:Ki,detach:Qi,resize:ts}[e]||is)(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];s&&(({attach:es,detach:es,resize:es}[e]||Ui)(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return function(t,e,i,s){const n=Be(t),r=Ne(n,"margin"),o=Fe(n.maxWidth,t,"clientWidth")||lt,h=Fe(n.maxHeight,t,"clientHeight")||lt,a=function(t,e,i){let s,n;if(void 0===e||void 0===i){const r=t&&Ie(t);if(r){const t=r.getBoundingClientRect(),o=Be(r),h=Ne(o,"border","width"),a=Ne(o,"padding");e=t.width-a.width-h.width,i=t.height-a.height-h.height,s=Fe(o.maxWidth,r,"clientWidth"),n=Fe(o.maxHeight,r,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||lt,maxHeight:n||lt}}(t,e,i);let{width:c,height:l}=a;if("content-box"===n.boxSizing){const t=Ne(n,"border","width"),e=Ne(n,"padding");c-=e.width+t.width,l-=e.height+t.height}return c=Math.max(0,c-r.width),l=Math.max(0,s?c/s:l-r.height),c=He(Math.min(c,o,a.maxWidth)),l=He(Math.min(l,h,a.maxHeight)),c&&!l&&(l=He(c/2)),(void 0!==e||void 0!==i)&&s&&a.height&&l>a.height&&(l=a.height,c=He(Math.floor(l*s))),{width:c,height:l}}(t,e,i,s)}isAttached(t){const e=t&&Ie(t);return!(!e||!e.isConnected)}}class ns{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return xt(this.x)&&xt(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}function rs(t,e,i,s,n){const r=V(s,0),o=Math.min(V(n,t.length),t.length);let h,a,c,l=0;for(i=Math.ceil(i),n&&(h=n-s,i=h/Math.floor(h/i)),c=r;c<0;)l++,c=Math.round(r+l*i);for(a=Math.max(r,0);a<o;a++)a===c&&(e.push(t[a]),l++,c=Math.round(r+l*i))}const os=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,hs=(t,e)=>Math.min(e||t,t);function as(t,e){const i=[],s=t.length/e,n=t.length;let r=0;for(;r<n;r+=s)i.push(t[Math.floor(r)]);return i}function cs(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),r=t._startPixel,o=t._endPixel,h=1e-6;let a,c=t.getPixelForTick(n);if(!(i&&(a=1===s?Math.max(c-r,o-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(n-1))/2,c+=n<e?a:-a,c<r-h||c>o+h)))return c}function ls(t){return t.drawTicks?t.tickLength:0}function us(t,e){if(!t.display)return 0;const i=ve(t.font,e),s=me(t.padding);return(z(t.text)?t.text.length:1)*i.lineHeight+s.height}function fs(t,e,i){let s=Lt(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=(t=>"left"===t?"right":"right"===t?"left":t)(s)),s}class ds extends ns{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this;return t=Y(t,Number.POSITIVE_INFINITY),e=Y(e,Number.NEGATIVE_INFINITY),i=Y(i,Number.POSITIVE_INFINITY),s=Y(s,Number.NEGATIVE_INFINITY),{min:Y(t,i),max:Y(e,s),minDefined:$(t),maxDefined:$(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:r}=this.getUserBounds();if(n&&r)return{min:i,max:s};const o=this.getMatchingVisibleMetas();for(let h=0,a=o.length;h<a;++h)e=o[h].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),r||(s=Math.max(s,e.max));return i=r&&i>s?s:i,s=n&&i>s?i:s,{min:Y(i,Y(s,i)),max:Y(s,Y(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){U(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:r}=this.options,o=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:s,max:n}=t,r=X(e,(n-s)/2),o=(t,e)=>i&&0===t?0:t+e;return{min:o(s,-Math.abs(r)),max:o(n,r)}}(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const h=o<this.ticks.length;this._convertTicksToLabels(h?as(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=function(t,e){const i=t.options.ticks,s=function(t){const e=t.options.offset,i=t._tickSize();return Math.floor(Math.min(t._length/i+(e?0:1),t._maxLength/i))}(t),n=Math.min(i.maxTicksLimit||s,s),r=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],o=r.length,h=r[0],a=r[o-1],c=[];if(o>n)return function(t,e,i,s){let n,r=0,o=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===o&&(e.push(t[n]),r++,o=i[r*s])}(e,c,r,o/n),c;const l=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const r=function(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s==0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}(s);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>n)return e}return Math.max(n,1)}(r,e,n);if(o>0){let t,i;const s=o>1?Math.round((a-h)/(o-1)):null;for(rs(e,c,l,N(s)?0:h-s,h),t=0,i=o-1;t<i;t++)rs(e,c,l,r[t],r[t+1]);return rs(e,c,l,a,N(s)?e.length:a+s),c}return rs(e,c,l),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),h&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){U(this.options.afterUpdate,[this])}beforeSetDimensions(){U(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){U(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),U(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){U(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=U(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){U(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){U(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=hs(this.ticks.length,t.ticks.maxTicksLimit),s=e.minRotation||0,n=e.maxRotation;let r,o,h,a=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const c=this._getLabelSizes(),l=c.widest.width,u=c.highest.height,f=kt(this.chart.width-l,0,this.maxWidth);r=t.offset?this.maxWidth/i:f/(i-1),l+6>r&&(r=f/(i-(t.offset?.5:1)),o=this.maxHeight-ls(t.grid)-e.padding-us(t.title,this.chart.options.font),h=Math.sqrt(l*l+u*u),a=Math.min(Math.asin(kt((c.highest.height+6)/r,-1,1)),Math.asin(kt(o/h,-1,1))-Math.asin(kt(u/h,-1,1)))*(180/at),a=Math.max(s,Math.min(n,a))),this.labelRotation=a}afterCalculateLabelRotation(){U(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){U(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,r=this._isVisible(),o=this.isHorizontal();if(r){const r=us(s,e.options.font);if(o?(t.width=this.maxWidth,t.height=ls(n)+r):(t.height=this.maxHeight,t.width=ls(n)+r),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:r}=this._getLabelSizes(),h=2*i.padding,a=yt(this.labelRotation),c=Math.cos(a),l=Math.sin(a);o?t.height=Math.min(this.maxHeight,t.height+(i.mirror?0:l*n.width+c*r.height)+h):t.width=Math.min(this.maxWidth,t.width+(i.mirror?0:c*n.width+l*r.height)+h),this._calculatePadding(e,s,l,c)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:r},position:o}=this.options,h=0!==this.labelRotation,a="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let l=0,u=0;h?a?(l=s*t.width,u=i*e.height):(l=i*t.height,u=s*e.width):"start"===n?u=e.width:"end"===n?l=t.width:"inner"!==n&&(l=t.width/2,u=e.width/2),this.paddingLeft=Math.max((l-o+r)*this.width/(this.width-o),0),this.paddingRight=Math.max((u-c+r)*this.width/(this.width-c),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+r,this.paddingBottom=s+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){U(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)N(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=as(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:s,_longestTextCache:n}=this,r=[],o=[],h=Math.floor(e/hs(e,i));let a,c,l,u,f,d,b,g,p,m,v,x=0,y=0;for(a=0;a<e;a+=h){if(u=t[a].label,f=this._resolveTickFontOptions(a),s.font=d=f.string,b=n[d]=n[d]||{data:{},gc:[]},g=f.lineHeight,p=m=0,N(u)||z(u)){if(z(u))for(c=0,l=u.length;c<l;++c)v=u[c],N(v)||z(v)||(p=Jt(s,b.data,b.gc,p,v),m+=g)}else p=Jt(s,b.data,b.gc,p,u),m=g;r.push(p),o.push(m),x=Math.max(p,x),y=Math.max(m,y)}!function(t,e){Z(t,(t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}}))}(n,e);const M=r.indexOf(x),w=o.indexOf(y),_=t=>({width:r[t]||0,height:o[t]||0});return{first:_(0),last:_(e-1),widest:_(M),highest:_(w),widths:r,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return kt(this._alignToPixels?te(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return ye(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=ye(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=yt(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),r=t.autoSkipPadding||0,o=n?n.widest.width+r:0,h=n?n.highest.height+r:0;return this.isHorizontal()?h*i>o*s?o/i:h/s:h*s<o*i?h/i:o/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:n,position:r,border:o}=s,h=n.offset,a=this.isHorizontal(),c=this.ticks.length+(h?1:0),l=ls(n),u=[],f=o.setContext(this.getContext()),d=f.display?f.width:0,b=d/2,g=function(t){return te(i,t,d)};let p,m,v,x,y,M,w,_,k,O,S,A;if("top"===r)p=g(this.bottom),M=this.bottom-l,_=p-b,O=g(t.top)+b,A=t.bottom;else if("bottom"===r)p=g(this.top),O=t.top,A=g(t.bottom)-b,M=p+b,_=this.top+l;else if("left"===r)p=g(this.right),y=this.right-l,w=p-b,k=g(t.left)+b,S=t.right;else if("right"===r)p=g(this.left),k=t.left,S=g(t.right)-b,y=p+b,w=this.left+l;else if("x"===e){if("center"===r)p=g((t.top+t.bottom)/2+.5);else if(H(r)){const t=Object.keys(r)[0];p=g(this.chart.scales[t].getPixelForValue(r[t]))}O=t.top,A=t.bottom,M=p+b,_=M+l}else if("y"===e){if("center"===r)p=g((t.left+t.right)/2);else if(H(r)){const t=Object.keys(r)[0];p=g(this.chart.scales[t].getPixelForValue(r[t]))}y=p-b,w=y-l,k=t.left,S=t.right}const D=V(s.ticks.maxTicksLimit,c),j=Math.max(1,Math.ceil(c/D));for(m=0;m<c;m+=j){const t=this.getContext(m),e=n.setContext(t),s=o.setContext(t),r=e.lineWidth,c=e.color,l=s.dash||[],f=s.dashOffset,d=e.tickWidth,b=e.tickColor,g=e.tickBorderDash||[],p=e.tickBorderDashOffset;v=cs(this,m,h),void 0!==v&&(x=te(i,v,r),a?y=w=k=S=x:M=_=O=A=x,u.push({tx1:y,ty1:M,tx2:w,ty2:_,x1:k,y1:O,x2:S,y2:A,width:r,color:c,borderDash:l,borderDashOffset:f,tickWidth:d,tickColor:b,tickBorderDash:g,tickBorderDashOffset:p}))}return this._ticksLength=c,this._borderValue=p,u}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:n}=i,r=this.isHorizontal(),o=this.ticks,{align:h,crossAlign:a,padding:c,mirror:l}=n,u=ls(i.grid),f=u+c,d=l?-c:f,b=-yt(this.labelRotation),g=[];let p,m,v,x,y,M,w,_,k,O,S,A,D="middle";if("top"===s)M=this.bottom-d,w=this._getXAxisLabelAlignment();else if("bottom"===s)M=this.top+d,w=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(u);w=t.textAlign,y=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(u);w=t.textAlign,y=t.x}else if("x"===e){if("center"===s)M=(t.top+t.bottom)/2+f;else if(H(s)){const t=Object.keys(s)[0];M=this.chart.scales[t].getPixelForValue(s[t])+f}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)y=(t.left+t.right)/2-f;else if(H(s)){const t=Object.keys(s)[0];y=this.chart.scales[t].getPixelForValue(s[t])}w=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===h?D="top":"end"===h&&(D="bottom"));const j=this._getLabelSizes();for(p=0,m=o.length;p<m;++p){v=o[p],x=v.label;const t=n.setContext(this.getContext(p));_=this.getPixelForTick(p)+n.labelOffset,k=this._resolveTickFontOptions(p),O=k.lineHeight,S=z(x)?x.length:1;const e=S/2,i=t.color,h=t.textStrokeColor,c=t.textStrokeWidth;let u,f=w;if(r?(y=_,"inner"===w&&(f=p===m-1?this.options.reverse?"left":"right":0===p?this.options.reverse?"right":"left":"center"),A="top"===s?"near"===a||0!==b?-S*O+O/2:"center"===a?-j.highest.height/2-e*O+O:O/2-j.highest.height:"near"===a||0!==b?O/2:"center"===a?j.highest.height/2-e*O:j.highest.height-S*O,l&&(A*=-1),0===b||t.showLabelBackdrop||(y+=O/2*Math.sin(b))):(M=_,A=(1-S)*O/2),t.showLabelBackdrop){const e=me(t.backdropPadding),i=j.heights[p],s=j.widths[p];let n=A-e.top,r=0-e.left;switch(D){case"middle":n-=i/2;break;case"bottom":n-=i}switch(w){case"center":r-=s/2;break;case"right":r-=s;break;case"inner":p===m-1?r-=s:p>0&&(r-=s/2)}u={left:r,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}g.push({label:x,font:k,textOffset:A,options:{rotation:b,color:i,strokeColor:h,strokeWidth:c,textAlign:f,textBaseline:D,translation:[y,M],backdrop:u}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-yt(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,r=t+n,o=this._getLabelSizes().widest.width;let h,a;return"left"===e?s?(a=this.right+n,"near"===i?h="left":"center"===i?(h="center",a+=o/2):(h="right",a+=o)):(a=this.right-r,"near"===i?h="right":"center"===i?(h="center",a-=o/2):(h="left",a=this.left)):"right"===e?s?(a=this.left+n,"near"===i?h="right":"center"===i?(h="center",a-=o/2):(h="left",a-=o)):(a=this.left+r,"near"===i?h="left":"center"===i?(h="center",a+=o/2):(h="right",a=this.right)):h="right",{textAlign:h,x:a}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:s,width:n,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,r;const o=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,r=s.length;n<r;++n){const t=s[n];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:i,grid:s}}=this,n=i.setContext(this.getContext()),r=i.display?n.width:0;if(!r)return;const o=s.setContext(this.getContext(0)).lineWidth,h=this._borderValue;let a,c,l,u;this.isHorizontal()?(a=te(t,this.left,r)-r/2,c=te(t,this.right,o)+o/2,l=u=h):(l=te(t,this.top,r)-r/2,u=te(t,this.bottom,o)+o/2,a=c=h),e.save(),e.lineWidth=n.width,e.strokeStyle=n.color,e.beginPath(),e.moveTo(a,l),e.lineTo(c,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&re(e,i);const s=this.getLabelItems(t);for(const t of s)ce(e,t.label,0,t.textOffset,t.font,t.options);i&&oe(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const n=ve(i.font),r=me(i.padding),o=i.align;let h=n.lineHeight/2;"bottom"===e||"center"===e||H(e)?(h+=r.bottom,z(i.text)&&(h+=n.lineHeight*(i.text.length-1))):h+=r.top;const{titleX:a,titleY:c,maxWidth:l,rotation:u}=function(t,e,i,s){const{top:n,left:r,bottom:o,right:h,chart:a}=t,{chartArea:c,scales:l}=a;let u,f,d,b=0;const g=o-n,p=h-r;if(t.isHorizontal()){if(f=Pt(s,r,h),H(i)){const t=Object.keys(i)[0];d=l[t].getPixelForValue(i[t])+g-e}else d="center"===i?(c.bottom+c.top)/2+g-e:os(t,i,e);u=h-r}else{if(H(i)){const t=Object.keys(i)[0];f=l[t].getPixelForValue(i[t])-p+e}else f="center"===i?(c.left+c.right)/2-p+e:os(t,i,e);d=Pt(s,o,n),b="left"===i?-ft:ft}return{titleX:f,titleY:d,maxWidth:u,rotation:b}}(this,h,e,o);ce(t,i.text,0,0,n,{color:i.color,maxWidth:l,rotation:u,textAlign:fs(o,e,s),textBaseline:"middle",translation:[a,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=V(t.grid&&t.grid.z,-1),s=V(t.border&&t.border.z,0);return this._isVisible()&&this.draw===ds.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let n,r;for(n=0,r=e.length;n<r;++n){const r=e[n];r[i]!==this.id||t&&r.type!==t||s.push(r)}return s}_resolveTickFontOptions(t){return ve(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class bs{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,r=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in s||(s[n]=t,function(t,e,i){const s=J(Object.create(null),[i?Gt.get(i):{},Gt.get(e),t.defaults]);Gt.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const s=i.split("."),n=s.pop(),r=[t].concat(s).join("."),o=e[i].split("."),h=o.pop(),a=o.join(".");Gt.route(r,n,a,h)}))}(e,t.defaultRoutes),t.descriptors&&Gt.describe(e,t.descriptors)}(t,r,i),this.override&&Gt.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in Gt[s]&&(delete Gt[s][i],this.override&&delete Ut[i])}}class gs{constructor(){this.controllers=new bs(di,"datasets",!0),this.elements=new bs(ns,"elements"),this.plugins=new bs(Object,"plugins"),this.scales=new bs(ds,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):Z(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const s=nt(t);U(i["before"+s],[],i),e[t](i),U(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var ps=new gs;class ms{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===U(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){N(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,s=V(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(ps.plugins.items);for(let t=0;t<s.length;t++)i.push(ps.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const r=[],o=t.getContext();for(const h of e){const e=h.id,a=vs(s[e],n);null!==a&&r.push({plugin:h,options:xs(t.config,{plugin:h,local:i[e]},a,o)})}return r}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function vs(t,e){return e||!1!==t?!0===t?{}:t:null}function xs(t,{plugin:e,local:i},s,n){const r=t.pluginScopeKeys(e),o=t.getOptionScopes(s,r);return i&&e.defaults&&o.push(e.defaults),t.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ys(t,e){return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||(Gt.datasets[t]||{}).indexAxis||"x"}function Ms(t){if("x"===t||"y"===t||"r"===t)return t}function ws(t,...e){if(Ms(t))return t;for(const s of e){const e=s.axis||("top"===(i=s.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&Ms(t[0].toLowerCase());if(e)return e}var i;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function _s(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function ks(t){const e=t.options||(t.options={});e.plugins=V(e.plugins,{}),e.scales=function(t,e){const i=Ut[t.type]||{scales:{}},s=e.scales||{},n=ys(t.type,e),r=Object.create(null);return Object.keys(s).forEach((e=>{const o=s[e];if(!H(o))return console.error(`Invalid scale configuration for scale: ${e}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const h=ws(e,o,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(i.length)return _s(t,"x",i[0])||_s(t,"y",i[0])}return{}}(e,t),Gt.scales[o.type]),a=function(t,e){return t===e?"_index_":"_value_"}(h,n),c=i.scales||{};r[e]=tt(Object.create(null),[{axis:h},o,c[h],c[a]])})),t.data.datasets.forEach((i=>{const n=i.type||t.type,o=i.indexAxis||ys(n,e),h=(Ut[n]||{}).scales||{};Object.keys(h).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,o),n=i[e+"AxisID"]||e;r[n]=r[n]||Object.create(null),tt(r[n],[{axis:e},s[n],h[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];tt(e,[Gt.scales[e.type],Gt.scale])})),r}(t,e)}function Os(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ss=new Map,As=new Set;function Ds(t,e){let i=Ss.get(t);return i||(i=e(),Ss.set(t,i),As.add(i)),i}const js=(t,e,i)=>{const s=st(e,i);void 0!==s&&t.add(s)};class Rs{constructor(t){this._config=function(t){return(t=t||{}).data=Os(t.data),ks(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Os(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ks(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Ds(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Ds(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Ds(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Ds(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,r=this._cachedScopes(t,i),o=r.get(e);if(o)return o;const h=new Set;e.forEach((e=>{t&&(h.add(t),e.forEach((e=>js(h,t,e)))),e.forEach((t=>js(h,s,t))),e.forEach((t=>js(h,Ut[n]||{},t))),e.forEach((t=>js(h,Gt,t))),e.forEach((t=>js(h,Zt,t)))}));const a=Array.from(h);return 0===a.length&&a.push(Object.create(null)),As.has(e)&&r.set(e,a),a}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ut[e]||{},Gt.datasets[e]||{},{type:e},Gt,Zt]}resolveNamedOptions(t,e,i,s=[""]){const n={$shared:!0},{resolver:r,subPrefixes:o}=Cs(this._resolverCache,t,s);let h=r;(function(t,e){const{isScriptable:i,isIndexable:s}=_e(t);for(const n of e){const e=i(n),r=s(n),o=(r||e)&&t[n];if(e&&(ot(o)||Es(o))||r&&z(o))return!0}return!1})(r,e)&&(n.$shared=!1,h=we(r,i=ot(i)?i():i,this.createResolver(t,i,o)));for(const t of e)n[t]=h[t];return n}createResolver(t,e,i=[""],s){const{resolver:n}=Cs(this._resolverCache,t,i);return H(e)?we(n,e,void 0,s):n}}function Cs(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let r=s.get(n);return r||(r={resolver:Me(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},s.set(n,r)),r}const Es=t=>H(t)&&Object.getOwnPropertyNames(t).some((e=>ot(t[e]))),Ls=["top","bottom","left","right","chartArea"];function Ps(t,e){return"top"===t||"bottom"===t||-1===Ls.indexOf(t)&&"x"===e}function Ts(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function Is(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),U(i&&i.onComplete,[t],e)}function Fs(t){const e=t.chart,i=e.options.animation;U(i&&i.onProgress,[t],e)}function Bs(t){return Te()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Ws={},Ns=t=>{const e=Bs(t);return Object.values(Ws).filter((t=>t.canvas===e)).pop()};function zs(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const r=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=r)}}}class Hs{static defaults=Gt;static instances=Ws;static overrides=Ut;static registry=ps;static version="4.4.9";static getChart=Ns;static register(...t){ps.add(...t),$s()}static unregister(...t){ps.remove(...t),$s()}constructor(t,e){const i=this.config=new Rs(e),s=Bs(t),n=Ns(s);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!Te()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Hi:ss}(s)),this.platform.updateConfig(i);const o=this.platform.acquireContext(s,r.aspectRatio),h=o&&o.canvas,a=h&&h.height,c=h&&h.width;this.id=W(),this.ctx=o,this.canvas=h,this.width=c,this.height=a,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ms,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}((t=>this.update(t)),r.resizeDelay||0),this._dataChanges=[],Ws[this.id]=this,o&&h?(qe.listen(this,"complete",Is),qe.listen(this,"progress",Fs),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:n}=this;return N(t)?e&&n?n:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ps}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():$e(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ee(this.canvas,this.ctx),this}stop(){return qe.stop(this),this}resize(t,e){qe.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.platform.getMaximumSize(this.canvas,t,e,i.maintainAspectRatio&&this.aspectRatio),n=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,$e(this,n,!0)&&(this.notifyPlugins("resize",{size:s}),U(i.onResize,[this,s],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){Z(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],s=ws(t,i),n="r"===s,r="x"===s;return{options:i,dposition:n?"chartArea":r?"bottom":"left",dtype:n?"radialLinear":r?"category":"linear"}})))),Z(n,(e=>{const n=e.options,r=n.id,o=ws(r,n),h=V(n.type,e.dtype);void 0!==n.position&&Ps(n.position,o)===Ps(e.dposition)||(n.position=e.dposition),s[r]=!0;let a=null;r in i&&i[r].type===h?a=i[r]:(a=new(ps.getScale(h))({id:r,type:h,ctx:this.ctx,chart:this}),i[a.id]=a),a.init(n,t)})),Z(s,((t,e)=>{t||delete i[e]})),Z(i,(t=>{Ni.configure(this,t,t.options),Ni.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(Ts("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const r=s.type||this.config.type;if(n.type&&n.type!==r&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=r,n.indexAxis=s.indexAxis||ys(r,this.options),n.order=s.order||0,n.index=i,n.label=""+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=ps.getController(r),{datasetElementType:s,dataElementType:o}=Gt.datasets[r];Object.assign(e,{dataElementType:ps.getElement(o),datasetElementType:s&&ps.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){Z(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||Z(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ts("z","_idx"));const{_active:o,_lastEvent:h}=this;h?this._eventHandler(h,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Z(this.scales,(t=>{Ni.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);ht(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e)zs(t,s,"_removeElements"===i?-n:n)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=i(0);for(let t=1;t<e;t++)if(!ht(s,i(t)))return;return Array.from(s).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Ni.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Z(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,ot(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(qe.has(this)?this.attached&&!qe.running(this)&&qe.start(this):(this.draw(),Is({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i={meta:t,index:t.index,cancelable:!0},s=function(t,e){const i=e._clip;if(i.disabled)return!1;const s=function(t,e){const{xScale:i,yScale:s}=t;return i&&s?{left:Ke(i,e,"left"),right:Ke(i,e,"right"),top:Ke(s,e,"top"),bottom:Ke(s,e,"bottom")}:e}(e,t.chartArea);return{left:!1===i.left?0:s.left-(!0===i.left?0:i.left),right:!1===i.right?t.width:s.right+(!0===i.right?0:i.right),top:!1===i.top?0:s.top-(!0===i.top?0:i.top),bottom:!1===i.bottom?t.height:s.bottom+(!0===i.bottom?0:i.bottom)}}(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(s&&re(e,s),t.controller.draw(),s&&oe(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return ne(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=Di.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=ye(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),r=n.controller._resolveAnimations(void 0,s);rt(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(n,{visible:i}),this.update((e=>e.datasetIndex===t?s:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),qe.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ee(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Ws[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};Z(this.options.events,(t=>i(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const o=()=>{s("attach",o),this.attached=!0,this.resize(),i("resize",n),i("detach",r)};r=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",o)},e.isAttached(this.canvas)?o():r()}unbindEvents(){Z(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Z(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,r,o,h;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),o=0,h=t.length;o<h;++o){r=t[o];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!K(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),r=n(e,t),o=i?t:n(t,e);r.length&&this.updateHoverStyle(r,s.mode,!1),o.length&&s.mode&&this.updateHoverStyle(o,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,r=this._getActiveElements(t,s,i,e),o=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),h=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,o);i&&(this._lastEvent=null,U(n.onHover,[t,r,this],this),o&&U(n.onClick,[t,r,this],this));const a=!K(r,s);return(a||e)&&(this._active=r,this._updateHoverStyles(r,s,e)),this._lastEvent=h,a}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}function $s(){return Z(Hs.instances,(t=>t._plugins.invalidate()))}function Ys(t,e){const{x:i,y:s,base:n,width:r,height:o}=t.getProps(["x","y","base","width","height"],e);let h,a,c,l,u;return t.horizontal?(u=o/2,h=Math.min(i,n),a=Math.max(i,n),c=s-u,l=s+u):(u=r/2,h=i-u,a=i+u,c=Math.min(s,n),l=Math.max(s,n)),{left:h,top:c,right:a,bottom:l}}function Vs(t,e,i,s){return t?0:kt(e,i,s)}function Xs(t,e,i,s){const n=null===e,r=null===i,o=t&&!(n&&r)&&Ys(t,s);return o&&(n||Ot(e,o.left,o.right))&&(r||Ot(i,o.top,o.bottom))}function Us(t,e){t.rect(e.x,e.y,e.w,e.h)}function Zs(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0;return{x:t.x+s,y:t.y+n,w:t.w+((t.x+t.w!==i.x+i.w?e:0)-s),h:t.h+((t.y+t.h!==i.y+i.h?e:0)-n),radius:t.radius}}const Ks=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Qs=Ks.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function qs(t){return Ks[t%Ks.length]}function Gs(t){return Qs[t%Qs.length]}function Js(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var tn={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){if(!i.enabled)return;const{data:{datasets:s},options:n}=t.config,{elements:r}=n,o=Js(s)||(h=n)&&(h.borderColor||h.backgroundColor)||r&&Js(r)||"rgba(0,0,0,0.1)"!==Gt.borderColor||"rgba(0,0,0,0.1)"!==Gt.backgroundColor;var h;if(!i.forceOverride&&o)return;const a=function(t){let e=0;return(i,s)=>{const n=t.getDatasetMeta(s).controller;n instanceof Mi?e=function(t,e){return t.backgroundColor=t.data.map((()=>qs(e++))),e}(i,e):n instanceof wi?e=function(t,e){return t.backgroundColor=t.data.map((()=>Gs(e++))),e}(i,e):n&&(e=function(t,e){return t.borderColor=qs(e),t.backgroundColor=Gs(e),++e}(i,e))}}(t);s.forEach(a)}};const en=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class sn extends ns{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=U(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,s=ve(i.font),n=s.size,r=this._computeTitleHeight(),{boxWidth:o,itemHeight:h}=en(i,n);let a,c;e.font=s.string,this.isHorizontal()?(a=this.maxWidth,c=this._fitRows(r,n,o,h)+10):(c=this.maxHeight,a=this._fitCols(r,s,o,h)+10),this.width=Math.min(a,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:r,options:{labels:{padding:o}}}=this,h=this.legendHitBoxes=[],a=this.lineWidths=[0],c=s+o;let l=t;n.textAlign="left",n.textBaseline="middle";let u=-1,f=-c;return this.legendItems.forEach(((t,d)=>{const b=i+e/2+n.measureText(t.text).width;(0===d||a[a.length-1]+b+2*o>r)&&(l+=c,a[a.length-(d>0?0:1)]=0,f+=c,u++),h[d]={left:0,top:f,row:u,width:b,height:s},a[a.length-1]+=b+o})),l}_fitCols(t,e,i,s){const{ctx:n,maxHeight:r,options:{labels:{padding:o}}}=this,h=this.legendHitBoxes=[],a=this.columnSizes=[],c=r-t;let l=o,u=0,f=0,d=0,b=0;return this.legendItems.forEach(((t,r)=>{const{itemWidth:g,itemHeight:p}=function(t,e,i,s,n){const r=function(t,e,i,s){let n=t.text;return n&&"string"!=typeof n&&(n=n.reduce(((t,e)=>t.length>e.length?t:e))),e+i.size/2+s.measureText(n).width}(s,t,e,i),o=function(t,e,i){let s=t;return"string"!=typeof e.text&&(s=nn(e,i)),s}(n,s,e.lineHeight);return{itemWidth:r,itemHeight:o}}(i,e,n,t,s);r>0&&f+p+2*o>c&&(l+=u+o,a.push({width:u,height:f}),d+=u+o,b++,u=f=0),h[r]={left:d,top:f,col:b,width:g,height:p},u=Math.max(u,g),f+=p+o})),l+=u,a.push({width:u,height:f}),l}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,r=Xe(n,this.left,this.width);if(this.isHorizontal()){let n=0,o=Pt(i,this.left+s,this.right-this.lineWidths[n]);for(const h of e)n!==h.row&&(n=h.row,o=Pt(i,this.left+s,this.right-this.lineWidths[n])),h.top+=this.top+t+s,h.left=r.leftForLtr(r.x(o),h.width),o+=h.width+s}else{let n=0,o=Pt(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const h of e)h.col!==n&&(n=h.col,o=Pt(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),h.top=o,h.left+=this.left+s,h.left=r.leftForLtr(r.x(h.left),h.width),o+=h.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;re(t,this),this._draw(),oe(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:r}=t,o=Gt.color,h=Xe(t.rtl,this.left,this.width),a=ve(r.font),{padding:c}=r,l=a.size,u=l/2;let f;this.drawTitle(),s.textAlign=h.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=a.string;const{boxWidth:d,boxHeight:b,itemHeight:g}=en(r,l),p=this.isHorizontal(),m=this._computeTitleHeight();f=p?{x:Pt(n,this.left+c,this.right-i[0]),y:this.top+c+m,line:0}:{x:this.left+c,y:Pt(n,this.top+m+c,this.bottom-e[0].height),line:0},Ue(this.ctx,t.textDirection);const v=g+c;this.legendItems.forEach(((x,y)=>{s.strokeStyle=x.fontColor,s.fillStyle=x.fontColor;const M=s.measureText(x.text).width,w=h.textAlign(x.textAlign||(x.textAlign=r.textAlign)),_=d+u+M;let k=f.x,O=f.y;h.setWidth(this.width),p?y>0&&k+_+c>this.right&&(O=f.y+=v,f.line++,k=f.x=Pt(n,this.left+c,this.right-i[f.line])):y>0&&O+v>this.bottom&&(k=f.x=k+e[f.line].width+c,f.line++,O=f.y=Pt(n,this.top+m+c,this.bottom-e[f.line].height)),function(t,e,i){if(isNaN(d)||d<=0||isNaN(b)||b<0)return;s.save();const n=V(i.lineWidth,1);if(s.fillStyle=V(i.fillStyle,o),s.lineCap=V(i.lineCap,"butt"),s.lineDashOffset=V(i.lineDashOffset,0),s.lineJoin=V(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=V(i.strokeStyle,o),s.setLineDash(V(i.lineDash,[])),r.usePointStyle){const o={radius:b*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},a=h.xPlus(t,d/2);se(s,o,a,e+u,r.pointStyleWidth&&d)}else{const r=e+Math.max((l-b)/2,0),o=h.leftForLtr(t,d),a=pe(i.borderRadius);s.beginPath(),Object.values(a).some((t=>0!==t))?le(s,{x:o,y:r,w:d,h:b,radius:a}):s.rect(o,r,d,b),s.fill(),0!==n&&s.stroke()}s.restore()}(h.x(k),O,x),k=((t,e,i,s)=>t===(s?"left":"right")?i:"center"===t?(e+i)/2:e)(w,k+d+u,p?k+_:this.right,t.rtl),function(t,e,i){ce(s,i.text,t,e+g/2,a,{strikethrough:i.hidden,textAlign:h.textAlign(i.textAlign)})}(h.x(k),O,x),p?f.x+=_+c:f.y+="string"!=typeof x.text?nn(x,a.lineHeight)+c:v})),Ze(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=ve(e.font),s=me(e.padding);if(!e.display)return;const n=Xe(t.rtl,this.left,this.width),r=this.ctx,o=e.position,h=s.top+i.size/2;let a,c=this.left,l=this.width;if(this.isHorizontal())l=Math.max(...this.lineWidths),a=this.top+h,c=Pt(t.align,c,this.right-l);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);a=h+Pt(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=Pt(o,c,c+l);r.textAlign=n.textAlign(Lt(o)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=i.string,ce(r,e.text,u,a,i)}_computeTitleHeight(){const t=this.options.title,e=ve(t.font),i=me(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(Ot(t,this.left,this.right)&&Ot(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],Ot(t,s.left,s.left+s.width)&&Ot(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,o=(n=i,null!==(s=r)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);r&&!o&&U(e.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!o&&U(e.onHover,[t,i,this],this)}else i&&U(e.onClick,[t,i,this],this);var s,n}}function nn(t,e){return e*(t.text?t.text.length:0)}var rn={id:"legend",_element:sn,start(t,e,i){const s=t.legend=new sn({ctx:t.ctx,options:i,chart:t});Ni.configure(t,s,i),Ni.addBox(t,s)},stop(t){Ni.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;Ni.configure(t,s,i),s.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:n,color:r,useBorderRadius:o,borderRadius:h}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(i?0:void 0),c=me(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:n||a.textAlign,borderRadius:o&&(h||a.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class on extends ns{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=z(i.text)?i.text.length:1;this._padding=me(i.padding);const n=s*ve(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:r}=this,o=r.align;let h,a,c,l=0;return this.isHorizontal()?(a=Pt(o,i,n),c=e+t,h=n-i):("left"===r.position?(a=i+t,c=Pt(o,s,e),l=-.5*at):(a=n-t,c=Pt(o,e,s),l=.5*at),h=s-e),{titleX:a,titleY:c,maxWidth:h,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=ve(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:r,maxWidth:o,rotation:h}=this._drawArgs(s);ce(t,e.text,0,0,i,{color:e.color,maxWidth:o,rotation:h,textAlign:Lt(e.align),textBaseline:"middle",translation:[n,r]})}}var hn={id:"title",_element:on,start(t,e,i){!function(t,e){const i=new on({ctx:t.ctx,options:e,chart:t});Ni.configure(t,i,e),Ni.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){Ni.removeBox(t,t.titleBlock),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;Ni.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const an={average(t){if(!t.length)return!1;let e,i,s=new Set,n=0,r=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s.add(t.x),n+=t.y,++r}}return 0!==r&&0!==s.size&&{x:[...s].reduce(((t,e)=>t+e))/s.size,y:n/r}},nearest(t,e){if(!t.length)return!1;let i,s,n,r=e.x,o=e.y,h=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=(a=e,c=s.getCenterPoint(),Math.sqrt(Math.pow(c.x-a.x,2)+Math.pow(c.y-a.y,2)));t<h&&(h=t,n=s)}}var a,c;if(n){const t=n.tooltipPosition();r=t.x,o=t.y}return{x:r,y:o}}};function cn(t,e){return e&&(z(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function ln(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function un(t,e){const{element:i,datasetIndex:s,index:n}=e,r=t.getDatasetMeta(s).controller,{label:o,value:h}=r.getLabelAndValue(n);return{chart:t,label:o,parsed:r.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:h,dataset:r.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function fn(t,e){const i=t.chart.ctx,{body:s,footer:n,title:r}=t,{boxWidth:o,boxHeight:h}=e,a=ve(e.bodyFont),c=ve(e.titleFont),l=ve(e.footerFont),u=r.length,f=n.length,d=s.length,b=me(e.padding);let g=b.height,p=0,m=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);m+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),m&&(g+=d*(e.displayColors?Math.max(h,a.lineHeight):a.lineHeight)+(m-d)*a.lineHeight+(m-1)*e.bodySpacing),f&&(g+=e.footerMarginTop+f*l.lineHeight+(f-1)*e.footerSpacing);let v=0;const x=function(t){p=Math.max(p,i.measureText(t).width+v)};return i.save(),i.font=c.string,Z(t.title,x),i.font=a.string,Z(t.beforeBody.concat(t.afterBody),x),v=e.displayColors?o+2+e.boxPadding:0,Z(s,(t=>{Z(t.before,x),Z(t.lines,x),Z(t.after,x)})),v=0,i.font=l.string,Z(t.footer,x),i.restore(),p+=b.width,{width:p,height:g}}function dn(t,e,i,s){const{x:n,width:r}=i,{width:o,chartArea:{left:h,right:a}}=t;let c="center";return"center"===s?c=n<=(h+a)/2?"left":"right":n<=r/2?c="left":n>=o-r/2&&(c="right"),function(t,e,i,s){const{x:n,width:r}=s,o=i.caretSize+i.caretPadding;return"left"===t&&n+r+o>e.width||"right"===t&&n-r-o<0||void 0}(c,t,e,i)&&(c="center"),c}function bn(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||dn(t,e,i,s),yAlign:s}}function gn(t,e,i,s){const{caretSize:n,caretPadding:r,cornerRadius:o}=t,{xAlign:h,yAlign:a}=i,c=n+r,{topLeft:l,topRight:u,bottomLeft:f,bottomRight:d}=pe(o);let b=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,h);const g=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,a,c);return"center"===a?"left"===h?b+=c:"right"===h&&(b-=c):"left"===h?b-=Math.max(l,f)+n:"right"===h&&(b+=Math.max(u,d)+n),{x:kt(b,0,s.width-e.width),y:kt(g,0,s.height-e.height)}}function pn(t,e,i){const s=me(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function mn(t){return cn([],ln(t))}function vn(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const xn={beforeTitle:B,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:B,beforeBody:B,beforeLabel:B,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return N(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:B,afterBody:B,beforeFooter:B,footer:B,afterFooter:B};function yn(t,e,i,s){const n=t[e].call(i,s);return void 0===n?xn[e].call(i,s):n}class Mn extends ns{static positioners=an;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new ei(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=ye(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"}))}getTitle(t,e){const{callbacks:i}=e,s=yn(i,"beforeTitle",this,t),n=yn(i,"title",this,t),r=yn(i,"afterTitle",this,t);let o=[];return o=cn(o,ln(s)),o=cn(o,ln(n)),o=cn(o,ln(r)),o}getBeforeBody(t,e){return mn(yn(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,s=[];return Z(t,(t=>{const e={before:[],lines:[],after:[]},n=vn(i,t);cn(e.before,ln(yn(n,"beforeLabel",this,t))),cn(e.lines,yn(n,"label",this,t)),cn(e.after,ln(yn(n,"afterLabel",this,t))),s.push(e)})),s}getAfterBody(t,e){return mn(yn(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,s=yn(i,"beforeFooter",this,t),n=yn(i,"footer",this,t),r=yn(i,"afterFooter",this,t);let o=[];return o=cn(o,ln(s)),o=cn(o,ln(n)),o=cn(o,ln(r)),o}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],r=[];let o,h,a=[];for(o=0,h=e.length;o<h;++o)a.push(un(this.chart,e[o]));return t.filter&&(a=a.filter(((e,s,n)=>t.filter(e,s,n,i)))),t.itemSort&&(a=a.sort(((e,s)=>t.itemSort(e,s,i)))),Z(a,(e=>{const i=vn(t.callbacks,e);s.push(yn(i,"labelColor",this,e)),n.push(yn(i,"labelPointStyle",this,e)),r.push(yn(i,"labelTextColor",this,e))})),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=r,this.dataPoints=a,a}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,r=[];if(s.length){const t=an[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const e=this._size=fn(this,i),o=Object.assign({},t,e),h=bn(this.chart,i,o),a=gn(i,o,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,n={opacity:1,x:a.x,y:a.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=r,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:r,cornerRadius:o}=i,{topLeft:h,topRight:a,bottomLeft:c,bottomRight:l}=pe(o),{x:u,y:f}=t,{width:d,height:b}=e;let g,p,m,v,x,y;return"center"===n?(x=f+b/2,"left"===s?(g=u,p=g-r,v=x+r,y=x-r):(g=u+d,p=g+r,v=x-r,y=x+r),m=g):(p="left"===s?u+Math.max(h,c)+r:"right"===s?u+d-Math.max(a,l)-r:this.caretX,"top"===n?(v=f,x=v-r,g=p-r,m=p+r):(v=f+b,x=v+r,g=p+r,m=p-r),y=v),{x1:g,x2:p,x3:m,y1:v,y2:x,y3:y}}drawTitle(t,e,i){const s=this.title,n=s.length;let r,o,h;if(n){const a=Xe(i.rtl,this.x,this.width);for(t.x=pn(this,i.titleAlign,i),e.textAlign=a.textAlign(i.titleAlign),e.textBaseline="middle",r=ve(i.titleFont),o=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,h=0;h<n;++h)e.fillText(s[h],a.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+o,h+1===n&&(t.y+=i.titleMarginBottom-o)}}_drawColorBox(t,e,i,s,n){const r=this.labelColors[i],o=this.labelPointStyles[i],{boxHeight:h,boxWidth:a}=n,c=ve(n.bodyFont),l=pn(this,"left",n),u=s.x(l),f=e.y+(h<c.lineHeight?(c.lineHeight-h)/2:0);if(n.usePointStyle){const e={radius:Math.min(a,h)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},i=s.leftForLtr(u,a)+a/2,c=f+h/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,ie(t,e,i,c),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,ie(t,e,i,c)}else{t.lineWidth=H(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=s.leftForLtr(u,a),i=s.leftForLtr(s.xPlus(u,1),a-2),o=pe(r.borderRadius);Object.values(o).some((t=>0!==t))?(t.beginPath(),t.fillStyle=n.multiKeyBackground,le(t,{x:e,y:f,w:a,h,radius:o}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),le(t,{x:i,y:f+1,w:a-2,h:h-2,radius:o}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,f,a,h),t.strokeRect(e,f,a,h),t.fillStyle=r.backgroundColor,t.fillRect(i,f+1,a-2,h-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:r,displayColors:o,boxHeight:h,boxWidth:a,boxPadding:c}=i,l=ve(i.bodyFont);let u=l.lineHeight,f=0;const d=Xe(i.rtl,this.x,this.width),b=function(i){e.fillText(i,d.x(t.x+f),t.y+u/2),t.y+=u+n},g=d.textAlign(r);let p,m,v,x,y,M,w;for(e.textAlign=r,e.textBaseline="middle",e.font=l.string,t.x=pn(this,g,i),e.fillStyle=i.bodyColor,Z(this.beforeBody,b),f=o&&"right"!==g?"center"===r?a/2+c:a+2+c:0,x=0,M=s.length;x<M;++x){for(p=s[x],m=this.labelTextColors[x],e.fillStyle=m,Z(p.before,b),v=p.lines,o&&v.length&&(this._drawColorBox(e,t,x,d,i),u=Math.max(l.lineHeight,h)),y=0,w=v.length;y<w;++y)b(v[y]),u=l.lineHeight;Z(p.after,b)}f=0,u=l.lineHeight,Z(this.afterBody,b),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let r,o;if(n){const h=Xe(i.rtl,this.x,this.width);for(t.x=pn(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=h.textAlign(i.footerAlign),e.textBaseline="middle",r=ve(i.footerFont),e.fillStyle=i.footerColor,e.font=r.string,o=0;o<n;++o)e.fillText(s[o],h.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:r}=this,{x:o,y:h}=t,{width:a,height:c}=i,{topLeft:l,topRight:u,bottomLeft:f,bottomRight:d}=pe(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(o+l,h),"top"===r&&this.drawCaret(t,e,i,s),e.lineTo(o+a-u,h),e.quadraticCurveTo(o+a,h,o+a,h+u),"center"===r&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(o+a,h+c-d),e.quadraticCurveTo(o+a,h+c,o+a-d,h+c),"bottom"===r&&this.drawCaret(t,e,i,s),e.lineTo(o+f,h+c),e.quadraticCurveTo(o,h+c,o,h+c-f),"center"===r&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(o,h+l),e.quadraticCurveTo(o,h,o+l,h),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=an[t.position].call(this,this._active,this._eventPosition);if(!i)return;const r=this._size=fn(this,t),o=Object.assign({},i,this._size),h=bn(e,t,o),a=gn(t,o,h,e);s._to===a.x&&n._to===a.y||(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=r.width,this.height=r.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,a))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=me(e.padding);e.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,s,e),Ue(t,e.textDirection),n.y+=r.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),Ze(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!K(i,s),r=this._positionChanged(s,e);(n||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],r=this._getActiveElements(t,n,e,i),o=this._positionChanged(r,t),h=e||!K(r,n)||o;return h&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),h}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const r=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,r=an[n.position].call(this,t,e);return!1!==r&&(i!==r.x||s!==r.y)}}var wn={id:"tooltip",_element:Mn,positioners:an,afterInit(t,e,i){i&&(t.tooltip=new Mn({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){t.tooltip&&t.tooltip.handleEvent(e.event,e.replay,e.inChartArea)&&(e.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:xn},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function _n(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function kn(t,e,{horizontal:i,minRotation:s}){const n=yt(s),r=(i?Math.sin(n):Math.cos(n))||.001;return Math.min(e/r,.75*e*(""+t).length)}class On extends ds{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return N(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const r=t=>s=e?s:t,o=t=>n=i?n:t;if(t){const t=pt(s),e=pt(n);t<0&&e<0?o(0):t>0&&e>0&&r(0)}if(s===n){let e=0===n?1:Math.abs(.05*n);o(n+e),t||r(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=function(t,e){const i=[],{bounds:s,step:n,min:r,max:o,precision:h,count:a,maxTicks:c,maxDigits:l,includeBounds:u}=t,f=n||1,d=c-1,{min:b,max:g}=e,p=!N(r),m=!N(o),v=!N(a),x=(g-b)/(l+1);let y,M,w,_,k=vt((g-b)/d/f)*f;if(k<1e-14&&!p&&!m)return[{value:b},{value:g}];_=Math.ceil(g/k)-Math.floor(b/k),_>d&&(k=vt(_*k/d/f)*f),N(h)||(y=Math.pow(10,h),k=Math.ceil(k*y)/y),"ticks"===s?(M=Math.floor(b/k)*k,w=Math.ceil(g/k)*k):(M=b,w=g),p&&m&&n&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((o-r)/n,k/1e3)?(_=Math.round(Math.min((o-r)/k,c)),k=(o-r)/_,M=r,w=o):v?(M=p?r:M,w=m?o:w,_=a-1,k=(w-M)/_):(_=(w-M)/k,_=mt(_,Math.round(_),k/1e3)?Math.round(_):Math.ceil(_));const O=Math.max(Mt(k),Mt(M));y=Math.pow(10,N(h)?O:h),M=Math.round(M*y)/y,w=Math.round(w*y)/y;let S=0;for(p&&(u&&M!==r?(i.push({value:r}),M<r&&S++,mt(Math.round((M+S*k)*y)/y,r,kn(r,x,t))&&S++):M<r&&S++);S<_;++S){const t=Math.round((M+S*k)*y)/y;if(m&&t>o)break;i.push({value:t})}return m&&u&&w!==o?i.length&&mt(i[i.length-1].value,o,kn(o,x,t))?i[i.length-1].value=o:i.push({value:o}):m&&w!==o||i.push({value:w}),i}({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&function(t,e){let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i].value,isNaN(n)||(e.min=Math.min(e.min,n),e.max=Math.max(e.max,n))}(s,this),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Vt(t,this.chart.options.locale,this.options.ticks.format)}}Hs.register(tn,class extends di{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,s){return gi(t,e,i,s)}parseArrayData(t,e,i,s){return gi(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:r}=t,{xAxisKey:o="x",yAxisKey:h="y"}=this._parsing,a="x"===n.axis?o:h,c="x"===r.axis?o:h,l=[];let u,f,d,b;for(u=i,f=i+s;u<f;++u)b=e[u],d={},d[n.axis]=n.parse(st(b,a),u),l.push(bi(st(b,c),d,r,u));return l}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),r=n._custom,o=pi(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(n[s.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,s){const n="reset"===s,{index:r,_cachedMeta:{vScale:o}}=this,h=o.getBasePixel(),a=o.isHorizontal(),c=this._getRuler(),{sharedOptions:l,includeOptions:u}=this._getSharedOptions(e,s);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=n||N(e[o.axis])?{base:h,head:h}:this._calculateBarValuePixels(f),d=this._calculateBarIndexPixels(f,c),b=(e._stacks||{})[o.axis],g={horizontal:a,base:i.base,enableBorderRadius:!b||pi(e._custom)||r===b._top||r===b._bottom,x:a?i.head:d.center,y:a?d.center:i.head,height:a?d.size:Math.abs(i.size),width:a?Math.abs(i.size):d.size};u&&(g.options=l||this.resolveDataElementOptions(f,t[f].active?"active":s));const p=g.options||t[f].options;mi(g,p,b,r),yi(g,p,c.ratio),this.updateElement(t[f],f,g,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),n=i.options.stacked,r=[],o=this._cachedMeta.controller.getParsed(e),h=o&&o[i.axis],a=t=>{const e=t._parsed.find((t=>t[i.axis]===h)),s=e&&e[t.vScale.axis];if(N(s)||isNaN(s))return!0};for(const i of s)if((void 0===e||!a(i))&&((!1===n||-1===r.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&r.push(i.stack),i.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,r;for(n=0,r=e.data.length;n<r;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const o=t.barThickness,h=o||function(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=function(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,n,r,o,h=e._length;const a=()=>{32767!==r&&-32768!==r&&(rt(o)&&(h=Math.min(h,Math.abs(r-o)||h)),o=r)};for(s=0,n=i.length;s<n;++s)r=e.getPixelForValue(i[s]),a();for(o=void 0,s=0,n=e.ticks.length;s<n;++s)r=e.getPixelForTick(s),a();return h}(e);return{min:h,pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:s},options:{base:n,minBarLength:r}}=this,o=n||0,h=this.getParsed(t),a=h._custom,c=pi(a);let l,u,f=h[e.axis],d=0,b=i?this.applyStack(e,h,i):f;b!==f&&(d=b-f,b=f),c&&(f=a.barStart,b=a.barEnd-a.barStart,0!==f&&pt(f)!==pt(a.barEnd)&&(d=0),d+=f);const g=N(n)||c?d:n;let p=e.getPixelForValue(g);if(l=this.chart.getDataVisibility(t)?e.getPixelForValue(d+b):p,u=l-p,Math.abs(u)<r){u=function(t,e,i){return 0!==t?pt(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(u,e,o)*r,f===o&&(p-=u/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),a=Math.min(t,n),d=Math.max(t,n);p=Math.max(Math.min(p,d),a),l=p+u,i&&!c&&(h._stacks[e.axis]._visualValues[s]=e.getValueForPixel(l)-e.getValueForPixel(p))}if(p===e.getPixelForValue(o)){const t=pt(u)*e.getLineWidthForValue(o)/2;p+=t,u-=t}return{size:u,base:p,head:l,center:l+u/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,n=s.skipNull,r=V(s.maxBarThickness,1/0);let o,h;if(e.grouped){const i=n?this._getStackCount(t):e.stackCount,a="flex"===s.barThickness?function(t,e,i,s){const n=e.pixels,r=n[t];let o=t>0?n[t-1]:null,h=t<n.length-1?n[t+1]:null;const a=i.categoryPercentage;null===o&&(o=r-(null===h?e.end-e.start:h-r)),null===h&&(h=r+r-o);const c=r-(r-Math.min(o,h))/2*a;return{chunk:Math.abs(h-o)/2*a/s,ratio:i.barPercentage,start:c}}(t,e,s,i):function(t,e,i,s){const n=i.barThickness;let r,o;return N(n)?(r=e.min*i.categoryPercentage,o=i.barPercentage):(r=n*s,o=1),{chunk:r/s,ratio:o,start:e.pixels[t]-r/2}}(t,e,s,i),c=this._getStackIndex(this.index,this._cachedMeta.stack,n?t:void 0);o=a.start+a.chunk*c+a.chunk/2,h=Math.min(r,a.chunk*a.ratio)}else o=i.getPixelForValue(this.getParsed(t)[i.axis],t),h=Math.min(r,e.min*e.ratio);return{base:o-h/2,head:o+h/2,center:o,size:h}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null===this.getParsed(n)[e.axis]||i[n].hidden||i[n].draw(this._ctx)}},class extends ns{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:s}}=this,{inner:n,outer:r}=function(t){const e=Ys(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){const s=t.borderSkipped,n=ge(t.options.borderWidth);return{t:Vs(s.top,n.top,0,i),r:Vs(s.right,n.right,0,e),b:Vs(s.bottom,n.bottom,0,i),l:Vs(s.left,n.left,0,e)}}(t,i/2,s/2),r=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,r=pe(n),o=Math.min(e,i),h=t.borderSkipped,a=s||H(n);return{topLeft:Vs(!a||h.top||h.left,r.topLeft,0,o),topRight:Vs(!a||h.top||h.right,r.topRight,0,o),bottomLeft:Vs(!a||h.bottom||h.left,r.bottomLeft,0,o),bottomRight:Vs(!a||h.bottom||h.right,r.bottomRight,0,o)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:r},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,r.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(n.b,n.r))}}}}(this),o=(h=r.radius).topLeft||h.topRight||h.bottomLeft||h.bottomRight?le:Us;var h;t.save(),r.w===n.w&&r.h===n.h||(t.beginPath(),o(t,Zs(r,e,n)),t.clip(),o(t,Zs(n,-e,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),o(t,Zs(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return Xs(this,t,e,i)}inXRange(t,e){return Xs(this,t,null,e)}inYRange(t,e){return Xs(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},class extends ds{static id="category";static defaults={ticks:{callback:_n}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(N(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:kt(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:function(t,e,i,s){const n=t.indexOf(e);return-1===n?((t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s):n!==t.lastIndexOf(e)?i:n}(i,t,V(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}getLabelForValue(t){return _n.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},class extends On{static id="linear";static defaults={ticks:{callback:Xt.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=$(t)?t:0,this.max=$(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=yt(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}},rn,wn,hn);const Sn=class{constructor(i){t(this,i),this.errorEvent=e(this,"error-event"),this.loading=!0,this.errorMessage=""}componentDidLoad(){this.getGrossPayment&&this.fetchData()}propChanged(){this.getGrossPayment&&this.fetchData()}grossVolumeReportChanged(t){t&&(this.chart?this.updateChartData(t):this.initChart(t))}async fetchData(){this.loading=!0,this.getGrossPayment({onSuccess:t=>{this.loading=!1,this.grossVolumeReport=t},onError:({error:t,code:e,severity:i})=>{this.loading=!1,this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i})}})}initChart(t){const{dates:e,total:i}=t,s=e.reverse(),o=((t,e,i)=>({type:"bar",options:{plugins:{legend:{display:!1},title:{display:!0,text:["Trailing 30 Days","Gross Payments",n(t)],position:"top",align:"start"},tooltip:{displayColors:!1,intersect:!1,callbacks:{label:t=>{let s=t.dataIndex;return[r(e[s].date,i),n(e[s].value)]}}}},scales:{x:{grid:{drawOnChartArea:!1,drawTicks:!1},ticks:{callback:t=>{if(0===t||t===e.length-1)return r(e[t].date,i)}}},y:{display:!1}}},data:{labels:e.map((()=>"")),datasets:[{label:"Gross Volume by Date",data:e.map((t=>t.value))}]}}))(i,s,s[e.length-1].date);this.chart=new Hs(this.chartRef.getContext("2d"),o)}updateChartData(t){const e=t.dates.map((t=>t.value));this.chart.data.datasets.forEach((t=>{t.data=e})),this.chart.update()}disconnectedCallback(){this.chart&&this.chart.destroy()}render(){return i(s,{key:"0201a1f9445d3eb9800aca09098b5b58a24b6923"},this.loading&&i(h,{key:"c6e39699e3bfaf3d7d0f5907d7085604e1fe5b9d"}),this.errorMessage?o(this.errorMessage):i("canvas",{id:"chart",ref:t=>this.chartRef=t}))}static get watchers(){return{getGrossPayment:["propChanged"],grossVolumeReport:["grossVolumeReportChanged"]}}};export{Sn as gross_payment_chart_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import{m as e,a as o}from"./p-hDoH7hHP.js";import{C as r}from"./p-DaS3t0DL.js";import{C as a,a as h}from"./p-BhrFjjAs.js";import{c as p,J as c}from"./p-DzPrenCi.js";import{s as n}from"./p-D_FOQEGU.js";import"./p-NqdaxjDT.js";import"./p-Yj41tobi.js";import"./p-CBs671Ol.js";import"./p-D3BIZZrc.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-7MWRbTXI.js";import"./p-BPCw4WEY.js";import"./p-Ct-uNz2r.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CyXXks-Q.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.loadedEvent=s(this,"loaded"),this.errorMessage=""}connectedCallback(){this.authToken&&this.checkoutId&&(n.checkoutId=this.checkoutId,n.authToken=this.authToken)}componentWillLoad(){p(),this.analytics=new c(this),this.initializeGetCheckout()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeGetCheckout(){this.authToken&&this.checkoutId?(this.getCheckout=e({authToken:this.authToken,checkoutId:this.checkoutId,service:new r}),this.complete=o({authToken:this.authToken,checkoutId:this.checkoutId,service:new r})):this.errorEvent.emit({message:"auth-token and checkout-id are required",errorCode:h.MISSING_PROPS,severity:a.ERROR})}propChanged(){n.authToken=this.authToken,n.checkoutId=this.checkoutId,this.initializeGetCheckout()}async fillBillingForm(t){this.checkoutCoreRef.fillBillingForm(t)}async validate(){const{isValid:t}=await this.checkoutCoreRef.validate();return{isValid:t}}render(){return i("justifi-checkout-core",{key:"3aaf3ff84469870995456a56ac4c2b5806a23802",getCheckout:this.getCheckout,authToken:this.authToken,complete:this.complete,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,disableBnpl:this.disableBnpl,disablePaymentMethodGroup:this.disablePaymentMethodGroup,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,ref:t=>{t&&(this.checkoutCoreRef=t)}},i("div",{key:"ce9694f701ae7123a4ee5fbae76e9bbef1f7250c",slot:"insurance"},i("slot",{key:"2049b12cfc42cc42c46be83e6305317e97ae5cba",name:"insurance"})))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{m as justifi_checkout}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as i,h as t}from"./p-Bta_r52Z.js";import{c as o,J as r}from"./p-DzPrenCi.js";import{C as e,a as p}from"./p-BhrFjjAs.js";import{m as n,a}from"./p-BxfUcCXo.js";import{B as h}from"./p-BpEw7AJl.js";import{A as m}from"./p-Yj41tobi.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-BPCw4WEY.js";import"./p-Ct-uNz2r.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import"./p-CyXXks-Q.js";import"./p-NqdaxjDT.js";import"./p-CBs671Ol.js";import"./p-D3BIZZrc.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const j=m();class u{async postProvisioning(s,i,t){return j.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const d=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new r(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new u})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:p.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"11871305b4b4974787a9278195ea0b314be250b0",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{d as justifi_payment_provisioning}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-Bta_r52Z.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as d,c as i}from"./p-DnX5CZFd.js";import{f as l,g as r,h as c,j as f,k as o,m as p}from"./p-_6eQgwfE.js";import{S as n}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{c as b,a as m}from"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-D3BIZZrc.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=b(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(n,{key:"391445459edaf4d91dae9473cc48c5ed547e6ef4"},a("table-filters-menu",{key:"d07285a19096df128f64c820d9fadb1178c7bfa2",params:e,clearParams:i,part:l},a("div",{key:"a01f3600c114340ca0252799889cfb0abe93c8c6",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"65c2067c8f974cda96ecd012503cd50f21af1dbe",class:"p-2"},a("form-control-text",{key:"a6cd04a16bd34a32a760f42be8d604892fd0eb91",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:r})),a("div",{key:"646c31fb7cdbe3ac411ea02f24f81d60b2a32c23",class:"p-2"},a("form-control-text",{key:"693f22ca4b96f33e5eeb475ad86e78992df95fb8",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:c})),a("div",{key:"a5e96c84a9864c74bda22d398f388afd6b9f77df",class:"p-2"},a("form-control-select",{key:"6c5c6a3a2d0763af151c46b8f8ad27eed63356f3",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status,disabled:!!this.paymentStatus,part:f})),a("div",{key:"2716ec9b9fa8944d0a6f6a47ee460c5a62b51ff3",class:"p-2"},a("form-control-date",{key:"7465c4b321beb78151408ec4cfad2074e75a1eaa",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"396bd5ec578e99342321887773d2c5b58215fec6",class:"p-2"},a("form-control-date",{key:"d5e3fbae8412ad820c50be18c17db52852f5d3a9",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:p})))))}};export{u as justifi_payments_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-Bta_r52Z.js";import{f as t,p as s,c as r}from"./p-uLUlLQpP.js";import{n as c,o as f,q as o}from"./p-_6eQgwfE.js";import{S as d}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{c as p,a as i}from"./p-9REosSLu.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";const l=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=p(a,{setEndOfDay:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}render(){const e=Object.assign({},t);return a(d,{key:"05c16ac0eda9f43a8fea014e92788a9d1dd5726b"},a("table-filters-menu",{key:"4ff930a4cf5410fcdee019be664f7f56992f293e",params:e,clearParams:r,part:c},a("div",{key:"2cecc576a4fd6779ea866b56e7623351de3cf6e8",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"34864c377740cb9415259c893a18b13d15a98534",class:"p-2"},a("form-control-date",{key:"72481e53e0aac0b9e2cffdc22c59da302b5a638d",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:i(this.createdAfter,{showInputDate:!0})||i(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:f})),a("div",{key:"8edb0b5a2693211f9acf608d3ed8f101c4315648",class:"p-2"},a("form-control-date",{key:"520f02a76b921590e3b43cd8e2a17f120278c90a",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:i(this.createdBefore,{showInputDate:!0})||i(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:o})))))}};export{l as justifi_payouts_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-Bta_r52Z.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-BPCw4WEY.js";import"./p-Ct-uNz2r.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as m,i as f,j as u,k as b,l as j}from"./p-B7VsiIW-.js";import{T as g}from"./p-CZfYo5-1.js";import{t as l,a as y}from"./p-Ctw40vkk.js";import{o as k,g as C}from"./p-CDTncSrX.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-_6eQgwfE.js";import"./p-DkWBoLsd.js";import"./p-B4MIwTdb.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:g.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:g.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:g.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,l,y),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"e7dea8ca296d3f1c9264a49bcecf0971b26b9352"},e(r,{key:"e8fc49665778f89a15a88758d108217271377085"},e(h,{key:"6c042632f4a28d710c4ed7eb3d0a1e740c03e3c5"},e(o,{key:"a960ae979f470294e9859080c3080cdd58a40bab"},this.terminalsTable.columnData.map((t=>t)))),e(c,{key:"838dca2dff4ffcfa04f4d3cfde24ef5d9b78c18c"},e(n,{key:"699419fd8e8b03fad375fc486b663fdc989ba2b6",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"2c678fd361260fb54d184ba19d9102a9b397bc8b",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"612819351b2603c4630246406d8a902c1107303e",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"64c54e89bb6613ba99c9fb75c0d577801548d9f3"},e(u,{key:"5f61c44bfa0791af980f27ffab70e815aed79882"},e(b,{key:"fbd55acc1a33461373c84a84ef1ef4626bb182d1",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"83e3e5a448b05a33e31d043d6adf2322a089aced",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as terminals_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as s,c as i}from"./p-Bta_r52Z.js";import{f as o}from"./p-9REosSLu.js";import{r as e}from"./p-_6eQgwfE.js";import{s as n}from"./p-D_FOQEGU.js";import{S as l}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-D3BIZZrc.js";const r=t("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),p=class{constructor(t){s(this,t),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId="sezzle",this.onPaymentMethodOptionClick=t=>{t.preventDefault(),n.selectedPaymentMethod=this.paymentMethodOptionId,this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)},this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((s=>{t=s}));const s=Number(n.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:n.bnplProviderClientId,apiMode:n.bnplProviderMode,apiVersion:n.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(t){t.preventDefault(),i.startCheckout({checkout_url:n.bnplProviderCheckoutUrl})},onComplete:s=>t({bnpl:s.data}),onCancel:s=>t({bnpl:s.data}),onFailure:s=>t({bnpl:s.data})}),this.sezzleCheckout=i,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(s)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(t){return t.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}render(){var s,i;return n.bnplEnabled?t(l,{class:"payment-method"},t("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),t("div",{class:"radio-list-item p-3",part:e,onClick:this.onPaymentMethodOptionClick},t("form-control-radio",{name:"paymentMethodType",value:this.paymentMethodOptionId,checked:n.selectedPaymentMethod===this.paymentMethodOptionId,label:t("div",null,t("div",null,"Buy now, pay later with ",r),this.installmentPlan&&t("small",null,t("span",null,null===(s=this.installmentPlan)||void 0===s?void 0:s.installments.length)," ",t("span",null,this.installmentPlan.schedule," payments of")," ",t("span",{class:"fw-bold"},o(null===(i=this.installmentPlan)||void 0===i?void 0:i.installments[0].amountInCents))))}))):(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null)}};export{p as justifi_sezzle_payment_method}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as r}from"./p-Bta_r52Z.js";import{A as s}from"./p-Yj41tobi.js";import{C as e,a as o}from"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-BPCw4WEY.js";import"./p-Ct-uNz2r.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as n,a}from"./p-NqdaxjDT.js";import{c,J as p}from"./p-DzPrenCi.js";import{s as u}from"./p-D_FOQEGU.js";import"./p-CBs671Ol.js";import"./p-D3BIZZrc.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CyXXks-Q.js";const d=s();class h{async fetchQuote(t,i){return d.post({endpoint:"insurance/quotes",body:i,authToken:t})}async toggleCoverage(t,i,r){return d.post({endpoint:`insurance/quotes/${i}/toggle`,body:r,authToken:t})}}const m=class{constructor(r){t(this,r),this.errorEvent=i(this,"error-event")}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){c(),this.analytics=new p(this),this.initializeServiceMethods()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||u.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:e.ERROR});const i={authToken:t,service:new h};this.getQuote=(({authToken:t,service:i})=>async({payload:r,onSuccess:s,onError:o})=>{var c;try{const p=await i.fetchQuote(t,r);if(p.error)return o({error:a(p.error),code:n(null===(c=p.error)||void 0===c?void 0:c.code),severity:e.ERROR});s({quote:p.data})}catch(t){const i=n(null==t?void 0:t.code);return o({error:t.message||t,code:i,severity:e.ERROR})}})(i),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:r,payload:s,onSuccess:o,onError:c})=>{var p;try{const u=await i.toggleCoverage(t,r,s);if(u.error)return c({error:a(u.error),code:n(null===(p=u.error)||void 0===p?void 0:p.code),severity:e.ERROR});o({quote:u.data})}catch(t){const i=n(null==t?void 0:t.code);return c({error:t.message||t,code:i,severity:e.ERROR})}})(i)}render(){return r("justifi-season-interruption-insurance-core",{key:"6c412b4fc73345924b97add603216a61a697c206",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId||u.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{m as justifi_season_interruption_insurance}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-Bta_r52Z.js";import{f as t,p as s,c as r}from"./p-BoGb-Wsw.js";import{K as l,L as i,M as d,N as o,O as p}from"./p-_6eQgwfE.js";import{S as c}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import"./p-CBs671Ol.js";import{c as f,a as m}from"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{T as n,a as b}from"./p-BPCw4WEY.js";import"./p-Ct-uNz2r.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=f(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:n.created},{label:"Completed",value:n.completed},{label:"Submitted",value:n.submitted},{label:"In Progress",value:n.in_progress},{label:"On Hold",value:n.on_hold},{label:"Canceled",value:n.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:b.boardingOnly},{label:"Boarding Shipping",value:b.boardingShipping}]}render(){const e=Object.assign({},t);return a(c,{key:"87569a0fbda61171597ae34502830a7689576c83"},a("table-filters-menu",{key:"7fefbf17edeef40d13f34bd634e19afc1c3da9d7",params:e,clearParams:r,part:l},a("div",{key:"450de24e20ce880d93045c1d549e996db865d1d4",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"c3092da2cf616bea443603cfbca4924e58d281ee",class:"p-2"},a("form-control-select",{key:"19746e7161033e740eb587cecf091b65e8d59246",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status,disabled:!!this.orderStatus,part:i})),a("div",{key:"4cde261675fe5295798905ae6da64ef63d0b85d4",class:"p-2"},a("form-control-select",{key:"1ca5fd3cdac0af84dff9e58afe73584d62e049d3",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type,disabled:!!this.orderType,part:d})),a("div",{key:"001ec15d42b32b24e43f60a8e863f16539c272ea",class:"p-2"},a("form-control-date",{key:"eac9a1727d07629210952c1f25bd8ef5536c2a83",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"1ca6e942ed3ae19693542d73b074398e9b342005",class:"p-2"},a("form-control-date",{key:"fa02bc32fae8e9b3fa5cade5e20839062b64c754",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:p})))))}};export{u as justifi_terminal_orders_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as a,H as s,a as i}from"./p-Bta_r52Z.js";import{F as r}from"./p-B8Ovjy6S.js";import{i as o,b as l,a as h,T as n,c,l as f}from"./p-_6eQgwfE.js";const d=class{constructor(a){t(this,a),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur")}render(){return a(s,{key:"0e05130899c474fe1cae7da51a3e1c9d284c8188",exportparts:"label,input,input-invalid"},a("div",{key:"81aac7c81010283a17ae6f95958260739ba8f521",class:"form-group d-flex flex-column"},a("div",{key:"50be24013b6a998714524a974e4a4118d8fe9b1e",class:"d-flex align-items-start gap-2"},a("label",{key:"8094b17e38012c757647fe050a3d2d4680db31d9",part:"label",class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"e2e1307070cfd4ebdf99396eb974e514b0e86de2",helpText:this.helpText})),a("input",{key:"784a515fbd7dd9a33e6631e1b98e599aa58c7e8c",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit(),onChange:()=>this.errorText=""}),a(r,{key:"e657fffc7079bc83ebbcf4468026401221ef6796",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},b=class{constructor(a){t(this,a),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,a=e.getAttribute("name");this.inputHandler(a,e.value),this.formControlInput.emit({name:a,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?l:this.isFocused?h:this.disabled?n:c}render(){return a(s,{key:"9e8752d26a1b81e14a2666b1eeca224355ac7bc6"},a("div",{key:"1db9d60d316f7d17a0e08fa6859e1b05ad0f325d",class:"form-group d-flex flex-column"},a("label",{key:"7d955df10cd4fa6324911ee015e87881562aa528",part:f,class:"form-label",htmlFor:this.name},this.label),a("textarea",{key:"3f12740611c14799405a2e070f74022cbb17edfa",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),a("form-control-help-text",{key:"30a25e257d36cf691e19dcb3cb14e1fbdab66c69",helpText:this.helpText,name:this.name}),a("form-control-error-text",{key:"f74b90c9621eb993d62b8417bb14c31a62153843",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_file_v2,b as form_control_textarea}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as t}from"./p-Bta_r52Z.js";import{l as e}from"./p-Bde7dY9t.js";import{f as s,p as r,c as i}from"./p-CDTncSrX.js";import{P as l,Q as d,R as p,S as o}from"./p-_6eQgwfE.js";import{S as c}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{I as f}from"./p-BPCw4WEY.js";import"./p-Ct-uNz2r.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import"./p-BFTU3MAI.js";import"./p-D3BIZZrc.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const m=class{constructor(t){a(this,t),this.setParamsOnChange=(a,t)=>{s[a]=t}}componentWillLoad(){this.debouncedSetParamsOnChange=e.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId}).forEach((([a,t])=>{t&&(r[a]=t)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:f.connected},{label:"Disconnected",value:f.disconnected},{label:"Unknown",value:f.unknown},{label:"Pending Configuration",value:f.pending_configuration}]}render(){const a=Object.assign({},s);return t(c,{key:"c8a9a83b3184a95474a428cfdb1135eadd680adb"},t("table-filters-menu",{key:"4a4a12bbbdb3be98d61d177c02612c3213419b43",params:a,clearParams:i,part:l},t("div",{key:"6d6cdf7dc4a24cdb6195f17989b17f91c43cd064",class:"grid-cols-2 gap-3 p-1"},t("div",{key:"158cb8665cdb140e25ed449d42fb147fb8da21bb",class:"p-2"},t("form-control-text",{key:"33e06125bf7f7d5242a625aedae2c560f0cc6a8f",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:d})),t("div",{key:"3d8ad10f63e16a847caf944fef9567819a77d422",class:"p-2"},t("form-control-text",{key:"d6217d8aa97f2c03a35fcd3d51cb42ed26e246a7",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||s.terminal_order_id,disabled:!!this.terminalOrderId,part:p})),t("div",{key:"2fbf61a905de7028371bcc4b3412f7cc00feb4f9",class:"p-2"},t("form-control-select",{key:"55a297af239e4e09e4d89c06a9c2d1a90fa7ff1e",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||s.status,disabled:!!this.terminalStatus,part:o})))))}};export{m as justifi_terminals_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import{P as r}from"./p-CRYPNa2o.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import{C as o,a as e}from"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{P as p}from"./p-BPCw4WEY.js";import"./p-Ct-uNz2r.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as a,a as h}from"./p-NqdaxjDT.js";import{E as n}from"./p-CnnRWu7z.js";import{c as m,J as j}from"./p-DzPrenCi.js";import{m as d}from"./p-pGzabKc7.js";import"./p-Yj41tobi.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-_6eQgwfE.js";import"./p-CyXXks-Q.js";const c=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new j(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:r,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:o.ERROR}):r(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:o.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new r}),this.getPayoutCSV=d({authToken:this.authToken,service:new r})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_payout_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as s}from"./p-Bta_r52Z.js";import{c as i,d as r,e as a}from"./p-BxfUcCXo.js";import{I as o}from"./p-BpEw7AJl.js";import{F as d}from"./p-Bond4qGX.js";import{O as c}from"./p-BlJnA265.js";import{i as h}from"./p-BE5Nvydk.js";import{B as n}from"./p-BGHVK-vQ.js";import{W as l}from"./p-_6eQgwfE.js";import"./p-CZfYo5-1.js";import{B as f}from"./p-XYgDHrVL.js";import{S as m,P as b}from"./p-B-iV5cYd.js";import{u as p,a as u,b as y}from"./p-1ydcg9ti.js";import"./p-BhrFjjAs.js";import"./p-NqdaxjDT.js";import"./p-Yj41tobi.js";import"./p-CBs671Ol.js";import"./p-D3BIZZrc.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-7MWRbTXI.js";import"./p-BPCw4WEY.js";import"./p-Ct-uNz2r.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CCpqJxzB.js";import"./p-yH3TC3ZQ.js";const j=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event")}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.patchOwner=r({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.postOwner=a({authToken:this.authToken,service:new o}))}render(){return s("owner-form-core",{key:"253fc2c5cf1d8c3d18cbcc43569c50a1dd4394f4",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:e=>this.coreComponent=e})}},k=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.formLoading=t(this,"formLoading"),this.ownerSubmitted=t(this,"ownerSubmitted"),this.isLoading=!1,this.errors={},this.owner={},this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new c(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?f.updateOwner:f.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:f.removeOwner})},this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new c(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new d(h("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"cf3b084a99c3cfc77af24f09feeda0468c2e6956",onSubmit:this.validateAndSubmit},s("fieldset",{key:"3c78499a7df3496cd44416b96fe5fef44cc4d393"},s("legend",{key:"5aee34b86e10d914964de3f62408b1f1e7899479",class:"fw-semibold fs-5",part:l},this.formTitle),s("br",{key:"4ca0d4c213f166f7ea10c0bfe276673ff077e1ba"}),s("div",{key:"95e485006a1111418ed409e7138c7f3098b9517c",class:"row gy-3"},s("owner-form-inputs",{key:"1df9b40c91223253394c50312950b6b3d42906ff",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"f1e2adc3111366c43a9a0d3cbed9e059916320f8",class:"d-flex gap-2 justify-content-start"},s(n,{key:"ea19095c86d12cdabd48ad8618213aa06635b80f",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(n,{key:"cb60a69f0e3252bb7623945610c5282bedfffe32",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"db9fb6f130a114e82de0fb806ca1d70ac254f032"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},w=class{constructor(t){e(this,t),this.inputHandler=(e,t)=>{p(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{u(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){return s("div",{key:"97911ef690cb7932c0e382cfa79fa3333536055c",class:"row gy-3"},s("div",{key:"0f15a832bcde62a50fb791e008dcd7da68c8da6b",class:"col-12 col-md-8"},s("form-control-text",{key:"fdc50a224e7e17d2923d6eb1fb274103e0d55710",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"c4be24670525f2b90fd6de5a0035241190dadd09",class:"col-12 col-md-4"},s("form-control-text",{key:"8752eb6ea1d24189fd1a4d799145b5bbdc0413f2",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"9d19f00bbd407ca55455947d84183530920d799c",class:"col-12 col-md-6"},s("form-control-text",{key:"10ffe5b44086f623fb9f9d27f4a72cd251589bd0",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"7c32fc26abbc0bc16b0a50d8bbfb47c121c7c62d",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"e6b63872de5bd5cc98d61c8e6ebeb2a3f8443fb1",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:b.US})),s("div",{key:"2e7eded46b1162d9ecf8c3badc869e98a710abee",class:"col-12 col-md-4"},s("form-control-date",{key:"2c4b8c126d7505dadb3fe06b3b5cab5e83b91c23",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>y(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"dd96fdddddfb082fc0ce670f673decc97956c242",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"640cc2e749dc64879d8211c3340b7c273d3cb817",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:m,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),s("div",{key:"681b2898183d73559150b5debef39901c4679eba",class:"col-12"},s("justifi-identity-address-form",{key:"e2de39be536c0854592a5132a6a9ac9d761a0f9b",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{j as justifi_owner_form,k as owner_form_core,w as owner_form_inputs}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-Bta_r52Z.js";import{S as e}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{n as r}from"./p-BnjCmwMr.js";import{F as o}from"./p-Bond4qGX.js";import{b as i}from"./p-C-WgCIei.js";import"./p-BFTU3MAI.js";import"./p-CCpqJxzB.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-Ct-uNz2r.js";const a=class{constructor(s){t(this,s),this.errors={},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}componentWillLoad(){this.formController=new o(i(!0))}componentDidLoad(){this.formController.values.subscribe((t=>this.billingInfo=Object.assign({},t))),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}async getValues(){return this.formController.values.getValue()}async fill(t){this.formController.setInitialValues(t)}async validate(){return{isValid:await this.formController.validate()}}render(){const t=this.formController.getInitialValues();return s(e,{key:"e5cdb9b21be1e5f4ee6fd21a2d919b2d9271b163"},s("form",{key:"29c0a3edaad9877d50ecc9e4424ca2f5e667dc30"},s("form-control-text",{key:"00e8688c8a8e9b91df5089e2fb97c8b71673a3fd",name:"address_postal_code",label:"ZIP",defaultValue:t.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:r})))}};export{a as justifi_postal_code_form}
|