@verdocs/web-sdk 5.0.33 → 5.0.35
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/index-ccac8641.js +6 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-button_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-checkbox_6.cjs.entry.js +9 -9
- package/dist/cjs/verdocs-checkbox_6.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +3920 -0
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_7.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-switch.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-table.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-toggle-button.cjs.entry.js +38 -0
- package/dist/cjs/verdocs-toggle-button.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -1
- package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +2 -2
- package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +1 -1
- package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -1
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -1
- package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -1
- package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -1
- package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -1
- package/dist/collection/components/controls/verdocs-menu-panel/verdocs-menu-panel.js +1 -1
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
- package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -1
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
- package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -1
- package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +1 -1
- package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
- package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.css +2 -2
- package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
- package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
- package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +2 -2
- package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
- package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +1 -1
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +4 -4
- package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
- package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
- package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +2 -2
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js.map +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +8 -3
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +6 -10
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +59 -28
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
- package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
- package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +7 -7
- package/dist/collection/utils/Unleash.js +18 -0
- package/dist/collection/utils/Unleash.js.map +1 -0
- package/dist/components/{p-6719b0d7.js → p-0fc88b2b.js} +2 -2
- package/dist/components/{p-6719b0d7.js.map → p-0fc88b2b.js.map} +1 -1
- package/dist/components/{p-84ae0283.js → p-168f7836.js} +2 -2
- package/dist/components/{p-84ae0283.js.map → p-168f7836.js.map} +1 -1
- package/dist/components/{p-e39c327c.js → p-170315e3.js} +5 -5
- package/dist/components/{p-e39c327c.js.map → p-170315e3.js.map} +1 -1
- package/dist/components/{p-0e332769.js → p-1af1f96c.js} +2 -2
- package/dist/components/{p-0e332769.js.map → p-1af1f96c.js.map} +1 -1
- package/dist/components/{p-3201d529.js → p-1cfa5639.js} +2 -2
- package/dist/components/{p-3201d529.js.map → p-1cfa5639.js.map} +1 -1
- package/dist/components/{p-f238b25b.js → p-21f25179.js} +8 -8
- package/dist/components/{p-f238b25b.js.map → p-21f25179.js.map} +1 -1
- package/dist/components/{p-a2f6d2c6.js → p-24e030f3.js} +2 -2
- package/dist/components/{p-a2f6d2c6.js.map → p-24e030f3.js.map} +1 -1
- package/dist/components/{p-9fb98ea2.js → p-2d483ec9.js} +3 -3
- package/dist/components/{p-9fb98ea2.js.map → p-2d483ec9.js.map} +1 -1
- package/dist/components/{p-41a75ad6.js → p-32264ece.js} +2 -2
- package/dist/components/{p-41a75ad6.js.map → p-32264ece.js.map} +1 -1
- package/dist/components/{p-62743fd3.js → p-36a65545.js} +3 -3
- package/dist/components/{p-62743fd3.js.map → p-36a65545.js.map} +1 -1
- package/dist/components/{p-cce871bf.js → p-378b03dd.js} +5 -5
- package/dist/components/{p-cce871bf.js.map → p-378b03dd.js.map} +1 -1
- package/dist/components/{p-f7cf2401.js → p-39fd7850.js} +7 -7
- package/dist/components/{p-f7cf2401.js.map → p-39fd7850.js.map} +1 -1
- package/dist/components/{p-631808d5.js → p-428af527.js} +26 -26
- package/dist/components/{p-631808d5.js.map → p-428af527.js.map} +1 -1
- package/dist/components/{p-f0f6e862.js → p-4fab924d.js} +3 -3
- package/dist/components/{p-f0f6e862.js.map → p-4fab924d.js.map} +1 -1
- package/dist/components/{p-b7d080eb.js → p-5044943a.js} +3 -3
- package/dist/components/{p-b7d080eb.js.map → p-5044943a.js.map} +1 -1
- package/dist/components/{p-2ef2d490.js → p-61ca8465.js} +4 -4
- package/dist/components/{p-2ef2d490.js.map → p-61ca8465.js.map} +1 -1
- package/dist/components/{p-9cfd8022.js → p-647807a0.js} +2 -2
- package/dist/components/{p-9cfd8022.js.map → p-647807a0.js.map} +1 -1
- package/dist/components/{p-4d3b9ee9.js → p-6a3a1267.js} +2 -2
- package/dist/components/{p-4d3b9ee9.js.map → p-6a3a1267.js.map} +1 -1
- package/dist/components/{p-c422d9a0.js → p-6c7dc2a2.js} +11 -11
- package/dist/components/{p-c422d9a0.js.map → p-6c7dc2a2.js.map} +1 -1
- package/dist/components/{p-c5045788.js → p-78afa71b.js} +10 -10
- package/dist/components/{p-c5045788.js.map → p-78afa71b.js.map} +1 -1
- package/dist/components/{p-813ed998.js → p-79422c16.js} +10 -10
- package/dist/components/{p-813ed998.js.map → p-79422c16.js.map} +1 -1
- package/dist/components/{p-be261487.js → p-79a725df.js} +2 -2
- package/dist/components/{p-be261487.js.map → p-79a725df.js.map} +1 -1
- package/dist/components/{p-16b073b8.js → p-7d4dfd74.js} +7 -7
- package/dist/components/{p-16b073b8.js.map → p-7d4dfd74.js.map} +1 -1
- package/dist/components/p-7e4a867c.js +3962 -0
- package/dist/components/p-7e4a867c.js.map +1 -0
- package/dist/components/{p-99128b47.js → p-822b79ac.js} +11 -11
- package/dist/components/{p-99128b47.js.map → p-822b79ac.js.map} +1 -1
- package/dist/components/{p-ac7694c0.js → p-828b14f5.js} +12 -12
- package/dist/components/{p-ac7694c0.js.map → p-828b14f5.js.map} +1 -1
- package/dist/components/{p-1d4829fb.js → p-846abf3b.js} +10 -10
- package/dist/components/{p-1d4829fb.js.map → p-846abf3b.js.map} +1 -1
- package/dist/components/{p-9c0b30f8.js → p-8b4d6e58.js} +5 -5
- package/dist/components/{p-9c0b30f8.js.map → p-8b4d6e58.js.map} +1 -1
- package/dist/components/{p-38e1fed8.js → p-8b6923f0.js} +3 -3
- package/dist/components/{p-38e1fed8.js.map → p-8b6923f0.js.map} +1 -1
- package/dist/components/{p-22da6d14.js → p-8de0afbb.js} +3 -3
- package/dist/components/{p-22da6d14.js.map → p-8de0afbb.js.map} +1 -1
- package/dist/components/{p-44ae3c75.js → p-91bd08b8.js} +2 -2
- package/dist/components/{p-44ae3c75.js.map → p-91bd08b8.js.map} +1 -1
- package/dist/components/{p-070bebd7.js → p-92f5e735.js} +3 -3
- package/dist/components/{p-070bebd7.js.map → p-92f5e735.js.map} +1 -1
- package/dist/components/{p-7ad22da6.js → p-9dfa65d0.js} +8 -8
- package/dist/components/{p-7ad22da6.js.map → p-9dfa65d0.js.map} +1 -1
- package/dist/components/{p-143a763f.js → p-9ec9e533.js} +10 -10
- package/dist/components/{p-143a763f.js.map → p-9ec9e533.js.map} +1 -1
- package/dist/components/{p-b99b485b.js → p-a7426706.js} +2 -2
- package/dist/components/{p-b99b485b.js.map → p-a7426706.js.map} +1 -1
- package/dist/components/{p-619747d7.js → p-aaf30d6b.js} +2 -2
- package/dist/components/{p-619747d7.js.map → p-aaf30d6b.js.map} +1 -1
- package/dist/components/{p-adf1586f.js → p-ab8caff4.js} +2 -2
- package/dist/components/{p-adf1586f.js.map → p-ab8caff4.js.map} +1 -1
- package/dist/components/{p-8c965486.js → p-b01fdf77.js} +10 -10
- package/dist/components/{p-8c965486.js.map → p-b01fdf77.js.map} +1 -1
- package/dist/components/{p-7f32e087.js → p-b685f6ab.js} +2 -2
- package/dist/components/{p-7f32e087.js.map → p-b685f6ab.js.map} +1 -1
- package/dist/components/{p-b5e479db.js → p-b7ea4baa.js} +10 -10
- package/dist/components/{p-b5e479db.js.map → p-b7ea4baa.js.map} +1 -1
- package/dist/components/{p-cecfbe2f.js → p-c2c4ad57.js} +9 -9
- package/dist/components/{p-cecfbe2f.js.map → p-c2c4ad57.js.map} +1 -1
- package/dist/components/{p-4dd750e9.js → p-c3a349cf.js} +2 -2
- package/dist/components/{p-4dd750e9.js.map → p-c3a349cf.js.map} +1 -1
- package/dist/components/{p-c4310332.js → p-c6b9ad1a.js} +10 -10
- package/dist/components/{p-c4310332.js.map → p-c6b9ad1a.js.map} +1 -1
- package/dist/components/{p-4c5164d0.js → p-ca1c6fc1.js} +16 -28
- package/dist/components/p-ca1c6fc1.js.map +1 -0
- package/dist/components/{p-d54466ed.js → p-cd6bd3f1.js} +25 -25
- package/dist/components/{p-d54466ed.js.map → p-cd6bd3f1.js.map} +1 -1
- package/dist/components/{p-6fcd99d1.js → p-e071b78d.js} +4 -4
- package/dist/components/p-e071b78d.js.map +1 -0
- package/dist/components/{p-550377ba.js → p-e2da5bff.js} +24 -24
- package/dist/components/{p-550377ba.js.map → p-e2da5bff.js.map} +1 -1
- package/dist/components/{p-1ae5d7e0.js → p-e97100c4.js} +2 -2
- package/dist/components/{p-1ae5d7e0.js.map → p-e97100c4.js.map} +1 -1
- package/dist/components/{p-325b3828.js → p-ec039160.js} +6 -6
- package/dist/components/{p-325b3828.js.map → p-ec039160.js.map} +1 -1
- package/dist/components/{p-7bd7baa6.js → p-fdafdf2c.js} +12 -12
- package/dist/components/{p-7bd7baa6.js.map → p-fdafdf2c.js.map} +1 -1
- package/dist/components/verdocs-auth.js +3 -3
- package/dist/components/verdocs-build.js +80 -86
- package/dist/components/verdocs-build.js.map +1 -1
- package/dist/components/verdocs-button-panel.js +1 -1
- package/dist/components/verdocs-button.js +1 -1
- package/dist/components/verdocs-checkbox.js +1 -1
- package/dist/components/verdocs-component-error.js +1 -1
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-dialog.js +1 -1
- package/dist/components/verdocs-dropdown.js +1 -1
- package/dist/components/verdocs-envelope-document-page.js +1 -1
- package/dist/components/verdocs-envelope-recipient-link.js +1 -1
- package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +8 -8
- package/dist/components/verdocs-envelopes-list.js +16 -16
- package/dist/components/verdocs-field-attachment.js +1 -1
- package/dist/components/verdocs-field-checkbox.js +1 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-field-dropdown.js +1 -1
- package/dist/components/verdocs-field-initial.js +1 -1
- package/dist/components/verdocs-field-payment.js +9 -9
- package/dist/components/verdocs-field-radio.js +1 -1
- package/dist/components/verdocs-field-signature.js +1 -1
- package/dist/components/verdocs-field-textarea.js +1 -1
- package/dist/components/verdocs-field-textbox.js +1 -1
- package/dist/components/verdocs-field-timestamp.js +1 -1
- package/dist/components/verdocs-file-chooser.js +1 -1
- package/dist/components/verdocs-help-icon.js +1 -1
- package/dist/components/verdocs-initial-dialog.js +1 -1
- package/dist/components/verdocs-kba-dialog.js +1 -1
- package/dist/components/verdocs-loader.js +1 -1
- package/dist/components/verdocs-menu-panel.js +1 -1
- package/dist/components/verdocs-ok-dialog.js +1 -1
- package/dist/components/verdocs-organization-card.js +2 -2
- package/dist/components/verdocs-pagination.js +1 -1
- package/dist/components/verdocs-portal.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-progress-bar.js +1 -1
- package/dist/components/verdocs-quick-filter.js +1 -1
- package/dist/components/verdocs-quick-functions.js +1 -1
- package/dist/components/verdocs-radio-button.js +1 -1
- package/dist/components/verdocs-search-box.js +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-select-input.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign.js +10 -10
- package/dist/components/verdocs-signature-dialog.js +1 -1
- package/dist/components/verdocs-spinner.js +1 -1
- package/dist/components/verdocs-status-indicator.js +1 -1
- package/dist/components/verdocs-switch.js +1 -1
- package/dist/components/verdocs-table.js +2 -2
- package/dist/components/verdocs-tabs.js +1 -1
- package/dist/components/verdocs-template-attachments.js +1 -1
- package/dist/components/verdocs-template-build-tabs.js +1 -1
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/components/verdocs-template-create.js +4 -4
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-field-properties.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/components/verdocs-template-role-properties.js +1 -1
- package/dist/components/verdocs-template-roles.js +1 -1
- package/dist/components/verdocs-template-settings.js +1 -1
- package/dist/components/verdocs-template-star.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-templates-list.js +17 -17
- package/dist/components/verdocs-text-input.js +1 -1
- package/dist/components/verdocs-toggle-button.js +50 -1
- package/dist/components/verdocs-toggle-button.js.map +1 -1
- package/dist/components/verdocs-toggle.js +1 -1
- package/dist/components/verdocs-toolbar-icon.js +1 -1
- package/dist/components/verdocs-upload-dialog.js +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/esm/index-272d51a4.js +6 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-button-panel_2.entry.js +3 -3
- package/dist/esm/verdocs-button_2.entry.js +2 -2
- package/dist/esm/verdocs-checkbox_6.entry.js +9 -9
- package/dist/esm/verdocs-checkbox_6.entry.js.map +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +3916 -0
- package/dist/esm/verdocs-contact-picker.entry.js.map +1 -0
- package/dist/esm/verdocs-dialog.entry.js +1 -1
- package/dist/esm/verdocs-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
- package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
- package/dist/esm/verdocs-file-chooser_2.entry.js +2 -2
- package/dist/esm/verdocs-kba-dialog_2.entry.js +2 -2
- package/dist/esm/verdocs-kba-dialog_2.entry.js.map +1 -1
- package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
- package/dist/esm/verdocs-pagination_2.entry.js +2 -2
- package/dist/esm/verdocs-preview_7.entry.js +1 -1
- package/dist/esm/verdocs-preview_7.entry.js.map +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm/verdocs-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-search-box.entry.js +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-spinner.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +2 -2
- package/dist/esm/verdocs-switch.entry.js +2 -2
- package/dist/esm/verdocs-table.entry.js +2 -2
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-templates-list.entry.js +7 -7
- package/dist/{components/p-c00770e6.js → esm/verdocs-toggle-button.entry.js} +9 -29
- package/dist/esm/verdocs-toggle-button.entry.js.map +1 -0
- package/dist/esm/verdocs-toggle.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/index-272d51a4.js +1 -1
- package/dist/esm-es5/index-272d51a4.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_6.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_6.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -0
- package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog_2.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-switch.entry.js +1 -1
- package/dist/esm-es5/verdocs-table.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle-button.entry.js +2 -0
- package/dist/esm-es5/verdocs-toggle-button.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
- package/dist/types/components/embeds/verdocs-send/verdocs-send.d.ts +1 -0
- package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +4 -2
- package/dist/types/components.d.ts +2 -2
- package/dist/types/utils/Unleash.d.ts +14 -0
- package/dist/verdocs-web-sdk/{p-c53701b7.entry.js → p-0015c1dd.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-1794d2fa.entry.js → p-03844e04.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3fd9d933.entry.js → p-03c38f54.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a168645d.entry.js → p-05e596a7.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-0785efc0.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-0785efc0.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-00063a35.entry.js → p-08dc443e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-060dbde7.entry.js → p-09460960.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-09460960.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-417f71da.system.entry.js → p-0ec98936.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-761f6656.system.entry.js → p-1219148a.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-dddd328d.entry.js → p-138b3d6e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ac6ecfad.system.entry.js → p-17d195ea.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-578e65d4.system.entry.js → p-191795a8.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-83e567cb.entry.js → p-1abf08e1.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3649ddc2.entry.js → p-23e49134.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ca8aef1d.entry.js → p-29362ed9.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-76c044c8.entry.js → p-299bf390.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f84932fd.system.entry.js → p-2a10d748.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3834fa6a.entry.js → p-2d0e06f1.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b8945173.entry.js → p-3102c576.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-90bc3ad0.system.entry.js → p-316bb216.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-94fe5817.system.entry.js → p-33973ca4.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7b1e00e5.system.entry.js → p-37259eec.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e6d711e0.system.entry.js → p-3783416b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-3874cd69.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-3874cd69.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-49cc9ac5.entry.js → p-392736f4.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f12b428b.entry.js → p-39b58a23.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-aca6553d.system.entry.js → p-5df005a9.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-5df005a9.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-ca15a050.entry.js → p-61f9b68d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-6d4d7a0c.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-6d4d7a0c.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-6b4de004.system.entry.js → p-6e9b34c6.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-24f2d2e2.entry.js → p-706a7514.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ad3d07a6.system.entry.js → p-722a48b1.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-21e9abff.system.entry.js → p-751c314b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-2eae32d9.system.entry.js → p-7ffbd7cb.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0c5b881a.entry.js → p-8246e75e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5824962b.system.entry.js → p-8a6c23fd.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e438bd02.system.entry.js → p-8b2772f0.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d1d95df4.system.entry.js → p-8ee1f062.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d5870e33.system.entry.js → p-8f2f67cd.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-a584cd70.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-5ebfe76c.entry.js.map → p-a584cd70.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-1d5b9103.system.entry.js → p-a6e9c5de.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-306bde40.system.entry.js → p-ac6b32f6.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-1e191c20.system.entry.js → p-ae771b54.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-b2f263e0.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-b2f263e0.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-53f4c7c3.system.entry.js → p-b46c2149.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8369273d.entry.js → p-b57123f8.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8369273d.entry.js.map → p-b57123f8.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-df3f235d.entry.js → p-b5e6a34f.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d8dae4e9.system.entry.js → p-bc99a3ef.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e83d06d4.system.entry.js → p-be3d919c.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ecfe8987.system.entry.js → p-c3d93320.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ecfe8987.system.entry.js.map → p-c3d93320.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-ab473697.entry.js → p-c6ebd157.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-c9bfd8a6.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-bfc815d0.entry.js.map → p-c9bfd8a6.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-123c5de2.entry.js → p-ce27233f.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-cf648e46.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-e2b70dfb.system.js +1 -1
- package/dist/verdocs-web-sdk/p-e2b70dfb.system.js.map +1 -1
- package/dist/verdocs-web-sdk/{p-b0fbfc24.system.entry.js → p-e8e5403a.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-e9f2bf0d.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-e9f2bf0d.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-6237ce51.system.entry.js → p-ee959c5d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a6113c3f.entry.js → p-f714c6b4.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5bcf921b.system.entry.js → p-f873e6df.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-f873e6df.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-fb85475b.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-c0cd186e.entry.js → p-fdc80a21.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8f5c17b6.entry.js → p-fe3ff042.entry.js} +2 -2
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +0 -184
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js.map +0 -1
- package/dist/components/p-27548ebd.js +0 -207
- package/dist/components/p-27548ebd.js.map +0 -1
- package/dist/components/p-4c5164d0.js.map +0 -1
- package/dist/components/p-6fcd99d1.js.map +0 -1
- package/dist/components/p-c00770e6.js.map +0 -1
- package/dist/esm/verdocs-contact-picker_2.entry.js +0 -179
- package/dist/esm/verdocs-contact-picker_2.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +0 -2
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-060dbde7.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-25aa3bd3.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-25aa3bd3.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-5bcf921b.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-5ebfe76c.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-8d7d61ee.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-8d7d61ee.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-9227d400.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-9750edd6.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-aca6553d.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-bfc815d0.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-d58010a4.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-d58010a4.entry.js.map +0 -1
- /package/dist/verdocs-web-sdk/{p-c53701b7.entry.js.map → p-0015c1dd.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1794d2fa.entry.js.map → p-03844e04.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-3fd9d933.entry.js.map → p-03c38f54.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a168645d.entry.js.map → p-05e596a7.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-00063a35.entry.js.map → p-08dc443e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-417f71da.system.entry.js.map → p-0ec98936.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-761f6656.system.entry.js.map → p-1219148a.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-dddd328d.entry.js.map → p-138b3d6e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ac6ecfad.system.entry.js.map → p-17d195ea.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-578e65d4.system.entry.js.map → p-191795a8.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-83e567cb.entry.js.map → p-1abf08e1.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-3649ddc2.entry.js.map → p-23e49134.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ca8aef1d.entry.js.map → p-29362ed9.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-76c044c8.entry.js.map → p-299bf390.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f84932fd.system.entry.js.map → p-2a10d748.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-3834fa6a.entry.js.map → p-2d0e06f1.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b8945173.entry.js.map → p-3102c576.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-90bc3ad0.system.entry.js.map → p-316bb216.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-94fe5817.system.entry.js.map → p-33973ca4.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-7b1e00e5.system.entry.js.map → p-37259eec.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e6d711e0.system.entry.js.map → p-3783416b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-49cc9ac5.entry.js.map → p-392736f4.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f12b428b.entry.js.map → p-39b58a23.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ca15a050.entry.js.map → p-61f9b68d.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-6b4de004.system.entry.js.map → p-6e9b34c6.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-24f2d2e2.entry.js.map → p-706a7514.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ad3d07a6.system.entry.js.map → p-722a48b1.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-21e9abff.system.entry.js.map → p-751c314b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-2eae32d9.system.entry.js.map → p-7ffbd7cb.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0c5b881a.entry.js.map → p-8246e75e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-5824962b.system.entry.js.map → p-8a6c23fd.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e438bd02.system.entry.js.map → p-8b2772f0.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d1d95df4.system.entry.js.map → p-8ee1f062.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d5870e33.system.entry.js.map → p-8f2f67cd.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1d5b9103.system.entry.js.map → p-a6e9c5de.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-306bde40.system.entry.js.map → p-ac6b32f6.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1e191c20.system.entry.js.map → p-ae771b54.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-53f4c7c3.system.entry.js.map → p-b46c2149.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-df3f235d.entry.js.map → p-b5e6a34f.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d8dae4e9.system.entry.js.map → p-bc99a3ef.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e83d06d4.system.entry.js.map → p-be3d919c.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ab473697.entry.js.map → p-c6ebd157.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-123c5de2.entry.js.map → p-ce27233f.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-9750edd6.entry.js.map → p-cf648e46.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b0fbfc24.system.entry.js.map → p-e8e5403a.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-6237ce51.system.entry.js.map → p-ee959c5d.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a6113c3f.entry.js.map → p-f714c6b4.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-9227d400.system.entry.js.map → p-fb85475b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c0cd186e.entry.js.map → p-fdc80a21.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-8f5c17b6.entry.js.map → p-fe3ff042.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(i,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))t[r]=i[r]};return t(i,r)};return function(i,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(i,r);function n(){this.constructor=i}i.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,r=1,n=arguments.length;r<n;r++){i=arguments[r];for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]}return t};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(t,i,r){if(r||arguments.length===2)for(var n=0,e=i.length,s;n<e;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};import{r as registerInstance,h,H as Host}from"./index-272d51a4.js";import{formatFullName}from"@verdocs/js-sdk";import{c as createPopper}from"./popper-0fbeff6d.js";var methods$1={};var names=[];function registerMethods(t,i){if(Array.isArray(t)){for(var r=0,n=t;r<n.length;r++){var e=n[r];registerMethods(e,i)}return}if(typeof t==="object"){for(var e in t){registerMethods(e,t[e])}return}addMethodNames(Object.getOwnPropertyNames(i));methods$1[t]=Object.assign(methods$1[t]||{},i)}function getMethodsFor(t){return methods$1[t]||{}}function getMethodNames(){return __spreadArray([],new Set(names),true)}function addMethodNames(t){names.push.apply(names,t)}function map(t,i){var r;var n=t.length;var e=[];for(r=0;r<n;r++){e.push(i(t[r]))}return e}function filter(t,i){var r;var n=t.length;var e=[];for(r=0;r<n;r++){if(i(t[r])){e.push(t[r])}}return e}function radians(t){return t%360*Math.PI/180}function unCamelCase(t){return t.replace(/([A-Z])/g,(function(t,i){return"-"+i.toLowerCase()}))}function capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)}function proportionalSize(t,i,r,n){if(i==null||r==null){n=n||t.bbox();if(i==null){i=n.width/n.height*r}else if(r==null){r=n.height/n.width*i}}return{width:i,height:r}}function getOrigin(t,i){var r;var n=t.origin;var e=t.ox!=null?t.ox:t.originX!=null?t.originX:"center";var s=t.oy!=null?t.oy:t.originY!=null?t.originY:"center";if(n!=null){r=Array.isArray(n)?n:typeof n==="object"?[n.x,n.y]:[n,n],e=r[0],s=r[1]}var o=typeof e==="string";var a=typeof s==="string";if(o||a){var u=i.bbox(),h=u.height,f=u.width,c=u.x,l=u.y;if(o){e=e.includes("left")?c:e.includes("right")?c+f:c+f/2}if(a){s=s.includes("top")?l:s.includes("bottom")?l+h:l+h/2}}return[e,s]}var descriptiveElements=new Set(["desc","metadata","title"]);var isDescriptive=function(t){return descriptiveElements.has(t.nodeName)};var writeDataToDom=function(t,i,r){if(r===void 0){r={}}var n=__assign({},i);for(var e in n){if(n[e].valueOf()===r[e]){delete n[e]}}if(Object.keys(n).length){t.node.setAttribute("data-svgjs",JSON.stringify(n))}else{t.node.removeAttribute("data-svgjs");t.node.removeAttribute("svgjs:data")}};var svg="http://www.w3.org/2000/svg";var html="http://www.w3.org/1999/xhtml";var xmlns="http://www.w3.org/2000/xmlns/";var xlink="http://www.w3.org/1999/xlink";var globals={window:typeof window==="undefined"?null:window,document:typeof document==="undefined"?null:document};function getWindow(){return globals.window}var Base=function(){function t(){}return t}();var elements={};var root="___SYMBOL___ROOT___";function create(t,i){if(i===void 0){i=svg}return globals.document.createElementNS(i,t)}function makeInstance(t,i){if(i===void 0){i=false}if(t instanceof Base)return t;if(typeof t==="object"){return adopter(t)}if(t==null){return new elements[root]}if(typeof t==="string"&&t.charAt(0)!=="<"){return adopter(globals.document.querySelector(t))}var r=i?globals.document.createElement("div"):create("svg");r.innerHTML=t;t=adopter(r.firstChild);r.removeChild(r.firstChild);return t}function nodeOrNew(t,i){return i&&(i instanceof globals.window.Node||i.ownerDocument&&i instanceof i.ownerDocument.defaultView.Node)?i:create(t)}function adopt(t){if(!t)return null;if(t.instance instanceof Base)return t.instance;if(t.nodeName==="#document-fragment"){return new elements.Fragment(t)}var i=capitalize(t.nodeName||"Dom");if(i==="LinearGradient"||i==="RadialGradient"){i="Gradient"}else if(!elements[i]){i="Dom"}return new elements[i](t)}var adopter=adopt;function register(t,i,r){if(i===void 0){i=t.name}if(r===void 0){r=false}elements[i]=t;if(r)elements[root]=t;addMethodNames(Object.getOwnPropertyNames(t.prototype));return t}function getClass(t){return elements[t]}var did=1e3;function eid(t){return"Svgjs"+capitalize(t)+did++}function assignNewId(t){for(var i=t.children.length-1;i>=0;i--){assignNewId(t.children[i])}if(t.id){t.id=eid(t.nodeName);return t}return t}function extend(t,i){var r,n;t=Array.isArray(t)?t:[t];for(n=t.length-1;n>=0;n--){for(r in i){t[n].prototype[r]=i[r]}}}function wrapWithAttrCheck(t){return function(){var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}var n=i[i.length-1];if(n&&n.constructor===Object&&!(n instanceof Array)){return t.apply(this,i.slice(0,-1)).attr(n)}else{return t.apply(this,i)}}}function siblings(){return this.parent().children()}function position(){return this.parent().index(this)}function next(){return this.siblings()[this.position()+1]}function prev(){return this.siblings()[this.position()-1]}function forward(){var t=this.position();var i=this.parent();i.add(this.remove(),t+1);return this}function backward(){var t=this.position();var i=this.parent();i.add(this.remove(),t?t-1:0);return this}function front(){var t=this.parent();t.add(this.remove());return this}function back(){var t=this.parent();t.add(this.remove(),0);return this}function before(t){t=makeInstance(t);t.remove();var i=this.position();this.parent().add(t,i);return this}function after(t){t=makeInstance(t);t.remove();var i=this.position();this.parent().add(t,i+1);return this}function insertBefore(t){t=makeInstance(t);t.before(this);return this}function insertAfter(t){t=makeInstance(t);t.after(this);return this}registerMethods("Dom",{siblings:siblings,position:position,next:next,prev:prev,forward:forward,backward:backward,front:front,back:back,before:before,after:after,insertBefore:insertBefore,insertAfter:insertAfter});var numberAndUnit=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i;var hex=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;var rgb=/rgb\((\d+),(\d+),(\d+)\)/;var reference=/(#[a-z_][a-z0-9\-_]*)/i;var transforms=/\)\s*,?\s*/;var whitespace=/\s/g;var isHex=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i;var isRgb=/^rgb\(/;var isBlank=/^(\s+)?$/;var isNumber=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;var isImage=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i;var delimiter=/[\s,]+/;var isPathLetter=/[MLHVCSQTAZ]/i;function classes(){var t=this.attr("class");return t==null?[]:t.trim().split(delimiter)}function hasClass(t){return this.classes().indexOf(t)!==-1}function addClass(t){if(!this.hasClass(t)){var i=this.classes();i.push(t);this.attr("class",i.join(" "))}return this}function removeClass(t){if(this.hasClass(t)){this.attr("class",this.classes().filter((function(i){return i!==t})).join(" "))}return this}function toggleClass(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}registerMethods("Dom",{classes:classes,hasClass:hasClass,addClass:addClass,removeClass:removeClass,toggleClass:toggleClass});function css(t,i){var r={};if(arguments.length===0){this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){var i=t.split(/\s*:\s*/);r[i[0]]=i[1]}));return r}if(arguments.length<2){if(Array.isArray(t)){for(var n=0,e=t;n<e.length;n++){var s=e[n];var o=s;r[s]=this.node.style.getPropertyValue(o)}return r}if(typeof t==="string"){return this.node.style.getPropertyValue(t)}if(typeof t==="object"){for(var s in t){this.node.style.setProperty(s,t[s]==null||isBlank.test(t[s])?"":t[s])}}}if(arguments.length===2){this.node.style.setProperty(t,i==null||isBlank.test(i)?"":i)}return this}function show(){return this.css("display","")}function hide(){return this.css("display","none")}function visible(){return this.css("display")!=="none"}registerMethods("Dom",{css:css,show:show,hide:hide,visible:visible});function data(t,i,r){if(t==null){return this.data(map(filter(this.node.attributes,(function(t){return t.nodeName.indexOf("data-")===0})),(function(t){return t.nodeName.slice(5)})))}else if(t instanceof Array){var n={};for(var e=0,s=t;e<s.length;e++){var o=s[e];n[o]=this.data(o)}return n}else if(typeof t==="object"){for(i in t){this.data(i,t[i])}}else if(arguments.length<2){try{return JSON.parse(this.attr("data-"+t))}catch(i){return this.attr("data-"+t)}}else{this.attr("data-"+t,i===null?null:r===true||typeof i==="string"||typeof i==="number"?i:JSON.stringify(i))}return this}registerMethods("Dom",{data:data});function remember(t,i){if(typeof arguments[0]==="object"){for(var r in t){this.remember(r,t[r])}}else if(arguments.length===1){return this.memory()[t]}else{this.memory()[t]=i}return this}function forget(){if(arguments.length===0){this._memory={}}else{for(var t=arguments.length-1;t>=0;t--){delete this.memory()[arguments[t]]}}return this}function memory(){return this._memory=this._memory||{}}registerMethods("Dom",{remember:remember,forget:forget,memory:memory});function sixDigitHex(t){return t.length===4?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}function componentHex(t){var i=Math.round(t);var r=Math.max(0,Math.min(255,i));var n=r.toString(16);return n.length===1?"0"+n:n}function is(t,i){for(var r=i.length;r--;){if(t[i[r]]==null){return false}}return true}function getParameters(t,i){var r=is(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:is(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:is(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:is(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:is(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:is(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};r.space=i||r.space;return r}function cieSpace(t){if(t==="lab"||t==="xyz"||t==="lch"){return true}else{return false}}function hueToRgb(t,i,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return t+(i-t)*6*r;if(r<1/2)return i;if(r<2/3)return t+(i-t)*(2/3-r)*6;return t}var Color=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.isColor=function(i){return i&&(i instanceof t||this.isRgb(i)||this.test(i))};t.isRgb=function(t){return t&&typeof t.r==="number"&&typeof t.g==="number"&&typeof t.b==="number"};t.random=function(i,r){if(i===void 0){i="vibrant"}var n=Math.random,e=Math.round,s=Math.sin,o=Math.PI;if(i==="vibrant"){var a=(81-57)*n()+57;var u=(83-45)*n()+45;var h=360*n();var f=new t(a,u,h,"lch");return f}else if(i==="sine"){r=r==null?n():r;var c=e(80*s(2*o*r/.5+.01)+150);var l=e(50*s(2*o*r/.5+4.6)+200);var v=e(100*s(2*o*r/.5+2.3)+150);var f=new t(c,l,v);return f}else if(i==="pastel"){var a=(94-86)*n()+86;var u=(26-9)*n()+9;var d=360*n();var f=new t(a,u,d,"lch");return f}else if(i==="dark"){var a=10+10*n();var u=(125-75)*n()+86;var g=360*n();var f=new t(a,u,g,"lch");return f}else if(i==="rgb"){var c=255*n();var l=255*n();var v=255*n();var f=new t(c,l,v);return f}else if(i==="lab"){var a=100*n();var C=256*n()-128;var v=256*n()-128;var f=new t(a,C,v,"lab");return f}else if(i==="grey"){var p=255*n();var f=new t(p,p,p);return f}else{throw new Error("Unsupported random color mode")}};t.test=function(t){return typeof t==="string"&&(isHex.test(t)||isRgb.test(t))};t.prototype.cmyk=function(){var i=this.rgb(),r=i._a,n=i._b,e=i._c;var s=[r,n,e].map((function(t){return t/255})),o=s[0],a=s[1],u=s[2];var h=Math.min(1-o,1-a,1-u);if(h===1){return new t(0,0,0,1,"cmyk")}var f=(1-o-h)/(1-h);var c=(1-a-h)/(1-h);var l=(1-u-h)/(1-h);var v=new t(f,c,l,h,"cmyk");return v};t.prototype.hsl=function(){var i=this.rgb(),r=i._a,n=i._b,e=i._c;var s=[r,n,e].map((function(t){return t/255})),o=s[0],a=s[1],u=s[2];var h=Math.max(o,a,u);var f=Math.min(o,a,u);var c=(h+f)/2;var l=h===f;var v=h-f;var d=l?0:c>.5?v/(2-h-f):v/(h+f);var g=l?0:h===o?((a-u)/v+(a<u?6:0))/6:h===a?((u-o)/v+2)/6:h===u?((o-a)/v+4)/6:0;var C=new t(360*g,100*d,100*c,"hsl");return C};t.prototype.init=function(t,i,r,n,e){if(t===void 0){t=0}if(i===void 0){i=0}if(r===void 0){r=0}if(n===void 0){n=0}if(e===void 0){e="rgb"}t=!t?0:t;if(this.space){for(var s in this.space){delete this[this.space[s]]}}if(typeof t==="number"){e=typeof n==="string"?n:e;n=typeof n==="string"?0:n;Object.assign(this,{_a:t,_b:i,_c:r,_d:n,space:e})}else if(t instanceof Array){this.space=i||(typeof t[3]==="string"?t[3]:t[4])||"rgb";Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0})}else if(t instanceof Object){var o=getParameters(t,i);Object.assign(this,o)}else if(typeof t==="string"){if(isRgb.test(t)){var a=t.replace(whitespace,"");var u=rgb.exec(a).slice(1,4).map((function(t){return parseInt(t)})),h=u[0],f=u[1],c=u[2];Object.assign(this,{_a:h,_b:f,_c:c,_d:0,space:"rgb"})}else if(isHex.test(t)){var l=function(t){return parseInt(t,16)};var v=hex.exec(sixDigitHex(t)).map(l),d=v[1],g=v[2],C=v[3];Object.assign(this,{_a:d,_b:g,_c:C,_d:0,space:"rgb"})}else throw Error("Unsupported string format, can't construct Color")}var p=this,m=p._a,w=p._b,x=p._c,y=p._d;var b=this.space==="rgb"?{r:m,g:w,b:x}:this.space==="xyz"?{x:m,y:w,z:x}:this.space==="hsl"?{h:m,s:w,l:x}:this.space==="lab"?{l:m,a:w,b:x}:this.space==="lch"?{l:m,c:w,h:x}:this.space==="cmyk"?{c:m,m:w,y:x,k:y}:{};Object.assign(this,b)};t.prototype.lab=function(){var i=this.xyz(),r=i.x,n=i.y,e=i.z;var s=116*n-16;var o=500*(r-n);var a=200*(n-e);var u=new t(s,o,a,"lab");return u};t.prototype.lch=function(){var i=this.lab(),r=i.l,n=i.a,e=i.b;var s=Math.sqrt(Math.pow(n,2)+Math.pow(e,2));var o=180*Math.atan2(e,n)/Math.PI;if(o<0){o*=-1;o=360-o}var a=new t(r,s,o,"lch");return a};t.prototype.rgb=function(){if(this.space==="rgb"){return this}else if(cieSpace(this.space)){var i=this,r=i.x,n=i.y,e=i.z;if(this.space==="lab"||this.space==="lch"){var s=this,o=s.l,a=s.a,u=s.b;if(this.space==="lch"){var h=this,f=h.c,c=h.h;var l=Math.PI/180;a=f*Math.cos(l*c);u=f*Math.sin(l*c)}var v=(o+16)/116;var d=a/500+v;var g=v-u/200;var C=16/116;var p=.008856;var m=7.787;r=.95047*(Math.pow(d,3)>p?Math.pow(d,3):(d-C)/m);n=1*(Math.pow(v,3)>p?Math.pow(v,3):(v-C)/m);e=1.08883*(Math.pow(g,3)>p?Math.pow(g,3):(g-C)/m)}var w=r*3.2406+n*-1.5372+e*-.4986;var x=r*-.9689+n*1.8758+e*.0415;var y=r*.0557+n*-.204+e*1.057;var b=Math.pow;var M=.0031308;var _=w>M?1.055*b(w,1/2.4)-.055:12.92*w;var k=x>M?1.055*b(x,1/2.4)-.055:12.92*x;var A=y>M?1.055*b(y,1/2.4)-.055:12.92*y;var S=new t(255*_,255*k,255*A);return S}else if(this.space==="hsl"){var N=this,P=N.h,T=N.s,o=N.l;P/=360;T/=100;o/=100;if(T===0){o*=255;var E=new t(o,o,o);return E}var D=o<.5?o*(1+T):o+T-o*T;var V=2*o-D;var _=255*hueToRgb(V,D,P+1/3);var k=255*hueToRgb(V,D,P);var A=255*hueToRgb(V,D,P-1/3);var S=new t(_,k,A);return S}else if(this.space==="cmyk"){var I=this,f=I.c,L=I.m,G=I.y,O=I.k;var _=255*(1-Math.min(1,f*(1-O)+O));var k=255*(1-Math.min(1,L*(1-O)+O));var A=255*(1-Math.min(1,G*(1-O)+O));var S=new t(_,k,A);return S}else{return this}};t.prototype.toArray=function(){var t=this,i=t._a,r=t._b,n=t._c,e=t._d,s=t.space;return[i,r,n,e,s]};t.prototype.toHex=function(){var t=this._clamped().map(componentHex),i=t[0],r=t[1],n=t[2];return"#".concat(i).concat(r).concat(n)};t.prototype.toRgb=function(){var t=this._clamped(),i=t[0],r=t[1],n=t[2];var e="rgb(".concat(i,",").concat(r,",").concat(n,")");return e};t.prototype.toString=function(){return this.toHex()};t.prototype.xyz=function(){var i=this.rgb(),r=i._a,n=i._b,e=i._c;var s=[r,n,e].map((function(t){return t/255})),o=s[0],a=s[1],u=s[2];var h=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;var f=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;var c=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92;var l=(h*.4124+f*.3576+c*.1805)/.95047;var v=(h*.2126+f*.7152+c*.0722)/1;var d=(h*.0193+f*.1192+c*.9505)/1.08883;var g=l>.008856?Math.pow(l,1/3):7.787*l+16/116;var C=v>.008856?Math.pow(v,1/3):7.787*v+16/116;var p=d>.008856?Math.pow(d,1/3):7.787*d+16/116;var m=new t(g,C,p,"xyz");return m};t.prototype._clamped=function(){var t=this.rgb(),i=t._a,r=t._b,n=t._c;var e=Math.max,s=Math.min,o=Math.round;var a=function(t){return e(0,s(o(t),255))};return[i,r,n].map(a)};return t}();var Point=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.clone=function(){return new t(this)};t.prototype.init=function(t,i){var r={x:0,y:0};var n=Array.isArray(t)?{x:t[0],y:t[1]}:typeof t==="object"?{x:t.x,y:t.y}:{x:t,y:i};this.x=n.x==null?r.x:n.x;this.y=n.y==null?r.y:n.y;return this};t.prototype.toArray=function(){return[this.x,this.y]};t.prototype.transform=function(t){return this.clone().transformO(t)};t.prototype.transformO=function(t){if(!Matrix.isMatrixLike(t)){t=new Matrix(t)}var i=this,r=i.x,n=i.y;this.x=t.a*r+t.c*n+t.e;this.y=t.b*r+t.d*n+t.f;return this};return t}();function point(t,i){return new Point(t,i).transformO(this.screenCTM().inverseO())}function closeEnough(t,i,r){return Math.abs(i-t)<1e-6}var Matrix=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.formatTransforms=function(t){var i=t.flip==="both"||t.flip===true;var r=t.flip&&(i||t.flip==="x")?-1:1;var n=t.flip&&(i||t.flip==="y")?-1:1;var e=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0;var s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0;var o=t.scale&&t.scale.length?t.scale[0]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleX)?t.scaleX*r:r;var a=t.scale&&t.scale.length?t.scale[1]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleY)?t.scaleY*n:n;var u=t.shear||0;var h=t.rotate||t.theta||0;var f=new Point(t.origin||t.around||t.ox||t.originX,t.oy||t.originY);var c=f.x;var l=f.y;var v=new Point(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN);var d=v.x;var g=v.y;var C=new Point(t.translate||t.tx||t.translateX,t.ty||t.translateY);var p=C.x;var m=C.y;var w=new Point(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);var x=w.x;var y=w.y;return{scaleX:o,scaleY:a,skewX:e,skewY:s,shear:u,theta:h,rx:x,ry:y,tx:p,ty:m,ox:c,oy:l,px:d,py:g}};t.fromArray=function(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}};t.isMatrixLike=function(t){return t.a!=null||t.b!=null||t.c!=null||t.d!=null||t.e!=null||t.f!=null};t.matrixMultiply=function(t,i,r){var n=t.a*i.a+t.c*i.b;var e=t.b*i.a+t.d*i.b;var s=t.a*i.c+t.c*i.d;var o=t.b*i.c+t.d*i.d;var a=t.e+t.a*i.e+t.c*i.f;var u=t.f+t.b*i.e+t.d*i.f;r.a=n;r.b=e;r.c=s;r.d=o;r.e=a;r.f=u;return r};t.prototype.around=function(t,i,r){return this.clone().aroundO(t,i,r)};t.prototype.aroundO=function(t,i,r){var n=t||0;var e=i||0;return this.translateO(-n,-e).lmultiplyO(r).translateO(n,e)};t.prototype.clone=function(){return new t(this)};t.prototype.decompose=function(t,i){if(t===void 0){t=0}if(i===void 0){i=0}var r=this.a;var n=this.b;var e=this.c;var s=this.d;var o=this.e;var a=this.f;var u=r*s-n*e;var h=u>0?1:-1;var f=h*Math.sqrt(r*r+n*n);var c=Math.atan2(h*n,h*r);var l=180/Math.PI*c;var v=Math.cos(c);var d=Math.sin(c);var g=(r*e+n*s)/u;var C=e*f/(g*r-n)||s*f/(g*n+r);var p=o-t+t*v*f+i*(g*v*f-d*C);var m=a-i+t*d*f+i*(g*d*f+v*C);return{scaleX:f,scaleY:C,shear:g,rotate:l,translateX:p,translateY:m,originX:t,originY:i,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}};t.prototype.equals=function(i){if(i===this)return true;var r=new t(i);return closeEnough(this.a,r.a)&&closeEnough(this.b,r.b)&&closeEnough(this.c,r.c)&&closeEnough(this.d,r.d)&&closeEnough(this.e,r.e)&&closeEnough(this.f,r.f)};t.prototype.flip=function(t,i){return this.clone().flipO(t,i)};t.prototype.flipO=function(t,i){return t==="x"?this.scaleO(-1,1,i,0):t==="y"?this.scaleO(1,-1,0,i):this.scaleO(-1,-1,t,i||t)};t.prototype.init=function(i){var r=t.fromArray([1,0,0,1,0,0]);i=i instanceof Element?i.matrixify():typeof i==="string"?t.fromArray(i.split(delimiter).map(parseFloat)):Array.isArray(i)?t.fromArray(i):typeof i==="object"&&t.isMatrixLike(i)?i:typeof i==="object"?(new t).transform(i):arguments.length===6?t.fromArray([].slice.call(arguments)):r;this.a=i.a!=null?i.a:r.a;this.b=i.b!=null?i.b:r.b;this.c=i.c!=null?i.c:r.c;this.d=i.d!=null?i.d:r.d;this.e=i.e!=null?i.e:r.e;this.f=i.f!=null?i.f:r.f;return this};t.prototype.inverse=function(){return this.clone().inverseO()};t.prototype.inverseO=function(){var t=this.a;var i=this.b;var r=this.c;var n=this.d;var e=this.e;var s=this.f;var o=t*n-i*r;if(!o)throw new Error("Cannot invert "+this);var a=n/o;var u=-i/o;var h=-r/o;var f=t/o;var c=-(a*e+h*s);var l=-(u*e+f*s);this.a=a;this.b=u;this.c=h;this.d=f;this.e=c;this.f=l;return this};t.prototype.lmultiply=function(t){return this.clone().lmultiplyO(t)};t.prototype.lmultiplyO=function(i){var r=this;var n=i instanceof t?i:new t(i);return t.matrixMultiply(n,r,this)};t.prototype.multiply=function(t){return this.clone().multiplyO(t)};t.prototype.multiplyO=function(i){var r=this;var n=i instanceof t?i:new t(i);return t.matrixMultiply(r,n,this)};t.prototype.rotate=function(t,i,r){return this.clone().rotateO(t,i,r)};t.prototype.rotateO=function(t,i,r){if(i===void 0){i=0}if(r===void 0){r=0}t=radians(t);var n=Math.cos(t);var e=Math.sin(t);var s=this,o=s.a,a=s.b,u=s.c,h=s.d,f=s.e,c=s.f;this.a=o*n-a*e;this.b=a*n+o*e;this.c=u*n-h*e;this.d=h*n+u*e;this.e=f*n-c*e+r*e-i*n+i;this.f=c*n+f*e-i*e-r*n+r;return this};t.prototype.scale=function(){var t;return(t=this.clone()).scaleO.apply(t,arguments)};t.prototype.scaleO=function(t,i,r,n){if(i===void 0){i=t}if(r===void 0){r=0}if(n===void 0){n=0}if(arguments.length===3){n=r;r=i;i=t}var e=this,s=e.a,o=e.b,a=e.c,u=e.d,h=e.e,f=e.f;this.a=s*t;this.b=o*i;this.c=a*t;this.d=u*i;this.e=h*t-r*t+r;this.f=f*i-n*i+n;return this};t.prototype.shear=function(t,i,r){return this.clone().shearO(t,i,r)};t.prototype.shearO=function(t,i,r){if(i===void 0){i=0}if(r===void 0){r=0}var n=this,e=n.a,s=n.b,o=n.c,a=n.d,u=n.e,h=n.f;this.a=e+s*t;this.c=o+a*t;this.e=u+h*t-r*t;return this};t.prototype.skew=function(){var t;return(t=this.clone()).skewO.apply(t,arguments)};t.prototype.skewO=function(t,i,r,n){if(i===void 0){i=t}if(r===void 0){r=0}if(n===void 0){n=0}if(arguments.length===3){n=r;r=i;i=t}t=radians(t);i=radians(i);var e=Math.tan(t);var s=Math.tan(i);var o=this,a=o.a,u=o.b,h=o.c,f=o.d,c=o.e,l=o.f;this.a=a+u*e;this.b=u+a*s;this.c=h+f*e;this.d=f+h*s;this.e=c+l*e-n*e;this.f=l+c*s-r*s;return this};t.prototype.skewX=function(t,i,r){return this.skew(t,0,i,r)};t.prototype.skewY=function(t,i,r){return this.skew(0,t,i,r)};t.prototype.toArray=function(){return[this.a,this.b,this.c,this.d,this.e,this.f]};t.prototype.toString=function(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"};t.prototype.transform=function(i){if(t.isMatrixLike(i)){var r=new t(i);return r.multiplyO(this)}var n=t.formatTransforms(i);var e=this;var s=new Point(n.ox,n.oy).transform(e),o=s.x,a=s.y;var u=(new t).translateO(n.rx,n.ry).lmultiplyO(e).translateO(-o,-a).scaleO(n.scaleX,n.scaleY).skewO(n.skewX,n.skewY).shearO(n.shear).rotateO(n.theta).translateO(o,a);if(isFinite(n.px)||isFinite(n.py)){var h=new Point(o,a).transform(u);var f=isFinite(n.px)?n.px-h.x:0;var c=isFinite(n.py)?n.py-h.y:0;u.translateO(f,c)}u.translateO(n.tx,n.ty);return u};t.prototype.translate=function(t,i){return this.clone().translateO(t,i)};t.prototype.translateO=function(t,i){this.e+=t||0;this.f+=i||0;return this};t.prototype.valueOf=function(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}};return t}();function ctm(){return new Matrix(this.node.getCTM())}function screenCTM(){try{if(typeof this.isRoot==="function"&&!this.isRoot()){var t=this.rect(1,1);var i=t.node.getScreenCTM();t.remove();return new Matrix(i)}return new Matrix(this.node.getScreenCTM())}catch(t){console.warn("Cannot get CTM from SVG node ".concat(this.node.nodeName,". Is the element rendered?"));return new Matrix}}register(Matrix,"Matrix");function parser(){if(!parser.nodes){var t=makeInstance().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";");t.attr("focusable","false");t.attr("aria-hidden","true");var i=t.path().node;parser.nodes={svg:t,path:i}}if(!parser.nodes.svg.node.parentNode){var r=globals.document.body||globals.document.documentElement;parser.nodes.svg.addTo(r)}return parser.nodes}function isNulledBox(t){return!t.width&&!t.height&&!t.x&&!t.y}function domContains(t){return t===globals.document||(globals.document.documentElement.contains||function(t){while(t.parentNode){t=t.parentNode}return t===globals.document}).call(globals.document.documentElement,t)}var Box=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.addOffset=function(){this.x+=globals.window.pageXOffset;this.y+=globals.window.pageYOffset;return new t(this)};t.prototype.init=function(t){var i=[0,0,0,0];t=typeof t==="string"?t.split(delimiter).map(parseFloat):Array.isArray(t)?t:typeof t==="object"?[t.left!=null?t.left:t.x,t.top!=null?t.top:t.y,t.width,t.height]:arguments.length===4?[].slice.call(arguments):i;this.x=t[0]||0;this.y=t[1]||0;this.width=this.w=t[2]||0;this.height=this.h=t[3]||0;this.x2=this.x+this.w;this.y2=this.y+this.h;this.cx=this.x+this.w/2;this.cy=this.y+this.h/2;return this};t.prototype.isNulled=function(){return isNulledBox(this)};t.prototype.merge=function(i){var r=Math.min(this.x,i.x);var n=Math.min(this.y,i.y);var e=Math.max(this.x+this.width,i.x+i.width)-r;var s=Math.max(this.y+this.height,i.y+i.height)-n;return new t(r,n,e,s)};t.prototype.toArray=function(){return[this.x,this.y,this.width,this.height]};t.prototype.toString=function(){return this.x+" "+this.y+" "+this.width+" "+this.height};t.prototype.transform=function(i){if(!(i instanceof Matrix)){i=new Matrix(i)}var r=Infinity;var n=-Infinity;var e=Infinity;var s=-Infinity;var o=[new Point(this.x,this.y),new Point(this.x2,this.y),new Point(this.x,this.y2),new Point(this.x2,this.y2)];o.forEach((function(t){t=t.transform(i);r=Math.min(r,t.x);n=Math.max(n,t.x);e=Math.min(e,t.y);s=Math.max(s,t.y)}));return new t(r,e,n-r,s-e)};return t}();function getBox(t,i,r){var n;try{n=i(t.node);if(isNulledBox(n)&&!domContains(t.node)){throw new Error("Element not in the dom")}}catch(i){n=r(t)}return n}function bbox(){var t=function(t){return t.getBBox()};var i=function(t){try{var i=t.clone().addTo(parser().svg).show();var r=i.node.getBBox();i.remove();return r}catch(i){throw new Error('Getting bbox of element "'.concat(t.node.nodeName,'" is not possible: ').concat(i.toString()))}};var r=getBox(this,t,i);var n=new Box(r);return n}function rbox(t){var i=function(t){return t.getBoundingClientRect()};var r=function(t){throw new Error('Getting rbox of element "'.concat(t.node.nodeName,'" is not possible'))};var n=getBox(this,i,r);var e=new Box(n);if(t){return e.transform(t.screenCTM().inverseO())}return e.addOffset()}function inside(t,i){var r=this.bbox();return t>r.x&&i>r.y&&t<r.x+r.width&&i<r.y+r.height}registerMethods({viewbox:{viewbox:function(t,i,r,n){if(t==null)return new Box(this.attr("viewBox"));return this.attr("viewBox",new Box(t,i,r,n))},zoom:function(t,i){var r=this.attr(["width","height"]),n=r.width,e=r.height;if(!n&&!e||typeof n==="string"||typeof e==="string"){n=this.node.clientWidth;e=this.node.clientHeight}if(!n||!e){throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element")}var s=this.viewbox();var o=n/s.width;var a=e/s.height;var u=Math.min(o,a);if(t==null){return u}var h=u/t;if(h===Infinity)h=Number.MAX_SAFE_INTEGER/100;i=i||new Point(n/2/o+s.x,e/2/a+s.y);var f=new Box(s).transform(new Matrix({scale:h,origin:i}));return this.viewbox(f)}}});register(Box,"Box");var List=function(t){__extends(i,t);function i(i){if(i===void 0){i=[]}var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}var e=t.apply(this,__spreadArray([i],r,false))||this;if(typeof i==="number")return e;e.length=0;e.push.apply(e,i);return e}return i}(Array);extend([List],{each:function(t){var i=[];for(var r=1;r<arguments.length;r++){i[r-1]=arguments[r]}if(typeof t==="function"){return this.map((function(i,r,n){return t.call(i,i,r,n)}))}else{return this.map((function(r){return r[t].apply(r,i)}))}},toArray:function(){return Array.prototype.concat.apply([],this)}});var reserved=["toArray","constructor","each"];List.extend=function(t){t=t.reduce((function(t,i){if(reserved.includes(i))return t;if(i[0]==="_")return t;if(i in Array.prototype){t["$"+i]=Array.prototype[i]}t[i]=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return this.each.apply(this,__spreadArray([i],t,false))};return t}),{});extend([List],t)};function baseFind(t,i){return new List(map((i||globals.document).querySelectorAll(t),(function(t){return adopt(t)})))}function find(t){return baseFind(t,this.node)}function findOne(t){return adopt(this.node.querySelector(t))}var listenerId=0;var windowEvents={};function getEvents(t){var i=t.getEventHolder();if(i===globals.window)i=windowEvents;if(!i.events)i.events={};return i.events}function getEventTarget(t){return t.getEventTarget()}function clearEvents(t){var i=t.getEventHolder();if(i===globals.window)i=windowEvents;if(i.events)i.events={}}function on(t,i,r,n,e){var s=r.bind(n||t);var o=makeInstance(t);var a=getEvents(o);var u=getEventTarget(o);i=Array.isArray(i)?i:i.split(delimiter);if(!r._svgjsListenerId){r._svgjsListenerId=++listenerId}i.forEach((function(t){var i=t.split(".")[0];var n=t.split(".")[1]||"*";a[i]=a[i]||{};a[i][n]=a[i][n]||{};a[i][n][r._svgjsListenerId]=s;u.addEventListener(i,s,e||false)}))}function off(t,i,r,n){var e=makeInstance(t);var s=getEvents(e);var o=getEventTarget(e);if(typeof r==="function"){r=r._svgjsListenerId;if(!r)return}i=Array.isArray(i)?i:(i||"").split(delimiter);i.forEach((function(t){var i=t&&t.split(".")[0];var a=t&&t.split(".")[1];var u,h;if(r){if(s[i]&&s[i][a||"*"]){o.removeEventListener(i,s[i][a||"*"][r],n||false);delete s[i][a||"*"][r]}}else if(i&&a){if(s[i]&&s[i][a]){for(h in s[i][a]){off(o,[i,a].join("."),h)}delete s[i][a]}}else if(a){for(t in s){for(u in s[t]){if(a===u){off(o,[t,a].join("."))}}}}else if(i){if(s[i]){for(u in s[i]){off(o,[i,u].join("."))}delete s[i]}}else{for(t in s){off(o,t)}clearEvents(e)}}))}function dispatch(t,i,r,n){var e=getEventTarget(t);if(i instanceof globals.window.Event){e.dispatchEvent(i)}else{i=new globals.window.CustomEvent(i,__assign({detail:r,cancelable:true},n));e.dispatchEvent(i)}return i}var EventTarget=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.addEventListener=function(){};i.prototype.dispatch=function(t,i,r){return dispatch(this,t,i,r)};i.prototype.dispatchEvent=function(t){var i=this.getEventHolder().events;if(!i)return true;var r=i[t.type];for(var n in r){for(var e in r[n]){r[n][e](t)}}return!t.defaultPrevented};i.prototype.fire=function(t,i,r){this.dispatch(t,i,r);return this};i.prototype.getEventHolder=function(){return this};i.prototype.getEventTarget=function(){return this};i.prototype.off=function(t,i,r){off(this,t,i,r);return this};i.prototype.on=function(t,i,r,n){on(this,t,i,r,n);return this};i.prototype.removeEventListener=function(){};return i}(Base);register(EventTarget,"EventTarget");function noop(){}var timeline={duration:400,ease:">",delay:0};var attrs={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};var SVGArray=function(t){__extends(i,t);function i(){var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}var n=t.apply(this,i)||this;n.init.apply(n,i);return n}i.prototype.clone=function(){return new this.constructor(this)};i.prototype.init=function(t){if(typeof t==="number")return this;this.length=0;this.push.apply(this,this.parse(t));return this};i.prototype.parse=function(t){if(t===void 0){t=[]}if(t instanceof Array)return t;return t.trim().split(delimiter).map(parseFloat)};i.prototype.toArray=function(){return Array.prototype.concat.apply([],this)};i.prototype.toSet=function(){return new Set(this)};i.prototype.toString=function(){return this.join(" ")};i.prototype.valueOf=function(){var t=[];t.push.apply(t,this);return t};return i}(Array);var SVGNumber=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.convert=function(i){return new t(this.value,i)};t.prototype.divide=function(i){i=new t(i);return new t(this/i,this.unit||i.unit)};t.prototype.init=function(i,r){r=Array.isArray(i)?i[1]:r;i=Array.isArray(i)?i[0]:i;this.value=0;this.unit=r||"";if(typeof i==="number"){this.value=isNaN(i)?0:!isFinite(i)?i<0?-34e37:+34e37:i}else if(typeof i==="string"){r=i.match(numberAndUnit);if(r){this.value=parseFloat(r[1]);if(r[5]==="%"){this.value/=100}else if(r[5]==="s"){this.value*=1e3}this.unit=r[5]}}else{if(i instanceof t){this.value=i.valueOf();this.unit=i.unit}}return this};t.prototype.minus=function(i){i=new t(i);return new t(this-i,this.unit||i.unit)};t.prototype.plus=function(i){i=new t(i);return new t(this+i,this.unit||i.unit)};t.prototype.times=function(i){i=new t(i);return new t(this*i,this.unit||i.unit)};t.prototype.toArray=function(){return[this.value,this.unit]};t.prototype.toJSON=function(){return this.toString()};t.prototype.toString=function(){return(this.unit==="%"?~~(this.value*1e8)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit};t.prototype.valueOf=function(){return this.value};return t}();var colorAttributes=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]);var hooks=[];function registerAttrHook(t){hooks.push(t)}function attr(t,i,r){var n=this;if(t==null){t={};i=this.node.attributes;for(var e=0,s=i;e<s.length;e++){var o=s[e];t[o.nodeName]=isNumber.test(o.nodeValue)?parseFloat(o.nodeValue):o.nodeValue}return t}else if(t instanceof Array){return t.reduce((function(t,i){t[i]=n.attr(i);return t}),{})}else if(typeof t==="object"&&t.constructor===Object){for(i in t)this.attr(i,t[i])}else if(i===null){this.node.removeAttribute(t)}else if(i==null){i=this.node.getAttribute(t);return i==null?attrs[t]:isNumber.test(i)?parseFloat(i):i}else{i=hooks.reduce((function(i,r){return r(t,i,n)}),i);if(typeof i==="number"){i=new SVGNumber(i)}else if(colorAttributes.has(t)&&Color.isColor(i)){i=new Color(i)}else if(i.constructor===Array){i=new SVGArray(i)}if(t==="leading"){if(this.leading){this.leading(i)}}else{typeof r==="string"?this.node.setAttributeNS(r,t,i.toString()):this.node.setAttribute(t,i.toString())}if(this.rebuild&&(t==="font-size"||t==="x")){this.rebuild()}}return this}var Dom=function(t){__extends(i,t);function i(i,r){var n=t.call(this)||this;n.node=i;n.type=i.nodeName;if(r&&i!==r){n.attr(r)}return n}i.prototype.add=function(t,i){t=makeInstance(t);if(t.removeNamespace&&this.node instanceof globals.window.SVGElement){t.removeNamespace()}if(i==null){this.node.appendChild(t.node)}else if(t.node!==this.node.childNodes[i]){this.node.insertBefore(t.node,this.node.childNodes[i])}return this};i.prototype.addTo=function(t,i){return makeInstance(t).put(this,i)};i.prototype.children=function(){return new List(map(this.node.children,(function(t){return adopt(t)})))};i.prototype.clear=function(){while(this.node.hasChildNodes()){this.node.removeChild(this.node.lastChild)}return this};i.prototype.clone=function(t,i){if(t===void 0){t=true}if(i===void 0){i=true}this.writeDataToDom();var r=this.node.cloneNode(t);if(i){r=assignNewId(r)}return new this.constructor(r)};i.prototype.each=function(t,i){var r=this.children();var n,e;for(n=0,e=r.length;n<e;n++){t.apply(r[n],[n,r]);if(i){r[n].each(t,i)}}return this};i.prototype.element=function(t,r){return this.put(new i(create(t),r))};i.prototype.first=function(){return adopt(this.node.firstChild)};i.prototype.get=function(t){return adopt(this.node.childNodes[t])};i.prototype.getEventHolder=function(){return this.node};i.prototype.getEventTarget=function(){return this.node};i.prototype.has=function(t){return this.index(t)>=0};i.prototype.html=function(t,i){return this.xml(t,i,html)};i.prototype.id=function(t){if(typeof t==="undefined"&&!this.node.id){this.node.id=eid(this.type)}return this.attr("id",t)};i.prototype.index=function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)};i.prototype.last=function(){return adopt(this.node.lastChild)};i.prototype.matches=function(t){var i=this.node;var r=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.oMatchesSelector||null;return r&&r.call(i,t)};i.prototype.parent=function(t){var i=this;if(!i.node.parentNode)return null;i=adopt(i.node.parentNode);if(!t)return i;do{if(typeof t==="string"?i.matches(t):i instanceof t)return i}while(i=adopt(i.node.parentNode));return i};i.prototype.put=function(t,i){t=makeInstance(t);this.add(t,i);return t};i.prototype.putIn=function(t,i){return makeInstance(t).add(this,i)};i.prototype.remove=function(){if(this.parent()){this.parent().removeElement(this)}return this};i.prototype.removeElement=function(t){this.node.removeChild(t.node);return this};i.prototype.replace=function(t){t=makeInstance(t);if(this.node.parentNode){this.node.parentNode.replaceChild(t.node,this.node)}return t};i.prototype.round=function(t,i){if(t===void 0){t=2}if(i===void 0){i=null}var r=Math.pow(10,t);var n=this.attr(i);for(var e in n){if(typeof n[e]==="number"){n[e]=Math.round(n[e]*r)/r}}this.attr(n);return this};i.prototype.svg=function(t,i){return this.xml(t,i,svg)};i.prototype.toString=function(){return this.id()};i.prototype.words=function(t){this.node.textContent=t;return this};i.prototype.wrap=function(t){var i=this.parent();if(!i){return this.addTo(t)}var r=i.index(this);return i.put(t,r).put(this)};i.prototype.writeDataToDom=function(){this.each((function(){this.writeDataToDom()}));return this};i.prototype.xml=function(t,i,r){if(typeof t==="boolean"){r=i;i=t;t=null}if(t==null||typeof t==="function"){i=i==null?true:i;this.writeDataToDom();var n=this;if(t!=null){n=adopt(n.node.cloneNode(true));if(i){var e=t(n);n=e||n;if(e===false)return""}n.each((function(){var i=t(this);var r=i||this;if(i===false){this.remove()}else if(i&&this!==r){this.replace(r)}}),true)}return i?n.node.outerHTML:n.node.innerHTML}i=i==null?false:i;var s=create("wrapper",r);var o=globals.document.createDocumentFragment();s.innerHTML=t;for(var a=s.children.length;a--;){o.appendChild(s.firstElementChild)}var u=this.parent();return i?this.replace(o)&&u:this.add(o)};return i}(EventTarget);extend(Dom,{attr:attr,find:find,findOne:findOne});register(Dom,"Dom");var Element=function(t){__extends(i,t);function i(i,r){var n,e;var s=t.call(this,i,r)||this;s.dom={};s.node.instance=s;if(i.hasAttribute("data-svgjs")||i.hasAttribute("svgjs:data")){s.setData((e=(n=JSON.parse(i.getAttribute("data-svgjs")))!==null&&n!==void 0?n:JSON.parse(i.getAttribute("svgjs:data")))!==null&&e!==void 0?e:{})}return s}i.prototype.center=function(t,i){return this.cx(t).cy(i)};i.prototype.cx=function(t){return t==null?this.x()+this.width()/2:this.x(t-this.width()/2)};i.prototype.cy=function(t){return t==null?this.y()+this.height()/2:this.y(t-this.height()/2)};i.prototype.defs=function(){var t=this.root();return t&&t.defs()};i.prototype.dmove=function(t,i){return this.dx(t).dy(i)};i.prototype.dx=function(t){if(t===void 0){t=0}return this.x(new SVGNumber(t).plus(this.x()))};i.prototype.dy=function(t){if(t===void 0){t=0}return this.y(new SVGNumber(t).plus(this.y()))};i.prototype.getEventHolder=function(){return this};i.prototype.height=function(t){return this.attr("height",t)};i.prototype.move=function(t,i){return this.x(t).y(i)};i.prototype.parents=function(t){if(t===void 0){t=this.root()}var i=typeof t==="string";if(!i){t=makeInstance(t)}var r=new List;var n=this;while((n=n.parent())&&n.node!==globals.document&&n.nodeName!=="#document-fragment"){r.push(n);if(!i&&n.node===t.node){break}if(i&&n.matches(t)){break}if(n.node===this.root().node){return null}}return r};i.prototype.reference=function(t){t=this.attr(t);if(!t)return null;var i=(t+"").match(reference);return i?makeInstance(i[1]):null};i.prototype.root=function(){var t=this.parent(getClass(root));return t&&t.root()};i.prototype.setData=function(t){this.dom=t;return this};i.prototype.size=function(t,i){var r=proportionalSize(this,t,i);return this.width(new SVGNumber(r.width)).height(new SVGNumber(r.height))};i.prototype.width=function(t){return this.attr("width",t)};i.prototype.writeDataToDom=function(){writeDataToDom(this,this.dom);return t.prototype.writeDataToDom.call(this)};i.prototype.x=function(t){return this.attr("x",t)};i.prototype.y=function(t){return this.attr("y",t)};return i}(Dom);extend(Element,{bbox:bbox,rbox:rbox,inside:inside,point:point,ctm:ctm,screenCTM:screenCTM});register(Element,"Element");var sugar={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,i){return i==="color"?t:t+"-"+i}};["fill","stroke"].forEach((function(t){var i={};var r;i[t]=function(i){if(typeof i==="undefined"){return this.attr(t)}if(typeof i==="string"||i instanceof Color||Color.isRgb(i)||i instanceof Element){this.attr(t,i)}else{for(r=sugar[t].length-1;r>=0;r--){if(i[sugar[t][r]]!=null){this.attr(sugar.prefix(t,sugar[t][r]),i[sugar[t][r]])}}}return this};registerMethods(["Element","Runner"],i)}));registerMethods(["Element","Runner"],{matrix:function(t,i,r,n,e,s){if(t==null){return new Matrix(this)}return this.attr("transform",new Matrix(t,i,r,n,e,s))},rotate:function(t,i,r){return this.transform({rotate:t,ox:i,oy:r},true)},skew:function(t,i,r,n){return arguments.length===1||arguments.length===3?this.transform({skew:t,ox:i,oy:r},true):this.transform({skew:[t,i],ox:r,oy:n},true)},shear:function(t,i,r){return this.transform({shear:t,ox:i,oy:r},true)},scale:function(t,i,r,n){return arguments.length===1||arguments.length===3?this.transform({scale:t,ox:i,oy:r},true):this.transform({scale:[t,i],ox:r,oy:n},true)},translate:function(t,i){return this.transform({translate:[t,i]},true)},relative:function(t,i){return this.transform({relative:[t,i]},true)},flip:function(t,i){if(t===void 0){t="both"}if(i===void 0){i="center"}if("xybothtrue".indexOf(t)===-1){i=t;t="both"}return this.transform({flip:t,origin:i},true)},opacity:function(t){return this.attr("opacity",t)}});registerMethods("radius",{radius:function(t,i){if(i===void 0){i=t}var r=(this._element||this).type;return r==="radialGradient"?this.attr("r",new SVGNumber(t)):this.rx(t).ry(i)}});registerMethods("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Point(this.node.getPointAtLength(t))}});registerMethods(["Element","Runner"],{font:function(t,i){if(typeof t==="object"){for(i in t)this.font(i,t[i]);return this}return t==="leading"?this.leading(i):t==="anchor"?this.attr("text-anchor",i):t==="size"||t==="family"||t==="weight"||t==="stretch"||t==="variant"||t==="style"?this.attr("font-"+t,i):this.attr(t,i)}});var methods=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,i){var r=function(t){if(t===null){this.off(i)}else{this.on(i,t)}return this};t[i]=r;return t}),{});registerMethods("Element",methods);function untransform(){return this.attr("transform",null)}function matrixify(){var t=(this.attr("transform")||"").split(transforms).slice(0,-1).map((function(t){var i=t.trim().split("(");return[i[0],i[1].split(delimiter).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,i){if(i[0]==="matrix"){return t.lmultiply(Matrix.fromArray(i[1]))}return t[i[0]].apply(t,i[1])}),new Matrix);return t}function toParent(t,i){if(this===t)return this;if(isDescriptive(this.node))return this.addTo(t,i);var r=this.screenCTM();var n=t.screenCTM().inverse();this.addTo(t,i).untransform().transform(n.multiply(r));return this}function toRoot(t){return this.toParent(this.root(),t)}function transform(t,i){if(t==null||typeof t==="string"){var r=new Matrix(this).decompose();return t==null?r:r[t]}if(!Matrix.isMatrixLike(t)){t=__assign(__assign({},t),{origin:getOrigin(t,this)})}var n=i===true?this:i||false;var e=new Matrix(n).transform(t);return this.attr("transform",e)}registerMethods("Element",{untransform:untransform,matrixify:matrixify,toParent:toParent,toRoot:toRoot,transform:transform});var Container=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.flatten=function(){this.each((function(){if(this instanceof i){return this.flatten().ungroup()}}));return this};i.prototype.ungroup=function(t,i){if(t===void 0){t=this.parent()}if(i===void 0){i=t.index(this)}i=i===-1?t.children().length:i;this.each((function(r,n){return n[n.length-r-1].toParent(t,i)}));return this.remove()};return i}(Element);register(Container,"Container");var Defs=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("defs",i),r)||this}i.prototype.flatten=function(){return this};i.prototype.ungroup=function(){return this};return i}(Container);register(Defs,"Defs");var Shape=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}return i}(Element);register(Shape,"Shape");function rx(t){return this.attr("rx",t)}function ry(t){return this.attr("ry",t)}function x$3(t){return t==null?this.cx()-this.rx():this.cx(t+this.rx())}function y$3(t){return t==null?this.cy()-this.ry():this.cy(t+this.ry())}function cx$1(t){return this.attr("cx",t)}function cy$1(t){return this.attr("cy",t)}function width$2(t){return t==null?this.rx()*2:this.rx(new SVGNumber(t).divide(2))}function height$2(t){return t==null?this.ry()*2:this.ry(new SVGNumber(t).divide(2))}var circled={__proto__:null,cx:cx$1,cy:cy$1,height:height$2,rx:rx,ry:ry,width:width$2,x:x$3,y:y$3};var Ellipse=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("ellipse",i),r)||this}i.prototype.size=function(t,i){var r=proportionalSize(this,t,i);return this.rx(new SVGNumber(r.width).divide(2)).ry(new SVGNumber(r.height).divide(2))};return i}(Shape);extend(Ellipse,circled);registerMethods("Container",{ellipse:wrapWithAttrCheck((function(t,i){if(t===void 0){t=0}if(i===void 0){i=t}return this.put(new Ellipse).size(t,i).move(0,0)}))});register(Ellipse,"Ellipse");var Fragment=function(t){__extends(i,t);function i(i){if(i===void 0){i=globals.document.createDocumentFragment()}return t.call(this,i)||this}i.prototype.xml=function(i,r,n){if(typeof i==="boolean"){n=r;r=i;i=null}if(i==null||typeof i==="function"){var e=new Dom(create("wrapper",n));e.add(this.node.cloneNode(true));return e.xml(false,n)}return t.prototype.xml.call(this,i,false,n)};return i}(Dom);register(Fragment,"Fragment");function from(t,i){return(this._element||this).type==="radialGradient"?this.attr({fx:new SVGNumber(t),fy:new SVGNumber(i)}):this.attr({x1:new SVGNumber(t),y1:new SVGNumber(i)})}function to(t,i){return(this._element||this).type==="radialGradient"?this.attr({cx:new SVGNumber(t),cy:new SVGNumber(i)}):this.attr({x2:new SVGNumber(t),y2:new SVGNumber(i)})}var gradiented={__proto__:null,from:from,to:to};var Gradient=function(t){__extends(i,t);function i(i,r){return t.call(this,nodeOrNew(i+"Gradient",typeof i==="string"?null:i),r)||this}i.prototype.attr=function(i,r,n){if(i==="transform")i="gradientTransform";return t.prototype.attr.call(this,i,r,n)};i.prototype.bbox=function(){return new Box};i.prototype.targets=function(){return baseFind("svg [fill*="+this.id()+"]")};i.prototype.toString=function(){return this.url()};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.url=function(){return"url(#"+this.id()+")"};return i}(Container);extend(Gradient,gradiented);registerMethods({Container:{gradient:function(){var t;var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}return(t=this.defs()).gradient.apply(t,i)}},Defs:{gradient:wrapWithAttrCheck((function(t,i){return this.put(new Gradient(t)).update(i)}))}});register(Gradient,"Gradient");var Pattern=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("pattern",i),r)||this}i.prototype.attr=function(i,r,n){if(i==="transform")i="patternTransform";return t.prototype.attr.call(this,i,r,n)};i.prototype.bbox=function(){return new Box};i.prototype.targets=function(){return baseFind("svg [fill*="+this.id()+"]")};i.prototype.toString=function(){return this.url()};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.url=function(){return"url(#"+this.id()+")"};return i}(Container);registerMethods({Container:{pattern:function(){var t;var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}return(t=this.defs()).pattern.apply(t,i)}},Defs:{pattern:wrapWithAttrCheck((function(t,i,r){return this.put(new Pattern).update(r).attr({x:0,y:0,width:t,height:i,patternUnits:"userSpaceOnUse"})}))}});register(Pattern,"Pattern");var Image=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("image",i),r)||this}i.prototype.load=function(t,i){if(!t)return this;var r=new globals.window.Image;on(r,"load",(function(t){var n=this.parent(Pattern);if(this.width()===0&&this.height()===0){this.size(r.width,r.height)}if(n instanceof Pattern){if(n.width()===0&&n.height()===0){n.size(this.width(),this.height())}}if(typeof i==="function"){i.call(this,t)}}),this);on(r,"load error",(function(){off(r)}));return this.attr("href",r.src=t,xlink)};return i}(Shape);registerAttrHook((function(t,i,r){if(t==="fill"||t==="stroke"){if(isImage.test(i)){i=r.root().defs().image(i)}}if(i instanceof Image){i=r.root().defs().pattern(0,0,(function(t){t.add(i)}))}return i}));registerMethods({Container:{image:wrapWithAttrCheck((function(t,i){return this.put(new Image).size(0,0).load(t,i)}))}});register(Image,"Image");var PointArray=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.bbox=function(){var t=-Infinity;var i=-Infinity;var r=Infinity;var n=Infinity;this.forEach((function(e){t=Math.max(e[0],t);i=Math.max(e[1],i);r=Math.min(e[0],r);n=Math.min(e[1],n)}));return new Box(r,n,t-r,i-n)};i.prototype.move=function(t,i){var r=this.bbox();t-=r.x;i-=r.y;if(!isNaN(t)&&!isNaN(i)){for(var n=this.length-1;n>=0;n--){this[n]=[this[n][0]+t,this[n][1]+i]}}return this};i.prototype.parse=function(t){if(t===void 0){t=[0,0]}var i=[];if(t instanceof Array){t=Array.prototype.concat.apply([],t)}else{t=t.trim().split(delimiter).map(parseFloat)}if(t.length%2!==0)t.pop();for(var r=0,n=t.length;r<n;r=r+2){i.push([t[r],t[r+1]])}return i};i.prototype.size=function(t,i){var r;var n=this.bbox();for(r=this.length-1;r>=0;r--){if(n.width)this[r][0]=(this[r][0]-n.x)*t/n.width+n.x;if(n.height)this[r][1]=(this[r][1]-n.y)*i/n.height+n.y}return this};i.prototype.toLine=function(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}};i.prototype.toString=function(){var t=[];for(var i=0,r=this.length;i<r;i++){t.push(this[i].join(","))}return t.join(" ")};i.prototype.transform=function(t){return this.clone().transformO(t)};i.prototype.transformO=function(t){if(!Matrix.isMatrixLike(t)){t=new Matrix(t)}for(var i=this.length;i--;){var r=this[i],n=r[0],e=r[1];this[i][0]=t.a*n+t.c*e+t.e;this[i][1]=t.b*n+t.d*e+t.f}return this};return i}(SVGArray);var MorphArray=PointArray;function x$2(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)}function y$2(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}function width$1(t){var i=this.bbox();return t==null?i.width:this.size(t,i.height)}function height$1(t){var i=this.bbox();return t==null?i.height:this.size(i.width,t)}var pointed={__proto__:null,MorphArray:MorphArray,height:height$1,width:width$1,x:x$2,y:y$2};var Line=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("line",i),r)||this}i.prototype.array=function(){return new PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])};i.prototype.move=function(t,i){return this.attr(this.array().move(t,i).toLine())};i.prototype.plot=function(t,i,r,n){if(t==null){return this.array()}else if(typeof i!=="undefined"){t={x1:t,y1:i,x2:r,y2:n}}else{t=new PointArray(t).toLine()}return this.attr(t)};i.prototype.size=function(t,i){var r=proportionalSize(this,t,i);return this.attr(this.array().size(r.width,r.height).toLine())};return i}(Shape);extend(Line,pointed);registerMethods({Container:{line:wrapWithAttrCheck((function(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}return Line.prototype.plot.apply(this.put(new Line),t[0]!=null?t:[0,0,0,0])}))}});register(Line,"Line");var Marker=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("marker",i),r)||this}i.prototype.height=function(t){return this.attr("markerHeight",t)};i.prototype.orient=function(t){return this.attr("orient",t)};i.prototype.ref=function(t,i){return this.attr("refX",t).attr("refY",i)};i.prototype.toString=function(){return"url(#"+this.id()+")"};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.width=function(t){return this.attr("markerWidth",t)};return i}(Container);registerMethods({Container:{marker:function(){var t;var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}return(t=this.defs()).marker.apply(t,i)}},Defs:{marker:wrapWithAttrCheck((function(t,i,r){return this.put(new Marker).size(t,i).ref(t/2,i/2).viewbox(0,0,t,i).attr("orient","auto").update(r)}))},marker:{marker:function(t,i,r,n){var e=["marker"];if(t!=="all")e.push(t);e=e.join("-");t=arguments[1]instanceof Marker?arguments[1]:this.defs().marker(i,r,n);return this.attr(e,t)}}});register(Marker,"Marker");function makeSetterGetter(t,i){return function(r){if(r==null)return this[t];this[t]=r;if(i)i.call(this);return this}}var easing={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return-Math.cos(t*Math.PI/2)+1},bezier:function(t,i,r,n){return function(e){if(e<0){if(t>0){return i/t*e}else if(r>0){return n/r*e}else{return 0}}else if(e>1){if(r<1){return(1-n)/(1-r)*e+(n-r)/(1-r)}else if(t<1){return(1-i)/(1-t)*e+(i-t)/(1-t)}else{return 1}}else{return 3*e*Math.pow(1-e,2)*i+3*Math.pow(e,2)*(1-e)*n+Math.pow(e,3)}}},steps:function(t,i){if(i===void 0){i="end"}i=i.split("-").reverse()[0];var r=t;if(i==="none"){--r}else if(i==="both"){++r}return function(n,e){if(e===void 0){e=false}var s=Math.floor(n*t);var o=n*s%1===0;if(i==="start"||i==="both"){++s}if(e&&o){--s}if(n>=0&&s<0){s=0}if(n<=1&&s>r){s=r}return s/r}}};var Stepper=function(){function t(){}t.prototype.done=function(){return false};return t}();var Ease=function(t){__extends(i,t);function i(i){if(i===void 0){i=timeline.ease}var r=t.call(this)||this;r.ease=easing[i]||i;return r}i.prototype.step=function(t,i,r){if(typeof t!=="number"){return r<1?t:i}return t+(i-t)*this.ease(r)};return i}(Stepper);var Controller=function(t){__extends(i,t);function i(i){var r=t.call(this)||this;r.stepper=i;return r}i.prototype.done=function(t){return t.done};i.prototype.step=function(t,i,r,n){return this.stepper(t,i,r,n)};return i}(Stepper);function recalculate(){var t=(this._duration||500)/1e3;var i=this._overshoot||0;var r=1e-10;var n=Math.PI;var e=Math.log(i/100+r);var s=-e/Math.sqrt(n*n+e*e);var o=3.9/(s*t);this.d=2*s*o;this.k=o*o}var Spring=function(t){__extends(i,t);function i(i,r){if(i===void 0){i=500}if(r===void 0){r=0}var n=t.call(this)||this;n.duration(i).overshoot(r);return n}i.prototype.step=function(t,i,r,n){if(typeof t==="string")return t;n.done=r===Infinity;if(r===Infinity)return i;if(r===0)return t;if(r>100)r=16;r/=1e3;var e=n.velocity||0;var s=-this.d*e-this.k*(t-i);var o=t+e*r+s*r*r/2;n.velocity=e+s*r;n.done=Math.abs(i-o)+Math.abs(e)<.002;return n.done?i:o};return i}(Controller);extend(Spring,{duration:makeSetterGetter("_duration",recalculate),overshoot:makeSetterGetter("_overshoot",recalculate)});var PID=function(t){__extends(i,t);function i(i,r,n,e){if(i===void 0){i=.1}if(r===void 0){r=.01}if(n===void 0){n=0}if(e===void 0){e=1e3}var s=t.call(this)||this;s.p(i).i(r).d(n).windup(e);return s}i.prototype.step=function(t,i,r,n){if(typeof t==="string")return t;n.done=r===Infinity;if(r===Infinity)return i;if(r===0)return t;var e=i-t;var s=(n.integral||0)+e*r;var o=(e-(n.error||0))/r;var a=this._windup;if(a!==false){s=Math.max(-a,Math.min(s,a))}n.error=e;n.integral=s;n.done=Math.abs(e)<.001;return n.done?i:t+(this.P*e+this.I*s+this.D*o)};return i}(Controller);extend(PID,{windup:makeSetterGetter("_windup"),p:makeSetterGetter("P"),i:makeSetterGetter("I"),d:makeSetterGetter("D")});var segmentParameters={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};var pathHandlers={M:function(t,i,r){i.x=r.x=t[0];i.y=r.y=t[1];return["M",i.x,i.y]},L:function(t,i){i.x=t[0];i.y=t[1];return["L",t[0],t[1]]},H:function(t,i){i.x=t[0];return["H",t[0]]},V:function(t,i){i.y=t[0];return["V",t[0]]},C:function(t,i){i.x=t[4];i.y=t[5];return["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,i){i.x=t[2];i.y=t[3];return["S",t[0],t[1],t[2],t[3]]},Q:function(t,i){i.x=t[2];i.y=t[3];return["Q",t[0],t[1],t[2],t[3]]},T:function(t,i){i.x=t[0];i.y=t[1];return["T",t[0],t[1]]},Z:function(t,i,r){i.x=r.x;i.y=r.y;return["Z"]},A:function(t,i){i.x=t[5];i.y=t[6];return["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}};var mlhvqtcsaz="mlhvqtcsaz".split("");for(var i=0,il=mlhvqtcsaz.length;i<il;++i){pathHandlers[mlhvqtcsaz[i]]=function(t){return function(i,r,n){if(t==="H")i[0]=i[0]+r.x;else if(t==="V")i[0]=i[0]+r.y;else if(t==="A"){i[5]=i[5]+r.x;i[6]=i[6]+r.y}else{for(var e=0,s=i.length;e<s;++e){i[e]=i[e]+(e%2?r.y:r.x)}}return pathHandlers[t](i,r,n)}}(mlhvqtcsaz[i].toUpperCase())}function makeAbsolut(t){var i=t.segment[0];return pathHandlers[i](t.segment.slice(1),t.p,t.p0)}function segmentComplete(t){return t.segment.length&&t.segment.length-1===segmentParameters[t.segment[0].toUpperCase()]}function startNewSegment(t,i){t.inNumber&&finalizeNumber(t,false);var r=isPathLetter.test(i);if(r){t.segment=[i]}else{var n=t.lastCommand;var e=n.toLowerCase();var s=n===e;t.segment=[e==="m"?s?"l":"L":n]}t.inSegment=true;t.lastCommand=t.segment[0];return r}function finalizeNumber(t,i){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number));t.inNumber=i;t.number="";t.pointSeen=false;t.hasExponent=false;if(segmentComplete(t)){finalizeSegment(t)}}function finalizeSegment(t){t.inSegment=false;if(t.absolute){t.segment=makeAbsolut(t)}t.segments.push(t.segment)}function isArcFlag(t){if(!t.segment.length)return false;var i=t.segment[0].toUpperCase()==="A";var r=t.segment.length;return i&&(r===4||r===5)}function isExponential(t){return t.lastToken.toUpperCase()==="E"}var pathDelimiters=new Set([" ",",","\t","\n","\r","\f"]);function pathParser(t,i){if(i===void 0){i=true}var r=0;var n="";var e={segment:[],inNumber:false,number:"",lastToken:"",inSegment:false,segments:[],pointSeen:false,hasExponent:false,absolute:i,p0:new Point,p:new Point};while(e.lastToken=n,n=t.charAt(r++)){if(!e.inSegment){if(startNewSegment(e,n)){continue}}if(n==="."){if(e.pointSeen||e.hasExponent){finalizeNumber(e,false);--r;continue}e.inNumber=true;e.pointSeen=true;e.number+=n;continue}if(!isNaN(parseInt(n))){if(e.number==="0"||isArcFlag(e)){e.inNumber=true;e.number=n;finalizeNumber(e,true);continue}e.inNumber=true;e.number+=n;continue}if(pathDelimiters.has(n)){if(e.inNumber){finalizeNumber(e,false)}continue}if(n==="-"||n==="+"){if(e.inNumber&&!isExponential(e)){finalizeNumber(e,false);--r;continue}e.number+=n;e.inNumber=true;continue}if(n.toUpperCase()==="E"){e.number+=n;e.hasExponent=true;continue}if(isPathLetter.test(n)){if(e.inNumber){finalizeNumber(e,false)}else if(!segmentComplete(e)){throw new Error("parser Error")}else{finalizeSegment(e)}--r}}if(e.inNumber){finalizeNumber(e,false)}if(e.inSegment&&segmentComplete(e)){finalizeSegment(e)}return e.segments}function arrayToString(t){var i="";for(var r=0,n=t.length;r<n;r++){i+=t[r][0];if(t[r][1]!=null){i+=t[r][1];if(t[r][2]!=null){i+=" ";i+=t[r][2];if(t[r][3]!=null){i+=" ";i+=t[r][3];i+=" ";i+=t[r][4];if(t[r][5]!=null){i+=" ";i+=t[r][5];i+=" ";i+=t[r][6];if(t[r][7]!=null){i+=" ";i+=t[r][7]}}}}}}return i+" "}var PathArray=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.bbox=function(){parser().path.setAttribute("d",this.toString());return new Box(parser.nodes.path.getBBox())};i.prototype.move=function(t,i){var r=this.bbox();t-=r.x;i-=r.y;if(!isNaN(t)&&!isNaN(i)){for(var n=void 0,e=this.length-1;e>=0;e--){n=this[e][0];if(n==="M"||n==="L"||n==="T"){this[e][1]+=t;this[e][2]+=i}else if(n==="H"){this[e][1]+=t}else if(n==="V"){this[e][1]+=i}else if(n==="C"||n==="S"||n==="Q"){this[e][1]+=t;this[e][2]+=i;this[e][3]+=t;this[e][4]+=i;if(n==="C"){this[e][5]+=t;this[e][6]+=i}}else if(n==="A"){this[e][6]+=t;this[e][7]+=i}}}return this};i.prototype.parse=function(t){if(t===void 0){t="M0 0"}if(Array.isArray(t)){t=Array.prototype.concat.apply([],t).toString()}return pathParser(t)};i.prototype.size=function(t,i){var r=this.bbox();var n,e;r.width=r.width===0?1:r.width;r.height=r.height===0?1:r.height;for(n=this.length-1;n>=0;n--){e=this[n][0];if(e==="M"||e==="L"||e==="T"){this[n][1]=(this[n][1]-r.x)*t/r.width+r.x;this[n][2]=(this[n][2]-r.y)*i/r.height+r.y}else if(e==="H"){this[n][1]=(this[n][1]-r.x)*t/r.width+r.x}else if(e==="V"){this[n][1]=(this[n][1]-r.y)*i/r.height+r.y}else if(e==="C"||e==="S"||e==="Q"){this[n][1]=(this[n][1]-r.x)*t/r.width+r.x;this[n][2]=(this[n][2]-r.y)*i/r.height+r.y;this[n][3]=(this[n][3]-r.x)*t/r.width+r.x;this[n][4]=(this[n][4]-r.y)*i/r.height+r.y;if(e==="C"){this[n][5]=(this[n][5]-r.x)*t/r.width+r.x;this[n][6]=(this[n][6]-r.y)*i/r.height+r.y}}else if(e==="A"){this[n][1]=this[n][1]*t/r.width;this[n][2]=this[n][2]*i/r.height;this[n][6]=(this[n][6]-r.x)*t/r.width+r.x;this[n][7]=(this[n][7]-r.y)*i/r.height+r.y}}return this};i.prototype.toString=function(){return arrayToString(this)};return i}(SVGArray);var getClassForType=function(t){var i=typeof t;if(i==="number"){return SVGNumber}else if(i==="string"){if(Color.isColor(t)){return Color}else if(delimiter.test(t)){return isPathLetter.test(t)?PathArray:SVGArray}else if(numberAndUnit.test(t)){return SVGNumber}else{return NonMorphable}}else if(morphableTypes.indexOf(t.constructor)>-1){return t.constructor}else if(Array.isArray(t)){return SVGArray}else if(i==="object"){return ObjectBag}else{return NonMorphable}};var Morphable=function(){function t(t){this._stepper=t||new Ease("-");this._from=null;this._to=null;this._type=null;this._context=null;this._morphObj=null}t.prototype.at=function(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)};t.prototype.done=function(){var t=this._context.map(this._stepper.done).reduce((function(t,i){return t&&i}),true);return t};t.prototype.from=function(t){if(t==null){return this._from}this._from=this._set(t);return this};t.prototype.stepper=function(t){if(t==null)return this._stepper;this._stepper=t;return this};t.prototype.to=function(t){if(t==null){return this._to}this._to=this._set(t);return this};t.prototype.type=function(t){if(t==null){return this._type}this._type=t;return this};t.prototype._set=function(t){if(!this._type){this.type(getClassForType(t))}var i=new this._type(t);if(this._type===Color){i=this._to?i[this._to[4]]():this._from?i[this._from[4]]():i}if(this._type===ObjectBag){i=this._to?i.align(this._to):this._from?i.align(this._from):i}i=i.toConsumable();this._morphObj=this._morphObj||new this._type;this._context=this._context||Array.apply(null,Array(i.length)).map(Object).map((function(t){t.done=true;return t}));return i};return t}();var NonMorphable=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.init=function(t){t=Array.isArray(t)?t[0]:t;this.value=t;return this};t.prototype.toArray=function(){return[this.value]};t.prototype.valueOf=function(){return this.value};return t}();var TransformBag=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.init=function(i){if(Array.isArray(i)){i={scaleX:i[0],scaleY:i[1],shear:i[2],rotate:i[3],translateX:i[4],translateY:i[5],originX:i[6],originY:i[7]}}Object.assign(this,t.defaults,i);return this};t.prototype.toArray=function(){var t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]};return t}();TransformBag.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};var sortByKey=function(t,i){return t[0]<i[0]?-1:t[0]>i[0]?1:0};var ObjectBag=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.align=function(t){var i;var r=this.values;for(var n=0,e=r.length;n<e;++n){if(r[n+1]===t[n+1]){if(r[n+1]===Color&&t[n+7]!==r[n+7]){var s=t[n+7];var o=new Color(this.values.splice(n+3,5))[s]().toArray();(i=this.values).splice.apply(i,__spreadArray([n+3,0],o,false))}n+=r[n+2]+2;continue}if(!t[n+1]){return this}var a=(new t[n+1]).toArray();var u=r[n+2]+3;r.splice.apply(r,__spreadArray([n,u,t[n],t[n+1],t[n+2]],a,false));n+=r[n+2]+2}return this};t.prototype.init=function(t){this.values=[];if(Array.isArray(t)){this.values=t.slice();return}t=t||{};var i=[];for(var r in t){var n=getClassForType(t[r]);var e=new n(t[r]).toArray();i.push(__spreadArray([r,n,e.length],e,true))}i.sort(sortByKey);this.values=i.reduce((function(t,i){return t.concat(i)}),[]);return this};t.prototype.toArray=function(){return this.values};t.prototype.valueOf=function(){var t={};var i=this.values;while(i.length){var r=i.shift();var n=i.shift();var e=i.shift();var s=i.splice(0,e);t[r]=new n(s)}return t};return t}();var morphableTypes=[NonMorphable,TransformBag,ObjectBag];function registerMorphableType(t){if(t===void 0){t=[]}morphableTypes.push.apply(morphableTypes,[].concat(t))}function makeMorphable(){extend(morphableTypes,{to:function(t){return(new Morphable).type(this.constructor).from(this.toArray()).to(t)},fromArray:function(t){this.init(t);return this},toConsumable:function(){return this.toArray()},morph:function(t,i,r,n,e){var s=function(t,s){return n.step(t,i[s],r,e[s],e)};return this.fromArray(t.map(s))}})}var Path=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("path",i),r)||this}i.prototype.array=function(){return this._array||(this._array=new PathArray(this.attr("d")))};i.prototype.clear=function(){delete this._array;return this};i.prototype.height=function(t){return t==null?this.bbox().height:this.size(this.bbox().width,t)};i.prototype.move=function(t,i){return this.attr("d",this.array().move(t,i))};i.prototype.plot=function(t){return t==null?this.array():this.clear().attr("d",typeof t==="string"?t:this._array=new PathArray(t))};i.prototype.size=function(t,i){var r=proportionalSize(this,t,i);return this.attr("d",this.array().size(r.width,r.height))};i.prototype.width=function(t){return t==null?this.bbox().width:this.size(t,this.bbox().height)};i.prototype.x=function(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)};i.prototype.y=function(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)};return i}(Shape);Path.prototype.MorphArray=PathArray;registerMethods({Container:{path:wrapWithAttrCheck((function(t){return this.put(new Path).plot(t||new PathArray)}))}});register(Path,"Path");function array(){return this._array||(this._array=new PointArray(this.attr("points")))}function clear(){delete this._array;return this}function move$2(t,i){return this.attr("points",this.array().move(t,i))}function plot(t){return t==null?this.array():this.clear().attr("points",typeof t==="string"?t:this._array=new PointArray(t))}function size$1(t,i){var r=proportionalSize(this,t,i);return this.attr("points",this.array().size(r.width,r.height))}var poly={__proto__:null,array:array,clear:clear,move:move$2,plot:plot,size:size$1};var Polygon=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("polygon",i),r)||this}return i}(Shape);registerMethods({Container:{polygon:wrapWithAttrCheck((function(t){return this.put(new Polygon).plot(t||new PointArray)}))}});extend(Polygon,pointed);extend(Polygon,poly);register(Polygon,"Polygon");var Polyline=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("polyline",i),r)||this}return i}(Shape);registerMethods({Container:{polyline:wrapWithAttrCheck((function(t){return this.put(new Polyline).plot(t||new PointArray)}))}});extend(Polyline,pointed);extend(Polyline,poly);register(Polyline,"Polyline");var Rect=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("rect",i),r)||this}return i}(Shape);extend(Rect,{rx:rx,ry:ry});registerMethods({Container:{rect:wrapWithAttrCheck((function(t,i){return this.put(new Rect).size(t,i)}))}});register(Rect,"Rect");var Queue=function(){function t(){this._first=null;this._last=null}t.prototype.first=function(){return this._first&&this._first.value};t.prototype.last=function(){return this._last&&this._last.value};t.prototype.push=function(t){var i=typeof t.next!=="undefined"?t:{value:t,next:null,prev:null};if(this._last){i.prev=this._last;this._last.next=i;this._last=i}else{this._last=i;this._first=i}return i};t.prototype.remove=function(t){if(t.prev)t.prev.next=t.next;if(t.next)t.next.prev=t.prev;if(t===this._last)this._last=t.prev;if(t===this._first)this._first=t.next;t.prev=null;t.next=null};t.prototype.shift=function(){var t=this._first;if(!t)return null;this._first=t.next;if(this._first)this._first.prev=null;this._last=this._first?this._last:null;return t.value};return t}();var Animator={nextDraw:null,frames:new Queue,timeouts:new Queue,immediates:new Queue,timer:function(){return globals.window.performance||globals.window.Date},transforms:[],frame:function(t){var i=Animator.frames.push({run:t});if(Animator.nextDraw===null){Animator.nextDraw=globals.window.requestAnimationFrame(Animator._draw)}return i},timeout:function(t,i){i=i||0;var r=Animator.timer().now()+i;var n=Animator.timeouts.push({run:t,time:r});if(Animator.nextDraw===null){Animator.nextDraw=globals.window.requestAnimationFrame(Animator._draw)}return n},immediate:function(t){var i=Animator.immediates.push(t);if(Animator.nextDraw===null){Animator.nextDraw=globals.window.requestAnimationFrame(Animator._draw)}return i},cancelFrame:function(t){t!=null&&Animator.frames.remove(t)},clearTimeout:function(t){t!=null&&Animator.timeouts.remove(t)},cancelImmediate:function(t){t!=null&&Animator.immediates.remove(t)},_draw:function(t){var i=null;var r=Animator.timeouts.last();while(i=Animator.timeouts.shift()){if(t>=i.time){i.run()}else{Animator.timeouts.push(i)}if(i===r)break}var n=null;var e=Animator.frames.last();while(n!==e&&(n=Animator.frames.shift())){n.run(t)}var s=null;while(s=Animator.immediates.shift()){s()}Animator.nextDraw=Animator.timeouts.first()||Animator.frames.first()?globals.window.requestAnimationFrame(Animator._draw):null}};var makeSchedule=function(t){var i=t.start;var r=t.runner.duration();var n=i+r;return{start:i,duration:r,end:n,runner:t.runner}};var defaultSource=function(){var t=globals.window;return(t.performance||t.Date).now()};var Timeline=function(t){__extends(i,t);function i(i){if(i===void 0){i=defaultSource}var r=t.call(this)||this;r._timeSource=i;r.terminate();return r}i.prototype.active=function(){return!!this._nextFrame};i.prototype.finish=function(){this.time(this.getEndTimeOfTimeline()+1);return this.pause()};i.prototype.getEndTime=function(){var t=this.getLastRunnerInfo();var i=t?t.runner.duration():0;var r=t?t.start:this._time;return r+i};i.prototype.getEndTimeOfTimeline=function(){var t=this._runners.map((function(t){return t.start+t.runner.duration()}));return Math.max.apply(Math,__spreadArray([0],t,false))};i.prototype.getLastRunnerInfo=function(){return this.getRunnerInfoById(this._lastRunnerId)};i.prototype.getRunnerInfoById=function(t){return this._runners[this._runnerIds.indexOf(t)]||null};i.prototype.pause=function(){this._paused=true;return this._continue()};i.prototype.persist=function(t){if(t==null)return this._persist;this._persist=t;return this};i.prototype.play=function(){this._paused=false;return this.updateTime()._continue()};i.prototype.reverse=function(t){var i=this.speed();if(t==null)return this.speed(-i);var r=Math.abs(i);return this.speed(t?-r:r)};i.prototype.schedule=function(t,i,r){if(t==null){return this._runners.map(makeSchedule)}var n=0;var e=this.getEndTime();i=i||0;if(r==null||r==="last"||r==="after"){n=e}else if(r==="absolute"||r==="start"){n=i;i=0}else if(r==="now"){n=this._time}else if(r==="relative"){var s=this.getRunnerInfoById(t.id);if(s){n=s.start+i;i=0}}else if(r==="with-last"){var o=this.getLastRunnerInfo();var a=o?o.start:this._time;n=a}else{throw new Error('Invalid value for the "when" parameter')}t.unschedule();t.timeline(this);var u=t.persist();var h={persist:u===null?this._persist:u,start:n+i,runner:t};this._lastRunnerId=t.id;this._runners.push(h);this._runners.sort((function(t,i){return t.start-i.start}));this._runnerIds=this._runners.map((function(t){return t.runner.id}));this.updateTime()._continue();return this};i.prototype.seek=function(t){return this.time(this._time+t)};i.prototype.source=function(t){if(t==null)return this._timeSource;this._timeSource=t;return this};i.prototype.speed=function(t){if(t==null)return this._speed;this._speed=t;return this};i.prototype.stop=function(){this.time(0);return this.pause()};i.prototype.time=function(t){if(t==null)return this._time;this._time=t;return this._continue(true)};i.prototype.unschedule=function(t){var i=this._runnerIds.indexOf(t.id);if(i<0)return this;this._runners.splice(i,1);this._runnerIds.splice(i,1);t.timeline(null);return this};i.prototype.updateTime=function(){if(!this.active()){this._lastSourceTime=this._timeSource()}return this};i.prototype._continue=function(t){if(t===void 0){t=false}Animator.cancelFrame(this._nextFrame);this._nextFrame=null;if(t)return this._stepImmediate();if(this._paused)return this;this._nextFrame=Animator.frame(this._step);return this};i.prototype._stepFn=function(t){if(t===void 0){t=false}var i=this._timeSource();var r=i-this._lastSourceTime;if(t)r=0;var n=this._speed*r+(this._time-this._lastStepTime);this._lastSourceTime=i;if(!t){this._time+=n;this._time=this._time<0?0:this._time}this._lastStepTime=this._time;this.fire("time",this._time);for(var e=this._runners.length;e--;){var s=this._runners[e];var o=s.runner;var a=this._time-s.start;if(a<=0){o.reset()}}var u=false;for(var h=0,f=this._runners.length;h<f;h++){var s=this._runners[h];var o=s.runner;var c=n;var a=this._time-s.start;if(a<=0){u=true;continue}else if(a<c){c=a}if(!o.active())continue;var l=o.step(c).done;if(!l){u=true}else if(s.persist!==true){var v=o.duration()-o.time()+this._time;if(v+s.persist<this._time){o.unschedule();--h;--f}}}if(u&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0){this._continue()}else{this.pause();this.fire("finished")}return this};i.prototype.terminate=function(){this._startTime=0;this._speed=1;this._persist=0;this._nextFrame=null;this._paused=true;this._runners=[];this._runnerIds=[];this._lastRunnerId=-1;this._time=0;this._lastSourceTime=0;this._lastStepTime=0;this._step=this._stepFn.bind(this,false);this._stepImmediate=this._stepFn.bind(this,true)};return i}(EventTarget);registerMethods({Element:{timeline:function(t){if(t==null){this._timeline=this._timeline||new Timeline;return this._timeline}else{this._timeline=t;return this}}}});var Runner=function(t){__extends(i,t);function i(r){var n=t.call(this)||this;n.id=i.id++;r=r==null?timeline.duration:r;r=typeof r==="function"?new Controller(r):r;n._element=null;n._timeline=null;n.done=false;n._queue=[];n._duration=typeof r==="number"&&r;n._isDeclarative=r instanceof Controller;n._stepper=n._isDeclarative?r:new Ease;n._history={};n.enabled=true;n._time=0;n._lastTime=0;n._reseted=true;n.transforms=new Matrix;n.transformId=1;n._haveReversed=false;n._reverse=false;n._loopsDone=0;n._swing=false;n._wait=0;n._times=1;n._frameId=null;n._persist=n._isDeclarative?true:null;return n}i.sanitise=function(t,i,r){var n,e,s,o,a;var u=1;var h=false;var f=0;t=t!==null&&t!==void 0?t:timeline.duration;i=i!==null&&i!==void 0?i:timeline.delay;r=r||"last";if(typeof t==="object"&&!(t instanceof Stepper)){i=(n=t.delay)!==null&&n!==void 0?n:i;r=(e=t.when)!==null&&e!==void 0?e:r;h=t.swing||h;u=(s=t.times)!==null&&s!==void 0?s:u;f=(o=t.wait)!==null&&o!==void 0?o:f;t=(a=t.duration)!==null&&a!==void 0?a:timeline.duration}return{duration:t,delay:i,swing:h,times:u,wait:f,when:r}};i.prototype.active=function(t){if(t==null)return this.enabled;this.enabled=t;return this};i.prototype.addTransform=function(t){this.transforms.lmultiplyO(t);return this};i.prototype.after=function(t){return this.on("finished",t)};i.prototype.animate=function(t,r,n){var e=i.sanitise(t,r,n);var s=new i(e.duration);if(this._timeline)s.timeline(this._timeline);if(this._element)s.element(this._element);return s.loop(e).schedule(e.delay,e.when)};i.prototype.clearTransform=function(){this.transforms=new Matrix;return this};i.prototype.clearTransformsFromQueue=function(){if(!this.done||!this._timeline||!this._timeline._runnerIds.includes(this.id)){this._queue=this._queue.filter((function(t){return!t.isTransform}))}};i.prototype.delay=function(t){return this.animate(0,t)};i.prototype.duration=function(){return this._times*(this._wait+this._duration)-this._wait};i.prototype.during=function(t){return this.queue(null,t)};i.prototype.ease=function(t){this._stepper=new Ease(t);return this};i.prototype.element=function(t){if(t==null)return this._element;this._element=t;t._prepareRunner();return this};i.prototype.finish=function(){return this.step(Infinity)};i.prototype.loop=function(t,i,r){if(typeof t==="object"){i=t.swing;r=t.wait;t=t.times}this._times=t||Infinity;this._swing=i||false;this._wait=r||0;if(this._times===true){this._times=Infinity}return this};i.prototype.loops=function(t){var i=this._duration+this._wait;if(t==null){var r=Math.floor(this._time/i);var n=this._time-r*i;var e=n/this._duration;return Math.min(r+e,this._times)}var s=Math.floor(t);var o=t%1;var a=i*s+this._duration*o;return this.time(a)};i.prototype.persist=function(t){if(t==null)return this._persist;this._persist=t;return this};i.prototype.position=function(t){var i=this._time;var r=this._duration;var n=this._wait;var e=this._times;var s=this._swing;var o=this._reverse;var a;if(t==null){var u=function(t){var i=s*Math.floor(t%(2*(n+r))/(n+r));var e=i&&!o||!i&&o;var a=Math.pow(-1,e)*(t%(n+r))/r+e;var u=Math.max(Math.min(a,1),0);return u};var h=e*(n+r)-n;a=i<=0?Math.round(u(1e-5)):i<h?u(i):Math.round(u(h-1e-5));return a}var f=Math.floor(this.loops());var c=s&&f%2===0;var l=c&&!o||o&&c;a=f+(l?t:1-t);return this.loops(a)};i.prototype.progress=function(t){if(t==null){return Math.min(1,this._time/this.duration())}return this.time(t*this.duration())};i.prototype.queue=function(t,i,r,n){this._queue.push({initialiser:t||noop,runner:i||noop,retarget:r,isTransform:n,initialised:false,finished:false});var e=this.timeline();e&&this.timeline()._continue();return this};i.prototype.reset=function(){if(this._reseted)return this;this.time(0);this._reseted=true;return this};i.prototype.reverse=function(t){this._reverse=t==null?!this._reverse:t;return this};i.prototype.schedule=function(t,i,r){if(!(t instanceof Timeline)){r=i;i=t;t=this.timeline()}if(!t){throw Error("Runner cannot be scheduled without timeline")}t.schedule(this,i,r);return this};i.prototype.step=function(t){if(!this.enabled)return this;t=t==null?16:t;this._time+=t;var i=this.position();var r=this._lastPosition!==i&&this._time>=0;this._lastPosition=i;var n=this.duration();var e=this._lastTime<=0&&this._time>0;var s=this._lastTime<n&&this._time>=n;this._lastTime=this._time;if(e){this.fire("start",this)}var o=this._isDeclarative;this.done=!o&&!s&&this._time>=n;this._reseted=false;var a=false;if(r||o){this._initialise(r);this.transforms=new Matrix;a=this._run(o?t:i);this.fire("step",this)}this.done=this.done||a&&o;if(s){this.fire("finished",this)}return this};i.prototype.time=function(t){if(t==null){return this._time}var i=t-this._time;this.step(i);return this};i.prototype.timeline=function(t){if(typeof t==="undefined")return this._timeline;this._timeline=t;return this};i.prototype.unschedule=function(){var t=this.timeline();t&&t.unschedule(this);return this};i.prototype._initialise=function(t){if(!t&&!this._isDeclarative)return;for(var i=0,r=this._queue.length;i<r;++i){var n=this._queue[i];var e=this._isDeclarative||!n.initialised&&t;t=!n.finished;if(e&&t){n.initialiser.call(this);n.initialised=true}}};i.prototype._rememberMorpher=function(t,i){this._history[t]={morpher:i,caller:this._queue[this._queue.length-1]};if(this._isDeclarative){var r=this.timeline();r&&r.play()}};i.prototype._run=function(t){var i=true;for(var r=0,n=this._queue.length;r<n;++r){var e=this._queue[r];var s=e.runner.call(this,t);e.finished=e.finished||s===true;i=i&&e.finished}return i};i.prototype._tryRetarget=function(t,i,r){if(this._history[t]){if(!this._history[t].caller.initialised){var n=this._queue.indexOf(this._history[t].caller);this._queue.splice(n,1);return false}if(this._history[t].caller.retarget){this._history[t].caller.retarget.call(this,i,r)}else{this._history[t].morpher.to(i)}this._history[t].caller.finished=false;var e=this.timeline();e&&e.play();return true}return false};return i}(EventTarget);Runner.id=0;var FakeRunner=function(){function t(t,i,r){if(t===void 0){t=new Matrix}if(i===void 0){i=-1}if(r===void 0){r=true}this.transforms=t;this.id=i;this.done=r}t.prototype.clearTransformsFromQueue=function(){};return t}();extend([Runner,FakeRunner],{mergeWith:function(t){return new FakeRunner(t.transforms.lmultiply(this.transforms),t.id)}});var lmultiply=function(t,i){return t.lmultiplyO(i)};var getRunnerTransform=function(t){return t.transforms};function mergeTransforms(){var t=this._transformationRunners.runners;var i=t.map(getRunnerTransform).reduce(lmultiply,new Matrix);this.transform(i);this._transformationRunners.merge();if(this._transformationRunners.length()===1){this._frameId=null}}var RunnerArray=function(){function t(){this.runners=[];this.ids=[]}t.prototype.add=function(t){if(this.runners.includes(t))return;var i=t.id+1;this.runners.push(t);this.ids.push(i);return this};t.prototype.clearBefore=function(t){var i=this.ids.indexOf(t+1)||1;this.ids.splice(0,i,0);this.runners.splice(0,i,new FakeRunner).forEach((function(t){return t.clearTransformsFromQueue()}));return this};t.prototype.edit=function(t,i){var r=this.ids.indexOf(t+1);this.ids.splice(r,1,t+1);this.runners.splice(r,1,i);return this};t.prototype.getByID=function(t){return this.runners[this.ids.indexOf(t+1)]};t.prototype.length=function(){return this.ids.length};t.prototype.merge=function(){var t=null;for(var i=0;i<this.runners.length;++i){var r=this.runners[i];var n=t&&r.done&&t.done&&(!r._timeline||!r._timeline._runnerIds.includes(r.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id));if(n){this.remove(r.id);var e=r.mergeWith(t);this.edit(t.id,e);t=e;--i}else{t=r}}return this};t.prototype.remove=function(t){var i=this.ids.indexOf(t+1);this.ids.splice(i,1);this.runners.splice(i,1);return this};return t}();registerMethods({Element:{animate:function(t,i,r){var n=Runner.sanitise(t,i,r);var e=this.timeline();return new Runner(n.duration).loop(n).element(this).timeline(e.play()).schedule(n.delay,n.when)},delay:function(t,i){return this.animate(0,t,i)},_clearTransformRunnersBefore:function(t){this._transformationRunners.clearBefore(t.id)},_currentTransform:function(t){return this._transformationRunners.runners.filter((function(i){return i.id<=t.id})).map(getRunnerTransform).reduce(lmultiply,new Matrix)},_addRunner:function(t){this._transformationRunners.add(t);Animator.cancelImmediate(this._frameId);this._frameId=Animator.immediate(mergeTransforms.bind(this))},_prepareRunner:function(){if(this._frameId==null){this._transformationRunners=(new RunnerArray).add(new FakeRunner(new Matrix(this)))}}}});var difference=function(t,i){return t.filter((function(t){return!i.includes(t)}))};extend(Runner,{attr:function(t,i){return this.styleAttr("attr",t,i)},css:function(t,i){return this.styleAttr("css",t,i)},styleAttr:function(t,i,r){var n;if(typeof i==="string"){return this.styleAttr(t,(n={},n[i]=r,n))}var e=i;if(this._tryRetarget(t,e))return this;var s=new Morphable(this._stepper).to(e);var o=Object.keys(e);this.queue((function(){s=s.from(this.element()[t](o))}),(function(i){this.element()[t](s.at(i).valueOf());return s.done()}),(function(i){var r=Object.keys(i);var n=difference(r,o);if(n.length){var a=this.element()[t](n);var u=new ObjectBag(s.from()).valueOf();Object.assign(u,a);s.from(u)}var h=new ObjectBag(s.to()).valueOf();Object.assign(h,i);s.to(h);o=r;e=i}));this._rememberMorpher(t,s);return this},zoom:function(t,i){if(this._tryRetarget("zoom",t,i))return this;var r=new Morphable(this._stepper).to(new SVGNumber(t));this.queue((function(){r=r.from(this.element().zoom())}),(function(t){this.element().zoom(r.at(t),i);return r.done()}),(function(t,n){i=n;r.to(t)}));this._rememberMorpher("zoom",r);return this},transform:function(t,i,r){i=t.relative||i;if(this._isDeclarative&&!i&&this._tryRetarget("transform",t)){return this}var n=Matrix.isMatrixLike(t);r=t.affine!=null?t.affine:r!=null?r:!n;var e=new Morphable(this._stepper).type(r?TransformBag:Matrix);var s;var o;var a;var u;var h;function f(){o=o||this.element();s=s||getOrigin(t,o);h=new Matrix(i?undefined:o);o._addRunner(this);if(!i){o._clearTransformRunnersBefore(this)}}function c(f){if(!i)this.clearTransform();var c=new Point(s).transform(o._currentTransform(this)),l=c.x,v=c.y;var d=new Matrix(__assign(__assign({},t),{origin:[l,v]}));var g=this._isDeclarative&&a?a:h;if(r){d=d.decompose(l,v);g=g.decompose(l,v);var C=d.rotate;var p=g.rotate;var m=[C-360,C,C+360];var w=m.map((function(t){return Math.abs(t-p)}));var x=Math.min.apply(Math,w);var y=w.indexOf(x);d.rotate=m[y]}if(i){if(!n){d.rotate=t.rotate||0}if(this._isDeclarative&&u){g.rotate=u}}e.from(g);e.to(d);var b=e.at(f);u=b.rotate;a=new Matrix(b);this.addTransform(a);o._addRunner(this);return e.done()}function l(i){if((i.origin||"center").toString()!==(t.origin||"center").toString()){s=getOrigin(i,o)}t=__assign(__assign({},i),{origin:s})}this.queue(f,c,l,true);this._isDeclarative&&this._rememberMorpher("transform",e);return this},x:function(t){return this._queueNumber("x",t)},y:function(t){return this._queueNumber("y",t)},ax:function(t){return this._queueNumber("ax",t)},ay:function(t){return this._queueNumber("ay",t)},dx:function(t){if(t===void 0){t=0}return this._queueNumberDelta("x",t)},dy:function(t){if(t===void 0){t=0}return this._queueNumberDelta("y",t)},dmove:function(t,i){return this.dx(t).dy(i)},_queueNumberDelta:function(t,i){i=new SVGNumber(i);if(this._tryRetarget(t,i))return this;var r=new Morphable(this._stepper).to(i);var n=null;this.queue((function(){n=this.element()[t]();r.from(n);r.to(n+i)}),(function(i){this.element()[t](r.at(i));return r.done()}),(function(t){r.to(n+new SVGNumber(t))}));this._rememberMorpher(t,r);return this},_queueObject:function(t,i){if(this._tryRetarget(t,i))return this;var r=new Morphable(this._stepper).to(i);this.queue((function(){r.from(this.element()[t]())}),(function(i){this.element()[t](r.at(i));return r.done()}));this._rememberMorpher(t,r);return this},_queueNumber:function(t,i){return this._queueObject(t,new SVGNumber(i))},cx:function(t){return this._queueNumber("cx",t)},cy:function(t){return this._queueNumber("cy",t)},move:function(t,i){return this.x(t).y(i)},amove:function(t,i){return this.ax(t).ay(i)},center:function(t,i){return this.cx(t).cy(i)},size:function(t,i){var r;if(!t||!i){r=this._element.bbox()}if(!t){t=r.width/r.height*i}if(!i){i=r.height/r.width*t}return this.width(t).height(i)},width:function(t){return this._queueNumber("width",t)},height:function(t){return this._queueNumber("height",t)},plot:function(t,i,r,n){if(arguments.length===4){return this.plot([t,i,r,n])}if(this._tryRetarget("plot",t))return this;var e=new Morphable(this._stepper).type(this._element.MorphArray).to(t);this.queue((function(){e.from(this._element.array())}),(function(t){this._element.plot(e.at(t));return e.done()}));this._rememberMorpher("plot",e);return this},leading:function(t){return this._queueNumber("leading",t)},viewbox:function(t,i,r,n){return this._queueObject("viewbox",new Box(t,i,r,n))},update:function(t){if(typeof t!=="object"){return this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]})}if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",t.offset);return this}});extend(Runner,{rx:rx,ry:ry,from:from,to:to});register(Runner,"Runner");var Svg=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}var n=t.call(this,nodeOrNew("svg",i),r)||this;n.namespace();return n}i.prototype.defs=function(){if(!this.isRoot())return this.root().defs();return adopt(this.node.querySelector("defs"))||this.put(new Defs)};i.prototype.isRoot=function(){return!this.node.parentNode||!(this.node.parentNode instanceof globals.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"};i.prototype.namespace=function(){if(!this.isRoot())return this.root().namespace();return this.attr({xmlns:svg,version:"1.1"}).attr("xmlns:xlink",xlink,xmlns)};i.prototype.removeNamespace=function(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,xmlns).attr("xmlns:svgjs",null,xmlns)};i.prototype.root=function(){if(this.isRoot())return this;return t.prototype.root.call(this)};return i}(Container);registerMethods({Container:{nested:wrapWithAttrCheck((function(){return this.put(new Svg)}))}});register(Svg,"Svg",true);var Symbol=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("symbol",i),r)||this}return i}(Container);registerMethods({Container:{symbol:wrapWithAttrCheck((function(){return this.put(new Symbol)}))}});register(Symbol,"Symbol");function plain(t){if(this._build===false){this.clear()}this.node.appendChild(globals.document.createTextNode(t));return this}function length(){return this.node.getComputedTextLength()}function x$1(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.x}return this.attr("x",this.attr("x")+t-i.x)}function y$1(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.y}return this.attr("y",this.attr("y")+t-i.y)}function move$1(t,i,r){if(r===void 0){r=this.bbox()}return this.x(t,r).y(i,r)}function cx(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.cx}return this.attr("x",this.attr("x")+t-i.cx)}function cy(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.cy}return this.attr("y",this.attr("y")+t-i.cy)}function center(t,i,r){if(r===void 0){r=this.bbox()}return this.cx(t,r).cy(i,r)}function ax(t){return this.attr("x",t)}function ay(t){return this.attr("y",t)}function amove(t,i){return this.ax(t).ay(i)}function build(t){this._build=!!t;return this}var textable={__proto__:null,amove:amove,ax:ax,ay:ay,build:build,center:center,cx:cx,cy:cy,length:length,move:move$1,plain:plain,x:x$1,y:y$1};var Text=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}var n;var e=t.call(this,nodeOrNew("text",i),r)||this;e.dom.leading=(n=e.dom.leading)!==null&&n!==void 0?n:new SVGNumber(1.3);e._rebuild=true;e._build=false;return e}i.prototype.leading=function(t){if(t==null){return this.dom.leading}this.dom.leading=new SVGNumber(t);return this.rebuild()};i.prototype.rebuild=function(t){if(typeof t==="boolean"){this._rebuild=t}if(this._rebuild){var i=this;var r=0;var n=this.dom.leading;this.each((function(t){if(isDescriptive(this.node))return;var e=globals.window.getComputedStyle(this.node).getPropertyValue("font-size");var s=n*new SVGNumber(e);if(this.dom.newLined){this.attr("x",i.attr("x"));if(this.text()==="\n"){r+=s}else{this.attr("dy",t?s+r:0);r=0}}}));this.fire("rebuild")}return this};i.prototype.setData=function(t){this.dom=t;this.dom.leading=new SVGNumber(t.leading||1.3);return this};i.prototype.writeDataToDom=function(){writeDataToDom(this,this.dom,{leading:1.3});return this};i.prototype.text=function(t){if(t===undefined){var i=this.node.childNodes;var r=0;t="";for(var n=0,e=i.length;n<e;++n){if(i[n].nodeName==="textPath"||isDescriptive(i[n])){if(n===0)r=n+1;continue}if(n!==r&&i[n].nodeType!==3&&adopt(i[n]).dom.newLined===true){t+="\n"}t+=i[n].textContent}return t}this.clear().build(true);if(typeof t==="function"){t.call(this,this)}else{t=(t+"").split("\n");for(var s=0,o=t.length;s<o;s++){this.newLine(t[s])}}return this.build(false).rebuild()};return i}(Shape);extend(Text,textable);registerMethods({Container:{text:wrapWithAttrCheck((function(t){if(t===void 0){t=""}return this.put(new Text).text(t)})),plain:wrapWithAttrCheck((function(t){if(t===void 0){t=""}return this.put(new Text).plain(t)}))}});register(Text,"Text");var Tspan=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}var n=t.call(this,nodeOrNew("tspan",i),r)||this;n._build=false;return n}i.prototype.dx=function(t){return this.attr("dx",t)};i.prototype.dy=function(t){return this.attr("dy",t)};i.prototype.newLine=function(){this.dom.newLined=true;var t=this.parent();if(!(t instanceof Text)){return this}var i=t.index(this);var r=globals.window.getComputedStyle(this.node).getPropertyValue("font-size");var n=t.dom.leading*new SVGNumber(r);return this.dy(i?n:0).attr("x",t.x())};i.prototype.text=function(t){if(t==null)return this.node.textContent+(this.dom.newLined?"\n":"");if(typeof t==="function"){this.clear().build(true);t.call(this,this);this.build(false)}else{this.plain(t)}return this};return i}(Shape);extend(Tspan,textable);registerMethods({Tspan:{tspan:wrapWithAttrCheck((function(t){if(t===void 0){t=""}var i=new Tspan;if(!this._build){this.clear()}return this.put(i).text(t)}))},Text:{newLine:function(t){if(t===void 0){t=""}return this.tspan(t).newLine()}}});register(Tspan,"Tspan");var Circle=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("circle",i),r)||this}i.prototype.radius=function(t){return this.attr("r",t)};i.prototype.rx=function(t){return this.attr("r",t)};i.prototype.ry=function(t){return this.rx(t)};i.prototype.size=function(t){return this.radius(new SVGNumber(t).divide(2))};return i}(Shape);extend(Circle,{x:x$3,y:y$3,cx:cx$1,cy:cy$1,width:width$2,height:height$2});registerMethods({Container:{circle:wrapWithAttrCheck((function(t){if(t===void 0){t=0}return this.put(new Circle).size(t).move(0,0)}))}});register(Circle,"Circle");var ClipPath=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("clipPath",i),r)||this}i.prototype.remove=function(){this.targets().forEach((function(t){t.unclip()}));return t.prototype.remove.call(this)};i.prototype.targets=function(){return baseFind("svg [clip-path*="+this.id()+"]")};return i}(Container);registerMethods({Container:{clip:wrapWithAttrCheck((function(){return this.defs().put(new ClipPath)}))},Element:{clipper:function(){return this.reference("clip-path")},clipWith:function(t){var i=t instanceof ClipPath?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+i.id()+")")},unclip:function(){return this.attr("clip-path",null)}}});register(ClipPath,"ClipPath");var ForeignObject=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("foreignObject",i),r)||this}return i}(Element);registerMethods({Container:{foreignObject:wrapWithAttrCheck((function(t,i){return this.put(new ForeignObject).size(t,i)}))}});register(ForeignObject,"ForeignObject");function dmove(t,i){this.children().forEach((function(r){var n;try{n=r.node instanceof getWindow().SVGSVGElement?new Box(r.attr(["x","y","width","height"])):r.bbox()}catch(t){return}var e=new Matrix(r);var s=e.translate(t,i).transform(e.inverse());var o=new Point(n.x,n.y).transform(s);r.move(o.x,o.y)}));return this}function dx(t){return this.dmove(t,0)}function dy(t){return this.dmove(0,t)}function height(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.height;return this.size(i.width,t,i)}function move(t,i,r){if(t===void 0){t=0}if(i===void 0){i=0}if(r===void 0){r=this.bbox()}var n=t-r.x;var e=i-r.y;return this.dmove(n,e)}function size(t,i,r){if(r===void 0){r=this.bbox()}var n=proportionalSize(this,t,i,r);var e=n.width/r.width;var s=n.height/r.height;this.children().forEach((function(t){var i=new Point(r).transform(new Matrix(t).inverse());t.scale(e,s,i.x,i.y)}));return this}function width(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.width;return this.size(t,i.height,i)}function x(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.x;return this.move(t,i.y,i)}function y(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.y;return this.move(i.x,t,i)}var containerGeometry={__proto__:null,dmove:dmove,dx:dx,dy:dy,height:height,move:move,size:size,width:width,x:x,y:y};var G=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("g",i),r)||this}return i}(Container);extend(G,containerGeometry);registerMethods({Container:{group:wrapWithAttrCheck((function(){return this.put(new G)}))}});register(G,"G");var A=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("a",i),r)||this}i.prototype.target=function(t){return this.attr("target",t)};i.prototype.to=function(t){return this.attr("href",t,xlink)};return i}(Container);extend(A,containerGeometry);registerMethods({Container:{link:wrapWithAttrCheck((function(t){return this.put(new A).to(t)}))},Element:{unlink:function(){var t=this.linker();if(!t)return this;var i=t.parent();if(!i){return this.remove()}var r=i.index(t);i.add(this,r);t.remove();return this},linkTo:function(t){var i=this.linker();if(!i){i=new A;this.wrap(i)}if(typeof t==="function"){t.call(i,i)}else{i.to(t)}return this},linker:function(){var t=this.parent();if(t&&t.node.nodeName.toLowerCase()==="a"){return t}return null}}});register(A,"A");var Mask=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("mask",i),r)||this}i.prototype.remove=function(){this.targets().forEach((function(t){t.unmask()}));return t.prototype.remove.call(this)};i.prototype.targets=function(){return baseFind("svg [mask*="+this.id()+"]")};return i}(Container);registerMethods({Container:{mask:wrapWithAttrCheck((function(){return this.defs().put(new Mask)}))},Element:{masker:function(){return this.reference("mask")},maskWith:function(t){var i=t instanceof Mask?t:this.parent().mask().add(t);return this.attr("mask","url(#"+i.id()+")")},unmask:function(){return this.attr("mask",null)}}});register(Mask,"Mask");var Stop=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("stop",i),r)||this}i.prototype.update=function(t){if(typeof t==="number"||t instanceof SVGNumber){t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}}if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",new SVGNumber(t.offset));return this};return i}(Element);registerMethods({Gradient:{stop:function(t,i,r){return this.put(new Stop).update(t,i,r)}}});register(Stop,"Stop");function cssRule(t,i){if(!t)return"";if(!i)return t;var r=t+"{";for(var n in i){r+=unCamelCase(n)+":"+i[n]+";"}r+="}";return r}var Style=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("style",i),r)||this}i.prototype.addText=function(t){if(t===void 0){t=""}this.node.textContent+=t;return this};i.prototype.font=function(t,i,r){if(r===void 0){r={}}return this.rule("@font-face",__assign({fontFamily:t,src:i},r))};i.prototype.rule=function(t,i){return this.addText(cssRule(t,i))};return i}(Element);registerMethods("Dom",{style:function(t,i){return this.put(new Style).rule(t,i)},fontface:function(t,i,r){return this.put(new Style).font(t,i,r)}});register(Style,"Style");var TextPath=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("textPath",i),r)||this}i.prototype.array=function(){var t=this.track();return t?t.array():null};i.prototype.plot=function(t){var i=this.track();var r=null;if(i){r=i.plot(t)}return t==null?r:this};i.prototype.track=function(){return this.reference("href")};return i}(Text);registerMethods({Container:{textPath:wrapWithAttrCheck((function(t,i){if(!(t instanceof Text)){t=this.text(t)}return t.path(i)}))},Text:{path:wrapWithAttrCheck((function(t,i){if(i===void 0){i=true}var r=new TextPath;if(!(t instanceof Path)){t=this.defs().path(t)}r.attr("href","#"+t,xlink);var n;if(i){while(n=this.node.firstChild){r.node.appendChild(n)}}return this.put(r)})),textPath:function(){return this.findOne("textPath")}},Path:{text:wrapWithAttrCheck((function(t){if(!(t instanceof Text)){t=(new Text).addTo(this.parent()).text(t)}return t.path(this)})),targets:function(){var t=this;return baseFind("svg textPath").filter((function(i){return(i.attr("href")||"").includes(t.id())}))}}});TextPath.prototype.MorphArray=PathArray;register(TextPath,"TextPath");var Use=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("use",i),r)||this}i.prototype.use=function(t,i){return this.attr("href",(i||"")+"#"+t,xlink)};return i}(Shape);registerMethods({Container:{use:wrapWithAttrCheck((function(t,i){return this.put(new Use).use(t,i)}))}});register(Use,"Use");var SVG=makeInstance;extend([Svg,Symbol,Image,Pattern,Marker],getMethodsFor("viewbox"));extend([Line,Polyline,Polygon,Path],getMethodsFor("marker"));extend(Text,getMethodsFor("Text"));extend(Path,getMethodsFor("Path"));extend(Defs,getMethodsFor("Defs"));extend([Text,Tspan],getMethodsFor("Tspan"));extend([Rect,Ellipse,Gradient,Runner],getMethodsFor("radius"));extend(EventTarget,getMethodsFor("EventTarget"));extend(Dom,getMethodsFor("Dom"));extend(Element,getMethodsFor("Element"));extend(Shape,getMethodsFor("Shape"));extend([Container,Fragment],getMethodsFor("Container"));extend(Gradient,getMethodsFor("Gradient"));extend(Runner,getMethodsFor("Runner"));List.extend(getMethodNames());registerMorphableType([SVGNumber,Color,Box,Matrix,SVGArray,PointArray,PathArray,Point]);makeMorphable();function RecipientFlow(){var t={entities:[]};var i;var r=[];function n(t,r,n){i=SVG().addTo(t).size(r,n);i.entities=[];i.lines=i.group();i.labels=i.group()}function e(t,i){var r;var n=t.group().attr({id:i.id});t.entities.push(n);i.background_color=i.background_color?i.background_color:"#f06";i.color=i.color?i.color:"#ffffff";i.radius=i.radius?i.radius:0;n.entity=n.rect(i.width,i.height).cx(i.width/2).cy(i.height/2).attr((r={fill:"#ffffff",stroke:i.color},r["stroke-width"]=2,r)).radius(i.radius);if(i.class){n.entity.attr("class",i.class)}n.plain(i.text).cx(14).cy(i.height/2+6).attr({fill:i.color});n.move(i.x,i.y)}function s(){if(t.labels&&t.labels.length>0){t.labels.forEach((function(t){i.labels.text(t.value).x(t.x).y(t.y)}))}}function o(t,i){i.forEach((function(i){return a(t,i)}))}function a(t,i){var r="";var n=i.color||"#4c56cb";var e=t.findOne("#"+i.from.element);var s=t.findOne("#"+i.to.element);var o=u(i,e,s);r+=f(e,i.from.point)+","+c(e,i.from.point)+" ";o.forEach((function(t){return r+=t.x+","+t.y+" "}));if(i.to.point==="top"){r+=f(s,i.to.point)+","+c(s,i.to.point)+" "}else if(i.to.point==="bottom"){r+=f(s,i.to.point)+","+c(s,i.to.point)+" "}else{r+=f(s,i.to.point)+","+c(s,i.to.point)+" "}if(!i.polyline){i.polyline=t.lines.polyline(r).fill("none").stroke({color:n,width:2,linecap:"round",linejoin:"round"}).attr("id",i.id)}else{i.polyline.plot(r)}}function u(t,i,r){var n=[];var e=c(i,t.from.point);var s=c(r,t.to.point);var o=f(i,t.from.point);var a=f(r,t.to.point);var u=h(t.from.point);var l=h(t.to.point);var v=u-l;if(v===0){if(t.from.point==="top"){if(e<=s){n.push({x:o,y:e-20});n.push({x:a,y:e-20})}else{n.push({x:o,y:s-20});n.push({x:a,y:s-20})}}else if(t.from.point==="bottom"){if(e<=s){n.push({x:o,y:s+20});n.push({x:a,y:s+20})}else{n.push({x:o,y:e+20});n.push({x:a,y:e+20})}}else{if(o<=a){n.push({x:a+20,y:e});n.push({x:a+20,y:s})}else{n.push({x:o+20,y:e});n.push({x:o+20,y:s})}}}if(v===2||v===-2){if(o!==a){n.push({x:o,y:s+(e-s)/2});n.push({x:a,y:s+(e-s)/2})}}if(v===1||v===-1||v===3||v===-3){if(t.from.point==="top"){if(e<s+20){n.push({x:o,y:e-20});n.push({x:a+20,y:e-20});n.push({x:a+20,y:s})}else{n.push({x:o,y:s})}}if(t.from.point==="bottom"){if(e>s-20){n.push({x:o,y:e+20});n.push({x:a+20,y:e+20});n.push({x:a+20,y:s})}else{n.push({x:o,y:s})}}}return n}function h(t){switch(t){case"top":return 0;case"bottom":return 2;default:return 3}}function f(t,i){var r=t.entity.attr("width");var n=t.entity.attr("x");switch(i){case"top":case"bottom":return n+r/2;default:return n-r/2}}function c(t,i){var r=t.entity.attr("height");var n=t.entity.attr("y");switch(i){case"top":return n;case"bottom":return n+r;default:return n}}function l(){i.entities.forEach((function(t){return t.remove()}));i.entities=[];r=[];if(!t.labels){t.labels=[]}t.labels=t.labels.map((function(t){return{id:t.id,value:t.value?t.value:"",x:t.x?t.x:0,y:t.y?t.y:0,color:t.color?t.color:"black"}}));t.entities.map((function(t){t.type=t.type?t.type:"entity";if(t.type==="operation"){t.height=t.width}}));s();t.entities.forEach((function(t){return e(i,t)}));r=t.lines;o(i,r)}function v(i){t=i;l()}return{initalize:n,update:v}}var verdocsStatusIndicatorCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-status-indicator{display:-ms-flexbox;display:flex;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-status-indicator.has-document:hover{cursor:pointer;background:rgba(0, 0, 0, 0.1)}verdocs-status-indicator .icon{width:25px;height:25px;margin:0 10px 0 0}verdocs-status-indicator.dark{color:#ffffff}verdocs-status-indicator.small{font-size:16px}verdocs-status-indicator.small .icon{width:20px;height:20px;margin:0 8px 0 0}verdocs-status-indicator .content{white-space:nowrap}verdocs-status-indicator .detail-panel{display:none;background:#ffffff;border:1px solid #1e2031;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;border-radius:10px;font-weight:500}verdocs-status-indicator .detail-panel h1{font-size:44px;color:#092c4c}verdocs-status-indicator .detail-panel[data-show]{display:-ms-flexbox;display:flex}';var VerdocsStatusIndicatorStyle0=verdocsStatusIndicatorCss;var AcceptedDark='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="white"/></svg>';var AcceptedLight='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="#654DCB"/></svg>';var CanceledDark='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';var CanceledLight='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';var CompletedDark='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';var CompletedLight='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>';var DeclinedDark='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#F95353"/></svg>';var DeclinedLight='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#FF0000"/></svg>';var InProgressDark='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var InProgressLight='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var OpenedDark='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="white"/></svg>';var OpenedLight='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="#654DCB"/></svg>';var PendingDark='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var PendingLight='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var SignedDark='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="white"/></svg>';var SignedLight='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="#654DCB"/></svg>';var SomeSignedDark='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#63C58E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var SomeSignedLight='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var SubmittedDark='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';var SubmittedLight='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>';var ENTRY_WIDTH=140;var ENTRY_HEIGHT=40;var ENTRY_PADDING=40;var VerdocsStatusIndicator=function(){function t(t){registerInstance(this,t);this.recipientStatusIcons=[];this.size="normal";this.theme="light";this.status=undefined;this.envelope=undefined;this.isOpen=undefined;this.containerId="verdocs-status-indicator-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){var t=this;var i;this.popper=createPopper(this.summaryComponent,this.detailPanel,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]});if((i=this.envelope)===null||i===void 0?void 0:i.recipients){var r=[];this.envelope.recipients.forEach((function(t){var i=t.sequence-1;r[i]||(r[i]=[]);var n="r-".concat(i,"-").concat(r[i].length);r[i].push(__assign(__assign({},t),{id:n}))}));var n=Object.keys(r).length;var e=n*ENTRY_HEIGHT+(n+1)*ENTRY_PADDING;var s=0;Object.values(r).forEach((function(t){var i=t.length*ENTRY_WIDTH+(t.length+1)*ENTRY_PADDING;if(i>s){s=i}}));var o=[];var a=[];var u=[];var h=ENTRY_PADDING;Object.entries(r).forEach((function(i){var n=i[0],e=i[1];var f=e.length*(ENTRY_WIDTH+ENTRY_PADDING);var c=s-f;var l=ENTRY_PADDING/2+c/2;e.forEach((function(i,e){var s;var f=formatFullName(i);var c={id:i.id,text:f,icon:t.getStatusIcon(i.status),x:e*(ENTRY_WIDTH+ENTRY_PADDING)+l,y:h,width:ENTRY_WIDTH,height:ENTRY_HEIGHT,color:t.getStatusColor(i.status),radius:8};o.push(c);u.push({icon:t.getStatusIcon(i.status),x:e*(ENTRY_WIDTH+ENTRY_PADDING)+l+(ENTRY_WIDTH-32),y:h+ENTRY_HEIGHT/2-13});(s=r[+n-1])===null||s===void 0?void 0:s.forEach((function(r){var n={id:"line-".concat(r.id,"-").concat(c.id),from:{element:r.id,point:"bottom"},to:{element:c.id,point:"top"},color:t.getStatusColor(i.status)};a.push(n)}))}));h+=ENTRY_HEIGHT+ENTRY_PADDING}));this.recipientStatusIcons=u;var f=RecipientFlow();f.initalize("#".concat(this.containerId),s,e);f.update({entities:o,lines:a})}};t.prototype.showDropdown=function(){var t,i;this.isOpen=true;this.detailPanel.setAttribute("data-show","");this.detailPanel.removeAttribute("aria-hidden");(t=this.popper)===null||t===void 0?void 0:t.setOptions((function(t){return __assign(__assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:true}],false)})}));(i=this.popper)===null||i===void 0?void 0:i.update()};t.prototype.handleHideDropdown=function(t){var i,r;if(((i=t===null||t===void 0?void 0:t.target)===null||i===void 0?void 0:i.localName)==="button"&&((r=t===null||t===void 0?void 0:t.target)===null||r===void 0?void 0:r.className)==="arrow"){return}this.hide()};t.prototype.toggleDropdown=function(){if(this.isOpen){this.hide()}else{this.showDropdown()}};t.prototype.hide=function(){var t;this.isOpen=false;this.detailPanel.removeAttribute("data-show");this.detailPanel.setAttribute("aria-hidden","true");(t=this.popper)===null||t===void 0?void 0:t.setOptions((function(t){return __assign(__assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:false}],false)})}))};t.prototype.getStatusColor=function(t){switch(t){case"invited":case"opened":case"accepted":case"signed":return"#654dcb";case"some-signed":case"submitted":case"complete":return"#55bc81";case"declined":return"#ff0000";case"canceled":case"in progress":case"pending":default:return"#999999"}};t.prototype.getStatusIcon=function(t){switch(t){case"accepted":return this.theme==="light"?AcceptedLight:AcceptedDark;case"complete":return this.theme==="light"?CompletedLight:CompletedDark;case"in progress":return this.theme==="light"?InProgressLight:InProgressDark;case"canceled":return this.theme==="light"?CanceledLight:CanceledDark;case"declined":return this.theme==="light"?DeclinedLight:DeclinedDark;case"invited":return this.theme==="light"?InProgressLight:InProgressDark;case"opened":return this.theme==="light"?OpenedLight:OpenedDark;case"signed":return this.theme==="light"?SignedLight:SignedDark;case"submitted":return this.theme==="light"?SubmittedLight:SubmittedDark;case"some-signed":return this.theme==="light"?SomeSignedLight:SomeSignedDark;default:case"pending":return this.theme==="light"?PendingLight:PendingDark}};t.prototype.getStatusMessage=function(t){switch(t){case"accepted":return"Accepted";case"complete":return"Completed";case"in progress":return"In Progress";case"canceled":return"Cancelled";case"declined":return"Declined";case"invited":return"Invited";case"opened":return"Opened";case"signed":return"Signed";case"submitted":return"Submitted";case"some-signed":return"Partly Signed";case"pending":return"Pending";default:return t}};t.prototype.render=function(){var t=this;var i,r;var n=this.status||((i=this.envelope)===null||i===void 0?void 0:i.status)||"pending"||"accepted";if(!this.status&&((r=this.envelope)===null||r===void 0?void 0:r.recipients)){var e=this.envelope.recipients.filter((function(t){return t.status==="submitted"}));if(e.length>0&&e.length!==this.envelope.recipients.length){n="some-signed"}}var s=this.getStatusIcon(n);var o=this.getStatusMessage(n);return h(Host,{key:"be375ccdc720fedd0cba1427888a7ee73ef0bbcc",ref:function(i){return t.summaryComponent=i},class:"".concat(this.theme," ").concat(this.size," ").concat(this.envelope?"has-document":""),"aria-label":"Click to View Details",onClick:function(i){i.stopPropagation();i.preventDefault();t.envelope&&t.toggleDropdown()},onBlur:function(i){return t.envelope&&t.handleHideDropdown(i)}},h("span",{key:"48857f123ba352d9e1e544ee74179bb082fa41dd",class:"icon",innerHTML:s}),h("span",{key:"c08378b893e264fa86e62fa0462180e407999a8d",class:"content"},o),h("div",{key:"648501cd3b785a4132c39a5a652955a063f7b8a0",class:"detail-panel",ref:function(i){return t.detailPanel=i}},h("div",{key:"a55f6ba2d3bd49004f00e7264f27253be8d87aaa",id:"".concat(this.containerId)}),this.recipientStatusIcons.map((function(t){return h("span",{innerHTML:t.icon,style:{position:"absolute",top:"".concat(t.y,"px"),left:"".concat(t.x,"px")}})}))))};return t}();VerdocsStatusIndicator.style=VerdocsStatusIndicatorStyle0;export{VerdocsStatusIndicator as verdocs_status_indicator};
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(i,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))t[r]=i[r]};return t(i,r)};return function(i,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(i,r);function n(){this.constructor=i}i.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,r=1,n=arguments.length;r<n;r++){i=arguments[r];for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]}return t};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(t,i,r){if(r||arguments.length===2)for(var n=0,e=i.length,s;n<e;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};import{r as registerInstance,h,H as Host}from"./index-272d51a4.js";import{formatFullName}from"@verdocs/js-sdk";import{c as createPopper}from"./popper-0fbeff6d.js";var methods$1={};var names=[];function registerMethods(t,i){if(Array.isArray(t)){for(var r=0,n=t;r<n.length;r++){var e=n[r];registerMethods(e,i)}return}if(typeof t==="object"){for(var e in t){registerMethods(e,t[e])}return}addMethodNames(Object.getOwnPropertyNames(i));methods$1[t]=Object.assign(methods$1[t]||{},i)}function getMethodsFor(t){return methods$1[t]||{}}function getMethodNames(){return __spreadArray([],new Set(names),true)}function addMethodNames(t){names.push.apply(names,t)}function map(t,i){var r;var n=t.length;var e=[];for(r=0;r<n;r++){e.push(i(t[r]))}return e}function filter(t,i){var r;var n=t.length;var e=[];for(r=0;r<n;r++){if(i(t[r])){e.push(t[r])}}return e}function radians(t){return t%360*Math.PI/180}function unCamelCase(t){return t.replace(/([A-Z])/g,(function(t,i){return"-"+i.toLowerCase()}))}function capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)}function proportionalSize(t,i,r,n){if(i==null||r==null){n=n||t.bbox();if(i==null){i=n.width/n.height*r}else if(r==null){r=n.height/n.width*i}}return{width:i,height:r}}function getOrigin(t,i){var r;var n=t.origin;var e=t.ox!=null?t.ox:t.originX!=null?t.originX:"center";var s=t.oy!=null?t.oy:t.originY!=null?t.originY:"center";if(n!=null){r=Array.isArray(n)?n:typeof n==="object"?[n.x,n.y]:[n,n],e=r[0],s=r[1]}var o=typeof e==="string";var a=typeof s==="string";if(o||a){var u=i.bbox(),h=u.height,f=u.width,c=u.x,l=u.y;if(o){e=e.includes("left")?c:e.includes("right")?c+f:c+f/2}if(a){s=s.includes("top")?l:s.includes("bottom")?l+h:l+h/2}}return[e,s]}var descriptiveElements=new Set(["desc","metadata","title"]);var isDescriptive=function(t){return descriptiveElements.has(t.nodeName)};var writeDataToDom=function(t,i,r){if(r===void 0){r={}}var n=__assign({},i);for(var e in n){if(n[e].valueOf()===r[e]){delete n[e]}}if(Object.keys(n).length){t.node.setAttribute("data-svgjs",JSON.stringify(n))}else{t.node.removeAttribute("data-svgjs");t.node.removeAttribute("svgjs:data")}};var svg="http://www.w3.org/2000/svg";var html="http://www.w3.org/1999/xhtml";var xmlns="http://www.w3.org/2000/xmlns/";var xlink="http://www.w3.org/1999/xlink";var globals={window:typeof window==="undefined"?null:window,document:typeof document==="undefined"?null:document};function getWindow(){return globals.window}var Base=function(){function t(){}return t}();var elements={};var root="___SYMBOL___ROOT___";function create(t,i){if(i===void 0){i=svg}return globals.document.createElementNS(i,t)}function makeInstance(t,i){if(i===void 0){i=false}if(t instanceof Base)return t;if(typeof t==="object"){return adopter(t)}if(t==null){return new elements[root]}if(typeof t==="string"&&t.charAt(0)!=="<"){return adopter(globals.document.querySelector(t))}var r=i?globals.document.createElement("div"):create("svg");r.innerHTML=t;t=adopter(r.firstChild);r.removeChild(r.firstChild);return t}function nodeOrNew(t,i){return i&&(i instanceof globals.window.Node||i.ownerDocument&&i instanceof i.ownerDocument.defaultView.Node)?i:create(t)}function adopt(t){if(!t)return null;if(t.instance instanceof Base)return t.instance;if(t.nodeName==="#document-fragment"){return new elements.Fragment(t)}var i=capitalize(t.nodeName||"Dom");if(i==="LinearGradient"||i==="RadialGradient"){i="Gradient"}else if(!elements[i]){i="Dom"}return new elements[i](t)}var adopter=adopt;function register(t,i,r){if(i===void 0){i=t.name}if(r===void 0){r=false}elements[i]=t;if(r)elements[root]=t;addMethodNames(Object.getOwnPropertyNames(t.prototype));return t}function getClass(t){return elements[t]}var did=1e3;function eid(t){return"Svgjs"+capitalize(t)+did++}function assignNewId(t){for(var i=t.children.length-1;i>=0;i--){assignNewId(t.children[i])}if(t.id){t.id=eid(t.nodeName);return t}return t}function extend(t,i){var r,n;t=Array.isArray(t)?t:[t];for(n=t.length-1;n>=0;n--){for(r in i){t[n].prototype[r]=i[r]}}}function wrapWithAttrCheck(t){return function(){var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}var n=i[i.length-1];if(n&&n.constructor===Object&&!(n instanceof Array)){return t.apply(this,i.slice(0,-1)).attr(n)}else{return t.apply(this,i)}}}function siblings(){return this.parent().children()}function position(){return this.parent().index(this)}function next(){return this.siblings()[this.position()+1]}function prev(){return this.siblings()[this.position()-1]}function forward(){var t=this.position();var i=this.parent();i.add(this.remove(),t+1);return this}function backward(){var t=this.position();var i=this.parent();i.add(this.remove(),t?t-1:0);return this}function front(){var t=this.parent();t.add(this.remove());return this}function back(){var t=this.parent();t.add(this.remove(),0);return this}function before(t){t=makeInstance(t);t.remove();var i=this.position();this.parent().add(t,i);return this}function after(t){t=makeInstance(t);t.remove();var i=this.position();this.parent().add(t,i+1);return this}function insertBefore(t){t=makeInstance(t);t.before(this);return this}function insertAfter(t){t=makeInstance(t);t.after(this);return this}registerMethods("Dom",{siblings:siblings,position:position,next:next,prev:prev,forward:forward,backward:backward,front:front,back:back,before:before,after:after,insertBefore:insertBefore,insertAfter:insertAfter});var numberAndUnit=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i;var hex=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;var rgb=/rgb\((\d+),(\d+),(\d+)\)/;var reference=/(#[a-z_][a-z0-9\-_]*)/i;var transforms=/\)\s*,?\s*/;var whitespace=/\s/g;var isHex=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i;var isRgb=/^rgb\(/;var isBlank=/^(\s+)?$/;var isNumber=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;var isImage=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i;var delimiter=/[\s,]+/;var isPathLetter=/[MLHVCSQTAZ]/i;function classes(){var t=this.attr("class");return t==null?[]:t.trim().split(delimiter)}function hasClass(t){return this.classes().indexOf(t)!==-1}function addClass(t){if(!this.hasClass(t)){var i=this.classes();i.push(t);this.attr("class",i.join(" "))}return this}function removeClass(t){if(this.hasClass(t)){this.attr("class",this.classes().filter((function(i){return i!==t})).join(" "))}return this}function toggleClass(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}registerMethods("Dom",{classes:classes,hasClass:hasClass,addClass:addClass,removeClass:removeClass,toggleClass:toggleClass});function css(t,i){var r={};if(arguments.length===0){this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){var i=t.split(/\s*:\s*/);r[i[0]]=i[1]}));return r}if(arguments.length<2){if(Array.isArray(t)){for(var n=0,e=t;n<e.length;n++){var s=e[n];var o=s;r[s]=this.node.style.getPropertyValue(o)}return r}if(typeof t==="string"){return this.node.style.getPropertyValue(t)}if(typeof t==="object"){for(var s in t){this.node.style.setProperty(s,t[s]==null||isBlank.test(t[s])?"":t[s])}}}if(arguments.length===2){this.node.style.setProperty(t,i==null||isBlank.test(i)?"":i)}return this}function show(){return this.css("display","")}function hide(){return this.css("display","none")}function visible(){return this.css("display")!=="none"}registerMethods("Dom",{css:css,show:show,hide:hide,visible:visible});function data(t,i,r){if(t==null){return this.data(map(filter(this.node.attributes,(function(t){return t.nodeName.indexOf("data-")===0})),(function(t){return t.nodeName.slice(5)})))}else if(t instanceof Array){var n={};for(var e=0,s=t;e<s.length;e++){var o=s[e];n[o]=this.data(o)}return n}else if(typeof t==="object"){for(i in t){this.data(i,t[i])}}else if(arguments.length<2){try{return JSON.parse(this.attr("data-"+t))}catch(i){return this.attr("data-"+t)}}else{this.attr("data-"+t,i===null?null:r===true||typeof i==="string"||typeof i==="number"?i:JSON.stringify(i))}return this}registerMethods("Dom",{data:data});function remember(t,i){if(typeof arguments[0]==="object"){for(var r in t){this.remember(r,t[r])}}else if(arguments.length===1){return this.memory()[t]}else{this.memory()[t]=i}return this}function forget(){if(arguments.length===0){this._memory={}}else{for(var t=arguments.length-1;t>=0;t--){delete this.memory()[arguments[t]]}}return this}function memory(){return this._memory=this._memory||{}}registerMethods("Dom",{remember:remember,forget:forget,memory:memory});function sixDigitHex(t){return t.length===4?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}function componentHex(t){var i=Math.round(t);var r=Math.max(0,Math.min(255,i));var n=r.toString(16);return n.length===1?"0"+n:n}function is(t,i){for(var r=i.length;r--;){if(t[i[r]]==null){return false}}return true}function getParameters(t,i){var r=is(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:is(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:is(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:is(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:is(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:is(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};r.space=i||r.space;return r}function cieSpace(t){if(t==="lab"||t==="xyz"||t==="lch"){return true}else{return false}}function hueToRgb(t,i,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return t+(i-t)*6*r;if(r<1/2)return i;if(r<2/3)return t+(i-t)*(2/3-r)*6;return t}var Color=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.isColor=function(i){return i&&(i instanceof t||this.isRgb(i)||this.test(i))};t.isRgb=function(t){return t&&typeof t.r==="number"&&typeof t.g==="number"&&typeof t.b==="number"};t.random=function(i,r){if(i===void 0){i="vibrant"}var n=Math.random,e=Math.round,s=Math.sin,o=Math.PI;if(i==="vibrant"){var a=(81-57)*n()+57;var u=(83-45)*n()+45;var h=360*n();var f=new t(a,u,h,"lch");return f}else if(i==="sine"){r=r==null?n():r;var c=e(80*s(2*o*r/.5+.01)+150);var l=e(50*s(2*o*r/.5+4.6)+200);var v=e(100*s(2*o*r/.5+2.3)+150);var f=new t(c,l,v);return f}else if(i==="pastel"){var a=(94-86)*n()+86;var u=(26-9)*n()+9;var d=360*n();var f=new t(a,u,d,"lch");return f}else if(i==="dark"){var a=10+10*n();var u=(125-75)*n()+86;var g=360*n();var f=new t(a,u,g,"lch");return f}else if(i==="rgb"){var c=255*n();var l=255*n();var v=255*n();var f=new t(c,l,v);return f}else if(i==="lab"){var a=100*n();var C=256*n()-128;var v=256*n()-128;var f=new t(a,C,v,"lab");return f}else if(i==="grey"){var p=255*n();var f=new t(p,p,p);return f}else{throw new Error("Unsupported random color mode")}};t.test=function(t){return typeof t==="string"&&(isHex.test(t)||isRgb.test(t))};t.prototype.cmyk=function(){var i=this.rgb(),r=i._a,n=i._b,e=i._c;var s=[r,n,e].map((function(t){return t/255})),o=s[0],a=s[1],u=s[2];var h=Math.min(1-o,1-a,1-u);if(h===1){return new t(0,0,0,1,"cmyk")}var f=(1-o-h)/(1-h);var c=(1-a-h)/(1-h);var l=(1-u-h)/(1-h);var v=new t(f,c,l,h,"cmyk");return v};t.prototype.hsl=function(){var i=this.rgb(),r=i._a,n=i._b,e=i._c;var s=[r,n,e].map((function(t){return t/255})),o=s[0],a=s[1],u=s[2];var h=Math.max(o,a,u);var f=Math.min(o,a,u);var c=(h+f)/2;var l=h===f;var v=h-f;var d=l?0:c>.5?v/(2-h-f):v/(h+f);var g=l?0:h===o?((a-u)/v+(a<u?6:0))/6:h===a?((u-o)/v+2)/6:h===u?((o-a)/v+4)/6:0;var C=new t(360*g,100*d,100*c,"hsl");return C};t.prototype.init=function(t,i,r,n,e){if(t===void 0){t=0}if(i===void 0){i=0}if(r===void 0){r=0}if(n===void 0){n=0}if(e===void 0){e="rgb"}t=!t?0:t;if(this.space){for(var s in this.space){delete this[this.space[s]]}}if(typeof t==="number"){e=typeof n==="string"?n:e;n=typeof n==="string"?0:n;Object.assign(this,{_a:t,_b:i,_c:r,_d:n,space:e})}else if(t instanceof Array){this.space=i||(typeof t[3]==="string"?t[3]:t[4])||"rgb";Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0})}else if(t instanceof Object){var o=getParameters(t,i);Object.assign(this,o)}else if(typeof t==="string"){if(isRgb.test(t)){var a=t.replace(whitespace,"");var u=rgb.exec(a).slice(1,4).map((function(t){return parseInt(t)})),h=u[0],f=u[1],c=u[2];Object.assign(this,{_a:h,_b:f,_c:c,_d:0,space:"rgb"})}else if(isHex.test(t)){var l=function(t){return parseInt(t,16)};var v=hex.exec(sixDigitHex(t)).map(l),d=v[1],g=v[2],C=v[3];Object.assign(this,{_a:d,_b:g,_c:C,_d:0,space:"rgb"})}else throw Error("Unsupported string format, can't construct Color")}var p=this,m=p._a,w=p._b,x=p._c,y=p._d;var b=this.space==="rgb"?{r:m,g:w,b:x}:this.space==="xyz"?{x:m,y:w,z:x}:this.space==="hsl"?{h:m,s:w,l:x}:this.space==="lab"?{l:m,a:w,b:x}:this.space==="lch"?{l:m,c:w,h:x}:this.space==="cmyk"?{c:m,m:w,y:x,k:y}:{};Object.assign(this,b)};t.prototype.lab=function(){var i=this.xyz(),r=i.x,n=i.y,e=i.z;var s=116*n-16;var o=500*(r-n);var a=200*(n-e);var u=new t(s,o,a,"lab");return u};t.prototype.lch=function(){var i=this.lab(),r=i.l,n=i.a,e=i.b;var s=Math.sqrt(Math.pow(n,2)+Math.pow(e,2));var o=180*Math.atan2(e,n)/Math.PI;if(o<0){o*=-1;o=360-o}var a=new t(r,s,o,"lch");return a};t.prototype.rgb=function(){if(this.space==="rgb"){return this}else if(cieSpace(this.space)){var i=this,r=i.x,n=i.y,e=i.z;if(this.space==="lab"||this.space==="lch"){var s=this,o=s.l,a=s.a,u=s.b;if(this.space==="lch"){var h=this,f=h.c,c=h.h;var l=Math.PI/180;a=f*Math.cos(l*c);u=f*Math.sin(l*c)}var v=(o+16)/116;var d=a/500+v;var g=v-u/200;var C=16/116;var p=.008856;var m=7.787;r=.95047*(Math.pow(d,3)>p?Math.pow(d,3):(d-C)/m);n=1*(Math.pow(v,3)>p?Math.pow(v,3):(v-C)/m);e=1.08883*(Math.pow(g,3)>p?Math.pow(g,3):(g-C)/m)}var w=r*3.2406+n*-1.5372+e*-.4986;var x=r*-.9689+n*1.8758+e*.0415;var y=r*.0557+n*-.204+e*1.057;var b=Math.pow;var M=.0031308;var _=w>M?1.055*b(w,1/2.4)-.055:12.92*w;var k=x>M?1.055*b(x,1/2.4)-.055:12.92*x;var A=y>M?1.055*b(y,1/2.4)-.055:12.92*y;var S=new t(255*_,255*k,255*A);return S}else if(this.space==="hsl"){var N=this,P=N.h,T=N.s,o=N.l;P/=360;T/=100;o/=100;if(T===0){o*=255;var E=new t(o,o,o);return E}var D=o<.5?o*(1+T):o+T-o*T;var V=2*o-D;var _=255*hueToRgb(V,D,P+1/3);var k=255*hueToRgb(V,D,P);var A=255*hueToRgb(V,D,P-1/3);var S=new t(_,k,A);return S}else if(this.space==="cmyk"){var I=this,f=I.c,L=I.m,G=I.y,O=I.k;var _=255*(1-Math.min(1,f*(1-O)+O));var k=255*(1-Math.min(1,L*(1-O)+O));var A=255*(1-Math.min(1,G*(1-O)+O));var S=new t(_,k,A);return S}else{return this}};t.prototype.toArray=function(){var t=this,i=t._a,r=t._b,n=t._c,e=t._d,s=t.space;return[i,r,n,e,s]};t.prototype.toHex=function(){var t=this._clamped().map(componentHex),i=t[0],r=t[1],n=t[2];return"#".concat(i).concat(r).concat(n)};t.prototype.toRgb=function(){var t=this._clamped(),i=t[0],r=t[1],n=t[2];var e="rgb(".concat(i,",").concat(r,",").concat(n,")");return e};t.prototype.toString=function(){return this.toHex()};t.prototype.xyz=function(){var i=this.rgb(),r=i._a,n=i._b,e=i._c;var s=[r,n,e].map((function(t){return t/255})),o=s[0],a=s[1],u=s[2];var h=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;var f=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;var c=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92;var l=(h*.4124+f*.3576+c*.1805)/.95047;var v=(h*.2126+f*.7152+c*.0722)/1;var d=(h*.0193+f*.1192+c*.9505)/1.08883;var g=l>.008856?Math.pow(l,1/3):7.787*l+16/116;var C=v>.008856?Math.pow(v,1/3):7.787*v+16/116;var p=d>.008856?Math.pow(d,1/3):7.787*d+16/116;var m=new t(g,C,p,"xyz");return m};t.prototype._clamped=function(){var t=this.rgb(),i=t._a,r=t._b,n=t._c;var e=Math.max,s=Math.min,o=Math.round;var a=function(t){return e(0,s(o(t),255))};return[i,r,n].map(a)};return t}();var Point=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.clone=function(){return new t(this)};t.prototype.init=function(t,i){var r={x:0,y:0};var n=Array.isArray(t)?{x:t[0],y:t[1]}:typeof t==="object"?{x:t.x,y:t.y}:{x:t,y:i};this.x=n.x==null?r.x:n.x;this.y=n.y==null?r.y:n.y;return this};t.prototype.toArray=function(){return[this.x,this.y]};t.prototype.transform=function(t){return this.clone().transformO(t)};t.prototype.transformO=function(t){if(!Matrix.isMatrixLike(t)){t=new Matrix(t)}var i=this,r=i.x,n=i.y;this.x=t.a*r+t.c*n+t.e;this.y=t.b*r+t.d*n+t.f;return this};return t}();function point(t,i){return new Point(t,i).transformO(this.screenCTM().inverseO())}function closeEnough(t,i,r){return Math.abs(i-t)<1e-6}var Matrix=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.formatTransforms=function(t){var i=t.flip==="both"||t.flip===true;var r=t.flip&&(i||t.flip==="x")?-1:1;var n=t.flip&&(i||t.flip==="y")?-1:1;var e=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0;var s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0;var o=t.scale&&t.scale.length?t.scale[0]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleX)?t.scaleX*r:r;var a=t.scale&&t.scale.length?t.scale[1]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleY)?t.scaleY*n:n;var u=t.shear||0;var h=t.rotate||t.theta||0;var f=new Point(t.origin||t.around||t.ox||t.originX,t.oy||t.originY);var c=f.x;var l=f.y;var v=new Point(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN);var d=v.x;var g=v.y;var C=new Point(t.translate||t.tx||t.translateX,t.ty||t.translateY);var p=C.x;var m=C.y;var w=new Point(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);var x=w.x;var y=w.y;return{scaleX:o,scaleY:a,skewX:e,skewY:s,shear:u,theta:h,rx:x,ry:y,tx:p,ty:m,ox:c,oy:l,px:d,py:g}};t.fromArray=function(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}};t.isMatrixLike=function(t){return t.a!=null||t.b!=null||t.c!=null||t.d!=null||t.e!=null||t.f!=null};t.matrixMultiply=function(t,i,r){var n=t.a*i.a+t.c*i.b;var e=t.b*i.a+t.d*i.b;var s=t.a*i.c+t.c*i.d;var o=t.b*i.c+t.d*i.d;var a=t.e+t.a*i.e+t.c*i.f;var u=t.f+t.b*i.e+t.d*i.f;r.a=n;r.b=e;r.c=s;r.d=o;r.e=a;r.f=u;return r};t.prototype.around=function(t,i,r){return this.clone().aroundO(t,i,r)};t.prototype.aroundO=function(t,i,r){var n=t||0;var e=i||0;return this.translateO(-n,-e).lmultiplyO(r).translateO(n,e)};t.prototype.clone=function(){return new t(this)};t.prototype.decompose=function(t,i){if(t===void 0){t=0}if(i===void 0){i=0}var r=this.a;var n=this.b;var e=this.c;var s=this.d;var o=this.e;var a=this.f;var u=r*s-n*e;var h=u>0?1:-1;var f=h*Math.sqrt(r*r+n*n);var c=Math.atan2(h*n,h*r);var l=180/Math.PI*c;var v=Math.cos(c);var d=Math.sin(c);var g=(r*e+n*s)/u;var C=e*f/(g*r-n)||s*f/(g*n+r);var p=o-t+t*v*f+i*(g*v*f-d*C);var m=a-i+t*d*f+i*(g*d*f+v*C);return{scaleX:f,scaleY:C,shear:g,rotate:l,translateX:p,translateY:m,originX:t,originY:i,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}};t.prototype.equals=function(i){if(i===this)return true;var r=new t(i);return closeEnough(this.a,r.a)&&closeEnough(this.b,r.b)&&closeEnough(this.c,r.c)&&closeEnough(this.d,r.d)&&closeEnough(this.e,r.e)&&closeEnough(this.f,r.f)};t.prototype.flip=function(t,i){return this.clone().flipO(t,i)};t.prototype.flipO=function(t,i){return t==="x"?this.scaleO(-1,1,i,0):t==="y"?this.scaleO(1,-1,0,i):this.scaleO(-1,-1,t,i||t)};t.prototype.init=function(i){var r=t.fromArray([1,0,0,1,0,0]);i=i instanceof Element?i.matrixify():typeof i==="string"?t.fromArray(i.split(delimiter).map(parseFloat)):Array.isArray(i)?t.fromArray(i):typeof i==="object"&&t.isMatrixLike(i)?i:typeof i==="object"?(new t).transform(i):arguments.length===6?t.fromArray([].slice.call(arguments)):r;this.a=i.a!=null?i.a:r.a;this.b=i.b!=null?i.b:r.b;this.c=i.c!=null?i.c:r.c;this.d=i.d!=null?i.d:r.d;this.e=i.e!=null?i.e:r.e;this.f=i.f!=null?i.f:r.f;return this};t.prototype.inverse=function(){return this.clone().inverseO()};t.prototype.inverseO=function(){var t=this.a;var i=this.b;var r=this.c;var n=this.d;var e=this.e;var s=this.f;var o=t*n-i*r;if(!o)throw new Error("Cannot invert "+this);var a=n/o;var u=-i/o;var h=-r/o;var f=t/o;var c=-(a*e+h*s);var l=-(u*e+f*s);this.a=a;this.b=u;this.c=h;this.d=f;this.e=c;this.f=l;return this};t.prototype.lmultiply=function(t){return this.clone().lmultiplyO(t)};t.prototype.lmultiplyO=function(i){var r=this;var n=i instanceof t?i:new t(i);return t.matrixMultiply(n,r,this)};t.prototype.multiply=function(t){return this.clone().multiplyO(t)};t.prototype.multiplyO=function(i){var r=this;var n=i instanceof t?i:new t(i);return t.matrixMultiply(r,n,this)};t.prototype.rotate=function(t,i,r){return this.clone().rotateO(t,i,r)};t.prototype.rotateO=function(t,i,r){if(i===void 0){i=0}if(r===void 0){r=0}t=radians(t);var n=Math.cos(t);var e=Math.sin(t);var s=this,o=s.a,a=s.b,u=s.c,h=s.d,f=s.e,c=s.f;this.a=o*n-a*e;this.b=a*n+o*e;this.c=u*n-h*e;this.d=h*n+u*e;this.e=f*n-c*e+r*e-i*n+i;this.f=c*n+f*e-i*e-r*n+r;return this};t.prototype.scale=function(){var t;return(t=this.clone()).scaleO.apply(t,arguments)};t.prototype.scaleO=function(t,i,r,n){if(i===void 0){i=t}if(r===void 0){r=0}if(n===void 0){n=0}if(arguments.length===3){n=r;r=i;i=t}var e=this,s=e.a,o=e.b,a=e.c,u=e.d,h=e.e,f=e.f;this.a=s*t;this.b=o*i;this.c=a*t;this.d=u*i;this.e=h*t-r*t+r;this.f=f*i-n*i+n;return this};t.prototype.shear=function(t,i,r){return this.clone().shearO(t,i,r)};t.prototype.shearO=function(t,i,r){if(i===void 0){i=0}if(r===void 0){r=0}var n=this,e=n.a,s=n.b,o=n.c,a=n.d,u=n.e,h=n.f;this.a=e+s*t;this.c=o+a*t;this.e=u+h*t-r*t;return this};t.prototype.skew=function(){var t;return(t=this.clone()).skewO.apply(t,arguments)};t.prototype.skewO=function(t,i,r,n){if(i===void 0){i=t}if(r===void 0){r=0}if(n===void 0){n=0}if(arguments.length===3){n=r;r=i;i=t}t=radians(t);i=radians(i);var e=Math.tan(t);var s=Math.tan(i);var o=this,a=o.a,u=o.b,h=o.c,f=o.d,c=o.e,l=o.f;this.a=a+u*e;this.b=u+a*s;this.c=h+f*e;this.d=f+h*s;this.e=c+l*e-n*e;this.f=l+c*s-r*s;return this};t.prototype.skewX=function(t,i,r){return this.skew(t,0,i,r)};t.prototype.skewY=function(t,i,r){return this.skew(0,t,i,r)};t.prototype.toArray=function(){return[this.a,this.b,this.c,this.d,this.e,this.f]};t.prototype.toString=function(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"};t.prototype.transform=function(i){if(t.isMatrixLike(i)){var r=new t(i);return r.multiplyO(this)}var n=t.formatTransforms(i);var e=this;var s=new Point(n.ox,n.oy).transform(e),o=s.x,a=s.y;var u=(new t).translateO(n.rx,n.ry).lmultiplyO(e).translateO(-o,-a).scaleO(n.scaleX,n.scaleY).skewO(n.skewX,n.skewY).shearO(n.shear).rotateO(n.theta).translateO(o,a);if(isFinite(n.px)||isFinite(n.py)){var h=new Point(o,a).transform(u);var f=isFinite(n.px)?n.px-h.x:0;var c=isFinite(n.py)?n.py-h.y:0;u.translateO(f,c)}u.translateO(n.tx,n.ty);return u};t.prototype.translate=function(t,i){return this.clone().translateO(t,i)};t.prototype.translateO=function(t,i){this.e+=t||0;this.f+=i||0;return this};t.prototype.valueOf=function(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}};return t}();function ctm(){return new Matrix(this.node.getCTM())}function screenCTM(){try{if(typeof this.isRoot==="function"&&!this.isRoot()){var t=this.rect(1,1);var i=t.node.getScreenCTM();t.remove();return new Matrix(i)}return new Matrix(this.node.getScreenCTM())}catch(t){console.warn("Cannot get CTM from SVG node ".concat(this.node.nodeName,". Is the element rendered?"));return new Matrix}}register(Matrix,"Matrix");function parser(){if(!parser.nodes){var t=makeInstance().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";");t.attr("focusable","false");t.attr("aria-hidden","true");var i=t.path().node;parser.nodes={svg:t,path:i}}if(!parser.nodes.svg.node.parentNode){var r=globals.document.body||globals.document.documentElement;parser.nodes.svg.addTo(r)}return parser.nodes}function isNulledBox(t){return!t.width&&!t.height&&!t.x&&!t.y}function domContains(t){return t===globals.document||(globals.document.documentElement.contains||function(t){while(t.parentNode){t=t.parentNode}return t===globals.document}).call(globals.document.documentElement,t)}var Box=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.addOffset=function(){this.x+=globals.window.pageXOffset;this.y+=globals.window.pageYOffset;return new t(this)};t.prototype.init=function(t){var i=[0,0,0,0];t=typeof t==="string"?t.split(delimiter).map(parseFloat):Array.isArray(t)?t:typeof t==="object"?[t.left!=null?t.left:t.x,t.top!=null?t.top:t.y,t.width,t.height]:arguments.length===4?[].slice.call(arguments):i;this.x=t[0]||0;this.y=t[1]||0;this.width=this.w=t[2]||0;this.height=this.h=t[3]||0;this.x2=this.x+this.w;this.y2=this.y+this.h;this.cx=this.x+this.w/2;this.cy=this.y+this.h/2;return this};t.prototype.isNulled=function(){return isNulledBox(this)};t.prototype.merge=function(i){var r=Math.min(this.x,i.x);var n=Math.min(this.y,i.y);var e=Math.max(this.x+this.width,i.x+i.width)-r;var s=Math.max(this.y+this.height,i.y+i.height)-n;return new t(r,n,e,s)};t.prototype.toArray=function(){return[this.x,this.y,this.width,this.height]};t.prototype.toString=function(){return this.x+" "+this.y+" "+this.width+" "+this.height};t.prototype.transform=function(i){if(!(i instanceof Matrix)){i=new Matrix(i)}var r=Infinity;var n=-Infinity;var e=Infinity;var s=-Infinity;var o=[new Point(this.x,this.y),new Point(this.x2,this.y),new Point(this.x,this.y2),new Point(this.x2,this.y2)];o.forEach((function(t){t=t.transform(i);r=Math.min(r,t.x);n=Math.max(n,t.x);e=Math.min(e,t.y);s=Math.max(s,t.y)}));return new t(r,e,n-r,s-e)};return t}();function getBox(t,i,r){var n;try{n=i(t.node);if(isNulledBox(n)&&!domContains(t.node)){throw new Error("Element not in the dom")}}catch(i){n=r(t)}return n}function bbox(){var t=function(t){return t.getBBox()};var i=function(t){try{var i=t.clone().addTo(parser().svg).show();var r=i.node.getBBox();i.remove();return r}catch(i){throw new Error('Getting bbox of element "'.concat(t.node.nodeName,'" is not possible: ').concat(i.toString()))}};var r=getBox(this,t,i);var n=new Box(r);return n}function rbox(t){var i=function(t){return t.getBoundingClientRect()};var r=function(t){throw new Error('Getting rbox of element "'.concat(t.node.nodeName,'" is not possible'))};var n=getBox(this,i,r);var e=new Box(n);if(t){return e.transform(t.screenCTM().inverseO())}return e.addOffset()}function inside(t,i){var r=this.bbox();return t>r.x&&i>r.y&&t<r.x+r.width&&i<r.y+r.height}registerMethods({viewbox:{viewbox:function(t,i,r,n){if(t==null)return new Box(this.attr("viewBox"));return this.attr("viewBox",new Box(t,i,r,n))},zoom:function(t,i){var r=this.attr(["width","height"]),n=r.width,e=r.height;if(!n&&!e||typeof n==="string"||typeof e==="string"){n=this.node.clientWidth;e=this.node.clientHeight}if(!n||!e){throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element")}var s=this.viewbox();var o=n/s.width;var a=e/s.height;var u=Math.min(o,a);if(t==null){return u}var h=u/t;if(h===Infinity)h=Number.MAX_SAFE_INTEGER/100;i=i||new Point(n/2/o+s.x,e/2/a+s.y);var f=new Box(s).transform(new Matrix({scale:h,origin:i}));return this.viewbox(f)}}});register(Box,"Box");var List=function(t){__extends(i,t);function i(i){if(i===void 0){i=[]}var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}var e=t.apply(this,__spreadArray([i],r,false))||this;if(typeof i==="number")return e;e.length=0;e.push.apply(e,i);return e}return i}(Array);extend([List],{each:function(t){var i=[];for(var r=1;r<arguments.length;r++){i[r-1]=arguments[r]}if(typeof t==="function"){return this.map((function(i,r,n){return t.call(i,i,r,n)}))}else{return this.map((function(r){return r[t].apply(r,i)}))}},toArray:function(){return Array.prototype.concat.apply([],this)}});var reserved=["toArray","constructor","each"];List.extend=function(t){t=t.reduce((function(t,i){if(reserved.includes(i))return t;if(i[0]==="_")return t;if(i in Array.prototype){t["$"+i]=Array.prototype[i]}t[i]=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return this.each.apply(this,__spreadArray([i],t,false))};return t}),{});extend([List],t)};function baseFind(t,i){return new List(map((i||globals.document).querySelectorAll(t),(function(t){return adopt(t)})))}function find(t){return baseFind(t,this.node)}function findOne(t){return adopt(this.node.querySelector(t))}var listenerId=0;var windowEvents={};function getEvents(t){var i=t.getEventHolder();if(i===globals.window)i=windowEvents;if(!i.events)i.events={};return i.events}function getEventTarget(t){return t.getEventTarget()}function clearEvents(t){var i=t.getEventHolder();if(i===globals.window)i=windowEvents;if(i.events)i.events={}}function on(t,i,r,n,e){var s=r.bind(n||t);var o=makeInstance(t);var a=getEvents(o);var u=getEventTarget(o);i=Array.isArray(i)?i:i.split(delimiter);if(!r._svgjsListenerId){r._svgjsListenerId=++listenerId}i.forEach((function(t){var i=t.split(".")[0];var n=t.split(".")[1]||"*";a[i]=a[i]||{};a[i][n]=a[i][n]||{};a[i][n][r._svgjsListenerId]=s;u.addEventListener(i,s,e||false)}))}function off(t,i,r,n){var e=makeInstance(t);var s=getEvents(e);var o=getEventTarget(e);if(typeof r==="function"){r=r._svgjsListenerId;if(!r)return}i=Array.isArray(i)?i:(i||"").split(delimiter);i.forEach((function(t){var i=t&&t.split(".")[0];var a=t&&t.split(".")[1];var u,h;if(r){if(s[i]&&s[i][a||"*"]){o.removeEventListener(i,s[i][a||"*"][r],n||false);delete s[i][a||"*"][r]}}else if(i&&a){if(s[i]&&s[i][a]){for(h in s[i][a]){off(o,[i,a].join("."),h)}delete s[i][a]}}else if(a){for(t in s){for(u in s[t]){if(a===u){off(o,[t,a].join("."))}}}}else if(i){if(s[i]){for(u in s[i]){off(o,[i,u].join("."))}delete s[i]}}else{for(t in s){off(o,t)}clearEvents(e)}}))}function dispatch(t,i,r,n){var e=getEventTarget(t);if(i instanceof globals.window.Event){e.dispatchEvent(i)}else{i=new globals.window.CustomEvent(i,__assign({detail:r,cancelable:true},n));e.dispatchEvent(i)}return i}var EventTarget=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.addEventListener=function(){};i.prototype.dispatch=function(t,i,r){return dispatch(this,t,i,r)};i.prototype.dispatchEvent=function(t){var i=this.getEventHolder().events;if(!i)return true;var r=i[t.type];for(var n in r){for(var e in r[n]){r[n][e](t)}}return!t.defaultPrevented};i.prototype.fire=function(t,i,r){this.dispatch(t,i,r);return this};i.prototype.getEventHolder=function(){return this};i.prototype.getEventTarget=function(){return this};i.prototype.off=function(t,i,r){off(this,t,i,r);return this};i.prototype.on=function(t,i,r,n){on(this,t,i,r,n);return this};i.prototype.removeEventListener=function(){};return i}(Base);register(EventTarget,"EventTarget");function noop(){}var timeline={duration:400,ease:">",delay:0};var attrs={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};var SVGArray=function(t){__extends(i,t);function i(){var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}var n=t.apply(this,i)||this;n.init.apply(n,i);return n}i.prototype.clone=function(){return new this.constructor(this)};i.prototype.init=function(t){if(typeof t==="number")return this;this.length=0;this.push.apply(this,this.parse(t));return this};i.prototype.parse=function(t){if(t===void 0){t=[]}if(t instanceof Array)return t;return t.trim().split(delimiter).map(parseFloat)};i.prototype.toArray=function(){return Array.prototype.concat.apply([],this)};i.prototype.toSet=function(){return new Set(this)};i.prototype.toString=function(){return this.join(" ")};i.prototype.valueOf=function(){var t=[];t.push.apply(t,this);return t};return i}(Array);var SVGNumber=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.convert=function(i){return new t(this.value,i)};t.prototype.divide=function(i){i=new t(i);return new t(this/i,this.unit||i.unit)};t.prototype.init=function(i,r){r=Array.isArray(i)?i[1]:r;i=Array.isArray(i)?i[0]:i;this.value=0;this.unit=r||"";if(typeof i==="number"){this.value=isNaN(i)?0:!isFinite(i)?i<0?-34e37:+34e37:i}else if(typeof i==="string"){r=i.match(numberAndUnit);if(r){this.value=parseFloat(r[1]);if(r[5]==="%"){this.value/=100}else if(r[5]==="s"){this.value*=1e3}this.unit=r[5]}}else{if(i instanceof t){this.value=i.valueOf();this.unit=i.unit}}return this};t.prototype.minus=function(i){i=new t(i);return new t(this-i,this.unit||i.unit)};t.prototype.plus=function(i){i=new t(i);return new t(this+i,this.unit||i.unit)};t.prototype.times=function(i){i=new t(i);return new t(this*i,this.unit||i.unit)};t.prototype.toArray=function(){return[this.value,this.unit]};t.prototype.toJSON=function(){return this.toString()};t.prototype.toString=function(){return(this.unit==="%"?~~(this.value*1e8)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit};t.prototype.valueOf=function(){return this.value};return t}();var colorAttributes=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]);var hooks=[];function registerAttrHook(t){hooks.push(t)}function attr(t,i,r){var n=this;if(t==null){t={};i=this.node.attributes;for(var e=0,s=i;e<s.length;e++){var o=s[e];t[o.nodeName]=isNumber.test(o.nodeValue)?parseFloat(o.nodeValue):o.nodeValue}return t}else if(t instanceof Array){return t.reduce((function(t,i){t[i]=n.attr(i);return t}),{})}else if(typeof t==="object"&&t.constructor===Object){for(i in t)this.attr(i,t[i])}else if(i===null){this.node.removeAttribute(t)}else if(i==null){i=this.node.getAttribute(t);return i==null?attrs[t]:isNumber.test(i)?parseFloat(i):i}else{i=hooks.reduce((function(i,r){return r(t,i,n)}),i);if(typeof i==="number"){i=new SVGNumber(i)}else if(colorAttributes.has(t)&&Color.isColor(i)){i=new Color(i)}else if(i.constructor===Array){i=new SVGArray(i)}if(t==="leading"){if(this.leading){this.leading(i)}}else{typeof r==="string"?this.node.setAttributeNS(r,t,i.toString()):this.node.setAttribute(t,i.toString())}if(this.rebuild&&(t==="font-size"||t==="x")){this.rebuild()}}return this}var Dom=function(t){__extends(i,t);function i(i,r){var n=t.call(this)||this;n.node=i;n.type=i.nodeName;if(r&&i!==r){n.attr(r)}return n}i.prototype.add=function(t,i){t=makeInstance(t);if(t.removeNamespace&&this.node instanceof globals.window.SVGElement){t.removeNamespace()}if(i==null){this.node.appendChild(t.node)}else if(t.node!==this.node.childNodes[i]){this.node.insertBefore(t.node,this.node.childNodes[i])}return this};i.prototype.addTo=function(t,i){return makeInstance(t).put(this,i)};i.prototype.children=function(){return new List(map(this.node.children,(function(t){return adopt(t)})))};i.prototype.clear=function(){while(this.node.hasChildNodes()){this.node.removeChild(this.node.lastChild)}return this};i.prototype.clone=function(t,i){if(t===void 0){t=true}if(i===void 0){i=true}this.writeDataToDom();var r=this.node.cloneNode(t);if(i){r=assignNewId(r)}return new this.constructor(r)};i.prototype.each=function(t,i){var r=this.children();var n,e;for(n=0,e=r.length;n<e;n++){t.apply(r[n],[n,r]);if(i){r[n].each(t,i)}}return this};i.prototype.element=function(t,r){return this.put(new i(create(t),r))};i.prototype.first=function(){return adopt(this.node.firstChild)};i.prototype.get=function(t){return adopt(this.node.childNodes[t])};i.prototype.getEventHolder=function(){return this.node};i.prototype.getEventTarget=function(){return this.node};i.prototype.has=function(t){return this.index(t)>=0};i.prototype.html=function(t,i){return this.xml(t,i,html)};i.prototype.id=function(t){if(typeof t==="undefined"&&!this.node.id){this.node.id=eid(this.type)}return this.attr("id",t)};i.prototype.index=function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)};i.prototype.last=function(){return adopt(this.node.lastChild)};i.prototype.matches=function(t){var i=this.node;var r=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.oMatchesSelector||null;return r&&r.call(i,t)};i.prototype.parent=function(t){var i=this;if(!i.node.parentNode)return null;i=adopt(i.node.parentNode);if(!t)return i;do{if(typeof t==="string"?i.matches(t):i instanceof t)return i}while(i=adopt(i.node.parentNode));return i};i.prototype.put=function(t,i){t=makeInstance(t);this.add(t,i);return t};i.prototype.putIn=function(t,i){return makeInstance(t).add(this,i)};i.prototype.remove=function(){if(this.parent()){this.parent().removeElement(this)}return this};i.prototype.removeElement=function(t){this.node.removeChild(t.node);return this};i.prototype.replace=function(t){t=makeInstance(t);if(this.node.parentNode){this.node.parentNode.replaceChild(t.node,this.node)}return t};i.prototype.round=function(t,i){if(t===void 0){t=2}if(i===void 0){i=null}var r=Math.pow(10,t);var n=this.attr(i);for(var e in n){if(typeof n[e]==="number"){n[e]=Math.round(n[e]*r)/r}}this.attr(n);return this};i.prototype.svg=function(t,i){return this.xml(t,i,svg)};i.prototype.toString=function(){return this.id()};i.prototype.words=function(t){this.node.textContent=t;return this};i.prototype.wrap=function(t){var i=this.parent();if(!i){return this.addTo(t)}var r=i.index(this);return i.put(t,r).put(this)};i.prototype.writeDataToDom=function(){this.each((function(){this.writeDataToDom()}));return this};i.prototype.xml=function(t,i,r){if(typeof t==="boolean"){r=i;i=t;t=null}if(t==null||typeof t==="function"){i=i==null?true:i;this.writeDataToDom();var n=this;if(t!=null){n=adopt(n.node.cloneNode(true));if(i){var e=t(n);n=e||n;if(e===false)return""}n.each((function(){var i=t(this);var r=i||this;if(i===false){this.remove()}else if(i&&this!==r){this.replace(r)}}),true)}return i?n.node.outerHTML:n.node.innerHTML}i=i==null?false:i;var s=create("wrapper",r);var o=globals.document.createDocumentFragment();s.innerHTML=t;for(var a=s.children.length;a--;){o.appendChild(s.firstElementChild)}var u=this.parent();return i?this.replace(o)&&u:this.add(o)};return i}(EventTarget);extend(Dom,{attr:attr,find:find,findOne:findOne});register(Dom,"Dom");var Element=function(t){__extends(i,t);function i(i,r){var n,e;var s=t.call(this,i,r)||this;s.dom={};s.node.instance=s;if(i.hasAttribute("data-svgjs")||i.hasAttribute("svgjs:data")){s.setData((e=(n=JSON.parse(i.getAttribute("data-svgjs")))!==null&&n!==void 0?n:JSON.parse(i.getAttribute("svgjs:data")))!==null&&e!==void 0?e:{})}return s}i.prototype.center=function(t,i){return this.cx(t).cy(i)};i.prototype.cx=function(t){return t==null?this.x()+this.width()/2:this.x(t-this.width()/2)};i.prototype.cy=function(t){return t==null?this.y()+this.height()/2:this.y(t-this.height()/2)};i.prototype.defs=function(){var t=this.root();return t&&t.defs()};i.prototype.dmove=function(t,i){return this.dx(t).dy(i)};i.prototype.dx=function(t){if(t===void 0){t=0}return this.x(new SVGNumber(t).plus(this.x()))};i.prototype.dy=function(t){if(t===void 0){t=0}return this.y(new SVGNumber(t).plus(this.y()))};i.prototype.getEventHolder=function(){return this};i.prototype.height=function(t){return this.attr("height",t)};i.prototype.move=function(t,i){return this.x(t).y(i)};i.prototype.parents=function(t){if(t===void 0){t=this.root()}var i=typeof t==="string";if(!i){t=makeInstance(t)}var r=new List;var n=this;while((n=n.parent())&&n.node!==globals.document&&n.nodeName!=="#document-fragment"){r.push(n);if(!i&&n.node===t.node){break}if(i&&n.matches(t)){break}if(n.node===this.root().node){return null}}return r};i.prototype.reference=function(t){t=this.attr(t);if(!t)return null;var i=(t+"").match(reference);return i?makeInstance(i[1]):null};i.prototype.root=function(){var t=this.parent(getClass(root));return t&&t.root()};i.prototype.setData=function(t){this.dom=t;return this};i.prototype.size=function(t,i){var r=proportionalSize(this,t,i);return this.width(new SVGNumber(r.width)).height(new SVGNumber(r.height))};i.prototype.width=function(t){return this.attr("width",t)};i.prototype.writeDataToDom=function(){writeDataToDom(this,this.dom);return t.prototype.writeDataToDom.call(this)};i.prototype.x=function(t){return this.attr("x",t)};i.prototype.y=function(t){return this.attr("y",t)};return i}(Dom);extend(Element,{bbox:bbox,rbox:rbox,inside:inside,point:point,ctm:ctm,screenCTM:screenCTM});register(Element,"Element");var sugar={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,i){return i==="color"?t:t+"-"+i}};["fill","stroke"].forEach((function(t){var i={};var r;i[t]=function(i){if(typeof i==="undefined"){return this.attr(t)}if(typeof i==="string"||i instanceof Color||Color.isRgb(i)||i instanceof Element){this.attr(t,i)}else{for(r=sugar[t].length-1;r>=0;r--){if(i[sugar[t][r]]!=null){this.attr(sugar.prefix(t,sugar[t][r]),i[sugar[t][r]])}}}return this};registerMethods(["Element","Runner"],i)}));registerMethods(["Element","Runner"],{matrix:function(t,i,r,n,e,s){if(t==null){return new Matrix(this)}return this.attr("transform",new Matrix(t,i,r,n,e,s))},rotate:function(t,i,r){return this.transform({rotate:t,ox:i,oy:r},true)},skew:function(t,i,r,n){return arguments.length===1||arguments.length===3?this.transform({skew:t,ox:i,oy:r},true):this.transform({skew:[t,i],ox:r,oy:n},true)},shear:function(t,i,r){return this.transform({shear:t,ox:i,oy:r},true)},scale:function(t,i,r,n){return arguments.length===1||arguments.length===3?this.transform({scale:t,ox:i,oy:r},true):this.transform({scale:[t,i],ox:r,oy:n},true)},translate:function(t,i){return this.transform({translate:[t,i]},true)},relative:function(t,i){return this.transform({relative:[t,i]},true)},flip:function(t,i){if(t===void 0){t="both"}if(i===void 0){i="center"}if("xybothtrue".indexOf(t)===-1){i=t;t="both"}return this.transform({flip:t,origin:i},true)},opacity:function(t){return this.attr("opacity",t)}});registerMethods("radius",{radius:function(t,i){if(i===void 0){i=t}var r=(this._element||this).type;return r==="radialGradient"?this.attr("r",new SVGNumber(t)):this.rx(t).ry(i)}});registerMethods("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Point(this.node.getPointAtLength(t))}});registerMethods(["Element","Runner"],{font:function(t,i){if(typeof t==="object"){for(i in t)this.font(i,t[i]);return this}return t==="leading"?this.leading(i):t==="anchor"?this.attr("text-anchor",i):t==="size"||t==="family"||t==="weight"||t==="stretch"||t==="variant"||t==="style"?this.attr("font-"+t,i):this.attr(t,i)}});var methods=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,i){var r=function(t){if(t===null){this.off(i)}else{this.on(i,t)}return this};t[i]=r;return t}),{});registerMethods("Element",methods);function untransform(){return this.attr("transform",null)}function matrixify(){var t=(this.attr("transform")||"").split(transforms).slice(0,-1).map((function(t){var i=t.trim().split("(");return[i[0],i[1].split(delimiter).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,i){if(i[0]==="matrix"){return t.lmultiply(Matrix.fromArray(i[1]))}return t[i[0]].apply(t,i[1])}),new Matrix);return t}function toParent(t,i){if(this===t)return this;if(isDescriptive(this.node))return this.addTo(t,i);var r=this.screenCTM();var n=t.screenCTM().inverse();this.addTo(t,i).untransform().transform(n.multiply(r));return this}function toRoot(t){return this.toParent(this.root(),t)}function transform(t,i){if(t==null||typeof t==="string"){var r=new Matrix(this).decompose();return t==null?r:r[t]}if(!Matrix.isMatrixLike(t)){t=__assign(__assign({},t),{origin:getOrigin(t,this)})}var n=i===true?this:i||false;var e=new Matrix(n).transform(t);return this.attr("transform",e)}registerMethods("Element",{untransform:untransform,matrixify:matrixify,toParent:toParent,toRoot:toRoot,transform:transform});var Container=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.flatten=function(){this.each((function(){if(this instanceof i){return this.flatten().ungroup()}}));return this};i.prototype.ungroup=function(t,i){if(t===void 0){t=this.parent()}if(i===void 0){i=t.index(this)}i=i===-1?t.children().length:i;this.each((function(r,n){return n[n.length-r-1].toParent(t,i)}));return this.remove()};return i}(Element);register(Container,"Container");var Defs=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("defs",i),r)||this}i.prototype.flatten=function(){return this};i.prototype.ungroup=function(){return this};return i}(Container);register(Defs,"Defs");var Shape=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}return i}(Element);register(Shape,"Shape");function rx(t){return this.attr("rx",t)}function ry(t){return this.attr("ry",t)}function x$3(t){return t==null?this.cx()-this.rx():this.cx(t+this.rx())}function y$3(t){return t==null?this.cy()-this.ry():this.cy(t+this.ry())}function cx$1(t){return this.attr("cx",t)}function cy$1(t){return this.attr("cy",t)}function width$2(t){return t==null?this.rx()*2:this.rx(new SVGNumber(t).divide(2))}function height$2(t){return t==null?this.ry()*2:this.ry(new SVGNumber(t).divide(2))}var circled={__proto__:null,cx:cx$1,cy:cy$1,height:height$2,rx:rx,ry:ry,width:width$2,x:x$3,y:y$3};var Ellipse=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("ellipse",i),r)||this}i.prototype.size=function(t,i){var r=proportionalSize(this,t,i);return this.rx(new SVGNumber(r.width).divide(2)).ry(new SVGNumber(r.height).divide(2))};return i}(Shape);extend(Ellipse,circled);registerMethods("Container",{ellipse:wrapWithAttrCheck((function(t,i){if(t===void 0){t=0}if(i===void 0){i=t}return this.put(new Ellipse).size(t,i).move(0,0)}))});register(Ellipse,"Ellipse");var Fragment=function(t){__extends(i,t);function i(i){if(i===void 0){i=globals.document.createDocumentFragment()}return t.call(this,i)||this}i.prototype.xml=function(i,r,n){if(typeof i==="boolean"){n=r;r=i;i=null}if(i==null||typeof i==="function"){var e=new Dom(create("wrapper",n));e.add(this.node.cloneNode(true));return e.xml(false,n)}return t.prototype.xml.call(this,i,false,n)};return i}(Dom);register(Fragment,"Fragment");function from(t,i){return(this._element||this).type==="radialGradient"?this.attr({fx:new SVGNumber(t),fy:new SVGNumber(i)}):this.attr({x1:new SVGNumber(t),y1:new SVGNumber(i)})}function to(t,i){return(this._element||this).type==="radialGradient"?this.attr({cx:new SVGNumber(t),cy:new SVGNumber(i)}):this.attr({x2:new SVGNumber(t),y2:new SVGNumber(i)})}var gradiented={__proto__:null,from:from,to:to};var Gradient=function(t){__extends(i,t);function i(i,r){return t.call(this,nodeOrNew(i+"Gradient",typeof i==="string"?null:i),r)||this}i.prototype.attr=function(i,r,n){if(i==="transform")i="gradientTransform";return t.prototype.attr.call(this,i,r,n)};i.prototype.bbox=function(){return new Box};i.prototype.targets=function(){return baseFind("svg [fill*="+this.id()+"]")};i.prototype.toString=function(){return this.url()};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.url=function(){return"url(#"+this.id()+")"};return i}(Container);extend(Gradient,gradiented);registerMethods({Container:{gradient:function(){var t;var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}return(t=this.defs()).gradient.apply(t,i)}},Defs:{gradient:wrapWithAttrCheck((function(t,i){return this.put(new Gradient(t)).update(i)}))}});register(Gradient,"Gradient");var Pattern=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("pattern",i),r)||this}i.prototype.attr=function(i,r,n){if(i==="transform")i="patternTransform";return t.prototype.attr.call(this,i,r,n)};i.prototype.bbox=function(){return new Box};i.prototype.targets=function(){return baseFind("svg [fill*="+this.id()+"]")};i.prototype.toString=function(){return this.url()};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.url=function(){return"url(#"+this.id()+")"};return i}(Container);registerMethods({Container:{pattern:function(){var t;var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}return(t=this.defs()).pattern.apply(t,i)}},Defs:{pattern:wrapWithAttrCheck((function(t,i,r){return this.put(new Pattern).update(r).attr({x:0,y:0,width:t,height:i,patternUnits:"userSpaceOnUse"})}))}});register(Pattern,"Pattern");var Image=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("image",i),r)||this}i.prototype.load=function(t,i){if(!t)return this;var r=new globals.window.Image;on(r,"load",(function(t){var n=this.parent(Pattern);if(this.width()===0&&this.height()===0){this.size(r.width,r.height)}if(n instanceof Pattern){if(n.width()===0&&n.height()===0){n.size(this.width(),this.height())}}if(typeof i==="function"){i.call(this,t)}}),this);on(r,"load error",(function(){off(r)}));return this.attr("href",r.src=t,xlink)};return i}(Shape);registerAttrHook((function(t,i,r){if(t==="fill"||t==="stroke"){if(isImage.test(i)){i=r.root().defs().image(i)}}if(i instanceof Image){i=r.root().defs().pattern(0,0,(function(t){t.add(i)}))}return i}));registerMethods({Container:{image:wrapWithAttrCheck((function(t,i){return this.put(new Image).size(0,0).load(t,i)}))}});register(Image,"Image");var PointArray=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.bbox=function(){var t=-Infinity;var i=-Infinity;var r=Infinity;var n=Infinity;this.forEach((function(e){t=Math.max(e[0],t);i=Math.max(e[1],i);r=Math.min(e[0],r);n=Math.min(e[1],n)}));return new Box(r,n,t-r,i-n)};i.prototype.move=function(t,i){var r=this.bbox();t-=r.x;i-=r.y;if(!isNaN(t)&&!isNaN(i)){for(var n=this.length-1;n>=0;n--){this[n]=[this[n][0]+t,this[n][1]+i]}}return this};i.prototype.parse=function(t){if(t===void 0){t=[0,0]}var i=[];if(t instanceof Array){t=Array.prototype.concat.apply([],t)}else{t=t.trim().split(delimiter).map(parseFloat)}if(t.length%2!==0)t.pop();for(var r=0,n=t.length;r<n;r=r+2){i.push([t[r],t[r+1]])}return i};i.prototype.size=function(t,i){var r;var n=this.bbox();for(r=this.length-1;r>=0;r--){if(n.width)this[r][0]=(this[r][0]-n.x)*t/n.width+n.x;if(n.height)this[r][1]=(this[r][1]-n.y)*i/n.height+n.y}return this};i.prototype.toLine=function(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}};i.prototype.toString=function(){var t=[];for(var i=0,r=this.length;i<r;i++){t.push(this[i].join(","))}return t.join(" ")};i.prototype.transform=function(t){return this.clone().transformO(t)};i.prototype.transformO=function(t){if(!Matrix.isMatrixLike(t)){t=new Matrix(t)}for(var i=this.length;i--;){var r=this[i],n=r[0],e=r[1];this[i][0]=t.a*n+t.c*e+t.e;this[i][1]=t.b*n+t.d*e+t.f}return this};return i}(SVGArray);var MorphArray=PointArray;function x$2(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)}function y$2(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)}function width$1(t){var i=this.bbox();return t==null?i.width:this.size(t,i.height)}function height$1(t){var i=this.bbox();return t==null?i.height:this.size(i.width,t)}var pointed={__proto__:null,MorphArray:MorphArray,height:height$1,width:width$1,x:x$2,y:y$2};var Line=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("line",i),r)||this}i.prototype.array=function(){return new PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])};i.prototype.move=function(t,i){return this.attr(this.array().move(t,i).toLine())};i.prototype.plot=function(t,i,r,n){if(t==null){return this.array()}else if(typeof i!=="undefined"){t={x1:t,y1:i,x2:r,y2:n}}else{t=new PointArray(t).toLine()}return this.attr(t)};i.prototype.size=function(t,i){var r=proportionalSize(this,t,i);return this.attr(this.array().size(r.width,r.height).toLine())};return i}(Shape);extend(Line,pointed);registerMethods({Container:{line:wrapWithAttrCheck((function(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}return Line.prototype.plot.apply(this.put(new Line),t[0]!=null?t:[0,0,0,0])}))}});register(Line,"Line");var Marker=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("marker",i),r)||this}i.prototype.height=function(t){return this.attr("markerHeight",t)};i.prototype.orient=function(t){return this.attr("orient",t)};i.prototype.ref=function(t,i){return this.attr("refX",t).attr("refY",i)};i.prototype.toString=function(){return"url(#"+this.id()+")"};i.prototype.update=function(t){this.clear();if(typeof t==="function"){t.call(this,this)}return this};i.prototype.width=function(t){return this.attr("markerWidth",t)};return i}(Container);registerMethods({Container:{marker:function(){var t;var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}return(t=this.defs()).marker.apply(t,i)}},Defs:{marker:wrapWithAttrCheck((function(t,i,r){return this.put(new Marker).size(t,i).ref(t/2,i/2).viewbox(0,0,t,i).attr("orient","auto").update(r)}))},marker:{marker:function(t,i,r,n){var e=["marker"];if(t!=="all")e.push(t);e=e.join("-");t=arguments[1]instanceof Marker?arguments[1]:this.defs().marker(i,r,n);return this.attr(e,t)}}});register(Marker,"Marker");function makeSetterGetter(t,i){return function(r){if(r==null)return this[t];this[t]=r;if(i)i.call(this);return this}}var easing={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return-Math.cos(t*Math.PI/2)+1},bezier:function(t,i,r,n){return function(e){if(e<0){if(t>0){return i/t*e}else if(r>0){return n/r*e}else{return 0}}else if(e>1){if(r<1){return(1-n)/(1-r)*e+(n-r)/(1-r)}else if(t<1){return(1-i)/(1-t)*e+(i-t)/(1-t)}else{return 1}}else{return 3*e*Math.pow(1-e,2)*i+3*Math.pow(e,2)*(1-e)*n+Math.pow(e,3)}}},steps:function(t,i){if(i===void 0){i="end"}i=i.split("-").reverse()[0];var r=t;if(i==="none"){--r}else if(i==="both"){++r}return function(n,e){if(e===void 0){e=false}var s=Math.floor(n*t);var o=n*s%1===0;if(i==="start"||i==="both"){++s}if(e&&o){--s}if(n>=0&&s<0){s=0}if(n<=1&&s>r){s=r}return s/r}}};var Stepper=function(){function t(){}t.prototype.done=function(){return false};return t}();var Ease=function(t){__extends(i,t);function i(i){if(i===void 0){i=timeline.ease}var r=t.call(this)||this;r.ease=easing[i]||i;return r}i.prototype.step=function(t,i,r){if(typeof t!=="number"){return r<1?t:i}return t+(i-t)*this.ease(r)};return i}(Stepper);var Controller=function(t){__extends(i,t);function i(i){var r=t.call(this)||this;r.stepper=i;return r}i.prototype.done=function(t){return t.done};i.prototype.step=function(t,i,r,n){return this.stepper(t,i,r,n)};return i}(Stepper);function recalculate(){var t=(this._duration||500)/1e3;var i=this._overshoot||0;var r=1e-10;var n=Math.PI;var e=Math.log(i/100+r);var s=-e/Math.sqrt(n*n+e*e);var o=3.9/(s*t);this.d=2*s*o;this.k=o*o}var Spring=function(t){__extends(i,t);function i(i,r){if(i===void 0){i=500}if(r===void 0){r=0}var n=t.call(this)||this;n.duration(i).overshoot(r);return n}i.prototype.step=function(t,i,r,n){if(typeof t==="string")return t;n.done=r===Infinity;if(r===Infinity)return i;if(r===0)return t;if(r>100)r=16;r/=1e3;var e=n.velocity||0;var s=-this.d*e-this.k*(t-i);var o=t+e*r+s*r*r/2;n.velocity=e+s*r;n.done=Math.abs(i-o)+Math.abs(e)<.002;return n.done?i:o};return i}(Controller);extend(Spring,{duration:makeSetterGetter("_duration",recalculate),overshoot:makeSetterGetter("_overshoot",recalculate)});var PID=function(t){__extends(i,t);function i(i,r,n,e){if(i===void 0){i=.1}if(r===void 0){r=.01}if(n===void 0){n=0}if(e===void 0){e=1e3}var s=t.call(this)||this;s.p(i).i(r).d(n).windup(e);return s}i.prototype.step=function(t,i,r,n){if(typeof t==="string")return t;n.done=r===Infinity;if(r===Infinity)return i;if(r===0)return t;var e=i-t;var s=(n.integral||0)+e*r;var o=(e-(n.error||0))/r;var a=this._windup;if(a!==false){s=Math.max(-a,Math.min(s,a))}n.error=e;n.integral=s;n.done=Math.abs(e)<.001;return n.done?i:t+(this.P*e+this.I*s+this.D*o)};return i}(Controller);extend(PID,{windup:makeSetterGetter("_windup"),p:makeSetterGetter("P"),i:makeSetterGetter("I"),d:makeSetterGetter("D")});var segmentParameters={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};var pathHandlers={M:function(t,i,r){i.x=r.x=t[0];i.y=r.y=t[1];return["M",i.x,i.y]},L:function(t,i){i.x=t[0];i.y=t[1];return["L",t[0],t[1]]},H:function(t,i){i.x=t[0];return["H",t[0]]},V:function(t,i){i.y=t[0];return["V",t[0]]},C:function(t,i){i.x=t[4];i.y=t[5];return["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,i){i.x=t[2];i.y=t[3];return["S",t[0],t[1],t[2],t[3]]},Q:function(t,i){i.x=t[2];i.y=t[3];return["Q",t[0],t[1],t[2],t[3]]},T:function(t,i){i.x=t[0];i.y=t[1];return["T",t[0],t[1]]},Z:function(t,i,r){i.x=r.x;i.y=r.y;return["Z"]},A:function(t,i){i.x=t[5];i.y=t[6];return["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}};var mlhvqtcsaz="mlhvqtcsaz".split("");for(var i=0,il=mlhvqtcsaz.length;i<il;++i){pathHandlers[mlhvqtcsaz[i]]=function(t){return function(i,r,n){if(t==="H")i[0]=i[0]+r.x;else if(t==="V")i[0]=i[0]+r.y;else if(t==="A"){i[5]=i[5]+r.x;i[6]=i[6]+r.y}else{for(var e=0,s=i.length;e<s;++e){i[e]=i[e]+(e%2?r.y:r.x)}}return pathHandlers[t](i,r,n)}}(mlhvqtcsaz[i].toUpperCase())}function makeAbsolut(t){var i=t.segment[0];return pathHandlers[i](t.segment.slice(1),t.p,t.p0)}function segmentComplete(t){return t.segment.length&&t.segment.length-1===segmentParameters[t.segment[0].toUpperCase()]}function startNewSegment(t,i){t.inNumber&&finalizeNumber(t,false);var r=isPathLetter.test(i);if(r){t.segment=[i]}else{var n=t.lastCommand;var e=n.toLowerCase();var s=n===e;t.segment=[e==="m"?s?"l":"L":n]}t.inSegment=true;t.lastCommand=t.segment[0];return r}function finalizeNumber(t,i){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number));t.inNumber=i;t.number="";t.pointSeen=false;t.hasExponent=false;if(segmentComplete(t)){finalizeSegment(t)}}function finalizeSegment(t){t.inSegment=false;if(t.absolute){t.segment=makeAbsolut(t)}t.segments.push(t.segment)}function isArcFlag(t){if(!t.segment.length)return false;var i=t.segment[0].toUpperCase()==="A";var r=t.segment.length;return i&&(r===4||r===5)}function isExponential(t){return t.lastToken.toUpperCase()==="E"}var pathDelimiters=new Set([" ",",","\t","\n","\r","\f"]);function pathParser(t,i){if(i===void 0){i=true}var r=0;var n="";var e={segment:[],inNumber:false,number:"",lastToken:"",inSegment:false,segments:[],pointSeen:false,hasExponent:false,absolute:i,p0:new Point,p:new Point};while(e.lastToken=n,n=t.charAt(r++)){if(!e.inSegment){if(startNewSegment(e,n)){continue}}if(n==="."){if(e.pointSeen||e.hasExponent){finalizeNumber(e,false);--r;continue}e.inNumber=true;e.pointSeen=true;e.number+=n;continue}if(!isNaN(parseInt(n))){if(e.number==="0"||isArcFlag(e)){e.inNumber=true;e.number=n;finalizeNumber(e,true);continue}e.inNumber=true;e.number+=n;continue}if(pathDelimiters.has(n)){if(e.inNumber){finalizeNumber(e,false)}continue}if(n==="-"||n==="+"){if(e.inNumber&&!isExponential(e)){finalizeNumber(e,false);--r;continue}e.number+=n;e.inNumber=true;continue}if(n.toUpperCase()==="E"){e.number+=n;e.hasExponent=true;continue}if(isPathLetter.test(n)){if(e.inNumber){finalizeNumber(e,false)}else if(!segmentComplete(e)){throw new Error("parser Error")}else{finalizeSegment(e)}--r}}if(e.inNumber){finalizeNumber(e,false)}if(e.inSegment&&segmentComplete(e)){finalizeSegment(e)}return e.segments}function arrayToString(t){var i="";for(var r=0,n=t.length;r<n;r++){i+=t[r][0];if(t[r][1]!=null){i+=t[r][1];if(t[r][2]!=null){i+=" ";i+=t[r][2];if(t[r][3]!=null){i+=" ";i+=t[r][3];i+=" ";i+=t[r][4];if(t[r][5]!=null){i+=" ";i+=t[r][5];i+=" ";i+=t[r][6];if(t[r][7]!=null){i+=" ";i+=t[r][7]}}}}}}return i+" "}var PathArray=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.bbox=function(){parser().path.setAttribute("d",this.toString());return new Box(parser.nodes.path.getBBox())};i.prototype.move=function(t,i){var r=this.bbox();t-=r.x;i-=r.y;if(!isNaN(t)&&!isNaN(i)){for(var n=void 0,e=this.length-1;e>=0;e--){n=this[e][0];if(n==="M"||n==="L"||n==="T"){this[e][1]+=t;this[e][2]+=i}else if(n==="H"){this[e][1]+=t}else if(n==="V"){this[e][1]+=i}else if(n==="C"||n==="S"||n==="Q"){this[e][1]+=t;this[e][2]+=i;this[e][3]+=t;this[e][4]+=i;if(n==="C"){this[e][5]+=t;this[e][6]+=i}}else if(n==="A"){this[e][6]+=t;this[e][7]+=i}}}return this};i.prototype.parse=function(t){if(t===void 0){t="M0 0"}if(Array.isArray(t)){t=Array.prototype.concat.apply([],t).toString()}return pathParser(t)};i.prototype.size=function(t,i){var r=this.bbox();var n,e;r.width=r.width===0?1:r.width;r.height=r.height===0?1:r.height;for(n=this.length-1;n>=0;n--){e=this[n][0];if(e==="M"||e==="L"||e==="T"){this[n][1]=(this[n][1]-r.x)*t/r.width+r.x;this[n][2]=(this[n][2]-r.y)*i/r.height+r.y}else if(e==="H"){this[n][1]=(this[n][1]-r.x)*t/r.width+r.x}else if(e==="V"){this[n][1]=(this[n][1]-r.y)*i/r.height+r.y}else if(e==="C"||e==="S"||e==="Q"){this[n][1]=(this[n][1]-r.x)*t/r.width+r.x;this[n][2]=(this[n][2]-r.y)*i/r.height+r.y;this[n][3]=(this[n][3]-r.x)*t/r.width+r.x;this[n][4]=(this[n][4]-r.y)*i/r.height+r.y;if(e==="C"){this[n][5]=(this[n][5]-r.x)*t/r.width+r.x;this[n][6]=(this[n][6]-r.y)*i/r.height+r.y}}else if(e==="A"){this[n][1]=this[n][1]*t/r.width;this[n][2]=this[n][2]*i/r.height;this[n][6]=(this[n][6]-r.x)*t/r.width+r.x;this[n][7]=(this[n][7]-r.y)*i/r.height+r.y}}return this};i.prototype.toString=function(){return arrayToString(this)};return i}(SVGArray);var getClassForType=function(t){var i=typeof t;if(i==="number"){return SVGNumber}else if(i==="string"){if(Color.isColor(t)){return Color}else if(delimiter.test(t)){return isPathLetter.test(t)?PathArray:SVGArray}else if(numberAndUnit.test(t)){return SVGNumber}else{return NonMorphable}}else if(morphableTypes.indexOf(t.constructor)>-1){return t.constructor}else if(Array.isArray(t)){return SVGArray}else if(i==="object"){return ObjectBag}else{return NonMorphable}};var Morphable=function(){function t(t){this._stepper=t||new Ease("-");this._from=null;this._to=null;this._type=null;this._context=null;this._morphObj=null}t.prototype.at=function(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)};t.prototype.done=function(){var t=this._context.map(this._stepper.done).reduce((function(t,i){return t&&i}),true);return t};t.prototype.from=function(t){if(t==null){return this._from}this._from=this._set(t);return this};t.prototype.stepper=function(t){if(t==null)return this._stepper;this._stepper=t;return this};t.prototype.to=function(t){if(t==null){return this._to}this._to=this._set(t);return this};t.prototype.type=function(t){if(t==null){return this._type}this._type=t;return this};t.prototype._set=function(t){if(!this._type){this.type(getClassForType(t))}var i=new this._type(t);if(this._type===Color){i=this._to?i[this._to[4]]():this._from?i[this._from[4]]():i}if(this._type===ObjectBag){i=this._to?i.align(this._to):this._from?i.align(this._from):i}i=i.toConsumable();this._morphObj=this._morphObj||new this._type;this._context=this._context||Array.apply(null,Array(i.length)).map(Object).map((function(t){t.done=true;return t}));return i};return t}();var NonMorphable=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.init=function(t){t=Array.isArray(t)?t[0]:t;this.value=t;return this};t.prototype.toArray=function(){return[this.value]};t.prototype.valueOf=function(){return this.value};return t}();var TransformBag=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.init=function(i){if(Array.isArray(i)){i={scaleX:i[0],scaleY:i[1],shear:i[2],rotate:i[3],translateX:i[4],translateY:i[5],originX:i[6],originY:i[7]}}Object.assign(this,t.defaults,i);return this};t.prototype.toArray=function(){var t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]};return t}();TransformBag.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};var sortByKey=function(t,i){return t[0]<i[0]?-1:t[0]>i[0]?1:0};var ObjectBag=function(){function t(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}this.init.apply(this,t)}t.prototype.align=function(t){var i;var r=this.values;for(var n=0,e=r.length;n<e;++n){if(r[n+1]===t[n+1]){if(r[n+1]===Color&&t[n+7]!==r[n+7]){var s=t[n+7];var o=new Color(this.values.splice(n+3,5))[s]().toArray();(i=this.values).splice.apply(i,__spreadArray([n+3,0],o,false))}n+=r[n+2]+2;continue}if(!t[n+1]){return this}var a=(new t[n+1]).toArray();var u=r[n+2]+3;r.splice.apply(r,__spreadArray([n,u,t[n],t[n+1],t[n+2]],a,false));n+=r[n+2]+2}return this};t.prototype.init=function(t){this.values=[];if(Array.isArray(t)){this.values=t.slice();return}t=t||{};var i=[];for(var r in t){var n=getClassForType(t[r]);var e=new n(t[r]).toArray();i.push(__spreadArray([r,n,e.length],e,true))}i.sort(sortByKey);this.values=i.reduce((function(t,i){return t.concat(i)}),[]);return this};t.prototype.toArray=function(){return this.values};t.prototype.valueOf=function(){var t={};var i=this.values;while(i.length){var r=i.shift();var n=i.shift();var e=i.shift();var s=i.splice(0,e);t[r]=new n(s)}return t};return t}();var morphableTypes=[NonMorphable,TransformBag,ObjectBag];function registerMorphableType(t){if(t===void 0){t=[]}morphableTypes.push.apply(morphableTypes,[].concat(t))}function makeMorphable(){extend(morphableTypes,{to:function(t){return(new Morphable).type(this.constructor).from(this.toArray()).to(t)},fromArray:function(t){this.init(t);return this},toConsumable:function(){return this.toArray()},morph:function(t,i,r,n,e){var s=function(t,s){return n.step(t,i[s],r,e[s],e)};return this.fromArray(t.map(s))}})}var Path=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("path",i),r)||this}i.prototype.array=function(){return this._array||(this._array=new PathArray(this.attr("d")))};i.prototype.clear=function(){delete this._array;return this};i.prototype.height=function(t){return t==null?this.bbox().height:this.size(this.bbox().width,t)};i.prototype.move=function(t,i){return this.attr("d",this.array().move(t,i))};i.prototype.plot=function(t){return t==null?this.array():this.clear().attr("d",typeof t==="string"?t:this._array=new PathArray(t))};i.prototype.size=function(t,i){var r=proportionalSize(this,t,i);return this.attr("d",this.array().size(r.width,r.height))};i.prototype.width=function(t){return t==null?this.bbox().width:this.size(t,this.bbox().height)};i.prototype.x=function(t){return t==null?this.bbox().x:this.move(t,this.bbox().y)};i.prototype.y=function(t){return t==null?this.bbox().y:this.move(this.bbox().x,t)};return i}(Shape);Path.prototype.MorphArray=PathArray;registerMethods({Container:{path:wrapWithAttrCheck((function(t){return this.put(new Path).plot(t||new PathArray)}))}});register(Path,"Path");function array(){return this._array||(this._array=new PointArray(this.attr("points")))}function clear(){delete this._array;return this}function move$2(t,i){return this.attr("points",this.array().move(t,i))}function plot(t){return t==null?this.array():this.clear().attr("points",typeof t==="string"?t:this._array=new PointArray(t))}function size$1(t,i){var r=proportionalSize(this,t,i);return this.attr("points",this.array().size(r.width,r.height))}var poly={__proto__:null,array:array,clear:clear,move:move$2,plot:plot,size:size$1};var Polygon=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("polygon",i),r)||this}return i}(Shape);registerMethods({Container:{polygon:wrapWithAttrCheck((function(t){return this.put(new Polygon).plot(t||new PointArray)}))}});extend(Polygon,pointed);extend(Polygon,poly);register(Polygon,"Polygon");var Polyline=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("polyline",i),r)||this}return i}(Shape);registerMethods({Container:{polyline:wrapWithAttrCheck((function(t){return this.put(new Polyline).plot(t||new PointArray)}))}});extend(Polyline,pointed);extend(Polyline,poly);register(Polyline,"Polyline");var Rect=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("rect",i),r)||this}return i}(Shape);extend(Rect,{rx:rx,ry:ry});registerMethods({Container:{rect:wrapWithAttrCheck((function(t,i){return this.put(new Rect).size(t,i)}))}});register(Rect,"Rect");var Queue=function(){function t(){this._first=null;this._last=null}t.prototype.first=function(){return this._first&&this._first.value};t.prototype.last=function(){return this._last&&this._last.value};t.prototype.push=function(t){var i=typeof t.next!=="undefined"?t:{value:t,next:null,prev:null};if(this._last){i.prev=this._last;this._last.next=i;this._last=i}else{this._last=i;this._first=i}return i};t.prototype.remove=function(t){if(t.prev)t.prev.next=t.next;if(t.next)t.next.prev=t.prev;if(t===this._last)this._last=t.prev;if(t===this._first)this._first=t.next;t.prev=null;t.next=null};t.prototype.shift=function(){var t=this._first;if(!t)return null;this._first=t.next;if(this._first)this._first.prev=null;this._last=this._first?this._last:null;return t.value};return t}();var Animator={nextDraw:null,frames:new Queue,timeouts:new Queue,immediates:new Queue,timer:function(){return globals.window.performance||globals.window.Date},transforms:[],frame:function(t){var i=Animator.frames.push({run:t});if(Animator.nextDraw===null){Animator.nextDraw=globals.window.requestAnimationFrame(Animator._draw)}return i},timeout:function(t,i){i=i||0;var r=Animator.timer().now()+i;var n=Animator.timeouts.push({run:t,time:r});if(Animator.nextDraw===null){Animator.nextDraw=globals.window.requestAnimationFrame(Animator._draw)}return n},immediate:function(t){var i=Animator.immediates.push(t);if(Animator.nextDraw===null){Animator.nextDraw=globals.window.requestAnimationFrame(Animator._draw)}return i},cancelFrame:function(t){t!=null&&Animator.frames.remove(t)},clearTimeout:function(t){t!=null&&Animator.timeouts.remove(t)},cancelImmediate:function(t){t!=null&&Animator.immediates.remove(t)},_draw:function(t){var i=null;var r=Animator.timeouts.last();while(i=Animator.timeouts.shift()){if(t>=i.time){i.run()}else{Animator.timeouts.push(i)}if(i===r)break}var n=null;var e=Animator.frames.last();while(n!==e&&(n=Animator.frames.shift())){n.run(t)}var s=null;while(s=Animator.immediates.shift()){s()}Animator.nextDraw=Animator.timeouts.first()||Animator.frames.first()?globals.window.requestAnimationFrame(Animator._draw):null}};var makeSchedule=function(t){var i=t.start;var r=t.runner.duration();var n=i+r;return{start:i,duration:r,end:n,runner:t.runner}};var defaultSource=function(){var t=globals.window;return(t.performance||t.Date).now()};var Timeline=function(t){__extends(i,t);function i(i){if(i===void 0){i=defaultSource}var r=t.call(this)||this;r._timeSource=i;r.terminate();return r}i.prototype.active=function(){return!!this._nextFrame};i.prototype.finish=function(){this.time(this.getEndTimeOfTimeline()+1);return this.pause()};i.prototype.getEndTime=function(){var t=this.getLastRunnerInfo();var i=t?t.runner.duration():0;var r=t?t.start:this._time;return r+i};i.prototype.getEndTimeOfTimeline=function(){var t=this._runners.map((function(t){return t.start+t.runner.duration()}));return Math.max.apply(Math,__spreadArray([0],t,false))};i.prototype.getLastRunnerInfo=function(){return this.getRunnerInfoById(this._lastRunnerId)};i.prototype.getRunnerInfoById=function(t){return this._runners[this._runnerIds.indexOf(t)]||null};i.prototype.pause=function(){this._paused=true;return this._continue()};i.prototype.persist=function(t){if(t==null)return this._persist;this._persist=t;return this};i.prototype.play=function(){this._paused=false;return this.updateTime()._continue()};i.prototype.reverse=function(t){var i=this.speed();if(t==null)return this.speed(-i);var r=Math.abs(i);return this.speed(t?-r:r)};i.prototype.schedule=function(t,i,r){if(t==null){return this._runners.map(makeSchedule)}var n=0;var e=this.getEndTime();i=i||0;if(r==null||r==="last"||r==="after"){n=e}else if(r==="absolute"||r==="start"){n=i;i=0}else if(r==="now"){n=this._time}else if(r==="relative"){var s=this.getRunnerInfoById(t.id);if(s){n=s.start+i;i=0}}else if(r==="with-last"){var o=this.getLastRunnerInfo();var a=o?o.start:this._time;n=a}else{throw new Error('Invalid value for the "when" parameter')}t.unschedule();t.timeline(this);var u=t.persist();var h={persist:u===null?this._persist:u,start:n+i,runner:t};this._lastRunnerId=t.id;this._runners.push(h);this._runners.sort((function(t,i){return t.start-i.start}));this._runnerIds=this._runners.map((function(t){return t.runner.id}));this.updateTime()._continue();return this};i.prototype.seek=function(t){return this.time(this._time+t)};i.prototype.source=function(t){if(t==null)return this._timeSource;this._timeSource=t;return this};i.prototype.speed=function(t){if(t==null)return this._speed;this._speed=t;return this};i.prototype.stop=function(){this.time(0);return this.pause()};i.prototype.time=function(t){if(t==null)return this._time;this._time=t;return this._continue(true)};i.prototype.unschedule=function(t){var i=this._runnerIds.indexOf(t.id);if(i<0)return this;this._runners.splice(i,1);this._runnerIds.splice(i,1);t.timeline(null);return this};i.prototype.updateTime=function(){if(!this.active()){this._lastSourceTime=this._timeSource()}return this};i.prototype._continue=function(t){if(t===void 0){t=false}Animator.cancelFrame(this._nextFrame);this._nextFrame=null;if(t)return this._stepImmediate();if(this._paused)return this;this._nextFrame=Animator.frame(this._step);return this};i.prototype._stepFn=function(t){if(t===void 0){t=false}var i=this._timeSource();var r=i-this._lastSourceTime;if(t)r=0;var n=this._speed*r+(this._time-this._lastStepTime);this._lastSourceTime=i;if(!t){this._time+=n;this._time=this._time<0?0:this._time}this._lastStepTime=this._time;this.fire("time",this._time);for(var e=this._runners.length;e--;){var s=this._runners[e];var o=s.runner;var a=this._time-s.start;if(a<=0){o.reset()}}var u=false;for(var h=0,f=this._runners.length;h<f;h++){var s=this._runners[h];var o=s.runner;var c=n;var a=this._time-s.start;if(a<=0){u=true;continue}else if(a<c){c=a}if(!o.active())continue;var l=o.step(c).done;if(!l){u=true}else if(s.persist!==true){var v=o.duration()-o.time()+this._time;if(v+s.persist<this._time){o.unschedule();--h;--f}}}if(u&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0){this._continue()}else{this.pause();this.fire("finished")}return this};i.prototype.terminate=function(){this._startTime=0;this._speed=1;this._persist=0;this._nextFrame=null;this._paused=true;this._runners=[];this._runnerIds=[];this._lastRunnerId=-1;this._time=0;this._lastSourceTime=0;this._lastStepTime=0;this._step=this._stepFn.bind(this,false);this._stepImmediate=this._stepFn.bind(this,true)};return i}(EventTarget);registerMethods({Element:{timeline:function(t){if(t==null){this._timeline=this._timeline||new Timeline;return this._timeline}else{this._timeline=t;return this}}}});var Runner=function(t){__extends(i,t);function i(r){var n=t.call(this)||this;n.id=i.id++;r=r==null?timeline.duration:r;r=typeof r==="function"?new Controller(r):r;n._element=null;n._timeline=null;n.done=false;n._queue=[];n._duration=typeof r==="number"&&r;n._isDeclarative=r instanceof Controller;n._stepper=n._isDeclarative?r:new Ease;n._history={};n.enabled=true;n._time=0;n._lastTime=0;n._reseted=true;n.transforms=new Matrix;n.transformId=1;n._haveReversed=false;n._reverse=false;n._loopsDone=0;n._swing=false;n._wait=0;n._times=1;n._frameId=null;n._persist=n._isDeclarative?true:null;return n}i.sanitise=function(t,i,r){var n,e,s,o,a;var u=1;var h=false;var f=0;t=t!==null&&t!==void 0?t:timeline.duration;i=i!==null&&i!==void 0?i:timeline.delay;r=r||"last";if(typeof t==="object"&&!(t instanceof Stepper)){i=(n=t.delay)!==null&&n!==void 0?n:i;r=(e=t.when)!==null&&e!==void 0?e:r;h=t.swing||h;u=(s=t.times)!==null&&s!==void 0?s:u;f=(o=t.wait)!==null&&o!==void 0?o:f;t=(a=t.duration)!==null&&a!==void 0?a:timeline.duration}return{duration:t,delay:i,swing:h,times:u,wait:f,when:r}};i.prototype.active=function(t){if(t==null)return this.enabled;this.enabled=t;return this};i.prototype.addTransform=function(t){this.transforms.lmultiplyO(t);return this};i.prototype.after=function(t){return this.on("finished",t)};i.prototype.animate=function(t,r,n){var e=i.sanitise(t,r,n);var s=new i(e.duration);if(this._timeline)s.timeline(this._timeline);if(this._element)s.element(this._element);return s.loop(e).schedule(e.delay,e.when)};i.prototype.clearTransform=function(){this.transforms=new Matrix;return this};i.prototype.clearTransformsFromQueue=function(){if(!this.done||!this._timeline||!this._timeline._runnerIds.includes(this.id)){this._queue=this._queue.filter((function(t){return!t.isTransform}))}};i.prototype.delay=function(t){return this.animate(0,t)};i.prototype.duration=function(){return this._times*(this._wait+this._duration)-this._wait};i.prototype.during=function(t){return this.queue(null,t)};i.prototype.ease=function(t){this._stepper=new Ease(t);return this};i.prototype.element=function(t){if(t==null)return this._element;this._element=t;t._prepareRunner();return this};i.prototype.finish=function(){return this.step(Infinity)};i.prototype.loop=function(t,i,r){if(typeof t==="object"){i=t.swing;r=t.wait;t=t.times}this._times=t||Infinity;this._swing=i||false;this._wait=r||0;if(this._times===true){this._times=Infinity}return this};i.prototype.loops=function(t){var i=this._duration+this._wait;if(t==null){var r=Math.floor(this._time/i);var n=this._time-r*i;var e=n/this._duration;return Math.min(r+e,this._times)}var s=Math.floor(t);var o=t%1;var a=i*s+this._duration*o;return this.time(a)};i.prototype.persist=function(t){if(t==null)return this._persist;this._persist=t;return this};i.prototype.position=function(t){var i=this._time;var r=this._duration;var n=this._wait;var e=this._times;var s=this._swing;var o=this._reverse;var a;if(t==null){var u=function(t){var i=s*Math.floor(t%(2*(n+r))/(n+r));var e=i&&!o||!i&&o;var a=Math.pow(-1,e)*(t%(n+r))/r+e;var u=Math.max(Math.min(a,1),0);return u};var h=e*(n+r)-n;a=i<=0?Math.round(u(1e-5)):i<h?u(i):Math.round(u(h-1e-5));return a}var f=Math.floor(this.loops());var c=s&&f%2===0;var l=c&&!o||o&&c;a=f+(l?t:1-t);return this.loops(a)};i.prototype.progress=function(t){if(t==null){return Math.min(1,this._time/this.duration())}return this.time(t*this.duration())};i.prototype.queue=function(t,i,r,n){this._queue.push({initialiser:t||noop,runner:i||noop,retarget:r,isTransform:n,initialised:false,finished:false});var e=this.timeline();e&&this.timeline()._continue();return this};i.prototype.reset=function(){if(this._reseted)return this;this.time(0);this._reseted=true;return this};i.prototype.reverse=function(t){this._reverse=t==null?!this._reverse:t;return this};i.prototype.schedule=function(t,i,r){if(!(t instanceof Timeline)){r=i;i=t;t=this.timeline()}if(!t){throw Error("Runner cannot be scheduled without timeline")}t.schedule(this,i,r);return this};i.prototype.step=function(t){if(!this.enabled)return this;t=t==null?16:t;this._time+=t;var i=this.position();var r=this._lastPosition!==i&&this._time>=0;this._lastPosition=i;var n=this.duration();var e=this._lastTime<=0&&this._time>0;var s=this._lastTime<n&&this._time>=n;this._lastTime=this._time;if(e){this.fire("start",this)}var o=this._isDeclarative;this.done=!o&&!s&&this._time>=n;this._reseted=false;var a=false;if(r||o){this._initialise(r);this.transforms=new Matrix;a=this._run(o?t:i);this.fire("step",this)}this.done=this.done||a&&o;if(s){this.fire("finished",this)}return this};i.prototype.time=function(t){if(t==null){return this._time}var i=t-this._time;this.step(i);return this};i.prototype.timeline=function(t){if(typeof t==="undefined")return this._timeline;this._timeline=t;return this};i.prototype.unschedule=function(){var t=this.timeline();t&&t.unschedule(this);return this};i.prototype._initialise=function(t){if(!t&&!this._isDeclarative)return;for(var i=0,r=this._queue.length;i<r;++i){var n=this._queue[i];var e=this._isDeclarative||!n.initialised&&t;t=!n.finished;if(e&&t){n.initialiser.call(this);n.initialised=true}}};i.prototype._rememberMorpher=function(t,i){this._history[t]={morpher:i,caller:this._queue[this._queue.length-1]};if(this._isDeclarative){var r=this.timeline();r&&r.play()}};i.prototype._run=function(t){var i=true;for(var r=0,n=this._queue.length;r<n;++r){var e=this._queue[r];var s=e.runner.call(this,t);e.finished=e.finished||s===true;i=i&&e.finished}return i};i.prototype._tryRetarget=function(t,i,r){if(this._history[t]){if(!this._history[t].caller.initialised){var n=this._queue.indexOf(this._history[t].caller);this._queue.splice(n,1);return false}if(this._history[t].caller.retarget){this._history[t].caller.retarget.call(this,i,r)}else{this._history[t].morpher.to(i)}this._history[t].caller.finished=false;var e=this.timeline();e&&e.play();return true}return false};return i}(EventTarget);Runner.id=0;var FakeRunner=function(){function t(t,i,r){if(t===void 0){t=new Matrix}if(i===void 0){i=-1}if(r===void 0){r=true}this.transforms=t;this.id=i;this.done=r}t.prototype.clearTransformsFromQueue=function(){};return t}();extend([Runner,FakeRunner],{mergeWith:function(t){return new FakeRunner(t.transforms.lmultiply(this.transforms),t.id)}});var lmultiply=function(t,i){return t.lmultiplyO(i)};var getRunnerTransform=function(t){return t.transforms};function mergeTransforms(){var t=this._transformationRunners.runners;var i=t.map(getRunnerTransform).reduce(lmultiply,new Matrix);this.transform(i);this._transformationRunners.merge();if(this._transformationRunners.length()===1){this._frameId=null}}var RunnerArray=function(){function t(){this.runners=[];this.ids=[]}t.prototype.add=function(t){if(this.runners.includes(t))return;var i=t.id+1;this.runners.push(t);this.ids.push(i);return this};t.prototype.clearBefore=function(t){var i=this.ids.indexOf(t+1)||1;this.ids.splice(0,i,0);this.runners.splice(0,i,new FakeRunner).forEach((function(t){return t.clearTransformsFromQueue()}));return this};t.prototype.edit=function(t,i){var r=this.ids.indexOf(t+1);this.ids.splice(r,1,t+1);this.runners.splice(r,1,i);return this};t.prototype.getByID=function(t){return this.runners[this.ids.indexOf(t+1)]};t.prototype.length=function(){return this.ids.length};t.prototype.merge=function(){var t=null;for(var i=0;i<this.runners.length;++i){var r=this.runners[i];var n=t&&r.done&&t.done&&(!r._timeline||!r._timeline._runnerIds.includes(r.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id));if(n){this.remove(r.id);var e=r.mergeWith(t);this.edit(t.id,e);t=e;--i}else{t=r}}return this};t.prototype.remove=function(t){var i=this.ids.indexOf(t+1);this.ids.splice(i,1);this.runners.splice(i,1);return this};return t}();registerMethods({Element:{animate:function(t,i,r){var n=Runner.sanitise(t,i,r);var e=this.timeline();return new Runner(n.duration).loop(n).element(this).timeline(e.play()).schedule(n.delay,n.when)},delay:function(t,i){return this.animate(0,t,i)},_clearTransformRunnersBefore:function(t){this._transformationRunners.clearBefore(t.id)},_currentTransform:function(t){return this._transformationRunners.runners.filter((function(i){return i.id<=t.id})).map(getRunnerTransform).reduce(lmultiply,new Matrix)},_addRunner:function(t){this._transformationRunners.add(t);Animator.cancelImmediate(this._frameId);this._frameId=Animator.immediate(mergeTransforms.bind(this))},_prepareRunner:function(){if(this._frameId==null){this._transformationRunners=(new RunnerArray).add(new FakeRunner(new Matrix(this)))}}}});var difference=function(t,i){return t.filter((function(t){return!i.includes(t)}))};extend(Runner,{attr:function(t,i){return this.styleAttr("attr",t,i)},css:function(t,i){return this.styleAttr("css",t,i)},styleAttr:function(t,i,r){var n;if(typeof i==="string"){return this.styleAttr(t,(n={},n[i]=r,n))}var e=i;if(this._tryRetarget(t,e))return this;var s=new Morphable(this._stepper).to(e);var o=Object.keys(e);this.queue((function(){s=s.from(this.element()[t](o))}),(function(i){this.element()[t](s.at(i).valueOf());return s.done()}),(function(i){var r=Object.keys(i);var n=difference(r,o);if(n.length){var a=this.element()[t](n);var u=new ObjectBag(s.from()).valueOf();Object.assign(u,a);s.from(u)}var h=new ObjectBag(s.to()).valueOf();Object.assign(h,i);s.to(h);o=r;e=i}));this._rememberMorpher(t,s);return this},zoom:function(t,i){if(this._tryRetarget("zoom",t,i))return this;var r=new Morphable(this._stepper).to(new SVGNumber(t));this.queue((function(){r=r.from(this.element().zoom())}),(function(t){this.element().zoom(r.at(t),i);return r.done()}),(function(t,n){i=n;r.to(t)}));this._rememberMorpher("zoom",r);return this},transform:function(t,i,r){i=t.relative||i;if(this._isDeclarative&&!i&&this._tryRetarget("transform",t)){return this}var n=Matrix.isMatrixLike(t);r=t.affine!=null?t.affine:r!=null?r:!n;var e=new Morphable(this._stepper).type(r?TransformBag:Matrix);var s;var o;var a;var u;var h;function f(){o=o||this.element();s=s||getOrigin(t,o);h=new Matrix(i?undefined:o);o._addRunner(this);if(!i){o._clearTransformRunnersBefore(this)}}function c(f){if(!i)this.clearTransform();var c=new Point(s).transform(o._currentTransform(this)),l=c.x,v=c.y;var d=new Matrix(__assign(__assign({},t),{origin:[l,v]}));var g=this._isDeclarative&&a?a:h;if(r){d=d.decompose(l,v);g=g.decompose(l,v);var C=d.rotate;var p=g.rotate;var m=[C-360,C,C+360];var w=m.map((function(t){return Math.abs(t-p)}));var x=Math.min.apply(Math,w);var y=w.indexOf(x);d.rotate=m[y]}if(i){if(!n){d.rotate=t.rotate||0}if(this._isDeclarative&&u){g.rotate=u}}e.from(g);e.to(d);var b=e.at(f);u=b.rotate;a=new Matrix(b);this.addTransform(a);o._addRunner(this);return e.done()}function l(i){if((i.origin||"center").toString()!==(t.origin||"center").toString()){s=getOrigin(i,o)}t=__assign(__assign({},i),{origin:s})}this.queue(f,c,l,true);this._isDeclarative&&this._rememberMorpher("transform",e);return this},x:function(t){return this._queueNumber("x",t)},y:function(t){return this._queueNumber("y",t)},ax:function(t){return this._queueNumber("ax",t)},ay:function(t){return this._queueNumber("ay",t)},dx:function(t){if(t===void 0){t=0}return this._queueNumberDelta("x",t)},dy:function(t){if(t===void 0){t=0}return this._queueNumberDelta("y",t)},dmove:function(t,i){return this.dx(t).dy(i)},_queueNumberDelta:function(t,i){i=new SVGNumber(i);if(this._tryRetarget(t,i))return this;var r=new Morphable(this._stepper).to(i);var n=null;this.queue((function(){n=this.element()[t]();r.from(n);r.to(n+i)}),(function(i){this.element()[t](r.at(i));return r.done()}),(function(t){r.to(n+new SVGNumber(t))}));this._rememberMorpher(t,r);return this},_queueObject:function(t,i){if(this._tryRetarget(t,i))return this;var r=new Morphable(this._stepper).to(i);this.queue((function(){r.from(this.element()[t]())}),(function(i){this.element()[t](r.at(i));return r.done()}));this._rememberMorpher(t,r);return this},_queueNumber:function(t,i){return this._queueObject(t,new SVGNumber(i))},cx:function(t){return this._queueNumber("cx",t)},cy:function(t){return this._queueNumber("cy",t)},move:function(t,i){return this.x(t).y(i)},amove:function(t,i){return this.ax(t).ay(i)},center:function(t,i){return this.cx(t).cy(i)},size:function(t,i){var r;if(!t||!i){r=this._element.bbox()}if(!t){t=r.width/r.height*i}if(!i){i=r.height/r.width*t}return this.width(t).height(i)},width:function(t){return this._queueNumber("width",t)},height:function(t){return this._queueNumber("height",t)},plot:function(t,i,r,n){if(arguments.length===4){return this.plot([t,i,r,n])}if(this._tryRetarget("plot",t))return this;var e=new Morphable(this._stepper).type(this._element.MorphArray).to(t);this.queue((function(){e.from(this._element.array())}),(function(t){this._element.plot(e.at(t));return e.done()}));this._rememberMorpher("plot",e);return this},leading:function(t){return this._queueNumber("leading",t)},viewbox:function(t,i,r,n){return this._queueObject("viewbox",new Box(t,i,r,n))},update:function(t){if(typeof t!=="object"){return this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]})}if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",t.offset);return this}});extend(Runner,{rx:rx,ry:ry,from:from,to:to});register(Runner,"Runner");var Svg=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}var n=t.call(this,nodeOrNew("svg",i),r)||this;n.namespace();return n}i.prototype.defs=function(){if(!this.isRoot())return this.root().defs();return adopt(this.node.querySelector("defs"))||this.put(new Defs)};i.prototype.isRoot=function(){return!this.node.parentNode||!(this.node.parentNode instanceof globals.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"};i.prototype.namespace=function(){if(!this.isRoot())return this.root().namespace();return this.attr({xmlns:svg,version:"1.1"}).attr("xmlns:xlink",xlink,xmlns)};i.prototype.removeNamespace=function(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,xmlns).attr("xmlns:svgjs",null,xmlns)};i.prototype.root=function(){if(this.isRoot())return this;return t.prototype.root.call(this)};return i}(Container);registerMethods({Container:{nested:wrapWithAttrCheck((function(){return this.put(new Svg)}))}});register(Svg,"Svg",true);var Symbol=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("symbol",i),r)||this}return i}(Container);registerMethods({Container:{symbol:wrapWithAttrCheck((function(){return this.put(new Symbol)}))}});register(Symbol,"Symbol");function plain(t){if(this._build===false){this.clear()}this.node.appendChild(globals.document.createTextNode(t));return this}function length(){return this.node.getComputedTextLength()}function x$1(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.x}return this.attr("x",this.attr("x")+t-i.x)}function y$1(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.y}return this.attr("y",this.attr("y")+t-i.y)}function move$1(t,i,r){if(r===void 0){r=this.bbox()}return this.x(t,r).y(i,r)}function cx(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.cx}return this.attr("x",this.attr("x")+t-i.cx)}function cy(t,i){if(i===void 0){i=this.bbox()}if(t==null){return i.cy}return this.attr("y",this.attr("y")+t-i.cy)}function center(t,i,r){if(r===void 0){r=this.bbox()}return this.cx(t,r).cy(i,r)}function ax(t){return this.attr("x",t)}function ay(t){return this.attr("y",t)}function amove(t,i){return this.ax(t).ay(i)}function build(t){this._build=!!t;return this}var textable={__proto__:null,amove:amove,ax:ax,ay:ay,build:build,center:center,cx:cx,cy:cy,length:length,move:move$1,plain:plain,x:x$1,y:y$1};var Text=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}var n;var e=t.call(this,nodeOrNew("text",i),r)||this;e.dom.leading=(n=e.dom.leading)!==null&&n!==void 0?n:new SVGNumber(1.3);e._rebuild=true;e._build=false;return e}i.prototype.leading=function(t){if(t==null){return this.dom.leading}this.dom.leading=new SVGNumber(t);return this.rebuild()};i.prototype.rebuild=function(t){if(typeof t==="boolean"){this._rebuild=t}if(this._rebuild){var i=this;var r=0;var n=this.dom.leading;this.each((function(t){if(isDescriptive(this.node))return;var e=globals.window.getComputedStyle(this.node).getPropertyValue("font-size");var s=n*new SVGNumber(e);if(this.dom.newLined){this.attr("x",i.attr("x"));if(this.text()==="\n"){r+=s}else{this.attr("dy",t?s+r:0);r=0}}}));this.fire("rebuild")}return this};i.prototype.setData=function(t){this.dom=t;this.dom.leading=new SVGNumber(t.leading||1.3);return this};i.prototype.writeDataToDom=function(){writeDataToDom(this,this.dom,{leading:1.3});return this};i.prototype.text=function(t){if(t===undefined){var i=this.node.childNodes;var r=0;t="";for(var n=0,e=i.length;n<e;++n){if(i[n].nodeName==="textPath"||isDescriptive(i[n])){if(n===0)r=n+1;continue}if(n!==r&&i[n].nodeType!==3&&adopt(i[n]).dom.newLined===true){t+="\n"}t+=i[n].textContent}return t}this.clear().build(true);if(typeof t==="function"){t.call(this,this)}else{t=(t+"").split("\n");for(var s=0,o=t.length;s<o;s++){this.newLine(t[s])}}return this.build(false).rebuild()};return i}(Shape);extend(Text,textable);registerMethods({Container:{text:wrapWithAttrCheck((function(t){if(t===void 0){t=""}return this.put(new Text).text(t)})),plain:wrapWithAttrCheck((function(t){if(t===void 0){t=""}return this.put(new Text).plain(t)}))}});register(Text,"Text");var Tspan=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}var n=t.call(this,nodeOrNew("tspan",i),r)||this;n._build=false;return n}i.prototype.dx=function(t){return this.attr("dx",t)};i.prototype.dy=function(t){return this.attr("dy",t)};i.prototype.newLine=function(){this.dom.newLined=true;var t=this.parent();if(!(t instanceof Text)){return this}var i=t.index(this);var r=globals.window.getComputedStyle(this.node).getPropertyValue("font-size");var n=t.dom.leading*new SVGNumber(r);return this.dy(i?n:0).attr("x",t.x())};i.prototype.text=function(t){if(t==null)return this.node.textContent+(this.dom.newLined?"\n":"");if(typeof t==="function"){this.clear().build(true);t.call(this,this);this.build(false)}else{this.plain(t)}return this};return i}(Shape);extend(Tspan,textable);registerMethods({Tspan:{tspan:wrapWithAttrCheck((function(t){if(t===void 0){t=""}var i=new Tspan;if(!this._build){this.clear()}return this.put(i).text(t)}))},Text:{newLine:function(t){if(t===void 0){t=""}return this.tspan(t).newLine()}}});register(Tspan,"Tspan");var Circle=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("circle",i),r)||this}i.prototype.radius=function(t){return this.attr("r",t)};i.prototype.rx=function(t){return this.attr("r",t)};i.prototype.ry=function(t){return this.rx(t)};i.prototype.size=function(t){return this.radius(new SVGNumber(t).divide(2))};return i}(Shape);extend(Circle,{x:x$3,y:y$3,cx:cx$1,cy:cy$1,width:width$2,height:height$2});registerMethods({Container:{circle:wrapWithAttrCheck((function(t){if(t===void 0){t=0}return this.put(new Circle).size(t).move(0,0)}))}});register(Circle,"Circle");var ClipPath=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("clipPath",i),r)||this}i.prototype.remove=function(){this.targets().forEach((function(t){t.unclip()}));return t.prototype.remove.call(this)};i.prototype.targets=function(){return baseFind("svg [clip-path*="+this.id()+"]")};return i}(Container);registerMethods({Container:{clip:wrapWithAttrCheck((function(){return this.defs().put(new ClipPath)}))},Element:{clipper:function(){return this.reference("clip-path")},clipWith:function(t){var i=t instanceof ClipPath?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+i.id()+")")},unclip:function(){return this.attr("clip-path",null)}}});register(ClipPath,"ClipPath");var ForeignObject=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("foreignObject",i),r)||this}return i}(Element);registerMethods({Container:{foreignObject:wrapWithAttrCheck((function(t,i){return this.put(new ForeignObject).size(t,i)}))}});register(ForeignObject,"ForeignObject");function dmove(t,i){this.children().forEach((function(r){var n;try{n=r.node instanceof getWindow().SVGSVGElement?new Box(r.attr(["x","y","width","height"])):r.bbox()}catch(t){return}var e=new Matrix(r);var s=e.translate(t,i).transform(e.inverse());var o=new Point(n.x,n.y).transform(s);r.move(o.x,o.y)}));return this}function dx(t){return this.dmove(t,0)}function dy(t){return this.dmove(0,t)}function height(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.height;return this.size(i.width,t,i)}function move(t,i,r){if(t===void 0){t=0}if(i===void 0){i=0}if(r===void 0){r=this.bbox()}var n=t-r.x;var e=i-r.y;return this.dmove(n,e)}function size(t,i,r){if(r===void 0){r=this.bbox()}var n=proportionalSize(this,t,i,r);var e=n.width/r.width;var s=n.height/r.height;this.children().forEach((function(t){var i=new Point(r).transform(new Matrix(t).inverse());t.scale(e,s,i.x,i.y)}));return this}function width(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.width;return this.size(t,i.height,i)}function x(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.x;return this.move(t,i.y,i)}function y(t,i){if(i===void 0){i=this.bbox()}if(t==null)return i.y;return this.move(i.x,t,i)}var containerGeometry={__proto__:null,dmove:dmove,dx:dx,dy:dy,height:height,move:move,size:size,width:width,x:x,y:y};var G=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("g",i),r)||this}return i}(Container);extend(G,containerGeometry);registerMethods({Container:{group:wrapWithAttrCheck((function(){return this.put(new G)}))}});register(G,"G");var A=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("a",i),r)||this}i.prototype.target=function(t){return this.attr("target",t)};i.prototype.to=function(t){return this.attr("href",t,xlink)};return i}(Container);extend(A,containerGeometry);registerMethods({Container:{link:wrapWithAttrCheck((function(t){return this.put(new A).to(t)}))},Element:{unlink:function(){var t=this.linker();if(!t)return this;var i=t.parent();if(!i){return this.remove()}var r=i.index(t);i.add(this,r);t.remove();return this},linkTo:function(t){var i=this.linker();if(!i){i=new A;this.wrap(i)}if(typeof t==="function"){t.call(i,i)}else{i.to(t)}return this},linker:function(){var t=this.parent();if(t&&t.node.nodeName.toLowerCase()==="a"){return t}return null}}});register(A,"A");var Mask=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("mask",i),r)||this}i.prototype.remove=function(){this.targets().forEach((function(t){t.unmask()}));return t.prototype.remove.call(this)};i.prototype.targets=function(){return baseFind("svg [mask*="+this.id()+"]")};return i}(Container);registerMethods({Container:{mask:wrapWithAttrCheck((function(){return this.defs().put(new Mask)}))},Element:{masker:function(){return this.reference("mask")},maskWith:function(t){var i=t instanceof Mask?t:this.parent().mask().add(t);return this.attr("mask","url(#"+i.id()+")")},unmask:function(){return this.attr("mask",null)}}});register(Mask,"Mask");var Stop=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("stop",i),r)||this}i.prototype.update=function(t){if(typeof t==="number"||t instanceof SVGNumber){t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}}if(t.opacity!=null)this.attr("stop-opacity",t.opacity);if(t.color!=null)this.attr("stop-color",t.color);if(t.offset!=null)this.attr("offset",new SVGNumber(t.offset));return this};return i}(Element);registerMethods({Gradient:{stop:function(t,i,r){return this.put(new Stop).update(t,i,r)}}});register(Stop,"Stop");function cssRule(t,i){if(!t)return"";if(!i)return t;var r=t+"{";for(var n in i){r+=unCamelCase(n)+":"+i[n]+";"}r+="}";return r}var Style=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("style",i),r)||this}i.prototype.addText=function(t){if(t===void 0){t=""}this.node.textContent+=t;return this};i.prototype.font=function(t,i,r){if(r===void 0){r={}}return this.rule("@font-face",__assign({fontFamily:t,src:i},r))};i.prototype.rule=function(t,i){return this.addText(cssRule(t,i))};return i}(Element);registerMethods("Dom",{style:function(t,i){return this.put(new Style).rule(t,i)},fontface:function(t,i,r){return this.put(new Style).font(t,i,r)}});register(Style,"Style");var TextPath=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("textPath",i),r)||this}i.prototype.array=function(){var t=this.track();return t?t.array():null};i.prototype.plot=function(t){var i=this.track();var r=null;if(i){r=i.plot(t)}return t==null?r:this};i.prototype.track=function(){return this.reference("href")};return i}(Text);registerMethods({Container:{textPath:wrapWithAttrCheck((function(t,i){if(!(t instanceof Text)){t=this.text(t)}return t.path(i)}))},Text:{path:wrapWithAttrCheck((function(t,i){if(i===void 0){i=true}var r=new TextPath;if(!(t instanceof Path)){t=this.defs().path(t)}r.attr("href","#"+t,xlink);var n;if(i){while(n=this.node.firstChild){r.node.appendChild(n)}}return this.put(r)})),textPath:function(){return this.findOne("textPath")}},Path:{text:wrapWithAttrCheck((function(t){if(!(t instanceof Text)){t=(new Text).addTo(this.parent()).text(t)}return t.path(this)})),targets:function(){var t=this;return baseFind("svg textPath").filter((function(i){return(i.attr("href")||"").includes(t.id())}))}}});TextPath.prototype.MorphArray=PathArray;register(TextPath,"TextPath");var Use=function(t){__extends(i,t);function i(i,r){if(r===void 0){r=i}return t.call(this,nodeOrNew("use",i),r)||this}i.prototype.use=function(t,i){return this.attr("href",(i||"")+"#"+t,xlink)};return i}(Shape);registerMethods({Container:{use:wrapWithAttrCheck((function(t,i){return this.put(new Use).use(t,i)}))}});register(Use,"Use");var SVG=makeInstance;extend([Svg,Symbol,Image,Pattern,Marker],getMethodsFor("viewbox"));extend([Line,Polyline,Polygon,Path],getMethodsFor("marker"));extend(Text,getMethodsFor("Text"));extend(Path,getMethodsFor("Path"));extend(Defs,getMethodsFor("Defs"));extend([Text,Tspan],getMethodsFor("Tspan"));extend([Rect,Ellipse,Gradient,Runner],getMethodsFor("radius"));extend(EventTarget,getMethodsFor("EventTarget"));extend(Dom,getMethodsFor("Dom"));extend(Element,getMethodsFor("Element"));extend(Shape,getMethodsFor("Shape"));extend([Container,Fragment],getMethodsFor("Container"));extend(Gradient,getMethodsFor("Gradient"));extend(Runner,getMethodsFor("Runner"));List.extend(getMethodNames());registerMorphableType([SVGNumber,Color,Box,Matrix,SVGArray,PointArray,PathArray,Point]);makeMorphable();function RecipientFlow(){var t={entities:[]};var i;var r=[];function n(t,r,n){i=SVG().addTo(t).size(r,n);i.entities=[];i.lines=i.group();i.labels=i.group()}function e(t,i){var r;var n=t.group().attr({id:i.id});t.entities.push(n);i.background_color=i.background_color?i.background_color:"#f06";i.color=i.color?i.color:"#ffffff";i.radius=i.radius?i.radius:0;n.entity=n.rect(i.width,i.height).cx(i.width/2).cy(i.height/2).attr((r={fill:"#ffffff",stroke:i.color},r["stroke-width"]=2,r)).radius(i.radius);if(i.class){n.entity.attr("class",i.class)}n.plain(i.text).cx(14).cy(i.height/2+6).attr({fill:i.color});n.move(i.x,i.y)}function s(){if(t.labels&&t.labels.length>0){t.labels.forEach((function(t){i.labels.text(t.value).x(t.x).y(t.y)}))}}function o(t,i){i.forEach((function(i){return a(t,i)}))}function a(t,i){var r="";var n=i.color||"#4c56cb";var e=t.findOne("#"+i.from.element);var s=t.findOne("#"+i.to.element);var o=u(i,e,s);r+=f(e,i.from.point)+","+c(e,i.from.point)+" ";o.forEach((function(t){return r+=t.x+","+t.y+" "}));if(i.to.point==="top"){r+=f(s,i.to.point)+","+c(s,i.to.point)+" "}else if(i.to.point==="bottom"){r+=f(s,i.to.point)+","+c(s,i.to.point)+" "}else{r+=f(s,i.to.point)+","+c(s,i.to.point)+" "}if(!i.polyline){i.polyline=t.lines.polyline(r).fill("none").stroke({color:n,width:2,linecap:"round",linejoin:"round"}).attr("id",i.id)}else{i.polyline.plot(r)}}function u(t,i,r){var n=[];var e=c(i,t.from.point);var s=c(r,t.to.point);var o=f(i,t.from.point);var a=f(r,t.to.point);var u=h(t.from.point);var l=h(t.to.point);var v=u-l;if(v===0){if(t.from.point==="top"){if(e<=s){n.push({x:o,y:e-20});n.push({x:a,y:e-20})}else{n.push({x:o,y:s-20});n.push({x:a,y:s-20})}}else if(t.from.point==="bottom"){if(e<=s){n.push({x:o,y:s+20});n.push({x:a,y:s+20})}else{n.push({x:o,y:e+20});n.push({x:a,y:e+20})}}else{if(o<=a){n.push({x:a+20,y:e});n.push({x:a+20,y:s})}else{n.push({x:o+20,y:e});n.push({x:o+20,y:s})}}}if(v===2||v===-2){if(o!==a){n.push({x:o,y:s+(e-s)/2});n.push({x:a,y:s+(e-s)/2})}}if(v===1||v===-1||v===3||v===-3){if(t.from.point==="top"){if(e<s+20){n.push({x:o,y:e-20});n.push({x:a+20,y:e-20});n.push({x:a+20,y:s})}else{n.push({x:o,y:s})}}if(t.from.point==="bottom"){if(e>s-20){n.push({x:o,y:e+20});n.push({x:a+20,y:e+20});n.push({x:a+20,y:s})}else{n.push({x:o,y:s})}}}return n}function h(t){switch(t){case"top":return 0;case"bottom":return 2;default:return 3}}function f(t,i){var r=t.entity.attr("width");var n=t.entity.attr("x");switch(i){case"top":case"bottom":return n+r/2;default:return n-r/2}}function c(t,i){var r=t.entity.attr("height");var n=t.entity.attr("y");switch(i){case"top":return n;case"bottom":return n+r;default:return n}}function l(){i.entities.forEach((function(t){return t.remove()}));i.entities=[];r=[];if(!t.labels){t.labels=[]}t.labels=t.labels.map((function(t){return{id:t.id,value:t.value?t.value:"",x:t.x?t.x:0,y:t.y?t.y:0,color:t.color?t.color:"black"}}));t.entities.map((function(t){t.type=t.type?t.type:"entity";if(t.type==="operation"){t.height=t.width}}));s();t.entities.forEach((function(t){return e(i,t)}));r=t.lines;o(i,r)}function v(i){t=i;l()}return{initalize:n,update:v}}var verdocsStatusIndicatorCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-status-indicator{display:-ms-flexbox;display:flex;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-status-indicator.has-document:hover{cursor:pointer;background:rgba(0, 0, 0, 0.1)}verdocs-status-indicator .icon{width:25px;height:25px;margin:0 10px 0 0}verdocs-status-indicator.dark{color:#ffffff}verdocs-status-indicator.small{font-size:16px}verdocs-status-indicator.small .icon{width:20px;height:20px;margin:0 8px 0 0}verdocs-status-indicator .content{white-space:nowrap}verdocs-status-indicator .detail-panel{display:none;background:#ffffff;border:1px solid #1e2031;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;border-radius:10px;font-weight:500}verdocs-status-indicator .detail-panel h1{font-size:44px;color:#092c4c}verdocs-status-indicator .detail-panel[data-show]{display:-ms-flexbox;display:flex}';var VerdocsStatusIndicatorStyle0=verdocsStatusIndicatorCss;var AcceptedDark='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="white"/></svg>';var AcceptedLight='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="#654DCB"/></svg>';var CanceledDark='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';var CanceledLight='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';var CompletedDark='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';var CompletedLight='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>';var DeclinedDark='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#F95353"/></svg>';var DeclinedLight='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#FF0000"/></svg>';var InProgressDark='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var InProgressLight='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var OpenedDark='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="white"/></svg>';var OpenedLight='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="#654DCB"/></svg>';var PendingDark='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var PendingLight='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var SignedDark='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="white"/></svg>';var SignedLight='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="#654DCB"/></svg>';var SomeSignedDark='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#63C58E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var SomeSignedLight='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var SubmittedDark='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';var SubmittedLight='<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>';var ENTRY_WIDTH=140;var ENTRY_HEIGHT=40;var ENTRY_PADDING=40;var VerdocsStatusIndicator=function(){function t(t){registerInstance(this,t);this.recipientStatusIcons=[];this.size="normal";this.theme="light";this.status=undefined;this.envelope=undefined;this.isOpen=undefined;this.containerId="verdocs-status-indicator-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){var t=this;var i;this.popper=createPopper(this.summaryComponent,this.detailPanel,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]});if((i=this.envelope)===null||i===void 0?void 0:i.recipients){var r=[];this.envelope.recipients.forEach((function(t){var i=t.sequence-1;r[i]||(r[i]=[]);var n="r-".concat(i,"-").concat(r[i].length);r[i].push(__assign(__assign({},t),{id:n}))}));var n=Object.keys(r).length;var e=n*ENTRY_HEIGHT+(n+1)*ENTRY_PADDING;var s=0;Object.values(r).forEach((function(t){var i=t.length*ENTRY_WIDTH+(t.length+1)*ENTRY_PADDING;if(i>s){s=i}}));var o=[];var a=[];var u=[];var h=ENTRY_PADDING;Object.entries(r).forEach((function(i){var n=i[0],e=i[1];var f=e.length*(ENTRY_WIDTH+ENTRY_PADDING);var c=s-f;var l=ENTRY_PADDING/2+c/2;e.forEach((function(i,e){var s;var f=formatFullName(i);var c={id:i.id,text:f,icon:t.getStatusIcon(i.status),x:e*(ENTRY_WIDTH+ENTRY_PADDING)+l,y:h,width:ENTRY_WIDTH,height:ENTRY_HEIGHT,color:t.getStatusColor(i.status),radius:8};o.push(c);u.push({icon:t.getStatusIcon(i.status),x:e*(ENTRY_WIDTH+ENTRY_PADDING)+l+(ENTRY_WIDTH-32),y:h+ENTRY_HEIGHT/2-13});(s=r[+n-1])===null||s===void 0?void 0:s.forEach((function(r){var n={id:"line-".concat(r.id,"-").concat(c.id),from:{element:r.id,point:"bottom"},to:{element:c.id,point:"top"},color:t.getStatusColor(i.status)};a.push(n)}))}));h+=ENTRY_HEIGHT+ENTRY_PADDING}));this.recipientStatusIcons=u;var f=RecipientFlow();f.initalize("#".concat(this.containerId),s,e);f.update({entities:o,lines:a})}};t.prototype.showDropdown=function(){var t,i;this.isOpen=true;this.detailPanel.setAttribute("data-show","");this.detailPanel.removeAttribute("aria-hidden");(t=this.popper)===null||t===void 0?void 0:t.setOptions((function(t){return __assign(__assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:true}],false)})}));(i=this.popper)===null||i===void 0?void 0:i.update()};t.prototype.handleHideDropdown=function(t){var i,r;if(((i=t===null||t===void 0?void 0:t.target)===null||i===void 0?void 0:i.localName)==="button"&&((r=t===null||t===void 0?void 0:t.target)===null||r===void 0?void 0:r.className)==="arrow"){return}this.hide()};t.prototype.toggleDropdown=function(){if(this.isOpen){this.hide()}else{this.showDropdown()}};t.prototype.hide=function(){var t;this.isOpen=false;this.detailPanel.removeAttribute("data-show");this.detailPanel.setAttribute("aria-hidden","true");(t=this.popper)===null||t===void 0?void 0:t.setOptions((function(t){return __assign(__assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:false}],false)})}))};t.prototype.getStatusColor=function(t){switch(t){case"invited":case"opened":case"accepted":case"signed":return"#654dcb";case"some-signed":case"submitted":case"complete":return"#55bc81";case"declined":return"#ff0000";case"canceled":case"in progress":case"pending":default:return"#999999"}};t.prototype.getStatusIcon=function(t){switch(t){case"accepted":return this.theme==="light"?AcceptedLight:AcceptedDark;case"complete":return this.theme==="light"?CompletedLight:CompletedDark;case"in progress":return this.theme==="light"?InProgressLight:InProgressDark;case"canceled":return this.theme==="light"?CanceledLight:CanceledDark;case"declined":return this.theme==="light"?DeclinedLight:DeclinedDark;case"invited":return this.theme==="light"?InProgressLight:InProgressDark;case"opened":return this.theme==="light"?OpenedLight:OpenedDark;case"signed":return this.theme==="light"?SignedLight:SignedDark;case"submitted":return this.theme==="light"?SubmittedLight:SubmittedDark;case"some-signed":return this.theme==="light"?SomeSignedLight:SomeSignedDark;default:case"pending":return this.theme==="light"?PendingLight:PendingDark}};t.prototype.getStatusMessage=function(t){switch(t){case"accepted":return"Accepted";case"complete":return"Completed";case"in progress":return"In Progress";case"canceled":return"Cancelled";case"declined":return"Declined";case"invited":return"Invited";case"opened":return"Opened";case"signed":return"Signed";case"submitted":return"Submitted";case"some-signed":return"Partly Signed";case"pending":return"Pending";default:return t}};t.prototype.render=function(){var t=this;var i,r;var n=this.status||((i=this.envelope)===null||i===void 0?void 0:i.status)||"pending"||"accepted";if(!this.status&&((r=this.envelope)===null||r===void 0?void 0:r.recipients)){var e=this.envelope.recipients.filter((function(t){return t.status==="submitted"}));if(e.length>0&&e.length!==this.envelope.recipients.length){n="some-signed"}}var s=this.getStatusIcon(n);var o=this.getStatusMessage(n);return h(Host,{key:"f2c2195777cebabf95a6727020f6679f6c23ec25",ref:function(i){return t.summaryComponent=i},class:"".concat(this.theme," ").concat(this.size," ").concat(this.envelope?"has-document":""),"aria-label":"Click to View Details",onClick:function(i){i.stopPropagation();i.preventDefault();t.envelope&&t.toggleDropdown()},onBlur:function(i){return t.envelope&&t.handleHideDropdown(i)}},h("span",{key:"d610cd3fb949eed13321e38144210b2b03d1dd11",class:"icon",innerHTML:s}),h("span",{key:"9b7155ec83f6bddf771cfed23d0329a1869e1df8",class:"content"},o),h("div",{key:"2012f264756d6a3af42fbb60f24acbb83799caeb",class:"detail-panel",ref:function(i){return t.detailPanel=i}},h("div",{key:"d45df011b3e6c5a12bfd714ec90c6141f0a677ed",id:"".concat(this.containerId)}),this.recipientStatusIcons.map((function(t){return h("span",{innerHTML:t.icon,style:{position:"absolute",top:"".concat(t.y,"px"),left:"".concat(t.x,"px")}})}))))};return t}();VerdocsStatusIndicator.style=VerdocsStatusIndicatorStyle0;export{VerdocsStatusIndicator as verdocs_status_indicator};
|
2
2
|
//# sourceMappingURL=verdocs-status-indicator.entry.js.map
|