@watermarkinsights/ripple 5.11.1 → 5.11.2
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/{chartFunctions-7314b414.js → chartFunctions-0436714f.js} +31 -11
- package/dist/cjs/{functions-5ac8a62f.js → functions-e24249e6.js} +7 -104
- package/dist/{esm/app-globals-c3920c78.js → cjs/global-650a6fe6.js} +2 -7
- package/dist/cjs/index-e86c28b6.js +2649 -0
- package/dist/cjs/{intl-07aaf53c.js → intl-a70cf8c2.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/priv-calendar.cjs.entry.js +5 -6
- package/dist/cjs/priv-chart-popover.cjs.entry.js +5 -6
- package/dist/cjs/priv-navigator-button.cjs.entry.js +3 -4
- package/dist/cjs/priv-navigator-item.cjs.entry.js +3 -4
- package/dist/cjs/priv-option-list.cjs.entry.js +4 -5
- package/dist/cjs/ripple.cjs.js +11 -12
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +6 -8
- package/dist/cjs/wm-button.cjs.entry.js +4 -5
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +15 -9
- package/dist/cjs/wm-date-range.cjs.entry.js +8 -9
- package/dist/cjs/wm-datepicker.cjs.entry.js +8 -9
- package/dist/cjs/wm-file-list.cjs.entry.js +3 -4
- package/dist/cjs/wm-file.cjs.entry.js +4 -5
- package/dist/cjs/wm-input.cjs.entry.js +5 -6
- package/dist/cjs/wm-line-chart.cjs.entry.js +14 -15
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +10 -13
- package/dist/cjs/wm-modal_3.cjs.entry.js +10 -13
- package/dist/cjs/wm-navigation_3.cjs.entry.js +10 -13
- package/dist/cjs/wm-navigator.cjs.entry.js +3 -4
- package/dist/cjs/wm-nested-select.cjs.entry.js +7 -8
- package/dist/cjs/wm-optgroup.cjs.entry.js +4 -5
- package/dist/cjs/wm-option_2.cjs.entry.js +8 -10
- package/dist/cjs/wm-pagination.cjs.entry.js +4 -5
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +7 -9
- package/dist/cjs/wm-search.cjs.entry.js +6 -7
- package/dist/cjs/wm-snackbar.cjs.entry.js +6 -7
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +8 -11
- package/dist/cjs/wm-tag-input.cjs.entry.js +7 -8
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +5 -6
- package/dist/cjs/wm-timepicker.cjs.entry.js +5 -6
- package/dist/cjs/wm-toggletip.cjs.entry.js +5 -6
- package/dist/cjs/wm-uploader.cjs.entry.js +6 -7
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/charts/chartFunctions.js +29 -9
- package/dist/collection/components/charts/chartFunctions.spec.js +16 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +81 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +2 -2
- package/dist/collection/components/charts/screenshots.e2e.js +96 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +213 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +10 -3
- package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +37 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +176 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +9 -9
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +163 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +1 -1
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.e2e.js +69 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +79 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.spec.js +89 -0
- package/dist/collection/components/datepickers/wm-date-range.e2e.js +443 -0
- package/dist/collection/components/datepickers/wm-date-range.js +13 -17
- package/dist/collection/components/datepickers/wm-date-range.spec.js +22 -0
- package/dist/collection/components/datepickers/wm-datepicker.e2e.js +382 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +13 -17
- package/dist/collection/components/datepickers/wm-datepicker.spec.js +21 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +5 -7
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
- package/dist/collection/components/selects/wm-option/wm-option.e2e.js +22 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
- package/dist/collection/components/selects/wm-option/wm-option.spec.js +63 -0
- package/dist/collection/components/selects/wm-select/wm-select.e2e.js +521 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +2 -2
- package/dist/collection/components/selects/wm-select/wm-select.spec.js +271 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +200 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
- package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +48 -0
- package/dist/collection/components/wm-button/wm-button.e2e.js +55 -0
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-button/wm-button.spec.js +74 -0
- package/dist/collection/components/wm-file/wm-file.js +1 -1
- package/dist/collection/components/wm-file/wm-file.spec.js +194 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
- package/dist/collection/components/wm-file-list/wm-file-list.spec.js +69 -0
- package/dist/collection/components/wm-input/wm-input.e2e.js +32 -0
- package/dist/collection/components/wm-input/wm-input.js +1 -1
- package/dist/collection/components/wm-input/wm-input.spec.js +173 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +23 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +54 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +11 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.spec.js +8 -0
- package/dist/collection/components/wm-modal/wm-modal.e2e.js +104 -0
- package/dist/collection/components/wm-modal/wm-modal.js +2 -2
- package/dist/collection/components/wm-modal/wm-modal.spec.js +30 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation.e2e.js +102 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation.spec.js +91 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +50 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
- package/dist/collection/components/wm-navigator/wm-navigator.e2e.js +209 -0
- package/dist/collection/components/wm-navigator/wm-navigator.spec.js +177 -0
- package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +312 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.e2e.js +76 -0
- package/dist/collection/components/wm-search/wm-search.js +4 -5
- package/dist/collection/components/wm-search/wm-search.spec.js +71 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +112 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +9 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tabs.e2e.js +91 -0
- package/dist/collection/components/wm-tabs/wm-tabs.spec.js +12 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +204 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +3 -3
- package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +195 -0
- package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +41 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-textarea/wm-textarea.spec.js +79 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +163 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +8 -11
- package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +147 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +69 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
- package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +21 -0
- package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +70 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/components/wm-uploader/wm-uploader.spec.js +234 -0
- package/dist/collection/global/functions.spec.js +126 -0
- package/dist/collection/lang/lang.spec.js +20 -0
- package/dist/esm/{chartFunctions-c273c613.js → chartFunctions-37511f93.js} +31 -11
- package/dist/esm/{functions-f39e6177.js → functions-8800c690.js} +8 -105
- package/dist/{cjs/app-globals-e5411d07.js → esm/global-1e5a92fa.js} +1 -10
- package/dist/esm/index-558b5a82.js +2618 -0
- package/dist/esm/{intl-a0ebf99e.js → intl-cf443c87.js} +1 -1
- package/dist/esm/loader.js +4 -5
- package/dist/esm/priv-calendar.entry.js +5 -6
- package/dist/esm/priv-chart-popover.entry.js +5 -6
- package/dist/esm/priv-navigator-button.entry.js +3 -4
- package/dist/esm/priv-navigator-item.entry.js +3 -4
- package/dist/esm/priv-option-list.entry.js +4 -5
- package/dist/esm/ripple.js +12 -13
- package/dist/esm/wm-action-menu_2.entry.js +6 -8
- package/dist/esm/wm-button.entry.js +4 -5
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +15 -9
- package/dist/esm/wm-date-range.entry.js +8 -9
- package/dist/esm/wm-datepicker.entry.js +8 -9
- package/dist/esm/wm-file-list.entry.js +3 -4
- package/dist/esm/wm-file.entry.js +4 -5
- package/dist/esm/wm-input.entry.js +5 -6
- package/dist/esm/wm-line-chart.entry.js +14 -15
- package/dist/esm/wm-modal-pss_3.entry.js +10 -13
- package/dist/esm/wm-modal_3.entry.js +10 -13
- package/dist/esm/wm-navigation_3.entry.js +10 -13
- package/dist/esm/wm-navigator.entry.js +3 -4
- package/dist/esm/wm-nested-select.entry.js +7 -8
- package/dist/esm/wm-optgroup.entry.js +4 -5
- package/dist/esm/wm-option_2.entry.js +8 -10
- package/dist/esm/wm-pagination.entry.js +4 -5
- package/dist/esm/wm-progress-indicator_3.entry.js +7 -9
- package/dist/esm/wm-search.entry.js +6 -7
- package/dist/esm/wm-snackbar.entry.js +6 -7
- package/dist/esm/wm-tab-item_3.entry.js +8 -11
- package/dist/esm/wm-tag-input.entry.js +7 -8
- package/dist/esm/wm-tag-option.entry.js +2 -2
- package/dist/esm/wm-textarea.entry.js +5 -6
- package/dist/esm/wm-timepicker.entry.js +5 -6
- package/dist/esm/wm-toggletip.entry.js +5 -6
- package/dist/esm/wm-uploader.entry.js +6 -7
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/chartFunctions-37511f93.js +1 -0
- package/dist/esm-es5/functions-8800c690.js +1 -0
- package/dist/esm-es5/global-1e5a92fa.js +1 -0
- package/dist/esm-es5/index-558b5a82.js +1 -0
- package/dist/esm-es5/{intl-a0ebf99e.js → intl-cf443c87.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/priv-option-list.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/loader/cdn.js +2 -1
- package/dist/loader/index.cjs.js +2 -1
- package/dist/loader/index.d.ts +0 -3
- package/dist/loader/index.es2017.js +2 -1
- package/dist/loader/index.js +2 -1
- package/dist/ripple/{p-bda9a663.system.entry.js → p-0ba2e506.system.entry.js} +1 -1
- package/dist/ripple/{p-0f09ccc6.system.entry.js → p-0e36d5b8.system.entry.js} +1 -1
- package/dist/ripple/{p-658f146a.system.entry.js → p-1a4b6b02.system.entry.js} +1 -1
- package/dist/ripple/{p-165b5d3d.system.entry.js → p-1a71d867.system.entry.js} +1 -1
- package/dist/ripple/{p-79a6b32f.system.entry.js → p-1aea1ad2.system.entry.js} +1 -1
- package/dist/ripple/p-22cfff23.entry.js +1 -0
- package/dist/ripple/p-32507c13.system.entry.js +1 -0
- package/dist/ripple/{p-823d7b4e.system.entry.js → p-32bf3f5b.system.entry.js} +1 -1
- package/dist/ripple/{p-bb25b9af.system.js → p-3322823d.system.js} +1 -1
- package/dist/ripple/p-39e26322.entry.js +1 -0
- package/dist/ripple/{p-23bcc6d4.system.entry.js → p-3f40f06b.system.entry.js} +1 -1
- package/dist/ripple/p-3fa38234.entry.js +1 -0
- package/dist/ripple/p-44f426ad.entry.js +1 -0
- package/dist/ripple/{p-391d9f32.system.entry.js → p-460e9ef3.system.entry.js} +1 -1
- package/dist/ripple/{p-c34c9cbb.system.entry.js → p-4743176d.system.entry.js} +1 -1
- package/dist/ripple/{p-13b1d775.entry.js → p-48e09589.entry.js} +1 -1
- package/dist/ripple/{p-4c1efa04.system.js → p-49c23d69.system.js} +1 -1
- package/dist/ripple/p-4de728e1.entry.js +1 -0
- package/dist/ripple/p-4ff87702.system.entry.js +1 -0
- package/dist/ripple/p-50bcde40.js +1 -0
- package/dist/ripple/{p-362b19a2.entry.js → p-544925c2.entry.js} +1 -1
- package/dist/ripple/p-568c595f.js +2 -0
- package/dist/ripple/{p-bee47080.system.entry.js → p-58668e84.system.entry.js} +1 -1
- package/dist/ripple/{p-83d1c1fb.entry.js → p-59bb36fc.entry.js} +1 -1
- package/dist/ripple/p-5e9c9f0d.entry.js +1 -0
- package/dist/ripple/{p-39dd3870.system.entry.js → p-608f69c1.system.entry.js} +1 -1
- package/dist/ripple/{p-043901ab.system.entry.js → p-65d26233.system.entry.js} +1 -1
- package/dist/ripple/{p-5c25870c.entry.js → p-68e04222.entry.js} +1 -1
- package/dist/ripple/p-6e72a06c.entry.js +1 -0
- package/dist/ripple/{p-5c62e26d.entry.js → p-702252ba.entry.js} +1 -1
- package/dist/ripple/{p-a40296fc.system.entry.js → p-704be1e8.system.entry.js} +1 -1
- package/dist/ripple/{p-9708c995.js → p-710c6115.js} +1 -1
- package/dist/ripple/{p-42596f25.entry.js → p-7478303e.entry.js} +1 -1
- package/dist/ripple/p-79043436.entry.js +1 -0
- package/dist/ripple/p-797d65b7.entry.js +1 -0
- package/dist/ripple/{p-fc170968.system.entry.js → p-79d4f14b.system.entry.js} +1 -1
- package/dist/ripple/{p-59e50ea1.system.entry.js → p-7e0fc193.system.entry.js} +1 -1
- package/dist/ripple/{p-a3f9e2f6.system.entry.js → p-84e7a8df.system.entry.js} +1 -1
- package/dist/ripple/{p-d0736520.system.entry.js → p-878fd4af.system.entry.js} +1 -1
- package/dist/ripple/{p-cd0cc88d.entry.js → p-88ebddd7.entry.js} +1 -1
- package/dist/ripple/p-8cd8f784.entry.js +1 -0
- package/dist/ripple/p-8d72d140.entry.js +1 -0
- package/dist/ripple/p-94495341.entry.js +1 -0
- package/dist/ripple/p-94717864.entry.js +1 -0
- package/dist/ripple/{p-0ed1e17e.entry.js → p-9d461de5.entry.js} +1 -1
- package/dist/ripple/p-9eaa0acb.system.entry.js +1 -0
- package/dist/ripple/{p-3376581a.system.entry.js → p-a04ef164.system.entry.js} +1 -1
- package/dist/ripple/{p-d1751f87.system.entry.js → p-a2936bcb.system.entry.js} +1 -1
- package/dist/ripple/p-a30e2948.entry.js +1 -0
- package/dist/ripple/p-a69425b0.entry.js +1 -0
- package/dist/ripple/p-ab8d78cc.system.js +2 -0
- package/dist/ripple/p-adc254e6.entry.js +1 -0
- package/dist/ripple/p-b02048a9.entry.js +1 -0
- package/dist/ripple/p-b2706394.entry.js +1 -0
- package/dist/ripple/{p-3bde67f1.system.entry.js → p-b5971475.system.entry.js} +1 -1
- package/dist/ripple/{p-8240dd82.system.entry.js → p-b5c371aa.system.entry.js} +1 -1
- package/dist/ripple/{p-76d248e6.entry.js → p-b976c84b.entry.js} +1 -1
- package/dist/ripple/{p-3ec9a2a2.system.entry.js → p-bd547650.system.entry.js} +1 -1
- package/dist/ripple/{p-0c7cf863.system.entry.js → p-bfc1065f.system.entry.js} +1 -1
- package/dist/ripple/{p-62a99b68.entry.js → p-c2b5d9e5.entry.js} +1 -1
- package/dist/ripple/p-c3fa1588.system.js +1 -0
- package/dist/ripple/p-c4e329e9.entry.js +1 -0
- package/dist/ripple/{p-72e05203.system.entry.js → p-c7e30eb0.system.entry.js} +1 -1
- package/dist/ripple/{p-9287d70b.system.entry.js → p-caec4f57.system.entry.js} +1 -1
- package/dist/ripple/{p-35c7696e.entry.js → p-ce44ba70.entry.js} +1 -1
- package/dist/ripple/{p-c62342c4.entry.js → p-d57e8196.entry.js} +1 -1
- package/dist/ripple/p-dc77d98a.entry.js +1 -0
- package/dist/ripple/{p-3c407959.system.entry.js → p-ddcbb694.system.entry.js} +1 -1
- package/dist/ripple/{p-35218430.system.entry.js → p-de272ae7.system.entry.js} +1 -1
- package/dist/ripple/{p-cca7a151.system.entry.js → p-e2c6052b.system.entry.js} +1 -1
- package/dist/ripple/p-e6f884a6.js +1 -0
- package/dist/ripple/p-e844cbf3.entry.js +1 -0
- package/dist/ripple/p-eca78c2b.js +1 -0
- package/dist/ripple/p-edd87140.system.js +1 -0
- package/dist/ripple/p-efdad4ea.system.js +1 -0
- package/dist/ripple/{p-35644be9.system.entry.js → p-f22e26b6.system.entry.js} +1 -1
- package/dist/ripple/p-f5bc8926.entry.js +1 -0
- package/dist/ripple/{p-ead461fe.system.entry.js → p-f6eff655.system.entry.js} +1 -1
- package/dist/ripple/{p-22dda578.system.entry.js → p-f779ec68.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +10 -3
- package/package.json +1 -1
- package/dist/cjs/index-788526f5.js +0 -1859
- package/dist/esm/index-130e07bb.js +0 -1828
- package/dist/esm-es5/app-globals-c3920c78.js +0 -1
- package/dist/esm-es5/chartFunctions-c273c613.js +0 -1
- package/dist/esm-es5/functions-f39e6177.js +0 -1
- package/dist/esm-es5/index-130e07bb.js +0 -1
- package/dist/ripple/p-0f356c45.entry.js +0 -1
- package/dist/ripple/p-105e5721.system.entry.js +0 -1
- package/dist/ripple/p-152b20ae.entry.js +0 -1
- package/dist/ripple/p-2a30d411.system.entry.js +0 -1
- package/dist/ripple/p-32b88ab2.entry.js +0 -1
- package/dist/ripple/p-3ceed568.entry.js +0 -1
- package/dist/ripple/p-3f486eed.system.js +0 -1
- package/dist/ripple/p-4a1601c5.js +0 -1
- package/dist/ripple/p-4b8cb0a4.entry.js +0 -1
- package/dist/ripple/p-5d8386b4.system.entry.js +0 -1
- package/dist/ripple/p-68a96191.entry.js +0 -1
- package/dist/ripple/p-6c0c2e1f.entry.js +0 -1
- package/dist/ripple/p-72f7d6e1.system.js +0 -1
- package/dist/ripple/p-76542ab3.entry.js +0 -1
- package/dist/ripple/p-76f9acec.entry.js +0 -1
- package/dist/ripple/p-86a5178d.entry.js +0 -1
- package/dist/ripple/p-89a2db02.js +0 -1
- package/dist/ripple/p-8d4f674f.entry.js +0 -1
- package/dist/ripple/p-8f5ac061.entry.js +0 -1
- package/dist/ripple/p-96505312.js +0 -1
- package/dist/ripple/p-985fb8b9.entry.js +0 -1
- package/dist/ripple/p-aaaee14f.entry.js +0 -1
- package/dist/ripple/p-b4e7d63f.entry.js +0 -1
- package/dist/ripple/p-ba047c79.entry.js +0 -1
- package/dist/ripple/p-ba32888d.system.js +0 -1
- package/dist/ripple/p-c5c31818.entry.js +0 -1
- package/dist/ripple/p-cef8a45b.system.js +0 -2
- package/dist/ripple/p-d528f5e4.entry.js +0 -1
- package/dist/ripple/p-d9da0502.js +0 -2
- package/dist/ripple/p-da424bdb.entry.js +0 -1
- package/dist/ripple/p-f39b556d.entry.js +0 -1
- package/dist/ripple/p-f98f9a32.entry.js +0 -1
- package/dist/ripple/p-f9a71cf6.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./index-130e07bb.js";var version="5.11.1";if(window.navigator.plugins.length>0){console.log("%cRipple component library %c%s","color: #575195; font-weight: bold","font-weight: bold",version)}function wmComponentKeys(o){if(o.key=="Tab"){var n=new Event("wmUserIsTabbing");window.dispatchEvent(n);document.querySelector("body").classList.add("wmcl-user-is-tabbing")}if(o.key=="ArrowLeft"||o.key=="ArrowUp"||o.key=="ArrowRight"||o.key=="ArrowDown"){var n=new Event("wmUserIsKeying");window.dispatchEvent(n);document.querySelector("body").classList.add("wmcl-user-is-keying")}}function wmComponentMouseDownOnce(){var o=new Event("wmUserIsNotTabbing");window.dispatchEvent(o);document.querySelector("body").classList.remove("wmcl-user-is-tabbing");document.querySelector("body").classList.remove("wmcl-user-is-keying")}window.addEventListener("keydown",wmComponentKeys);window.addEventListener("mousedown",wmComponentMouseDownOnce);var tooltipContainer=document.createElement("div");tooltipContainer.id="wm-tooltip-container";var tooltipEl=document.createElement("div");tooltipEl.id="wm-tooltip";tooltipEl.classList.add("wm-tooltip");tooltipEl.setAttribute("popover","manual");tooltipEl.setAttribute("aria-hidden","true");var tooltipStyles=document.createElement("style");tooltipStyles.textContent="\n.wm-tooltip {\n position: fixed;\n overflow: hidden;\n pointer-events: none;\n line-height: normal;\n font-family: inherit;\n font-size: 0.875rem;\n text-transform: none;\n font-weight: normal;\n background: var(--wmcolor-tooltip-background);\n color: var(--wmcolor-tooltip-text);\n z-index: 999999;\n max-width: var(--wmTooltipMaxWidth, 13.75rem);\n margin-right: 1.5rem;\n padding: 0.375rem;\n transition-property: opacity;\n transition-delay: 0s;\n opacity: 0;\n inset: unset;\n top: 0;\n left: 0;\n transform: translateZ(0);\n will-change: transform;\n transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));\n border: none;\n}\n\n.wm-tooltip:popover-open {\n opacity: 0;\n}\n\n.wm-tooltip.show {\n transition-delay: 500ms;\n opacity: 1;\n}\n";document.head.appendChild(tooltipStyles);tooltipContainer.appendChild(tooltipEl);document.querySelector("body").appendChild(tooltipContainer);var globalFn=function(){};var globalScripts=globalFn;export{globalScripts as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function o(e){try{c(n["throw"](e))}catch(e){i(e)}}function c(e){e.done?r(e.value):a(e.value).then(s,o)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(r=0)),r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};import{h}from"./index-130e07bb.js";import{i as intl,c as checkForActiveElInShadow,e as safeMultiplyFloat,f as getPosition}from"./functions-f39e6177.js";var colors={salmon:"#ff5f4e",cyan:"#19a1a9",forest:"#088000",sleet:"#7f97ad",midnight:"#2e1b46",lavender:"#8b86ca",periwinkle:"#575195",gray:"#6b6b6b"};var allChartsDetails={doughnut:{size:155,colors:[colors.forest,colors.gray],thickness:.73,padding:25,category:"doughnut"},doughnut1:{size:130,colors:[colors.lavender,colors.midnight,colors.gray],thickness:.5,padding:90,category:"doughnut"},doughnut2:{size:130,colors:[colors.periwinkle,colors.cyan,colors.midnight,colors.salmon,colors.gray],thickness:.5,padding:90,category:"doughnut"},doughnut3:{size:130,colors:[colors.lavender,colors.midnight,"#0089e4",colors.forest,"#ea8500","#d54f41","#146ca9"],thickness:.5,padding:90,category:"doughnut"},bar:{size:350,colors:[colors.forest,colors.gray],padding:0,category:"stackedBar"},bar2:{size:400,colors:[colors.gray,colors.lavender,colors.periwinkle,colors.midnight,colors.cyan,colors.salmon],padding:0,category:"stackedBar"},bar3:{size:300,colors:["#0d696e",colors.cyan,"#8e4129",colors.salmon],padding:0,category:"stackedBar"},bar4:{size:400,colors:[colors.salmon,colors.cyan,colors.periwinkle],padding:0,category:"stackedBar"},bar5:{size:400,colors:[colors.gray,colors.lavender,colors.midnight,"#0089e4",colors.forest,"#ea8500","#d54f41","#146ca9"],padding:0,category:"stackedBar"},bar6:{size:400,colors:[colors.lavender],padding:0,category:"simpleBar"},bar7:{size:400,colors:[colors.periwinkle,colors.cyan,colors.salmon,colors.gray],padding:0,category:"simpleBar"}};function showValue(e){return e==="percentage"||e==="amount"?"show-values":""}var textHiddenMessage=intl.formatMessage({id:"chart.hiddenValues",defaultMessage:"Values are hidden when too close together.",description:"Text displayed when a chart has some values hidden"});var seeDetailsMessage=intl.formatMessage({id:"chart.clickToSeeDetails",defaultMessage:"Click or use arrow keys to see details.",description:"Text displayed, guiding user to interact to see more details."});function abbrNumber(e){return e>999||e<-999?Math.round(e/100)/10+"K":e}function amountToPercent(e,t,r){return r?Math.round(e*100/t):Math.round(e*1e4/t)/100}function amountToDegree(e,t){return e*360/t}function toFixed(e){return parseFloat((Math.floor(e*100)/100).toFixed(2))}function polarToCartesian(e,t,r,n){var a=toFixed(e+e*t*Math.cos(Math.PI*r/180));var i=toFixed(e+e*t*Math.sin(Math.PI*r/180));if(n!==undefined){var s=toFixed(e+e*t*Math.cos(Math.PI*n/180));var o=toFixed(e+e*t*Math.sin(Math.PI*n/180));return{x1:a,y1:i,x2:s,y2:o}}return{x:a,y:i}}function getArc(e,t,r,n,a){var i=toFixed(a/2*e);return"A ".concat(i,", ").concat(i," 0 ").concat(t," ").concat(toFixed(r),", ").concat(toFixed(n))}function scale(e,t,r,n,a){var i=(e-t)*(a-n)/(r-t)+n;return i<n?n:i>a?a:i}function minSpacing(e){return scale(e,300,900,70,150)}function getMaxTicks(e){return Math.round(e/minSpacing(e))}function getInterval(e,t){var r=e/t;var n=Math.pow(10,Math.floor(Math.log10(r)));var a=r/n;var i;if(a>5){i=10*n}else if(a>3){i=5*n}else if(a>2){i=3*n}else if(a>1.5){i=2*n}else if(a>1){i=1.5*n}else{i=n}return i}function handleSliceKeyDown(e){if(this.popoverEl&&this.popoverEl.open&&e.key==="Enter"){var t=this.popoverEl.querySelector("button");t&&t.click()}}function handleSliceClick(e,t){if(this.popoverEl&&!this.isTabbing){t.coords={x:e.clientX,y:e.clientY};openPopover(this.popoverEl,t);highlightSegmentInfo(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),t)}}function handleSliceFocus(e,t){if(this.popoverEl&&this.isTabbing){this.focusedSliceId=t.id;t.coords=getPosition(e.target);t.coords.x=t.coords.x+30;t.coords.y=t.coords.y+30;openPopover(this.popoverEl,t);highlightSegmentInfo(Array.from(this.el.shadowRoot.querySelectorAll("[data-segmentindex")),t)}}function handleChartKeydown(e){switch(e.key){case"ArrowUp":case"ArrowLeft":e.preventDefault();this.isTabbing=true;focusPrevious.call(this);break;case"ArrowRight":case"ArrowDown":e.preventDefault();this.isTabbing=true;focusNext.call(this);break;case"Tab":exitChart.call(this);break;case"Escape":this.popoverEl.open=false;this.userIsNavigating=false;break}}function openPopover(e,t){e.open=false;if(t.title&&t.text){e.sliceDetails=Object.assign({},t);window.setTimeout((function(){return e.open=true}),30)}}function focusNext(){var e=checkForActiveElInShadow(document.activeElement);var t=(this.sliceEls.indexOf(e)+1)%this.sliceEls.length;focusSlice.call(this,t)}function focusPrevious(){if(this.sliceEls){var e=checkForActiveElInShadow(document.activeElement);var t=this.sliceEls.indexOf(e);if(t===-1){t=0}else if(t===0){t=this.sliceEls.length-1}else{t-=1}focusSlice.call(this,t)}}function focusSlice(e){var t=this;if(this.sliceEls&&this.el){this.userIsNavigating=true;this.componentWrapperEl.tabIndex=-1;this.el.focusable=false;this.sliceEls.map((function(e){e.tabIndex=-1;e.focusable=false}));this.sliceEls[e].tabIndex=0;this.sliceEls[e].focusable=true;this.sliceEls[e].focus();this.focusedSliceId=this.sliceEls[e].id;window.setTimeout((function(){if(t.popoverEl){t.popoverEl.open=true}}),10)}}function exitChart(){var e=this;this.focusedSliceId=undefined;this.sliceEls&&this.sliceEls.map((function(e){e.tabIndex=-1;e.focusable=false}));this.userIsNavigating=false;window.setTimeout((function(){e.componentWrapperEl.tabIndex=0;e.el.focusable=true;if(e.popoverEl){e.popoverEl.open=false}}),100)}function getDetails(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;var a=this;return __generator(this,(function(i){this.slicesDetails=[];t=0;r=Array.from(this.el.children);this.total=r.reduce((function(e,t){return e+=parseInt(t.getAttribute("amount")||"0")}),0);n=__spreadArray([],allChartsDetails[e].colors,true);if(this.chartType==="bar2"){if(r.length<=5){n.splice(1,1)}if(r.length<=4){n.splice(2,1)}}if(e==="bar3"&&r.length===2){n=[n[1],n[3]]}if(e==="doughnut2"&&r.length<5){n.splice(2,1);if(r.length<4){n.shift()}}if(e==="bar5"&&!this.notStartedColor){n.shift()}r.forEach((function(r,i){var s=parseInt(r.getAttribute("amount")||"0");var o=amountToPercent(s,a.total,true);var c=i;if(e==="bar6"){c=0}var u={amount:s,visualAmount:s,perc:o,legend:r.getAttribute("legend"),color:n[c]||colors.gray,offset:t,id:"".concat(a.uid,"-").concat(i+1),title:r.getAttribute("popover-title"),text:r.getAttribute("popover-text"),buttonText:r.getAttribute("popover-button-text"),sliceRef:r,inSmallCluster:false,index:i};t+=s;a.slicesDetails.push(u)}));return[2]}))}))}function sortSlicesDetails(e,t){var r=__spreadArray([],e,true).sort((function(e,t){return e.amount===t.amount?0:e.amount>t.amount?-1:1}));var n=0;r.filter((function(e){return e.amount>0})).forEach((function(e,a){var i=r[a===0?r.length-1:a-1];var s=r[a===r.length-1?0:a+1];var o=amountToPercent(i.amount,t,true);var c=amountToPercent(s.amount,t,true);var u=e.perc===0?8:5;var h=e.perc<4;var l=o<u;var d=c<u;var f=h&&(l||d);e.inSmallCluster=f;e.offset=n;n+=e.amount}));return r}function getPathData(e,t,r){var n=amountToDegree(t,this.total)-90;var a=e/this.total*360;var i=n+a;var s=a>180?"1 1":"0 1";var o=a>180?"1 0":"0 0";var c=this.chartDetails.size/2;var u=this.chartDetails.thickness;var h=1;var l=r==="doughnut";var d=1.5;var f=l?2.25:3;if(a===360){i-=.01}var v=polarToCartesian(c,h,n+d,i);var g=polarToCartesian(c,u,n+f,i);var p="M ".concat(v.x1,", ").concat(v.y1," ");var m=getArc(h,s,v.x2,v.y2,this.chartDetails.size);var b=" L ".concat(g.x2,", ").concat(g.y2," ");var x=getArc(u,o,g.x1,g.y1,this.chartDetails.size);return p+m+b+x+" z"}function renderInstructionsText(){var e=intl.formatMessage({id:"chart.instructions",defaultMessage:"Use arrow keys to browse elements, press Tab to exit.",description:"For screen readers only, instructions on how to interact with the chart component"});return h("div",{id:"chart-instructions"},e)}function renderFilter(){return h("defs",null,h("filter",{id:"wmHoverDropShadow"},h("feGaussianBlur",{stdDeviation:"3"}),h("feOffset",{result:"offsetblur"}),h("feFlood",{"flood-color":"#333"}),h("feComposite",{operator:"in",in2:"offsetblur"}),h("feMerge",null,h("feMergeNode",null),h("feMergeNode",{in:"SourceGraphic"}))))}function applyMinimumAngle(e,t,r){var n=t.map((function(e){return amountToDegree(e.amount,r)}));var a=n.some((function(t){return t!==0&&t<e}));if(a){var i=n.map((function(t){return t==0?t:Math.max(t,e)}));var s=i.reduce((function(t,r){return t+(r>e&&r!==0?r:0)}),0);var o=i.reduce((function(t,r){return t+(r>e&&r!==0?0:r)}),0);var c=360-o;var u=s-c;var h=u/c;var l=i.map((function(t){return t>e?t-h*t:t==0?0:e}));var d=0;t=t.map((function(e,t){var n=l[t]/360*r;var a=d;d+=n;return Object.assign(Object.assign({},e),{visualAmount:n,offset:a})}))}return t}function renderDoughnut(e){var t=this;var r=this.chartDetails.size+this.chartDetails.padding;var n=e==="doughnut";var a=n?this.slicesDetails:sortSlicesDetails(this.slicesDetails,this.total);a=applyMinimumAngle(7,a,this.total);var i=amountToPercent(a[0].amount,this.total,true);i=i===0?"<1%":i+"%";return h("div",{class:"chart-wrapper doughnut-wrapper"},h("svg",{width:r+"px",height:r+"px",id:"graphic-".concat(this.uid),class:"doughnut-svg"},renderFilter(),a.map((function(r){return renderPath.call(t,r,e)})),renderFocusOutline.call(this),n?h("text",{class:"value",x:"50%",y:"50%","font-size":"1.5rem","font-weight":"500","text-anchor":"middle","dominant-baseline":"middle"},i):h("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")"),"text-anchor":"middle","dominant-baseline":"middle"},a.map((function(e){return e.amount>0&&!e.inSmallCluster?renderDoughnutText.call(t,e):""})))))}function highlightSegmentInfo(e,t){e.forEach((function(e){if(e.dataset.segmentindex&&parseInt(e.dataset.segmentindex)!==t.index){e.classList.add("faded")}else{e.classList.remove("faded")}}))}function removeSegmentInfoHighlight(e){e.forEach((function(e){e.classList.remove("faded")}))}function renderPath(e,t){var r=this;var n=amountToPercent(e.amount,this.total,true)+"%";return!isNaN(e.amount)&&h("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")")},h("path",{id:e.id,class:"segment doughnut-segment",fill:e.visualAmount?e.color:"transparent",d:getPathData.call(this,e.visualAmount,e.offset,t),onClick:function(t){return handleSliceClick.call(r,t,e)},onFocus:function(t){return handleSliceFocus.call(r,t,e)},onKeyDown:function(e){return handleSliceKeyDown.call(r,e)},role:"img","aria-label":"".concat(e.legend,", ").concat(n),"data-segmentindex":e.index}))}function renderFocusOutline(){return this.isTabbing?h("g",{transform:"translate(".concat(this.chartDetails.padding/2,", ").concat(this.chartDetails.padding/2,")")},h("use",{tabindex:-1,id:"kfbg1",xlinkHref:"#".concat(this.focusedSliceId)}),h("use",{tabindex:-1,id:"kfstroke",xlinkHref:"#".concat(this.focusedSliceId)}),h("use",{tabindex:-1,id:"kfbg2",xlinkHref:"#".concat(this.focusedSliceId)})):""}function renderDoughnutText(e){var t=amountToDegree(e.offset+e.visualAmount/2,this.total);var r=polarToCartesian(this.chartDetails.size/2,1.4,t-90),n=r.x,a=r.y;return h("text",{class:"value",x:n+"px",y:a+"px","data-segmentindex":e.index},"".concat(e.perc>0?e.perc:"<1","%"))}function renderStackedBar(e){var t=this;var r=e==="bar";var n=this.el.shadowRoot.querySelectorAll(".value");if(n.length>0){requestAnimationFrame((function(){var e=[];var r=4;var a=false;n.forEach((function(t){t.classList.remove("hidden");var n=parseInt(t.dataset.value);if(e.length>0&&n!=0){var i=t.getBoundingClientRect().left-r;e.forEach((function(e){var r=parseInt(e.dataset.value);var s=e.getBoundingClientRect().right>i;if(s){var o=n<r?t:e;o.classList.add("hidden");a=true}}))}if(!t.classList.contains("hidden")&&n>0){e.push(t)}}));(t.isBar||t.isDoughnut)&&t.showHiddenValuesMessage(a)}))}return h("div",{class:"chart-wrapper bar-wrapper"},r?h("div",{class:"single-perc"},amountToPercent(this.slicesDetails[0].amount,this.total,true)+"%"):"",this.chartType==="bar3"&&this.drawAxis(),h("div",{class:"inner-stacked-bar-wrapper ".concat(showValue(this.valueFormat))},!r?h("div",{class:"values ".concat(this.valueFormat)},this.slicesDetails.map((function(e){return t.renderBarText(e,5)}))):"",h("div",{class:"stacked-bar-segments-wrapper"},this.slicesDetails.map((function(e){return renderStackedBarSegment.call(t,e,5)}))),r?renderCompletionMessage.call(this):""),this.chartType==="bar3"?h("div",{class:"bar3-axis-label","aria-hidden":"true"},h("span",null,"0%"),h("span",null,"100%")):"")}function renderStackedBarSegment(e,t){var r=this;var n=amountToPercent(e.amount,this.total,false);var a=this.el.shadowRoot.querySelector(".stacked-bar-segments-wrapper");var i=a?a.offsetWidth:this.el.offsetWidth;var s=n/100*i>=t;var o=s||e.amount==0?"".concat(n,"%"):"".concat(t,"px");var c="";if(this.valueFormat=="percentage"){c="".concat(amountToPercent(e.amount,this.total,true)," %")}else if(this.valueFormat=="amount"){c=e.amount.toString()}return h("div",{class:"segment stacked-bar-segment ".concat(amountToPercent(e.amount,this.total,false)===0?"zero":""," ").concat(s?"":"fixed-width"),style:{backgroundColor:e.color,width:o},onClick:function(t){return handleSliceClick.call(r,t,e)},onFocus:function(t){return handleSliceFocus.call(r,t,e)},onKeyDown:function(e){return handleSliceKeyDown.call(r,e)},"data-segmentindex":e.index},h("span",{class:"sr-only"},"".concat(e.legend," ").concat(c)))}function renderSimpleBar(e){var t=this;var r=this.slicesDetails.map((function(e){return e.amount})).reduce((function(e,t){return e>t?e:t}));var n=parseInt(getComputedStyle(this.el).getPropertyValue("--labelWidth"),10);var a=48;var i=this.el.getBoundingClientRect().width;var s=i-n-a;var o=getMaxTicks(s);var c=getInterval(r,o);var u=o*c;var l=Math.floor((u-r)/c);o-=l;this.el.style.setProperty("--backgroundSize",100/o+"%");this.el.style.setProperty("--labelWidth",this.labelWidth);if(e==="bar7"&&!this.showBarLegend){this.el.style.setProperty("--labelWidth","0px")}var d=[];this.slicesDetails.forEach((function(n){n.legend&&d.push(renderSimpleBarLegend(n.legend,t.showBarLegend,e));d.push(renderSimpleBarItem.call(t,n,c,o,r))}));var f=[];for(var v=1;v<=o;v++){var g=abbrNumber(safeMultiplyFloat(v,c));f.push(h("div",{class:"tick"},h("span",null,g)))}var p=e==="bar6"&&this.showGrid&&this.el.getBoundingClientRect().width>300;return h("div",{class:"chart-wrapper simple-bar-wrapper"},h("div",{class:"chart ".concat(showValue(this.valueFormat))},p&&h("div",{class:"gridlines"}),h("div",{class:"rows"},d)),p&&h("div",{class:"x-axis","aria-hidden":"true"},h("div",{class:"zero"},h("span",null,"0")),f))}function renderSimpleBarLegend(e,t,r){var n=r==="bar7"&&!t?" hidden":"";return h("label",{class:"label".concat(n)},e)}function renderSimpleBarItem(e,t,r,n){var a=this;var i=this.currentChartType==="bar6"?t*r:n;var s=amountToPercent(e.amount,i,false);var o=s?s+"%":"1px";var c=abbrNumber(e.amount);var u=this.valueFormat==="amount"?c:"";if(this.currentChartType==="bar6"&&this.valueFormat==="percentage"){u=e.amount+"%"}else if(this.currentChartType==="bar7"&&this.valueFormat==="percentage"){u=(this.total===0?"0":amountToPercent(e.amount,this.total,true))+"%"}return h("div",{class:"bar segment",style:{backgroundColor:e.color,width:o},onClick:function(t){return handleSliceClick.call(a,t,e)},onFocus:function(t){return handleSliceFocus.call(a,t,e)},onKeyDown:function(e){return handleSliceKeyDown.call(a,e)},"data-segmentindex":e.index},h("div",{class:"value"},u))}function renderLegend(e){var t=this;if(this.showLegend){var r=this.slicesDetails.reduce((function(e,t){return e=t.inSmallCluster?true:e}),false);this.isDoughnut&&this.showHiddenValuesMessage(r);return h("div",{class:"legend-wrapper"},h("div",{class:"legend ".concat(e," ").concat(this.mode==="bar"?"--top":"--bottom"),"aria-hidden":"true"},this.slicesDetails.map((function(e){var r=t.printModeFormat=="amount"?"".concat(e.amount,"/").concat(t.total):"".concat(amountToPercent(e.amount,t.total,true),"%");if(!!e.amount||!!e.legend){return renderLegendItem.call(t,{key:e.legend,color:e.color},r,e)}}))),this.isDoughnut&&!this.printMode&&renderHiddenValuesMessage())}}function renderLegendItem(e,t,r){var n=this;if(t===void 0){t=""}if(r===void 0){r=null}var a=function(e){if(r){r.coords={x:e.clientX,y:e.clientY};openPopover(n.popoverEl,r);highlightSegmentInfo(Array.from(n.el.shadowRoot.querySelectorAll("[data-segmentindex")),r)}};return h("div",{class:"legend-item",onClick:function(e){return a(e)},"data-segmentindex":r?r.index:null},h("div",{class:"legend-color",style:{backgroundColor:e.color}}),h("div",{class:"legend-text"},e.key,t&&h("span",{class:"print-value ".concat(this.printMode?"force-visible":"")},": ",t)))}function renderCompletionMessage(){if(this.completionMessage){return h("div",{class:"completion-message"},this.completionMessage)}}function renderHiddenValuesMessage(){return h("div",{class:"hidden-values-warning hidden"},textHiddenMessage,h("br",null),seeDetailsMessage)}export{allChartsDetails as a,renderSimpleBar as b,renderStackedBar as c,renderDoughnut as d,renderInstructionsText as e,renderLegend as f,getDetails as g,handleChartKeydown as h,renderHiddenValuesMessage as i,exitChart as j,amountToPercent as k,renderCompletionMessage as l,renderLegendItem as m,abbrNumber as n,getInterval as o,removeSegmentInfoHighlight as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var en={"chart.clickToSeeDetails":[{type:0,value:"Click or use arrow keys to see details."}],"chart.hiddenValues":[{type:0,value:"Values are hidden when too close together."}],"chart.infoButton":[{type:0,value:"Button. Click for more information."}],"chart.instructions":[{type:0,value:"Use arrow keys to browse elements, press Tab to exit."}],"chart.roleDescription":[{type:0,value:"Interactive chart"}],"date.april":[{type:0,value:"April"}],"date.august":[{type:0,value:"August"}],"date.calendarView":[{type:0,value:"Calendar View"}],"date.currentMonth":[{type:0,value:"current month"}],"date.december":[{type:0,value:"December"}],"date.february":[{type:0,value:"February"}],"date.fr":[{type:0,value:"Fr"}],"date.friday":[{type:0,value:"Friday"}],"date.instructions":[{type:0,value:"Use arrows to select a date in the table. Tab left or right to buttons for selecting previous month, next month, or the month selection table."}],"date.january":[{type:0,value:"January"}],"date.july":[{type:0,value:"July"}],"date.june":[{type:0,value:"June"}],"date.march":[{type:0,value:"March"}],"date.may":[{type:0,value:"May"}],"date.mo":[{type:0,value:"Mo"}],"date.monday":[{type:0,value:"Monday"}],"date.november":[{type:0,value:"November"}],"date.october":[{type:0,value:"October"}],"date.sa":[{type:0,value:"Sa"}],"date.saturday":[{type:0,value:"Saturday"}],"date.selectMonth":[{type:0,value:"Activate to select a month."}],"date.selectNextMonth":[{type:0,value:"Select next month"}],"date.selectNextYear":[{type:0,value:"Select next year"}],"date.selectPreviousMonth":[{type:0,value:"Select previous month"}],"date.selectPreviousYear":[{type:0,value:"Select previous year"}],"date.selectYear":[{type:0,value:"Activate to select a year."}],"date.september":[{type:0,value:"September"}],"date.su":[{type:0,value:"Su"}],"date.sunday":[{type:0,value:"Sunday"}],"date.th":[{type:0,value:"Th"}],"date.thursday":[{type:0,value:"Thursday"}],"date.today":[{type:0,value:"today"}],"date.tu":[{type:0,value:"Tu"}],"date.tuesday":[{type:0,value:"Tuesday"}],"date.we":[{type:0,value:"We"}],"date.wednesday":[{type:0,value:"Wednesday"}],"file.actionMenuLabel":[{type:0,value:"Actions"}],"file.clearErrorLabel":[{type:0,value:"Clear "},{type:1,value:"fileName"},{type:0,value:" error"}],"file.clearErrorText":[{type:0,value:"Clear"}],"file.deleteAction":[{type:0,value:"Delete File"}],"file.deleteButtonTooltip":[{type:0,value:"Delete"}],"file.downloadAction":[{type:0,value:"Download File"}],"file.downloadButtonTooltip":[{type:0,value:"Download"}],"file.previewAction":[{type:0,value:"Preview File"}],"file.previewButtonTooltip":[{type:0,value:"Preview"}],"navigation.mainNavigation":[{type:0,value:"Main"}],"navigation.showNavigation":[{type:0,value:"Show navigation"}],"navigator.WatermarkAppNavigation":[{type:0,value:"Watermark App Navigation"}],"navigator.logout":[{type:0,value:"Log Out"}],"navigator.userinfo":[{type:0,value:"User information"}],"navigator.userinfoAndProductNavigator":[{type:0,value:"User information and product navigator"}],"navigator.userinfoLabel":[{type:0,value:"for "},{type:1,value:"name"},{type:0,value:", email "},{type:1,value:"email"}],"navigator.watermarkApps":[{type:0,value:"Watermark Apps"}],"search.jumpToResult":[{type:0,value:"Jump to search result in list"}],"search.nextResult":[{type:0,value:"Press to hear next matching result"}],"search.previousResult":[{type:0,value:"Press to hear previous matching result"}],"search.resultsFound":[{offset:0,options:{"=0":{value:[{type:0,value:"No results"}]},one:{value:[{type:0,value:"1 result"}]},other:{value:[{type:7},{type:0,value:" results"}]}},pluralType:"cardinal",type:6,value:"numResults"},{type:0,value:" found"}],"search.typeToFilterResults":[{type:0,value:"Type to filter the results"}],"search.xOfYResults":[{offset:0,options:{"=0":{value:[{type:0,value:"No results found"}]},other:{value:[{type:1,value:"current"},{type:0,value:" of "},{type:1,value:"numResults"},{type:0,value:" results"}]}},pluralType:"cardinal",type:6,value:"numResults"}],"select.allOptionsDeselected":[{type:0,value:"All options deselected"}],"select.allOptionsSelected":[{type:0,value:"All options selected"}],"select.allSelected":[{type:0,value:"All selected"}],"select.deselectAll":[{type:0,value:"Deselect All"}],"select.multiPlaceholder":[{type:0,value:"Make a selection"}],"select.noSearchResults":[{type:0,value:"No results found. Please try your search again."}],"select.searchPlaceholder":[{type:0,value:"Search"}],"select.searchResultsFound":[{offset:0,options:{one:{value:[{type:0,value:"1 option found"}]},other:{value:[{type:7},{type:0,value:" options found"}]}},pluralType:"cardinal",type:6,value:"numResults"}],"select.selectAll":[{type:0,value:"Select All"}],"tagInput.addNewHelpText":[{type:0,value:"Press the Enter or Comma key to add a new tag."}],"tagInput.existingOptions":[{offset:0,options:{one:{value:[{type:0,value:"1 existing option."}]},other:{value:[{type:7},{type:0,value:" existing options."}]}},pluralType:"cardinal",type:6,value:"num"}],"tagInput.maxTagsReached":[{type:0,value:"No more tags can be added because the limit has been reached."}],"tagInput.noResults":[{type:0,value:"No results match your search."}],"tagInput.placeholderAdd":[{type:0,value:"Add a new tag"}],"tagInput.placeholderAddAndSearch":[{type:0,value:"Add or search for a tag"}],"tagInput.placeholderSearch":[{type:0,value:"Search and select a tag"}],"tagInput.selectionHelpText":[{type:0,value:"Search and select a tag."}],"tagInput.tagAdded":[{type:1,value:"tagName"},{type:0,value:" added."}],"tagInput.tagAlreadyAdded":[{type:1,value:"tagName"},{type:0,value:" has already been added."}],"tagInput.tagAreaInstructions":[{type:0,value:"tag selection. Press Backspace or Delete to remove a tag."}],"tagInput.tagLocked":[{type:1,value:"tagName"},{type:0,value:" is locked and cannot be removed."}],"tagInput.tagRemoved":[{type:1,value:"tagName"},{type:0,value:" removed."}],"tagInput.tagsAdded":[{type:0,value:"Tags added"}],"time.selectTime":[{type:0,value:"Select time"}],"time.timeFormat":[{type:0,value:"hh:mm"}],"toggletip.moreInformation":[{type:0,value:"More information"}]};var fr={"chart.clickToSeeDetails":[{type:0,value:"Cliquez ou utilisez les flèches directionnelles pour plus d'information."}],"chart.hiddenPercentages":[{type:0,value:"Les pourcentages contigus de moins de 5% ne sont pas affichés."}],"chart.infoButton":[{type:0,value:"Bouton. Activer pour plus d'informations."}],"chart.interactiveChart":[{type:0,value:"Graphique interactif. Utilisez les touches directionnelles pour parcourir les éléments, tabulation pour sortir."}],"date.april":[{type:0,value:"Avril"}],"date.august":[{type:0,value:"Août"}],"date.calendarView":[{type:0,value:"Voir le calendrier"}],"date.currentMonth":[{type:0,value:"Mois actuel"}],"date.december":[{type:0,value:"Décembre"}],"date.february":[{type:0,value:"Février"}],"date.fr":[{type:0,value:"Ve"}],"date.friday":[{type:0,value:"Vendredi"}],"date.instructions":[{type:0,value:"Utilisez les flèches directionnelles pour choisir une date dans le tableau. La touche tabulation permet d'accéder aux boutons de sélection du mois."}],"date.invalidDate":[{type:0,value:"Entrez une date valide au format "},{options:{int:{value:[{type:0,value:"jj/mm/aaaa"}]},other:{value:[{type:0,value:"aaaa/mm/jj"}]},us:{value:[{type:0,value:"mm/jj/aaaa"}]}},type:5,value:"dateFormat"},{type:0,value:"."}],"date.january":[{type:0,value:"Janvier"}],"date.july":[{type:0,value:"Juillet"}],"date.june":[{type:0,value:"Juin"}],"date.march":[{type:0,value:"Mars"}],"date.may":[{type:0,value:"Mai"}],"date.mo":[{type:0,value:"Lu"}],"date.monday":[{type:0,value:"Lundi"}],"date.november":[{type:0,value:"Novembre"}],"date.october":[{type:0,value:"Octobre"}],"date.requiredDateError":[{type:0,value:"Vous devez renseigner une date."}],"date.sa":[{type:0,value:"Sa"}],"date.saturday":[{type:0,value:"Samedi"}],"date.selectMonth":[{type:0,value:"Activer pour sélectionner le mois."}],"date.selectNextMonth":[{type:0,value:"Sélectionner le mois suivant"}],"date.selectNextYear":[{type:0,value:"Sélectionner l'année suivante"}],"date.selectPreviousMonth":[{type:0,value:"Sélectionner le mois prédédent"}],"date.selectPreviousYear":[{type:0,value:"Sélectionner l'année prédédente"}],"date.selectYear":[{type:0,value:"Activer pour sélectionner l'année."}],"date.september":[{type:0,value:"Septembre"}],"date.su":[{type:0,value:"Di"}],"date.sunday":[{type:0,value:"Dimanche"}],"date.th":[{type:0,value:"Je"}],"date.thursday":[{type:0,value:"Jeudi"}],"date.today":[{type:0,value:"aujourd'hui"}],"date.tu":[{type:0,value:"Ma"}],"date.tuesday":[{type:0,value:"Mardi"}],"date.we":[{type:0,value:"Me"}],"date.wednesday":[{type:0,value:"Mercredi"}],"global.characterLimit":[{style:null,type:2,value:"limit"},{type:0,value:" caractères autorisés."}],"global.characterLimitReached":[{type:0,value:"Aucun autre caractère ne peut être ajouté."}],"global.charactersEntered":[{style:null,type:2,value:"x"},{type:0,value:" caractères sur "},{style:null,type:2,value:"y"},{type:0,value:" ajoutés."}],"global.closeVerb":[{type:0,value:"Fermer"}],"global.genericError":[{type:0,value:"Une erreur s'est produite. Veuillez réessayer."}],"global.newWindowLink":[{type:0,value:"S'ouvre dans une nouvelle fenêtre."}],"global.next":[{type:0,value:"suivant"}],"global.openVerb":[{type:0,value:"Ouvrir"}],"global.previous":[{type:0,value:"précédent"}],"global.requiredError":[{type:0,value:"Ce champ est requis."}],"global.requiredField":[{type:0,value:"champ requis"}],"input.numberError":[{type:0,value:"Entrez un nombre valide."}],"navigation.mainNavigation":[{type:0,value:"Principale"}],"navigation.showNavigation":[{type:0,value:"Ouvrir la navigation"}],"navigator.WatermarkAppNavigation":[{type:0,value:"Navigation des Apps Watermark"}],"navigator.logout":[{type:0,value:"Se déconnecter"}],"navigator.userinfo":[{type:0,value:"Informations utilisateur"}],"navigator.userinfoAndProductNavigator":[{type:0,value:"Informations utilisateur et navigateur de produits"}],"navigator.userinfoLabel":[{type:0,value:"pour "},{type:1,value:"name"},{type:0,value:", email "},{type:1,value:"email"}],"navigator.watermarkApps":[{type:0,value:"Apps Watermark"}],"search.jumpToResult":[{type:0,value:"Aller au résultat"}],"search.nextResult":[{type:0,value:"Activer pour entendre le résultat suivant"}],"search.previousResult":[{type:0,value:"Activer pour entendre le résultat précédent"}],"search.resultsFound":[{offset:0,options:{"=0":{value:[{type:0,value:"Aucun résultat"}]},one:{value:[{type:0,value:"1 résultat"}]},other:{value:[{type:7},{type:0,value:" résultats"}]}},pluralType:"cardinal",type:6,value:"numResults"}],"search.typeToFilterResults":[{type:0,value:"Tapez pour filtrer les résultats"}],"search.xOfYResults":[{offset:0,options:{"=0":{value:[{type:0,value:"Aucun résultat"}]},other:{value:[{type:0,value:"Résultat "},{type:1,value:"current"},{type:0,value:" de "},{type:1,value:"numResults"}]}},pluralType:"cardinal",type:6,value:"numResults"}],"select.allSelected":[{type:0,value:"Tous sélectionnés"}],"select.multiPlaceholder":[{type:0,value:"Faites une sélection"}],"tagInput.existingOptions":[{offset:0,options:{one:{value:[{type:0,value:"1 option existante."}]},other:{value:[{type:7},{type:0,value:" options existantes."}]}},pluralType:"cardinal",type:6,value:"num"}],"tagInput.helpTextCanSelect":[{type:0,value:"Recherchez et sélectionnez une étiquette."}],"tagInput.helpTextEditable":[{type:0,value:"Appuyez sur Entrée ou insérez une virgule pour ajouter une nouvelle étiquette."}],"tagInput.maxTagsReached":[{type:0,value:"Le nombre maximal d'étiquettes est atteint, aucune autre ne peut être ajoutée."}],"tagInput.placeholderAdd":[{type:0,value:"Ajoutez une nouvelle étiquette"}],"tagInput.placeholderAddAndSearch":[{type:0,value:"Ajoutez ou recherchez une étiquette"}],"tagInput.placeholderSearch":[{type:0,value:"Recherchez et sélectionnez une étiquette"}],"tagInput.tagAdded":[{type:1,value:"tagName"},{type:0,value:" ajoutée."}],"tagInput.tagAlreadyAdded":[{type:1,value:"tagName"},{type:0,value:" a déjà été ajoutée."}],"tagInput.tagAreaInstructions":[{type:0,value:"selection d'étiquettes. Touche retour arrière ou supprimer pour enlever une étiquette."}],"tagInput.tagRemoved":[{type:1,value:"tag"},{type:0,value:" enlevée"}],"tagInput.tagsAddedCounter":[{type:0,value:"Étiquette ajoutée : "},{style:null,type:2,value:"x"},{type:0,value:"/"},{style:null,type:2,value:"y"}],"time.invalidTime":[{type:0,value:"Entrez une heure valide."}],"time.requiredError":[{type:0,value:"Vous devez renseigner une heure."}],"time.selectTime":[{type:0,value:"Choisissez une heure"}],"time.timeFormat":[{type:0,value:"hh:mm"}],"toggletip.moreInformation":[{type:0,value:"Plus d'information"}],"uploader.duplicateName":[{type:0,value:"Un fichier du même nom existe déjà."}],"uploader.fileDeleted":[{type:1,value:"fileName"},{type:0,value:" a été supprimé."}],"uploader.fileNotDeleted":[{type:1,value:"fileName"},{type:0,value:" n'a pas pu être supprimé."}],"uploader.fileTooLarge":[{type:0,value:"Le fichier sélectionné est trop lourd. La taille maximum est de "},{type:1,value:"size"},{type:0,value:"Mb"}],"uploader.fileUploadExceeded":[{type:0,value:"Le nombre de fichiers selectionnés dépasse la limite."}],"uploader.fileUploadLimit":[{type:0,value:"Vous avez atteint le nombre maximum de fichiers."}],"uploader.filesAdded":[{offset:0,options:{one:{value:[{type:0,value:"1 fichier ajouté"}]},other:{value:[{type:7},{type:0,value:" fichiers ajoutés"}]}},pluralType:"cardinal",type:6,value:"numFiles"}],"uploader.filesUploading":[{offset:0,options:{one:{value:[{type:0,value:"1 fichier"}]},other:{value:[{type:7},{type:0,value:" fichiers"}]}},pluralType:"cardinal",type:6,value:"num"},{type:0,value:" en cours de téléchargement."}],"uploader.finishedUploading":[{type:0,value:"Téléchargement terminé"}],"uploader.invalidFileType":[{type:0,value:"Le type du fichier est invalide. Fichiers acceptés : "},{type:1,value:"validTypes"}],"uploader.uploadProgress":[{type:0,value:"Progression de l'envoi: "},{type:1,value:"percentage"},{type:0,value:"%"}],"uploader.waitToUpload":[{type:0,value:"Attendez la fin du chargement en cours pour ajouter de nouveaux fichiers."}]};var es={"chart.clickToSeeDetails":[{type:0,value:"Haga clic o utilice las flechas para ver los detalles."}],"chart.hiddenPercentages":[{type:0,value:"Los porcentajes menores a 5 % no se mostrarán si se encuentran demasiado cerca entre ellos."}],"chart.infoButton":[{type:0,value:"Botón. Haga clic para obtener más información"}],"chart.interactiveChart":[{type:0,value:"Cuadro interactivo. Utilice las teclas de flechas para buscar elementos, presione la tecla Tab para salir."}],"date.april":[{type:0,value:"Abril"}],"date.august":[{type:0,value:"Agosto"}],"date.calendarView":[{type:0,value:"Vista de calendario"}],"date.currentMonth":[{type:0,value:"mes en curso"}],"date.december":[{type:0,value:"Diciembre"}],"date.february":[{type:0,value:"Febrero"}],"date.fr":[{type:0,value:"Vi"}],"date.friday":[{type:0,value:"Viernes"}],"date.instructions":[{type:0,value:"Utilice las flechas para seleccionar una fecha en la tabla. Presione los botones izquierdo o derecho para seleccionar el mes anterior, el mes siguiente o la tabla de selección de mes."}],"date.invalidDate":[{type:0,value:"Escriba una fecha válida en el formato "},{options:{int:{value:[{type:0,value:"dd/mm/aaaa"}]},other:{value:[{type:0,value:"aaaa/mm/dd"}]},us:{value:[{type:0,value:"mm/dd/aaaa"}]}},type:5,value:"dateFormat"},{type:0,value:"."}],"date.january":[{type:0,value:"Enero"}],"date.july":[{type:0,value:"Julio"}],"date.june":[{type:0,value:"Junio"}],"date.march":[{type:0,value:"Marzo"}],"date.may":[{type:0,value:"Mayo"}],"date.mo":[{type:0,value:"Lu"}],"date.monday":[{type:0,value:"Lunes"}],"date.november":[{type:0,value:"Noviembre"}],"date.october":[{type:0,value:"Octubre"}],"date.requiredDateError":[{type:0,value:"La fecha se require."}],"date.sa":[{type:0,value:"Sá"}],"date.saturday":[{type:0,value:"Sábado"}],"date.selectMonth":[{type:0,value:"Active para seleccionar un mes."}],"date.selectNextMonth":[{type:0,value:"Seleccionar el mes siguiente"}],"date.selectNextYear":[{type:0,value:"Seleccionar el año siguiente"}],"date.selectPreviousMonth":[{type:0,value:"Seleccionar el mes anterior"}],"date.selectPreviousYear":[{type:0,value:"Seleccionar el año anterior"}],"date.selectYear":[{type:0,value:"Active para seleccionar un año."}],"date.september":[{type:0,value:"Septiembre"}],"date.su":[{type:0,value:"Do"}],"date.sunday":[{type:0,value:"Domingo"}],"date.th":[{type:0,value:"Ju"}],"date.thursday":[{type:0,value:"Jueves"}],"date.today":[{type:0,value:"hoy"}],"date.tu":[{type:0,value:"Ma"}],"date.tuesday":[{type:0,value:"Martes"}],"date.we":[{type:0,value:"Mi"}],"date.wednesday":[{type:0,value:"Miércoles"}],"global.characterLimit":[{style:null,type:2,value:"limit"},{type:0,value:" caracteres permitido."}],"global.characterLimitReached":[{type:0,value:"No se grabaran caracteres adicionales."}],"global.charactersEntered":[{style:null,type:2,value:"x"},{type:0,value:" de "},{style:null,type:2,value:"y"},{type:0,value:" caracteres ingresados."}],"global.closeVerb":[{type:0,value:"Cerrar"}],"global.genericError":[{type:0,value:"Se produjo un error. Vuelva a intentarlo."}],"global.newWindowLink":[{type:0,value:"Se abre en una nueva ventana."}],"global.next":[{type:0,value:"siguiente"}],"global.previous":[{type:0,value:"anterior"}],"global.requiredError":[{type:0,value:"Se require este campo de ingreso."}],"global.requiredField":[{type:0,value:"Campo de ingreso requerido"}],"input.numberError":[{type:0,value:"Ingrese un numero valido por favor."}],"navigator.WatermarkAppNavigation":[{type:0,value:"Navegación de la aplicación de Watermark"}],"navigator.logout":[{type:0,value:"Cerrar sesión"}],"navigator.userinfo":[{type:0,value:"Información de Usuario"}],"navigator.userinfoAndProductNavigator":[{type:0,value:"Información de Usuario y Navegador de Productos"}],"navigator.userinfoLabel":[{type:0,value:"para "},{type:1,value:"name"},{type:0,value:", email "},{type:1,value:"email"}],"navigator.watermarkApps":[{type:0,value:"Aplicaciones de Watermark"}],"search.jumpToResult":[{type:0,value:"Salte para buscar resultados en la lista"}],"search.nextResult":[{type:0,value:"Presione para escuchar el siguiente resultado coincidente"}],"search.previousResult":[{type:0,value:"Presione para escuchar el resultado coincidente anterior"}],"search.resultsFound":[{offset:0,options:{"=0":{value:[{type:0,value:"No se encontraron resultados"}]},one:{value:[{type:0,value:"Se encontró un resultado"}]},other:{value:[{type:7},{type:0,value:" resultados encontrados"}]}},pluralType:"cardinal",type:6,value:"numResults"}],"search.typeToFilterResults":[{type:0,value:"Escriba para filtrar los resultados"}],"search.xOfYResults":[{offset:0,options:{"=0":{value:[{type:0,value:"No se encontraron resultados"}]},one:{value:[{type:0,value:"1 de 1 resultado encontrado"}]},other:{value:[{type:1,value:"current"},{type:0,value:" de "},{type:1,value:"numResults"},{type:0,value:" resultados encontrados"}]}},pluralType:"cardinal",type:6,value:"numResults"}],"select.allSelected":[{type:0,value:"Todo seleccionado"}],"select.multiPlaceholder":[{type:0,value:"Haga una elección"}],"tagInput.existingOptions":[{offset:0,options:{one:{value:[{type:0,value:"solo una opcion existe."}]},other:{value:[{type:7},{type:0,value:" opciones existen."}]}},pluralType:"cardinal",type:6,value:"num"}],"tagInput.helpTextCanSelect":[{type:0,value:"Buscsa y selecciona una etiqueta."}],"tagInput.helpTextEditable":[{type:0,value:"Presione la tecla de enter o coma para agregar una nueva etiqueta."}],"tagInput.maxTagsReached":[{type:0,value:"Se ha alcanzado el limite máximo de etiquetas, no se pueden agregar etiquetas adicionales."}],"tagInput.placeholderAdd":[{type:0,value:"Agrega una nueva etiqueta"}],"tagInput.placeholderAddAndSearch":[{type:0,value:"Agrega o busca por una etiqueta"}],"tagInput.placeholderSearch":[{type:0,value:"Buscsa y selecciona una etiqueta"}],"tagInput.tagAdded":[{type:1,value:"tagName"},{type:0,value:" agregada."}],"tagInput.tagAlreadyAdded":[{type:1,value:"tagName"},{type:0,value:" ya ha side añadida."}],"tagInput.tagAreaInstructions":[{type:0,value:"Selección de etiquetas. Presione la tecla retroceso o eliminar para quitar una etiqueta."}],"tagInput.tagRemoved":[{type:1,value:"tag"},{type:0,value:" quitado"}],"tagInput.tagsAddedCounter":[{type:0,value:"Etiquetas añadidas: "},{style:null,type:2,value:"x"},{type:0,value:"/"},{style:null,type:2,value:"y"}],"time.invalidTime":[{type:0,value:"Ingrese un tiempo valido por favor."}],"time.requiredError":[{type:0,value:"Se require una hora. "}],"time.selectTime":[{type:0,value:"Selecciona hora"}],"time.timeFormat":[{type:0,value:"hh:mm"}],"toggletip.moreInformation":[{type:0,value:"Más información"}],"uploader.duplicateName":[{type:0,value:"Ya existe un archivo con este nombre."}],"uploader.fileDeleted":[{type:1,value:"fileName"},{type:0,value:" se eliminó."}],"uploader.fileNotDeleted":[{type:1,value:"fileName"},{type:0,value:" no se pudo eliminar."}],"uploader.fileTooLarge":[{type:0,value:"El archivo seleccionado es muy grande. El tamaño máximo de archivo es "},{type:1,value:"size"},{type:0,value:"Mb"}],"uploader.fileUploadExceeded":[{type:0,value:"El número de archivos seleccionados excede el límite."}],"uploader.fileUploadLimit":[{type:0,value:"Alcanzó el límite de carga de archivos."}],"uploader.filesAdded":[{offset:0,options:{one:{value:[{type:0,value:"1 archivo agregado"}]},other:{value:[{type:7},{type:0,value:" archivos agregados"}]}},pluralType:"cardinal",type:6,value:"numFiles"}],"uploader.filesUploading":[{offset:0,options:{one:{value:[{type:0,value:"1 archivo cargando"}]},other:{value:[{type:7},{type:0,value:" archivos cargandos"}]}},pluralType:"cardinal",type:6,value:"num"}],"uploader.finishedUploading":[{type:0,value:"Finalizó la carga"}],"uploader.invalidFileType":[{type:0,value:"El tipo de archivo no es válido. Tipos aceptados: "},{type:1,value:"validTypes"}],"uploader.uploadProgress":[{type:0,value:"Progreso de la carga: "},{type:1,value:"percentage"},{type:0,value:"%"}]};var pig={"chart.clickToSeeDetails":[{type:0,value:"Ickclay oryay useyay arrowyay eyskay otay eesay etailsday."}],"chart.hiddenValues":[{type:0,value:"Aluesvay areyay iddenhay enwhay ootay oseclay ogethertay."}],"chart.infoButton":[{type:0,value:"Uttonbay. Ickclay orfay oremay informationyay."}],"chart.instructions":[{type:0,value:"Useyay arrowyay eyskay otay owsebray elementsyay, esspray Abtay otay exityay."}],"chart.roleDescription":[{type:0,value:"Interactiveyay artchay"}],"date.april":[{type:0,value:"Aprilyay"}],"date.august":[{type:0,value:"Augustyay"}],"date.calendarView":[{type:0,value:"Alendarcay Iewvay"}],"date.currentMonth":[{type:0,value:"urrentcay onthmay"}],"date.december":[{type:0,value:"Ecemberday"}],"date.february":[{type:0,value:"Ebruaryfay"}],"date.fr":[{type:0,value:"Fray"}],"date.friday":[{type:0,value:"Idayfray"}],"date.instructions":[{type:0,value:"Useyay arrowsyay otay electsay ayay ateday inyay ethay abletay. Abtay eftlay oryay ightray otay uttonsbay orfay electingsay eviouspray onthmay, extnay onthmay, oryay ethay onthmay electionsay abletay."}],"date.january":[{type:0,value:"Anuaryjay"}],"date.july":[{type:0,value:"Ulyjay"}],"date.june":[{type:0,value:"Unejay"}],"date.march":[{type:0,value:"Archmay"}],"date.may":[{type:0,value:"Aymay"}],"date.mo":[{type:0,value:"Omay"}],"date.monday":[{type:0,value:"Ondaymay"}],"date.november":[{type:0,value:"Ovembernay"}],"date.october":[{type:0,value:"Octoberyay"}],"date.sa":[{type:0,value:"Asay"}],"date.saturday":[{type:0,value:"Aturdaysay"}],"date.selectMonth":[{type:0,value:"Activateyay otay electsay ayay onthmay."}],"date.selectNextMonth":[{type:0,value:"Electsay extnay onthmay"}],"date.selectNextYear":[{type:0,value:"Electsay extnay earyay"}],"date.selectPreviousMonth":[{type:0,value:"Electsay eviouspray onthmay"}],"date.selectPreviousYear":[{type:0,value:"Electsay eviouspray earyay"}],"date.selectYear":[{type:0,value:"Activateyay otay electsay ayay earyay."}],"date.september":[{type:0,value:"Eptembersay"}],"date.su":[{type:0,value:"Usay"}],"date.sunday":[{type:0,value:"Undaysay"}],"date.th":[{type:0,value:"Thay"}],"date.thursday":[{type:0,value:"Ursdaythay"}],"date.today":[{type:0,value:"odaytay"}],"date.tu":[{type:0,value:"Utay"}],"date.tuesday":[{type:0,value:"Uesdaytay"}],"date.we":[{type:0,value:"Eway"}],"date.wednesday":[{type:0,value:"Ednesdayway"}],"file.actionMenuLabel":[{type:0,value:"Actionsyay"}],"file.clearErrorLabel":[{type:0,value:"Earclay "},{type:1,value:"fileName"},{type:0,value:" erroryay"}],"file.clearErrorText":[{type:0,value:"Earclay"}],"file.deleteAction":[{type:0,value:"Eleteday Ilefay"}],"file.deleteButtonTooltip":[{type:0,value:"Eleteday"}],"file.downloadAction":[{type:0,value:"Ownloadday Ilefay"}],"file.downloadButtonTooltip":[{type:0,value:"Ownloadday"}],"file.previewAction":[{type:0,value:"Eviewpray Ilefay"}],"file.previewButtonTooltip":[{type:0,value:"Eviewpray"}],"navigation.mainNavigation":[{type:0,value:"Ainmay"}],"navigation.showNavigation":[{type:0,value:"Owshay avigationnay"}],"navigator.WatermarkAppNavigation":[{type:0,value:"Atermarkway Appyay Avigationnay"}],"navigator.logout":[{type:0,value:"Oglay Outyay"}],"navigator.userinfo":[{type:0,value:"Useryay informationyay"}],"navigator.userinfoAndProductNavigator":[{type:0,value:"Useryay informationyay andyay oductpray avigatornay"}],"navigator.userinfoLabel":[{type:0,value:"orfay "},{type:1,value:"name"},{type:0,value:", emailyay "},{type:1,value:"email"}],"navigator.watermarkApps":[{type:0,value:"Atermarkway Appsyay"}],"search.jumpToResult":[{type:0,value:"Umpjay otay earchsay esultray inyay istlay"}],"search.nextResult":[{type:0,value:"Esspray otay earhay extnay atchingmay esultray"}],"search.previousResult":[{type:0,value:"Esspray otay earhay eviouspray atchingmay esultray"}],"search.resultsFound":[{offset:0,options:{"=0":{value:[{type:0,value:"Onay esultsray"}]},one:{value:[{type:0,value:"1 esultray"}]},other:{value:[{type:7},{type:0,value:" esultsray"}]}},pluralType:"cardinal",type:6,value:"numResults"},{type:0,value:" oundfay"}],"search.typeToFilterResults":[{type:0,value:"Etypay otay ilterfay ethay esultsray"}],"search.xOfYResults":[{offset:0,options:{"=0":{value:[{type:0,value:"Onay esultsray oundfay"}]},other:{value:[{type:1,value:"current"},{type:0,value:" ofyay "},{type:1,value:"numResults"},{type:0,value:" esultsray"}]}},pluralType:"cardinal",type:6,value:"numResults"}],"select.allOptionsDeselected":[{type:0,value:"Allyay optionsyay eselectedday"}],"select.allOptionsSelected":[{type:0,value:"Allyay optionsyay electedsay"}],"select.allSelected":[{type:0,value:"Allyay electedsay"}],"select.deselectAll":[{type:0,value:"Eselectday Allyay"}],"select.multiPlaceholder":[{type:0,value:"Akemay ayay electionsay"}],"select.noSearchResults":[{type:0,value:"Onay esultsray oundfay. Easeplay tryay ouryay earchsay againyay."}],"select.searchPlaceholder":[{type:0,value:"Earchsay"}],"select.searchResultsFound":[{offset:0,options:{one:{value:[{type:0,value:"1 optionyay oundfay"}]},other:{value:[{type:7},{type:0,value:" optionsyay oundfay"}]}},pluralType:"cardinal",type:6,value:"numResults"}],"select.selectAll":[{type:0,value:"Electsay Allyay"}],"tagInput.addNewHelpText":[{type:0,value:"Esspray ethay Enteryay oryay Ommacay eykay otay addyay ayay ewnay agtay."}],"tagInput.existingOptions":[{offset:0,options:{one:{value:[{type:0,value:"1 existingyay optionyay."}]},other:{value:[{type:7},{type:0,value:" existingyay optionsyay."}]}},pluralType:"cardinal",type:6,value:"num"}],"tagInput.maxTagsReached":[{type:0,value:"Onay oremay agstay ancay ebay addedyay ecausebay ethay imitlay ashay eenbay eachedray."}],"tagInput.noResults":[{type:0,value:"Onay esultsray atchmay ouryay earchsay."}],"tagInput.placeholderAdd":[{type:0,value:"Addyay ayay ewnay agtay"}],"tagInput.placeholderAddAndSearch":[{type:0,value:"Addyay oryay earchsay orfay ayay agtay"}],"tagInput.placeholderSearch":[{type:0,value:"Earchsay andyay electsay ayay agtay"}],"tagInput.selectionHelpText":[{type:0,value:"Earchsay andyay electsay ayay agtay."}],"tagInput.tagAdded":[{type:1,value:"tagName"},{type:0,value:" addedyay."}],"tagInput.tagAlreadyAdded":[{type:1,value:"tagName"},{type:0,value:" ashay alreadyyay eenbay addedyay."}],"tagInput.tagAreaInstructions":[{type:0,value:"agtay electionsay. Esspray Ackspacebay oryay Eleteday otay emoveray ayay agtay."}],"tagInput.tagLocked":[{type:1,value:"tagName"},{type:0,value:" isyay ockedlay andyay annotcay ebay emovedray."}],"tagInput.tagRemoved":[{type:1,value:"tagName"},{type:0,value:" emovedray."}],"tagInput.tagsAdded":[{type:0,value:"Agstay addedyay"}],"time.selectTime":[{type:0,value:"Electsay imetay"}],"time.timeFormat":[{type:0,value:"hh:mmay"}],"toggletip.moreInformation":[{type:0,value:"Oremay informationyay"}]};var lang=Object.freeze({__proto__:null,en:en,fr:fr,es:es,pig:pig});var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]};return extendStatics(e,t)};function __extends(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function a(){this.constructor=e}e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}var __assign=function(){__assign=Object.assign||function e(t){for(var a,r=1,n=arguments.length;r<n;r++){a=arguments[r];for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i))t[i]=a[i]}return t};return __assign.apply(this,arguments)};function __rest(e,t){var a={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)a[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++){if(t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n]))a[r[n]]=e[r[n]]}return a}function __spreadArray(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError==="function"?SuppressedError:function(e,t,a){var r=new Error(a);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};var ErrorKind;(function(e){e[e["EXPECT_ARGUMENT_CLOSING_BRACE"]=1]="EXPECT_ARGUMENT_CLOSING_BRACE";e[e["EMPTY_ARGUMENT"]=2]="EMPTY_ARGUMENT";e[e["MALFORMED_ARGUMENT"]=3]="MALFORMED_ARGUMENT";e[e["EXPECT_ARGUMENT_TYPE"]=4]="EXPECT_ARGUMENT_TYPE";e[e["INVALID_ARGUMENT_TYPE"]=5]="INVALID_ARGUMENT_TYPE";e[e["EXPECT_ARGUMENT_STYLE"]=6]="EXPECT_ARGUMENT_STYLE";e[e["INVALID_NUMBER_SKELETON"]=7]="INVALID_NUMBER_SKELETON";e[e["INVALID_DATE_TIME_SKELETON"]=8]="INVALID_DATE_TIME_SKELETON";e[e["EXPECT_NUMBER_SKELETON"]=9]="EXPECT_NUMBER_SKELETON";e[e["EXPECT_DATE_TIME_SKELETON"]=10]="EXPECT_DATE_TIME_SKELETON";e[e["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"]=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";e[e["EXPECT_SELECT_ARGUMENT_OPTIONS"]=12]="EXPECT_SELECT_ARGUMENT_OPTIONS";e[e["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"]=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";e[e["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"]=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";e[e["EXPECT_SELECT_ARGUMENT_SELECTOR"]=15]="EXPECT_SELECT_ARGUMENT_SELECTOR";e[e["EXPECT_PLURAL_ARGUMENT_SELECTOR"]=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR";e[e["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"]=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";e[e["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"]=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";e[e["INVALID_PLURAL_ARGUMENT_SELECTOR"]=19]="INVALID_PLURAL_ARGUMENT_SELECTOR";e[e["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"]=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR";e[e["DUPLICATE_SELECT_ARGUMENT_SELECTOR"]=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR";e[e["MISSING_OTHER_CLAUSE"]=22]="MISSING_OTHER_CLAUSE";e[e["INVALID_TAG"]=23]="INVALID_TAG";e[e["INVALID_TAG_NAME"]=25]="INVALID_TAG_NAME";e[e["UNMATCHED_CLOSING_TAG"]=26]="UNMATCHED_CLOSING_TAG";e[e["UNCLOSED_TAG"]=27]="UNCLOSED_TAG"})(ErrorKind||(ErrorKind={}));var TYPE;(function(e){e[e["literal"]=0]="literal";e[e["argument"]=1]="argument";e[e["number"]=2]="number";e[e["date"]=3]="date";e[e["time"]=4]="time";e[e["select"]=5]="select";e[e["plural"]=6]="plural";e[e["pound"]=7]="pound";e[e["tag"]=8]="tag"})(TYPE||(TYPE={}));var SKELETON_TYPE;(function(e){e[e["number"]=0]="number";e[e["dateTime"]=1]="dateTime"})(SKELETON_TYPE||(SKELETON_TYPE={}));function isLiteralElement(e){return e.type===TYPE.literal}function isArgumentElement(e){return e.type===TYPE.argument}function isNumberElement(e){return e.type===TYPE.number}function isDateElement(e){return e.type===TYPE.date}function isTimeElement(e){return e.type===TYPE.time}function isSelectElement(e){return e.type===TYPE.select}function isPluralElement(e){return e.type===TYPE.plural}function isPoundElement(e){return e.type===TYPE.pound}function isTagElement(e){return e.type===TYPE.tag}function isNumberSkeleton(e){return!!(e&&typeof e==="object"&&e.type===SKELETON_TYPE.number)}function isDateTimeSkeleton(e){return!!(e&&typeof e==="object"&&e.type===SKELETON_TYPE.dateTime)}var SPACE_SEPARATOR_REGEX=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(e){var t={};e.replace(DATE_TIME_REGEX,(function(e){var a=e.length;switch(e[0]){case"G":t.era=a===4?"long":a===5?"narrow":"short";break;case"y":t.year=a===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][a-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][a-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=a===4?"long":a===5?"narrow":"short";break;case"e":if(a<4){throw new RangeError("`e..eee` (weekday) patterns are not supported")}t.weekday=["short","long","narrow","short"][a-4];break;case"c":if(a<4){throw new RangeError("`c..ccc` (weekday) patterns are not supported")}t.weekday=["short","long","narrow","short"][a-4];break;case"a":t.hour12=true;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12";t.hour=["numeric","2-digit"][a-1];break;case"H":t.hourCycle="h23";t.hour=["numeric","2-digit"][a-1];break;case"K":t.hourCycle="h11";t.hour=["numeric","2-digit"][a-1];break;case"k":t.hourCycle="h24";t.hour=["numeric","2-digit"][a-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][a-1];break;case"s":t.second=["numeric","2-digit"][a-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=a<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}));return t}var WHITE_SPACE_REGEX=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function parseNumberSkeletonFromString(e){if(e.length===0){throw new Error("Number skeleton cannot be empty")}var t=e.split(WHITE_SPACE_REGEX).filter((function(e){return e.length>0}));var a=[];for(var r=0,n=t;r<n.length;r++){var i=n[r];var o=i.split("/");if(o.length===0){throw new Error("Invalid number skeleton")}var s=o[0],u=o.slice(1);for(var l=0,c=u;l<c.length;l++){var h=c[l];if(h.length===0){throw new Error("Invalid number skeleton")}}a.push({stem:s,options:u})}return a}function icuUnitToEcma(e){return e.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;var SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?[rs]?$/g;var INTEGER_WIDTH_REGEX=/(\*)(0+)|(#+)(0+)|(0+)/g;var CONCISE_INTEGER_WIDTH_REGEX=/^(0+)$/;function parseSignificantPrecision(e){var t={};if(e[e.length-1]==="r"){t.roundingPriority="morePrecision"}else if(e[e.length-1]==="s"){t.roundingPriority="lessPrecision"}e.replace(SIGNIFICANT_PRECISION_REGEX,(function(e,a,r){if(typeof r!=="string"){t.minimumSignificantDigits=a.length;t.maximumSignificantDigits=a.length}else if(r==="+"){t.minimumSignificantDigits=a.length}else if(a[0]==="#"){t.maximumSignificantDigits=a.length}else{t.minimumSignificantDigits=a.length;t.maximumSignificantDigits=a.length+(typeof r==="string"?r.length:0)}return""}));return t}function parseSign(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function parseConciseScientificAndEngineeringStem(e){var t;if(e[0]==="E"&&e[1]==="E"){t={notation:"engineering"};e=e.slice(2)}else if(e[0]==="E"){t={notation:"scientific"};e=e.slice(1)}if(t){var a=e.slice(0,2);if(a==="+!"){t.signDisplay="always";e=e.slice(2)}else if(a==="+?"){t.signDisplay="exceptZero";e=e.slice(2)}if(!CONCISE_INTEGER_WIDTH_REGEX.test(e)){throw new Error("Malformed concise eng/scientific notation")}t.minimumIntegerDigits=e.length}return t}function parseNotationOptions(e){var t={};var a=parseSign(e);if(a){return a}return t}function parseNumberSkeleton(e){var t={};for(var a=0,r=e;a<r.length;a++){var n=r[a];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent";t.scale=100;continue;case"currency":t.style="currency";t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=false;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit";t.unit=icuUnitToEcma(n.options[0]);continue;case"compact-short":case"K":t.notation="compact";t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact";t.compactDisplay="long";continue;case"scientific":t=__assign(__assign(__assign({},t),{notation:"scientific"}),n.options.reduce((function(e,t){return __assign(__assign({},e),parseNotationOptions(t))}),{}));continue;case"engineering":t=__assign(__assign(__assign({},t),{notation:"engineering"}),n.options.reduce((function(e,t){return __assign(__assign({},e),parseNotationOptions(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol";t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code";t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name";t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1){throw new RangeError("integer-width stems only accept a single optional option")}n.options[0].replace(INTEGER_WIDTH_REGEX,(function(e,a,r,n,i,o){if(a){t.minimumIntegerDigits=r.length}else if(n&&i){throw new Error("We currently do not support maximum integer digits")}else if(o){throw new Error("We currently do not support exact integer digits")}return""}));continue}if(CONCISE_INTEGER_WIDTH_REGEX.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(FRACTION_PRECISION_REGEX.test(n.stem)){if(n.options.length>1){throw new RangeError("Fraction-precision stems only accept a single optional option")}n.stem.replace(FRACTION_PRECISION_REGEX,(function(e,a,r,n,i,o){if(r==="*"){t.minimumFractionDigits=a.length}else if(n&&n[0]==="#"){t.maximumFractionDigits=n.length}else if(i&&o){t.minimumFractionDigits=i.length;t.maximumFractionDigits=i.length+o.length}else{t.minimumFractionDigits=a.length;t.maximumFractionDigits=a.length}return""}));var i=n.options[0];if(i==="w"){t=__assign(__assign({},t),{trailingZeroDisplay:"stripIfInteger"})}else if(i){t=__assign(__assign({},t),parseSignificantPrecision(i))}continue}if(SIGNIFICANT_PRECISION_REGEX.test(n.stem)){t=__assign(__assign({},t),parseSignificantPrecision(n.stem));continue}var o=parseSign(n.stem);if(o){t=__assign(__assign({},t),o)}var s=parseConciseScientificAndEngineeringStem(n.stem);if(s){t=__assign(__assign({},t),s)}}return t}var timeData={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function getBestPattern(e,t){var a="";for(var r=0;r<e.length;r++){var n=e.charAt(r);if(n==="j"){var i=0;while(r+1<e.length&&e.charAt(r+1)===n){i++;r++}var o=1+(i&1);var s=i<2?1:3+(i>>1);var u="a";var l=getDefaultHourSymbolFromLocale(t);if(l=="H"||l=="k"){s=0}while(s-- >0){a+=u}while(o-- >0){a=l+a}}else if(n==="J"){a+="H"}else{a+=n}}return a}function getDefaultHourSymbolFromLocale(e){var t=e.hourCycle;if(t===undefined&&e.hourCycles&&e.hourCycles.length){t=e.hourCycles[0]}if(t){switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}}var a=e.language;var r;if(a!=="root"){r=e.maximize().region}var n=timeData[r||""]||timeData[a||""]||timeData["".concat(a,"-001")]||timeData["001"];return n[0]}var _a;var SPACE_SEPARATOR_START_REGEX=new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source,"*"));var SPACE_SEPARATOR_END_REGEX=new RegExp("".concat(SPACE_SEPARATOR_REGEX.source,"*$"));function createLocation(e,t){return{start:e,end:t}}var hasNativeStartsWith=!!String.prototype.startsWith&&"_a".startsWith("a",1);var hasNativeFromCodePoint=!!String.fromCodePoint;var hasNativeFromEntries=!!Object.fromEntries;var hasNativeCodePointAt=!!String.prototype.codePointAt;var hasTrimStart=!!String.prototype.trimStart;var hasTrimEnd=!!String.prototype.trimEnd;var hasNativeIsSafeInteger=!!Number.isSafeInteger;var isSafeInteger=hasNativeIsSafeInteger?Number.isSafeInteger:function(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991};var REGEX_SUPPORTS_U_AND_Y=true;try{var re=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");REGEX_SUPPORTS_U_AND_Y=((_a=re.exec("a"))===null||_a===void 0?void 0:_a[0])==="a"}catch(e){REGEX_SUPPORTS_U_AND_Y=false}var startsWith=hasNativeStartsWith?function e(t,a,r){return t.startsWith(a,r)}:function e(t,a,r){return t.slice(r,r+a.length)===a};var fromCodePoint=hasNativeFromCodePoint?String.fromCodePoint:function e(){var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}var r="";var n=t.length;var i=0;var o;while(n>i){o=t[i++];if(o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r};var fromEntries=hasNativeFromEntries?Object.fromEntries:function e(t){var a={};for(var r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],s=i[1];a[o]=s}return a};var codePointAt=hasNativeCodePointAt?function e(t,a){return t.codePointAt(a)}:function e(t,a){var r=t.length;if(a<0||a>=r){return undefined}var n=t.charCodeAt(a);var i;return n<55296||n>56319||a+1===r||(i=t.charCodeAt(a+1))<56320||i>57343?n:(n-55296<<10)+(i-56320)+65536};var trimStart=hasTrimStart?function e(t){return t.trimStart()}:function e(t){return t.replace(SPACE_SEPARATOR_START_REGEX,"")};var trimEnd=hasTrimEnd?function e(t){return t.trimEnd()}:function e(t){return t.replace(SPACE_SEPARATOR_END_REGEX,"")};function RE(e,t){return new RegExp(e,t)}var matchIdentifierAtIndex;if(REGEX_SUPPORTS_U_AND_Y){var IDENTIFIER_PREFIX_RE_1=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");matchIdentifierAtIndex=function e(t,a){var r;IDENTIFIER_PREFIX_RE_1.lastIndex=a;var n=IDENTIFIER_PREFIX_RE_1.exec(t);return(r=n[1])!==null&&r!==void 0?r:""}}else{matchIdentifierAtIndex=function e(t,a){var r=[];while(true){var n=codePointAt(t,a);if(n===undefined||_isWhiteSpace(n)||_isPatternSyntax(n)){break}r.push(n);a+=n>=65536?2:1}return fromCodePoint.apply(void 0,r)}}var Parser=function(){function e(e,t){if(t===void 0){t={}}this.message=e;this.position={offset:0,line:1,column:1};this.ignoreTag=!!t.ignoreTag;this.locale=t.locale;this.requiresOtherClause=!!t.requiresOtherClause;this.shouldParseSkeletons=!!t.shouldParseSkeletons}e.prototype.parse=function(){if(this.offset()!==0){throw Error("parser can only be used once")}return this.parseMessage(0,"",false)};e.prototype.parseMessage=function(e,t,a){var r=[];while(!this.isEOF()){var n=this.char();if(n===123){var i=this.parseArgument(e,a);if(i.err){return i}r.push(i.val)}else if(n===125&&e>0){break}else if(n===35&&(t==="plural"||t==="selectordinal")){var o=this.clonePosition();this.bump();r.push({type:TYPE.pound,location:createLocation(o,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(a){break}else{return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}}else if(n===60&&!this.ignoreTag&&_isAlpha(this.peek()||0)){var i=this.parseTag(e,t);if(i.err){return i}r.push(i.val)}else{var i=this.parseLiteral(e,t);if(i.err){return i}r.push(i.val)}}return{val:r,err:null}};e.prototype.parseTag=function(e,t){var a=this.clonePosition();this.bump();var r=this.parseTagName();this.bumpSpace();if(this.bumpIf("/>")){return{val:{type:TYPE.literal,value:"<".concat(r,"/>"),location:createLocation(a,this.clonePosition())},err:null}}else if(this.bumpIf(">")){var n=this.parseMessage(e+1,t,true);if(n.err){return n}var i=n.val;var o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_isAlpha(this.char())){return this.error(ErrorKind.INVALID_TAG,createLocation(o,this.clonePosition()))}var s=this.clonePosition();var u=this.parseTagName();if(r!==u){return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(s,this.clonePosition()))}this.bumpSpace();if(!this.bumpIf(">")){return this.error(ErrorKind.INVALID_TAG,createLocation(o,this.clonePosition()))}return{val:{type:TYPE.tag,value:r,children:i,location:createLocation(a,this.clonePosition())},err:null}}else{return this.error(ErrorKind.UNCLOSED_TAG,createLocation(a,this.clonePosition()))}}else{return this.error(ErrorKind.INVALID_TAG,createLocation(a,this.clonePosition()))}};e.prototype.parseTagName=function(){var e=this.offset();this.bump();while(!this.isEOF()&&_isPotentialElementNameChar(this.char())){this.bump()}return this.message.slice(e,this.offset())};e.prototype.parseLiteral=function(e,t){var a=this.clonePosition();var r="";while(true){var n=this.tryParseQuote(t);if(n){r+=n;continue}var i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=createLocation(a,this.clonePosition());return{val:{type:TYPE.literal,value:r,location:s},err:null}};e.prototype.tryParseLeftAngleBracket=function(){if(!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_isAlphaOrSlash(this.peek()||0))){this.bump();return"<"}return null};e.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39){return null}switch(this.peek()){case 39:this.bump();this.bump();return"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal"){break}return null;default:return null}this.bump();var t=[this.char()];this.bump();while(!this.isEOF()){var a=this.char();if(a===39){if(this.peek()===39){t.push(39);this.bump()}else{this.bump();break}}else{t.push(a)}this.bump()}return fromCodePoint.apply(void 0,t)};e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF()){return null}var a=this.char();if(a===60||a===123||a===35&&(t==="plural"||t==="selectordinal")||a===125&&e>0){return null}else{this.bump();return fromCodePoint(a)}};e.prototype.parseArgument=function(e,t){var a=this.clonePosition();this.bump();this.bumpSpace();if(this.isEOF()){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(a,this.clonePosition()))}if(this.char()===125){this.bump();return this.error(ErrorKind.EMPTY_ARGUMENT,createLocation(a,this.clonePosition()))}var r=this.parseIdentifierIfPossible().value;if(!r){return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(a,this.clonePosition()))}this.bumpSpace();if(this.isEOF()){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(a,this.clonePosition()))}switch(this.char()){case 125:{this.bump();return{val:{type:TYPE.argument,value:r,location:createLocation(a,this.clonePosition())},err:null}}case 44:{this.bump();this.bumpSpace();if(this.isEOF()){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(a,this.clonePosition()))}return this.parseArgumentOptions(e,t,r,a)}default:return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(a,this.clonePosition()))}};e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition();var t=this.offset();var a=matchIdentifierAtIndex(this.message,t);var r=t+a.length;this.bumpTo(r);var n=this.clonePosition();var i=createLocation(e,n);return{value:a,location:i}};e.prototype.parseArgumentOptions=function(e,t,a,r){var n;var i=this.clonePosition();var o=this.parseIdentifierIfPossible().value;var s=this.clonePosition();switch(o){case"":return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE,createLocation(i,s));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();var c=this.parseSimpleArgStyleIfPossible();if(c.err){return c}var h=trimEnd(c.val);if(h.length===0){return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()))}var v=createLocation(l,this.clonePosition());u={style:h,styleLocation:v}}var y=this.tryParseArgumentClose(r);if(y.err){return y}var d=createLocation(r,this.clonePosition());if(u&&startsWith(u===null||u===void 0?void 0:u.style,"::",0)){var p=trimStart(u.style.slice(2));if(o==="number"){var c=this.parseNumberSkeletonFromString(p,u.styleLocation);if(c.err){return c}return{val:{type:TYPE.number,value:a,location:d,style:c.val},err:null}}else{if(p.length===0){return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON,d)}var f=p;if(this.locale){f=getBestPattern(p,this.locale)}var h={type:SKELETON_TYPE.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(f):{}};var m=o==="date"?TYPE.date:TYPE.time;return{val:{type:m,value:a,location:d,style:h},err:null}}}return{val:{type:o==="number"?TYPE.number:o==="date"?TYPE.date:TYPE.time,value:a,location:d,style:(n=u===null||u===void 0?void 0:u.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var g=this.clonePosition();this.bumpSpace();if(!this.bumpIf(",")){return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(g,__assign({},g)))}this.bumpSpace();var E=this.parseIdentifierIfPossible();var b=0;if(o!=="select"&&E.value==="offset"){if(!this.bumpIf(":")){return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()))}this.bumpSpace();var c=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err){return c}this.bumpSpace();E=this.parseIdentifierIfPossible();b=c.val}var T=this.tryParsePluralOrSelectOptions(e,o,t,E);if(T.err){return T}var y=this.tryParseArgumentClose(r);if(y.err){return y}var _=createLocation(r,this.clonePosition());if(o==="select"){return{val:{type:TYPE.select,value:a,options:fromEntries(T.val),location:_},err:null}}else{return{val:{type:TYPE.plural,value:a,options:fromEntries(T.val),offset:b,pluralType:o==="plural"?"cardinal":"ordinal",location:_},err:null}}}default:return this.error(ErrorKind.INVALID_ARGUMENT_TYPE,createLocation(i,s))}};e.prototype.tryParseArgumentClose=function(e){if(this.isEOF()||this.char()!==125){return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(e,this.clonePosition()))}this.bump();return{val:true,err:null}};e.prototype.parseSimpleArgStyleIfPossible=function(){var e=0;var t=this.clonePosition();while(!this.isEOF()){var a=this.char();switch(a){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'")){return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(r,this.clonePosition()))}this.bump();break}case 123:{e+=1;this.bump();break}case 125:{if(e>0){e-=1}else{return{val:this.message.slice(t.offset,this.offset()),err:null}}break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}};e.prototype.parseNumberSkeletonFromString=function(e,t){var a=[];try{a=parseNumberSkeletonFromString(e)}catch(e){return this.error(ErrorKind.INVALID_NUMBER_SKELETON,t)}return{val:{type:SKELETON_TYPE.number,tokens:a,location:t,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(a):{}},err:null}};e.prototype.tryParsePluralOrSelectOptions=function(e,t,a,r){var n;var i=false;var o=[];var s=new Set;var u=r.value,l=r.location;while(true){if(u.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err){return h}l=createLocation(c,this.clonePosition());u=this.message.slice(c.offset,this.offset())}else{break}}if(s.has(u)){return this.error(t==="select"?ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l)}if(u==="other"){i=true}this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{")){return this.error(t==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()))}var y=this.parseMessage(e+1,t,a);if(y.err){return y}var d=this.tryParseArgumentClose(v);if(d.err){return d}o.push([u,{value:y.val,location:createLocation(v,this.clonePosition())}]);s.add(u);this.bumpSpace();n=this.parseIdentifierIfPossible(),u=n.value,l=n.location}if(o.length===0){return this.error(t==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition()))}if(this.requiresOtherClause&&!i){return this.error(ErrorKind.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition()))}return{val:o,err:null}};e.prototype.tryParseDecimalInteger=function(e,t){var a=1;var r=this.clonePosition();if(this.bumpIf("+"));else if(this.bumpIf("-")){a=-1}var n=false;var i=0;while(!this.isEOF()){var o=this.char();if(o>=48&&o<=57){n=true;i=i*10+(o-48);this.bump()}else{break}}var s=createLocation(r,this.clonePosition());if(!n){return this.error(e,s)}i*=a;if(!isSafeInteger(i)){return this.error(t,s)}return{val:i,err:null}};e.prototype.offset=function(){return this.position.offset};e.prototype.isEOF=function(){return this.offset()===this.message.length};e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}};e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length){throw Error("out of bound")}var t=codePointAt(this.message,e);if(t===undefined){throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"))}return t};e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}};e.prototype.bump=function(){if(this.isEOF()){return}var e=this.char();if(e===10){this.position.line+=1;this.position.column=1;this.position.offset+=1}else{this.position.column+=1;this.position.offset+=e<65536?1:2}};e.prototype.bumpIf=function(e){if(startsWith(this.message,e,this.offset())){for(var t=0;t<e.length;t++){this.bump()}return true}return false};e.prototype.bumpUntil=function(e){var t=this.offset();var a=this.message.indexOf(e,t);if(a>=0){this.bumpTo(a);return true}else{this.bumpTo(this.message.length);return false}};e.prototype.bumpTo=function(e){if(this.offset()>e){throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()))}e=Math.min(e,this.message.length);while(true){var t=this.offset();if(t===e){break}if(t>e){throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"))}this.bump();if(this.isEOF()){break}}};e.prototype.bumpSpace=function(){while(!this.isEOF()&&_isWhiteSpace(this.char())){this.bump()}};e.prototype.peek=function(){if(this.isEOF()){return null}var e=this.char();var t=this.offset();var a=this.message.charCodeAt(t+(e>=65536?2:1));return a!==null&&a!==void 0?a:null};return e}();function _isAlpha(e){return e>=97&&e<=122||e>=65&&e<=90}function _isAlphaOrSlash(e){return _isAlpha(e)||e===47}function _isPotentialElementNameChar(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function _isWhiteSpace(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function _isPatternSyntax(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function pruneLocation(e){e.forEach((function(e){delete e.location;if(isSelectElement(e)||isPluralElement(e)){for(var t in e.options){delete e.options[t].location;pruneLocation(e.options[t].value)}}else if(isNumberElement(e)&&isNumberSkeleton(e.style)){delete e.style.location}else if((isDateElement(e)||isTimeElement(e))&&isDateTimeSkeleton(e.style)){delete e.style.location}else if(isTagElement(e)){pruneLocation(e.children)}}))}function parse(e,t){if(t===void 0){t={}}t=__assign({shouldParseSkeletons:true,requiresOtherClause:true},t);var a=new Parser(e,t).parse();if(a.err){var r=SyntaxError(ErrorKind[a.err.kind]);r.location=a.err.location;r.originalMessage=a.err.message;throw r}if(!(t===null||t===void 0?void 0:t.captureLocation)){pruneLocation(a.val)}return a.val}function memoize(e,t){var a=t&&t.cache?t.cache:cacheDefault;var r=t&&t.serializer?t.serializer:serializerDefault;var n=t&&t.strategy?t.strategy:strategyDefault;return n(e,{cache:a,serializer:r})}function isPrimitive(e){return e==null||typeof e==="number"||typeof e==="boolean"}function monadic(e,t,a,r){var n=isPrimitive(r)?r:a(r);var i=t.get(n);if(typeof i==="undefined"){i=e.call(this,r);t.set(n,i)}return i}function variadic(e,t,a){var r=Array.prototype.slice.call(arguments,3);var n=a(r);var i=t.get(n);if(typeof i==="undefined"){i=e.apply(this,r);t.set(n,i)}return i}function assemble(e,t,a,r,n){return a.bind(t,e,r,n)}function strategyDefault(e,t){var a=e.length===1?monadic:variadic;return assemble(e,this,a,t.cache.create(),t.serializer)}function strategyVariadic(e,t){return assemble(e,this,variadic,t.cache.create(),t.serializer)}function strategyMonadic(e,t){return assemble(e,this,monadic,t.cache.create(),t.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(e){return this.cache[e]};ObjectWithoutPrototypeCache.prototype.set=function(e,t){this.cache[e]=t};var cacheDefault={create:function e(){return new ObjectWithoutPrototypeCache}};var strategies={variadic:strategyVariadic,monadic:strategyMonadic};var ErrorCode;(function(e){e["MISSING_VALUE"]="MISSING_VALUE";e["INVALID_VALUE"]="INVALID_VALUE";e["MISSING_INTL_API"]="MISSING_INTL_API"})(ErrorCode||(ErrorCode={}));var FormatError=function(e){__extends(t,e);function t(t,a,r){var n=e.call(this,t)||this;n.code=a;n.originalMessage=r;return n}t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};return t}(Error);var InvalidValueError=function(e){__extends(t,e);function t(t,a,r,n){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(a,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ErrorCode.INVALID_VALUE,n)||this}return t}(FormatError);var InvalidValueTypeError=function(e){__extends(t,e);function t(t,a,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(a),ErrorCode.INVALID_VALUE,r)||this}return t}(FormatError);var MissingValueError=function(e){__extends(t,e);function t(t,a){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(a,'"'),ErrorCode.MISSING_VALUE,a)||this}return t}(FormatError);var PART_TYPE;(function(e){e[e["literal"]=0]="literal";e[e["object"]=1]="object"})(PART_TYPE||(PART_TYPE={}));function mergeLiteral(e){if(e.length<2){return e}return e.reduce((function(e,t){var a=e[e.length-1];if(!a||a.type!==PART_TYPE.literal||t.type!==PART_TYPE.literal){e.push(t)}else{a.value+=t.value}return e}),[])}function isFormatXMLElementFn(e){return typeof e==="function"}function formatToParts(e,t,a,r,n,i,o){if(e.length===1&&isLiteralElement(e[0])){return[{type:PART_TYPE.literal,value:e[0].value}]}var s=[];for(var u=0,l=e;u<l.length;u++){var c=l[u];if(isLiteralElement(c)){s.push({type:PART_TYPE.literal,value:c.value});continue}if(isPoundElement(c)){if(typeof i==="number"){s.push({type:PART_TYPE.literal,value:a.getNumberFormat(t).format(i)})}continue}var h=c.value;if(!(n&&h in n)){throw new MissingValueError(h,o)}var v=n[h];if(isArgumentElement(c)){if(!v||typeof v==="string"||typeof v==="number"){v=typeof v==="string"||typeof v==="number"?String(v):""}s.push({type:typeof v==="string"?PART_TYPE.literal:PART_TYPE.object,value:v});continue}if(isDateElement(c)){var y=typeof c.style==="string"?r.date[c.style]:isDateTimeSkeleton(c.style)?c.style.parsedOptions:undefined;s.push({type:PART_TYPE.literal,value:a.getDateTimeFormat(t,y).format(v)});continue}if(isTimeElement(c)){var y=typeof c.style==="string"?r.time[c.style]:isDateTimeSkeleton(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:PART_TYPE.literal,value:a.getDateTimeFormat(t,y).format(v)});continue}if(isNumberElement(c)){var y=typeof c.style==="string"?r.number[c.style]:isNumberSkeleton(c.style)?c.style.parsedOptions:undefined;if(y&&y.scale){v=v*(y.scale||1)}s.push({type:PART_TYPE.literal,value:a.getNumberFormat(t,y).format(v)});continue}if(isTagElement(c)){var d=c.children,p=c.value;var f=n[p];if(!isFormatXMLElementFn(f)){throw new InvalidValueTypeError(p,"function",o)}var m=formatToParts(d,t,a,r,n,i);var g=f(m.map((function(e){return e.value})));if(!Array.isArray(g)){g=[g]}s.push.apply(s,g.map((function(e){return{type:typeof e==="string"?PART_TYPE.literal:PART_TYPE.object,value:e}})))}if(isSelectElement(c)){var E=c.options[v]||c.options.other;if(!E){throw new InvalidValueError(c.value,v,Object.keys(c.options),o)}s.push.apply(s,formatToParts(E.value,t,a,r,n));continue}if(isPluralElement(c)){var E=c.options["=".concat(v)];if(!E){if(!Intl.PluralRules){throw new FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ErrorCode.MISSING_INTL_API,o)}var b=a.getPluralRules(t,{type:c.pluralType}).select(v-(c.offset||0));E=c.options[b]||c.options.other}if(!E){throw new InvalidValueError(c.value,v,Object.keys(c.options),o)}s.push.apply(s,formatToParts(E.value,t,a,r,n,v-(c.offset||0)));continue}}return mergeLiteral(s)}function mergeConfig(e,t){if(!t){return e}return __assign(__assign(__assign({},e||{}),t||{}),Object.keys(e).reduce((function(a,r){a[r]=__assign(__assign({},e[r]),t[r]||{});return a}),{}))}function mergeConfigs(e,t){if(!t){return e}return Object.keys(e).reduce((function(a,r){a[r]=mergeConfig(e[r],t[r]);return a}),__assign({},e))}function createFastMemoizeCache$1(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,a){e[t]=a}}}}}function createDefaultFormatters(e){if(e===void 0){e={number:{},dateTime:{},pluralRules:{}}}return{getNumberFormat:memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.NumberFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache$1(e.number),strategy:strategies.variadic}),getDateTimeFormat:memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.DateTimeFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache$1(e.dateTime),strategy:strategies.variadic}),getPluralRules:memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.PluralRules).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache$1(e.pluralRules),strategy:strategies.variadic})}}var IntlMessageFormat=function(){function e(t,a,r,n){var i=this;if(a===void 0){a=e.defaultLocale}this.formatterCache={number:{},dateTime:{},pluralRules:{}};this.format=function(e){var t=i.formatToParts(e);if(t.length===1){return t[0].value}var a=t.reduce((function(e,t){if(!e.length||t.type!==PART_TYPE.literal||typeof e[e.length-1]!=="string"){e.push(t.value)}else{e[e.length-1]+=t.value}return e}),[]);if(a.length<=1){return a[0]||""}return a};this.formatToParts=function(e){return formatToParts(i.ast,i.locales,i.formatters,i.formats,e,undefined,i.message)};this.resolvedOptions=function(){var e;return{locale:((e=i.resolvedLocale)===null||e===void 0?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}};this.getAst=function(){return i.ast};this.locales=a;this.resolvedLocale=e.resolveLocale(a);if(typeof t==="string"){this.message=t;if(!e.__parse){throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`")}var o=n||{},s=__rest(o,["formatters"]);this.ast=e.__parse(t,__assign(__assign({},s),{locale:this.resolvedLocale}))}else{this.ast=t}if(!Array.isArray(this.ast)){throw new TypeError("A message must be provided as a String or AST.")}this.formats=mergeConfigs(e.formats,r);this.formatters=n&&n.formatters||createDefaultFormatters(this.formatterCache)}Object.defineProperty(e,"defaultLocale",{get:function(){if(!e.memoizedDefaultLocale){e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale}return e.memoizedDefaultLocale},enumerable:false,configurable:true});e.memoizedDefaultLocale=null;e.resolveLocale=function(e){if(typeof Intl.Locale==="undefined"){return}var t=Intl.NumberFormat.supportedLocalesOf(e);if(t.length>0){return new Intl.Locale(t[0])}return new Intl.Locale(typeof e==="string"?e:e[0])};e.__parse=parse;e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};return e}();var IntlErrorCode;(function(e){e["FORMAT_ERROR"]="FORMAT_ERROR";e["UNSUPPORTED_FORMATTER"]="UNSUPPORTED_FORMATTER";e["INVALID_CONFIG"]="INVALID_CONFIG";e["MISSING_DATA"]="MISSING_DATA";e["MISSING_TRANSLATION"]="MISSING_TRANSLATION"})(IntlErrorCode||(IntlErrorCode={}));var IntlError=function(e){__extends(t,e);function t(a,r,n){var i=this;var o=n?n instanceof Error?n:new Error(String(n)):undefined;i=e.call(this,"[@formatjs/intl Error ".concat(a,"] ").concat(r,"\n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this;i.code=a;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(i,t)}return i}return t}(Error);var UnsupportedFormatterError=function(e){__extends(t,e);function t(t,a){return e.call(this,IntlErrorCode.UNSUPPORTED_FORMATTER,t,a)||this}return t}(IntlError);var InvalidConfigError=function(e){__extends(t,e);function t(t,a){return e.call(this,IntlErrorCode.INVALID_CONFIG,t,a)||this}return t}(IntlError);var MissingDataError=function(e){__extends(t,e);function t(t,a){return e.call(this,IntlErrorCode.MISSING_DATA,t,a)||this}return t}(IntlError);var IntlFormatError=function(e){__extends(t,e);function t(t,a,r){var n=e.call(this,IntlErrorCode.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(a,"\n"),r)||this;n.locale=a;return n}return t}(IntlError);var MessageFormatError=function(e){__extends(t,e);function t(t,a,r,n){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(r===null||r===void 0?void 0:r.id,"\nDefault Message: ").concat(r===null||r===void 0?void 0:r.defaultMessage,"\nDescription: ").concat(r===null||r===void 0?void 0:r.description,"\n"),a,n)||this;i.descriptor=r;i.locale=a;return i}return t}(IntlFormatError);var MissingTranslationError=function(e){__extends(t,e);function t(t,a){var r=e.call(this,IntlErrorCode.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(a,'", using ').concat(t.defaultMessage?"default message (".concat(typeof t.defaultMessage==="string"?t.defaultMessage:t.defaultMessage.map((function(e){var t;return(t=e.value)!==null&&t!==void 0?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;r.descriptor=t;return r}return t}(IntlError);function filterProps(e,t,a){if(a===void 0){a={}}return t.reduce((function(t,r){if(r in e){t[r]=e[r]}else if(r in a){t[r]=a[r]}return t}),{})}var defaultErrorHandler=function(e){};var defaultWarnHandler=function(e){};var DEFAULT_INTL_CONFIG={formats:{},messages:{},timeZone:undefined,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:true,onError:defaultErrorHandler,onWarn:defaultWarnHandler};function createIntlCache(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function createFastMemoizeCache(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,a){e[t]=a}}}}}function createFormatters(e){if(e===void 0){e=createIntlCache()}var t=Intl.RelativeTimeFormat;var a=Intl.ListFormat;var r=Intl.DisplayNames;var n=memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.DateTimeFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache(e.dateTime),strategy:strategies.variadic});var i=memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.NumberFormat).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache(e.number),strategy:strategies.variadic});var o=memoize((function(){var e;var t=[];for(var a=0;a<arguments.length;a++){t[a]=arguments[a]}return new((e=Intl.PluralRules).bind.apply(e,__spreadArray([void 0],t,false)))}),{cache:createFastMemoizeCache(e.pluralRules),strategy:strategies.variadic});return{getDateTimeFormat:n,getNumberFormat:i,getMessageFormat:memoize((function(e,t,a,r){return new IntlMessageFormat(e,t,a,__assign({formatters:{getNumberFormat:i,getDateTimeFormat:n,getPluralRules:o}},r||{}))}),{cache:createFastMemoizeCache(e.message),strategy:strategies.variadic}),getRelativeTimeFormat:memoize((function(){var e=[];for(var a=0;a<arguments.length;a++){e[a]=arguments[a]}return new(t.bind.apply(t,__spreadArray([void 0],e,false)))}),{cache:createFastMemoizeCache(e.relativeTime),strategy:strategies.variadic}),getPluralRules:o,getListFormat:memoize((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return new(a.bind.apply(a,__spreadArray([void 0],e,false)))}),{cache:createFastMemoizeCache(e.list),strategy:strategies.variadic}),getDisplayNames:memoize((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return new(r.bind.apply(r,__spreadArray([void 0],e,false)))}),{cache:createFastMemoizeCache(e.displayNames),strategy:strategies.variadic})}}function getNamedFormat(e,t,a,r){var n=e&&e[t];var i;if(n){i=n[a]}if(i){return i}r(new UnsupportedFormatterError("No ".concat(t," format named: ").concat(a)))}function invariant(e,t,a){if(a===void 0){a=Error}if(!e){throw new a(t)}}function setTimeZoneInOptions(e,t){return Object.keys(e).reduce((function(a,r){a[r]=__assign({timeZone:t},e[r]);return a}),{})}function deepMergeOptions(e,t){var a=Object.keys(__assign(__assign({},e),t));return a.reduce((function(a,r){a[r]=__assign(__assign({},e[r]||{}),t[r]||{});return a}),{})}function deepMergeFormatsAndSetTimeZone(e,t){if(!t){return e}var a=IntlMessageFormat.formats;return __assign(__assign(__assign({},a),e),{date:deepMergeOptions(setTimeZoneInOptions(a.date,t),setTimeZoneInOptions(e.date||{},t)),time:deepMergeOptions(setTimeZoneInOptions(a.time,t),setTimeZoneInOptions(e.time||{},t))})}var formatMessage=function(e,t,a,r,n){var i=e.locale,o=e.formats,s=e.messages,u=e.defaultLocale,l=e.defaultFormats,c=e.fallbackOnEmptyString,h=e.onError,v=e.timeZone,y=e.defaultRichTextElements;if(a===void 0){a={id:""}}var d=a.id,p=a.defaultMessage;invariant(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var f=String(d);var m=s&&Object.prototype.hasOwnProperty.call(s,f)&&s[f];if(Array.isArray(m)&&m.length===1&&m[0].type===TYPE.literal){return m[0].value}if(!r&&m&&typeof m==="string"&&!y){return m.replace(/'\{(.*?)\}'/gi,"{$1}")}r=__assign(__assign({},y),r||{});o=deepMergeFormatsAndSetTimeZone(o,v);l=deepMergeFormatsAndSetTimeZone(l,v);if(!m){if(c===false&&m===""){return m}if(!p||i&&i.toLowerCase()!==u.toLowerCase()){h(new MissingTranslationError(a,i))}if(p){try{var g=t.getMessageFormat(p,u,l,n);return g.format(r)}catch(e){h(new MessageFormatError('Error formatting default message for: "'.concat(f,'", rendering default message verbatim'),i,a,e));return typeof p==="string"?p:f}}return f}try{var g=t.getMessageFormat(m,i,o,__assign({formatters:t},n||{}));return g.format(r)}catch(e){h(new MessageFormatError('Error formatting message: "'.concat(f,'", using ').concat(p?"default message":"id"," as fallback."),i,a,e))}if(p){try{var g=t.getMessageFormat(p,u,l,n);return g.format(r)}catch(e){h(new MessageFormatError('Error formatting the default message for: "'.concat(f,'", rendering message verbatim'),i,a,e))}}if(typeof m==="string"){return m}if(typeof p==="string"){return p}return f};var DATE_TIME_FORMAT_OPTIONS=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function getFormatter$2(e,t,a,r){var n=e.locale,i=e.formats,o=e.onError,s=e.timeZone;if(r===void 0){r={}}var u=r.format;var l=__assign(__assign({},s&&{timeZone:s}),u&&getNamedFormat(i,t,u,o));var c=filterProps(r,DATE_TIME_FORMAT_OPTIONS,l);if(t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle){c=__assign(__assign({},c),{hour:"numeric",minute:"numeric"})}return a(n,c)}function formatDate(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var n=a[0],i=a[1],o=i===void 0?{}:i;var s=typeof n==="string"?new Date(n||0):n;try{return getFormatter$2(e,"date",t,o).format(s)}catch(t){e.onError(new IntlFormatError("Error formatting date.",e.locale,t))}return String(s)}function formatTime(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var n=a[0],i=a[1],o=i===void 0?{}:i;var s=typeof n==="string"?new Date(n||0):n;try{return getFormatter$2(e,"time",t,o).format(s)}catch(t){e.onError(new IntlFormatError("Error formatting time.",e.locale,t))}return String(s)}function formatDateTimeRange(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var n=a[0],i=a[1],o=a[2],s=o===void 0?{}:o;var u=e.timeZone,l=e.locale,c=e.onError;var h=filterProps(s,DATE_TIME_FORMAT_OPTIONS,u?{timeZone:u}:{});try{return t(l,h).formatRange(n,i)}catch(t){c(new IntlFormatError("Error formatting date time range.",e.locale,t))}return String(n)}function formatDateToParts(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var n=a[0],i=a[1],o=i===void 0?{}:i;var s=typeof n==="string"?new Date(n||0):n;try{return getFormatter$2(e,"date",t,o).formatToParts(s)}catch(t){e.onError(new IntlFormatError("Error formatting date.",e.locale,t))}return[]}function formatTimeToParts(e,t){var a=[];for(var r=2;r<arguments.length;r++){a[r-2]=arguments[r]}var n=a[0],i=a[1],o=i===void 0?{}:i;var s=typeof n==="string"?new Date(n||0):n;try{return getFormatter$2(e,"time",t,o).formatToParts(s)}catch(t){e.onError(new IntlFormatError("Error formatting time.",e.locale,t))}return[]}var DISPLAY_NAMES_OPTONS=["style","type","fallback","languageDisplay"];function formatDisplayName(e,t,a,r){var n=e.locale,i=e.onError;var o=Intl.DisplayNames;if(!o){i(new FormatError('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ErrorCode.MISSING_INTL_API))}var s=filterProps(r,DISPLAY_NAMES_OPTONS);try{return t(n,s).of(a)}catch(e){i(new IntlFormatError("Error formatting display name.",n,e))}}var LIST_FORMAT_OPTIONS=["type","style"];var now=Date.now();function generateToken(e){return"".concat(now,"_").concat(e,"_").concat(now)}function formatList(e,t,a,r){if(r===void 0){r={}}var n=formatListToParts(e,t,a,r).reduce((function(e,t){var a=t.value;if(typeof a!=="string"){e.push(a)}else if(typeof e[e.length-1]==="string"){e[e.length-1]+=a}else{e.push(a)}return e}),[]);return n.length===1?n[0]:n.length===0?"":n}function formatListToParts(e,t,a,r){var n=e.locale,i=e.onError;if(r===void 0){r={}}var o=Intl.ListFormat;if(!o){i(new FormatError('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ErrorCode.MISSING_INTL_API))}var s=filterProps(r,LIST_FORMAT_OPTIONS);try{var u={};var l=a.map((function(e,t){if(typeof e==="object"){var a=generateToken(t);u[a]=e;return a}return String(e)}));return t(n,s).formatToParts(l).map((function(e){return e.type==="literal"?e:__assign(__assign({},e),{value:u[e.value]||e.value})}))}catch(e){i(new IntlFormatError("Error formatting list.",n,e))}return a}var PLURAL_FORMAT_OPTIONS=["type"];function formatPlural(e,t,a,r){var n=e.locale,i=e.onError;if(r===void 0){r={}}if(!Intl.PluralRules){i(new FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ErrorCode.MISSING_INTL_API))}var o=filterProps(r,PLURAL_FORMAT_OPTIONS);try{return t(n,o).select(a)}catch(e){i(new IntlFormatError("Error formatting plural.",n,e))}return"other"}var RELATIVE_TIME_FORMAT_OPTIONS=["numeric","style"];function getFormatter$1(e,t,a){var r=e.locale,n=e.formats,i=e.onError;if(a===void 0){a={}}var o=a.format;var s=!!o&&getNamedFormat(n,"relative",o,i)||{};var u=filterProps(a,RELATIVE_TIME_FORMAT_OPTIONS,s);return t(r,u)}function formatRelativeTime(e,t,a,r,n){if(n===void 0){n={}}if(!r){r="second"}var i=Intl.RelativeTimeFormat;if(!i){e.onError(new FormatError('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ErrorCode.MISSING_INTL_API))}try{return getFormatter$1(e,t,n).format(a,r)}catch(t){e.onError(new IntlFormatError("Error formatting relative time.",e.locale,t))}return String(a)}var NUMBER_FORMAT_OPTIONS=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function getFormatter(e,t,a){var r=e.locale,n=e.formats,i=e.onError;if(a===void 0){a={}}var o=a.format;var s=o&&getNamedFormat(n,"number",o,i)||{};var u=filterProps(a,NUMBER_FORMAT_OPTIONS,s);return t(r,u)}function formatNumber(e,t,a,r){if(r===void 0){r={}}try{return getFormatter(e,t,r).format(a)}catch(t){e.onError(new IntlFormatError("Error formatting number.",e.locale,t))}return String(a)}function formatNumberToParts(e,t,a,r){if(r===void 0){r={}}try{return getFormatter(e,t,r).formatToParts(a)}catch(t){e.onError(new IntlFormatError("Error formatting number.",e.locale,t))}return[]}function messagesContainString(e){var t=e?e[Object.keys(e)[0]]:undefined;return typeof t==="string"}function verifyConfigMessages(e){if(e.onWarn&&e.defaultRichTextElements&&messagesContainString(e.messages||{})){e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}}function createIntl(e,t){var a=createFormatters(t);var r=__assign(__assign({},DEFAULT_INTL_CONFIG),e);var n=r.locale,i=r.defaultLocale,o=r.onError;if(!n){if(o){o(new InvalidConfigError('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')))}r.locale=r.defaultLocale||"en"}else if(!Intl.NumberFormat.supportedLocalesOf(n).length&&o){o(new MissingDataError('Missing locale data for locale: "'.concat(n,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')))}else if(!Intl.DateTimeFormat.supportedLocalesOf(n).length&&o){o(new MissingDataError('Missing locale data for locale: "'.concat(n,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')))}verifyConfigMessages(r);return __assign(__assign({},r),{formatters:a,formatNumber:formatNumber.bind(null,r,a.getNumberFormat),formatNumberToParts:formatNumberToParts.bind(null,r,a.getNumberFormat),formatRelativeTime:formatRelativeTime.bind(null,r,a.getRelativeTimeFormat),formatDate:formatDate.bind(null,r,a.getDateTimeFormat),formatDateToParts:formatDateToParts.bind(null,r,a.getDateTimeFormat),formatTime:formatTime.bind(null,r,a.getDateTimeFormat),formatDateTimeRange:formatDateTimeRange.bind(null,r,a.getDateTimeFormat),formatTimeToParts:formatTimeToParts.bind(null,r,a.getDateTimeFormat),formatPlural:formatPlural.bind(null,r,a.getPluralRules),formatMessage:formatMessage.bind(null,r,a),$t:formatMessage.bind(null,r,a),formatList:formatList.bind(null,r,a.getListFormat),formatListToParts:formatListToParts.bind(null,r,a.getListFormat),formatDisplayName:formatDisplayName.bind(null,r,a.getDisplayNames)})}var DEFAULT_LANGUAGE="en";function getBrowserLang(){var e=document.documentElement.getAttribute("lang");if(!!e){return e}else if(window.navigator&&window.navigator.language){var t=window.navigator.languages?window.navigator.languages[0]:window.navigator.language;return t.slice(0,2)}else{return DEFAULT_LANGUAGE}}var cache=createIntlCache();var locale=getBrowserLang();var intl=createIntl({locale:locale,defaultLocale:"en",messages:lang[locale]||en},cache);function generateId(){return"wmcl-"+Math.random().toString(36).substr(2,10)}function throttle(e,t){var a;var r=false;return function(){var n=this;if(!r){e.apply(n,arguments);r=true;clearTimeout(a);a=setTimeout((function(){r=false}),t)}}}function debounce(e,t){var a;return function(){var r=this;var n=function(){return e.apply(r,arguments)};clearTimeout(a);a=setTimeout(n,t)}}function getTextDir(){var e=document.querySelector("html").getAttribute("dir");return e?e.toLowerCase():""}function getPosition(e){var t=e.getBoundingClientRect();var a=t.x;var r=t.y;if(!a){if(getTextDir()==="rtl"){a=t.right}else{a=t.left}r=t.top}return{x:a,y:r}}function findScrollableParent(e){while(!!e){if(["scroll","auto"].includes(window.getComputedStyle(e).overflowY)){return e}e=e.parentElement}}function findParentWithHiddenOverflow(e){while(!!e){if(window.getComputedStyle(e).overflowY!=="visible"){return e}e=e.parentElement}}function isElOrChild(e,t){var a;return t===e||e.contains(t)||((a=e.shadowRoot)===null||a===void 0?void 0:a.contains(t))}function getContextMeasurements(e){var t=e.getBoundingClientRect();var a=findParentWithHiddenOverflow(e);var r=a&&a.getBoundingClientRect();return{spaceAbove:r?t.top-r.top:t.top,spaceBelow:r?r.bottom-t.bottom:document.documentElement.clientHeight-t.bottom,spaceLeft:r?t.left-r.left:t.left,spaceRight:r?r.right-t.right:document.documentElement.clientWidth-t.right}}function shouldOpenUp(e,t,a,r){if(a===void 0){a=0}if(r===void 0){r=0}var n=getContextMeasurements(e),i=n.spaceAbove,o=n.spaceBelow;var s=t>o+r&&t<=i+a;return s}function shouldOpenDown(e,t,a,r){if(a===void 0){a=0}if(r===void 0){r=0}var n=getContextMeasurements(e),i=n.spaceAbove,o=n.spaceBelow;var s=t>i+a&&t<=o+r;return s}function shouldShiftRight(e,t){var a=getContextMeasurements(e),r=a.spaceLeft,n=a.spaceRight;var i=t>r&&n>r;return i}function shouldShiftLeft(e,t){var a=getContextMeasurements(e),r=a.spaceLeft,n=a.spaceRight;var i=t>n&&r>n;return i}function adjustTooltipPlacement(e,t,a,r){var n=getContextMeasurements(t),i=n.spaceLeft,o=n.spaceRight,s=n.spaceBelow,u=n.spaceAbove;var l=u>a;var c=s>a;var h=i-24>r;var v=o-24>r;var y=function(e){return!l?e.replace("top","bottom"):e};var d=function(e){return!c&&l?e.replace("bottom","top"):e};var p=function(e,t){if(!h&&v){e=e.replace("left","right")}else if(!h&&!v){e=t}return e};var f=function(e,t){if(!v&&h){e=e.replace("right","left")}else if(!v&&!h){e=t}return e};switch(e){case"left":e=p(e,"bottom");case"right":e=f(e,"bottom");case"top-left":e=p(e,"top");e=y(e);case"top-right":e=f(e,"top");e=y(e);case"bottom-left":e=p(e,"bottom");e=d(e);case"bottom-right":e=f(e,"bottom");e=d(e);case"top":e=y(e);case"bottom":e=d(e)}return e}function showTooltip(e,t,a){var r=document.querySelectorAll(".wm-tooltip");r.forEach((function(r){var n;if(!!r.showPopover){r.showPopover()}r.classList.add("show");r.textContent=a;var i=a.match(/^[^\s]+$/);if(i){r.classList.add("single-word");r.style.setProperty("--wmTooltipMaxWidth","none")}else{r.classList.remove("single-word");r.style.removeProperty("--wmTooltipMaxWidth")}var o=r.getBoundingClientRect();var s=t.getBoundingClientRect();var u=adjustTooltipPlacement(e,t,o.height,o.width);var l,c;n=positionTooltip(u,s,o.height,o.width),l=n[0],c=n[1];r.style.setProperty("--wmTooltipTop",l+"px");r.style.setProperty("--wmTooltipLeft",c+"px")}))}function hideTooltip(){var e=document.querySelectorAll(".wm-tooltip");e.forEach((function(e){if(!!e.hidePopover){e.hidePopover()}e.classList.remove("show")}))}function positionTooltip(e,t,a,r){var n=(t.height-a)/2;var i=(t.width-r)/2;var o=t.top+n;var s=t.left+i;if(e.includes("top")){o=t.top-a-8}if(e.includes("bottom")){o=t.bottom+8}if(e.includes("left")){s=t.left-r-8}if(e.includes("right")){s=t.right+8}s=Math.max(s,24);return[o,s]}function hasRoomRight(e,t){var a=0;if(e.type==="click"){a=e.clientX}else if(e.type==="focus"){a=0}else{var r=e;while(r){if(r.tagName=="BODY"){var n=r.scrollLeft||document.documentElement.scrollLeft;a+=r.offsetLeft-n+r.clientLeft}else{a+=r.offsetLeft-r.scrollLeft+r.clientLeft}r=r.offsetParent}}return window.innerWidth-a>=t}function checkForActiveElInShadow(e){while(e&&e.shadowRoot){e=e.shadowRoot.activeElement}return e}function snakeCaseToCamelCase(e){var t=/^([a-z0-9]*)(_[a-z0-9]*)*$/g;if(t.test(e)){var a="";var r=e.split("_");r.forEach((function(e,t){a+=t===0?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1)}));return a}else{return e}}function csvToArray(e){return e?e.split(/, ?/):[]}function getNewIndexToFocus(e,t,a){var r=e;if(t==="ArrowDown"){r=(e+1)%a}if(t==="ArrowUp"){r=e===0?a-1:e-1}return r}function toBool(e){return e=="false"?false:!!e}function measureText(e,t){var a=document.createElement("div");var r=getComputedStyle(e);a.style.position="absolute";a.style.top="-100vh";a.style.fontFamily=r.fontFamily;a.style.fontWeight=r.fontWeight;a.style.fontSize=r.fontSize;a.textContent=t;document.body.appendChild(a);var n=a.getBoundingClientRect();document.body.removeChild(a);return n}function truncateText(e,t,a,r){var n=document.createElement("div");n.style.visibility="hidden";n.style.position="absolute";n.style.top="-200vh";n.style.left="-200vh";n.textContent=t;e.appendChild(n);var i="...";var o=2+i.length+r;var s=a>n.clientWidth;if(!s&&t.length>o){var u=t.slice(0,t.length-r-i.length).trim();var l=t.slice(-r).trim();var c=u+i+l;n.textContent=c;s=a>n.clientWidth;while(!s&&c.length>o){u=u.slice(0,-1).trim();c=u+i+l;n.textContent=c;s=a>n.clientWidth}}var h=n.textContent;n.remove();return h}function transposeMatrix(e){var t=[];for(var a=0;a<e[0].length;a++){var r=[];for(var n=0;n<e.length;n++){r.push(e[n][a])}t.push(r)}return t}function wrapAround(e,t,a){e+=t;if(e>a){e=(e-1)%a}while(e<0){e=a-Math.abs(e)+1}return e}function skipByInterval(e,t){var a=[];for(var r=0;r<e.length;r+=1+t){a.push(e[r])}return a}function getSmallestSkipInterval(e,t){var a=0;var r=e;while(skipByInterval(e,a).length>t){a++;r=skipByInterval(e,a)}return{skipInterval:a,skippedList:r}}function calcPercentageInRange(e,t,a){var r=a-t;var n=Math.abs(e-t);var i=n/r*100;return i}function triggerFormSubmit(e){if(e.requestSubmit){e.requestSubmit()}else{var t=document.createElement("button");t.style.display="none";e.appendChild(t);t.click();document.removeChild(t)}}function handleDisabledAttribute(e,t){if(t==false&&e.hasAttribute("disabled")){e.removeAttribute("disabled")}}function findPrev(e,t,a){if(a===void 0){a=false}if(!!e&&!t)return e[e.length-1];if(!e.includes(t))return;var r=e.indexOf(t);var n=a?e.length-1:0;var i=r>0?r-1:n;return e[i]}function findNext(e,t,a){if(a===void 0){a=false}if(!!e&&!t)return e[0];if(!e.includes(t))return;var r=e.indexOf(t);var n=e.length-1;var i=a?0:n;var o=r!==n?r+1:i;return e[o]}function safeMultiplyFloat(e,t){var a=countDecimals(e);var r=countDecimals(t);var n=a+r;return parseFloat((e*t).toFixed(n))}function countDecimals(e){var t=e.toString();var a=t.indexOf(".");if(a==-1){return 0}else{return t.split(".")[1].length}}function getMonthLength(e,t){var a=[4,6,9,11];var r=t%4===0;return e===2?r?29:28:a.includes(e)?30:31}function dateToISO(e){return"".concat(e.getUTCFullYear(),"-").concat((e.getUTCMonth()+1).toString().padStart(2,"0"),"-").concat(e.getDate().toString().padStart(2,"0"))}function splitISO(e){var t=e.split("-"),a=t[0],r=t[1],n=t[2];return{year:{asInt:parseInt(a),asString:a},month:{asInt:parseInt(r),asString:r},day:{asInt:parseInt(n),asString:n}}}function makeISO(e,t,a){return"".concat(e,"-").concat(t.toString().padStart(2,"0"),"-").concat(a.toString().padStart(2,"0"))}var dateFind={year:{asString:function(e){return splitISO(e).year.asString},asInt:function(e){return splitISO(e).year.asInt},increase:function(e,t){var a=splitISO(e);var r=a.year.asInt;var n=a.month.asInt;var i=a.day.asInt;return makeISO(r+t,n,i)},decrease:function(e,t){var a=splitISO(e);var r=a.year.asInt;var n=a.month.asInt;var i=a.day.asInt;return makeISO(r-t,n,i)}},month:{asString:function(e){return splitISO(e).month.asString},asInt:function(e){return splitISO(e).month.asInt},increase:function(e,t){var a=splitISO(e);var r=Math.floor(t/12);var n=t%12;var i=a.year.asInt;var o=a.month.asInt;var s=a.day.asInt;i=o+n>12?i+1:i;i=i+r;o=o+n;o=(o-1)%12+1;return makeISO(i,o,s)},decrease:function(e,t){var a=splitISO(e);var r=Math.floor(t/12);var n=t%12;var i=a.year.asInt;var o=a.month.asInt;var s=a.day.asInt;i=o-n<1?i-1:i;i=i-r;o=o+12;o=o-n;o=(o-1)%12+1;return makeISO(i,o,s)}},day:{asString:function(e){return splitISO(e).day.asString},asInt:function(e){return splitISO(e).day.asInt},increase:function(e,t){if(t>7)throw new Error("this.dateFind.day.increase(): max 7 days");var a=splitISO(e);var r=a.year.asInt;var n=a.month.asInt;var i=a.day.asInt;var o=getMonthLength(n,r);var s=i+t>o;var u=s&&n===12;n=s?u?1:n+1:n;r=u?r+1:r;i=(i-1+t)%o+1;return makeISO(r,n,i)},decrease:function(e,t){if(t>7)throw new Error("this.dateFind.day.decrease(): max 7 days");var a=splitISO(e);var r=a.year.asInt;var n=a.month.asInt;var i=a.day.asInt;var o=n===1?12:n-1;var s=getMonthLength(o,r);var u=i-t<1;var l=u&&n===1;i=i+s;i=i-t;i=(i-1)%s+1;n=u?l?12:n-1:n;r=l?r-1:r;return makeISO(r,n,i)}}};var calendar_months=[intl.formatMessage({id:"date.january",defaultMessage:"January",description:"Month of the year"}),intl.formatMessage({id:"date.february",defaultMessage:"February",description:"Month of the year"}),intl.formatMessage({id:"date.march",defaultMessage:"March",description:"Month of the year"}),intl.formatMessage({id:"date.april",defaultMessage:"April",description:"Month of the year"}),intl.formatMessage({id:"date.may",defaultMessage:"May",description:"Month of the year"}),intl.formatMessage({id:"date.june",defaultMessage:"June",description:"Month of the year"}),intl.formatMessage({id:"date.july",defaultMessage:"July",description:"Month of the year"}),intl.formatMessage({id:"date.august",defaultMessage:"August",description:"Month of the year"}),intl.formatMessage({id:"date.september",defaultMessage:"September",description:"Month of the year"}),intl.formatMessage({id:"date.october",defaultMessage:"October",description:"Month of the year"}),intl.formatMessage({id:"date.november",defaultMessage:"November",description:"Month of the year"}),intl.formatMessage({id:"date.december",defaultMessage:"December",description:"Month of the year"})];var weekdays=[intl.formatMessage({id:"date.sunday",defaultMessage:"Sunday"}),intl.formatMessage({id:"date.monday",defaultMessage:"Monday"}),intl.formatMessage({id:"date.tuesday",defaultMessage:"Tuesday"}),intl.formatMessage({id:"date.wednesday",defaultMessage:"Wednesday"}),intl.formatMessage({id:"date.thursday",defaultMessage:"Thursday"}),intl.formatMessage({id:"date.friday",defaultMessage:"Friday"}),intl.formatMessage({id:"date.saturday",defaultMessage:"Saturday"})];export{throttle as A,getContextMeasurements as B,dateFind as C,calendar_months as D,findParentWithHiddenOverflow as E,transposeMatrix as F,wrapAround as G,getSmallestSkipInterval as H,calcPercentageInRange as I,makeISO as J,getMonthLength as K,weekdays as L,findScrollableParent as M,handleDisabledAttribute as a,triggerFormSubmit as b,checkForActiveElInShadow as c,debounce as d,safeMultiplyFloat as e,getPosition as f,generateId as g,hideTooltip as h,intl as i,dateToISO as j,shouldOpenUp as k,hasRoomRight as l,truncateText as m,snakeCaseToCamelCase as n,getNewIndexToFocus as o,shouldOpenDown as p,shouldShiftRight as q,shouldShiftLeft as r,showTooltip as s,toBool as t,measureText as u,findNext as v,findPrev as w,csvToArray as x,getTextDir as y,isElOrChild as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o))e[o]=r[o]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,r,t,n){function o(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n["throw"](e))}catch(e){a(e)}}function l(e){e.done?t(e.value):o(e.value).then(i,s)}l((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(r){return l([e,r])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(t=0)),t)try{if(n=1,o&&(a=s[0]&2?o["return"]:s[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,s[1])).done)return a;if(o=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;o=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1];a=s;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(s);break}if(a[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];o=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,a;n<o;n++){if(a||!(n in r)){if(!a)a=Array.prototype.slice.call(r,0,n);a[n]=r[n]}}return e.concat(a||Array.prototype.slice.call(r))};var NAMESPACE="ripple";var BUILD={allRenderFn:false,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:true,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:false,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,r){return hostRefs.set(r.t=e,r)};var registerHost=function(e,r){var t={o:0,$hostElement$:e,i:r,l:new Map};{t.u=new Promise((function(e){return t.v=e}))}{t.p=new Promise((function(e){return t.m=e}));e["s-p"]=[];e["s-rc"]=[]}return hostRefs.set(e,t)};var isMemberInElement=function(e,r){return r in e};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e.h.replace(/-/g,"_");var o=e.S;if(!o){return void 0}var a=cmpModules.get(o);if(a){return a[n]}if(!t||!BUILD.hotModuleReplacement){var i=function(e){cmpModules.set(o,e);return e[n]};switch(o){case"wm-button":return import("./wm-button.entry.js").then(i,consoleError);case"wm-chart":return import("./wm-chart.entry.js").then(i,consoleError);case"wm-datepicker":return import("./wm-datepicker.entry.js").then(i,consoleError);case"wm-file":return import("./wm-file.entry.js").then(i,consoleError);case"wm-file-list":return import("./wm-file-list.entry.js").then(i,consoleError);case"wm-input":return import("./wm-input.entry.js").then(i,consoleError);case"wm-navigator":return import("./wm-navigator.entry.js").then(i,consoleError);case"wm-pagination":return import("./wm-pagination.entry.js").then(i,consoleError);case"wm-search":return import("./wm-search.entry.js").then(i,consoleError);case"wm-snackbar":return import("./wm-snackbar.entry.js").then(i,consoleError);case"wm-timepicker":return import("./wm-timepicker.entry.js").then(i,consoleError);case"wm-toggletip":return import("./wm-toggletip.entry.js").then(i,consoleError);case"wm-tag-input":return import("./wm-tag-input.entry.js").then(i,consoleError);case"wm-tag-option":return import("./wm-tag-option.entry.js").then(i,consoleError);case"wm-textarea":return import("./wm-textarea.entry.js").then(i,consoleError);case"wm-uploader":return import("./wm-uploader.entry.js").then(i,consoleError);case"wm-wrapper":return import("./wm-wrapper.entry.js").then(i,consoleError);case"wm-action-menu_2":return import("./wm-action-menu_2.entry.js").then(i,consoleError);case"wm-option_2":return import("./wm-option_2.entry.js").then(i,consoleError);case"wm-modal_3":return import("./wm-modal_3.entry.js").then(i,consoleError);case"wm-modal-pss_3":return import("./wm-modal-pss_3.entry.js").then(i,consoleError);case"wm-navigation_3":return import("./wm-navigation_3.entry.js").then(i,consoleError);case"wm-progress-indicator_3":return import("./wm-progress-indicator_3.entry.js").then(i,consoleError);case"wm-tab-item_3":return import("./wm-tab-item_3.entry.js").then(i,consoleError);case"wm-chart-slice":return import("./wm-chart-slice.entry.js").then(i,consoleError);case"wm-date-range":return import("./wm-date-range.entry.js").then(i,consoleError);case"wm-line-chart":return import("./wm-line-chart.entry.js").then(i,consoleError);case"wm-nested-select":return import("./wm-nested-select.entry.js").then(i,consoleError);case"wm-optgroup":return import("./wm-optgroup.entry.js").then(i,consoleError);case"priv-navigator-button":return import("./priv-navigator-button.entry.js").then(i,consoleError);case"priv-navigator-item":return import("./priv-navigator-item.entry.js").then(i,consoleError);case"priv-calendar":return import("./priv-calendar.entry.js").then(i,consoleError);case"priv-chart-popover":return import("./priv-chart-popover.entry.js").then(i,consoleError);case"priv-option-list":return import("./priv-option-list.entry.js").then(i,consoleError)}}return import("./".concat(o,".entry.js").concat("")).then((function(e){{cmpModules.set(o,e)}return e[n]}),consoleError)};var styles=new Map;var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var XLINK_NS="http://www.w3.org/1999/xlink";var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={o:0,_:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var supportsListenerOptions=function(){var e=false;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(e){}return e}();var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.o&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}var o=null;var a=null;var i=null;var s=false;var l=false;var u=[];var c=function(r){for(var t=0;t<r.length;t++){o=r[t];if(Array.isArray(o)){c(o)}else if(o!=null&&typeof o!=="boolean"){if(s=typeof e!=="function"&&!isComplexType(o)){o=String(o)}if(s&&l){u[u.length-1].T+=o}else{u.push(s?newVNode(null,o):o)}l=s}}};c(t);if(r){if(r.key){a=r.key}if(r.name){i=r.name}{var f=r.className||r.class;if(f){r.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}if(typeof e==="function"){return e(r===null?{}:r,u,vdomFnUtils)}var v=newVNode(e,null);v.k=r;if(u.length>0){v.C=u}{v.N=a}{v.R=i}return v};var newVNode=function(e,r){var t={o:0,L:e,T:r,j:null,C:null};{t.k=null}{t.N=null}{t.R=null}return t};var Host={};var isHost=function(e){return e&&e.L===Host};var vdomFnUtils={forEach:function(e,r){return e.map(convertToPublic).forEach(r)},map:function(e,r){return e.map(convertToPublic).map(r).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.k,vchildren:e.C,vkey:e.N,vname:e.R,vtag:e.L,vtext:e.T}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var r=__assign({},e.vattrs);if(e.vkey){r.key=e.vkey}if(e.vname){r.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,r],e.vchildren||[],false))}var t=newVNode(e.vtag,e.vtext);t.k=e.vattrs;t.C=e.vchildren;t.N=e.vkey;t.R=e.vname;return t};var parsePropertyValue=function(e,r){if(e!=null&&!isComplexType(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,r,t){var n=getElement(e);return{emit:function(e){return emitEvent(n,r,{bubbles:!!(t&4),composed:!!(t&2),cancelable:!!(t&1),detail:e})}}};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var o=getScopeId(r);var a=styles.get(o);e=e.nodeType===11?e:doc;if(a){if(typeof a==="string"){e=e.head||e;var i=rootAppliedStyles.get(e);var s=void 0;if(!i){rootAppliedStyles.set(e,i=new Set)}if(!i.has(o)){{s=doc.createElement("style");s.innerHTML=a;var l=(n=plt.A)!=null?n:queryNonceMetaTagContent(doc);if(l!=null){s.setAttribute("nonce",l)}if(!(r.o&1)){if(e.nodeName==="HEAD"){var u=e.querySelectorAll("link[rel=preconnect]");var c=u.length>0?u[u.length-1].nextSibling:document.querySelector("style");e.insertBefore(s,c)}else if("host"in e){e.prepend(s)}else{e.append(s)}}if(r.o&1&&e.nodeName!=="HEAD"){e.insertBefore(s,null)}}if(r.o&4){s.innerHTML+=SLOT_FB_CSS}if(i){i.add(o)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return o};var attachStyles=function(e){var r=e.i;var t=e.$hostElement$;var n=r.o;var o=createTime("attachStyles",r.h);var a=addStyle(t.shadowRoot?t.shadowRoot:t.getRootNode(),r);if(n&10&&n&2){t["s-sc"]=a;t.classList.add(a+"-h")}o()};var getScopeId=function(e,r){return"sc-"+e.h};var setAccessor=function(e,r,t,n,o,a){if(t!==n){var i=isMemberInElement(e,r);var s=r.toLowerCase();if(r==="class"){var l=e.classList;var u=parseClassList(t);var c=parseClassList(n);l.remove.apply(l,u.filter((function(e){return e&&!c.includes(e)})));l.add.apply(l,c.filter((function(e){return e&&!u.includes(e)})))}else if(r==="style"){{for(var f in t){if(!n||n[f]==null){if(f.includes("-")){e.style.removeProperty(f)}else{e.style[f]=""}}}}for(var f in n){if(!t||n[f]!==t[f]){if(f.includes("-")){e.style.setProperty(f,n[f])}else{e.style[f]=n[f]}}}}else if(r==="key");else if(r==="ref"){if(n){n(e)}}else if(!i&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(isMemberInElement(win,s)){r=s.slice(2)}else{r=s[2]+r.slice(3)}if(t||n){var v=r.endsWith(CAPTURE_EVENT_SUFFIX);r=r.replace(CAPTURE_EVENT_REGEX,"");if(t){plt.rel(e,r,t,v)}if(n){plt.ael(e,r,n,v)}}}else{var d=isComplexType(n);if((i||d&&n!==null)&&!o){try{if(!e.tagName.includes("-")){var p=n==null?"":n;if(r==="list"){i=false}else if(t==null||e[r]!=p){if(typeof e.__lookupSetter__(r)==="function"){e[r]=p}else{e.setAttribute(r,p)}}}else{e[r]=n}}catch(e){}}var m=false;{if(s!==(s=s.replace(/^xlink\:?/,""))){r=s;m=true}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){if(m){e.removeAttributeNS(XLINK_NS,r)}else{e.removeAttribute(r)}}}else if((!i||a&4||o)&&!d){n=n===true?"":n;if(m){e.setAttributeNS(XLINK_NS,r,n)}else{e.setAttribute(r,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,r,t){var n=r.j.nodeType===11&&r.j.host?r.j.host:r.j;var o=e&&e.k||EMPTY_OBJ;var a=r.k||EMPTY_OBJ;{for(var i=0,s=sortedAttrNames(Object.keys(o));i<s.length;i++){var l=s[i];if(!(l in a)){setAccessor(n,l,o[l],void 0,t,r.o)}}}for(var u=0,c=sortedAttrNames(Object.keys(a));u<c.length;u++){var l=c[u];setAccessor(n,l,o[l],a[l],t,r.o)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var scopeId;var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var createElm=function(e,r,t,n){var o;var a=r.C[t];var i=0;var s;var l;var u;if(!useNativeShadowDom){checkSlotRelocate=true;if(a.L==="slot"){if(scopeId){n.classList.add(scopeId+"-s")}a.o|=a.C?2:1}}if(a.T!==null){s=a.j=doc.createTextNode(a.T)}else if(a.o&1){s=a.j=doc.createTextNode("")}else{if(!isSvgMode){isSvgMode=a.L==="svg"}s=a.j=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,!useNativeShadowDom&&BUILD.slotRelocation&&a.o&2?"slot-fb":a.L);if(isSvgMode&&a.L==="foreignObject"){isSvgMode=false}{updateElement(null,a,isSvgMode)}var c=s.getRootNode();var f=!c.querySelector("body");if(!f&&BUILD.scoped&&isDef(scopeId)&&s["s-si"]!==scopeId){s.classList.add(s["s-si"]=scopeId)}if(a.C){for(i=0;i<a.C.length;++i){l=createElm(e,a,i,s);if(l){s.appendChild(l)}}}{if(a.L==="svg"){isSvgMode=false}else if(s.tagName==="foreignObject"){isSvgMode=true}}}s["s-hn"]=hostTagName;{if(a.o&(2|1)){s["s-sr"]=true;s["s-cr"]=contentRef;s["s-sn"]=a.R||"";s["s-rf"]=(o=a.k)==null?void 0:o.ref;u=e&&e.C&&e.C[t];if(u&&u.L===a.L&&e.j){{putBackInOriginalLocation(e.j,false)}}}}return s};var putBackInOriginalLocation=function(e,r){plt.o|=1;var t=Array.from(e.childNodes);if(e["s-sr"]&&BUILD.experimentalSlotFixes){var n=e;while(n=n.nextSibling){if(n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===hostTagName){t.push(n)}}}for(var o=t.length-1;o>=0;o--){var a=t[o];if(a["s-hn"]!==hostTagName&&a["s-ol"]){insertBefore(parentReferenceNode(a),a,referenceNode(a));a["s-ol"].remove();a["s-ol"]=void 0;a["s-sh"]=void 0;checkSlotRelocate=true}if(r){putBackInOriginalLocation(a,r)}}plt.o&=~1};var addVnodes=function(e,r,t,n,o,a){var i=e["s-cr"]&&e["s-cr"].parentNode||e;var s;if(i.shadowRoot&&i.tagName===hostTagName){i=i.shadowRoot}for(;o<=a;++o){if(n[o]){s=createElm(null,t,o,e);if(s){n[o].j=s;insertBefore(i,s,referenceNode(r))}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var o=e[n];if(o){var a=o.j;nullifyVNodeRefs(o);if(a){{checkSlotFallbackVisibility=true;if(a["s-ol"]){a["s-ol"].remove()}else{putBackInOriginalLocation(a,true)}}a.remove()}}}};var updateChildren=function(e,r,t,n,o){if(o===void 0){o=false}var a=0;var i=0;var s=0;var l=0;var u=r.length-1;var c=r[0];var f=r[u];var v=n.length-1;var d=n[0];var p=n[v];var m;var h;while(a<=u&&i<=v){if(c==null){c=r[++a]}else if(f==null){f=r[--u]}else if(d==null){d=n[++i]}else if(p==null){p=n[--v]}else if(isSameVnode(c,d,o)){patch(c,d,o);c=r[++a];d=n[++i]}else if(isSameVnode(f,p,o)){patch(f,p,o);f=r[--u];p=n[--v]}else if(isSameVnode(c,p,o)){if(c.L==="slot"||p.L==="slot"){putBackInOriginalLocation(c.j.parentNode,false)}patch(c,p,o);insertBefore(e,c.j,f.j.nextSibling);c=r[++a];p=n[--v]}else if(isSameVnode(f,d,o)){if(c.L==="slot"||p.L==="slot"){putBackInOriginalLocation(f.j.parentNode,false)}patch(f,d,o);insertBefore(e,f.j,c.j);f=r[--u];d=n[++i]}else{s=-1;{for(l=a;l<=u;++l){if(r[l]&&r[l].N!==null&&r[l].N===d.N){s=l;break}}}if(s>=0){h=r[s];if(h.L!==d.L){m=createElm(r&&r[i],t,s,e)}else{patch(h,d,o);r[s]=void 0;m=h.j}d=n[++i]}else{m=createElm(r&&r[i],t,i,e);d=n[++i]}if(m){{insertBefore(parentReferenceNode(c.j),m,referenceNode(c.j))}}}}if(a>u){addVnodes(e,n[v+1]==null?null:n[v+1].j,t,n,i,v)}else if(i>v){removeVnodes(r,a,u)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.L===r.L){if(e.L==="slot"){if("M"in e&&t&&e.j.nodeType!==8){return false}return e.R===r.R}if(!t){return e.N===r.N}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var parentReferenceNode=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.j=e.j;var o=e.C;var a=r.C;var i=r.L;var s=r.T;var l;if(s===null){{isSvgMode=i==="svg"?true:i==="foreignObject"?false:isSvgMode}{if(i==="slot"&&!useNativeShadowDom);else{updateElement(e,r,isSvgMode)}}if(o!==null&&a!==null){updateChildren(n,o,r,a,t)}else if(a!==null){if(e.T!==null){n.textContent=""}addVnodes(n,null,r,a,0,a.length-1)}else if(!t&&BUILD.updatable&&o!==null){removeVnodes(o,0,o.length-1)}if(isSvgMode&&i==="svg"){isSvgMode=false}}else if(l=n["s-cr"]){l.parentNode.textContent=s}else if(e.T!==s){n.data=s}};var updateFallbackSlotVisibility=function(e){var r=e.childNodes;for(var t=0,n=r;t<n.length;t++){var o=n[t];if(o.nodeType===1){if(o["s-sr"]){var a=o["s-sn"];o.hidden=false;for(var i=0,s=r;i<s.length;i++){var l=s[i];if(l!==o){if(l["s-hn"]!==o["s-hn"]||a!==""){if(l.nodeType===1&&(a===l.getAttribute("slot")||a===l["s-sn"])||l.nodeType===3&&a===l["s-sn"]){o.hidden=true;break}}else{if(l.nodeType===1||l.nodeType===3&&l.textContent.trim()!==""){o.hidden=true;break}}}}}updateFallbackSlotVisibility(o)}}};var relocateNodes=[];var markSlotContentForRelocation=function(e){var r;var t;var n;for(var o=0,a=e.childNodes;o<a.length;o++){var i=a[o];if(i["s-sr"]&&(r=i["s-cr"])&&r.parentNode){t=r.parentNode.childNodes;var s=i["s-sn"];var l=function(){r=t[n];if(!r["s-cn"]&&!r["s-nr"]&&r["s-hn"]!==i["s-hn"]&&!BUILD.experimentalSlotFixes){if(isNodeLocatedInSlot(r,s)){var e=relocateNodes.find((function(e){return e.D===r}));checkSlotFallbackVisibility=true;r["s-sn"]=r["s-sn"]||s;if(e){e.D["s-sh"]=i["s-hn"];e.V=i}else{r["s-sh"]=i["s-hn"];relocateNodes.push({V:i,D:r})}if(r["s-sr"]){relocateNodes.map((function(t){if(isNodeLocatedInSlot(t.D,r["s-sn"])){e=relocateNodes.find((function(e){return e.D===r}));if(e&&!t.V){t.V=e.V}}}))}}else if(!relocateNodes.some((function(e){return e.D===r}))){relocateNodes.push({D:r})}}};for(n=t.length-1;n>=0;n--){l()}}if(i.nodeType===1){markSlotContentForRelocation(i)}}};var isNodeLocatedInSlot=function(e,r){if(e.nodeType===1){if(e.getAttribute("slot")===null&&r===""){return true}if(e.getAttribute("slot")===r){return true}return false}if(e["s-sn"]===r){return true}return r===""};var nullifyVNodeRefs=function(e){{e.k&&e.k.ref&&e.k.ref(null);e.C&&e.C.map(nullifyVNodeRefs)}};var insertBefore=function(e,r,t){var n=e==null?void 0:e.insertBefore(r,t);return n};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n,o,a,i;var s=e.$hostElement$;var l=e.i;var u=e.I||newVNode(null,null);var c=isHost(r)?r:h(null,null,r);hostTagName=s.tagName;if(l.F){c.k=c.k||{};l.F.map((function(e){var r=e[0],t=e[1];return c.k[t]=s[r]}))}if(t&&c.k){for(var f=0,v=Object.keys(c.k);f<v.length;f++){var d=v[f];if(s.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){c.k[d]=s[d]}}}c.L=null;c.o|=4;e.I=c;c.j=u.j=s.shadowRoot||s;{scopeId=s["s-sc"]}useNativeShadowDom=(l.o&1)!==0;{contentRef=s["s-cr"];checkSlotFallbackVisibility=false}patch(u,c,t);{plt.o|=1;if(checkSlotRelocate){markSlotContentForRelocation(c.j);for(var p=0,m=relocateNodes;p<m.length;p++){var y=m[p];var w=y.D;if(!w["s-ol"]){var g=doc.createTextNode("");g["s-nr"]=w;insertBefore(w.parentNode,w["s-ol"]=g,w)}}for(var S=0,b=relocateNodes;S<b.length;S++){var y=b[S];var w=y.D;var E=y.V;if(E){var _=E.parentNode;var T=E.nextSibling;{var g=(n=w["s-ol"])==null?void 0:n.previousSibling;while(g){var k=(o=g["s-nr"])!=null?o:null;if(k&&k["s-sn"]===w["s-sn"]&&_===k.parentNode){k=k.nextSibling;while(k===w||(k==null?void 0:k["s-sr"])){k=k==null?void 0:k.nextSibling}if(!k||!k["s-nr"]){T=k;break}}g=g.previousSibling}}if(!T&&_!==w.parentNode||w.nextSibling!==T){if(w!==T){if(!w["s-hn"]&&w["s-ol"]){w["s-hn"]=w["s-ol"].parentNode.nodeName}insertBefore(_,w,T);if(w.nodeType===1){w.hidden=(a=w["s-ih"])!=null?a:false}}}w&&typeof E["s-rf"]==="function"&&E["s-rf"](w)}else{if(w.nodeType===1){if(t){w["s-ih"]=(i=w.hidden)!=null?i:false}w.hidden=true}}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(c.j)}plt.o&=~1;relocateNodes.length=0}contentRef=void 0};var attachToAncestor=function(e,r){if(r&&!e.O&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.O=r})))}};var scheduleUpdate=function(e,r){{e.o|=16}if(e.o&4){e.o|=512;return}attachToAncestor(e,e.P);var t=function(){return dispatchHooks(e,r)};return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.i.h);var o=e.t;if(!o){throw new Error("Can't render component <".concat(t.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(r){{e.o|=256;if(e.$){e.$.map((function(e){var r=e[0],t=e[1];return safeCall(o,r,t)}));e.$=void 0}}{a=safeCall(o,"componentWillLoad")}}else{{a=safeCall(o,"componentWillUpdate")}}n();return enqueue(a,(function(){return updateComponent(e,o,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,o,a,i,s,l,u;return __generator(this,(function(c){o=e.$hostElement$;a=createTime("update",e.i.h);i=o["s-rc"];if(t){attachStyles(e)}s=createTime("render",e.i.h);{callRender(e,r,o,t)}if(i){i.map((function(e){return e()}));o["s-rc"]=void 0}s();a();{l=(n=o["s-p"])!=null?n:[];u=function(){return postUpdateComponent(e)};if(l.length===0){u()}else{Promise.all(l).then(u);e.o|=4;l.length=0}}return[2]}))}))};var callRender=function(e,r,t,n){try{r=r.render&&r.render();{e.o&=~16}{e.o|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var r=e.i.h;var t=e.$hostElement$;var n=createTime("postUpdate",r);var o=e.t;var a=e.P;{safeCall(o,"componentDidRender")}if(!(e.o&64)){e.o|=64;{addHydratedFlag(t)}{safeCall(o,"componentDidLoad")}n();{e.m(t);if(!a){appDidLoad()}}}else{{safeCall(o,"componentDidUpdate")}n()}{e.v(t)}{if(e.O){e.O();e.O=void 0}if(e.o&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.o&=~(4|512)}};var forceUpdate=function(e){{var r=getHostRef(e);var t=r.$hostElement$.isConnected;if(t&&(r.o&(2|16))===2){scheduleUpdate(r,false)}return t}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e)}}return void 0};var addHydratedFlag=function(e){var r;return e.classList.add((r=BUILD.hydratedSelectorName)!=null?r:"hydrated")};var getValue=function(e,r){return getHostRef(e).l.get(r)};var setValue=function(e,r,t,n){var o=getHostRef(e);if(!o){throw new Error("Couldn't find host element for \"".concat(n.h,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).'))}var a=o.$hostElement$;var i=o.l.get(r);var s=o.o;var l=o.t;t=parsePropertyValue(t,n.U[r][0]);var u=Number.isNaN(i)&&Number.isNaN(t);var c=t!==i&&!u;if((!(s&8)||i===void 0)&&c){o.l.set(r,t);if(l){if(n.H&&s&128){var f=n.H[r];if(f){f.map((function(e){try{l[e](t,i,r)}catch(e){consoleError(e,a)}}))}}if((s&(2|16))===2){scheduleUpdate(o,false)}}}};var proxyComponent=function(e,r,t){var n,o;var a=e.prototype;if(r.U||(r.H||e.watchers)){if(e.watchers&&!r.H){r.H=e.watchers}var i=Object.entries((n=r.U)!=null?n:{});i.map((function(e){var n=e[0],o=e[1][0];if(o&31||t&2&&o&32){Object.defineProperty(a,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,r)},configurable:true,enumerable:true})}else if(t&1&&o&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t;var o=getHostRef(this);return(t=o==null?void 0:o.u)==null?void 0:t.then((function(){var r;return(r=o.t)==null?void 0:r[n].apply(r,e)}))}})}}));if(t&1){var s=new Map;a.attributeChangedCallback=function(e,t,n){var o=this;plt.jmp((function(){var i;var l=s.get(e);if(o.hasOwnProperty(l)){n=o[l];delete o[l]}else if(a.hasOwnProperty(l)&&typeof o[l]==="number"&&o[l]==n){return}else if(l==null){var u=getHostRef(o);var c=u==null?void 0:u.o;if(c&&!(c&8)&&c&128&&n!==t){var f=u.t;var v=(i=r.H)==null?void 0:i[e];v==null?void 0:v.forEach((function(r){if(f[r]!=null){f[r].call(f,n,t,e)}}))}return}o[l]=n===null&&typeof o[l]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((o=r.H)!=null?o:{}),true),i.filter((function(e){var r=e[0],t=e[1];return t[0]&15})).map((function(e){var t=e[0],n=e[1];var o;var a=n[1]||t;s.set(a,t);if(n[0]&512){(o=r.F)==null?void 0:o.push([t,a])}return a})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,o,a,i,s,l,u,c,f,v,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((r.o&32)===0))return[3,6];r.o|=32;o=t.S;if(!o)return[3,4];a=loadModule(t);if(!(a&&"then"in a))return[3,2];i=uniqueTime();return[4,a];case 1:n=p.sent();i();return[3,3];case 2:n=a;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.h,"#").concat(r.B,'" was not found'))}if(!n.isProxied){{t.H=n.watchers}proxyComponent(n,t,2);n.isProxied=true}s=createTime("createInstance",t.h);{r.o|=8}try{new n(r)}catch(e){consoleError(e)}{r.o&=~8}{r.o|=128}s();return[3,5];case 4:n=e.constructor;l=e.localName;customElements.whenDefined(l).then((function(){return r.o|=128}));p.label=5;case 5:if(n&&n.style){u=void 0;if(typeof n.style==="string"){u=n.style}c=getScopeId(t);if(!styles.has(c)){f=createTime("registerStyles",t.h);registerStyle(c,u,!!(t.o&1));f()}}p.label=6;case 6:v=r.P;d=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(d)}else{d()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.o&1)===0){var r=getHostRef(e);var t=r.i;var n=createTime("connectedCallback",t.h);if(!(r.o&1)){r.o|=1;{if(t.o&(4|8)){setContentReference(e)}}{var o=e;while(o=o.parentNode||o.host){if(o["s-p"]){attachToAncestor(r,r.P=o);break}}}if(t.U){Object.entries(t.U).map((function(r){var t=r[0],n=r[1][0];if(n&31&&e.hasOwnProperty(t)){var o=e[t];delete e[t];e[t]=o}}))}{initializeComponent(e,r,t)}}else{addHostEventListeners(e,r,t.q);if(r==null?void 0:r.t);else if(r==null?void 0:r.p){r.p.then((function(){return fireConnectedCallback()}))}}n()}};var setContentReference=function(e){var r=e["s-cr"]=doc.createComment("");r["s-cn"]=true;insertBefore(e,r,e.firstChild)};var disconnectInstance=function(e){};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.o&1)===0){r=getHostRef(e);{if(r.W){r.W.map((function(e){return e()}));r.W=void 0}}if(r==null?void 0:r.t);else if(r==null?void 0:r.p){r.p.then((function(){return disconnectInstance()}))}}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;var n=createTime();var o=[];var a=r.exclude||[];var i=win.customElements;var s=doc.head;var l=s.querySelector("meta[charset]");var u=doc.createElement("style");var c=[];var f;var v=true;Object.assign(plt,r);plt._=new URL(r.resourcesUrl||"./",doc.baseURI).href;var d=false;e.map((function(e){e[1].map((function(r){var t;var n={o:r[0],h:r[1],U:r[2],q:r[3]};if(n.o&4){d=true}{n.U=r[2]}{n.q=r[3]}{n.F=[]}{n.H=(t=r[4])!=null?t:{}}var s=n.h;var l=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;t.hasRegisteredEventListeners=false;r=t;registerHost(r,n);if(n.o&1){{if(!r.shadowRoot){{r.attachShadow({mode:"open",delegatesFocus:!!(n.o&16)})}}else{if(r.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(n.h,"! Mode is set to ").concat(r.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return t}r.prototype.connectedCallback=function(){var e=this;var r=getHostRef(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;addHostEventListeners(this,r,n.q)}if(f){clearTimeout(f);f=null}if(v){c.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};r.prototype.componentOnReady=function(){return getHostRef(this).p};return r}(HTMLElement);n.S=e[0];if(!a.includes(s)&&!i.get(s)){o.push(s);i.define(s,proxyComponent(l,n,1))}}))}));if(o.length>0){if(d){u.textContent+=SLOT_FB_CSS}{u.textContent+=o.sort()+HYDRATED_CSS}if(u.innerHTML.length){u.setAttribute("data-styles","");var p=(t=plt.A)!=null?t:queryNonceMetaTagContent(doc);if(p!=null){u.setAttribute("nonce",p)}s.insertBefore(u,l?l.nextSibling:s.firstChild)}}v=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return f=setTimeout(appDidLoad,30)}))}}n()};var Fragment=function(e,r){return r};var addHostEventListeners=function(e,r,t,n){if(t){t.map((function(t){var n=t[0],o=t[1],a=t[2];var i=getHostListenerTarget(e,n);var s=hostListenerProxy(r,a);var l=hostListenerOpts(n);plt.ael(i,o,s,l);(r.W=r.W||[]).push((function(){return plt.rel(i,o,s,l)}))}))}};var hostListenerProxy=function(e,r){return function(t){var n;try{{if(e.o&256){(n=e.t)==null?void 0:n[r](t)}else{(e.$=e.$||[]).push([r,t])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,r){if(r&4)return doc;if(r&8)return win;return e};var hostListenerOpts=function(e){return supportsListenerOptions?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var setNonce=function(e){return plt.A=e};export{Fragment as F,Host as H,bootstrapLazy as b,createEvent as c,forceUpdate as f,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|