@sisense/sdk-ui 2.29.0 → 2.31.0
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/ai.cjs +57 -57
- package/dist/ai.js +767 -797
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1871 -1324
- package/dist/analytics-composer.cjs +2 -2
- package/dist/analytics-composer.js +8 -8
- package/dist/apply-styled-options-to-query-BddNnNsW.js +7028 -0
- package/dist/apply-styled-options-to-query-BrP6xVFh.cjs +1 -0
- package/dist/index-BcggtLDg.js +847 -0
- package/dist/{index-C77YCBVd.js → index-DCYw3JUB.js} +29 -7
- package/dist/index-DTvxJdqZ.cjs +1 -0
- package/dist/index-DhUTJSni.cjs +1 -0
- package/dist/index.cjs +614 -495
- package/dist/index.js +27269 -26507
- package/dist/index.umd.js +1035 -810
- package/dist/packages/sdk-ui/src/domains/dashboarding/common-filters/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/constants.d.ts +16 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header-config.d.ts +122 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header-targets.d.ts +26 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header-title.d.ts +20 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header/dashboard-header.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/toolbar/edit-toggle.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/toolbar/filter-toggle.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/constants.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-helpers.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +43 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/dashboard-module.d.ts +34 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-module/types.d.ts +65 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-menu-item.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-edit-mode-with-history.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-updates-persistence.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +11 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/update-types.d.ts +4 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +44 -16
- package/dist/packages/sdk-ui/src/domains/dashboarding/utils.d.ts +33 -1
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-data-browser.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/add-measure-popover.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measure-ranking-title.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/data-browser/add-measure-popover/measures.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-context.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor-popover.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/filter-editor.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/numeric-condition-section/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-controls.d.ts +33 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filter-editor-popover/sections/ranking-condition/ranking-condition-utils.d.ts +13 -0
- package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/filters-panel.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-collapsible.d.ts +22 -4
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-top-slot-shell.d.ts +2 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-trigger-button.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative-interactive.d.ts +20 -2
- package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative.d.ts +11 -9
- package/dist/packages/sdk-ui/src/domains/narrative/core/build-narrative-request.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-narrative-dimensions-and-measures.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/narrative/core/get-widget-narrative-from-widget-props.d.ts +18 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/to-nlg-api-verbosity.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-config.d.ts +114 -0
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +35 -32
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +11 -22
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-line-height.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +8 -9
- package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +34 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-jaql-excel-export.d.ts +13 -5
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-excel-query/excel-export/build-xlsx-export-payload.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/query-execution/types.d.ts +55 -3
- package/dist/packages/sdk-ui/src/domains/shared/header/header-item-cell.d.ts +25 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-item-size.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-items-renderer.d.ts +23 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/header-spacer-item.d.ts +9 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/resolve-header-items.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/types.d.ts +98 -0
- package/dist/packages/sdk-ui/src/domains/shared/header/use-resolved-header-items.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/areamap-chart/data/areamap-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/chart-data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +3 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data/index.d.ts +22 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/data-options/index.d.ts +33 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/design-options/index.d.ts +21 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/highchart-options/highcharts-options-builder.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-chart-builder.d.ts +3 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/sankey-node-colors.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/sankey-chart/types.d.ts +38 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +12 -9
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/data-cell-formatters/data-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/hooks/use-pivot-data-loading.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/pivot-table/resolve-pivot-container-size.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/sankey-chart.d.ts +30 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/helpers/calc-column-widths.d.ts +19 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/helpers/format-numbers.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/styles/style-constants.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/components/table/pure-table/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/cartesian-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/categorical-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/chart-data-service.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/scatter-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/apply-styled-options-to-query.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +46 -7
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/chart-options-service.d.ts +4 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/design-options.d.ts +40 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/funnel-plot-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/number-format-config.d.ts +12 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/sunburst/sunburst-series.d.ts +1 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/types.d.ts +12 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +1 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-excel-download.d.ts +2 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/use-chart-widget-narrative.d.ts +28 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/use-custom-widget-excel-download.d.ts +3 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/pivot-table-widget.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +1 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/use-pivot-widget-excel-download.d.ts +2 -3
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget/types.d.ts +25 -9
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/categorical-labels-style.d.ts +94 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/series-label-affix-style.d.ts +59 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/tabber.d.ts +17 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +13 -1
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/widget-narrative-style.d.ts +31 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +102 -2
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/excel-export-map-dimensions-measures.d.ts +17 -2
- package/dist/packages/sdk-ui/src/domains/widgets/helpers/number-format-config-to-numeric-mask.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +7 -1
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model.d.ts +6 -2
- package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +2 -2
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +11 -0
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +1 -3
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +8 -0
- package/dist/packages/sdk-ui/src/infra/modules/types.d.ts +24 -5
- package/dist/packages/sdk-ui/src/infra/plugins/types.d.ts +34 -6
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +180 -54
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +22 -0
- package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +44 -0
- package/dist/packages/sdk-ui/src/modules/ai/common/collapsible.d.ts +38 -2
- package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +4 -13
- package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/custom-formula/validate-custom-formula.d.ts +11 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/datetime-filter-processors.d.ts +6 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/measure-processors.d.ts +16 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/process-measured-value.d.ts +14 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-member-validation.d.ts +2 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-range-validation.d.ts +2 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-relative-validation.d.ts +1 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/datetime-validation-utils.d.ts +40 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/flatten-filters.d.ts +5 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/normalize-member-for-granularity.d.ts +5 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/validation/query-datetime-validation.d.ts +7 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +16 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/widget/to-widget-code.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +46 -3
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +0 -2
- package/dist/packages/sdk-ui/src/public-api/beta.d.ts +8 -0
- package/dist/packages/sdk-ui/src/public-api/internal.d.ts +1 -1
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +4 -1
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +4 -3
- package/dist/packages/sdk-ui/src/shared/components/alert/alert.d.ts +1 -50
- package/dist/packages/sdk-ui/src/shared/components/alert/index.d.ts +2 -2
- package/dist/packages/sdk-ui/src/shared/components/no-results-overlay/images/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +3 -10
- package/dist/packages/sdk-ui/src/shared/components/radio.d.ts +1 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-synced-state.d.ts +6 -7
- package/dist/packages/sdk-ui/src/shared/icons/warning-icon.d.ts +2 -3
- package/dist/packages/sdk-ui/src/shared/icons/x-circle-icon.d.ts +2 -3
- package/dist/packages/sdk-ui/src/shared/utils/color/color-interpolation.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/utils/color/colorjs.d.ts +36 -0
- package/dist/packages/sdk-ui/src/shared/utils/gradient.d.ts +3 -2
- package/dist/packages/sdk-ui/src/types.d.ts +89 -6
- package/dist/{use-hover-Dju4Dcv3.js → quota-notification-BMxiL8zu.js} +23452 -22126
- package/dist/quota-notification-CsGmQ05h.cjs +750 -0
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +27 -5
- package/dist/translations/en-us.cjs +1 -1
- package/dist/translations/en-us.js +1 -1
- package/dist/translations/es-ar.cjs +1 -1
- package/dist/translations/es-ar.js +27 -5
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +27 -5
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +27 -5
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +29 -7
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +27 -5
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +27 -5
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +29 -7
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +27 -5
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +27 -5
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +27 -5
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +27 -5
- package/dist/{types-7YG0uOzO.js → types-BB6n10Af.js} +1 -1
- package/dist/{types-DlYJ_DZ0.cjs → types-CMUXHDie.cjs} +1 -1
- package/dist/{utils-BKRpWUGm.js → utils-C39pRlFD.js} +14298 -13977
- package/dist/utils-CL2eytnK.cjs +180 -0
- package/dist/{widget-composer-BXEyx308.cjs → widget-composer-DDulWu8l.cjs} +85 -10
- package/dist/{widget-composer-DRDw1oBF.js → widget-composer-DrfnZQa0.js} +350 -259
- package/package.json +13 -16
- package/dist/apply-styled-options-to-query-CaP4IMrQ.js +0 -6379
- package/dist/apply-styled-options-to-query-D5D8pRl2.cjs +0 -1
- package/dist/index-C9G8giSk.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/components/dashboard-header.d.ts +0 -3
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-dashboard-header-toolbar.d.ts +0 -25
- package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +0 -36
- package/dist/packages/sdk-ui/src/shared/hooks/use-quota-warning-dismissed.d.ts +0 -8
- package/dist/use-hover-CANskYrn.cjs +0 -720
- package/dist/utils-C4PIba42.cjs +0 -179
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";var ep=Object.defineProperty,ip=Object.defineProperties;var op=Object.getOwnPropertyDescriptors;var Vo=Object.getOwnPropertySymbols;var As=Object.prototype.hasOwnProperty,Ts=Object.prototype.propertyIsEnumerable;var Wt=Math.pow,qr=(n,S,R)=>S in n?ep(n,S,{enumerable:!0,configurable:!0,writable:!0,value:R}):n[S]=R,kt=(n,S)=>{for(var R in S||(S={}))As.call(S,R)&&qr(n,R,S[R]);if(Vo)for(var R of Vo(S))Ts.call(S,R)&&qr(n,R,S[R]);return n},Nt=(n,S)=>ip(n,op(S));var je=(n,S)=>{var R={};for(var K in n)As.call(n,K)&&S.indexOf(K)<0&&(R[K]=n[K]);if(n!=null&&Vo)for(var K of Vo(n))S.indexOf(K)<0&&Ts.call(n,K)&&(R[K]=n[K]);return R};var We=(n,S,R)=>qr(n,typeof S!="symbol"?S+"":S,R);const Bt=require("./apply-styled-options-to-query-BrP6xVFh.cjs"),rp=require("react/jsx-runtime"),$e=require("react"),tl=require("react-dom/server");function el(n){const S=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const R in n)if(R!=="default"){const K=Object.getOwnPropertyDescriptor(n,R);Object.defineProperty(S,R,K.get?K:{enumerable:!0,get:()=>n[R]})}}return S.default=n,Object.freeze(S)}const wo=el(rp),ci=el($e);var yo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Gn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function np(n){if(n.__esModule)return n;var S=n.default;if(typeof S=="function"){var R=function K(){return this instanceof K?Reflect.construct(S,arguments,this.constructor):S.apply(this,arguments)};R.prototype=S.prototype}else R={};return Object.defineProperty(R,"__esModule",{value:!0}),Object.keys(n).forEach(function(K){var J=Object.getOwnPropertyDescriptor(n,K);Object.defineProperty(R,K,J.get?J:{enumerable:!0,get:function(){return n[K]}})}),R}function sp(){if(console&&console.warn){for(var n=arguments.length,S=new Array(n),R=0;R<n;R++)S[R]=arguments[R];typeof S[0]=="string"&&(S[0]=`react-i18next:: ${S[0]}`),console.warn(...S)}}const ks={};function gn(){for(var n=arguments.length,S=new Array(n),R=0;R<n;R++)S[R]=arguments[R];typeof S[0]=="string"&&ks[S[0]]||(typeof S[0]=="string"&&(ks[S[0]]=new Date),sp(...S))}const il=(n,S)=>()=>{if(n.isInitialized)S();else{const R=()=>{setTimeout(()=>{n.off("initialized",R)},0),S()};n.on("initialized",R)}};function Ps(n,S,R){n.loadNamespaces(S,il(n,R))}function Ls(n,S,R,K){typeof R=="string"&&(R=[R]),R.forEach(J=>{n.options.ns.indexOf(J)<0&&n.options.ns.push(J)}),n.loadLanguages(S,il(n,K))}function ap(n,S){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const K=S.languages[0],J=S.options?S.options.fallbackLng:!1,it=S.languages[S.languages.length-1];if(K.toLowerCase()==="cimode")return!0;const rt=(st,ht)=>{const ct=S.services.backendConnector.state[`${st}|${ht}`];return ct===-1||ct===2};return R.bindI18n&&R.bindI18n.indexOf("languageChanging")>-1&&S.services.backendConnector.backend&&S.isLanguageChangingTo&&!rt(S.isLanguageChangingTo,n)?!1:!!(S.hasResourceBundle(K,n)||!S.services.backendConnector.backend||S.options.resources&&!S.options.partialBundledLanguages||rt(K,n)&&(!J||rt(it,n)))}function lp(n,S){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!S.languages||!S.languages.length?(gn("i18n.languages were undefined or empty",S.languages),!0):S.options.ignoreJSONStructure!==void 0?S.hasLoadedNamespace(n,{lng:R.lng,precheck:(J,it)=>{if(R.bindI18n&&R.bindI18n.indexOf("languageChanging")>-1&&J.services.backendConnector.backend&&J.isLanguageChangingTo&&!it(J.isLanguageChangingTo,n))return!1}}):ap(n,S,R)}const ol=$e.createContext();class hp{constructor(){this.usedNamespaces={}}addUsedNamespaces(S){S.forEach(R=>{this.usedNamespaces[R]||(this.usedNamespaces[R]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const cp=(n,S)=>{const R=$e.useRef();return $e.useEffect(()=>{R.current=n},[n,S]),R.current};function Wn(n){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:R}=S,{i18n:K,defaultNS:J}=$e.useContext(ol)||{},it=R||K||Bt.getI18n();if(it&&!it.reportNamespaces&&(it.reportNamespaces=new hp),!it){gn("You will need to pass in an i18next instance by using initReactI18next");const Z=(F,I)=>typeof I=="string"?I:I&&typeof I=="object"&&typeof I.defaultValue=="string"?I.defaultValue:Array.isArray(F)?F[F.length-1]:F,V=[Z,{},!1];return V.t=Z,V.i18n={},V.ready=!1,V}it.options.react&&it.options.react.wait!==void 0&&gn("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const rt=kt(kt(kt({},Bt.getDefaults()),it.options.react),S),{useSuspense:st,keyPrefix:ht}=rt;let ct=J||it.options&&it.options.defaultNS;ct=typeof ct=="string"?[ct]:ct||["translation"],it.reportNamespaces.addUsedNamespaces&&it.reportNamespaces.addUsedNamespaces(ct);const pt=(it.isInitialized||it.initializedStoreOnce)&&ct.every(Z=>lp(Z,it,rt));function ft(){return it.getFixedT(S.lng||null,rt.nsMode==="fallback"?ct:ct[0],ht)}const[_,et]=$e.useState(ft);let G=ct.join();S.lng&&(G=`${S.lng}${G}`);const B=cp(G),H=$e.useRef(!0);$e.useEffect(()=>{const{bindI18n:Z,bindI18nStore:V}=rt;H.current=!0,!pt&&!st&&(S.lng?Ls(it,S.lng,ct,()=>{H.current&&et(ft)}):Ps(it,ct,()=>{H.current&&et(ft)})),pt&&B&&B!==G&&H.current&&et(ft);function F(){H.current&&et(ft)}return Z&&it&&it.on(Z,F),V&&it&&it.store.on(V,F),()=>{H.current=!1,Z&&it&&Z.split(" ").forEach(I=>it.off(I,F)),V&&it&&V.split(" ").forEach(I=>it.store.off(I,F))}},[it,G]);const U=$e.useRef(!0);$e.useEffect(()=>{H.current&&!U.current&&et(ft),U.current=!1},[it,ht]);const $=[_,it,pt];if($.t=_,$.i18n=it,$.ready=pt,pt||!pt&&!st)return $;throw new Promise(Z=>{S.lng?Ls(it,S.lng,ct,()=>Z()):Ps(it,ct,()=>Z())})}var pp=!1;function dp(n){if(n.sheet)return n.sheet;for(var S=0;S<document.styleSheets.length;S++)if(document.styleSheets[S].ownerNode===n)return document.styleSheets[S]}function up(n){var S=document.createElement("style");return S.setAttribute("data-emotion",n.key),n.nonce!==void 0&&S.setAttribute("nonce",n.nonce),S.appendChild(document.createTextNode("")),S.setAttribute("data-s",""),S}var fp=function(){function n(R){var K=this;this._insertTag=function(J){var it;K.tags.length===0?K.insertionPoint?it=K.insertionPoint.nextSibling:K.prepend?it=K.container.firstChild:it=K.before:it=K.tags[K.tags.length-1].nextSibling,K.container.insertBefore(J,it),K.tags.push(J)},this.isSpeedy=R.speedy===void 0?!pp:R.speedy,this.tags=[],this.ctr=0,this.nonce=R.nonce,this.key=R.key,this.container=R.container,this.prepend=R.prepend,this.insertionPoint=R.insertionPoint,this.before=null}var S=n.prototype;return S.hydrate=function(K){K.forEach(this._insertTag)},S.insert=function(K){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(up(this));var J=this.tags[this.tags.length-1];if(this.isSpeedy){var it=dp(J);try{it.insertRule(K,it.cssRules.length)}catch(rt){}}else J.appendChild(document.createTextNode(K));this.ctr++},S.flush=function(){this.tags.forEach(function(K){var J;return(J=K.parentNode)==null?void 0:J.removeChild(K)}),this.tags=[],this.ctr=0},n}(),Qt="-ms-",Ci="-moz-",Yt="-webkit-",rl="comm",Lr="rule",Er="decl",gp="@import",Or="@keyframes",mp="@layer",yp=Math.abs,Dr=String.fromCharCode,vp=Object.assign;function nl(n,S){return le(n,0)^45?(((S<<2^le(n,0))<<2^le(n,1))<<2^le(n,2))<<2^le(n,3):0}function sl(n){return n.trim()}function bi(n,S){return(n=S.exec(n))?n[0]:n}function Xt(n,S,R){return n.replace(S,R)}function to(n,S){return n.indexOf(S)}function le(n,S){return n.charCodeAt(S)|0}function eo(n,S,R){return n.slice(S,R)}function ii(n){return n.length}function Hn(n){return n.length}function $o(n,S){return S.push(n),n}function al(n,S){return n.map(S).join("")}var jr=1,io=1,ll=0,Re=0,ge=0,so="";function Ir(n,S,R,K,J,it,rt){return{value:n,root:S,parent:R,type:K,props:J,children:it,line:jr,column:io,length:rt,return:""}}function pi(n,S){return vp(Ir("",null,null,"",null,null,0),n,{length:-n.length},S)}function bp(){return ge}function xp(){return ge=Re>0?le(so,--Re):0,io--,ge===10&&(io=1,jr--),ge}function Ye(){return ge=Re<ll?le(so,Re++):0,io++,ge===10&&(io=1,jr++),ge}function fi(){return le(so,Re)}function hr(){return Re}function Io(n,S){return eo(so,n,S)}function Mo(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hl(n){return jr=io=1,ll=ii(so=n),Re=0,[]}function cl(n){return so="",n}function cr(n){return sl(Io(Re-1,mn(n===91?n+2:n===40?n+1:n)))}function Cp(n){for(;(ge=fi())&&ge<33;)Ye();return Mo(n)>2||Mo(ge)>3?"":" "}function Sp(n,S){for(;--S&&Ye()&&!(ge<48||ge>102||ge>57&&ge<65||ge>70&&ge<97););return Io(n,hr()+(S<6&&fi()==32&&Ye()==32))}function mn(n){for(;Ye();)switch(ge){case n:return Re;case 34:case 39:n!==34&&n!==39&&mn(ge);break;case 40:n===41&&mn(n);break;case 92:Ye();break}return Re}function wp(n,S){for(;Ye()&&n+ge!==57;)if(n+ge===84&&fi()===47)break;return"/*"+Io(S,Re-1)+"*"+Dr(n===47?n:Ye())}function Mp(n){for(;!Mo(fi());)Ye();return Io(n,Re)}function Ap(n){return cl(pr("",null,null,null,[""],n=hl(n),0,[0],n))}function pr(n,S,R,K,J,it,rt,st,ht){for(var ct=0,pt=0,ft=rt,_=0,et=0,G=0,B=1,H=1,U=1,$=0,Z="",V=J,F=it,I=K,E=Z;H;)switch(G=$,$=Ye()){case 40:if(G!=108&&le(E,ft-1)==58){to(E+=Xt(cr($),"&","&\f"),"&\f")!=-1&&(U=-1);break}case 34:case 39:case 91:E+=cr($);break;case 9:case 10:case 13:case 32:E+=Cp(G);break;case 92:E+=Sp(hr()-1,7);continue;case 47:switch(fi()){case 42:case 47:$o(Tp(wp(Ye(),hr()),S,R),ht);break;default:E+="/"}break;case 123*B:st[ct++]=ii(E)*U;case 125*B:case 59:case 0:switch($){case 0:case 125:H=0;case 59+pt:U==-1&&(E=Xt(E,/\f/g,"")),et>0&&ii(E)-ft&&$o(et>32?Os(E+";",K,R,ft-1):Os(Xt(E," ","")+";",K,R,ft-2),ht);break;case 59:E+=";";default:if($o(I=Es(E,S,R,ct,pt,J,st,Z,V=[],F=[],ft),it),$===123)if(pt===0)pr(E,S,I,I,V,it,ft,st,F);else switch(_===99&&le(E,3)===110?100:_){case 100:case 108:case 109:case 115:pr(n,I,I,K&&$o(Es(n,I,I,0,0,J,st,Z,J,V=[],ft),F),J,F,ft,st,K?V:F);break;default:pr(E,I,I,I,[""],F,0,st,F)}}ct=pt=et=0,B=U=1,Z=E="",ft=rt;break;case 58:ft=1+ii(E),et=G;default:if(B<1){if($==123)--B;else if($==125&&B++==0&&xp()==125)continue}switch(E+=Dr($),$*B){case 38:U=pt>0?1:(E+="\f",-1);break;case 44:st[ct++]=(ii(E)-1)*U,U=1;break;case 64:fi()===45&&(E+=cr(Ye())),_=fi(),pt=ft=ii(Z=E+=Mp(hr())),$++;break;case 45:G===45&&ii(E)==2&&(B=0)}}return it}function Es(n,S,R,K,J,it,rt,st,ht,ct,pt){for(var ft=J-1,_=J===0?it:[""],et=Hn(_),G=0,B=0,H=0;G<K;++G)for(var U=0,$=eo(n,ft+1,ft=yp(B=rt[G])),Z=n;U<et;++U)(Z=sl(B>0?_[U]+" "+$:Xt($,/&\f/g,_[U])))&&(ht[H++]=Z);return Ir(n,S,R,J===0?Lr:st,ht,ct,pt)}function Tp(n,S,R){return Ir(n,S,R,rl,Dr(bp()),eo(n,2,-2),0)}function Os(n,S,R,K){return Ir(n,S,R,Er,eo(n,0,K),eo(n,K+1,-1),K)}function pl(n,S,R){switch(nl(n,S)){case 5103:return Yt+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yt+n+n;case 4789:return Ci+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+n+Ci+n+Qt+n+n;case 5936:switch(le(n,S+11)){case 114:return Yt+n+Qt+Xt(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Yt+n+Qt+Xt(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Yt+n+Qt+Xt(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return Yt+n+Qt+n+n;case 6165:return Yt+n+Qt+"flex-"+n+n;case 5187:return Yt+n+Xt(n,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+Qt+"flex-$1$2")+n;case 5443:return Yt+n+Qt+"flex-item-"+Xt(n,/flex-|-self/g,"")+(bi(n,/flex-|baseline/)?"":Qt+"grid-row-"+Xt(n,/flex-|-self/g,""))+n;case 4675:return Yt+n+Qt+"flex-line-pack"+Xt(n,/align-content|flex-|-self/g,"")+n;case 5548:return Yt+n+Qt+Xt(n,"shrink","negative")+n;case 5292:return Yt+n+Qt+Xt(n,"basis","preferred-size")+n;case 6060:return Yt+"box-"+Xt(n,"-grow","")+Yt+n+Qt+Xt(n,"grow","positive")+n;case 4554:return Yt+Xt(n,/([^-])(transform)/g,"$1"+Yt+"$2")+n;case 6187:return Xt(Xt(Xt(n,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),n,"")+n;case 5495:case 3959:return Xt(n,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return Xt(Xt(n,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+Qt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yt+n+n;case 4200:if(!bi(n,/flex-|baseline/))return Qt+"grid-column-align"+eo(n,S)+n;break;case 2592:case 3360:return Qt+Xt(n,"template-","")+n;case 4384:case 3616:return R&&R.some(function(K,J){return S=J,bi(K.props,/grid-\w+-end/)})?~to(n+(R=R[S].value),"span")?n:Qt+Xt(n,"-start","")+n+Qt+"grid-row-span:"+(~to(R,"span")?bi(R,/\d+/):+bi(R,/\d+/)-+bi(n,/\d+/))+";":Qt+Xt(n,"-start","")+n;case 4896:case 4128:return R&&R.some(function(K){return bi(K.props,/grid-\w+-start/)})?n:Qt+Xt(Xt(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return Xt(n,/(.+)-inline(.+)/,Yt+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ii(n)-1-S>6)switch(le(n,S+1)){case 109:if(le(n,S+4)!==45)break;case 102:return Xt(n,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+Ci+(le(n,S+3)==108?"$3":"$2-$3"))+n;case 115:return~to(n,"stretch")?pl(Xt(n,"stretch","fill-available"),S,R)+n:n}break;case 5152:case 5920:return Xt(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(K,J,it,rt,st,ht,ct){return Qt+J+":"+it+ct+(rt?Qt+J+"-span:"+(st?ht:+ht-+it)+ct:"")+n});case 4949:if(le(n,S+6)===121)return Xt(n,":",":"+Yt)+n;break;case 6444:switch(le(n,le(n,14)===45?18:11)){case 120:return Xt(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yt+(le(n,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+Qt+"$2box$3")+n;case 100:return Xt(n,":",":"+Qt)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Xt(n,"scroll-","scroll-snap-")+n}return n}function Si(n,S){for(var R="",K=Hn(n),J=0;J<K;J++)R+=S(n[J],J,n,S)||"";return R}function kp(n,S,R,K){switch(n.type){case mp:if(n.children.length)break;case gp:case Er:return n.return=n.return||n.value;case rl:return"";case Or:return n.return=n.value+"{"+Si(n.children,K)+"}";case Lr:n.value=n.props.join(",")}return ii(R=Si(n.children,K))?n.return=n.value+"{"+R+"}":""}function Pp(n){var S=Hn(n);return function(R,K,J,it){for(var rt="",st=0;st<S;st++)rt+=n[st](R,K,J,it)||"";return rt}}function Lp(n){return function(S){S.root||(S=S.return)&&n(S)}}function Ep(n,S,R,K){if(n.length>-1&&!n.return)switch(n.type){case Er:n.return=pl(n.value,n.length,R);return;case Or:return Si([pi(n,{value:Xt(n.value,"@","@"+Yt)})],K);case Lr:if(n.length)return al(n.props,function(J){switch(bi(J,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Si([pi(n,{props:[Xt(J,/:(read-\w+)/,":"+Ci+"$1")]})],K);case"::placeholder":return Si([pi(n,{props:[Xt(J,/:(plac\w+)/,":"+Yt+"input-$1")]}),pi(n,{props:[Xt(J,/:(plac\w+)/,":"+Ci+"$1")]}),pi(n,{props:[Xt(J,/:(plac\w+)/,Qt+"input-$1")]})],K)}return""})}}function dl(n){var S=Object.create(null);return function(R){return S[R]===void 0&&(S[R]=n(R)),S[R]}}var Op=function(S,R,K){for(var J=0,it=0;J=it,it=fi(),J===38&&it===12&&(R[K]=1),!Mo(it);)Ye();return Io(S,Re)},Dp=function(S,R){var K=-1,J=44;do switch(Mo(J)){case 0:J===38&&fi()===12&&(R[K]=1),S[K]+=Op(Re-1,R,K);break;case 2:S[K]+=cr(J);break;case 4:if(J===44){S[++K]=fi()===58?"&\f":"",R[K]=S[K].length;break}default:S[K]+=Dr(J)}while(J=Ye());return S},jp=function(S,R){return cl(Dp(hl(S),R))},Ds=new WeakMap,Ip=function(S){if(!(S.type!=="rule"||!S.parent||S.length<1)){for(var R=S.value,K=S.parent,J=S.column===K.column&&S.line===K.line;K.type!=="rule";)if(K=K.parent,!K)return;if(!(S.props.length===1&&R.charCodeAt(0)!==58&&!Ds.get(K))&&!J){Ds.set(S,!0);for(var it=[],rt=jp(R,it),st=K.props,ht=0,ct=0;ht<rt.length;ht++)for(var pt=0;pt<st.length;pt++,ct++)S.props[ct]=it[ht]?rt[ht].replace(/&\f/g,st[pt]):st[pt]+" "+rt[ht]}}},_p=function(S){if(S.type==="decl"){var R=S.value;R.charCodeAt(0)===108&&R.charCodeAt(2)===98&&(S.return="",S.value="")}};function ul(n,S){switch(nl(n,S)){case 5103:return Yt+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yt+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+n+Ci+n+Qt+n+n;case 6828:case 4268:return Yt+n+Qt+n+n;case 6165:return Yt+n+Qt+"flex-"+n+n;case 5187:return Yt+n+Xt(n,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+Qt+"flex-$1$2")+n;case 5443:return Yt+n+Qt+"flex-item-"+Xt(n,/flex-|-self/,"")+n;case 4675:return Yt+n+Qt+"flex-line-pack"+Xt(n,/align-content|flex-|-self/,"")+n;case 5548:return Yt+n+Qt+Xt(n,"shrink","negative")+n;case 5292:return Yt+n+Qt+Xt(n,"basis","preferred-size")+n;case 6060:return Yt+"box-"+Xt(n,"-grow","")+Yt+n+Qt+Xt(n,"grow","positive")+n;case 4554:return Yt+Xt(n,/([^-])(transform)/g,"$1"+Yt+"$2")+n;case 6187:return Xt(Xt(Xt(n,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),n,"")+n;case 5495:case 3959:return Xt(n,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return Xt(Xt(n,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+Qt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yt+n+n;case 4095:case 3583:case 4068:case 2532:return Xt(n,/(.+)-inline(.+)/,Yt+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ii(n)-1-S>6)switch(le(n,S+1)){case 109:if(le(n,S+4)!==45)break;case 102:return Xt(n,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+Ci+(le(n,S+3)==108?"$3":"$2-$3"))+n;case 115:return~to(n,"stretch")?ul(Xt(n,"stretch","fill-available"),S)+n:n}break;case 4949:if(le(n,S+1)!==115)break;case 6444:switch(le(n,ii(n)-3-(~to(n,"!important")&&10))){case 107:return Xt(n,":",":"+Yt)+n;case 101:return Xt(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yt+(le(n,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+Qt+"$2box$3")+n}break;case 5936:switch(le(n,S+11)){case 114:return Yt+n+Qt+Xt(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Yt+n+Qt+Xt(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Yt+n+Qt+Xt(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Yt+n+Qt+n+n}return n}var Np=function(S,R,K,J){if(S.length>-1&&!S.return)switch(S.type){case Er:S.return=ul(S.value,S.length);break;case Or:return Si([pi(S,{value:Xt(S.value,"@","@"+Yt)})],J);case Lr:if(S.length)return al(S.props,function(it){switch(bi(it,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Si([pi(S,{props:[Xt(it,/:(read-\w+)/,":"+Ci+"$1")]})],J);case"::placeholder":return Si([pi(S,{props:[Xt(it,/:(plac\w+)/,":"+Yt+"input-$1")]}),pi(S,{props:[Xt(it,/:(plac\w+)/,":"+Ci+"$1")]}),pi(S,{props:[Xt(it,/:(plac\w+)/,Qt+"input-$1")]})],J)}return""})}},Bp=[Np],fl=function(S){var R=S.key;if(R==="css"){var K=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(K,function(B){var H=B.getAttribute("data-emotion");H.indexOf(" ")!==-1&&(document.head.appendChild(B),B.setAttribute("data-s",""))})}var J=S.stylisPlugins||Bp,it={},rt,st=[];rt=S.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+R+' "]'),function(B){for(var H=B.getAttribute("data-emotion").split(" "),U=1;U<H.length;U++)it[H[U]]=!0;st.push(B)});var ht,ct=[Ip,_p];{var pt,ft=[kp,Lp(function(B){pt.insert(B)})],_=Pp(ct.concat(J,ft)),et=function(H){return Si(Ap(H),_)};ht=function(H,U,$,Z){pt=$,et(H?H+"{"+U.styles+"}":U.styles),Z&&(G.inserted[U.name]=!0)}}var G={key:R,sheet:new fp({key:R,container:rt,nonce:S.nonce,speedy:S.speedy,prepend:S.prepend,insertionPoint:S.insertionPoint}),nonce:S.nonce,inserted:it,registered:{},insert:ht};return G.sheet.hydrate(st),G},Rp=!0;function gl(n,S,R){var K="";return R.split(" ").forEach(function(J){n[J]!==void 0?S.push(n[J]+";"):J&&(K+=J+" ")}),K}var Xn=function(S,R,K){var J=S.key+"-"+R.name;(K===!1||Rp===!1)&&S.registered[J]===void 0&&(S.registered[J]=R.styles)},ml=function(S,R,K){Xn(S,R,K);var J=S.key+"-"+R.name;if(S.inserted[R.name]===void 0){var it=R;do S.insert(R===it?"."+J:"",it,S.sheet,!0),it=it.next;while(it!==void 0)}};function zp(n){for(var S=0,R,K=0,J=n.length;J>=4;++K,J-=4)R=n.charCodeAt(K)&255|(n.charCodeAt(++K)&255)<<8|(n.charCodeAt(++K)&255)<<16|(n.charCodeAt(++K)&255)<<24,R=(R&65535)*1540483477+((R>>>16)*59797<<16),R^=R>>>24,S=(R&65535)*1540483477+((R>>>16)*59797<<16)^(S&65535)*1540483477+((S>>>16)*59797<<16);switch(J){case 3:S^=(n.charCodeAt(K+2)&255)<<16;case 2:S^=(n.charCodeAt(K+1)&255)<<8;case 1:S^=n.charCodeAt(K)&255,S=(S&65535)*1540483477+((S>>>16)*59797<<16)}return S^=S>>>13,S=(S&65535)*1540483477+((S>>>16)*59797<<16),((S^S>>>15)>>>0).toString(36)}var Fp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gp=!1,Wp=/[A-Z]|^ms/g,Hp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yl=function(S){return S.charCodeAt(1)===45},js=function(S){return S!=null&&typeof S!="boolean"},Jr=dl(function(n){return yl(n)?n:n.replace(Wp,"-$&").toLowerCase()}),Is=function(S,R){switch(S){case"animation":case"animationName":if(typeof R=="string")return R.replace(Hp,function(K,J,it){return hi={name:J,styles:it,next:hi},J})}return Fp[S]!==1&&!yl(S)&&typeof R=="number"&&R!==0?R+"px":R},Xp="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ao(n,S,R){if(R==null)return"";var K=R;if(K.__emotion_styles!==void 0)return K;switch(typeof R){case"boolean":return"";case"object":{var J=R;if(J.anim===1)return hi={name:J.name,styles:J.styles,next:hi},J.name;var it=R;if(it.styles!==void 0){var rt=it.next;if(rt!==void 0)for(;rt!==void 0;)hi={name:rt.name,styles:rt.styles,next:hi},rt=rt.next;var st=it.styles+";";return st}return Yp(n,S,R)}case"function":{if(n!==void 0){var ht=hi,ct=R(n);return hi=ht,Ao(n,S,ct)}break}}var pt=R;if(S==null)return pt;var ft=S[pt];return ft!==void 0?ft:pt}function Yp(n,S,R){var K="";if(Array.isArray(R))for(var J=0;J<R.length;J++)K+=Ao(n,S,R[J])+";";else for(var it in R){var rt=R[it];if(typeof rt!="object"){var st=rt;S!=null&&S[st]!==void 0?K+=it+"{"+S[st]+"}":js(st)&&(K+=Jr(it)+":"+Is(it,st)+";")}else{if(it==="NO_COMPONENT_SELECTOR"&&Gp)throw new Error(Xp);if(Array.isArray(rt)&&typeof rt[0]=="string"&&(S==null||S[rt[0]]===void 0))for(var ht=0;ht<rt.length;ht++)js(rt[ht])&&(K+=Jr(it)+":"+Is(it,rt[ht])+";");else{var ct=Ao(n,S,rt);switch(it){case"animation":case"animationName":{K+=Jr(it)+":"+ct+";";break}default:K+=it+"{"+ct+"}"}}}}return K}var _s=/label:\s*([^\s;{]+)\s*(;|$)/g,hi;function vl(n,S,R){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var K=!0,J="";hi=void 0;var it=n[0];if(it==null||it.raw===void 0)K=!1,J+=Ao(R,S,it);else{var rt=it;J+=rt[0]}for(var st=1;st<n.length;st++)if(J+=Ao(R,S,n[st]),K){var ht=it;J+=ht[st]}_s.lastIndex=0;for(var ct="",pt;(pt=_s.exec(J))!==null;)ct+="-"+pt[1];var ft=zp(J)+ct;return{name:ft,styles:J,next:hi}}var Up=function(S){return S()},bl=ci[`useInsertionEffect${Math.random()}`.slice(0,18)]?ci[`useInsertionEffect${Math.random()}`.slice(0,18)]:!1,xl=bl||Up,Vp=bl||ci.useLayoutEffect,$p=!1,Cl=ci.createContext(typeof HTMLElement!="undefined"?fl({key:"css"}):null),Zp=Cl.Provider,Sl=function(S){return $e.forwardRef(function(R,K){var J=$e.useContext(Cl);return S(R,J,K)})},wl=ci.createContext({}),_o={}.hasOwnProperty,yn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yn=function(S,R){var K={};for(var J in R)_o.call(R,J)&&(K[J]=R[J]);return K[yn]=S,K},Kp=function(S){var R=S.cache,K=S.serialized,J=S.isStringTag;return Xn(R,K,J),xl(function(){return ml(R,K,J)}),null},qp=Sl(function(n,S,R){var K=n.css;typeof K=="string"&&S.registered[K]!==void 0&&(K=S.registered[K]);var J=n[yn],it=[K],rt="";typeof n.className=="string"?rt=gl(S.registered,it,n.className):n.className!=null&&(rt=n.className+" ");var st=vl(it,void 0,ci.useContext(wl));rt+=S.key+"-"+st.name;var ht={};for(var ct in n)_o.call(n,ct)&&ct!=="css"&&ct!==yn&&!$p&&(ht[ct]=n[ct]);return ht.className=rt,R&&(ht.ref=R),ci.createElement(ci.Fragment,null,ci.createElement(Kp,{cache:S,serialized:st,isStringTag:typeof J=="string"}),ci.createElement(J,ht))}),Un=qp,Ml=wo.Fragment,ue=function(S,R,K){return _o.call(R,"css")?wo.jsx(Un,Yn(S,R),K):wo.jsx(S,R,K)},ji=function(S,R,K){return _o.call(R,"css")?wo.jsxs(Un,Yn(S,R),K):wo.jsxs(S,R,K)};const Jp=2e4,Qp="system",Vn="#5B6372",td="#F4F4F8",ed="#FA5656",$n="N\\A",id="N/A",od={minWidth:"24px",minHeight:"24px"};var Al=6e4,Tl=36e5;function rd(n,S){var R;Bt.requiredArgs(1,arguments);var K=Bt.toInteger((R=void 0)!==null&&R!==void 0?R:2);if(K!==2&&K!==1&&K!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var J=ld(n),it;if(J.date){var rt=hd(J.date,K);it=cd(rt.restDateString,rt.year)}if(!it||isNaN(it.getTime()))return new Date(NaN);var st=it.getTime(),ht=0,ct;if(J.time&&(ht=pd(J.time),isNaN(ht)))return new Date(NaN);if(J.timezone){if(ct=dd(J.timezone),isNaN(ct))return new Date(NaN)}else{var pt=new Date(st+ht),ft=new Date(0);return ft.setFullYear(pt.getUTCFullYear(),pt.getUTCMonth(),pt.getUTCDate()),ft.setHours(pt.getUTCHours(),pt.getUTCMinutes(),pt.getUTCSeconds(),pt.getUTCMilliseconds()),ft}return new Date(st+ht+ct)}var Zo={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},nd=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sd=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ad=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ld(n){var S={},R=n.split(Zo.dateTimeDelimiter),K;if(R.length>2)return S;if(/:/.test(R[0])?K=R[0]:(S.date=R[0],K=R[1],Zo.timeZoneDelimiter.test(S.date)&&(S.date=n.split(Zo.timeZoneDelimiter)[0],K=n.substr(S.date.length,n.length))),K){var J=Zo.timezone.exec(K);J?(S.time=K.replace(J[1],""),S.timezone=J[1]):S.time=K}return S}function hd(n,S){var R=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+S)+"})|(\\d{2}|[+-]\\d{"+(2+S)+"})$)"),K=n.match(R);if(!K)return{year:NaN,restDateString:""};var J=K[1]?parseInt(K[1]):null,it=K[2]?parseInt(K[2]):null;return{year:it===null?J:it*100,restDateString:n.slice((K[1]||K[2]).length)}}function cd(n,S){if(S===null)return new Date(NaN);var R=n.match(nd);if(!R)return new Date(NaN);var K=!!R[4],J=co(R[1]),it=co(R[2])-1,rt=co(R[3]),st=co(R[4]),ht=co(R[5])-1;if(K)return yd(S,st,ht)?ud(S,st,ht):new Date(NaN);var ct=new Date(0);return!gd(S,it,rt)||!md(S,J)?new Date(NaN):(ct.setUTCFullYear(S,it,Math.max(J,rt)),ct)}function co(n){return n?parseInt(n):1}function pd(n){var S=n.match(sd);if(!S)return NaN;var R=Qr(S[1]),K=Qr(S[2]),J=Qr(S[3]);return vd(R,K,J)?R*Tl+K*Al+J*1e3:NaN}function Qr(n){return n&&parseFloat(n.replace(",","."))||0}function dd(n){if(n==="Z")return 0;var S=n.match(ad);if(!S)return 0;var R=S[1]==="+"?-1:1,K=parseInt(S[2]),J=S[3]&&parseInt(S[3])||0;return bd(K,J)?R*(K*Tl+J*Al):NaN}function ud(n,S,R){var K=new Date(0);K.setUTCFullYear(n,0,4);var J=K.getUTCDay()||7,it=(S-1)*7+R+1-J;return K.setUTCDate(K.getUTCDate()+it),K}var fd=[31,null,31,30,31,30,31,31,30,31,30,31];function kl(n){return n%400===0||n%4===0&&n%100!==0}function gd(n,S,R){return S>=0&&S<=11&&R>=1&&R<=(fd[S]||(kl(n)?29:28))}function md(n,S){return S>=1&&S<=(kl(n)?366:365)}function yd(n,S,R){return S>=1&&S<=53&&R>=0&&R<=6}function vd(n,S,R){return n===24?S===0&&R===0:R>=0&&R<60&&S>=0&&S<60&&n>=0&&n<25}function bd(n,S){return S>=0&&S<=59}function _r(n){const S=/([+-]\d{2}:?\d{2}|Z)$/i.test(n);return rd(S?n:n+"Z")}const To=(n,S)=>{const R=!n||n==="";let K,J,it;return Bt.isNumber(S)?(K=parseFloat(n),J=isNaN(K)):Bt.isDatetime(S)?n===$n?(K=n,J=!0):(K=_r(n).valueOf(),J=isNaN(K)):(K=n,it=n==null?void 0:n.toLowerCase(),J=!1),kt({value:K,valueUndefined:R,valueIsNaN:J},it&&{lowercaseValue:it})};function Ns(n,S){const R=Bt.isObject(n)?n:{displayValue:n==null?void 0:n.toString()};return R.compareValue||(R.compareValue=To(R.displayValue,S)),R}var Pl=(n=>(n[n.ASC=1]="ASC",n[n.DESC=-1]="DESC",n[n.NONE=0]="NONE",n))(Pl||{});function Ll(n,S,R=1,K="string"){const J=Ns(n,K),it=Ns(S,K),rt=J.compareValue,st=it.compareValue;if(rt.valueUndefined&&st.valueUndefined)return 0;if(rt.valueUndefined)return 1;if(st.valueUndefined)return-1;if(rt.valueIsNaN&&st.valueIsNaN)return 0;if(rt.valueIsNaN)return 1;if(st.valueIsNaN)return-1;const ht=rt.lowercaseValue,ct=st.lowercaseValue;if(ht!==void 0&&ct!==void 0){if(ht<ct)return-1*R;if(ht>ct)return 1*R}return rt.value<st.value?-1*R:rt.value>st.value?1*R:0}class El{constructor(S){We(this,"columns",[]);this.columns=S}compare(S,R){for(let K=0;K<this.columns.length;K++){const J=this.columns[K],it=S[J.index],rt=R[J.index],st=J.direction||1,ht=Ll(it,rt,st,J.type);if(ht!==0)return ht}return 0}}const Ol=n=>n instanceof Object&&"data"in n,xd=n=>n.rows.length===0,Zn="$rownum",Cd=n=>{let S=0;const R=n.rows.map(J=>{const it=n.columns.map((rt,st)=>{var ft;const ht=J[st];if(Ol(ht)){let _=ht.data.toString();if(Bt.isDatetime(rt.type)){const et="1111-11-11T";_.startsWith(et)&&(_=_.replace(et,"1970-01-01T"))}return kt(kt({rawValue:ht.data,displayValue:(ft=ht.text)!=null?ft:_,compareValue:To(_,rt.type)},ht.blur!==void 0?{blur:ht.blur}:{}),ht.color?{color:ht.color}:{})}let ct,pt;return Bt.isDatetime(rt.type)&&(ht===$n?(ct={value:ht,valueUndefined:!1,valueIsNaN:!0},pt=ht):(ct=To(`${ht}`,rt.type),pt=new Date(ct.value).toISOString())),{rawValue:pt!=null?pt:ht,displayValue:`${ht!=null?ht:""}`,compareValue:ct}});return S++,it.push({displayValue:`${S}`,rawValue:S}),it}),K=n.columns.map((J,it)=>({name:J.name,type:J.type,index:it,direction:0}));return K.push({name:Zn,type:"number",index:K.length,direction:0}),{columns:K,rows:R}};class Sd{constructor(S){We(this,"data");We(this,"countDistinct");this.data=S}getStat(S){switch(S){case"count":return this.getCount();case"countdistinct":return this.getCountDistinct()}return NaN}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((S,R,K)=>K.indexOf(S)===R).length}}class Bs{constructor(S){We(this,"data");We(this,"sum");We(this,"max");We(this,"min");We(this,"avg");We(this,"variance");We(this,"stddev");this.data=S}getStat(S){switch(S){case"sum":return this.getSum();case"max":return this.getMax();case"min":return this.getMin();case"count":return this.getCount();case"countdistinct":return this.getCountDistinct();case"avg":case"mean":case"average":return this.getAverage();case"var":case"variance":return this.getVariance();case"stddev":return this.getStdDev()}return NaN}getSum(){if(this.data.length===0)return NaN;if(this.sum!=null)return this.sum;this.sum=0;for(const S of this.data)this.sum+=S;return this.sum}getMax(){if(this.data.length===0)return NaN;if(this.max)return this.max;if(this.data.length<=0)return NaN;this.max=this.data[0];for(const S of this.data)S>this.max&&(this.max=S);return this.max}getMin(){if(this.data.length===0)return NaN;if(this.min)return this.min;if(this.data.length<=0)return NaN;this.min=this.data[0];for(const S of this.data)S<this.min&&(this.min=S);return this.min}getMean(){return this.getAverage()}getAverage(){return this.data.length===0?NaN:this.avg?this.avg:(this.avg=this.getSum()/this.data.length,this.avg)}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((S,R,K)=>K.indexOf(S)===R).length}getVariance(){if(this.variance===void 0)if(this.data.length===0)this.variance=NaN;else if(this.data.length===1)this.variance=0;else{const S=this.getMean();this.variance=this.data.reduce((R,K)=>R.concat(Wt(K-S,2)),[]).reduce((R,K)=>R+K,0)/(this.data.length-1)}return this.variance}getStdDev(){return this.data.length===0?NaN:this.stddev!=null?this.stddev:(this.stddev=Math.sqrt(this.getVariance()),this.stddev)}}const Dl=(n,S)=>n.slice(0).sort((R,K)=>S.compare(R,K)),Kn=(n,S)=>{if(!(n&&n.length>0))return[];const R=new El(S),K=Dl(n,R);let J=[];const it=[];let rt=K[0];for(const st of Array.from(K))R.compare(st,rt)!==0&&(it.push(J),J=[]),J.push(st),rt=st;return it.push(J),it},wd=(n,S)=>{var K,J;const R=[];for(const it of S){let rt;const st=it.column,{aggFunc:ht}=it,ct=n.filter(_=>!!_[st.index]&&_[st.index].displayValue!==""),pt=(J=(K=ct.find(_=>{var et;return _!==void 0&&((et=_==null?void 0:_[st.index])==null?void 0:et.color)}))==null?void 0:K[st.index])==null?void 0:J.color,ft=ct.some(_=>_[st.index].blur);if(Bt.isDatetime(st.type)){const _=ct.map(et=>_r(et[st.index].displayValue).valueOf());rt=new Bs(_).getStat(ht)}else if(Bt.isNumber(st.type)){const _=ct.map(et=>parseFloat(et[st.index].displayValue));rt=new Bs(_).getStat(ht)}else{const _=ct.map(et=>et[st.index].displayValue);rt=new Sd(_).getStat(ht)}R.push(kt(kt({displayValue:`${rt}`},pt&&{color:pt}),ft&&{blur:ft}))}return R},jl=(n,S)=>{if(Jn(n))return{columns:[],rows:[]};const R=new El(S);return{columns:n.columns,rows:Dl(n.rows,R)}},Il=(n,S,R)=>{if(Jn(n))return{rows:[],columns:[]};const K={name:"n/a",type:"n/a",index:-1,direction:0},J=R.map(ct=>({aggFunc:ct.agg,aggName:ct.title,column:Ei(n,ct.column)||K})).filter(ct=>ct.column.index!==-1),it=Kn(n.rows,S),rt=J.map(ct=>ct.aggName),st=[];for(const ct of it){const pt=ao(ct[0],S),ft=wd(ct,J),_=pt.slice(0).concat(ft);st.push(_)}const ht=S.slice(0).concat(rt.map(ct=>({name:ct,type:"number",index:0,direction:0})));return{rows:st,columns:ht.map((ct,pt)=>Nt(kt({},ct),{index:pt}))}},Ei=(n,S)=>n.columns.find(R=>R.name===S),ko=(n,S)=>{const R={name:"foo",type:"string",index:-1,direction:0};return S.map(K=>Ei(n,K)||R).filter(K=>K!==R)},_l=(n,S)=>{const R=n.rows.map(J=>S.map(it=>J[it.index]));return{columns:S.map((J,it)=>Nt(kt({},J),{index:it})),rows:R}},Nl=(n,S)=>{if(!(n&&S.index<n.length))return;const R=n[S.index];return R.compareValue||(R.compareValue=To(R.displayValue,S.type)),R.compareValue.value},Bl=(n,S)=>{var R;return(R=n[S.index])==null?void 0:R.blur},ao=(n,S)=>{const R=[];for(const K of S)R.push(n[K.index]);return R},Md=(n,S)=>ao(n,S).map(R=>R.rawValue||R.displayValue).join(","),qn=(n,S)=>{if(!(n&&n.length>0))return{};const R=Kn(n,S),K={};for(const J of R){const it=Md(J[0],S);K[it]=J}return K},Jn=n=>!(n.rows&&n.columns&&n.rows.length>0&&n.columns.length>0);function Qn(n){return n===void 0}const gr=(n,S)=>Object.assign(Object.create(n),S),Ad=(n,S)=>Object.assign(Object.create(Object.getPrototypeOf(n)),n,S),No=n=>{if(ts(n)){const S=n,{column:R}=S,K=je(S,["column"]);return{column:R,style:K}}return{column:n,style:{}}};function mi(n){const S="column"in n?n.column:n;if(Bt.MetadataTypes.isCalculatedAttribute(S))return!1;const R="aggregation"in S&&!!S.aggregation,K="context"in S&&!!S.context,J="formula"in S&&!!S.formula;return R||K||J?!0:!("type"in S)}const Ae=n=>{if(!n)return"";const{column:S,name:R}=n;return R||("title"in S&&S.title?S.title:S.name)},Nr=({column:n,granularity:S})=>S||n.granularity||Bt.DateLevels.Years,Td=n=>{const{column:S}=No(n);return S},kd=n=>{const{column:S}=No(n);return S};function ts(n){return"column"in n&&n.column!==void 0}function Pd(n){return!("column"in n)}function Rl(n,S){var it;const{column:R,style:K}=No(n),J=Nt(kt(kt({},S),K),{column:R});return Bt.isDatetime(R.type)&&Qn(J.dateFormat)&&(J.dateFormat=(it=R==null?void 0:R.getFormat)==null?void 0:it.call(R)),J}function zl(n,S){var J,it;const{column:R,style:K}=No(n);return Nt(kt(kt({},S),K),{column:gr(R,{title:(J=R.title)!=null?J:R.name,aggregation:(it=R.aggregation)!=null?it:"sum"}),enabled:!0})}function Ld(n,S){return mi(n)?zl(n,S):Rl(n,S)}var Rs;(function(n){n.event="event",n.props="prop"})(Rs||(Rs={}));function Ed(n){switch(n){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Od(n,S,R){var K=Ed(R),J=n.search(/[1-9]/);return J=J===-1?n.length:J,n.substring(0,J)+n.substring(J,n.length).replace(K,"$1"+S)}function Dd(n,S){S===void 0&&(S=!0);var R=n[0]==="-",K=R&&S;n=n.replace("-","");var J=n.split("."),it=J[0],rt=J[1]||"";return{beforeDecimal:it,afterDecimal:rt,hasNegation:R,addNegation:K}}function jd(n,S,R){for(var K="",J=R?"0":"",it=0;it<=S-1;it++)K+=n[it]||J;return K}function Id(n,S){var R=S.decimalScale,K=S.fixedDecimalScale,J=S.prefix;J===void 0&&(J="");var it=S.suffix;it===void 0&&(it="");var rt=S.allowNegative,st=S.thousandsGroupStyle;if(st===void 0&&(st="thousand"),n===""||n==="-")return n;var ht=_d(S),ct=ht.thousandSeparator,pt=ht.decimalSeparator,ft=R!==0&&n.indexOf(".")!==-1||R&&K,_=Dd(n,rt),et=_.beforeDecimal,G=_.afterDecimal,B=_.addNegation;return R!==void 0&&(G=jd(G,R,!!K)),ct&&(et=Od(et,ct,st)),J&&(et=J+et),it&&(G=G+it),B&&(et="-"+et),n=et+(ft&&pt||"")+G,n}function _d(n){var S=n.decimalSeparator;S===void 0&&(S=".");var R=n.thousandSeparator,K=n.allowedDecimalSeparators;return R===!0&&(R=","),K||(K=[S,"."]),{decimalSeparator:S,thousandSeparator:R,allowedDecimalSeparators:K}}var Nd=/\s/;function Bd(n){for(var S=n.length;S--&&Nd.test(n.charAt(S)););return S}var Rd=/^\s+/;function Fl(n){return n&&n.slice(0,Bd(n)+1).replace(Rd,"")}var zs=NaN,zd=/^[-+]0x[0-9a-f]+$/i,Fd=/^0b[01]+$/i,Gd=/^0o[0-7]+$/i,Wd=parseInt;function es(n){if(typeof n=="number")return n;if(Bt.isSymbol(n))return zs;if(Bt.isObject(n)){var S=typeof n.valueOf=="function"?n.valueOf():n;n=Bt.isObject(S)?S+"":S}if(typeof n!="string")return n===0?n:+n;n=Fl(n);var R=Fd.test(n);return R||Gd.test(n)?Wd(n.slice(2),R?2:8):zd.test(n)?zs:+n}var Fs=1/0,Hd=17976931348623157e292;function Gl(n){if(!n)return n===0?n:0;if(n=es(n),n===Fs||n===-Fs){var S=n<0?-1:1;return S*Hd}return n===n?n:0}function Wl(n){var S=Gl(n),R=S%1;return S===S?R?S-R:S:0}var Xd=Bt.root.isFinite,Yd=Math.min;function Ud(n){var S=Math[n];return function(R,K){if(R=es(R),K=K==null?0:Yd(Wl(K),292),K&&Xd(R)){var J=(Bt.toString(R)+"e").split("e"),it=S(J[0]+"e"+(+J[1]+K));return J=(Bt.toString(it)+"e").split("e"),+(J[0]+"e"+(+J[1]-K))}return S(R)}}var Vd=Ud("round");const vn=1e3,bn=vn*1e3,xn=bn*1e3,Gs=xn*1e3,Hl=1000.1.toLocaleString().replace(/\d/g,""),$d=Hl[0],Zd=Hl[1],Kd={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},ve=n=>kt(kt({},Kd),n||{}),qd=(n,S)=>isNaN(S)?"":`<span>${Br(n,S)}</span>`,Jd=(n,S)=>Math.sign(n)*Vd(Math.abs(n),S),Br=(n,S)=>{const{t:R}=Bt.i18nextInstance,K=n.decimalScale!==0&&n.decimalScale!=="auto",J=n.decimalScale==="auto"?2:n.decimalScale;let it=!0;n.name==="Numbers"&&!n.thousandSeparator&&(it=void 0);let rt,st,ht=S;return n.name==="Percent"&&(st="%",ht=S*100),(n.name==="Numbers"||n.name==="Currency")&&(n.trillion&&Math.abs(S)/Gs>=1?(ht=S/Gs,st=R("formatting.number.abbreviations.trillion")):n.billion&&Math.abs(S)/xn>=1?(ht=S/xn,st=R("formatting.number.abbreviations.billion")):n.million&&Math.abs(S)/bn>=1?(ht=S/bn,st=R("formatting.number.abbreviations.million")):n.kilo&&Math.abs(S)/vn>=1&&(ht=S/vn,st=R("formatting.number.abbreviations.thousand"))),n.name==="Currency"&&(n.prefix?rt=n.symbol:st?st=`${st}${n.symbol}`:st=n.symbol),Id(`${Jd(ht,J)}`,{displayType:"text",thousandSeparator:it?$d:void 0,fixedDecimalScale:K,decimalScale:J,decimalSeparator:Zd,prefix:rt,suffix:st})},ke=(n,S)=>{let R=qd(n,S);return R=R.replace("<span>",""),R=R.replace("</span>",""),R};function Xi(n,S,R,K=Br){if(!R&&!(S!==void 0))return String(n);const it=ve(S);return K(it,n)}const mr="#dcdcdc",Mi="#CCCCCC",Ai="#FFFFFF",Qd=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"],is=n=>({type:"uniform",color:n});function tu(n){return()=>n.color}const Xl=n=>{if(n!==void 0)return typeof n=="string"?is(n).color:n.type==="uniform"?n.color:mr};function eu(n){var R;const S=((R=n.conditions)!=null?R:[]).map(K=>({match:iu(K),color:K.color}));return K=>{const J=S.find(it=>it.match(K));return J?J.color:n.defaultColor}}function iu(n){const S=Number(n.expression);switch(n.operator){case"<":return R=>R<S;case">":return R=>R>S;case"≤":case"<=":return R=>R<=S;case"≥":case">=":return R=>R>=S;case"=":return R=>R==S;case"≠":case"!=":return R=>R!=S;default:return()=>!0}}function me(n,S){let R=n.length;Array.isArray(n[0])||(n=[n]),Array.isArray(S[0])||(S=S.map(rt=>[rt]));let K=S[0].length,J=S[0].map((rt,st)=>S.map(ht=>ht[st])),it=n.map(rt=>J.map(st=>{let ht=0;if(!Array.isArray(rt)){for(let ct of st)ht+=rt*ct;return ht}for(let ct=0;ct<rt.length;ct++)ht+=rt[ct]*(st[ct]||0);return ht}));return R===1&&(it=it[0]),K===1?it.map(rt=>rt[0]):it}function Bo(n){return Di(n)==="string"}function Di(n){return(Object.prototype.toString.call(n).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function yr(n,S){n=+n,S=+S;let R=(Math.floor(n)+"").length;if(S>R)return+n.toFixed(S-R);{let K=Wt(10,R-S);return Math.round(n/K)*K}}function Yl(n){if(!n)return;n=n.trim();const S=/^([a-z]+)\((.+?)\)$/i,R=/^-?[\d.]+$/;let K=n.match(S);if(K){let J=[];return K[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(it,rt)=>{/%$/.test(rt)?(rt=new Number(rt.slice(0,-1)/100),rt.type="<percentage>"):/deg$/.test(rt)?(rt=new Number(+rt.slice(0,-3)),rt.type="<angle>",rt.unit="deg"):R.test(rt)&&(rt=new Number(rt),rt.type="<number>"),it.startsWith("/")&&(rt=rt instanceof Number?rt:new Number(rt),rt.alpha=!0),J.push(rt)}),{name:K[1].toLowerCase(),rawName:K[1],rawArgs:K[2],args:J}}}function Ul(n){return n[n.length-1]}function vr(n,S,R){return isNaN(n)?S:isNaN(S)?n:n+(S-n)*R}function Vl(n,S,R){return(R-n)/(S-n)}function os(n,S,R){return vr(S[0],S[1],Vl(n[0],n[1],R))}function $l(n){return n.map(S=>S.split("|").map(R=>{R=R.trim();let K=R.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(K){let J=new String(K[1]);return J.range=[+K[2],+K[3]],J}return R}))}var ou=Object.freeze({__proto__:null,interpolate:vr,interpolateInv:Vl,isString:Bo,last:Ul,mapRange:os,multiplyMatrices:me,parseCoordGrammar:$l,parseFunction:Yl,toPrecision:yr,type:Di});class ru{add(S,R,K){if(typeof arguments[0]!="string"){for(var S in arguments[0])this.add(S,arguments[0][S],arguments[1]);return}(Array.isArray(S)?S:[S]).forEach(function(J){this[J]=this[J]||[],R&&this[J][K?"unshift":"push"](R)},this)}run(S,R){this[S]=this[S]||[],this[S].forEach(function(K){K.call(R&&R.context?R.context:R,R)})}}const Ii=new ru;var gi={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const oi={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function Cn(n){return Array.isArray(n)?n:oi[n]}function br(n,S,R,K={}){if(n=Cn(n),S=Cn(S),!n||!S)throw new TypeError(`Missing white point to convert ${n?"":"from"}${!n&&!S?"/":""}${S?"":"to"}`);if(n===S)return R;let J={W1:n,W2:S,XYZ:R,options:K};if(Ii.run("chromatic-adaptation-start",J),J.M||(J.W1===oi.D65&&J.W2===oi.D50?J.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:J.W1===oi.D50&&J.W2===oi.D65&&(J.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),Ii.run("chromatic-adaptation-end",J),J.M)return me(J.M,J.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const nu=75e-6,He=class He{constructor(S){var J,it,rt,st,ht,ct,pt;this.id=S.id,this.name=S.name,this.base=S.base?He.get(S.base):null,this.aliases=S.aliases,this.base&&(this.fromBase=S.fromBase,this.toBase=S.toBase);let R=(J=S.coords)!=null?J:this.base.coords;for(let ft in R)"name"in R[ft]||(R[ft].name=ft);this.coords=R;let K=(rt=(it=S.white)!=null?it:this.base.white)!=null?rt:"D65";this.white=Cn(K),this.formats=(st=S.formats)!=null?st:{};for(let ft in this.formats){let _=this.formats[ft];_.type||(_.type="function"),_.name||(_.name=ft)}S.cssId&&!((ht=this.formats.functions)!=null&&ht.color)?(this.formats.color={id:S.cssId},Object.defineProperty(this,"cssId",{value:S.cssId})):(ct=this.formats)!=null&&ct.color&&!((pt=this.formats)!=null&&pt.color.id)&&(this.formats.color.id=this.id),this.referred=S.referred,Object.defineProperty(this,"path",{value:su(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),Ii.run("colorspace-init-end",this)}inGamut(S,{epsilon:R=nu}={}){if(this.isPolar)return S=this.toBase(S),this.base.inGamut(S,{epsilon:R});let K=Object.values(this.coords);return S.every((J,it)=>{let rt=K[it];if(rt.type!=="angle"&&rt.range){if(Number.isNaN(J))return!0;let[st,ht]=rt.range;return(st===void 0||J>=st-R)&&(ht===void 0||J<=ht+R)}return!0})}get cssId(){var S,R;return((R=(S=this.formats.functions)==null?void 0:S.color)==null?void 0:R.id)||this.id}get isPolar(){for(let S in this.coords)if(this.coords[S].type==="angle")return!0;return!1}getFormat(S){if(typeof S=="object")return S=Ws(S,this),S;let R;return S==="default"?R=Object.values(this.formats)[0]:R=this.formats[S],R?(R=Ws(R,this),R):null}equals(S){return S?this===S||this.id===S.id:!1}to(S,R){if(arguments.length===1&&([S,R]=[S.space,S.coords]),S=He.get(S),this.equals(S))return R;R=R.map(st=>Number.isNaN(st)?0:st);let K=this.path,J=S.path,it,rt;for(let st=0;st<K.length&&K[st].equals(J[st]);st++)it=K[st],rt=st;if(!it)throw new Error(`Cannot convert between color spaces ${this} and ${S}: no connection space was found`);for(let st=K.length-1;st>rt;st--)R=K[st].toBase(R);for(let st=rt+1;st<J.length;st++)R=J[st].fromBase(R);return R}from(S,R){return arguments.length===1&&([S,R]=[S.space,S.coords]),S=He.get(S),S.to(this,R)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var R;let S=[];for(let K in this.coords){let J=this.coords[K],it=J.range||J.refRange;S.push((R=it==null?void 0:it.min)!=null?R:0)}return S}static get all(){return[...new Set(Object.values(He.registry))]}static register(S,R){if(arguments.length===1&&(R=arguments[0],S=R.id),R=this.get(R),this.registry[S]&&this.registry[S]!==R)throw new Error(`Duplicate color space registration: '${S}'`);if(this.registry[S]=R,arguments.length===1&&R.aliases)for(let K of R.aliases)this.register(K,R);return R}static get(S,...R){if(!S||S instanceof He)return S;if(Di(S)==="string"){let J=He.registry[S.toLowerCase()];if(!J)throw new TypeError(`No color space found with id = "${S}"`);return J}if(R.length)return He.get(...R);throw new TypeError(`${S} is not a valid color space`)}static resolveCoord(S,R){var ht;let K=Di(S),J,it;if(K==="string"?S.includes(".")?[J,it]=S.split("."):[J,it]=[,S]:Array.isArray(S)?[J,it]=S:(J=S.space,it=S.coordId),J=He.get(J),J||(J=R),!J)throw new TypeError(`Cannot resolve coordinate reference ${S}: No color space specified and relative references are not allowed here`);if(K=Di(it),K==="number"||K==="string"&&it>=0){let ct=Object.entries(J.coords)[it];if(ct)return kt({space:J,id:ct[0],index:it},ct[1])}J=He.get(J);let rt=it.toLowerCase(),st=0;for(let ct in J.coords){let pt=J.coords[ct];if(ct.toLowerCase()===rt||((ht=pt.name)==null?void 0:ht.toLowerCase())===rt)return kt({space:J,id:ct,index:st},pt);st++}throw new TypeError(`No "${it}" coordinate found in ${J.name}. Its coordinates are: ${Object.keys(J.coords).join(", ")}`)}};We(He,"registry",{}),We(He,"DEFAULT_FORMAT",{type:"functions",name:"color"});let Kt=He;function su(n){let S=[n];for(let R=n;R=R.base;)S.push(R);return S}function Ws(n,{coords:S}={}){if(n.coords&&!n.coordGrammar){n.type||(n.type="function"),n.name||(n.name="color"),n.coordGrammar=$l(n.coords);let R=Object.entries(S).map(([K,J],it)=>{let rt=n.coordGrammar[it][0],st=J.range||J.refRange,ht=rt.range,ct="";return rt=="<percentage>"?(ht=[0,100],ct="%"):rt=="<angle>"&&(ct="deg"),{fromRange:st,toRange:ht,suffix:ct}});n.serializeCoords=(K,J)=>K.map((it,rt)=>{let{fromRange:st,toRange:ht,suffix:ct}=R[rt];return st&&ht&&(it=os(st,ht,it)),it=yr(it,J),ct&&(it+=ct),it})}return n}var Je=new Kt({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});class ze extends Kt{constructor(S){var R,K,J;S.coords||(S.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),S.base||(S.base=Je),S.toXYZ_M&&S.fromXYZ_M&&((R=S.toBase)!=null||(S.toBase=it=>{let rt=me(S.toXYZ_M,it);return this.white!==this.base.white&&(rt=br(this.white,this.base.white,rt)),rt}),(K=S.fromBase)!=null||(S.fromBase=it=>(it=br(this.base.white,this.white,it),me(S.fromXYZ_M,it)))),(J=S.referred)!=null||(S.referred="display"),super(S)}}function Zl(n,{meta:S}={}){var K,J,it,rt,st,ht;let R={str:(K=String(n))==null?void 0:K.trim()};if(Ii.run("parse-start",R),R.color)return R.color;if(R.parsed=Yl(R.str),R.parsed){let ct=R.parsed.name;if(ct==="color"){let pt=R.parsed.args.shift(),ft=R.parsed.rawArgs.indexOf("/")>0?R.parsed.args.pop():1;for(let et of Kt.all){let G=et.getFormat("color");if(G&&(pt===G.id||(J=G.ids)!=null&&J.includes(pt))){const B=Object.keys(et.coords).map((H,U)=>R.parsed.args[U]||0);return S&&(S.formatId="color"),{spaceId:et.id,coords:B,alpha:ft}}}let _="";if(pt in Kt.registry){let et=(st=(rt=(it=Kt.registry[pt].formats)==null?void 0:it.functions)==null?void 0:rt.color)==null?void 0:st.id;et&&(_=`Did you mean color(${et})?`)}throw new TypeError(`Cannot parse color(${pt}). `+(_||"Missing a plugin?"))}else for(let pt of Kt.all){let ft=pt.getFormat(ct);if(ft&&ft.type==="function"){let _=1;(ft.lastAlpha||Ul(R.parsed.args).alpha)&&(_=R.parsed.args.pop());let et=R.parsed.args,G;return ft.coordGrammar&&(G=Object.entries(pt.coords).map(([B,H],U)=>{var E;let $=ft.coordGrammar[U],Z=(E=et[U])==null?void 0:E.type,V=$.find(A=>A==Z);if(!V){let A=H.name||B;throw new TypeError(`${Z} not allowed for ${A} in ${ct}()`)}let F=V.range;Z==="<percentage>"&&(F||(F=[0,1]));let I=H.range||H.refRange;return F&&I&&(et[U]=os(F,I,et[U])),V})),S&&Object.assign(S,{formatId:ft.name,types:G}),{spaceId:pt.id,coords:et,alpha:_}}}}else for(let ct of Kt.all)for(let pt in ct.formats){let ft=ct.formats[pt];if(ft.type!=="custom"||ft.test&&!ft.test(R.str))continue;let _=ft.parse(R.str);if(_)return(ht=_.alpha)!=null||(_.alpha=1),S&&(S.formatId=pt),_}throw new TypeError(`Could not parse ${n} as a color. Missing a plugin?`)}function se(n){if(!n)throw new TypeError("Empty color reference");Bo(n)&&(n=Zl(n));let S=n.space||n.spaceId;return S instanceof Kt||(n.space=Kt.get(S)),n.alpha===void 0&&(n.alpha=1),n}function Ro(n,S){return S=Kt.get(S),S.from(n)}function Qe(n,S){let{space:R,index:K}=Kt.resolveCoord(S,n.space);return Ro(n,R)[K]}function Kl(n,S,R){return S=Kt.get(S),n.coords=S.to(n.space,R),n}function _i(n,S,R){if(n=se(n),arguments.length===2&&Di(arguments[1])==="object"){let K=arguments[1];for(let J in K)_i(n,J,K[J])}else{typeof R=="function"&&(R=R(Qe(n,S)));let{space:K,index:J}=Kt.resolveCoord(S,n.space),it=Ro(n,K);it[J]=R,Kl(n,K,it)}return n}var rs=new Kt({id:"xyz-d50",name:"XYZ D50",white:"D50",base:Je,fromBase:n=>br(Je.white,"D50",n),toBase:n=>br("D50",Je.white,n),formats:{color:{}}});const au=216/24389,Hs=24/116,Ko=24389/27;let tn=oi.D50;var Xe=new Kt({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:tn,base:rs,fromBase(n){let R=n.map((K,J)=>K/tn[J]).map(K=>K>au?Math.cbrt(K):(Ko*K+16)/116);return[116*R[1]-16,500*(R[0]-R[1]),200*(R[1]-R[2])]},toBase(n){let S=[];return S[1]=(n[0]+16)/116,S[0]=n[1]/500+S[1],S[2]=S[1]-n[2]/200,[S[0]>Hs?Math.pow(S[0],3):(116*S[0]-16)/Ko,n[0]>8?Math.pow((n[0]+16)/116,3):n[0]/Ko,S[2]>Hs?Math.pow(S[2],3):(116*S[2]-16)/Ko].map((K,J)=>K*tn[J])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Rr(n){return(n%360+360)%360}function lu(n,S){if(n==="raw")return S;let[R,K]=S.map(Rr),J=K-R;return n==="increasing"?J<0&&(K+=360):n==="decreasing"?J>0&&(R+=360):n==="longer"?-180<J&&J<180&&(J>0?R+=360:K+=360):n==="shorter"&&(J>180?R+=360:J<-180&&(K+=360)),[R,K]}var Po=new Kt({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:Xe,fromBase(n){let[S,R,K]=n,J;const it=.02;return Math.abs(R)<it&&Math.abs(K)<it?J=NaN:J=Math.atan2(K,R)*180/Math.PI,[S,Math.sqrt(Wt(R,2)+Wt(K,2)),Rr(J)]},toBase(n){let[S,R,K]=n;return R<0&&(R=0),isNaN(K)&&(K=0),[S,R*Math.cos(K*Math.PI/180),R*Math.sin(K*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const Xs=Wt(25,7),xr=Math.PI,Ys=180/xr,Ki=xr/180;function Sn(n,S,{kL:R=1,kC:K=1,kH:J=1}={}){let[it,rt,st]=Xe.from(n),ht=Po.from(Xe,[it,rt,st])[1],[ct,pt,ft]=Xe.from(S),_=Po.from(Xe,[ct,pt,ft])[1];ht<0&&(ht=0),_<0&&(_=0);let et=(ht+_)/2,G=Wt(et,7),B=.5*(1-Math.sqrt(G/(G+Xs))),H=(1+B)*rt,U=(1+B)*pt,$=Math.sqrt(Wt(H,2)+Wt(st,2)),Z=Math.sqrt(Wt(U,2)+Wt(ft,2)),V=H===0&&st===0?0:Math.atan2(st,H),F=U===0&&ft===0?0:Math.atan2(ft,U);V<0&&(V+=2*xr),F<0&&(F+=2*xr),V*=Ys,F*=Ys;let I=ct-it,E=Z-$,A=F-V,P=V+F,y=Math.abs(A),c;$*Z===0?c=0:y<=180?c=A:A>180?c=A-360:A<-180?c=A+360:console.log("the unthinkable has happened");let g=2*Math.sqrt(Z*$)*Math.sin(c*Ki/2),m=(it+ct)/2,u=($+Z)/2,v=Math.pow(u,7),w;$*Z===0?w=P:y<=180?w=P/2:P<360?w=(P+360)/2:w=(P-360)/2;let M=Wt(m-50,2),C=1+.015*M/Math.sqrt(20+M),p=1+.045*u,f=1;f-=.17*Math.cos((w-30)*Ki),f+=.24*Math.cos(2*w*Ki),f+=.32*Math.cos((3*w+6)*Ki),f-=.2*Math.cos((4*w-63)*Ki);let r=1+.015*u*f,l=30*Math.exp(-1*Wt((w-275)/25,2)),t=2*Math.sqrt(v/(v+Xs)),i=-1*Math.sin(2*l*Ki)*t,o=Wt(I/(R*C),2);return o+=Wt(E/(K*p),2),o+=Wt(g/(J*r),2),o+=i*(E/(K*p))*(g/(J*r)),Math.sqrt(o)}const hu=75e-6;function xo(n,S=n.space,{epsilon:R=hu}={}){n=se(n),S=Kt.get(S);let K=n.coords;return S!==n.space&&(K=S.from(n)),S.inGamut(K,{epsilon:R})}function Lo(n){return{space:n.space,coords:n.coords.slice(),alpha:n.alpha}}function Ni(n,{method:S=gi.gamut_mapping,space:R=n.space}={}){if(Bo(arguments[1])&&(R=arguments[1]),R=Kt.get(R),xo(n,R,{epsilon:0}))return se(n);let K=qe(n,R);if(S!=="clip"&&!xo(n,R)){let J=Ni(Lo(K),{method:"clip",space:R});if(Sn(n,J)>2){let it=Kt.resolveCoord(S),rt=it.space,st=it.id,ht=qe(K,rt),pt=(it.range||it.refRange)[0],ft=.01,_=pt,et=Qe(ht,st);for(;et-_>ft;){let G=Lo(ht);G=Ni(G,{space:R,method:"clip"}),Sn(ht,G)-2<ft?_=Qe(ht,st):et=Qe(ht,st),_i(ht,st,(_+et)/2)}K=qe(ht,R)}else K=J}if(S==="clip"||!xo(K,R,{epsilon:0})){let J=Object.values(R.coords).map(it=>it.range||[]);K.coords=K.coords.map((it,rt)=>{let[st,ht]=J[rt];return st!==void 0&&(it=Math.max(st,it)),ht!==void 0&&(it=Math.min(it,ht)),it})}return R!==n.space&&(K=qe(K,n.space)),n.coords=K.coords,n}Ni.returns="color";function qe(n,S,{inGamut:R}={}){n=se(n),S=Kt.get(S);let K=S.from(n),J={space:S,coords:K,alpha:n.alpha};return R&&(J=Ni(J)),J}qe.returns="color";function Cr(n,it={}){var rt=it,{precision:S=gi.precision,format:R="default",inGamut:K=!0}=rt,J=je(rt,["precision","format","inGamut"]);var pt,ft,_;let st;n=se(n);let ht=R;R=(ft=(pt=n.space.getFormat(R))!=null?pt:n.space.getFormat("default"))!=null?ft:Kt.DEFAULT_FORMAT,K||(K=R.toGamut);let ct=n.coords;if(ct=ct.map(et=>et||0),K&&!xo(n)&&(ct=Ni(Lo(n),K===!0?void 0:K).coords),R.type==="custom")if(J.precision=S,R.serialize)st=R.serialize(ct,n.alpha,J);else throw new TypeError(`format ${ht} can only be used to parse colors, not for serialization`);else{let et=R.name||"color";R.serializeCoords?ct=R.serializeCoords(ct,S):S!==null&&(ct=ct.map(U=>yr(U,S)));let G=[...ct];if(et==="color"){let U=R.id||((_=R.ids)==null?void 0:_[0])||n.space.id;G.unshift(U)}let B=n.alpha;S!==null&&(B=yr(B,S));let H=n.alpha<1&&!R.noAlpha?`${R.commas?",":" /"} ${B}`:"";st=`${et}(${G.join(R.commas?", ":" ")}${H})`}return st}const cu=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],pu=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var zr=new ze({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:cu,fromXYZ_M:pu,formats:{color:{}}});const qo=1.09929682680944,Us=.018053968510807;var ql=new ze({id:"rec2020",name:"REC.2020",base:zr,toBase(n){return n.map(function(S){return S<Us*4.5?S/4.5:Math.pow((S+qo-1)/qo,1/.45)})},fromBase(n){return n.map(function(S){return S>=Us?qo*Math.pow(S,.45)-(qo-1):4.5*S})},formats:{color:{}}});const du=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],uu=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var Jl=new ze({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:du,fromXYZ_M:uu});const fu=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],gu=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var Ql=new ze({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:fu,fromXYZ_M:gu,formats:{color:{}}}),Vs={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let $s=Array(3).fill("<percentage> | <number>[0, 255]"),Zs=Array(3).fill("<number>[0, 255]");var Eo=new ze({id:"srgb",name:"sRGB",base:Ql,fromBase:n=>n.map(S=>{let R=S<0?-1:1,K=S*R;return K>.0031308?R*(1.055*Wt(K,1/2.4)-.055):12.92*S}),toBase:n=>n.map(S=>{let R=S<0?-1:1,K=S*R;return K<.04045?S/12.92:R*Wt((K+.055)/1.055,2.4)}),formats:{rgb:{coords:$s},rgb_number:{name:"rgb",commas:!0,coords:Zs,noAlpha:!0},color:{},rgba:{coords:$s,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:Zs},hex:{type:"custom",toGamut:!0,test:n=>/^#([a-f0-9]{3,4}){1,2}$/i.test(n),parse(n){n.length<=5&&(n=n.replace(/[a-f0-9]/gi,"$&$&"));let S=[];return n.replace(/[a-f0-9]{2}/gi,R=>{S.push(parseInt(R,16)/255)}),{spaceId:"srgb",coords:S.slice(0,3),alpha:S.slice(3)[0]}},serialize:(n,S,{collapse:R=!0}={})=>{S<1&&n.push(S),n=n.map(it=>Math.round(it*255));let K=R&&n.every(it=>it%17===0);return"#"+n.map(it=>K?(it/17).toString(16):it.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:n=>/^[a-z]+$/i.test(n),parse(n){n=n.toLowerCase();let S={spaceId:"srgb",coords:null,alpha:1};if(n==="transparent"?(S.coords=Vs.black,S.alpha=0):S.coords=Vs[n],S.coords)return S}}}}),th=new ze({id:"p3",name:"P3",base:Jl,fromBase:Eo.fromBase,toBase:Eo.toBase,formats:{color:{id:"display-p3"}}});gi.display_space=Eo;if(typeof CSS!="undefined"&&CSS.supports)for(let n of[Xe,ql,th]){let S=n.getMinCoords(),K=Cr({space:n,coords:S,alpha:1});if(CSS.supports("color",K)){gi.display_space=n;break}}function mu(n,K={}){var J=K,{space:S=gi.display_space}=J,R=je(J,["space"]);let it=Cr(n,R);if(typeof CSS=="undefined"||CSS.supports("color",it)||!gi.display_space)it=new String(it),it.color=n;else{let rt=qe(n,S);it=new String(Cr(rt,R)),it.color=rt}return it}function eh(n,S,R="lab"){R=Kt.get(R);let K=R.from(n),J=R.from(S);return Math.sqrt(K.reduce((it,rt,st)=>{let ht=J[st];return isNaN(rt)||isNaN(ht)?it:it+Wt(ht-rt,2)},0))}function yu(n,S){return n=se(n),S=se(S),n.space===S.space&&n.alpha===S.alpha&&n.coords.every((R,K)=>R===S.coords[K])}function Bi(n){return Qe(n,[Je,"y"])}function ih(n,S){_i(n,[Je,"y"],S)}function vu(n){Object.defineProperty(n.prototype,"luminance",{get(){return Bi(this)},set(S){ih(this,S)}})}var bu=Object.freeze({__proto__:null,getLuminance:Bi,register:vu,setLuminance:ih});function xu(n,S){n=se(n),S=se(S);let R=Math.max(Bi(n),0),K=Math.max(Bi(S),0);return K>R&&([R,K]=[K,R]),(R+.05)/(K+.05)}const Cu=.56,Su=.57,wu=.62,Mu=.65,Ks=.022,Au=1.414,Tu=.1,ku=5e-4,Pu=1.14,qs=.027,Lu=1.14;function Js(n){return n>=Ks?n:n+Wt(Ks-n,Au)}function qi(n){let S=n<0?-1:1,R=Math.abs(n);return S*Math.pow(R,2.4)}function Eu(n,S){S=se(S),n=se(n);let R,K,J,it,rt,st;S=qe(S,"srgb"),[it,rt,st]=S.coords;let ht=qi(it)*.2126729+qi(rt)*.7151522+qi(st)*.072175;n=qe(n,"srgb"),[it,rt,st]=n.coords;let ct=qi(it)*.2126729+qi(rt)*.7151522+qi(st)*.072175,pt=Js(ht),ft=Js(ct),_=ft>pt;return Math.abs(ft-pt)<ku?K=0:_?(R=Wt(ft,Cu)-Wt(pt,Su),K=R*Pu):(R=Wt(ft,Mu)-Wt(pt,wu),K=R*Lu),Math.abs(K)<Tu?J=0:K>0?J=K-qs:J=K+qs,J*100}function Ou(n,S){n=se(n),S=se(S);let R=Math.max(Bi(n),0),K=Math.max(Bi(S),0);K>R&&([R,K]=[K,R]);let J=R+K;return J===0?0:(R-K)/J}const Du=5e4;function ju(n,S){n=se(n),S=se(S);let R=Math.max(Bi(n),0),K=Math.max(Bi(S),0);return K>R&&([R,K]=[K,R]),K===0?Du:(R-K)/K}function Iu(n,S){n=se(n),S=se(S);let R=Qe(n,[Xe,"l"]),K=Qe(S,[Xe,"l"]);return Math.abs(R-K)}const _u=216/24389,Qs=24/116,Jo=24389/27;let en=oi.D65;var wn=new Kt({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:en,base:Je,fromBase(n){let R=n.map((K,J)=>K/en[J]).map(K=>K>_u?Math.cbrt(K):(Jo*K+16)/116);return[116*R[1]-16,500*(R[0]-R[1]),200*(R[1]-R[2])]},toBase(n){let S=[];return S[1]=(n[0]+16)/116,S[0]=n[1]/500+S[1],S[2]=S[1]-n[2]/200,[S[0]>Qs?Math.pow(S[0],3):(116*S[0]-16)/Jo,n[0]>8?Math.pow((n[0]+16)/116,3):n[0]/Jo,S[2]>Qs?Math.pow(S[2],3):(116*S[2]-16)/Jo].map((K,J)=>K*en[J])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const on=Math.pow(5,.5)*.5+.5;function Nu(n,S){n=se(n),S=se(S);let R=Qe(n,[wn,"l"]),K=Qe(S,[wn,"l"]),J=Math.abs(Math.pow(R,on)-Math.pow(K,on)),it=Math.pow(J,1/on)*Math.SQRT2-40;return it<7.5?0:it}var dr=Object.freeze({__proto__:null,contrastAPCA:Eu,contrastDeltaPhi:Nu,contrastLstar:Iu,contrastMichelson:Ou,contrastWCAG21:xu,contrastWeber:ju});function Bu(n,S,R={}){Bo(R)&&(R={algorithm:R});let it=R,{algorithm:K}=it,J=je(it,["algorithm"]);if(!K){let rt=Object.keys(dr).map(st=>st.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${rt}`)}n=se(n),S=se(S);for(let rt in dr)if("contrast"+K.toLowerCase()===rt.toLowerCase())return dr[rt](n,S,J);throw new TypeError(`Unknown contrast algorithm: ${K}`)}function oh(n){let[S,R,K]=Ro(n,Je),J=S+15*R+3*K;return[4*S/J,9*R/J]}function rh(n){let[S,R,K]=Ro(n,Je),J=S+R+K;return[S/J,R/J]}function Ru(n){Object.defineProperty(n.prototype,"uv",{get(){return oh(this)}}),Object.defineProperty(n.prototype,"xy",{get(){return rh(this)}})}var zu=Object.freeze({__proto__:null,register:Ru,uv:oh,xy:rh});function Fu(n,S){return eh(n,S,"lab")}const Gu=Math.PI,ta=Gu/180;function Wu(n,S,{l:R=2,c:K=1}={}){let[J,it,rt]=Xe.from(n),[,st,ht]=Po.from(Xe,[J,it,rt]),[ct,pt,ft]=Xe.from(S),_=Po.from(Xe,[ct,pt,ft])[1];st<0&&(st=0),_<0&&(_=0);let et=J-ct,G=st-_,B=it-pt,H=rt-ft,U=Wt(B,2)+Wt(H,2)-Wt(G,2),$=.511;J>=16&&($=.040975*J/(1+.01765*J));let Z=.0638*st/(1+.0131*st)+.638,V;Number.isNaN(ht)&&(ht=0),ht>=164&&ht<=345?V=.56+Math.abs(.2*Math.cos((ht+168)*ta)):V=.36+Math.abs(.4*Math.cos((ht+35)*ta));let F=Math.pow(st,4),I=Math.sqrt(F/(F+1900)),E=Z*(I*V+1-I),A=Wt(et/(R*$),2);return A+=Wt(G/(K*Z),2),A+=U/Wt(E,2),Math.sqrt(A)}const ea=203;var ns=new Kt({id:"xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:Je,fromBase(n){return n.map(S=>Math.max(S*ea,0))},toBase(n){return n.map(S=>Math.max(S/ea,0))}});const Qo=1.15,tr=.66,ia=2610/Wt(2,14),Hu=Wt(2,14)/2610,oa=3424/Wt(2,12),ra=2413/Wt(2,7),na=2392/Wt(2,7),Xu=1.7*2523/Wt(2,5),sa=Wt(2,5)/(1.7*2523),er=-.56,rn=16295499532821565e-27,Yu=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],Uu=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],Vu=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],$u=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var nh=new Kt({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:ns,fromBase(n){let[S,R,K]=n,J=Qo*S-(Qo-1)*K,it=tr*R-(tr-1)*S,st=me(Yu,[J,it,K]).map(function(_){let et=oa+ra*Wt(_/1e4,ia),G=1+na*Wt(_/1e4,ia);return Wt(et/G,Xu)}),[ht,ct,pt]=me(Vu,st);return[(1+er)*ht/(1+er*ht)-rn,ct,pt]},toBase(n){let[S,R,K]=n,J=(S+rn)/(1+er-er*(S+rn)),rt=me($u,[J,R,K]).map(function(_){let et=oa-Wt(_,sa),G=na*Wt(_,sa)-ra;return 1e4*Wt(et/G,Hu)}),[st,ht,ct]=me(Uu,rt),pt=(st+(Qo-1)*ct)/Qo,ft=(ht+(tr-1)*pt)/tr;return[pt,ft,ct]},formats:{color:{}}}),Mn=new Kt({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:nh,fromBase(n){let[S,R,K]=n,J;const it=2e-4;return Math.abs(R)<it&&Math.abs(K)<it?J=NaN:J=Math.atan2(K,R)*180/Math.PI,[S,Math.sqrt(Wt(R,2)+Wt(K,2)),Rr(J)]},toBase(n){return[n[0],n[1]*Math.cos(n[2]*Math.PI/180),n[1]*Math.sin(n[2]*Math.PI/180)]},formats:{color:{}}});function Zu(n,S){let[R,K,J]=Mn.from(n),[it,rt,st]=Mn.from(S),ht=R-it,ct=K-rt;Number.isNaN(J)&&Number.isNaN(st)?(J=0,st=0):Number.isNaN(J)?J=st:Number.isNaN(st)&&(st=J);let pt=J-st,ft=2*Math.sqrt(K*rt)*Math.sin(pt/2*(Math.PI/180));return Math.sqrt(Wt(ht,2)+Wt(ct,2)+Wt(ft,2))}const sh=3424/4096,ah=2413/128,lh=2392/128,aa=2610/16384,Ku=2523/32,qu=16384/2610,la=32/2523,Ju=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],Qu=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],tf=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],ef=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var An=new Kt({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:ns,fromBase(n){let S=me(Ju,n);return of(S)},toBase(n){let S=rf(n);return me(ef,S)},formats:{color:{}}});function of(n){let S=n.map(function(R){let K=sh+ah*Wt(R/1e4,aa),J=1+lh*Wt(R/1e4,aa);return Wt(K/J,Ku)});return me(Qu,S)}function rf(n){return me(tf,n).map(function(K){let J=Math.max(Wt(K,la)-sh,0),it=ah-lh*Wt(K,la);return 1e4*Wt(J/it,qu)})}function nf(n,S){let[R,K,J]=An.from(n),[it,rt,st]=An.from(S);return 720*Math.sqrt(Wt(R-it,2)+.25*Wt(K-rt,2)+Wt(J-st,2))}const sf=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],af=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],lf=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],hf=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var Sr=new Kt({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:Je,fromBase(n){let R=me(sf,n).map(K=>Math.cbrt(K));return me(lf,R)},toBase(n){let R=me(hf,n).map(K=>Wt(K,3));return me(af,R)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function cf(n,S){let[R,K,J]=Sr.from(n),[it,rt,st]=Sr.from(S),ht=R-it,ct=K-rt,pt=J-st;return Math.sqrt(Wt(ht,2)+Wt(ct,2)+Wt(pt,2))}var wr={deltaE76:Fu,deltaECMC:Wu,deltaE2000:Sn,deltaEJz:Zu,deltaEITP:nf,deltaEOK:cf};function vo(n,S,R={}){Bo(R)&&(R={method:R});let it=R,{method:K=gi.deltaE}=it,J=je(it,["method"]);n=se(n),S=se(S);for(let rt in wr)if("deltae"+K.toLowerCase()===rt.toLowerCase())return wr[rt](n,S,J);throw new TypeError(`Unknown deltaE method: ${K}`)}function pf(n,S=.25){let K=[Kt.get("oklch","lch"),"l"];return _i(n,K,J=>J*(1+S))}function df(n,S=.25){let K=[Kt.get("oklch","lch"),"l"];return _i(n,K,J=>J*(1-S))}var uf=Object.freeze({__proto__:null,darken:df,lighten:pf});function hh(n,S,R=.5,K={}){[n,S]=[se(n),se(S)],Di(R)==="object"&&([R,K]=[.5,R]);let{space:J,outputSpace:it,premultiplied:rt}=K;return zo(n,S,{space:J,outputSpace:it,premultiplied:rt})(R)}function ch(n,S,R={}){let K;ss(n)&&([K,R]=[n,S],[n,S]=K.rangeArgs.colors);let _=R,{maxDeltaE:J,deltaEMethod:it,steps:rt=2,maxSteps:st=1e3}=_,ht=je(_,["maxDeltaE","deltaEMethod","steps","maxSteps"]);K||([n,S]=[se(n),se(S)],K=zo(n,S,ht));let ct=vo(n,S),pt=J>0?Math.max(rt,Math.ceil(ct/J)+1):rt,ft=[];if(st!==void 0&&(pt=Math.min(pt,st)),pt===1)ft=[{p:.5,color:K(.5)}];else{let et=1/(pt-1);ft=Array.from({length:pt},(G,B)=>{let H=B*et;return{p:H,color:K(H)}})}if(J>0){let et=ft.reduce((G,B,H)=>{if(H===0)return 0;let U=vo(B.color,ft[H-1].color,it);return Math.max(G,U)},0);for(;et>J;){et=0;for(let G=1;G<ft.length&&ft.length<st;G++){let B=ft[G-1],H=ft[G],U=(H.p+B.p)/2,$=K(U);et=Math.max(et,vo($,B.color),vo($,H.color)),ft.splice(G,0,{p:U,color:K(U)}),G++}}}return ft=ft.map(et=>et.color),ft}function zo(n,S,R={}){if(ss(n)){let[ht,ct]=[n,S];return zo(...ht.rangeArgs.colors,kt(kt({},ht.rangeArgs.options),ct))}let{space:K,outputSpace:J,progression:it,premultiplied:rt}=R;n=se(n),S=se(S),n=Lo(n),S=Lo(S);let st={colors:[n,S],options:R};if(K?K=Kt.get(K):K=Kt.registry[gi.interpolationSpace]||n.space,J=J?Kt.get(J):K,n=qe(n,K),S=qe(S,K),n=Ni(n),S=Ni(S),K.coords.h&&K.coords.h.type==="angle"){let ht=R.hue=R.hue||"shorter",ct=[K,"h"],[pt,ft]=[Qe(n,ct),Qe(S,ct)];[pt,ft]=lu(ht,[pt,ft]),_i(n,ct,pt),_i(S,ct,ft)}return rt&&(n.coords=n.coords.map(ht=>ht*n.alpha),S.coords=S.coords.map(ht=>ht*S.alpha)),Object.assign(ht=>{ht=it?it(ht):ht;let ct=n.coords.map((_,et)=>{let G=S.coords[et];return vr(_,G,ht)}),pt=vr(n.alpha,S.alpha,ht),ft={space:K,coords:ct,alpha:pt};return rt&&(ft.coords=ft.coords.map(_=>_/pt)),J!==K&&(ft=qe(ft,J)),ft},{rangeArgs:st})}function ss(n){return Di(n)==="function"&&!!n.rangeArgs}gi.interpolationSpace="lab";function ff(n){n.defineFunction("mix",hh,{returns:"color"}),n.defineFunction("range",zo,{returns:"function<color>"}),n.defineFunction("steps",ch,{returns:"array<color>"})}var gf=Object.freeze({__proto__:null,isRange:ss,mix:hh,range:zo,register:ff,steps:ch}),ph=new Kt({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:Eo,fromBase:n=>{let S=Math.max(...n),R=Math.min(...n),[K,J,it]=n,[rt,st,ht]=[NaN,0,(R+S)/2],ct=S-R;if(ct!==0){switch(st=ht===0||ht===1?0:(S-ht)/Math.min(ht,1-ht),S){case K:rt=(J-it)/ct+(J<it?6:0);break;case J:rt=(it-K)/ct+2;break;case it:rt=(K-J)/ct+4}rt=rt*60}return[rt,st*100,ht*100]},toBase:n=>{let[S,R,K]=n;S=S%360,S<0&&(S+=360),R/=100,K/=100;function J(it){let rt=(it+S/30)%12,st=R*Math.min(K,1-K);return K-st*Math.max(-1,Math.min(rt-3,9-rt,1))}return[J(0),J(8),J(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),dh=new Kt({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:ph,fromBase(n){let[S,R,K]=n;R/=100,K/=100;let J=K+R*Math.min(K,1-K);return[S,J===0?0:200*(1-K/J),100*J]},toBase(n){let[S,R,K]=n;R/=100,K/=100;let J=K*(1-R/2);return[S,J===0||J===1?0:(K-J)/Math.min(J,1-J)*100,J*100]},formats:{color:{toGamut:!0}}}),mf=new Kt({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:dh,fromBase(n){let[S,R,K]=n;return[S,K*(100-R)/100,100-K]},toBase(n){let[S,R,K]=n;R/=100,K/=100;let J=R+K;if(J>=1){let st=R/J;return[S,0,st*100]}let it=1-K,rt=it===0?0:1-R/it;return[S,rt*100,it*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const yf=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],vf=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var uh=new ze({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:yf,fromXYZ_M:vf}),bf=new ze({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:uh,toBase:n=>n.map(S=>Math.pow(Math.abs(S),563/256)*Math.sign(S)),fromBase:n=>n.map(S=>Math.pow(Math.abs(S),256/563)*Math.sign(S)),formats:{color:{id:"a98-rgb"}}});const xf=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],Cf=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var fh=new ze({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:rs,toXYZ_M:xf,fromXYZ_M:Cf});const Sf=1/512,wf=16/512;var Mf=new ze({id:"prophoto",name:"ProPhoto",base:fh,toBase(n){return n.map(S=>S<wf?S/16:Wt(S,1.8))},fromBase(n){return n.map(S=>S>=Sf?Wt(S,1/1.8):16*S)},formats:{color:{id:"prophoto-rgb"}}}),Af=new Kt({id:"oklch",name:"Oklch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:Sr,fromBase(n){let[S,R,K]=n,J;const it=2e-4;return Math.abs(R)<it&&Math.abs(K)<it?J=NaN:J=Math.atan2(K,R)*180/Math.PI,[S,Math.sqrt(Wt(R,2)+Wt(K,2)),Rr(J)]},toBase(n){let[S,R,K]=n,J,it;return isNaN(K)?(J=0,it=0):(J=R*Math.cos(K*Math.PI/180),it=R*Math.sin(K*Math.PI/180)),[S,J,it]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const ha=203,ca=2610/Wt(2,14),Tf=Wt(2,14)/2610,kf=2523/Wt(2,5),pa=Wt(2,5)/2523,da=3424/Wt(2,12),ua=2413/Wt(2,7),fa=2392/Wt(2,7);var Pf=new ze({id:"rec2100pq",name:"REC.2100-PQ",base:zr,toBase(n){return n.map(function(S){return Wt(Math.max(Wt(S,pa)-da,0)/(ua-fa*Wt(S,pa)),Tf)*1e4/ha})},fromBase(n){return n.map(function(S){let R=Math.max(S*ha/1e4,0),K=da+ua*Wt(R,ca),J=1+fa*Wt(R,ca);return Wt(K/J,kf)})},formats:{color:{id:"rec2100-pq"}}});const ga=.17883277,ma=.28466892,ya=.55991073,nn=3.7743;var Lf=new ze({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:zr,toBase(n){return n.map(function(S){return S<=.5?Wt(S,2)/3*nn:(Math.exp((S-ya)/ga)+ma)/12*nn})},fromBase(n){return n.map(function(S){return S/=nn,S<=1/12?Math.sqrt(3*S):ga*Math.log(12*S-ma)+ya})},formats:{color:{id:"rec2100-hlg"}}});const gh={};Ii.add("chromatic-adaptation-start",n=>{n.options.method&&(n.M=mh(n.W1,n.W2,n.options.method))});Ii.add("chromatic-adaptation-end",n=>{n.M||(n.M=mh(n.W1,n.W2,n.options.method))});function Fr({id:n,toCone_M:S,fromCone_M:R}){gh[n]=arguments[0]}function mh(n,S,R="Bradford"){let K=gh[R],[J,it,rt]=me(K.toCone_M,n),[st,ht,ct]=me(K.toCone_M,S),pt=[[st/J,0,0],[0,ht/it,0],[0,0,ct/rt]],ft=me(pt,K.toCone_M);return me(K.fromCone_M,ft)}Fr({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599364,-1.1293816,.2198974],[.3611914,.6388125,-64e-7],[0,0,1.0890636]]});Fr({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]]});Fr({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238,-.278869,.1827452],[.454369,.4735332,.0720978],[-.0096276,-.005698,1.0153256]]});Fr({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.011254630531685,.1491867754444518],[.3875265432361372,.6214474419314753,-.008973985167612518],[-.01584149884933386,-.03412293802851557,1.04996443687785]]});Object.assign(oi,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]});oi.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const Ef=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],Of=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var yh=new ze({id:"acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:oi.ACES,toXYZ_M:Ef,fromXYZ_M:Of,formats:{color:{}}});const ir=Wt(2,-16),sn=-.35828683,or=(Math.log2(65504)+9.72)/17.52;var Df=new ze({id:"acescc",name:"ACEScc",coords:{r:{range:[sn,or],name:"Red"},g:{range:[sn,or],name:"Green"},b:{range:[sn,or],name:"Blue"}},referred:"scene",base:yh,toBase(n){const S=-.3013698630136986;return n.map(function(R){return R<=S?(Wt(2,R*17.52-9.72)-ir)*2:R<or?Wt(2,R*17.52-9.72):65504})},fromBase(n){return n.map(function(S){return S<=0?(Math.log2(ir)+9.72)/17.52:S<ir?(Math.log2(ir+S*.5)+9.72)/17.52:(Math.log2(S)+9.72)/17.52})},formats:{color:{}}}),va=Object.freeze({__proto__:null,A98RGB:bf,A98RGB_Linear:uh,ACEScc:Df,ACEScg:yh,HSL:ph,HSV:dh,HWB:mf,ICTCP:An,JzCzHz:Mn,Jzazbz:nh,LCH:Po,Lab:Xe,Lab_D65:wn,OKLCH:Af,OKLab:Sr,P3:th,P3_Linear:Jl,ProPhoto:Mf,ProPhoto_Linear:fh,REC_2020:ql,REC_2020_Linear:zr,REC_2100_HLG:Lf,REC_2100_PQ:Pf,XYZ_ABS_D65:ns,XYZ_D50:rs,XYZ_D65:Je,sRGB:Eo,sRGB_Linear:Ql});let Ue=class Be{constructor(...S){let R;S.length===1&&(R=se(S[0]));let K,J,it;R?(K=R.space||R.spaceId,J=R.coords,it=R.alpha):[K,J,it]=S,Object.defineProperty(this,"space",{value:Kt.get(K),writable:!1,enumerable:!0,configurable:!0}),this.coords=J?J.slice():[0,0,0],this.alpha=it<1?it:1;for(let rt=0;rt<this.coords.length;rt++)this.coords[rt]==="NaN"&&(this.coords[rt]=NaN);for(let rt in this.space.coords)Object.defineProperty(this,rt,{get:()=>this.get(rt),set:st=>this.set(rt,st)})}get spaceId(){return this.space.id}clone(){return new Be(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...S){let R=mu(this,...S);return R.color=new Be(R.color),R}static get(S,...R){return S instanceof Be?S:new Be(S,...R)}static defineFunction(S,R,K=R){let{instance:J=!0,returns:it}=K,rt=function(...st){let ht=R(...st);if(it==="color")ht=Be.get(ht);else if(it==="function<color>"){let ct=ht;ht=function(...pt){let ft=ct(...pt);return Be.get(ft)},Object.assign(ht,ct)}else it==="array<color>"&&(ht=ht.map(ct=>Be.get(ct)));return ht};S in Be||(Be[S]=rt),J&&(Be.prototype[S]=function(...st){return rt(this,...st)})}static defineFunctions(S){for(let R in S)Be.defineFunction(R,S[R],S[R])}static extend(S){if(S.register)S.register(Be);else for(let R in S)Be.defineFunction(R,S[R])}};Ue.defineFunctions({get:Qe,getAll:Ro,set:_i,setAll:Kl,to:qe,equals:yu,inGamut:xo,toGamut:Ni,distance:eh,toString:Cr});Object.assign(Ue,{util:ou,hooks:Ii,WHITES:oi,Space:Kt,spaces:Kt.registry,parse:Zl,defaults:gi});for(let n of Object.keys(va))Kt.register(va[n]);for(let n in Kt.registry)Tn(n,Kt.registry[n]);Ii.add("colorspace-init-end",n=>{var S;Tn(n.id,n),(S=n.aliases)==null||S.forEach(R=>{Tn(R,n)})});function Tn(n,S){Object.values(S.coords).map(K=>K.name);let R=n.replace(/-/g,"_");Object.defineProperty(Ue.prototype,R,{get(){let K=this.getAll(n);return typeof Proxy=="undefined"?K:new Proxy(K,{has:(J,it)=>{try{return Kt.resolveCoord([S,it]),!0}catch(rt){}return Reflect.has(J,it)},get:(J,it,rt)=>{if(it&&typeof it!="symbol"&&!(it in J)){let{index:st}=Kt.resolveCoord([S,it]);if(st>=0)return J[st]}return Reflect.get(J,it,rt)},set:(J,it,rt,st)=>{if(it&&typeof it!="symbol"&&!(it in J)||it>=0){let{index:ht}=Kt.resolveCoord([S,it]);if(ht>=0)return J[ht]=rt,this.setAll(n,J),!0}return Reflect.set(J,it,rt,st)}})},set(K){this.setAll(n,K)},configurable:!0,enumerable:!0})}Ue.extend(wr);Ue.extend({deltaE:vo});Object.assign(Ue,{deltaEMethods:wr});Ue.extend(uf);Ue.extend({contrast:Bu});Ue.extend(zu);Ue.extend(bu);Ue.extend(gf);Ue.extend(dr);class Oi extends Ue{}const jf=.15,ri=n=>typeof n=="string"?new Oi(n):n,xi=n=>n.toString({format:"hex"}),vh=(...n)=>{const S=n.map(ri);if(S.length<2)return()=>xi(S[0]);const K=S.slice(0,-1).map((J,it)=>[J,S[it+1]]).map(([J,it])=>{const rt=Oi.range(J,it,{outputSpace:"srgb"});return st=>xi(rt(st))});return J=>{if(J<=0)return xi(S[0]);if(J>=1)return xi(S[S.length-1]);const it=Math.floor(J*K.length);return K[it](J*K.length-it)}},If=(n,...S)=>{const R=S.map(ri);if(R.length<2)return Array(n).fill(xi(R[0]));const K=vh(...R);return Array(n).fill(0).map((J,it)=>K(it/(n-1)))},bh=n=>xi(ri(n).set("hsl.s",0)),_f=(n,S)=>xi(Oi.mix(n,S,.5,{outputSpace:"srgb"})),Nf=(n,S)=>Math.abs(ri(S).hsl.h-ri(n).hsl.h),Oo=(n,S)=>{const R=ri(n);return R.hsv.v=R.hsv.v+R.hsv.v*S,R.hsv.v>100&&(R.hsv.s=R.hsv.s-(R.hsv.v-100)/1.677),R.hsv.s=Math.max(0,Math.min(100,R.hsv.s)),R.hsv.v=Math.max(0,Math.min(100,R.hsv.v)),xi(R)},xh=n=>({R:n.srgb[0]*255,G:n.srgb[1]*255,B:n.srgb[2]*255}),Fo=n=>{const{R:S,G:R,B:K}=xh(n);return 1-(.299*S+.587*R+.114*K)/255};function Bf(n){return Fo(n)<.9}const Rf=(n,S=.05,R=1)=>{const K=ri(n),{R:J,G:it,B:rt}=xh(K),st=Fo(K);let ht=S;Bf(K)&&(ht*=-.6),ht*=Math.exp(st*1.2);const ct=Math.min(Math.max(Math.round(255*ht)+J,0),255),pt=Math.min(Math.max(Math.round(255*ht)+it,0),255),ft=Math.min(Math.max(Math.round(255*ht)+rt,0),255);return`rgba(${ct}, ${pt}, ${ft}, ${R})`},Ch=(n,S)=>{const R=ri(n);return R.alpha=S,xi(R)},zf=(n,S,R)=>Oi.steps(new Oi(n),new Oi(S),{steps:R}).map(K=>new Oi(K).to("srgb").toString());function Ff(n){return S=>{var ct,pt,ft;const{steps:R,minColor:K,maxColor:J}=n,it=(ct=n.minValue)!=null?ct:Math.min(...S),rt=(pt=n.maxValue)!=null?pt:Math.max(...S),st=(ft=n.midValue)!=null?ft:it<0&&rt>0?0:(it+rt)/2,ht=Sh(K!=null?K:mr,J!=null?J:mr,it,st,rt,R);return _=>ht(_)}}const Sh=(n,S,R,K,J,it=0)=>{const rt=Hf(R,K,J),st=Nf(n,S)>90?[n,bh(_f(n,S)),S]:[n,S];return it<=0?Gf(rt,st):Wf(rt,it,st)},Gf=(n,S)=>{const R=vh(...S);return K=>R(n(K))},Wf=(n,S,R)=>{const K=If(S,...R);return J=>{const it=Math.floor(n(J)*S);return K[Math.min(Math.max(it,0),S-1)]}},Hf=(n,S,R)=>K=>K==n&&K==R?.5:K<S?.5*((K-n)/(S-n)):.5+.5*(K-S)/(R-S);function wh(n){let S;switch(typeof n=="string"?S=is(n):S=n,S.type){case"uniform":return{type:"Static",getColor:tu(S)};case"conditional":return{type:"Absolute",getColor:eu(S)};case"range":return{type:"Relative",getColor:Ff(S)}}}const as=n=>{const{getValueFromDataStructure:S,applyColorToDataStructure:R}=n;return(K,J)=>{const it=wh(J);let rt;switch(it.type){case"Static":rt=()=>it.getColor();break;case"Absolute":rt=st=>it.getColor(st);break;case"Relative":{const st=K.map(S),ht=it.getColor(st);rt=ct=>ht(ct);break}}return K.map(st=>{const ht=S(st),ct=rt(ht);return R(st,ct)})}},Xf=as({getValueFromDataStructure:n=>n.value,applyColorToDataStructure:(n,S)=>Nt(kt({},n),{color:S})}),Mh=({x:n,y:S,breakBy:R})=>Th(S)&&Ah(n)&&R.length===0,Yf=({x:n,y:S,breakBy:R})=>Ah(n)&&Th(S)&&R.length>0,Ah=n=>n.length===0,Th=n=>n.length>0,Uf=(n,S)=>n*(S/100),Vf=(n,S)=>n===0?0:Math.abs(S)/Math.abs(n)*100,ur=n=>`${n}%`,kn=(n,S,R=!0)=>{var _;if(S.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const K=n.x.length;let J=ko(S,n.x.map(({column:{name:et}})=>et));J=J.map((et,G)=>Nt(kt({},et),{direction:kh(n.x[G].sortType)}));const it=ko(S,n.breakBy.map(({column:{name:et}})=>et)),rt=n.y.filter(({sortType:et})=>et&&et!=="sortNone"),st=J.length>1?1:0,ht=Ph(S,rt,J,((_=J[st])==null?void 0:_.direction)===0?Zn:void 0),ct=n.y.map(({column:{name:et}})=>et),pt=n.breakBy.length>0?qf(S,ht,J,ct[0],it,n.breakBy,R):$f(S,ht,J,ct,n.y);return Nt(kt({},pt),{xAxisCount:K,type:"cartesian"})},kh=n=>{switch(n){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},Ph=(n,S,R,K)=>{if(R.length===0)return[{key:"",xValues:[""],rawValues:[]}];const J=S.map(({column:{name:ft}})=>({column:ft,agg:"sum",title:ft}));if(K){const ft={column:K,title:K,agg:"min"};J.push(ft)}const it=Il(n,R,J),rt=[];let st=0;if(R.length===2){st=1;const _=Ei(it,R[0].name);_&&rt.push(_)}if(S.map(ft=>{const _=Ei(it,ft.column.name);return _&&rt.push(Nt(kt({},_),{direction:ft.sortType==="sortAsc"?1:-1})),ft}),K){const ft=Ei(it,K);ft&&rt.push(ft)}if(R.length>0){const ft=Ei(it,R[st].name);ft&&rt.push(ft)}const ht=jl(it,rt),ct=ko(ht,R.map(ft=>ft.name)),pt=_l(ht,ct);return pt.rows.map(ft=>{const _=ao(ft,pt.columns),et=_.map(U=>U.displayValue),G=_.map(U=>{var $;return($=U.rawValue)!=null?$:U.displayValue}),B=_.map(U=>{var $;return($=U==null?void 0:U.compareValue)==null?void 0:$.value});return{key:G.join(","),xValues:et,rawValues:G,compareValues:B}})},Lh=(n,S,R)=>{var st,ht;const K=R?Nl(n,R):1e-5,{color:J,rawValue:it}=(ht=n[(st=R==null?void 0:R.index)!=null?st:0])!=null?ht:{},rt=K===void 0?NaN:K;return kt({rawValue:it!=null?it:rt,xValue:S.rawValues,xDisplayValue:S.xValues,xCompareValue:S.compareValues,value:rt,blur:R?Bl(n,R):void 0},J&&{color:J})},$f=(n,S,R,K,J)=>{const it=K.length>0?ko(n,K):[void 0],rt=J.reduce((ct,pt)=>(ct[pt.column.name]=pt,ct),{}),st=qn(n.rows,R),ht=it.map(ct=>{var G,B;let pt=S.map(H=>{const U=st[H.key],$=U?U[0]:[];return Lh($,H,ct)});const ft=(G=ct==null?void 0:ct.name)!=null?G:"",_=ft?Ae(rt[ft]):"",et=(B=rt[ft])==null?void 0:B.color;return et&&(pt=Xf(pt,et)),{name:ft,title:_,data:pt}});return{xValues:S,series:ht}},Zf=(n,S,R,K)=>ao(n,S).map((J,it)=>{const rt=R[it].numberFormatConfig!==void 0;if(Bt.isNumber(S[it].type)&&(K||rt)){const st=ve(R[it].numberFormatConfig);return ke(st,parseFloat(J.displayValue))}return J.displayValue}).join(","),Kf=(n,S)=>ao(n,S).map(({rawValue:R})=>R),qf=(n,S,R,K,J,it,rt)=>{const st=Ei(n,K),pt=Kn(n.rows,J).map(ft=>{const _=ft[0];return{seriesName:Zf(_,J,it,rt),seriesValues:Kf(_,J),rowsByXColumns:qn(ft,R)}}).map(ft=>{const _=S.map(et=>{const G=ft.rowsByXColumns[et.key],B=G?G[0]:[];return Lh(B,et,st)});return{name:ft.seriesName,data:_,custom:{rawValue:ft.seriesValues}}});return{xValues:S,series:pt}},rr=n=>{if(typeof n=="object"&&n!==null){if(typeof Object.getPrototypeOf=="function"){const S=Object.getPrototypeOf(n);return S===Object.prototype||S===null}return Object.prototype.toString.call(n)==="[object Object]"}return!1},Jf=new Set(["__proto__","constructor","prototype","toString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString"]),Ze=(...n)=>n.reduce((S,R)=>{if(R===void 0)return S;if(Array.isArray(R))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(R).forEach(K=>{Jf.has(K)||(Array.isArray(S[K])&&Array.isArray(R[K])?S[K]=Ze.options.mergeArrays?Ze.options.uniqueArrayItems?Array.from(new Set(S[K].concat(R[K]))):[...S[K],...R[K]]:R[K]:rr(S[K])&&rr(R[K])?S[K]=Ze(S[K],R[K]):!rr(S[K])&&rr(R[K])?S[K]=Ze(R[K],void 0):S[K]=R[K]===void 0?Ze.options.allowUndefinedOverrides?R[K]:S[K]:R[K])}),S},{}),Pn={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};Ze.options=Pn;Ze.withOptions=(n,...S)=>{Ze.options=Object.assign(Object.assign({},Pn),n);const R=Ze(...S);return Ze.options=Pn,R};function ls(){}function Ri(n,S){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!S,this.__index__=0,this.__values__=void 0}Ri.prototype=Bt.baseCreate(ls.prototype);Ri.prototype.constructor=Ri;var Ln=Bt.WeakMap&&new Bt.WeakMap;function Eh(){}var hs=Ln?function(n){return Ln.get(n)}:Eh,ba={},Qf=Object.prototype,tg=Qf.hasOwnProperty;function fr(n){for(var S=n.name+"",R=ba[S],K=tg.call(ba,S)?R.length:0;K--;){var J=R[K],it=J.func;if(it==null||it==n)return J.name}return S}var eg=4294967295;function oo(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=eg,this.__views__=[]}oo.prototype=Bt.baseCreate(ls.prototype);oo.prototype.constructor=oo;function ig(n){if(n instanceof oo)return n.clone();var S=new Ri(n.__wrapped__,n.__chain__);return S.__actions__=Bt.copyArray(n.__actions__),S.__index__=n.__index__,S.__values__=n.__values__,S}var og=Object.prototype,rg=og.hasOwnProperty;function Mr(n){if(Bt.isObjectLike(n)&&!Bt.isArray(n)&&!(n instanceof oo)){if(n instanceof Ri)return n;if(rg.call(n,"__wrapped__"))return ig(n)}return new Ri(n)}Mr.prototype=ls.prototype;Mr.prototype.constructor=Mr;function En(n){var S=fr(n),R=Mr[S];if(typeof R!="function"||!(S in oo.prototype))return!1;if(n===R)return!0;var K=hs(R);return!!K&&n===K[0]}var ng="Expected a function",sg=8,ag=32,lg=128,hg=256;function cg(n){return Bt.flatRest(function(S){for(var R=S.length,K=R,J=Ri.prototype.thru;K--;){var it=S[K];if(typeof it!="function")throw new TypeError(ng);if(J&&!rt&&fr(it)=="wrapper")var rt=new Ri([],!0)}for(K=rt?K:R;++K<R;){it=S[K];var st=fr(it),ht=st=="wrapper"?hs(it):void 0;ht&&En(ht[0])&&ht[1]==(lg|sg|ag|hg)&&!ht[4].length&&ht[9]==1?rt=rt[fr(ht[0])].apply(rt,ht[3]):rt=it.length==1&&En(it)?rt[st]():rt.thru(it)}return function(){var ct=arguments,pt=ct[0];if(rt&&ct.length==1&&Bt.isArray(pt))return rt.plant(pt).value();for(var ft=0,_=R?S[ft].apply(this,ct):pt;++ft<R;)_=S[ft].call(this,_);return _}})}var Gr=cg();const ni=(n,S)=>{var K;const R=n==null?void 0:n.filter(J=>J);return(K=R&&R[S%R.length])!=null?K:Qd[S%10]},Oh=n=>typeof n=="object"&&n!==null&&"type"in n&&n.type==="linear",Dh=n=>typeof n=="object"&&n!==null&&"type"in n&&n.type==="radial",jh=n=>Oh(n)||Dh(n),pg={topToBottom:{x1:0,y1:0,x2:0,y2:1},bottomToTop:{x1:0,y1:1,x2:0,y2:0},leftToRight:{x1:0,y1:0,x2:1,y2:0},rightToLeft:{x1:1,y1:0,x2:0,y2:0},diagonalTopLeft:{x1:0,y1:0,x2:1,y2:1},diagonalTopRight:{x1:1,y1:0,x2:0,y2:1}},dg={center:{centerX:.5,centerY:.5,radius:.8},topLeft:{centerX:0,centerY:0,radius:1},topRight:{centerX:1,centerY:0,radius:1},bottomLeft:{centerX:0,centerY:1,radius:1},bottomRight:{centerX:1,centerY:1,radius:1}},ug=(n,S)=>({type:"linear",direction:n,stops:S}),fg=(n,S)=>({type:"radial",center:n,stops:S}),gg=n=>n.type==="linear"?{linearGradient:{x1:n.direction.x1,y1:n.direction.y1,x2:n.direction.x2,y2:n.direction.y2},stops:n.stops.map(S=>[S.position,S.color])}:{radialGradient:{cx:n.center.centerX,cy:n.center.centerY,r:n.center.radius},stops:n.stops.map(S=>[S.position,S.color])};function Yi(n){if(n!=null)return jh(n)?gg(n):n}function mg(n){return typeof n!="object"||n===null||Array.isArray(n)||n instanceof Date||n instanceof RegExp||n instanceof Function?!0:Object.keys(n).length>0}function Ui(n){if(n==null)return n;if(Array.isArray(n))return n.filter(S=>S!==void 0).map(S=>Ui(S)).filter(S=>typeof S=="object"&&S!==null&&!Array.isArray(S)?Object.keys(S).length>0:!0);if(typeof n=="object"){if(n instanceof Date||n instanceof RegExp||n instanceof Function)return n;const S={};for(const[R,K]of Object.entries(n)){if(K===void 0)continue;const J=Ui(K);mg(J)&&(S[R]=J)}return S}return n}const _e=n=>{var et;const{rotation:S,alignInside:R,align:K,verticalAlign:J,textStyle:it,backgroundColor:rt,borderColor:st,borderRadius:ht,borderWidth:ct,padding:pt,xOffset:ft,yOffset:_}=n!=null?n:{};return Ui({enabled:(et=n==null?void 0:n.enabled)!=null?et:!1,rotation:S,inside:R,align:K,verticalAlign:J,style:it,backgroundColor:Yi(rt),borderColor:Yi(st),borderRadius:ht,borderWidth:ct,padding:pt,x:ft,y:_})};var yg=function(S){return vg(S)&&!bg(S)};function vg(n){return!!n&&typeof n=="object"}function bg(n){var S=Object.prototype.toString.call(n);return S==="[object RegExp]"||S==="[object Date]"||Sg(n)}var xg=typeof Symbol=="function"&&Symbol.for,Cg=xg?Symbol.for("react.element"):60103;function Sg(n){return n.$$typeof===Cg}function wg(n){return Array.isArray(n)?[]:{}}function Do(n,S){return S.clone!==!1&&S.isMergeableObject(n)?ro(wg(n),n,S):n}function Mg(n,S,R){return n.concat(S).map(function(K){return Do(K,R)})}function Ag(n,S){if(!S.customMerge)return ro;var R=S.customMerge(n);return typeof R=="function"?R:ro}function Tg(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(S){return Object.propertyIsEnumerable.call(n,S)}):[]}function xa(n){return Object.keys(n).concat(Tg(n))}function Ih(n,S){try{return S in n}catch(R){return!1}}function kg(n,S){return Ih(n,S)&&!(Object.hasOwnProperty.call(n,S)&&Object.propertyIsEnumerable.call(n,S))}function Pg(n,S,R){var K={};return R.isMergeableObject(n)&&xa(n).forEach(function(J){K[J]=Do(n[J],R)}),xa(S).forEach(function(J){kg(n,J)||(Ih(n,J)&&R.isMergeableObject(S[J])?K[J]=Ag(J,R)(n[J],S[J],R):K[J]=Do(S[J],R))}),K}function ro(n,S,R){R=R||{},R.arrayMerge=R.arrayMerge||Mg,R.isMergeableObject=R.isMergeableObject||yg,R.cloneUnlessOtherwiseSpecified=Do;var K=Array.isArray(S),J=Array.isArray(n),it=K===J;return it?K?R.arrayMerge(n,S,R):Pg(n,S,R):Do(S,R)}ro.all=function(S,R){if(!Array.isArray(S))throw new Error("first argument should be an array");return S.reduce(function(K,J){return ro(K,J,R)},{})};var Lg=ro,Eg=Lg;const Ke=Gn(Eg),Og={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},Dg=n=>{switch(n){case"bottom":return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"};case"left":return{enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"};case"right":return{enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"};case"top":return{enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"};default:return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"}}},jg=n=>{if((n==null?void 0:n.enabled)===!1||!n)return;const{text:S,textStyle:R}=n;return{title:{text:S,style:R}}},Ig=n=>{if(!n)return;const{layout:S,textStyle:R,marginBottom:K,marginTop:J,distance:it,width:rt,hoverTextStyle:st,hiddenTextStyle:ht}=n||{};return{layout:S,itemStyle:R,itemMarginBottom:K,itemMarginTop:J,itemDistance:it,itemWidth:rt,itemHoverStyle:st,itemHiddenStyle:ht}},_g=n=>{if(!n)return;const{radius:S,height:R,width:K,padding:J,squared:it}=n;return{symbolRadius:S,symbolHeight:R,symbolWidth:K,symbolPadding:J,squareSymbol:it}},Ng=n=>{const ct=n,{title:S,items:R,symbols:K,xOffset:J,yOffset:it,backgroundColor:rt,borderColor:st}=ct,ht=je(ct,["title","items","symbols","xOffset","yOffset","backgroundColor","borderColor"]);return Ui(Nt(kt(kt(kt(kt({},ht),jg(S)),Ig(R)),_g(K)),{x:J,y:it,backgroundColor:Yi(rt),borderColor:Yi(st)}))},zi=n=>{const S={enabled:!1,symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,align:"center",verticalAlign:"bottom",layout:"horizontal"};if(!n)return S;const rt=n,{position:R}=rt,K=je(rt,["position"]),J=Dg(R||null),it=Ng(K);return Ui(Nt(kt(kt(kt({},S),J),it),{itemStyle:kt(kt({},Og),it.itemStyle)}))},cs=n=>{var S;return(n==null?void 0:n.position)==="right"||(n==null?void 0:n.align)==="right"&&((S=n==null?void 0:n.items)==null?void 0:S.layout)==="vertical"&&(n==null?void 0:n.verticalAlign)==="middle"},Oe="#d1d1d7",_h=25,Nh=[-10,-20,-30,-40,-50,-60,-70,-80,-90],Pe={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"none"},jo={fontSize:"13px",textOverflow:"ellipsis",pointerEvents:"none",textOutline:"none",fontWeight:"bold"},On={labels:{overflow:"none",enabled:!0,autoRotation:Nh,style:Pe},tickmarkPlacement:"on",title:{text:"",enabled:!1,margin:_h,style:Pe},gridLineDashStyle:"Dot",minorGridLineWidth:0,startOnTick:!1,endOnTick:!1,lineColor:Oe,lineWidth:1,tickColor:Oe,minorTickColor:Oe,gridLineColor:Oe,minorGridLineColor:Oe},Ca={labels:{autoRotation:Nh,style:Pe},tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,title:{text:"",margin:_h,enabled:!1,style:Pe},gridLineWidth:1,minorTickWidth:0,tickWidth:0,minorGridLineWidth:0,gridLineDashStyle:"Dot",lineColor:Oe,lineWidth:1,tickColor:Oe,minorTickColor:Oe,gridLineColor:Oe,minorGridLineColor:Oe,minorGridLineDashStyle:"Dot",stackLabels:{style:jo,crop:!0,allowOverlap:!1,enabled:!1,rotation:0,labelrank:99999,x:0,y:0},showLastLabel:!0},Bg=(n,S,R)=>{switch(n){case"line":return Fi;case"area":return Ke(Fi,Sa(R));case"bar":return Ke(Fi,zg(R));case"column":return Ke(Fi,Rg(R));case"polar":return Ke(Fi,Fg(S));case"arearange":return Ke(Fi,Sa(R));default:return Fi}},Fi={chart:{type:"line",spacing:[],alignTicks:!1,polar:!1},legend:zi(),credits:{enabled:!1},exporting:{enabled:!0},plotOptions:{area:{className:"area-series--without-pointer-events",states:{inactive:{enabled:!0,opacity:.3}}},series:{dataLabels:{enabled:!1,crop:!1,style:Nt(kt({},Pe),{textOutline:"none"})},stickyTracking:!1,states:{select:{color:null,opacity:.3,borderColor:"transparent"}}}},xAxis:[],yAxis:[],series:[],boost:{useGPUTranslations:!0,usePreAllocated:!0}},Sa=n=>({plotOptions:{area:kt({},n&&{lineColor:"#ffffff"}),series:kt({},n&&{stacking:n})}}),Rg=n=>({plotOptions:{column:kt({groupPadding:.1,pointPadding:.01},n&&{borderWidth:0}),series:kt({},n&&{stacking:n})}}),zg=n=>({plotOptions:{bar:kt({groupPadding:.1,pointPadding:.01},n&&{borderWidth:0}),series:kt({},n&&{stacking:n})}});function Fg(n){return{plotOptions:{series:Nt(kt({},n!=="line"&&{stacking:"normal"}),{fillOpacity:1})}}}const Bh={enabled:!0,showCategory:!0,showValue:!0,showPercentage:!0,showPercentDecimals:!1},Rh="regular",zh="regular",Fh="regular",Gg=n=>n!=="regular",Wg=()=>({allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!1,funnelMinimumFontSizeToTextLabel:8,align:"center",style:Pe},reversed:!0,neckWidth:Vg,neckHeight:0,width:Gh}),Hg=n=>{const{enabled:S,showCategory:R,showValue:K,showPercentage:J}=n;return Nt(kt({},_e(n)),{enabled:S&&[R,K,J].find(Boolean)!==void 0})},Xg=(n,S)=>S.showCategory?n.point.name||n.series.name:"",Yg=(n,S,R,K)=>{if(!S.showValue)return"";const J=n.y!=null?Xi(n.y,R,K,ke):"";return S.showValue&&S.showCategory?`<br />${J}`:J},Ug=(n,S)=>{var J,it;if(!S.showPercentage)return"";const R=((it=(J=n.point)==null?void 0:J.custom)==null?void 0:it.number1)||0,K=S.showPercentDecimals?R.toFixed(1):`${Math.round(R)}`;return` <b>${ur(K)}</b>`},Gh=66.6,Vg=15,$g=n=>Gh,Zg={wide:60,regular:30,narrow:15},Kg=(n,S)=>Math.round(Uf(n,Zg[S])),qg=n=>n==="pinched"?30:0,Wh=(n,S,R=!0)=>{var ft;const{funnelType:K=zh,funnelSize:J=Rh,funnelDirection:it=Fh,seriesLabels:rt=Bh}=n,st=(ft=S.y[0])==null?void 0:ft.numberFormatConfig,ht=$g(),ct={dataLabels:Nt(kt({},Hg(rt)),{formatter:function(){var B,H;const _=Xg(this,rt),et=Yg(this,rt,st,R),G=Ug(this,rt);return`${(B=rt==null?void 0:rt.prefix)!=null?B:""}${_}${et}${G}${(H=rt==null?void 0:rt.suffix)!=null?H:""}`}}),reversed:Gg(it),neckWidth:ur(Kg(ht,J)),neckHeight:ur(qg(K)),width:ur(ht)};return{funnel:Ze(Wg(),ct),series:{}}},Jg={enabled:!0,showCategory:!0,showValue:!0,percentageLabels:{enabled:!0,showDecimals:!1}},Hh="classic",Qg={classic:"0%",donut:"40%",ring:"80%"},tm=()=>({allowPointSelect:!1,showInLegend:!0,dataLabels:{enabled:!1,showPercentLabels:!1,showDecimals:!1,pieMinimumFontSizeToTextLabel:8,align:"center",style:Pe},innerSize:"0%"}),em=()=>({dataLabels:{enabled:!1}}),Xh=({pieType:n=Hh,seriesLabels:S=Jg,chartDataOptions:R,themeSettings:K,semiCircle:J,defaultNumberFormattingEnabled:it=!0})=>{var ht,ct,pt,ft,_;const rt=tm(),st=em();if(rt.innerSize=Qg[n],K&&(rt.dataLabels.style={color:K.chart.textColor,fontFamily:K.typography.fontFamily,textOutline:"none"}),S.enabled){const et=(ht=R.y[0])==null?void 0:ht.numberFormatConfig,G=S.enabled&&(S.showCategory||S.showValue),B=_e(S);rt.dataLabels=Nt(kt(kt({},rt.dataLabels),B),{enabled:G,style:kt(kt({},rt.dataLabels.style),B.style),formatter:function(){var $,Z;const H=this.point.name||this.series.name,U=this.y;return"<div>"+(($=S.prefix)!=null?$:"")+(S.showCategory?H:"")+(S.showCategory&&S.showValue?"<br />":"")+(S.showValue?Xi(U!=null?U:0,et,it,ke):"")+((Z=S.suffix)!=null?Z:"")+"</div>"},showPercentLabels:(pt=(ct=S==null?void 0:S.percentageLabels)==null?void 0:ct.enabled)!=null?pt:!1,showDecimals:(_=(ft=S==null?void 0:S.percentageLabels)==null?void 0:ft.showDecimals)!=null?_:!1})}return st.dataLabels&&(st.dataLabels.enabled=S.enabled),J&&(rt.startAngle=-90,rt.endAngle=90,rt.center=["50%","75%"]),{pie:rt,series:st}};/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */function wa(n,S){(S==null||S>n.length)&&(S=n.length);for(var R=0,K=Array(S);R<S;R++)K[R]=n[R];return K}function im(n){if(Array.isArray(n))return n}function om(n,S){var R=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(R!=null){var K,J,it,rt,st=[],ht=!0,ct=!1;try{if(it=(R=R.call(n)).next,S!==0)for(;!(ht=(K=it.call(R)).done)&&(st.push(K.value),st.length!==S);ht=!0);}catch(pt){ct=!0,J=pt}finally{try{if(!ht&&R.return!=null&&(rt=R.return(),Object(rt)!==rt))return}finally{if(ct)throw J}}return st}}function rm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nm(n,S){return im(n)||om(n,S)||sm(n,S)||rm()}function sm(n,S){if(n){if(typeof n=="string")return wa(n,S);var R={}.toString.call(n).slice(8,-1);return R==="Object"&&n.constructor&&(R=n.constructor.name),R==="Map"||R==="Set"?Array.from(n):R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?wa(n,S):void 0}}const Yh=Object.entries,Ma=Object.setPrototypeOf,am=Object.isFrozen,lm=Object.getPrototypeOf,hm=Object.getOwnPropertyDescriptor;let Te=Object.freeze,Le=Object.seal,Qi=Object.create,Uh=typeof Reflect!="undefined"&&Reflect,Dn=Uh.apply,jn=Uh.construct;Te||(Te=function(S){return S});Le||(Le=function(S){return S});Dn||(Dn=function(S,R){for(var K=arguments.length,J=new Array(K>2?K-2:0),it=2;it<K;it++)J[it-2]=arguments[it];return S.apply(R,J)});jn||(jn=function(S){for(var R=arguments.length,K=new Array(R>1?R-1:0),J=1;J<R;J++)K[J-1]=arguments[J];return new S(...K)});const po=ye(Array.prototype.forEach),cm=ye(Array.prototype.lastIndexOf),Aa=ye(Array.prototype.pop),Ji=ye(Array.prototype.push),pm=ye(Array.prototype.splice),Li=Array.isArray,bo=ye(String.prototype.toLowerCase),an=ye(String.prototype.toString),Ta=ye(String.prototype.match),uo=ye(String.prototype.replace),ka=ye(String.prototype.indexOf),dm=ye(String.prototype.trim),um=ye(Number.prototype.toString),fm=ye(Boolean.prototype.toString),Pa=typeof BigInt=="undefined"?null:ye(BigInt.prototype.toString),La=typeof Symbol=="undefined"?null:ye(Symbol.prototype.toString),Se=ye(Object.prototype.hasOwnProperty),fo=ye(Object.prototype.toString),Me=ye(RegExp.prototype.test),Gi=gm(TypeError);function ye(n){return function(S){S instanceof RegExp&&(S.lastIndex=0);for(var R=arguments.length,K=new Array(R>1?R-1:0),J=1;J<R;J++)K[J-1]=arguments[J];return Dn(n,S,K)}}function gm(n){return function(){for(var S=arguments.length,R=new Array(S),K=0;K<S;K++)R[K]=arguments[K];return jn(n,R)}}function oe(n,S){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bo;if(Ma&&Ma(n,null),!Li(S))return n;let K=S.length;for(;K--;){let J=S[K];if(typeof J=="string"){const it=R(J);it!==J&&(am(S)||(S[K]=it),J=it)}n[J]=!0}return n}function mm(n){for(let S=0;S<n.length;S++)Se(n,S)||(n[S]=null);return n}function Ie(n){const S=Qi(null);for(const K of Yh(n)){var R=nm(K,2);const J=R[0],it=R[1];Se(n,J)&&(Li(it)?S[J]=mm(it):it&&typeof it=="object"&&it.constructor===Object?S[J]=Ie(it):S[J]=it)}return S}function ym(n){switch(typeof n){case"string":return n;case"number":return um(n);case"boolean":return fm(n);case"bigint":return Pa?Pa(n):"0";case"symbol":return La?La(n):"Symbol()";case"undefined":return fo(n);case"function":case"object":{if(n===null)return fo(n);const S=n,R=li(S,"toString");if(typeof R=="function"){const K=R(S);return typeof K=="string"?K:fo(K)}return fo(n)}default:return fo(n)}}function li(n,S){for(;n!==null;){const K=hm(n,S);if(K){if(K.get)return ye(K.get);if(typeof K.value=="function")return ye(K.value)}n=lm(n)}function R(){return null}return R}function vm(n){try{return Me(n,""),!0}catch(S){return!1}}const Ea=Te(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ln=Te(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),hn=Te(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),bm=Te(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),cn=Te(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),xm=Te(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Oa=Te(["#text"]),Da=Te(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),pn=Te(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ja=Te(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),nr=Te(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Cm=Le(/{{[\w\W]*|^[\w\W]*}}/g),Sm=Le(/<%[\w\W]*|^[\w\W]*%>/g),wm=Le(/\${[\w\W]*/g),Mm=Le(/^data-[\-\w.\u00B7-\uFFFF]+$/),Am=Le(/^aria-[\-\w]+$/),Ia=Le(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tm=Le(/^(?:\w+script|data):/i),km=Le(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pm=Le(/^html$/i),Lm=Le(/^[a-z][.\w]*(-[.\w]+)+$/i),_a=Le(/<[/\w!]/g),Em=Le(/<[/\w]/g),Om=Le(/<\/no(script|embed|frames)/i),Dm=Le(/\/>/i),ai={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},jm=function(){return typeof window=="undefined"?null:window},Im=function(S,R){if(typeof S!="object"||typeof S.createPolicy!="function")return null;let K=null;const J="data-tt-policy-suffix";R&&R.hasAttribute(J)&&(K=R.getAttribute(J));const it="dompurify"+(K?"#"+K:"");try{return S.createPolicy(it,{createHTML(rt){return rt},createScriptURL(rt){return rt}})}catch(rt){return console.warn("TrustedTypes policy "+it+" could not be created."),null}},Na=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ki=function(S,R,K,J){return Se(S,R)&&Li(S[R])?oe(J.base?Ie(J.base):{},S[R],J.transform):K};function Vh(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jm();const S=Ht=>Vh(Ht);if(S.version="3.4.11",S.removed=[],!n||!n.document||n.document.nodeType!==ai.document||!n.Element)return S.isSupported=!1,S;let R=n.document;const K=R,J=K.currentScript,it=n.HTMLTemplateElement,rt=n.Node,st=n.Element,ht=n.NodeFilter,ct=n.DOMParser,pt=n.trustedTypes,ft=st.prototype,_=li(ft,"cloneNode"),et=li(ft,"remove"),G=li(ft,"nextSibling"),B=li(ft,"childNodes"),H=li(ft,"parentNode"),U=li(ft,"shadowRoot"),$=li(ft,"attributes"),Z=rt&&rt.prototype?li(rt.prototype,"nodeType"):null,V=rt&&rt.prototype?li(rt.prototype,"nodeName"):null;if(typeof it=="function"){const Ht=R.createElement("template");Ht.content&&Ht.content.ownerDocument&&(R=Ht.content.ownerDocument)}let F,I="",E,A=!1,P=0;const y=function(){if(P>0)throw Gi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},c=function(St){y(),P++;try{return F.createHTML(St)}finally{P--}},g=function(St){y(),P++;try{return F.createScriptURL(St)}finally{P--}},m=function(){return A||(E=Im(pt,J),A=!0),E},u=R,v=u.implementation,w=u.createNodeIterator,M=u.createDocumentFragment,C=u.getElementsByTagName,p=K.importNode;let f=Na();S.isSupported=typeof Yh=="function"&&typeof H=="function"&&v&&v.createHTMLDocument!==void 0;const r=Cm,l=Sm,t=wm,i=Mm,o=Am,e=Tm,a=km,s=Lm;let h=Ia,b=null;const k=oe({},[...Ea,...ln,...hn,...cn,...Oa]);let O=null;const d=oe({},[...Da,...pn,...ja,...nr]);let x=Object.seal(Qi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),T=null,N=null;const z=Object.seal(Qi(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let L=!0,D=!0,j=!1,Y=!0,X=!1,W=!0,q=!1,tt=!1,Q=null,nt=null,lt=!1,gt=!1,mt=!1,bt=!1,yt=!0,dt=!1;const ot="user-content-";let at=!0,ut=!1,vt={},Ct=null;const xt=oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let wt=null;const Mt=oe({},["audio","video","img","source","image","track"]);let At=null;const Tt=oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Et="http://www.w3.org/1998/Math/MathML",Pt="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml";let It=Dt,jt=!1,_t=null;const Rt=oe({},[Et,Pt,Dt],an),Jt=Te(["mi","mo","mn","ms","mtext"]);let zt=oe({},Jt);const Vt=Te(["annotation-xml"]);let te=oe({},Vt);const be=oe({},["title","style","font","a","script"]);let $t=null;const ie=["application/xhtml+xml","text/html"],we="text/html";let Ot=null,Ft=null;const Zt=R.createElement("form"),qt=function(St){return St instanceof RegExp||St instanceof Function},pe=function(){let St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ft&&Ft===St)return;(!St||typeof St!="object")&&(St={}),St=Ie(St),$t=ie.indexOf(St.PARSER_MEDIA_TYPE)===-1?we:St.PARSER_MEDIA_TYPE,Ot=$t==="application/xhtml+xml"?an:bo,b=ki(St,"ALLOWED_TAGS",k,{transform:Ot}),O=ki(St,"ALLOWED_ATTR",d,{transform:Ot}),_t=ki(St,"ALLOWED_NAMESPACES",Rt,{transform:an}),At=ki(St,"ADD_URI_SAFE_ATTR",Tt,{transform:Ot,base:Tt}),wt=ki(St,"ADD_DATA_URI_TAGS",Mt,{transform:Ot,base:Mt}),Ct=ki(St,"FORBID_CONTENTS",xt,{transform:Ot}),T=ki(St,"FORBID_TAGS",Ie({}),{transform:Ot}),N=ki(St,"FORBID_ATTR",Ie({}),{transform:Ot}),vt=Se(St,"USE_PROFILES")?St.USE_PROFILES&&typeof St.USE_PROFILES=="object"?Ie(St.USE_PROFILES):St.USE_PROFILES:!1,L=St.ALLOW_ARIA_ATTR!==!1,D=St.ALLOW_DATA_ATTR!==!1,j=St.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=St.ALLOW_SELF_CLOSE_IN_ATTR!==!1,X=St.SAFE_FOR_TEMPLATES||!1,W=St.SAFE_FOR_XML!==!1,q=St.WHOLE_DOCUMENT||!1,gt=St.RETURN_DOM||!1,mt=St.RETURN_DOM_FRAGMENT||!1,bt=St.RETURN_TRUSTED_TYPE||!1,lt=St.FORCE_BODY||!1,yt=St.SANITIZE_DOM!==!1,dt=St.SANITIZE_NAMED_PROPS||!1,at=St.KEEP_CONTENT!==!1,ut=St.IN_PLACE||!1,h=vm(St.ALLOWED_URI_REGEXP)?St.ALLOWED_URI_REGEXP:Ia,It=typeof St.NAMESPACE=="string"?St.NAMESPACE:Dt,zt=Se(St,"MATHML_TEXT_INTEGRATION_POINTS")&&St.MATHML_TEXT_INTEGRATION_POINTS&&typeof St.MATHML_TEXT_INTEGRATION_POINTS=="object"?Ie(St.MATHML_TEXT_INTEGRATION_POINTS):oe({},Jt),te=Se(St,"HTML_INTEGRATION_POINTS")&&St.HTML_INTEGRATION_POINTS&&typeof St.HTML_INTEGRATION_POINTS=="object"?Ie(St.HTML_INTEGRATION_POINTS):oe({},Vt);const Lt=Se(St,"CUSTOM_ELEMENT_HANDLING")&&St.CUSTOM_ELEMENT_HANDLING&&typeof St.CUSTOM_ELEMENT_HANDLING=="object"?Ie(St.CUSTOM_ELEMENT_HANDLING):Qi(null);if(x=Qi(null),Se(Lt,"tagNameCheck")&&qt(Lt.tagNameCheck)&&(x.tagNameCheck=Lt.tagNameCheck),Se(Lt,"attributeNameCheck")&&qt(Lt.attributeNameCheck)&&(x.attributeNameCheck=Lt.attributeNameCheck),Se(Lt,"allowCustomizedBuiltInElements")&&typeof Lt.allowCustomizedBuiltInElements=="boolean"&&(x.allowCustomizedBuiltInElements=Lt.allowCustomizedBuiltInElements),Le(x),X&&(D=!1),mt&&(gt=!0),vt&&(b=oe({},Oa),O=Qi(null),vt.html===!0&&(oe(b,Ea),oe(O,Da)),vt.svg===!0&&(oe(b,ln),oe(O,pn),oe(O,nr)),vt.svgFilters===!0&&(oe(b,hn),oe(O,pn),oe(O,nr)),vt.mathMl===!0&&(oe(b,cn),oe(O,ja),oe(O,nr))),z.tagCheck=null,z.attributeCheck=null,Se(St,"ADD_TAGS")&&(typeof St.ADD_TAGS=="function"?z.tagCheck=St.ADD_TAGS:Li(St.ADD_TAGS)&&(b===k&&(b=Ie(b)),oe(b,St.ADD_TAGS,Ot))),Se(St,"ADD_ATTR")&&(typeof St.ADD_ATTR=="function"?z.attributeCheck=St.ADD_ATTR:Li(St.ADD_ATTR)&&(O===d&&(O=Ie(O)),oe(O,St.ADD_ATTR,Ot))),Se(St,"ADD_URI_SAFE_ATTR")&&Li(St.ADD_URI_SAFE_ATTR)&&oe(At,St.ADD_URI_SAFE_ATTR,Ot),Se(St,"FORBID_CONTENTS")&&Li(St.FORBID_CONTENTS)&&(Ct===xt&&(Ct=Ie(Ct)),oe(Ct,St.FORBID_CONTENTS,Ot)),Se(St,"ADD_FORBID_CONTENTS")&&Li(St.ADD_FORBID_CONTENTS)&&(Ct===xt&&(Ct=Ie(Ct)),oe(Ct,St.ADD_FORBID_CONTENTS,Ot)),at&&(b["#text"]=!0),q&&oe(b,["html","head","body"]),b.table&&(oe(b,["tbody"]),delete T.tbody),St.TRUSTED_TYPES_POLICY){if(typeof St.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof St.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Gt=F;F=St.TRUSTED_TYPES_POLICY;try{I=c("")}catch(Ut){throw F=Gt,Ut}}else St.TRUSTED_TYPES_POLICY===null?(F=void 0,I=""):(F===void 0&&(F=m()),F&&typeof I=="string"&&(I=c("")));Te&&Te(St),Ft=St},de=oe({},[...ln,...hn,...bm]),ce=oe({},[...cn,...xm]),ne=function(St,Lt,Gt){return Lt.namespaceURI===Dt?St==="svg":Lt.namespaceURI===Et?St==="svg"&&(Gt==="annotation-xml"||zt[Gt]):!!de[St]},Ti=function(St,Lt,Gt){return Lt.namespaceURI===Dt?St==="math":Lt.namespaceURI===Pt?St==="math"&&te[Gt]:!!ce[St]},xe=function(St,Lt,Gt){return Lt.namespaceURI===Pt&&!te[Gt]||Lt.namespaceURI===Et&&!zt[Gt]?!1:!ce[St]&&(be[St]||!de[St])},ti=function(St){let Lt=H(St);(!Lt||!Lt.tagName)&&(Lt={namespaceURI:It,tagName:"template"});const Gt=bo(St.tagName),Ut=bo(Lt.tagName);return _t[St.namespaceURI]?St.namespaceURI===Pt?ne(Gt,Lt,Ut):St.namespaceURI===Et?Ti(Gt,Lt,Ut):St.namespaceURI===Dt?xe(Gt,Lt,Ut):!!($t==="application/xhtml+xml"&&_t[St.namespaceURI]):!1},Fe=function(St){Ji(S.removed,{element:St});try{H(St).removeChild(St)}catch(Lt){if(et(St),!H(St))throw Gi("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},yi=function(St){const Lt=B(St);if(Lt){const Ut=[];po(Lt,ee=>{Ji(Ut,ee)}),po(Ut,ee=>{try{et(ee)}catch(re){}})}const Gt=$(St);if(Gt)for(let Ut=Gt.length-1;Ut>=0;--Ut){const ee=Gt[Ut],re=ee&&ee.name;if(typeof re=="string")try{St.removeAttribute(re)}catch(Ce){}}},Ge=function(St,Lt){try{Ji(S.removed,{attribute:Lt.getAttributeNode(St),from:Lt})}catch(Gt){Ji(S.removed,{attribute:null,from:Lt})}if(Lt.removeAttribute(St),St==="is")if(gt||mt)try{Fe(Lt)}catch(Gt){}else try{Lt.setAttribute(St,"")}catch(Gt){}},ae=function(St){const Lt=$(St);if(Lt)for(let Gt=Lt.length-1;Gt>=0;--Gt){const Ut=Lt[Gt],ee=Ut&&Ut.name;if(!(typeof ee!="string"||O[Ot(ee)]))try{St.removeAttribute(ee)}catch(re){}}},Ne=function(St){const Lt=[St];for(;Lt.length>0;){const Gt=Lt.pop();(Z?Z(Gt):Gt.nodeType)===ai.element&&ae(Gt);const ee=B(Gt);if(ee)for(let re=ee.length-1;re>=0;--re)Lt.push(ee[re])}},si=function(St){let Lt=null,Gt=null;if(lt)St="<remove></remove>"+St;else{const re=Ta(St,/^[\r\n\t ]+/);Gt=re&&re[0]}$t==="application/xhtml+xml"&&It===Dt&&(St='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+St+"</body></html>");const Ut=F?c(St):St;if(It===Dt)try{Lt=new ct().parseFromString(Ut,$t)}catch(re){}if(!Lt||!Lt.documentElement){Lt=v.createDocument(It,"template",null);try{Lt.documentElement.innerHTML=jt?I:Ut}catch(re){}}const ee=Lt.body||Lt.documentElement;return St&&Gt&&ee.insertBefore(R.createTextNode(Gt),ee.childNodes[0]||null),It===Dt?C.call(Lt,q?"html":"body")[0]:q?Lt.documentElement:ee},Ho=function(St){return w.call(St.ownerDocument||St,St,ht.SHOW_ELEMENT|ht.SHOW_COMMENT|ht.SHOW_TEXT|ht.SHOW_PROCESSING_INSTRUCTION|ht.SHOW_CDATA_SECTION,null)},Xo=function(St){return St=uo(St,r," "),St=uo(St,l," "),St=uo(St,t," "),St},$r=function(St){var Lt;St.normalize();const Gt=w.call(St.ownerDocument||St,St,ht.SHOW_TEXT|ht.SHOW_COMMENT|ht.SHOW_CDATA_SECTION|ht.SHOW_PROCESSING_INSTRUCTION,null);let Ut=Gt.nextNode();for(;Ut;)Ut.data=Xo(Ut.data),Ut=Gt.nextNode();const ee=(Lt=St.querySelectorAll)===null||Lt===void 0?void 0:Lt.call(St,"template");ee&&po(ee,re=>{Zi(re.content)&&$r(re.content)})},Yo=function(St){const Lt=V?V(St):null;return typeof Lt!="string"||Ot(Lt)!=="form"?!1:typeof St.nodeName!="string"||typeof St.textContent!="string"||typeof St.removeChild!="function"||St.attributes!==$(St)||typeof St.removeAttribute!="function"||typeof St.setAttribute!="function"||typeof St.namespaceURI!="string"||typeof St.insertBefore!="function"||typeof St.hasChildNodes!="function"||St.nodeType!==Z(St)||St.childNodes!==B(St)},Zi=function(St){if(!Z||typeof St!="object"||St===null)return!1;try{return Z(St)===ai.documentFragment}catch(Lt){return!1}},ho=function(St){if(!Z||typeof St!="object"||St===null)return!1;try{return typeof Z(St)=="number"}catch(Lt){return!1}};function vi(Ht,St,Lt){Ht.length!==0&&po(Ht,Gt=>{Gt.call(S,St,Lt,Ft)})}const Kc=function(St,Lt){return!!(W&&St.hasChildNodes()&&!ho(St.firstElementChild)&&Me(_a,St.textContent)&&Me(_a,St.innerHTML)||W&&St.namespaceURI===Dt&&Lt==="style"&&ho(St.firstElementChild)||St.nodeType===ai.processingInstruction||W&&St.nodeType===ai.comment&&Me(Em,St.data))},qc=function(St,Lt){if(!T[Lt]&&ws(Lt)&&(x.tagNameCheck instanceof RegExp&&Me(x.tagNameCheck,Lt)||x.tagNameCheck instanceof Function&&x.tagNameCheck(Lt)))return!1;if(at&&!Ct[Lt]){const Gt=H(St),Ut=B(St);if(Ut&&Gt){const ee=Ut.length;for(let re=ee-1;re>=0;--re){const Ce=ut?Ut[re]:_(Ut[re],!0);Gt.insertBefore(Ce,G(St))}}}return Fe(St),!0},Cs=function(St){if(vi(f.beforeSanitizeElements,St,null),Yo(St))return Fe(St),!0;const Lt=Ot(V?V(St):St.nodeName);if(vi(f.uponSanitizeElement,St,{tagName:Lt,allowedTags:b}),Kc(St,Lt))return Fe(St),!0;if(T[Lt]||!(z.tagCheck instanceof Function&&z.tagCheck(Lt))&&!b[Lt])return qc(St,Lt);if((Z?Z(St):St.nodeType)===ai.element&&!ti(St)||(Lt==="noscript"||Lt==="noembed"||Lt==="noframes")&&Me(Om,St.innerHTML))return Fe(St),!0;if(X&&St.nodeType===ai.text){const Ut=Xo(St.textContent);St.textContent!==Ut&&(Ji(S.removed,{element:St.cloneNode()}),St.textContent=Ut)}return vi(f.afterSanitizeElements,St,null),!1},Ss=function(St,Lt,Gt){if(N[Lt]||yt&&(Lt==="id"||Lt==="name")&&(Gt in R||Gt in Zt))return!1;const Ut=O[Lt]||z.attributeCheck instanceof Function&&z.attributeCheck(Lt,St);if(!(D&&Me(i,Lt))){if(!(L&&Me(o,Lt))){if(Ut){if(!At[Lt]){if(!Me(h,uo(Gt,a,""))){if(!((Lt==="src"||Lt==="xlink:href"||Lt==="href")&&St!=="script"&&ka(Gt,"data:")===0&&wt[St])){if(!(j&&!Me(e,uo(Gt,a,"")))){if(Gt)return!1}}}}}else if(!(ws(St)&&(x.tagNameCheck instanceof RegExp&&Me(x.tagNameCheck,St)||x.tagNameCheck instanceof Function&&x.tagNameCheck(St))&&(x.attributeNameCheck instanceof RegExp&&Me(x.attributeNameCheck,Lt)||x.attributeNameCheck instanceof Function&&x.attributeNameCheck(Lt,St))||Lt==="is"&&x.allowCustomizedBuiltInElements&&(x.tagNameCheck instanceof RegExp&&Me(x.tagNameCheck,Gt)||x.tagNameCheck instanceof Function&&x.tagNameCheck(Gt))))return!1}}return!0},Jc=oe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ws=function(St){return!Jc[bo(St)]&&Me(s,St)},Qc=function(St,Lt,Gt,Ut){if(F&&typeof pt=="object"&&typeof pt.getAttributeType=="function"&&!Gt)switch(pt.getAttributeType(St,Lt)){case"TrustedHTML":return c(Ut);case"TrustedScriptURL":return g(Ut)}return Ut},tp=function(St,Lt,Gt,Ut){try{Gt?St.setAttributeNS(Gt,Lt,Ut):St.setAttribute(Lt,Ut),Yo(St)?Fe(St):Aa(S.removed)}catch(ee){Ge(Lt,St)}},Ms=function(St){vi(f.beforeSanitizeAttributes,St,null);const Lt=St.attributes;if(!Lt||Yo(St))return;const Gt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O,forceKeepAttr:void 0};let Ut=Lt.length;const ee=Ot(St.nodeName);for(;Ut--;){const re=Lt[Ut],Ce=re.name,fe=re.namespaceURI,Ve=re.value,ei=Ot(Ce),Kr=Ve;let De=Ce==="value"?Kr:dm(Kr);if(Gt.attrName=ei,Gt.attrValue=De,Gt.keepAttr=!0,Gt.forceKeepAttr=void 0,vi(f.uponSanitizeAttribute,St,Gt),De=Gt.attrValue,dt&&(ei==="id"||ei==="name")&&ka(De,ot)!==0&&(Ge(Ce,St),De=ot+De),W&&Me(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,De)){Ge(Ce,St);continue}if(ei==="attributename"&&Ta(De,"href")){Ge(Ce,St);continue}if(!Gt.forceKeepAttr){if(!Gt.keepAttr){Ge(Ce,St);continue}if(!Y&&Me(Dm,De)){Ge(Ce,St);continue}if(X&&(De=Xo(De)),!Ss(ee,ei,De)){Ge(Ce,St);continue}De=Qc(ee,ei,fe,De),De!==Kr&&tp(St,Ce,fe,De)}}vi(f.afterSanitizeAttributes,St,null)},Uo=function(St){let Lt=null;const Gt=Ho(St);for(vi(f.beforeSanitizeShadowDOM,St,null);Lt=Gt.nextNode();)if(vi(f.uponSanitizeShadowNode,Lt,null),Cs(Lt),Ms(Lt),Zi(Lt.content)&&Uo(Lt.content),(Z?Z(Lt):Lt.nodeType)===ai.element){const ee=U(Lt);Zi(ee)&&(Zr(ee),Uo(ee))}vi(f.afterSanitizeShadowDOM,St,null)},Zr=function(St){const Lt=[{node:St,shadow:null}];for(;Lt.length>0;){const Gt=Lt.pop();if(Gt.shadow){Uo(Gt.shadow);continue}const Ut=Gt.node,re=(Z?Z(Ut):Ut.nodeType)===ai.element,Ce=B(Ut);if(Ce)for(let fe=Ce.length-1;fe>=0;--fe)Lt.push({node:Ce[fe],shadow:null});if(re){const fe=V?V(Ut):null;if(typeof fe=="string"&&Ot(fe)==="template"){const Ve=Ut.content;Zi(Ve)&&Lt.push({node:Ve,shadow:null})}}if(re){const fe=U(Ut);Zi(fe)&&Lt.push({node:null,shadow:fe},{node:fe,shadow:null})}}};return S.sanitize=function(Ht){let St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Lt=null,Gt=null,Ut=null,ee=null;if(jt=!Ht,jt&&(Ht="<!-->"),typeof Ht!="string"&&!ho(Ht)&&(Ht=ym(Ht),typeof Ht!="string"))throw Gi("dirty is not a string, aborting");if(!S.isSupported)return Ht;tt?(b=Q,O=nt):pe(St),(f.uponSanitizeElement.length>0||f.uponSanitizeAttribute.length>0)&&(b=Ie(b)),f.uponSanitizeAttribute.length>0&&(O=Ie(O)),S.removed=[];const re=ut&&typeof Ht!="string"&&ho(Ht);if(re){const Ve=V?V(Ht):Ht.nodeName;if(typeof Ve=="string"){const ei=Ot(Ve);if(!b[ei]||T[ei])throw Gi("root node is forbidden and cannot be sanitized in-place")}if(Yo(Ht))throw Gi("root node is clobbered and cannot be sanitized in-place");try{Zr(Ht)}catch(ei){throw yi(Ht),ei}}else if(ho(Ht))Lt=si("<!---->"),Gt=Lt.ownerDocument.importNode(Ht,!0),Gt.nodeType===ai.element&&Gt.nodeName==="BODY"||Gt.nodeName==="HTML"?Lt=Gt:Lt.appendChild(Gt),Zr(Gt);else{if(!gt&&!X&&!q&&Ht.indexOf("<")===-1)return F&&bt?c(Ht):Ht;if(Lt=si(Ht),!Lt)return gt?null:bt?I:""}Lt&<&&Fe(Lt.firstChild);const Ce=Ho(re?Ht:Lt);try{for(;Ut=Ce.nextNode();)Cs(Ut),Ms(Ut),Zi(Ut.content)&&Uo(Ut.content)}catch(Ve){throw re&&yi(Ht),Ve}if(re)return po(S.removed,Ve=>{Ve.element&&Ne(Ve.element)}),X&&$r(Ht),Ht;if(gt){if(X&&$r(Lt),mt)for(ee=M.call(Lt.ownerDocument);Lt.firstChild;)ee.appendChild(Lt.firstChild);else ee=Lt;return(O.shadowroot||O.shadowrootmode)&&(ee=p.call(K,ee,!0)),ee}let fe=q?Lt.outerHTML:Lt.innerHTML;return q&&b["!doctype"]&&Lt.ownerDocument&&Lt.ownerDocument.doctype&&Lt.ownerDocument.doctype.name&&Me(Pm,Lt.ownerDocument.doctype.name)&&(fe="<!DOCTYPE "+Lt.ownerDocument.doctype.name+`>
|
|
3
|
+
`+fe),X&&(fe=Xo(fe)),F&&bt?c(fe):fe},S.setConfig=function(){let Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pe(Ht),tt=!0,Q=b,nt=O},S.clearConfig=function(){Ft=null,tt=!1,Q=null,nt=null,F=E,I=""},S.isValidAttribute=function(Ht,St,Lt){Ft||pe({});const Gt=Ot(Ht),Ut=Ot(St);return Ss(Gt,Ut,Lt)},S.addHook=function(Ht,St){typeof St=="function"&&Se(f,Ht)&&Ji(f[Ht],St)},S.removeHook=function(Ht,St){if(Se(f,Ht)){if(St!==void 0){const Lt=cm(f[Ht],St);return Lt===-1?void 0:pm(f[Ht],Lt,1)[0]}return Aa(f[Ht])}},S.removeHooks=function(Ht){Se(f,Ht)&&(f[Ht]=[])},S.removeAllHooks=function(){f=Na()},S}var $h=Vh();const Zh=n=>n.compareValues?n.compareValues[0]:NaN,_m=(n,S)=>{var J;if(n.length===0)return[...n];const R=n[0],K=(J=R.events)==null?void 0:J.afterSetExtremes;return[Nt(kt({},R),{events:Nt(kt({},R.events),{afterSetExtremes:it=>{K==null||K(it),it.trigger==="navigator"&&typeof it.min=="number"&&typeof it.max=="number"&&S(Math.round(it.min),Math.round(it.max))}})}),...n.slice(1)]},ps=n=>S=>n?_m(S,n):[...S],Wr=n=>{if(n!==void 0){switch(n){case Bt.DateLevels.Years:return"yyyy";case Bt.DateLevels.Quarters:return"yyyy Q";case Bt.DateLevels.Months:return"MM/yyyy";case Bt.DateLevels.Weeks:return"ww yyyy";case Bt.DateLevels.Days:return"M/d/yy";case Bt.DateLevels.AggHours:return"HH";case Bt.DateLevels.Hours:return"M/d/yy HH";case Bt.DateLevels.AggMinutesRoundTo30:return"HH:mm";case Bt.DateLevels.MinutesRoundTo30:return"HH:mm";case Bt.DateLevels.AggMinutesRoundTo15:return"HH:mm";case Bt.DateLevels.MinutesRoundTo15:return"HH:mm";case Bt.DateLevels.AggMinutesRoundTo1:return"HH:mm";case Bt.DateLevels.Minutes:return"HH:mm";case Bt.DateLevels.Seconds:return"HH:mm:ss"}return console.warn("Unsupported level"),"M/d/yy HH"}};var ds=(n=>(n.MONTH="month",n.QUARTER="quarter",n.HALF_YEAR="half-year",n.YEAR="year",n))(ds||{});const Nm={VIEW_TYPE:ds.MONTH,SUBTYPE:"calendar-heatmap/split",NO_DATA_COLOR:"#f5f5f5",BORDER_WIDTH:0,MIN_CELL_SIZE_FOR_LABELS:20,TOTAL_CALENDAR_CELLS:42,DAYS_IN_WEEK:7,MAX_CALENDAR_ROWS:6,SHOW_CELL_LABEL:!0,SHOW_DAY_LABEL:!0,SHOW_MONTH_LABEL:!0,SHORT_MONTH_NAME_SPLIT_LAYOUT_WIDTH_THRESHOLD:120,SHORT_MONTH_NAME_CONTINUES_LAYOUT_WIDTH_THRESHOLD:70,SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD:120,SHOW_CELL_LABEL_SIZE_THRESHOLD:16,WEEKEND_ENABLED:!1,WEEKEND_DAYS:["saturday","sunday"],WEEKEND_CELL_COLOR:"#e6e6e6",WEEKEND_HIDE_VALUES:!0,START_OF_WEEK:"sunday",SHOW_PAGINATION:!0},Bm={MIN_COLOR_BRIGHTNESS_PERCENT:.5,MAX_COLOR_BRIGHTNESS_PERCENT:-.3,TOOLTIP_COLOR_BRIGHTNESS_PERCENT:-.2,TOOLTIP_BORDER_COLOR:"#c0c0c0"},Rm={GAP_WIDTH:30,GAP_HEIGHT:10,MARGINS:{TOP:20,RIGHT:40,BOTTOM:20,LEFT:40},COLUMNS:7,ROWS:7,MIN_CELL_SIZE:4,MAX_CELL_SIZE:80,TITLE_HEIGHT:20,PAGINATION_HEIGHT:45,PAGINATION_BUTTON_SIZE:{WIDTH:30,HEIGHT:30},MIN_TOOLTIP_WIDTH:110},zm={FONT_SIZE_RATIO:.3,MIN_FONT_SIZE:10,MAX_FONT_SIZE:13,LABEL_Y_OFFSET_RATIO:.08,AXIS_LABEL_Y_RATIO:.3,AXIS_OFFSET_RATIO:.4,MIN_AXIS_FONT_SIZE:12},Fm="calendar-heatmap",Gm="MMMM",Wm="MMM",Hm="EEEEE",Xm="EEE",Ym="2023-01-01T00:00:00Z";var In={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(n,S){(function(R,K){n.exports=K()})(self,()=>(()=>{var R={2:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ct=st(2807);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return ht(ct).default}})},50:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(4501));rt.default=function(pt){var ft,_,et=pt.objectEach,G=pt.pick,B="legend-hovered",H=document.documentElement.ontouchstart!==void 0;function U(){clearTimeout(ft),clearTimeout(_),ft=null,_=null}pt.wrap(pt.Legend.prototype,"renderItem",function($,Z){$.call(this,Z);var V=Z.chart?Z.chart:Z.series.chart,F=!!Z.series,I=V.options.$familyType==="pie",E=F?["graphic"]:["group","markerGroup"],A=Z.legendItem.group.element,P=F?Z.series.points:this.chart.series;function y(M){var C=[];return(M.yAxis||[]).forEach(function(p){p.options.stackLabels&&!p.options.stackLabels.allowOverlap&&et(p.stacking.stacks,function(f){et(f,function(r){r&&r.label&&(r.label.isStackLabel=!0),C.push(r.label)})})}),C}function c(){if(_=null,!ft){var M=w(Z),C={totalsRank:Number.MIN_SAFE_INTEGER};v(Z),m(M,C)}}function g(){ft=null,_||function(M){var C=[],p=[],f={totalsRank:Number.MIN_SAFE_INTEGER};(V.series||[]).forEach(function(l){C=C.concat(w(l)),l!==M&&l.visible&&v(l)});var r=y(V);m(p=p.concat(C,r),f)}(Z)}function m(M,C){V.hideOverlappingLabels(M,C)}function u(M){(V.series||[]).forEach(function(C){C===M&&(C.dataLabelCollections||["dataLabel"]).forEach(function(p){C.points.forEach(function(f){var r=f[String(p)];r&&r.visibility!=="hidden"&&(r.prevOpacity=r.opacity,r.opacitySetter(0,"opacity",r.element),r.prevVisibility=r.visibility,r.visibilitySetter("hidden","visibility",r.element))})})})}function v(M){var C=M.xAxis,p=C==null?void 0:C.min,f=C==null?void 0:C.max;(V.series||[]).forEach(function(r){r===M&&(r.dataLabelCollections||["dataLabel"]).forEach(function(l){r.points.forEach(function(t){var i=t[String(l)];C&&(t.x<p||t.x>f)||i&&i.visibility==="hidden"&&(i.prevOpacity=i.opacity,i.opacitySetter(1,"opacity",i.element),i.prevVisibility=i.visibility,i.visibilitySetter("visible","visibility",i.element))})})})}function w(M){var C=[],p=M.options.dataLabels,f=M.dataLabelCollections||["dataLabel","dataLabelsGroup"];return p&&(p.enabled||M._hasPointLabels)&&!p.allowOverlap&&M.visible&&f.forEach(function(r){M.points&&M.points.forEach(function(l){l[r]&&(l[r].labelrank=G(l.labelrank,l.shapeArgs&&l.shapeArgs.height),C.push(l[r]))})}),C}(0,ct.default)(P)&&(P=[]),H||(A.onmouseover=function(){if(Z.visible){U();var M=F&&Z.series.halo;M&&M.attr({d:"M 0 0"}),P.forEach(function(C){C!==Z&&C.visible&&(E.forEach(function(p){C[p]&&C[p].animate({opacity:.15},{duration:400})}),u(C))}),E.forEach(function(C){Z[C]&&Z[C].addClass(B)}),I||(_=setTimeout(c,100))}},A.onmouseout=function(){Z.visible&&(U(),P.forEach(function(M){M.visible&&M!==Z&&E.forEach(function(C){M[C]&&M[C].animate({opacity:1},{duration:400})})}),E.forEach(function(M){Z[M]&&Z[M].removeClass(B)}),I||(ft=setTimeout(g,100)))},A.addEventListener("click",function(){U();var M=[];P.forEach(function(p){p.visible?(E.forEach(function(f){p[f]&&p[f].animate({opacity:1},{duration:50})}),M=M.concat(w(p))):(E.forEach(function(f){p[f]&&p[f].animate({opacity:.25},{duration:150})}),u(p))});var C=y(V);m(M=M.concat(C))}))})}},123:(it,rt,st)=>{st.d(rt,{A:()=>F});var ht=st(405);const ct=st(9600).A["__core-js_shared__"];var pt,ft=(pt=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"",_=st(7942),et=st(1548),G=/^\[object .+?Constructor\]$/,B=Function.prototype,H=Object.prototype,U=B.toString,$=H.hasOwnProperty,Z=RegExp("^"+U.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const V=function(I){return!(!(0,_.A)(I)||(E=I,ft&&ft in E))&&((0,ht.A)(I)?Z:G).test((0,et.A)(I));var E},F=function(I,E){var A=function(P,y){return P==null?void 0:P[y]}(I,E);return V(A)?A:void 0}},362:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var ct=st(807);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return ht(ct).default}})},368:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(U){for(var $,Z=1,V=arguments.length;Z<V;Z++)for(var F in $=arguments[Z])Object.prototype.hasOwnProperty.call($,F)&&(U[F]=$[F]);return U},ht.apply(this,arguments)},ct=this&&this.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(rt,"__esModule",{value:!0});var pt=ct(st(605)),ft=ct(st(710)),_=ct(st(9681)),et=ct(st(9170)),G=ct(st(6545)),B={enabled:!1,text:"Sisense",href:"http://www.sisense.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:pt.default.textColor,fontSize:"9px"}},H=ht({boost:{allowForce:!0,debug:{showSkipSummary:!0,timeBufferCopy:!0,timeKDTree:!0,timeRendering:!0,timeSeriesProcessing:!0,timeSetup:!0},enabled:!0,seriesThreshold:null,useGPUTranslations:!0},chart:{spacing:[10,10,10,10],backgroundColor:"rgba(222,222,222,0)"},credits:B,drilldown:{breadcrumbs:{buttonTheme:{fill:"#ffcb05","stroke-width":4,"stroke-linejoin":"round",stroke:"#ffcb05",padding:5,states:{hover:{fill:"#f2b900",stroke:"#f2b900"}},style:{color:"#3a4356"}},format:"Back",floating:!0,position:{align:"right"},showFullPath:!1}},exporting:{enabled:!1},global:{useUTC:!1},lang:{contextButtonTitle:"Chart context menu",decimalPoint:".",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadPNG:"Download PNG image",downloadSVG:"Download SVG vector image",drillUpText:"Back",invalidDate:"",loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],noData:"No data to display",numericSymbolMagnitude:1e3,numericSymbols:["k","M","G","T","P","E"],printChart:"Print chart",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],shortWeekdays:void 0,thousandsSep:" ",weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},legend:_.default,navigator:{yAxis:{gridLineWidth:0},xAxis:{gridLineWidth:0}},plotOptions:et.default,title:{margin:0},tooltip:ft.default},G.default);rt.default=H},405:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(4044),ct=st(7942);const pt=function(ft){if(!(0,ct.A)(ft))return!1;var _=(0,ht.A)(ft);return _=="[object Function]"||_=="[object GeneratorFunction]"||_=="[object AsyncFunction]"||_=="[object Proxy]"}},605:(it,rt)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.default={fontFamily:"Open Sans",textColor:"#5B6372",labelColor:"#5B6372",legendColor:"#5B6372",legendNavigationColor:"#5B6372",legendNavigationSecondaryColor:"#9EA2AB"}},622:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.arrayMax=rt.arrayMin=rt.correctFloat=rt.radiansToDegrees=rt.defined=rt.wrap=void 0;var ct=ht(st(8552));rt.wrap=function(pt,ft,_){var et=pt[ft];pt[ft]=function(){var G=Array.prototype.slice.call(arguments);return G.unshift(et),_.apply(this,G)}},rt.defined=function(pt,ft){return ft===void 0||ft==="null"||ft===""?pt!=null:(0,ct.default)(pt,ft)!==void 0},rt.radiansToDegrees=function(pt){return 180*pt/Math.PI},rt.correctFloat=function(pt){return parseFloat(pt.toPrecision(14))},rt.arrayMin=function(pt){for(var ft=pt.length,_=pt[0];ft--;)pt[ft]<_&&(_=pt[ft]);return _},rt.arrayMax=function(pt){for(var ft=pt.length,_=pt[0];ft--;)pt[ft]>_&&(_=pt[ft]);return _}},710:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(2805));rt.default=ct.default},807:function(it,rt,st){var ht=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(5860)),pt=ht(st(2382));rt.default=function(ft){var _=ft.wrap;function et(G){this.hasCartesianSeries&&this.series.forEach(function(B){B.options&&B.options.stacking==="percent"&&(B.userOptions.data.forEach(function(H){H&&(H.originalY=H.y,H.y=Math.abs(H.y))}),B.yData=B.yData.map(Math.abs))}),G.apply(this,[].slice.call(arguments,1))}(0,pt.default)(ft),_(ft.Chart.prototype,"render",et),_(ft.Chart.prototype,"redraw",et),ft.Axis.prototype.renderUnsquish=function(){var G,B,H,U,$,Z=this.chart,V=Z.renderer,F=this.tickPositions,I=this.ticks,E=this.options.labels,A=E.style,P=this.horiz,y=this.getSlotWidth(),c=Math.max(1,Math.round(y-2*E.padding)),g={},m=this.labelMetrics(),u=A.textOverflow,v=0;if((0,ct.default)(E.rotation)||(g.rotation=E.rotation||0),F.forEach(function(w){var M=I[w];M.movedLabel&&M.replaceMovedLabel(),M&&M.label&&M.label.textPxLength>v&&(v=M.label.textPxLength)}),this.maxLabelLength=v,this.autoRotation)v>c&&v>m.h?g.rotation=this.labelRotation:this.labelRotation=0;else if(y&&(G=c,!u))for(B="clip",U=F.length;!P&&U--;)$=F[U],(H=I[$].label)&&(H.styles&&H.styles.textOverflow==="ellipsis"?H.css({textOverflow:"clip"}):H.textPxLength>y&&H.css({width:y+"px"}),H.getBBox().height>this.len/F.length-(m.h-m.f)&&(H.specificTextOverflow="ellipsis"));g.rotation&&(G=v>.33*Z.chartHeight?.28*Z.chartHeight:v,u||(B="ellipsis")),this.labelAlign=E.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(g.align=this.labelAlign),F.forEach(function(w){var M=I[w],C=M&&M.label,p=A.width,f={};C&&(C.attr(g),M.shortenLabel?M.shortenLabel():G&&!p&&A.whiteSpace!=="nowrap"&&(G<C.textPxLength||C.element.tagName==="SPAN")?(f.width=G+"px",u||(f.textOverflow=C.specificTextOverflow||B),C.css(f)):C.styles&&C.styles.width&&!f.width&&!p&&C.css({width:null}),delete C.specificTextOverflow,M.rotation=g.rotation)},this),this.tickRotCorr=V.rotCorr(m.b,this.labelRotation||0,this.side!==0)}}},938:function(it,rt,st){var ht=this&&this.__createBinding||(Object.create?function(_,et,G,B){B===void 0&&(B=G);var H=Object.getOwnPropertyDescriptor(et,G);H&&!("get"in H?!et.__esModule:H.writable||H.configurable)||(H={enumerable:!0,get:function(){return et[G]}}),Object.defineProperty(_,B,H)}:function(_,et,G,B){B===void 0&&(B=G),_[B]=et[G]}),ct=this&&this.__exportStar||function(_,et){for(var G in _)G==="default"||Object.prototype.hasOwnProperty.call(et,G)||ht(et,_,G)},pt=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0,ct(st(7783),rt);var ft=st(7783);Object.defineProperty(rt,"default",{enumerable:!0,get:function(){return pt(ft).default}})},1039:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Core/Math3D.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var H=G.deg2rad,U=B.pick;function $(F,I,E,A){var P=I.options.chart.options3d,y=U(A,!!E&&I.inverted),c={x:I.plotWidth/2,y:I.plotHeight/2,z:P.depth/2,vd:U(P.depth,1)*U(P.viewDistance,0)},g=I.scale3d||1,m=H*P.beta*(y?-1:1),u=H*P.alpha*(y?-1:1),v={cosA:Math.cos(u),cosB:Math.cos(-m),sinA:Math.sin(u),sinB:Math.sin(-m)};return E||(c.x+=I.plotLeft,c.y+=I.plotTop),F.map(function(w){var M=function(p,f,r,l){return{x:l.cosB*p-l.sinB*r,y:-l.sinA*l.sinB*p+l.cosA*f-l.cosB*l.sinA*r,z:l.cosA*l.sinB*p+l.sinA*f+l.cosA*l.cosB*r}}((y?w.y:w.x)-c.x,(y?w.x:w.y)-c.y,(w.z||0)-c.z,v),C=Z(M,c,c.vd);return C.x=C.x*g+c.x,C.y=C.y*g+c.y,C.z=M.z*g+c.z,{x:y?C.y:C.x,y:y?C.x:C.y,z:C.z}})}function Z(F,I,E){var A=E>0&&E<Number.POSITIVE_INFINITY?E/(F.z+I.z+E):1;return{x:F.x*A,y:F.y*A}}function V(F){var I,E,A=0;for(I=0;I<F.length;I++)E=(I+1)%F.length,A+=F[I].x*F[E].y-F[E].x*F[I].y;return A/2}return{perspective:$,perspective3D:Z,pointCameraDistance:function(F,I){var E=I.options.chart.options3d,A=I.plotWidth/2,P=I.plotHeight/2,y=U(E.depth,1)*U(E.viewDistance,0)+E.depth;return Math.sqrt(Math.pow(A-U(F.plotX,F.x),2)+Math.pow(P-U(F.plotY,F.y),2)+Math.pow(y-U(F.plotZ,F.z),2))},shapeArea:V,shapeArea3D:function(F,I,E){return V($(F,I,E))}}}),et(_,"Core/Renderer/SVG/SVGElement3D.js",[_["Core/Color/Color.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,H){var U=G.parse,$=H.defined,Z=H.merge,V=H.objectEach,F=H.pick,I={};return I.base={initArgs:function(E){var A=this,P=A.renderer,y=P[A.pathType+"Path"](E),c=y.zIndexes;A.parts.forEach(function(g){var m={class:"highcharts-3d-"+g,zIndex:c[g]||0};P.styledMode&&(g==="top"?m.filter="url(#highcharts-brighter)":g==="side"&&(m.filter="url(#highcharts-darker)")),A[g]=P.path(y[g]).attr(m).add(A)}),A.attr({"stroke-linejoin":"round",zIndex:c.group}),A.originalDestroy=A.destroy,A.destroy=A.destroyParts,A.forcedSides=y.forcedSides},singleSetterForParts:function(E,A,P,y,c,g){var m={},u=[null,null,y||"attr",c,g],v=P&&P.zIndexes;return P?(v&&v.group&&this.attr({zIndex:v.group}),V(P,function(w,M){m[M]={},m[M][E]=w,v&&(m[M].zIndex=P.zIndexes[M]||0)}),u[1]=m):(m[E]=A,u[0]=m),this.processParts.apply(this,u)},processParts:function(E,A,P,y,c){var g=this;return g.parts.forEach(function(m){A&&(E=F(A[m],!1)),E!==!1&&g[m][P](E,y,c)}),g},destroyParts:function(){return this.processParts(null,null,"destroy"),this.originalDestroy()}},I.cuboid=Z(I.base,{parts:["front","top","side"],pathType:"cuboid",attr:function(E,A,P,y){if(typeof E=="string"&&A!==void 0){var c=E;(E={})[c]=A}return E.shapeArgs||$(E.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](E.shapeArgs||E)):B.prototype.attr.call(this,E,void 0,P,y)},animate:function(E,A,P){if($(E.x)&&$(E.y)){var y=this.renderer[this.pathType+"Path"](E),c=y.forcedSides;this.singleSetterForParts("d",null,y,"animate",A,P),this.attr({zIndex:y.zIndexes.group}),c!==this.forcedSides&&(this.forcedSides=c,this.renderer.styledMode||I.cuboid.fillSetter.call(this,this.fill))}else B.prototype.animate.call(this,E,A,P);return this},fillSetter:function(E){var A=this;return A.forcedSides=A.forcedSides||[],A.singleSetterForParts("fill",null,{front:E,top:U(E).brighten(A.forcedSides.indexOf("top")>=0?0:.1).get(),side:U(E).brighten(A.forcedSides.indexOf("side")>=0?0:-.1).get()}),A.color=A.fill=E,A}}),I}),et(_,"Core/Renderer/SVG/SVGRenderer3D.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Math3D.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGElement3D.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F){var I,E=this&&this.__extends||(I=function(t,i){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var a in e)e.hasOwnProperty(a)&&(o[a]=e[a])},I(t,i)},function(t,i){function o(){this.constructor=t}I(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),A=G.animObject,P=B.parse,y=H.charts,c=H.deg2rad,g=U.perspective,m=U.shapeArea,u=F.defined,v=F.extend,w=F.merge,M=F.pick,C=Math.cos,p=Math.sin,f=Math.PI,r=4*(Math.sqrt(2)-1)/3/(f/2),l=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return E(i,t),i.compose=function(o){var e=o.prototype,a=i.prototype;e.elements3d=Z,e.arc3d=a.arc3d,e.arc3dPath=a.arc3dPath,e.cuboid=a.cuboid,e.cuboidPath=a.cuboidPath,e.element3d=a.element3d,e.face3d=a.face3d,e.polyhedron=a.polyhedron,e.toLinePath=a.toLinePath,e.toLineSegments=a.toLineSegments},i.curveTo=function(o,e,a,s,h,b,k,O){var d=[],x=b-h;return b>h&&b-h>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,e,a,s,h,h+Math.PI/2,k,O))).concat(this.curveTo(o,e,a,s,h+Math.PI/2,b,k,O)):b<h&&h-b>Math.PI/2+1e-4?d=(d=d.concat(this.curveTo(o,e,a,s,h,h-Math.PI/2,k,O))).concat(this.curveTo(o,e,a,s,h-Math.PI/2,b,k,O)):[["C",o+a*Math.cos(h)-a*r*x*Math.sin(h)+k,e+s*Math.sin(h)+s*r*x*Math.cos(h)+O,o+a*Math.cos(b)+a*r*x*Math.sin(b)+k,e+s*Math.sin(b)-s*r*x*Math.cos(b)+O,o+a*Math.cos(b)+k,e+s*Math.sin(b)+O]]},i.prototype.toLinePath=function(o,e){var a=[];return o.forEach(function(s){a.push(["L",s.x,s.y])}),o.length&&(a[0][0]="M",e&&a.push(["Z"])),a},i.prototype.toLineSegments=function(o){var e=[],a=!0;return o.forEach(function(s){e.push(a?["M",s.x,s.y]:["L",s.x,s.y]),a=!a}),e},i.prototype.face3d=function(o){var e=this,a=this.createElement("path");return a.vertexes=[],a.insidePlotArea=!1,a.enabled=!0,a.attr=function(s){if(typeof s=="object"&&(u(s.enabled)||u(s.vertexes)||u(s.insidePlotArea))){this.enabled=M(s.enabled,this.enabled),this.vertexes=M(s.vertexes,this.vertexes),this.insidePlotArea=M(s.insidePlotArea,this.insidePlotArea),delete s.enabled,delete s.vertexes,delete s.insidePlotArea;var h=y[e.chartIndex],b=g(this.vertexes,h,this.insidePlotArea),k=e.toLinePath(b,!0),O=m(b);s.d=k,s.visibility=this.enabled&&O>0?"inherit":"hidden"}return $.prototype.attr.apply(this,arguments)},a.animate=function(s){if(typeof s=="object"&&(u(s.enabled)||u(s.vertexes)||u(s.insidePlotArea))){this.enabled=M(s.enabled,this.enabled),this.vertexes=M(s.vertexes,this.vertexes),this.insidePlotArea=M(s.insidePlotArea,this.insidePlotArea),delete s.enabled,delete s.vertexes,delete s.insidePlotArea;var h=y[e.chartIndex],b=g(this.vertexes,h,this.insidePlotArea),k=e.toLinePath(b,!0),O=m(b),d=this.enabled&&O>0?"visible":"hidden";s.d=k,this.attr("visibility",d)}return $.prototype.animate.apply(this,arguments)},a.attr(o)},i.prototype.polyhedron=function(o){var e=this,a=this.g(),s=a.destroy;return this.styledMode||a.attr({"stroke-linejoin":"round"}),a.faces=[],a.destroy=function(){for(var h=0;h<a.faces.length;h++)a.faces[h].destroy();return s.call(this)},a.attr=function(h,b,k,O){if(typeof h=="object"&&u(h.faces)){for(;a.faces.length>h.faces.length;)a.faces.pop().destroy();for(;a.faces.length<h.faces.length;)a.faces.push(e.face3d().add(a));for(var d=0;d<h.faces.length;d++)e.styledMode&&delete h.faces[d].fill,a.faces[d].attr(h.faces[d],null,k,O);delete h.faces}return $.prototype.attr.apply(this,arguments)},a.animate=function(h,b,k){if(h&&h.faces){for(;a.faces.length>h.faces.length;)a.faces.pop().destroy();for(;a.faces.length<h.faces.length;)a.faces.push(e.face3d().add(a));for(var O=0;O<h.faces.length;O++)a.faces[O].animate(h.faces[O],b,k);delete h.faces}return $.prototype.animate.apply(this,arguments)},a.attr(o)},i.prototype.element3d=function(o,e){var a=this.g();return v(a,this.elements3d[o]),a.initArgs(e),a},i.prototype.cuboid=function(o){return this.element3d("cuboid",o)},i.prototype.cuboidPath=function(o){var e,a,s,h,b,k,O,d,x=o.x||0,T=o.y||0,N=o.z||0,z=o.height||0,L=o.width||0,D=o.depth||0,j=y[this.chartIndex],Y=j.options.chart.options3d.alpha,X=1e6,W=0,q=[{x,y:T,z:N},{x:x+L,y:T,z:N},{x:x+L,y:T+z,z:N},{x,y:T+z,z:N},{x,y:T+z,z:N+D},{x:x+L,y:T+z,z:N+D},{x:x+L,y:T,z:N+D},{x,y:T,z:N+D}],tt=[];function Q(lt){return z===0&<>1&<<6?{x:q[lt].x,y:q[lt].y+10,z:q[lt].z}:q[0].x===q[7].x&<>=4?{x:q[lt].x+10,y:q[lt].y,z:q[lt].z}:D===0&<<2||lt>5?{x:q[lt].x,y:q[lt].y,z:q[lt].z+10}:q[lt]}function nt(lt){return q[lt]}return q=g(q,j,o.insidePlotArea),a=(e=(d=function(lt,gt,mt){var bt=[[],-1],yt=lt.map(nt),dt=gt.map(nt),ot=lt.map(Q),at=gt.map(Q);return m(yt)<0?bt=[yt,0]:m(dt)<0?bt=[dt,1]:mt&&(tt.push(mt),bt=m(ot)<0?[yt,0]:m(at)<0?[dt,1]:[yt,0]),bt})([3,2,1,0],[7,6,5,4],"front"))[0],b=e[1],s=(e=d([1,6,7,0],[4,5,2,3],"top"))[0],k=e[1],h=(e=d([1,2,5,6],[0,7,4,3],"side"))[0],(O=e[1])===1?W+=X*(j.plotWidth-x):O||(W+=X*x),W+=10*(!k||Y>=0&&Y<=180||Y<360&&Y>357.5?j.plotHeight-T:10+T),b===1?W+=100*N:b||(W+=100*(1e3-N)),{front:this.toLinePath(a,!0),top:this.toLinePath(s,!0),side:this.toLinePath(h,!0),zIndexes:{group:Math.round(W)},forcedSides:tt,isFront:b,isTop:k}},i.prototype.arc3d=function(o){var e=this.g(),a=e.renderer,s=["x","y","r","innerR","start","end","depth"];function h(b){var k,O=!1,d={};for(k in b=w(b))s.indexOf(k)!==-1&&(d[k]=b[k],delete b[k],O=!0);return!!O&&[d,b]}return(o=w(o)).alpha=(o.alpha||0)*c,o.beta=(o.beta||0)*c,e.top=a.path(),e.side1=a.path(),e.side2=a.path(),e.inn=a.path(),e.out=a.path(),e.onAdd=function(){var b=e.parentGroup,k=e.attr("class");e.top.add(e),["out","inn","side1","side2"].forEach(function(O){e[O].attr({class:k+" highcharts-3d-side"}).add(b)})},["addClass","removeClass"].forEach(function(b){e[b]=function(){var k=arguments;["top","out","inn","side1","side2"].forEach(function(O){e[O][b].apply(e[O],k)})}}),e.setPaths=function(b){var k=e.renderer.arc3dPath(b),O=100*k.zTop;e.attribs=b,e.top.attr({d:k.top,zIndex:k.zTop}),e.inn.attr({d:k.inn,zIndex:k.zInn}),e.out.attr({d:k.out,zIndex:k.zOut}),e.side1.attr({d:k.side1,zIndex:k.zSide1}),e.side2.attr({d:k.side2,zIndex:k.zSide2}),e.zIndex=O,e.attr({zIndex:O}),b.center&&(e.top.setRadialReference(b.center),delete b.center)},e.setPaths(o),e.fillSetter=function(b){var k=P(b).brighten(-.1).get();return this.fill=b,this.side1.attr({fill:k}),this.side2.attr({fill:k}),this.inn.attr({fill:k}),this.out.attr({fill:k}),this.top.attr({fill:b}),this},["opacity","translateX","translateY","visibility"].forEach(function(b){e[b+"Setter"]=function(k,O){e[O]=k,["out","inn","side1","side2","top"].forEach(function(d){e[d].attr(O,k)})}}),e.attr=function(b){var k,O;return typeof b=="object"&&(O=h(b))&&(k=O[0],arguments[0]=O[1],v(e.attribs,k),e.setPaths(e.attribs)),$.prototype.attr.apply(e,arguments)},e.animate=function(b,k,O){var d,x,T,N=this.attribs,z="data-"+Math.random().toString(26).substring(2,9);return delete b.center,delete b.z,delete b.alpha,delete b.beta,(T=A(M(k,this.renderer.globalAnimation))).duration&&(d=h(b),e[z]=0,b[z]=1,e[z+"Setter"]=H.noop,d&&(x=d[0],T.step=function(L,D){function j(Y){return N[Y]+(M(x[Y],N[Y])-N[Y])*D.pos}D.prop===z&&D.elem.setPaths(w(N,{x:j("x"),y:j("y"),r:j("r"),innerR:j("innerR"),start:j("start"),end:j("end"),depth:j("depth")}))}),k=T),$.prototype.animate.call(this,b,k,O)},e.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),$.prototype.destroy.call(this)},e.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},e.show=function(b){this.top.show(b),this.out.show(b),this.inn.show(b),this.side1.show(b),this.side2.show(b)},e},i.prototype.arc3dPath=function(o){var e=o.x||0,a=o.y||0,s=o.start||0,h=(o.end||0)-1e-5,b=o.r||0,k=o.innerR||0,O=o.depth||0,d=o.alpha||0,x=o.beta||0,T=Math.cos(s),N=Math.sin(s),z=Math.cos(h),L=Math.sin(h),D=b*Math.cos(x),j=b*Math.cos(d),Y=k*Math.cos(x),X=k*Math.cos(d),W=O*Math.sin(x),q=O*Math.sin(d),tt=[["M",e+D*T,a+j*N]];(tt=tt.concat(i.curveTo(e,a,D,j,s,h,0,0))).push(["L",e+Y*z,a+X*L]),(tt=tt.concat(i.curveTo(e,a,Y,X,h,s,0,0))).push(["Z"]);var Q=x>0?Math.PI/2:0,nt=d>0?0:Math.PI/2,lt=s>-Q?s:h>-Q?-Q:s,gt=h<f-nt?h:s<f-nt?f-nt:h,mt=2*f-nt,bt=[["M",e+D*C(lt),a+j*p(lt)]];bt=bt.concat(i.curveTo(e,a,D,j,lt,gt,0,0)),h>mt&&s<mt?(bt.push(["L",e+D*C(gt)+W,a+j*p(gt)+q]),(bt=bt.concat(i.curveTo(e,a,D,j,gt,mt,W,q))).push(["L",e+D*C(mt),a+j*p(mt)]),(bt=bt.concat(i.curveTo(e,a,D,j,mt,h,0,0))).push(["L",e+D*C(h)+W,a+j*p(h)+q]),(bt=bt.concat(i.curveTo(e,a,D,j,h,mt,W,q))).push(["L",e+D*C(mt),a+j*p(mt)]),bt=bt.concat(i.curveTo(e,a,D,j,mt,gt,0,0))):h>f-nt&&s<f-nt&&(bt.push(["L",e+D*Math.cos(gt)+W,a+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,a,D,j,gt,h,W,q))).push(["L",e+D*Math.cos(h),a+j*Math.sin(h)]),bt=bt.concat(i.curveTo(e,a,D,j,h,gt,0,0))),bt.push(["L",e+D*Math.cos(gt)+W,a+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,a,D,j,gt,lt,W,q))).push(["Z"]);var yt=[["M",e+Y*T,a+X*N]];(yt=yt.concat(i.curveTo(e,a,Y,X,s,h,0,0))).push(["L",e+Y*Math.cos(h)+W,a+X*Math.sin(h)+q]),(yt=yt.concat(i.curveTo(e,a,Y,X,h,s,W,q))).push(["Z"]);var dt=[["M",e+D*T,a+j*N],["L",e+D*T+W,a+j*N+q],["L",e+Y*T+W,a+X*N+q],["L",e+Y*T,a+X*N],["Z"]],ot=[["M",e+D*z,a+j*L],["L",e+D*z+W,a+j*L+q],["L",e+Y*z+W,a+X*L+q],["L",e+Y*z,a+X*L],["Z"]],at=Math.atan2(q,-W),ut=Math.abs(h+at),vt=Math.abs(s+at),Ct=Math.abs((s+h)/2+at);function xt(Et){return(Et%=2*Math.PI)>Math.PI&&(Et=2*Math.PI-Et),Et}ut=xt(ut),vt=xt(vt);var wt=1e5,Mt=(Ct=xt(Ct))*wt,At=vt*wt,Tt=ut*wt;return{top:tt,zTop:Math.PI*wt+1,out:bt,zOut:Math.max(Mt,At,Tt),inn:yt,zInn:Math.max(Mt,At,Tt),side1:dt,zSide1:.99*Tt,side2:ot,zSide2:.99*At}},i}(V);return l}),et(_,"Core/Chart/Chart3D.js",[_["Core/Color/Color.js"],_["Core/Defaults.js"],_["Core/Math3D.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=G.parse,V=B.defaultOptions,F=H.perspective,I=H.shapeArea3D,E=U.addEvent,A=U.isArray,P=U.merge,y=U.pick,c=U.wrap;return function(g){var m=function(){function o(e){this.frame3d=void 0,this.chart=e}return o.prototype.get3dFrame=function(){var e=this.chart,a=e.options.chart.options3d,s=a.frame,h=e.plotLeft,b=e.plotLeft+e.plotWidth,k=e.plotTop,O=e.plotTop+e.plotHeight,d=a.depth,x=function(ot){var at=I(ot,e);return at>.5?1:at<-.5?-1:0},T=x([{x:h,y:O,z:d},{x:b,y:O,z:d},{x:b,y:O,z:0},{x:h,y:O,z:0}]),N=x([{x:h,y:k,z:0},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:h,y:k,z:d}]),z=x([{x:h,y:k,z:0},{x:h,y:k,z:d},{x:h,y:O,z:d},{x:h,y:O,z:0}]),L=x([{x:b,y:k,z:d},{x:b,y:k,z:0},{x:b,y:O,z:0},{x:b,y:O,z:d}]),D=x([{x:h,y:O,z:0},{x:b,y:O,z:0},{x:b,y:k,z:0},{x:h,y:k,z:0}]),j=x([{x:h,y:k,z:d},{x:b,y:k,z:d},{x:b,y:O,z:d},{x:h,y:O,z:d}]),Y=!1,X=!1,W=!1,q=!1;[].concat(e.xAxis,e.yAxis,e.zAxis).forEach(function(ot){ot&&(ot.horiz?ot.opposite?X=!0:Y=!0:ot.opposite?q=!0:W=!0)});var tt=function(ot,at,ut){for(var vt=["size","color","visible"],Ct={},xt=0;xt<vt.length;xt++)for(var wt=vt[xt],Mt=0;Mt<ot.length;Mt++)if(typeof ot[Mt]=="object"){var At=ot[Mt][wt];if(At!=null){Ct[wt]=At;break}}var Tt=ut;return Ct.visible===!0||Ct.visible===!1?Tt=Ct.visible:Ct.visible==="auto"&&(Tt=at>0),{size:y(Ct.size,1),color:y(Ct.color,"none"),frontFacing:at>0,visible:Tt}},Q={axes:{},bottom:tt([s.bottom,s.top,s],T,Y),top:tt([s.top,s.bottom,s],N,X),left:tt([s.left,s.right,s.side,s],z,W),right:tt([s.right,s.left,s.side,s],L,q),back:tt([s.back,s.front,s],j,!0),front:tt([s.front,s.back,s],D,!1)};if(a.axisLabelPosition==="auto"){var nt=function(ot,at){return ot.visible!==at.visible||ot.visible&&at.visible&&ot.frontFacing!==at.frontFacing},lt=[];nt(Q.left,Q.front)&<.push({y:(k+O)/2,x:h,z:0,xDir:{x:1,y:0,z:0}}),nt(Q.left,Q.back)&<.push({y:(k+O)/2,x:h,z:d,xDir:{x:0,y:0,z:-1}}),nt(Q.right,Q.front)&<.push({y:(k+O)/2,x:b,z:0,xDir:{x:0,y:0,z:1}}),nt(Q.right,Q.back)&<.push({y:(k+O)/2,x:b,z:d,xDir:{x:-1,y:0,z:0}});var gt=[];nt(Q.bottom,Q.front)&>.push({x:(h+b)/2,y:O,z:0,xDir:{x:1,y:0,z:0}}),nt(Q.bottom,Q.back)&>.push({x:(h+b)/2,y:O,z:d,xDir:{x:-1,y:0,z:0}});var mt=[];nt(Q.top,Q.front)&&mt.push({x:(h+b)/2,y:k,z:0,xDir:{x:1,y:0,z:0}}),nt(Q.top,Q.back)&&mt.push({x:(h+b)/2,y:k,z:d,xDir:{x:-1,y:0,z:0}});var bt=[];nt(Q.bottom,Q.left)&&bt.push({z:(0+d)/2,y:O,x:h,xDir:{x:0,y:0,z:-1}}),nt(Q.bottom,Q.right)&&bt.push({z:(0+d)/2,y:O,x:b,xDir:{x:0,y:0,z:1}});var yt=[];nt(Q.top,Q.left)&&yt.push({z:(0+d)/2,y:k,x:h,xDir:{x:0,y:0,z:-1}}),nt(Q.top,Q.right)&&yt.push({z:(0+d)/2,y:k,x:b,xDir:{x:0,y:0,z:1}});var dt=function(ot,at,ut){if(ot.length===0)return null;if(ot.length===1)return ot[0];for(var vt=F(ot,e,!1),Ct=0,xt=1;xt<vt.length;xt++)(ut*vt[xt][at]>ut*vt[Ct][at]||ut*vt[xt][at]===ut*vt[Ct][at]&&vt[xt].z<vt[Ct].z)&&(Ct=xt);return ot[Ct]};Q.axes={y:{left:dt(lt,"x",-1),right:dt(lt,"x",1)},x:{top:dt(mt,"y",-1),bottom:dt(gt,"y",1)},z:{top:dt(yt,"y",-1),bottom:dt(bt,"y",1)}}}else Q.axes={y:{left:{x:h,z:0,xDir:{x:1,y:0,z:0}},right:{x:b,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:k,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:O,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:W?b:h,y:k,xDir:W?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:W?b:h,y:O,xDir:W?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return Q},o.prototype.getScale=function(e){var a,s=this.chart,h=s.plotLeft,b=s.plotWidth+h,k=s.plotTop,O=s.plotHeight+k,d=h+s.plotWidth/2,x=k+s.plotHeight/2,T={minX:Number.MAX_VALUE,maxX:-Number.MAX_VALUE,minY:Number.MAX_VALUE,maxY:-Number.MAX_VALUE},N=1;return a=[{x:h,y:k,z:0},{x:h,y:k,z:e}],[0,1].forEach(function(z){a.push({x:b,y:a[z].y,z:a[z].z})}),[0,1,2,3].forEach(function(z){a.push({x:a[z].x,y:O,z:a[z].z})}),(a=F(a,s,!1)).forEach(function(z){T.minX=Math.min(T.minX,z.x),T.maxX=Math.max(T.maxX,z.x),T.minY=Math.min(T.minY,z.y),T.maxY=Math.max(T.maxY,z.y)}),h>T.minX&&(N=Math.min(N,1-Math.abs((h+d)/(T.minX+d))%1)),b<T.maxX&&(N=Math.min(N,(b-d)/(T.maxX-d))),k>T.minY&&(N=T.minY<0?Math.min(N,(k+x)/(-T.minY+k+x)):Math.min(N,1-(k+x)/(T.minY+x)%1)),O<T.maxY&&(N=Math.min(N,Math.abs((O-x)/(T.maxY-x)))),N},o}();function u(o){this.is3d()&&o.options.type==="scatter"&&(o.options.type="scatter3d")}function v(){if(this.chart3d&&this.is3d()){var o=this,e=o.renderer,a=o.options.chart.options3d,s=o.chart3d.get3dFrame(),h=o.plotLeft,b=o.plotLeft+o.plotWidth,k=o.plotTop,O=o.plotTop+o.plotHeight,d=a.depth,x=h-(s.left.visible?s.left.size:0),T=b+(s.right.visible?s.right.size:0),N=k-(s.top.visible?s.top.size:0),z=O+(s.bottom.visible?s.bottom.size:0),L=0-(s.front.visible?s.front.size:0),D=d+(s.back.visible?s.back.size:0),j=o.hasRendered?"animate":"attr";o.chart3d.frame3d=s,o.frameShapes||(o.frameShapes={bottom:e.polyhedron().add(),top:e.polyhedron().add(),left:e.polyhedron().add(),right:e.polyhedron().add(),back:e.polyhedron().add(),front:e.polyhedron().add()}),o.frameShapes.bottom[j]({class:"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:s.bottom.frontFacing?-1e3:1e3,faces:[{fill:Z(s.bottom.color).brighten(.1).get(),vertexes:[{x,y:z,z:L},{x:T,y:z,z:L},{x:T,y:z,z:D},{x,y:z,z:D}],enabled:s.bottom.visible},{fill:Z(s.bottom.color).brighten(.1).get(),vertexes:[{x:h,y:O,z:d},{x:b,y:O,z:d},{x:b,y:O,z:0},{x:h,y:O,z:0}],enabled:s.bottom.visible},{fill:Z(s.bottom.color).brighten(-.1).get(),vertexes:[{x,y:z,z:L},{x,y:z,z:D},{x:h,y:O,z:d},{x:h,y:O,z:0}],enabled:s.bottom.visible&&!s.left.visible},{fill:Z(s.bottom.color).brighten(-.1).get(),vertexes:[{x:T,y:z,z:D},{x:T,y:z,z:L},{x:b,y:O,z:0},{x:b,y:O,z:d}],enabled:s.bottom.visible&&!s.right.visible},{fill:Z(s.bottom.color).get(),vertexes:[{x:T,y:z,z:L},{x,y:z,z:L},{x:h,y:O,z:0},{x:b,y:O,z:0}],enabled:s.bottom.visible&&!s.front.visible},{fill:Z(s.bottom.color).get(),vertexes:[{x,y:z,z:D},{x:T,y:z,z:D},{x:b,y:O,z:d},{x:h,y:O,z:d}],enabled:s.bottom.visible&&!s.back.visible}]}),o.frameShapes.top[j]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:s.top.frontFacing?-1e3:1e3,faces:[{fill:Z(s.top.color).brighten(.1).get(),vertexes:[{x,y:N,z:D},{x:T,y:N,z:D},{x:T,y:N,z:L},{x,y:N,z:L}],enabled:s.top.visible},{fill:Z(s.top.color).brighten(.1).get(),vertexes:[{x:h,y:k,z:0},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:h,y:k,z:d}],enabled:s.top.visible},{fill:Z(s.top.color).brighten(-.1).get(),vertexes:[{x,y:N,z:D},{x,y:N,z:L},{x:h,y:k,z:0},{x:h,y:k,z:d}],enabled:s.top.visible&&!s.left.visible},{fill:Z(s.top.color).brighten(-.1).get(),vertexes:[{x:T,y:N,z:L},{x:T,y:N,z:D},{x:b,y:k,z:d},{x:b,y:k,z:0}],enabled:s.top.visible&&!s.right.visible},{fill:Z(s.top.color).get(),vertexes:[{x,y:N,z:L},{x:T,y:N,z:L},{x:b,y:k,z:0},{x:h,y:k,z:0}],enabled:s.top.visible&&!s.front.visible},{fill:Z(s.top.color).get(),vertexes:[{x:T,y:N,z:D},{x,y:N,z:D},{x:h,y:k,z:d},{x:b,y:k,z:d}],enabled:s.top.visible&&!s.back.visible}]}),o.frameShapes.left[j]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:s.left.frontFacing?-1e3:1e3,faces:[{fill:Z(s.left.color).brighten(.1).get(),vertexes:[{x,y:z,z:L},{x:h,y:O,z:0},{x:h,y:O,z:d},{x,y:z,z:D}],enabled:s.left.visible&&!s.bottom.visible},{fill:Z(s.left.color).brighten(.1).get(),vertexes:[{x,y:N,z:D},{x:h,y:k,z:d},{x:h,y:k,z:0},{x,y:N,z:L}],enabled:s.left.visible&&!s.top.visible},{fill:Z(s.left.color).brighten(-.1).get(),vertexes:[{x,y:z,z:D},{x,y:N,z:D},{x,y:N,z:L},{x,y:z,z:L}],enabled:s.left.visible},{fill:Z(s.left.color).brighten(-.1).get(),vertexes:[{x:h,y:k,z:d},{x:h,y:O,z:d},{x:h,y:O,z:0},{x:h,y:k,z:0}],enabled:s.left.visible},{fill:Z(s.left.color).get(),vertexes:[{x,y:z,z:L},{x,y:N,z:L},{x:h,y:k,z:0},{x:h,y:O,z:0}],enabled:s.left.visible&&!s.front.visible},{fill:Z(s.left.color).get(),vertexes:[{x,y:N,z:D},{x,y:z,z:D},{x:h,y:O,z:d},{x:h,y:k,z:d}],enabled:s.left.visible&&!s.back.visible}]}),o.frameShapes.right[j]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:s.right.frontFacing?-1e3:1e3,faces:[{fill:Z(s.right.color).brighten(.1).get(),vertexes:[{x:T,y:z,z:D},{x:b,y:O,z:d},{x:b,y:O,z:0},{x:T,y:z,z:L}],enabled:s.right.visible&&!s.bottom.visible},{fill:Z(s.right.color).brighten(.1).get(),vertexes:[{x:T,y:N,z:L},{x:b,y:k,z:0},{x:b,y:k,z:d},{x:T,y:N,z:D}],enabled:s.right.visible&&!s.top.visible},{fill:Z(s.right.color).brighten(-.1).get(),vertexes:[{x:b,y:k,z:0},{x:b,y:O,z:0},{x:b,y:O,z:d},{x:b,y:k,z:d}],enabled:s.right.visible},{fill:Z(s.right.color).brighten(-.1).get(),vertexes:[{x:T,y:z,z:L},{x:T,y:N,z:L},{x:T,y:N,z:D},{x:T,y:z,z:D}],enabled:s.right.visible},{fill:Z(s.right.color).get(),vertexes:[{x:T,y:N,z:L},{x:T,y:z,z:L},{x:b,y:O,z:0},{x:b,y:k,z:0}],enabled:s.right.visible&&!s.front.visible},{fill:Z(s.right.color).get(),vertexes:[{x:T,y:z,z:D},{x:T,y:N,z:D},{x:b,y:k,z:d},{x:b,y:O,z:d}],enabled:s.right.visible&&!s.back.visible}]}),o.frameShapes.back[j]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:s.back.frontFacing?-1e3:1e3,faces:[{fill:Z(s.back.color).brighten(.1).get(),vertexes:[{x:T,y:z,z:D},{x,y:z,z:D},{x:h,y:O,z:d},{x:b,y:O,z:d}],enabled:s.back.visible&&!s.bottom.visible},{fill:Z(s.back.color).brighten(.1).get(),vertexes:[{x,y:N,z:D},{x:T,y:N,z:D},{x:b,y:k,z:d},{x:h,y:k,z:d}],enabled:s.back.visible&&!s.top.visible},{fill:Z(s.back.color).brighten(-.1).get(),vertexes:[{x,y:z,z:D},{x,y:N,z:D},{x:h,y:k,z:d},{x:h,y:O,z:d}],enabled:s.back.visible&&!s.left.visible},{fill:Z(s.back.color).brighten(-.1).get(),vertexes:[{x:T,y:N,z:D},{x:T,y:z,z:D},{x:b,y:O,z:d},{x:b,y:k,z:d}],enabled:s.back.visible&&!s.right.visible},{fill:Z(s.back.color).get(),vertexes:[{x:h,y:k,z:d},{x:b,y:k,z:d},{x:b,y:O,z:d},{x:h,y:O,z:d}],enabled:s.back.visible},{fill:Z(s.back.color).get(),vertexes:[{x,y:z,z:D},{x:T,y:z,z:D},{x:T,y:N,z:D},{x,y:N,z:D}],enabled:s.back.visible}]}),o.frameShapes.front[j]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:s.front.frontFacing?-1e3:1e3,faces:[{fill:Z(s.front.color).brighten(.1).get(),vertexes:[{x,y:z,z:L},{x:T,y:z,z:L},{x:b,y:O,z:0},{x:h,y:O,z:0}],enabled:s.front.visible&&!s.bottom.visible},{fill:Z(s.front.color).brighten(.1).get(),vertexes:[{x:T,y:N,z:L},{x,y:N,z:L},{x:h,y:k,z:0},{x:b,y:k,z:0}],enabled:s.front.visible&&!s.top.visible},{fill:Z(s.front.color).brighten(-.1).get(),vertexes:[{x,y:N,z:L},{x,y:z,z:L},{x:h,y:O,z:0},{x:h,y:k,z:0}],enabled:s.front.visible&&!s.left.visible},{fill:Z(s.front.color).brighten(-.1).get(),vertexes:[{x:T,y:z,z:L},{x:T,y:N,z:L},{x:b,y:k,z:0},{x:b,y:O,z:0}],enabled:s.front.visible&&!s.right.visible},{fill:Z(s.front.color).get(),vertexes:[{x:b,y:k,z:0},{x:h,y:k,z:0},{x:h,y:O,z:0},{x:b,y:O,z:0}],enabled:s.front.visible},{fill:Z(s.front.color).get(),vertexes:[{x:T,y:z,z:L},{x,y:z,z:L},{x,y:N,z:L},{x:T,y:N,z:L}],enabled:s.front.visible}]})}}function w(){this.styledMode&&[{name:"darker",slope:.6},{name:"brighter",slope:1.4}].forEach(function(o){this.renderer.definition({tagName:"filter",attributes:{id:"highcharts-"+o.name},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncG",attributes:{type:"linear",slope:o.slope}},{tagName:"feFuncB",attributes:{type:"linear",slope:o.slope}}]}]})},this)}function M(){var o=this.options;this.is3d()&&(o.series||[]).forEach(function(e){(e.type||o.chart.type||o.chart.defaultSeriesType)==="scatter"&&(e.type="scatter3d")})}function C(){var o=this,e=o.options.chart.options3d;if(o.chart3d&&o.is3d()){e&&(e.alpha=e.alpha%360+(e.alpha>=0?0:360),e.beta=e.beta%360+(e.beta>=0?0:360));var a=o.inverted,s=o.clipBox,h=o.margin,b=a?"x":"y",k=a?"height":"width",O=a?"width":"height";s[a?"y":"x"]=-(h[3]||0),s[b]=-(h[0]||0),s[k]=o.chartWidth+(h[3]||0)+(h[1]||0),s[O]=o.chartHeight+(h[0]||0)+(h[2]||0),o.scale3d=1,e.fitToPlot===!0&&(o.scale3d=o.chart3d.getScale(e.depth)),o.chart3d.frame3d=o.chart3d.get3dFrame()}}function p(){this.is3d()&&(this.isDirtyBox=!0)}function f(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function r(){this.chart3d||(this.chart3d=new m(this))}function l(o){return this.is3d()||o.apply(this,[].slice.call(arguments,1))}function t(o){var e,a=this.series.length;if(this.is3d())for(;a--;)(e=this.series[a]).translate(),e.render();else o.call(this)}function i(o){o.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}g.Composition=m,g.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},g.compose=function(o,e){var a=o.prototype,s=e.prototype;a.is3d=function(){return!!(this.options.chart.options3d&&this.options.chart.options3d.enabled)},a.propsRequireDirtyBox.push("chart.options3d"),a.propsRequireUpdateSeries.push("chart.options3d"),s.matrixSetter=function(){var h;if(this.pos<1&&(A(this.start)||A(this.end))){var b=this.start||[1,0,0,1,0,0],k=this.end||[1,0,0,1,0,0];h=[];for(var O=0;O<6;O++)h.push(this.pos*k[O]+(1-this.pos)*b[O])}else h=this.end;this.elem.attr(this.prop,h,null,!0)},P(!0,V,g.defaultOptions),E(o,"init",r),E(o,"addSeries",u),E(o,"afterDrawChartBox",v),E(o,"afterGetContainer",w),E(o,"afterInit",M),E(o,"afterSetChartSize",C),E(o,"beforeRedraw",p),E(o,"beforeRender",f),c(a,"isInsidePlot",l),c(a,"renderSeries",t),c(a,"setClassName",i)}}($||($={})),$}),et(_,"Core/Axis/ZAxis.js",[_["Core/Axis/Axis.js"],_["Core/Utilities.js"]],function(G,B){var H,U=this&&this.__extends||(H=function(y,c){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},H(y,c)},function(y,c){function g(){this.constructor=y}H(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),$=B.addEvent,Z=B.merge,V=B.pick,F=B.splat,I=[];function E(y){return new P(this,y)}function A(){var y=this,c=this.options.zAxis=F(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],c.forEach(function(g,m){g.index=m,g.isX=!0,y.addZAxis(g).setScale()}))}var P=function(y){function c(g,m){var u=y.call(this,g,m)||this;return u.isZAxis=!0,u}return U(c,y),c.compose=function(g){if(I.indexOf(g)===-1){I.push(g),$(g,"afterGetAxes",A);var m=g.prototype;m.addZAxis=E,m.collectionsWithInit.zAxis=[m.addZAxis],m.collectionsWithUpdate.push("zAxis")}},c.prototype.getSeriesExtremes=function(){var g=this,m=this.chart;this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(u){if(u.visible||!m.options.chart.ignoreHiddenSeries){g.hasVisibleSeries=!0;var v=u.zData;v.length&&(g.dataMin=Math.min(V(g.dataMin,v[0]),Math.min.apply(null,v)),g.dataMax=Math.max(V(g.dataMax,v[0]),Math.max.apply(null,v)))}})},c.prototype.setAxisSize=function(){var g=this.chart;y.prototype.setAxisSize.call(this),this.width=this.len=g.options.chart.options3d&&g.options.chart.options3d.depth||0,this.right=g.chartWidth-this.width-this.left},c.prototype.setOptions=function(g){g=Z({offset:0,lineWidth:0},g),this.isZAxis=!0,y.prototype.setOptions.call(this,g),this.coll="zAxis"},c}(G);return P}),et(_,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),et(_,"Core/Axis/Tick3DComposition.js",[_["Core/Utilities.js"]],function(G){var B=G.addEvent,H=G.extend,U=G.wrap,$=[];function Z(F){var I=this.axis.axis3D;I&&H(F.pos,I.fix3dPosition(F.pos))}function V(F){var I=this.axis.axis3D,E=F.apply(this,[].slice.call(arguments,1));if(I){var A=E[0],P=E[1];if(A[0]==="M"&&P[0]==="L"){var y=[I.fix3dPosition({x:A[1],y:A[2],z:0}),I.fix3dPosition({x:P[1],y:P[2],z:0})];return this.axis.chart.renderer.toLineSegments(y)}}return E}return{compose:function(F){$.indexOf(F)===-1&&($.push(F),B(F,"afterGetLabelPosition",Z),U(F.prototype,"getMarkPath",V))}}}),et(_,"Core/Axis/Axis3DComposition.js",[_["Core/Axis/Axis3DDefaults.js"],_["Core/Globals.js"],_["Core/Math3D.js"],_["Core/Axis/Tick3DComposition.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=B.deg2rad,V=H.perspective,F=H.perspective3D,I=H.shapeArea,E=$.addEvent,A=$.merge,P=$.pick,y=$.wrap,c=[];function g(){var r=this,l=r.chart,t=r.options;l.is3d&&l.is3d()&&r.coll!=="colorAxis"&&(t.tickWidth=P(t.tickWidth,0),t.gridLineWidth=P(t.gridLineWidth,1))}function m(r){var l=this;l.chart.is3d()&&l.coll!=="colorAxis"&&r.point&&(r.point.crosshairPos=l.isXAxis?r.point.axisXpos:l.len-r.point.axisYpos)}function u(){var r=this;r.axis3D||(r.axis3D=new f(r))}function v(r){var l=this;return l.chart.is3d()&&l.coll!=="colorAxis"?[]:r.apply(l,[].slice.call(arguments,1))}function w(r){if(!this.chart.is3d()||this.coll==="colorAxis")return r.apply(this,[].slice.call(arguments,1));var l=arguments,t=l[1],i=l[2],o=[],e=this.getPlotLinePath({value:t}),a=this.getPlotLinePath({value:i});if(e&&a)for(var s=0;s<e.length;s+=2){var h=e[s],b=e[s+1],k=a[s],O=a[s+1];h[0]==="M"&&b[0]==="L"&&k[0]==="M"&&O[0]==="L"&&o.push(h,b,O,["L",k[1],k[2]],["Z"])}return o}function M(r){var l=this,t=l.axis3D,i=l.chart,o=r.apply(l,[].slice.call(arguments,1));if(l.coll==="colorAxis"||!i.chart3d||!i.is3d()||o===null)return o;var e,a=i.options.chart.options3d,s=l.isZAxis?i.plotWidth:a.depth,h=i.chart3d.frame3d,b=o[0],k=o[1],O=[];return b[0]==="M"&&k[0]==="L"&&(e=[t.swapZ({x:b[1],y:b[2],z:0}),t.swapZ({x:b[1],y:b[2],z:s}),t.swapZ({x:k[1],y:k[2],z:0}),t.swapZ({x:k[1],y:k[2],z:s})],this.horiz?this.isZAxis?(h.left.visible&&O.push(e[0],e[2]),h.right.visible&&O.push(e[1],e[3]),h.top.visible&&O.push(e[0],e[1]),h.bottom.visible&&O.push(e[2],e[3])):(h.front.visible&&O.push(e[0],e[2]),h.back.visible&&O.push(e[1],e[3]),h.top.visible&&O.push(e[0],e[1]),h.bottom.visible&&O.push(e[2],e[3])):(h.front.visible&&O.push(e[0],e[2]),h.back.visible&&O.push(e[1],e[3]),h.left.visible&&O.push(e[0],e[1]),h.right.visible&&O.push(e[2],e[3])),O=V(O,this.chart,!1)),i.renderer.toLineSegments(O)}function C(r,l){var t=this,i=t.chart,o=t.ticks,e=t.gridGroup;if(t.categories&&i.frameShapes&&i.is3d()&&e&&l&&l.label){var a=e.element.childNodes[0].getBBox(),s=i.frameShapes.left.getBBox(),h=i.options.chart.options3d,b={x:i.plotWidth/2,y:i.plotHeight/2,z:h.depth/2,vd:P(h.depth,1)*P(h.viewDistance,0)},k=l.pos,O=o[k-1],d=o[k+1],x=void 0,T=void 0,N=void 0;return k!==0&&O&&O.label&&O.label.xy&&(T=F({x:O.label.xy.x,y:O.label.xy.y,z:null},b,b.vd)),d&&d.label&&d.label.xy&&(N=F({x:d.label.xy.x,y:d.label.xy.y,z:null},b,b.vd)),x={x:l.label.xy.x,y:l.label.xy.y,z:null},x=F(x,b,b.vd),Math.abs(T?x.x-T.x:N?N.x-x.x:a.x-s.x)}return r.apply(t,[].slice.call(arguments,1))}function p(r){var l=r.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(l,!0):l}var f=function(){function r(l){this.axis=l}return r.compose=function(l,t){if(U.compose(t),c.indexOf(l)===-1){c.push(l),A(!0,l.defaultOptions,G),l.keepProps.push("axis3D"),E(l,"init",u),E(l,"afterSetOptions",g),E(l,"drawCrosshair",m);var i=l.prototype;y(i,"getLinePath",v),y(i,"getPlotBandPath",w),y(i,"getPlotLinePath",M),y(i,"getSlotWidth",C),y(i,"getTitlePosition",p)}},r.prototype.fix3dPosition=function(l,t){var i=this.axis,o=i.chart;if(i.coll==="colorAxis"||!o.chart3d||!o.is3d())return l;var e,a=Z*o.options.chart.options3d.alpha,s=Z*o.options.chart.options3d.beta,h=P(t&&i.options.title.position3d,i.options.labels.position3d),b=P(t&&i.options.title.skew3d,i.options.labels.skew3d),k=o.chart3d.frame3d,O=o.plotLeft,d=o.plotWidth+O,x=o.plotTop,T=o.plotHeight+x,N=0,z=0,L={x:0,y:1,z:0},D=!1;if(l=i.axis3D.swapZ({x:l.x,y:l.y,z:0}),i.isZAxis)if(i.opposite){if(k.axes.z.top===null)return{};z=l.y-x,l.x=k.axes.z.top.x,l.y=k.axes.z.top.y,e=k.axes.z.top.xDir,D=!k.top.frontFacing}else{if(k.axes.z.bottom===null)return{};z=l.y-T,l.x=k.axes.z.bottom.x,l.y=k.axes.z.bottom.y,e=k.axes.z.bottom.xDir,D=!k.bottom.frontFacing}else if(i.horiz)if(i.opposite){if(k.axes.x.top===null)return{};z=l.y-x,l.y=k.axes.x.top.y,l.z=k.axes.x.top.z,e=k.axes.x.top.xDir,D=!k.top.frontFacing}else{if(k.axes.x.bottom===null)return{};z=l.y-T,l.y=k.axes.x.bottom.y,l.z=k.axes.x.bottom.z,e=k.axes.x.bottom.xDir,D=!k.bottom.frontFacing}else if(i.opposite){if(k.axes.y.right===null)return{};N=l.x-d,l.x=k.axes.y.right.x,l.z=k.axes.y.right.z,e={x:(e=k.axes.y.right.xDir).z,y:e.y,z:-e.x}}else{if(k.axes.y.left===null)return{};N=l.x-O,l.x=k.axes.y.left.x,l.z=k.axes.y.left.z,e=k.axes.y.left.xDir}if(h!=="chart")if(h==="flap")if(i.horiz){var j=Math.sin(a),Y=Math.cos(a);i.opposite&&(j=-j),D&&(j=-j),L={x:e.z*j,y:Y,z:-e.x*j}}else e={x:Math.cos(s),y:0,z:Math.sin(s)};else if(h==="ortho")if(i.horiz){var X=Math.sin(a),W=Math.cos(a),q={x:Math.sin(s)*W,y:-X,z:-W*Math.cos(s)};L={x:e.y*q.z-e.z*q.y,y:e.z*q.x-e.x*q.z,z:e.x*q.y-e.y*q.x};var tt=1/Math.sqrt(L.x*L.x+L.y*L.y+L.z*L.z);D&&(tt=-tt),L={x:tt*L.x,y:tt*L.y,z:tt*L.z}}else e={x:Math.cos(s),y:0,z:Math.sin(s)};else i.horiz?L={x:Math.sin(s)*Math.sin(a),y:Math.cos(a),z:-Math.cos(s)*Math.sin(a)}:e={x:Math.cos(s),y:0,z:Math.sin(s)};l.x+=N*e.x+z*L.x,l.y+=N*e.y+z*L.y,l.z+=N*e.z+z*L.z;var Q=V([l],i.chart)[0];if(b){I(V([l,{x:l.x+e.x,y:l.y+e.y,z:l.z+e.z},{x:l.x+L.x,y:l.y+L.y,z:l.z+L.z}],i.chart))<0&&(e={x:-e.x,y:-e.y,z:-e.z});var nt=V([{x:l.x,y:l.y,z:l.z},{x:l.x+e.x,y:l.y+e.y,z:l.z+e.z},{x:l.x+L.x,y:l.y+L.y,z:l.z+L.z}],i.chart);Q.matrix=[nt[1].x-nt[0].x,nt[1].y-nt[0].y,nt[2].x-nt[0].x,nt[2].y-nt[0].y,Q.x,Q.y],Q.matrix[4]-=Q.x*Q.matrix[0]+Q.y*Q.matrix[2],Q.matrix[5]-=Q.x*Q.matrix[1]+Q.y*Q.matrix[3]}return Q},r.prototype.swapZ=function(l,t){var i=this.axis;if(i.isZAxis){var o=t?0:i.chart.plotLeft;return{x:o+l.z,y:l.y,z:l.x-o}}return l},r}();return f}),et(_,"Core/Series/Series3D.js",[_["Core/Math3D.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(y,c){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},U(y,c)},function(y,c){function g(){this.constructor=y}U(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),Z=G.perspective,V=H.addEvent,F=H.extend,I=H.merge,E=H.pick,A=H.isNumber,P=function(y){function c(){return y!==null&&y.apply(this,arguments)||this}return $(c,y),c.prototype.translate=function(){y.prototype.translate.apply(this,arguments),this.chart.is3d()&&this.translate3dPoints()},c.prototype.translate3dPoints=function(){var g,m,u,v,w,M=this,C=M.options,p=M.chart,f=E(M.zAxis,p.options.zAxis[0]),r=[],l=[],t=C.stacking?A(C.stack)?C.stack:0:M.index||0;for(M.zPadding=t*(C.depth||0+(C.groupZPadding||1)),w=0;w<M.data.length;w++)g=M.data[w],f&&f.translate?(v=f.logarithmic&&f.val2lin?f.val2lin(g.z):g.z,g.plotZ=f.translate(v),g.isInside=!!g.isInside&&v>=f.min&&v<=f.max):g.plotZ=M.zPadding,g.axisXpos=g.plotX,g.axisYpos=g.plotY,g.axisZpos=g.plotZ,r.push({x:g.plotX,y:g.plotY,z:g.plotZ}),l.push(g.plotX||0);for(M.rawPointsX=l,m=Z(r,p,!0),w=0;w<M.data.length;w++)g=M.data[w],u=m[w],g.plotX=u.x,g.plotY=u.y,g.plotZ=u.z},c.defaultOptions=I(B.defaultOptions),c}(B);return V(B,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),F(B.prototype,{translate3dPoints:P.prototype.translate3dPoints}),P}),et(_,"Series/Area3D/Area3DSeries.js",[_["Core/Math3D.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U=G.perspective,$=B.seriesTypes.line.prototype,Z=H.wrap,V=[];function F(I){var E=this,A=I.apply(E,[].slice.call(arguments,1));if(!E.chart.is3d())return A;var P=$.getGraphPath,y=E.options,c=Math.round(E.yAxis.getThreshold(y.threshold)),g=[];if(E.rawPointsX)for(var m=0;m<E.points.length;m++)g.push({x:E.rawPointsX[m],y:y.stacking?E.points[m].yBottom:c,z:E.zPadding});var u=E.chart.options.chart.options3d;g=U(g,E.chart,!0).map(function(M){return{plotX:M.x,plotY:M.y,plotZ:M.z}}),E.group&&u&&u.depth&&u.beta&&(E.markerGroup&&(E.markerGroup.add(E.group),E.markerGroup.attr({translateX:0,translateY:0})),E.group.attr({zIndex:Math.max(1,u.beta>270||u.beta<90?u.depth-Math.round(E.zPadding||0):Math.round(E.zPadding||0))})),g.reversed=!0;var v=P.call(E,g,!0,!0);if(v[0]&&v[0][0]==="M"&&(v[0]=["L",v[0][1],v[0][2]]),E.areaPath){var w=E.areaPath.splice(0,E.areaPath.length/2).concat(v);w.xMap=E.areaPath.xMap,E.areaPath=w}return A}return{compose:function(I){V.indexOf(I)===-1&&(V.push(I),Z(I.prototype,"getGraphPath",F))}}}),et(_,"Series/Column3D/Column3DComposition.js",[_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Math3D.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V){var F=G.prototype,I=B.svg,E=U.perspective,A=V.addEvent,P=V.pick,y=V.wrap;function c(v){var w=v.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(w.stroke=this.options.edgeColor||w.fill,w["stroke-width"]=P(this.options.edgeWidth,1)),w}function g(v,w,M){var C=this.chart.is3d&&this.chart.is3d();C&&(this.options.inactiveOtherPoints=!0),v.call(this,w,M),C&&(this.options.inactiveOtherPoints=!1)}function m(v){for(var w=[],M=1;M<arguments.length;M++)w[M-1]=arguments[M];return this.series.chart.is3d()?this.graphic&&this.graphic.element.nodeName!=="g":v.apply(this,w)}if(y(F,"translate",function(v){v.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.translate3dShapes()}),y(H.prototype,"justifyDataLabel",function(v){return!arguments[2].outside3dPlot&&v.apply(this,[].slice.call(arguments,1))}),F.translate3dPoints=function(){},F.translate3dShapes=function(){var v,w=this,M=w.chart,C=w.options,p=C.depth,f=(C.stacking?C.stack||0:w.index)*(p+(C.groupZPadding||1)),r=w.borderWidth%2?.5:0;M.inverted&&!w.yAxis.reversed&&(r*=-1),C.grouping!==!1&&(f=0),f+=C.groupZPadding||1,w.data.forEach(function(l){if(l.outside3dPlot=null,l.y!==null){var t,i=l.shapeArgs,o=l.tooltipPos;[["x","width"],["y","height"]].forEach(function(e){if((t=i[e[0]]-r)<0&&(i[e[1]]+=i[e[0]]+r,i[e[0]]=-r,t=0),t+i[e[1]]>w[e[0]+"Axis"].len&&i[e[1]]!==0&&(i[e[1]]=w[e[0]+"Axis"].len-i[e[0]]),i[e[1]]!==0&&(i[e[0]]>=w[e[0]+"Axis"].len||i[e[0]]+i[e[1]]<=r)){for(var a in i)i[a]=a==="y"?-9999:0;l.outside3dPlot=!0}}),l.shapeType==="rect"&&(l.shapeType="cuboid"),i.z=f,i.depth=p,i.insidePlotArea=!0,v={x:i.x+i.width/2,y:i.y,z:f+p/2},M.inverted&&(v.x=i.height,v.y=l.clientX),l.plot3d=E([v],M,!0,!1)[0],o=E([{x:o[0],y:o[1],z:f+p/2}],M,!0,!1)[0],l.tooltipPos=[o.x,o.y]}}),w.z=f},y(F,"animate",function(v){if(this.chart.is3d()){var w=arguments[1],M=this.yAxis,C=this,p=this.yAxis.reversed;I&&(w?C.data.forEach(function(f){f.y!==null&&(f.height=f.shapeArgs.height,f.shapey=f.shapeArgs.y,f.shapeArgs.height=1,p||(f.stackY?f.shapeArgs.y=f.plotY+M.translate(f.stackY):f.shapeArgs.y=f.plotY+(f.negative?-f.height:f.height)))}):(C.data.forEach(function(f){f.y!==null&&(f.shapeArgs.height=f.height,f.shapeArgs.y=f.shapey,f.graphic&&f.graphic[f.outside3dPlot?"attr":"animate"](f.shapeArgs,C.options.animation))}),this.drawDataLabels()))}else v.apply(this,[].slice.call(arguments,1))}),y(F,"plotGroup",function(v,w,M,C,p,f){return w!=="dataLabelsGroup"&&w!=="markerGroup"&&this.chart.is3d()&&(this[w]&&delete this[w],f&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(f)),this[w]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[w].survive=!0,w==="group"&&(arguments[3]="visible"))),v.apply(this,Array.prototype.slice.call(arguments,1))}),y(F,"setVisible",function(v,w){var M=this;M.chart.is3d()&&M.data.forEach(function(C){C.visible=C.options.visible=w=w===void 0?!P(M.visible,C.visible):w,M.options.data[M.data.indexOf(C)]=C.options,C.graphic&&C.graphic.attr({visibility:w?"visible":"hidden"})}),v.apply(this,Array.prototype.slice.call(arguments,1))}),A(G,"afterInit",function(){if(this.chart.is3d()){var v=this.options,w=v.grouping,M=v.stacking,C=this.yAxis.options.reversedStacks,p=0;if(w===void 0||w){var f=function(t,i){var o,e=t.series,a={totalStacks:0},s=1;return e.forEach(function(h){o=P(h.options.stack,i?0:e.length-1-h.index),a[o]?a[o].series.push(h):(a[o]={series:[h],position:s},s++)}),a.totalStacks=s+1,a}(this.chart,M),r=v.stack||0,l=void 0;for(l=0;l<f[r].series.length&&f[r].series[l]!==this;l++);p=10*(f.totalStacks-f[r].position)+(C?l:-l),this.xAxis.reversed||(p=10*f.totalStacks-p)}v.depth=v.depth||25,this.z=this.z||0,v.zIndex=p}}),y(F,"pointAttribs",c),y(F,"setState",g),y(F.pointClass.prototype,"hasNewShapeType",m),$.seriesTypes.columnRange){var u=$.seriesTypes.columnrange.prototype;y(u,"pointAttribs",c),y(u,"setState",g),y(u.pointClass.prototype,"hasNewShapeType",m),u.plotGroup=F.plotGroup,u.setVisible=F.setVisible}return y(H.prototype,"alignDataLabel",function(v,w,M,C,p){var f=this.chart;if(C.outside3dPlot=w.outside3dPlot,f.is3d()&&this.is("column")){var r=this,l=r.options,t=P(C.inside,!!r.options.stacking),i=f.options.chart.options3d,o=w.pointWidth/2||0,e={x:p.x+o,y:p.y,z:r.z+l.depth/2};f.inverted&&(t&&(p.width=0,e.x+=w.shapeArgs.height/2),i.alpha>=90&&i.alpha<=270&&(e.y+=w.shapeArgs.width)),e=E([e],f,!0,!1)[0],p.x=e.x-o,p.y=w.outside3dPlot?-9e9:e.y}v.apply(this,[].slice.call(arguments,1))}),y(Z.prototype,"getStackBox",function(v,w){var M=v.apply(this,[].slice.call(arguments,1)),C=this.axis.chart,p=w.width;if(C.is3d()&&this.base){var f=+this.base.split(",")[0],r=C.series[f],l=C.options.chart.options3d;if(r&&r instanceof $.seriesTypes.column){var t={x:M.x+(C.inverted?M.height:p/2),y:M.y,z:r.options.depth/2};C.inverted&&(M.width=0,l.alpha>=90&&l.alpha<=270&&(t.y+=p)),t=E([t],C,!0,!1)[0],M.x=t.x-p/2,M.y=t.y}}return M}),G}),et(_,"Series/Pie3D/Pie3DPoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,H=this&&this.__extends||(B=function(V,F){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var A in E)E.hasOwnProperty(A)&&(I[A]=E[A])},B(V,F)},function(V,F){function I(){this.constructor=V}B(V,F),V.prototype=F===null?Object.create(F):(I.prototype=F.prototype,new I)}),U=G.seriesTypes.pie.prototype.pointClass,$=U.prototype.haloPath,Z=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.series=void 0,I}return H(F,V),F.prototype.haloPath=function(){return this.series.chart.is3d()?[]:$.apply(this,arguments)},F}(U);return Z}),et(_,"Series/Pie3D/Pie3DSeries.js",[_["Core/Globals.js"],_["Series/Pie3D/Pie3DPoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},$(y,c)},function(y,c){function g(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),V=G.deg2rad,F=G.svg,I=H.seriesTypes.pie,E=U.extend,A=U.pick,P=function(y){function c(){return y!==null&&y.apply(this,arguments)||this}return Z(c,y),c.prototype.addPoint=function(){y.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},c.prototype.animate=function(g){if(this.chart.is3d()){var m=this.options.animation,u=void 0,v=this.center,w=this.group,M=this.markerGroup;F&&(m===!0&&(m={}),g?(w.oldtranslateX=A(w.oldtranslateX,w.translateX),w.oldtranslateY=A(w.oldtranslateY,w.translateY),u={translateX:v[0],translateY:v[1],scaleX:.001,scaleY:.001},w.attr(u),M&&(M.attrSetters=w.attrSetters,M.attr(u))):(u={translateX:w.oldtranslateX,translateY:w.oldtranslateY,scaleX:1,scaleY:1},w.animate(u,m),M&&M.animate(u,m)))}else y.prototype.animate.apply(this,arguments)},c.prototype.drawDataLabels=function(){if(this.chart.is3d()){var g=this.chart.options.chart.options3d;this.data.forEach(function(m){var u=m.shapeArgs,v=u.r,w=(u.alpha||g.alpha)*V,M=(u.beta||g.beta)*V,C=(u.start+u.end)/2,p=m.labelPosition,f=p.connectorPosition,r=-v*(1-Math.cos(w))*Math.sin(C),l=v*(Math.cos(M)-1)*Math.cos(C);[p.natural,f.breakAt,f.touchingSliceAt].forEach(function(t){t.x+=l,t.y+=r})})}y.prototype.drawDataLabels.apply(this,arguments)},c.prototype.pointAttribs=function(g){var m=y.prototype.pointAttribs.apply(this,arguments),u=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(m.stroke=u.edgeColor||g.color||this.color,m["stroke-width"]=A(u.edgeWidth,1)),m},c.prototype.translate=function(){if(y.prototype.translate.apply(this,arguments),this.chart.is3d()){var g=this,m=g.options,u=m.depth||0,v=g.chart.options.chart.options3d,w=v.alpha,M=v.beta,C=m.stacking?(m.stack||0)*u:g._i*u;C+=u/2,m.grouping!==!1&&(C=0),g.data.forEach(function(p){var f,r=p.shapeArgs;p.shapeType="arc3d",r.z=C,r.depth=.75*u,r.alpha=w,r.beta=M,r.center=g.center,f=(r.end+r.start)/2,p.slicedTranslation={translateX:Math.round(Math.cos(f)*m.slicedOffset*Math.cos(w*V)),translateY:Math.round(Math.sin(f)*m.slicedOffset*Math.cos(w*V))}})}},c.prototype.drawTracker=function(){y.prototype.drawTracker.apply(this,arguments),this.chart.is3d()&&this.points.forEach(function(g){g.graphic&&["out","inn","side1","side2"].forEach(function(m){g.graphic&&(g.graphic[m].element.point=g)})})},c}(I);return E(P.prototype,{pointClass:B}),P}),et(_,"Series/Pie3D/Pie3DComposition.js",[_["Series/Pie3D/Pie3DPoint.js"],_["Series/Pie3D/Pie3DSeries.js"],_["Core/Series/SeriesRegistry.js"]],function(G,B,H){H.seriesTypes.pie.prototype.pointClass.prototype.haloPath=G.prototype.haloPath,H.seriesTypes.pie=B}),et(_,"Series/Scatter3D/Scatter3DPoint.js",[_["Series/Scatter/ScatterSeries.js"],_["Core/Utilities.js"]],function(G,B){var H,U=this&&this.__extends||(H=function(V,F){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var A in E)E.hasOwnProperty(A)&&(I[A]=E[A])},H(V,F)},function(V,F){function I(){this.constructor=V}H(V,F),V.prototype=F===null?Object.create(F):(I.prototype=F.prototype,new I)}),$=B.defined,Z=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.options=void 0,I.series=void 0,I}return U(F,V),F.prototype.applyOptions=function(){return V.prototype.applyOptions.apply(this,arguments),$(this.z)||(this.z=0),this},F}(G.prototype.pointClass);return Z}),et(_,"Series/Scatter3D/Scatter3DSeries.js",[_["Core/Math3D.js"],_["Series/Scatter3D/Scatter3DPoint.js"],_["Series/Scatter/ScatterSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z,V=this&&this.__extends||(Z=function(P,y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var m in g)g.hasOwnProperty(m)&&(c[m]=g[m])},Z(P,y)},function(P,y){function c(){this.constructor=P}Z(P,y),P.prototype=y===null?Object.create(y):(c.prototype=y.prototype,new c)}),F=G.pointCameraDistance,I=$.extend,E=$.merge,A=function(P){function y(){var c=P!==null&&P.apply(this,arguments)||this;return c.data=void 0,c.options=void 0,c.points=void 0,c}return V(y,P),y.prototype.pointAttribs=function(c){var g=P.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&c&&(g.zIndex=F(c,this.chart)),g},y.defaultOptions=E(H.defaultOptions,{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}}),y}(H);return I(A.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:B}),U.registerSeriesType("scatter3d",A),A}),et(_,"masters/highcharts-3d.src.js",[_["Core/Globals.js"],_["Core/Renderer/SVG/SVGRenderer3D.js"],_["Core/Chart/Chart3D.js"],_["Core/Axis/ZAxis.js"],_["Core/Axis/Axis3DComposition.js"],_["Series/Area3D/Area3DSeries.js"]],function(G,B,H,U,$,Z){var V=G;B.compose(V.SVGRenderer),H.compose(V.Chart,V.Fx),U.compose(V.Chart),$.compose(V.Axis,V.Tick),Z.compose(V.seriesTypes.area)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},1548:(it,rt,st)=>{st.d(rt,{A:()=>ct});var ht=Function.prototype.toString;const ct=function(pt){if(pt!=null){try{return ht.call(pt)}catch(ft){}try{return pt+""}catch(ft){}}return""}},2060:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Series/Funnel/FunnelSeries.js",[_["Core/Chart/Chart.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(u,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,M){w.__proto__=M}||function(w,M){for(var C in M)M.hasOwnProperty(C)&&(w[C]=M[C])},$(u,v)},function(u,v){function w(){this.constructor=u}$(u,v),u.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),V=B.noop,F=H.series,I=H.seriesTypes.pie,E=U.addEvent,A=U.extend,P=U.fireEvent,y=U.isArray,c=U.merge,g=U.pick,m=function(u){function v(){var w=u!==null&&u.apply(this,arguments)||this;return w.data=void 0,w.options=void 0,w.points=void 0,w}return Z(v,u),v.prototype.alignDataLabel=function(w,M,C,p,f){var r=w.series,l=r.options.reversed,t=w.dlBox||w.shapeArgs,i=C.align,o=C.verticalAlign,e=((r.options||{}).dataLabels||{}).inside,a=r.center[1],s=l?2*a-w.plotY:w.plotY,h=r.getWidthAt(s-t.height/2+M.height),b=o==="middle"?(t.topWidth-t.bottomWidth)/4:(h-t.bottomWidth)/2,k=t.y,O=t.x,d=g(M.height,M.getBBox().height);o==="middle"?k=t.y-t.height/2+d/2:o==="top"&&(k=t.y-t.height+d+C.padding),(o==="top"&&!l||o==="bottom"&&l||o==="middle")&&(i==="right"?O=t.x-C.padding+b:i==="left"&&(O=t.x+C.padding-b)),p={x:O,y:l?k-t.height:k,width:t.bottomWidth,height:t.height},C.verticalAlign="bottom",e&&!w.visible||F.prototype.alignDataLabel.call(this,w,M,C,p,f),e&&(!w.visible&&w.dataLabel&&(w.dataLabel.placed=!1),w.contrastColor&&M.css({color:w.contrastColor}))},v.prototype.drawDataLabels=function(){var w,M,C,p,f,r=this,l=r.data,t=r.options.dataLabels.distance,i=l.length;for(r.center[2]-=2*t;i--;)M=(w=(C=l[i]).half)?1:-1,f=C.plotY,C.labelDistance=g(C.options.dataLabels&&C.options.dataLabels.distance,t),r.maxLabelDistance=Math.max(C.labelDistance,r.maxLabelDistance||0),p=r.getX(f,w,C),C.labelPosition={natural:{x:0,y:f},final:{},alignment:w?"right":"left",connectorPosition:{breakAt:{x:p+(C.labelDistance-5)*M,y:f},touchingSliceAt:{x:p+C.labelDistance*M,y:f}}};H.seriesTypes[r.options.dataLabels.inside?"column":"pie"].prototype.drawDataLabels.call(this)},v.prototype.translate=function(){var w,M,C,p,f,r,l,t,i,o,e=0,a=this,s=a.chart,h=a.options,b=h.reversed,k=h.ignoreHiddenPoint,O=s.plotWidth,d=s.plotHeight,x=0,T=h.center,N=tt(T[0],O),z=tt(T[1],d),L=tt(h.width,O),D=tt(h.height,d),j=tt(h.neckWidth,O),Y=tt(h.neckHeight,d),X=z-D/2+D-Y,W=a.data,q=h.dataLabels.position==="left"?1:0;function tt(Q,nt){return/%$/.test(Q)?nt*parseInt(Q,10)/100:parseInt(Q,10)}a.getWidthAt=function(Q){return Q>X||D===Y?j:j+(L-j)*(1-(Q-(z-D/2))/(D-Y))},a.getX=function(Q,nt,lt){return N+(nt?-1:1)*(a.getWidthAt(b?2*z-Q:Q)/2+lt.labelDistance)},a.center=[N,z,D],a.centerX=N,W.forEach(function(Q){k&&Q.visible===!1||(e+=Q.y)}),W.forEach(function(Q){o=null,C=e?Q.y/e:0,t=(f=z-D/2+x*D)+C*D,w=a.getWidthAt(f),r=(p=N-w/2)+w,w=a.getWidthAt(t),i=(l=N-w/2)+w,f>X?(p=l=N-j/2,r=i=N+j/2):t>X&&(o=t,w=a.getWidthAt(X),i=(l=N-w/2)+w,t=X),b&&(f=2*z-f,t=2*z-t,o!==null&&(o=2*z-o)),M=[["M",p,f],["L",r,f],["L",i,t]],o!==null&&M.push(["L",i,o],["L",l,o]),M.push(["L",l,t],["Z"]),Q.shapeType="path",Q.shapeArgs={d:M},Q.percentage=100*C,Q.plotX=N,Q.plotY=(f+(o||t))/2,Q.tooltipPos=[N,Q.plotY],Q.dlBox={x:l,y:f,topWidth:r-p,bottomWidth:i-l,height:Math.abs(g(o,t)-f),width:NaN},Q.slice=V,Q.half=q,k&&Q.visible===!1||(x+=C)}),P(a,"afterTranslate")},v.prototype.sortByAngle=function(w){w.sort(function(M,C){return M.plotY-C.plotY})},v.defaultOptions=c(I.defaultOptions,{animation:!1,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1,verticalAlign:"middle"},states:{select:{color:"#cccccc",borderColor:"#000000"}}}),v}(I);return A(m.prototype,{animate:V}),E(G,"afterHideAllOverlappingLabels",function(){this.series.forEach(function(u){var v=u.options&&u.options.dataLabels;y(v)&&(v=v[0]),u.is("pie")&&u.placeDataLabels&&v&&!v.inside&&u.placeDataLabels()})}),H.registerSeriesType("funnel",m),m}),et(_,"Series/Pyramid/PyramidSeries.js",[_["Series/Funnel/FunnelSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(F,I){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])},U(F,I)},function(F,I){function E(){this.constructor=F}U(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=H.merge,V=function(F){function I(){var E=F!==null&&F.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E}return $(I,F),I.defaultOptions=Z(G.defaultOptions,{neckWidth:"0%",neckHeight:"0%",reversed:!0}),I}(G);return B.registerSeriesType("pyramid",V),V}),et(_,"masters/modules/funnel.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},2281:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>we});var ht=st(6096),ct=st(5436),pt=st(3269);function ft(Ot){var Ft=this.__data__=new ht.A(Ot);this.size=Ft.size}ft.prototype.clear=function(){this.__data__=new ht.A,this.size=0},ft.prototype.delete=function(Ot){var Ft=this.__data__,Zt=Ft.delete(Ot);return this.size=Ft.size,Zt},ft.prototype.get=function(Ot){return this.__data__.get(Ot)},ft.prototype.has=function(Ot){return this.__data__.has(Ot)},ft.prototype.set=function(Ot,Ft){var Zt=this.__data__;if(Zt instanceof ht.A){var qt=Zt.__data__;if(!ct.A||qt.length<199)return qt.push([Ot,Ft]),this.size=++Zt.size,this;Zt=this.__data__=new pt.A(qt)}return Zt.set(Ot,Ft),this.size=Zt.size,this};const _=ft;var et=st(6124);st(9465);var G=st(4044),B=st(7313);const H=function(Ot){return(0,B.A)(Ot)&&(0,G.A)(Ot)=="[object Arguments]"};var U=Object.prototype,$=U.hasOwnProperty,Z=U.propertyIsEnumerable;const V=H(function(){return arguments}())?H:function(Ot){return(0,B.A)(Ot)&&$.call(Ot,"callee")&&!Z.call(Ot,"callee")};var F=st(6956),I=st(9600),E=S&&!S.nodeType&&S,A=E&&!0&&n&&!n.nodeType&&n,P=A&&A.exports===E?I.A.Buffer:void 0;const y=(P?P.isBuffer:void 0)||function(){return!1};var c=st(5378);const g=function(Ot){return typeof Ot=="number"&&Ot>-1&&Ot%1==0&&Ot<=9007199254740991};var m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m["[object Arguments]"]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m["[object Map]"]=m["[object Number]"]=m["[object Object]"]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;const u=function(Ot){return function(Ft){return Ot(Ft)}};var v=st(6713),w=S&&!S.nodeType&&S,M=w&&!0&&n&&!n.nodeType&&n,C=M&&M.exports===w&&v.A.process;const p=function(){try{return M&&M.require&&M.require("util").types||C&&C.binding&&C.binding("util")}catch(Ot){}}();var f=p&&p.isTypedArray;const r=f?u(f):function(Ot){return(0,B.A)(Ot)&&g(Ot.length)&&!!m[(0,G.A)(Ot)]};var l=Object.prototype.hasOwnProperty;const t=function(Ot,Ft){var Zt=(0,F.A)(Ot),qt=!Zt&&V(Ot),pe=!Zt&&!qt&&y(Ot),de=!Zt&&!qt&&!pe&&r(Ot),ce=Zt||qt||pe||de,ne=ce?function(ti,Fe){for(var yi=-1,Ge=Array(ti);++yi<ti;)Ge[yi]=Fe(yi);return Ge}(Ot.length,String):[],Ti=ne.length;for(var xe in Ot)!l.call(Ot,xe)||ce&&(xe=="length"||pe&&(xe=="offset"||xe=="parent")||de&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||(0,c.A)(xe,Ti))||ne.push(xe);return ne};var i=Object.prototype;const o=function(Ot){var Ft=Ot&&Ot.constructor;return Ot===(typeof Ft=="function"&&Ft.prototype||i)},e=function(Ot,Ft){return function(Zt){return Ot(Ft(Zt))}},a=e(Object.keys,Object);var s=Object.prototype.hasOwnProperty,h=st(405);const b=function(Ot){return Ot!=null&&g(Ot.length)&&!(0,h.A)(Ot)},k=function(Ot){return b(Ot)?t(Ot):function(Ft){if(!o(Ft))return a(Ft);var Zt=[];for(var qt in Object(Ft))s.call(Ft,qt)&&qt!="constructor"&&Zt.push(qt);return Zt}(Ot)};var O=st(7942);const d=function(){return[]};var x=Object.prototype.propertyIsEnumerable,T=Object.getOwnPropertySymbols;const N=T?function(Ot){return Ot==null?[]:(Ot=Object(Ot),function(Ft,Zt){for(var qt=-1,pe=Ft==null?0:Ft.length,de=0,ce=[];++qt<pe;){var ne=Ft[qt];Zt(ne,qt,Ft)&&(ce[de++]=ne)}return ce}(T(Ot),function(Ft){return x.call(Ot,Ft)}))}:d,z=function(Ot,Ft){for(var Zt=-1,qt=Ft.length,pe=Ot.length;++Zt<qt;)Ot[pe+Zt]=Ft[Zt];return Ot},L=e(Object.getPrototypeOf,Object),D=function(Ot,Ft,Zt){var qt=Ft(Ot);return(0,F.A)(Ot)?qt:z(qt,Zt(Ot))},j=function(Ot){return D(Ot,k,N)};var Y=st(123);const X=(0,Y.A)(I.A,"DataView"),W=(0,Y.A)(I.A,"Promise"),q=(0,Y.A)(I.A,"Set"),tt=(0,Y.A)(I.A,"WeakMap");var Q=st(1548),nt="[object Map]",lt="[object Promise]",gt="[object Set]",mt="[object WeakMap]",bt="[object DataView]",yt=(0,Q.A)(X),dt=(0,Q.A)(ct.A),ot=(0,Q.A)(W),at=(0,Q.A)(q),ut=(0,Q.A)(tt),vt=G.A;(X&&vt(new X(new ArrayBuffer(1)))!=bt||ct.A&&vt(new ct.A)!=nt||W&&vt(W.resolve())!=lt||q&&vt(new q)!=gt||tt&&vt(new tt)!=mt)&&(vt=function(Ot){var Ft=(0,G.A)(Ot),Zt=Ft=="[object Object]"?Ot.constructor:void 0,qt=Zt?(0,Q.A)(Zt):"";if(qt)switch(qt){case yt:return bt;case dt:return nt;case ot:return lt;case at:return gt;case ut:return mt}return Ft});const Ct=vt;var xt=Object.prototype.hasOwnProperty;const wt=I.A.Uint8Array,Mt=function(Ot){var Ft=new Ot.constructor(Ot.byteLength);return new wt(Ft).set(new wt(Ot)),Ft};var At=/\w*$/,Tt=st(3516),Et=Tt.A?Tt.A.prototype:void 0,Pt=Et?Et.valueOf:void 0;const Dt=function(Ot,Ft,Zt){var qt,pe,de,ce=Ot.constructor;switch(Ft){case"[object ArrayBuffer]":return Mt(Ot);case"[object Boolean]":case"[object Date]":return new ce(+Ot);case"[object DataView]":return function(ne,Ti){var xe=Mt(ne.buffer);return new ne.constructor(xe,ne.byteOffset,ne.byteLength)}(Ot);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(ne,Ti){var xe=Mt(ne.buffer);return new ne.constructor(xe,ne.byteOffset,ne.length)}(Ot);case"[object Map]":case"[object Set]":return new ce;case"[object Number]":case"[object String]":return new ce(Ot);case"[object RegExp]":return(de=new(pe=Ot).constructor(pe.source,At.exec(pe))).lastIndex=pe.lastIndex,de;case"[object Symbol]":return qt=Ot,Pt?Object(Pt.call(qt)):{}}};var It=Object.create;const jt=function(){function Ot(){}return function(Ft){if(!(0,O.A)(Ft))return{};if(It)return It(Ft);Ot.prototype=Ft;var Zt=new Ot;return Ot.prototype=void 0,Zt}}();var _t=p&&p.isMap;const Rt=_t?u(_t):function(Ot){return(0,B.A)(Ot)&&Ct(Ot)=="[object Map]"};var Jt=p&&p.isSet;const zt=Jt?u(Jt):function(Ot){return(0,B.A)(Ot)&&Ct(Ot)=="[object Set]"};var Vt="[object Arguments]",te="[object Function]",be="[object Object]",$t={};$t[Vt]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object DataView]"]=$t["[object Boolean]"]=$t["[object Date]"]=$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Map]"]=$t["[object Number]"]=$t[be]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object Symbol]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Error]"]=$t[te]=$t["[object WeakMap]"]=!1;const ie=function Ot(Ft,Zt,qt,pe,de,ce){var ne,Ti=1&Zt;if(ne!==void 0)return ne;if(!(0,O.A)(Ft))return Ft;var xe=(0,F.A)(Ft);if(xe)ne=function(ae){var Ne=ae.length,si=new ae.constructor(Ne);return Ne&&typeof ae[0]=="string"&&xt.call(ae,"index")&&(si.index=ae.index,si.input=ae.input),si}(Ft);else{var ti=Ct(Ft),Fe=ti==te||ti=="[object GeneratorFunction]";if(y(Ft))return function(ae,Ne){return ae.slice()}(Ft);if(ti==be||ti==Vt||Fe&&!de)ne=Fe?{}:function(ae){return typeof ae.constructor!="function"||o(ae)?{}:jt(L(ae))}(Ft);else{if(!$t[ti])return de?Ft:{};ne=Dt(Ft,ti)}}ce||(ce=new _);var yi=ce.get(Ft);if(yi)return yi;ce.set(Ft,ne),zt(Ft)?Ft.forEach(function(ae){ne.add(Ot(ae,Zt,qt,ae,Ft,ce))}):Rt(Ft)&&Ft.forEach(function(ae,Ne){ne.set(Ne,Ot(ae,Zt,qt,Ne,Ft,ce))});var Ge=xe?void 0:j(Ft);return function(ae,Ne){for(var si=-1,Ho=ae==null?0:ae.length;++si<Ho&&Ne(ae[si],si,ae)!==!1;);}(Ge||Ft,function(ae,Ne){Ge&&(ae=Ft[Ne=ae]),(0,et.A)(ne,Ne,Ot(ae,Zt,qt,Ne,Ft,ce))}),ne},we=function(Ot){return ie(Ot,5)}},2382:function(it,rt,st){var ht=this&&this.__read||function(G,B){var H=typeof Symbol=="function"&&G[Symbol.iterator];if(!H)return G;var U,$,Z=H.call(G),V=[];try{for(;(B===void 0||B-- >0)&&!(U=Z.next()).done;)V.push(U.value)}catch(F){$={error:F}}finally{try{U&&!U.done&&(H=Z.return)&&H.call(Z)}finally{if($)throw $.error}}return V},ct=this&&this.__spreadArray||function(G,B,H){if(H||arguments.length===2)for(var U,$=0,Z=B.length;$<Z;$++)!U&&$ in B||(U||(U=Array.prototype.slice.call(B,0,$)),U[$]=B[$]);return G.concat(U||Array.prototype.slice.call(B))},pt=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(rt,"__esModule",{value:!0});var ft=pt(st(8552)),_=pt(st(4501)),et=st(622);rt.default=function(G){var B,H=G.fireEvent,U=new Map,$=!1;function Z(A,P){for(var y=[A,P],c=0;c<y.length;c++)for(var g=y[c],m=0;m<g.length;m++){for(var u=(m+1)%g.length,v=g[m],w=g[u],M={x:w.y-v.y,y:v.x-w.x},C=void 0,p=void 0,f=0;f<A.length;f++){var r=M.x*A[f].x+M.y*A[f].y;((0,_.default)(C)||r<C)&&(C=r),((0,_.default)(p)||r>p)&&(p=r)}var l=void 0,t=void 0;for(f=0;f<P.length;f++)r=M.x*P[f].x+M.y*P[f].y,((0,_.default)(l)||r<l)&&(l=r),((0,_.default)(t)||r>t)&&(t=r);if(p<l||t<C)return!1}return!0}function V(A,P){return(A.yAxis||[]).some(function(y){return!(!y.options.stackLabels||!y.stacking.stacks)&&Object.values(y.stacking.stacks||[]).some(function(c){return Object.values(c).some(function(g){return g.label===P})})})}function F(A){return A.series&&A.series.some(function(P){return(0,ft.default)(P,"xAxis.axisLine.animating")})}function I(A,P,y){return y&&!(0,_.default)(y.totalsRank)&&V(A,P)?y.totalsRank:P.labelrank||0}function E(){$||($=!0,U.forEach(function(A,P){if(!F(P)){if(A.length){var y=A[A.length-1];P.hideOverlappingLabels(y.labels,y.options)}U.delete(P)}}),U.size&&(clearTimeout(B),B=setTimeout(E,100)),$=!1)}G.wrap(G.Axis.prototype,"addPlotBandOrLine",function(A){var P=A.apply(this,[].slice.call(arguments,1));return(0,ft.default)(P,"options.isPlotBand")===!0&&(this.sisensePlotBands||(this.sisensePlotBands=[]),this.sisensePlotBands.push(P)),P}),G.wrap(G.PlotLineOrBand.prototype,"render",function(A){var P=this,y=P.axis,c=P.options,g=c.to,m=c.from,u=(0,et.defined)(m)&&(0,et.defined)(g),v=G.pick(c.zIndex,0),w=y.chart.renderer,M=u?"bands":"lines",C={zIndex:v};M+="-labels-"+v;var p=y.plotLinesAndBandsGroups[M];return p||(C.translateX=0,C.translateY=0,y.plotLinesAndBandsGroups[M]=p=w.g("plot-"+M).attr(C).add()),A.apply(this,[].slice.call(arguments,1))}),G.PlotLineOrBand.prototype.renderLabel=function(A,P,y,c){var g=this,m=g.axis,u=m.chart.renderer,v=g.label,w=(y?"bands":"lines")+"-labels-"+c,M=m.plotLinesAndBandsGroups[w];v||(g.label=v=u.text(this.getLabelText(A),0,0,A.useHTML).attr({align:A.textAlign||A.align,rotation:A.rotation,class:"highcharts-plot-"+(y?"band":"line")+"-label "+(A.className||""),zIndex:c}).add(M),m.chart.styledMode||v.css(G.merge({textOverflow:"ellipsis"},A.style)));var C=P.xBounds||[P[0][1],P[1][1],y?P[2][1]:P[0][1]],p=P.yBounds||[P[0][2],P[1][2],y?P[2][2]:P[0][2]],f=(0,et.arrayMin)(C),r=(0,et.arrayMin)(p);if(v.align(A,!1,{x:f,y:r,width:(0,et.arrayMax)(C)-f,height:(0,et.arrayMax)(p)-r}),!(v.styles.width&&v.styles.width!=="auto"||v.alignValue&&v.alignValue!=="left")){var l=A.clip?m.width:m.chart.chartWidth;v.css({width:(v.rotation===90?m.height-(v.alignAttr.y-m.top):l-(v.alignAttr.x-m.left))+"px"})}v.show(!0)},G.addEvent(G.Chart.prototype,"render",function(){var A=[];(this.xAxis||[]).forEach(function(P){P.plotLinesAndBands&&P.plotLinesAndBands.forEach(function(y){y.label&&y.label.visibility!=="hidden"&&(y.label.isSerieLabel=!0,A.push(y.label))})}),A.length>0&&this.hideOverlappingLabels(A)}),G.Chart.prototype.hideOverlappingLabels=function(A,P){var y=this;P===void 0&&(P={});var c=this;if(F(c))return function(t,i,o){U.has(t)||U.set(t,[]),U.get(t).push({labels:i,options:o}),E()}(c,ct([],ht(A),!1),P);E(),(A=A.filter(function(t){var i=t==null?void 0:t.element,o=(t==null?void 0:t.className)==="stack-labels",e=(t==null?void 0:t.visibility)!=="hidden"||o&&(t==null?void 0:t.placed);return i&&(t==null||t.opacitySetter(0,"opacity",t.element),t==null||t.visibilitySetter("hidden","visibility",t.element)),i&&e})).forEach(function(t){t.oldOpacity=t.opacity,t.newOpacity=1,t.polygon=function(i){var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=i.element,a=e.transform.baseVal.consolidate().matrix,s=e.getBBox();function h(b,k){var O=o.createSVGPoint();O.x=b,O.y=k;var d=O.matrixTransform(a);return{x:d.x,y:d.y}}return[h(s.x,s.y),h(s.x,s.y+s.height),h(s.x+s.width,s.y+s.height),h(s.x+s.width,s.y)]}(t)}),A.sort(function(t,i){return I(c,i,P)-I(c,t,P)});var g=this.plotBackground&&this.plotBackground.element?this.plotBackground.element.getBoundingClientRect():null,m=g?{x:(0,et.defined)(g.x)?g.x:g.left,y:(0,et.defined)(g.y)?g.y:g.top,width:g.width,height:g.height}:null,u=(0,ft.default)(c,"options.chart.type"),v=u==="area"||u==="areaspline",w=u==="pie";if((v||u==="column"||u==="bar"||u==="line"||u==="bubble"||u==="boxplot")&&m){m.x-=10,m.y-=10,m.width+=20,m.height+=20,v&&!function(t){var i=(t.xAxis||[]).filter(function(o){return(0,ft.default)(o,"options.labels.enabled")});return i.length>1||i.some(function(o){return o.options.plotBands&&o.options.plotBands.length})}(c)&&(m.y-=30,m.height+=30);var M=this.series&&this.series.some(function(t){return(0,ft.default)(t,"options.stacking")==="percent"});A.forEach(function(t){var i,o,e,a;t.newOpacity===0||t.isSerieLabel||M&&V(y,t)||(i=m,o=t.element.getBoundingClientRect(),e=(0,et.defined)(o.x)?o.x:o.left,a=(0,et.defined)(o.y)?o.y:o.top,i.x<=e&&i.y<=a&&i.x+i.width>=e+o.width&&i.y+i.height>=a+o.height)||(t.newOpacity=0)})}for(var C=A.length,p=0;p<C;p++)for(var f=A[p],r=p+1;r<C;++r){var l=A[r];f.polygon&&l.polygon&&f!==l&&f.newOpacity!==0&&l.newOpacity!==0&&Z(f.polygon,l.polygon)&&((I(c,f,P)<I(c,l,P)?f:l).newOpacity=0)}A.forEach(function(t){var i,o;t&&(o=t.newOpacity,w&&!t.placed||(o?t.show(!0):i=function(){t.hide()},t.oldOpacity!==o&&(t.alignAttr?(t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,i),H(c,"afterHideOverlappingLabels")):t.attr({opacity:o})),t.isOld=!0))})},G.wrap(G.SVGElement.prototype,"animate",function(A,P,y,c){var g=this;return g.animating=!0,A.apply(this,[P,y,function(){g.animating=!1,c?c(arguments):y&&y.complete&&y.complete(arguments)}])})}},2397:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(G){for(var B,H=1,U=arguments.length;H<U;H++)for(var $ in B=arguments[H])Object.prototype.hasOwnProperty.call(B,$)&&(G[$]=B[$]);return G},ht.apply(this,arguments)},ct=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(rt,"__esModule",{value:!0});var pt=ct(st(8552)),ft=ct(st(4501)),_=ct(st(2281)),et=st(622);rt.default=function(G){var B=G.merge,H=G.extend,U=G.pick;G.getOptions().plotOptions.boxplot.lineWidth=1,G.getOptions().plotOptions.boxplot.fillOpacity=.6,G.getOptions().plotOptions.boxplot.strokeOpacity=.6,G.getOptions().plotOptions.boxplot.strokeWidth=1,G.getOptions().plotOptions.boxplot.states.select.lineWidth=1,G.getOptions().plotOptions.boxplot.states.select.fillOpacity=.3,G.getOptions().plotOptions.boxplot.states.select.strokeOpacity=.3,G.getOptions().plotOptions.boxplot.states.hover.lineWidth=1,G.getOptions().plotOptions.boxplot.states.hover.fillOpacity=1,G.getOptions().plotOptions.boxplot.states.hover.strokeOpacity=1,G.wrap(G.seriesTypes.boxplot.prototype,"drawPoints",function(){var $,Z,V,F,I,E,A,P,y,c,g,m,u,v,w,M,C,p,f,r,l,t,i,o,e,a,s=this,h=s.points,b=s.options,k=s.chart.renderer,O=s.doQuartiles!==!1,d=parseInt(s.options.whiskerLength,10)/100;h.forEach(function(x){if(g=x.graphic,o=x.shapeArgs,u={},C={},f={},e=x.color||s.color,a=x.innerBoxColor||s.color,x.plotY!==void 0){$={fill:a,"fill-opacity":.75,stroke:s.color,"stroke-opacity":1,"stroke-width":1},x.selected&&($.fill=a,$["fill-opacity"]=.3,$["stroke-opacity"]=.3),V={fill:a,"fill-opacity":$["fill-opacity"],stroke:e,"stroke-width":1};var T={fill:$.fill,"fill-opacity":$["fill-opacity"],"stroke-opacity":$["fill-opacity"]};Z=ht({},$),r=o.width,l=Math.floor(o.x),t=l+r,i=Math.round(r/2),F=Math.floor(O?x.q1Plot:x.lowPlot),I=Math.floor(O?x.q3Plot:x.lowPlot),E=Math.floor(x.highPlot),A=Math.floor(x.lowPlot),u.stroke=x.stemColor||b.stemColor||e,u["stroke-width"]=U(x.stemWidth,b.stemWidth,b.lineWidth),u.dashstyle=x.stemDashStyle||b.stemDashStyle,C.stroke=x.whiskerColor||b.whiskerColor||e,C["stroke-width"]=U(x.whiskerWidth,b.whiskerWidth,b.lineWidth),f.stroke=x.medianColor||b.medianColor||e,f["stroke-width"]=U(x.medianWidth,b.medianWidth,b.lineWidth),f["stroke-linecap"]="round",y=u["stroke-width"]%2/2,m=["M",c=l+i+y,I,"L",c,E,"M",c,F,"L",c,A,"z"],O&&(y=$["stroke-width"]%2/2,c=Math.floor(c)+y,F=Math.floor(F)+y,I=Math.floor(I)+y,v=["M",l+=y,I,"L",l,F,"L",t+=y,F,"L",t,I,"L",l,I,"z"]),d&&(y=C["stroke-width"]%2/2,w=["M",c-i*d,E+=y,"L",c+i*d,E,"M",c-i*d,A+=y,"L",c+i*d,A]),y=2,P=Math.round(x.medianPlot)+y,p=["M",l,P,"L",t,P,"z"],O&&(M=["M",l+.5,P+.5,"L",l+.5,F-.5,"L",t-.5,F-.5,"L",t-.5,P+.5,"L",l+.5,P+.5,"z"]),g?(g.attr(T),x.stem.attr(u),x.stem.animate({d:m}),d&&(x.whiskers.attr(C),x.whiskers.animate({d:w})),O&&(x.box.attr(Z),x.box.attr("stroke",Z.stroke),x.box.animate({d:v}),x.innerBox.animate({d:M}),x.innerBox.attr(V)),x.medianShape.attr(f),x.medianShape.animate({d:p})):(x.graphic=g=k.g().add(s.group).attr(T).attr("name","graphic"),x.stem=k.path(m).attr(u).attr("name","stem").add(g),d&&(x.whiskers=k.path(w).attr(C).attr("name","whiskers").add(g)),O&&(x.box=k.path(v).attr(Z).attr("stroke",Z.stroke).attr("name","box").add(g),x.innerBox=k.path(M).attr(V).attr("name","inner-box").add(g)),x.medianShape=k.path(p).attr(f).attr("name","median").add(g))}})}),G.wrap(G.seriesTypes.boxplot.prototype,"drawDataLabels",function($,Z,V){var F,I,E,A,P=this,y=P.options,c=y.cursor,g=P.points,m=y.dataLabels,u=[{name:"median",enabled:!0,indent:-15,path:function(C,p){return["M",C,p,"L",C-10,p]}},{name:"q3",enabled:!0,indent:-20,path:function(C,p){return["M",C,p,"L",C-2,p+5,C-10,p+5]}},{name:"high",enabled:!0,indent:-20,path:function(C,p){return["M",C,p,"L",C-2,p+5,C-10,p+5]}},{name:"q1",enabled:!0,indent:-7,path:function(C,p){return["M",C,p,"L",C-2,p-5,C-10,p-5]}},{name:"low",enabled:!0,indent:-7,path:function(C,p){return["M",C,p,"L",C-2,p-5,C-10,p-5]}}];if($.call(this,m,V),P.data.length>0){var v=P.barW;P.barW>P.options.maxPointWidth&&(v=P.options.maxPointWidth),this.data.forEach(function(C){C.shapeArgs.x+=(C.shapeArgs.width-v)/2,C.shapeArgs.width=v})}if(m.enabled||P._hasPointLabels){A=P.plotGroup("dataLabelsGroup","data-labels",P.visible?"visible":"hidden",m.zIndex||6);var w=P.chart.plotBox.height;if(P.type==="boxplot"&&w<200)if((0,et.defined)((0,pt.default)(g,"0.dataLabel")))for(var M=0;M<g.length;M++)g[M].dataLabel&&((0,et.defined)((0,pt.default)(g[M].dataLabel,"high"))&&g[M].dataLabel.high.destroy(),(0,et.defined)((0,pt.default)(g[M].dataLabel,"low"))&&g[M].dataLabel.low.destroy());else delete u[2],delete u[4];I=m,g.forEach(function(C){var p,f,r,l,t,i,o=!0,e=C.connector,a=C.shapeArgs,s=Math.floor(a.x)+a.width;F=C.options&&C.options.dataLabels;var h=U(F&&F.enabled,I.enabled),b=C.innerBoxColor||P.color;if(h){m=B(I,F),i=m.rotation,r=C.getLabelConfig();var k=!1,O=(0,_.default)(u);(0,et.defined)(C,"shapeArgs.height")&&C.shapeArgs.height<30&&(delete O[2],delete O[4],C.shapeArgs.height===0&&(k=!0)),(0,et.defined)(C.dataLabel)||(C.dataLabel={},C.dataLabel.element={},C.dataLabel.destroy=function(){G.removeEvent(C.dataLabel,"add"),G.removeEvent(C.dataLabel.element,"mouseenter"),G.removeEvent(C.dataLabel.element,"mouseleave"),O.forEach(function(d){d&&C.dataLabel[d.name]&&(C.dataLabel[d.name].destroy(),C.dataLabelLine[d.name].destroy())}),C.dataLabel=null,C.dataLabelLine=null}),(0,et.defined)(C.dataLabelLine)||(C.dataLabelLine={}),O.forEach(function(d){if(d&&d.enabled){p=C.dataLabel[d.name],f=C.dataLabelLine[d.name],E=m.formatter.call(r,m,d.name),m.style.color=U(m.color,m.style.color,P.color,"black"),m.x=s+12,m.y=C[d.name+"Plot"]-C.highPlot+d.indent;var x=P.visible&&P.chart.isInsidePlot(C.plotX,C.plotY,P.chart.inverted)&&P.chart.isInsidePlot(C.plotX,C.yBottom,P.chart.inverted);if(p)x?((0,et.defined)(E)?(p.attr({text:E}),o=!1):(C.dataLabel[d.name]=p=p.destroy(),e&&(C.connector=e.destroy())),f&&f.destroy()):(C.dataLabel[d.name]=p=p.destroy(),f&&f.destroy());else if((0,et.defined)(E)&&E!=="null"){for(t in l={fill:m.backgroundColor,stroke:m.borderColor,"stroke-width":m.borderWidth,r:m.borderRadius||0,rotation:i,padding:m.padding,zIndex:1})(0,ft.default)(l[t])&&delete l[t];x&&((p=P.chart.renderer[i?"text":"label"](E,0,-999,null,null,null,m.useHTML)).attr(l).css(H(m.style,c&&{cursor:c})).add(A).shadow(m.shadow),p.options={},C.dataLabel[d.name]=p)}if(x){var T={fill:b,"fill-opacity":.75,stroke:P.color,"stroke-opacity":1,"stroke-width":1},N=13;k&&(d.name==="q1"?N=5:d.name==="q3"&&(N=21)),f=C.dataLabelLine[d.name]=C.series.chart.renderer.path(d.path(2,N)).attr({"stroke-width":1,stroke:T.stroke,"stroke-opacity":T["fill-opacity"]||1}).add(p)}p&&P.alignDataLabel(C,p,m,null,o,f,d.name),p.options={},C["dataLabel"+d.name]=p}})}C.dataLabels=u.map(function(d){return C.dataLabel[d.name]}).filter(function(d){return d})}),P.dataLabelCollections=[],u.map(function(C){return C.name}).forEach(function(C){P.dataLabelCollections.push("dataLabel"+C)})}}),G.wrap(G.seriesTypes.boxplot.prototype,"alignDataLabel",function($,Z,V,F,I,E,A,P){var y=this.chart,c=y.inverted,g=Z.dlBox||Z.shapeArgs,m=Z.below||Z.plotY>U(this.translatedThreshold,y.plotSizeY),u=U(F.inside,!!this.options.stacking);g&&((I=B(g)).y+=m?I.height:0,I.height=0),F.align=U(F.align,"left"),F.verticalAlign=U(F.verticalAlign,c||u?"middle":m?"top":"bottom");var v,w=V.getBBox(),M=this.visible&&y.isInsidePlot(Z.plotX,Z.plotY,c)&&y.isInsidePlot(Z.plotX,Z.yBottom,c);if(M){switch(H(F,{width:w.width,height:w.height}),v={align:F.align,x:F.x,y:I.y+F.y+I.height/2},P){case"q3":(0,et.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y+F.height>Z.dataLabel.median.y&&(v.y=Z.dataLabel.median.y-(F.height/2+4));break;case"high":(0,et.defined)(Z,"dataLabel.q3.y")&&Z.dataLabel.q3.y!=999&&v.y+F.height>Z.dataLabel.q3.y&&(v.y=Z.dataLabel.q3.y-(F.height/2+4));break;case"q1":(0,et.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y<Z.dataLabel.median.y+Z.dataLabel.median.height&&(v.y=Z.dataLabel.median.y+(F.height/2+4));break;case"low":(0,et.defined)(Z,"dataLabel.q1.y")&&Z.dataLabel.q1.y!=999&&v.y<Z.dataLabel.q1.y+Z.dataLabel.q1.height?v.y=Z.dataLabel.q1.y+(F.height/2+4):(0,et.defined)(Z,"yBottom")&&v.y+F.height>y.plotHeight&&(v.y=y.plotHeight-F.height)}v.y=isNaN(v.y)?0:v.y,V[E?"attr":"animate"](v)}M||(V.attr({y:-999}),V.placed=!1,A.attr({"stroke-opacity":0}))})}},2805:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct={style:{fontSize:"13px",fontWeight:"normal",color:"#5B6372",fontFamily:ht(st(605)).default.fontFamily},borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#FFFFFF",borderRadius:10,hideDelay:20,shadow:{color:"#CECECE",offsetX:2,offsetY:2,width:5}};rt.default=ct},2807:function(it,rt,st){var ht=this&&this.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(8552)),pt=st(622),ft=ht(st(605)),_=st(6681);rt.default=function(et){var G=et.wrap;G(et.seriesTypes.pie.prototype,"drawDataLabels",function(B,H,U){var $,Z=this,V=Z.chart.renderer;B.call(this,H,U);var F=function(E,A,P,y){var c=V.text(A.slicePercentage+"%",A.newCenterX,A.newCenterY),g={class:"pie-percent-label",zIndex:13,"text-anchor":"middle","font-size":A.fontSize},m={"pointer-events":"none","font-family":(0,ct.default)(y,"options.dataLabels.style.fontFamily",ft.default.fontFamily),"letter-spacing":"-0.05em",color:"white",fontSize:!1},u=c.attr(g).attr(P).add(),v=c.element.getBBox().height/4,w={x:A.newCenterX,y:A.newCenterY+v};E.sisenseLabel=u.css(m).attr(w).add()},I=(0,ct.default)(Z,"chart.options.chart.isHighlightMode");Z.points.forEach(function(E){var A,P;if(E.graphic){if((0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0)if(A=(0,_.getCalculatedPercentageLabelPosition)(E,V),P=(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),A.fontSize>P)if((0,pt.defined)((0,ct.default)(E,"sisenseLabel.element"))){var y={x:A.newCenterX,y:A.newCenterY};I&&(y.translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0),E.sisenseLabel.attr({text:A.slicePercentage+"%","font-size":A.fontSize}).animate(y)}else F(E,A,$,Z),E.sisenseLabel&&I&&((y={x:A.newCenterX,y:A.newCenterY}).translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0,E.sisenseLabel.attr({text:A.slicePercentage+"%","font-size":A.fontSize}).attr(y));else(0,pt.defined)((0,ct.default)(E,"sisenseLabel.element"))&&E.sisenseLabel.destroy()}else(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0&&(A=(0,_.getCalculatedPercentageLabelPosition)(E,V),P=(0,ct.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),A.fontSize>P&&F(E,A,$,Z))})}),G(et.Point.prototype,"destroyElements",function(B,H,U){for(var $,Z=this,V=["decoration","sisenseLabel"],F=V.length;F--;)Z[$=V[F]]&&Z.visible&&Z[$].renderer&&Z[$].destroy();B.call(this,H,U)}),G(et.seriesTypes.pie.prototype.pointClass.prototype,"slice",function(B){B.apply(this,[].slice.call(arguments,1)),(0,ct.default)(this,"sisenseLabel.renderer")&&this.sisenseLabel.animate(this.getTranslate())}),et.seriesTypes.pie.prototype.placeDataLabels=function(){this.points.forEach(function(B){var H,U=B.dataLabel;U&&B.visible&&((H=U._pos)?(U.sideOverflow&&(U._attr.width=U.getBBox().width-U.sideOverflow,U.css({width:U._attr.width+"px",textOverflow:"ellipsis"}),U.shortened=!0),U.attr(U._attr),U[U.moved?"animate":"attr"](H),U.moved=!0):U&&U.attr({y:-9999}))},this)},et.Point.prototype.getClassName=function(){return"highcharts-point"+(this.selected||this.sliced?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}}},3039:function(it,rt,st){var ht=this&&this.__assign||function(){return ht=Object.assign||function(H){for(var U,$=1,Z=arguments.length;$<Z;$++)for(var V in U=arguments[$])Object.prototype.hasOwnProperty.call(U,V)&&(H[V]=U[V]);return H},ht.apply(this,arguments)},ct=this&&this.__read||function(H,U){var $=typeof Symbol=="function"&&H[Symbol.iterator];if(!$)return H;var Z,V,F=$.call(H),I=[];try{for(;(U===void 0||U-- >0)&&!(Z=F.next()).done;)I.push(Z.value)}catch(E){V={error:E}}finally{try{Z&&!Z.done&&($=F.return)&&$.call(F)}finally{if(V)throw V.error}}return I},pt=this&&this.__spreadArray||function(H,U,$){if($||arguments.length===2)for(var Z,V=0,F=U.length;V<F;V++)!Z&&V in U||(Z||(Z=Array.prototype.slice.call(U,0,V)),Z[V]=U[V]);return H.concat(Z||Array.prototype.slice.call(U))},ft=this&&this.__importDefault||function(H){return H&&H.__esModule?H:{default:H}};Object.defineProperty(rt,"__esModule",{value:!0});var _=ft(st(8552)),et=ft(st(4441)),G=ft(st(2281)),B=st(622);rt.default=function(H){var U=H.removeEvent,$=H.defaultOptions.plotOptions,Z=H.fireEvent,V=H.color,F=H.extend,I=H.isNumber,E=H.merge,A=H.pick,P=H.Series,y=H.Point,c=navigator.userAgent,g=/(ipad|iphone|ipod)/g.test(c.toLowerCase()),m=document.documentElement.ontouchstart!==void 0,u=H.defaultOptions,v="highcharts-";H.Axis.prototype.allowNegativeLog=!0,H.addEvent(H.Axis,"afterInit",function(){var w=this.logarithmic;w&&(this.positiveValuesOnly=!1,w.log2lin=function(M){var C=M<0,p=Math.abs(M);p<10&&(p+=(10-p)/10);var f=Math.log(p)/Math.LN10;return C?-f:f},w.lin2log=function(M){var C=M<0,p=Math.pow(10,Math.abs(M));return p<10&&(p=10*(p-1)/9),C?-p:p})}),H.Series.prototype.setPercentStacks=function(){var w,M=this,C=M.stackKey,p=M.yAxis.stacking.stacks,f=new RegExp(/navigator.\d*/gi);w=M.name.match(f)?M.chart.yAxis[1].options.max||100:M.chart.yAxis[M.options.yAxis||0].options.max||100,[C,"-"+C].forEach(function(r){for(var l,t,i,o,e=M.xData.length;e--;)l=M.xData[e],(i=(t=p[r]&&p[r][l])&&t.points[M.index])&&(o=t.total?100/t.total:0,i[0]=(0,B.correctFloat)(i[0]*o*((0,B.defined)(w)?w/100:1)),i[1]=(0,B.correctFloat)(i[1]*o*((0,B.defined)(w)?w/100:1)),M.stackedYData[e]=i[1])})},H.seriesTypes.area.prototype.getStackPoints=function(w){var M=this,C=[],p=[],f=this.xAxis,r=this.yAxis,l=r.stacking.stacks[this.stackKey],t={},i=r.series,o=i.length,e=r.options.reversedStacks?1:-1,a=i.indexOf(M);if(w=w||this.points,this.options.stacking){for(var s=0;s<w.length;s++)w[s].leftNull=w[s].rightNull=void 0,t[w[s].x]=w[s];H.objectEach(l,function(b,k){b.total!==null&&p.push(k)}),p.sort(function(b,k){return b-k});var h=i.map(function(b){return b.visible});p.forEach(function(b,k){var O,d,x=0;if(t[b]&&!t[b].isNull)C.push(t[b]),[-1,1].forEach(function(z){var L=z===1?"rightNull":"leftNull",D=z===1?"rightCliff":"leftCliff",j=l[p[k+z]],Y=0;if(j)for(var X=a;X>=0&&X<o;){var W=i[X].index;(O=j.points[W])||(W===M.index?t[b][L]=!0:h[X]&&(d=l[b].points[W])&&(Y-=d[1]-d[0])),X+=e}t[b][D]=Y});else{for(var T=a;T>=0&&T<o;){var N=i[T].index;if(O=l[b].points[N]){x=O[1];break}T+=e}x=A(x,0),x=r.translate(x,0,1,0,1),C.push({isNull:!0,plotX:f.translate(b,0,0,0,1),x:b,plotY:x,yBottom:x,isDividerNull:t[b]&&t[b].isDividerNull})}})}return C},H.seriesTypes.areaspline.prototype.getStackPoints=H.seriesTypes.area.prototype.getStackPoints,H.seriesTypes.area.prototype.getGraphPath=function(w){var M,C,p,f=H.seriesTypes.line.prototype.getGraphPath,r=this.options,l=r.stacking,t=this.yAxis,i=[],o=[],e=this.index,a=t.stacking.stacks[this.stackKey],s=r.threshold,h=Math.round(t.getThreshold(r.threshold)),b=A(r.connectNulls,l==="percent"),k=function(W,q,tt){var Q,nt,lt=w[W],gt=l&&a[lt.x].points[e],mt=lt[tt+"Null"]||0,bt=lt[tt+"Cliff"]||0,yt=!0;bt||mt?(Q=(mt?gt[0]:gt[1])+bt,nt=gt[0]+bt,yt=!!mt):!l&&w[q]&&w[q].isNull&&(Q=nt=s),Q!==void 0&&(o.push({plotX:M,plotY:Q===null?h:t.getThreshold(Q),isNull:yt,isCliff:!0}),i.push({plotX:M,plotY:nt===null?h:t.getThreshold(nt),doCurve:!1}))};w=w||this.points,l&&(w=this.getStackPoints(w));for(var O=0,d=w.length;O<d;++O)if(l||(w[O].leftCliff=w[O].rightCliff=w[O].leftNull=w[O].rightNull=void 0),C=w[O].isNull,M=A(w[O].rectPlotX,w[O].plotX),p=l?A(w[O].yBottom,h):h,!C||b){var x=w[O-1],T=w[O+1],N=!w[O].isDividerNull&&x&&x.isDividerNull,z=!w[O].isDividerNull&&T&&T.isDividerNull;b&&!N||k(O,O-1,"left"),C&&!l&&b||(o.push(w[O]),i.push({x:O,plotX:M,plotY:p})),b&&!z||k(O,O+1,"right")}var L=f.call(this,o,!0,!0);i.reversed=!0;var D=f.call(this,i,!0,!0),j=D[0];j&&j[0]==="M"&&(D[0]=["L",j[1],j[2]]);var Y=L.concat(D);Y.length&&Y.push(["Z"]);var X=f.call(this,o,!1,b);return Y.xMap=L.xMap,this.areaPath=Y,X},H.seriesTypes.areaspline.prototype.getGraphPath=H.seriesTypes.area.prototype.getGraphPath,H.Series.prototype.pointAttribs=function(w,M){var C,p,f,r,l,t,i=this.options.marker,o=w&&w.options,e=o&&o.marker||{},a=this.color,s=o&&o.color,h=w&&w.color,b=A(e.lineWidth,i.lineWidth),k=w&&w.zone&&w.zone.color;return a=s||k||h||a,f=e.fillColor||i.fillColor||a,r=e.lineColor||i.lineColor||a,l=1,t=1,M&&(C=i.states[M],p=e.states&&e.states[M]||{},b=A(p.lineWidth,C.lineWidth,b+A(p.lineWidthPlus,C.lineWidthPlus,0)),f=p.fillColor||C.fillColor||f,r=p.lineColor||C.lineColor||r,l=p.fillOpacity||C.fillOpacity||1,t=p.fillOpacity||C.fillOpacity||1),{stroke:r,"stroke-width":b,"stroke-opacity":t,"fill-opacity":l,fill:f}},H.Point.prototype.setState=function(w,M){var C,p,f,r=this,l=Math.floor(r.plotX),t=r.plotY,i=r.series,o=i.options.states[w]||{},e=$[i.type].marker&&i.options.marker,a=e&&e.enabled===!1,s=e&&e.states&&e.states[w]||{},h=s.enabled===!1,b=i.stateMarkerGraphic,k=r.marker||{},O=i.chart,d=i.halo,x=e&&i.markerAttribs;if(!((w=w||"")===r.state&&!M||r.selected&&w!=="select"||o.enabled===!1||w&&(h||a&&s.enabled===!1)||w&&k.states&&k.states[w]&&k.states[w].enabled===!1)){if(x&&(p=i.markerAttribs(r,w)),r.graphic){r.state&&r.graphic.removeClass("highcharts-point-"+r.state),w&&r.graphic.addClass("highcharts-point-"+w);var T=r.innerBoxColor||i.color,N={fill:T,"fill-opacity":.8,stroke:i.color,"stroke-opacity":1,"stroke-width":1};if(r.selected){var z=.3;N.fill=T,N["fill-opacity"]=z,N["stroke-opacity"]=z}w==="hover"&&(z=.9,N.fill=T,N["fill-opacity"]=z,N["stroke-opacity"]=z);var L={fill:T,"fill-opacity":1,stroke:V,"stroke-width":1},D=ht({},N),j=i.pointAttribs(r,w);r.graphic.attr(j),r.stem&&r.stem.attr({}),r.whiskers&&r.whiskers.attr({}),r.box&&(r.box.attr(D),r.box.attr("stroke",D.stroke),r.innerBox.attr(L)),r.medianShape&&r.medianShape.attr({}),p&&r.graphic.animate(p,A(O.options.chart.animation,s.animation,e.animation)),b&&b.hide()}else w&&s&&(f=k.symbol||i.symbol,b&&b.currentSymbol!==f&&(b=b.destroy()),b?b[M?"animate":"attr"]({x:p.x,y:p.y}):f&&(i.stateMarkerGraphic=b=O.renderer.symbol(f,p.x,p.y,p.width,p.height).add(i.markerGroup),b.currentSymbol=f),b&&b.attr(i.pointAttribs(r,w))),b&&(b[w&&O.isInsidePlot(l,t,O.inverted)?"show":"hide"](),b.element.point=r);(C=o.halo)&&C.size?(d||(i.halo=d=O.renderer.path().add((r.graphic||b).parentGroup)),d[M?"animate":"attr"]({d:r.haloPath(C.size)}),d.attr({class:"highcharts-halo highcharts-color-"+A(r.colorIndex,i.colorIndex)}),d.point=r,d.attr(F({fill:r.color||i.color,"fill-opacity":C.opacity,zIndex:-1},C.attributes))):d&&d.point&&d.point.haloPath&&d.animate({d:d.point.haloPath(0)}),r.state=w}},H.Point.prototype.applyOptions=function(w,M){var C=this,p=C.series,f=p.options.pointValKey||p.pointValKey;return w=y.prototype.optionsToObject.call(this,w),F(C,w),C.options=C.options?F(C.options,w):w,w.group&&delete C.group,f&&(C.y=C[f]),C.isNull=A(C.isValid&&!C.isValid(),C.x===null||C.y===null||!I(C.y,!0)),C.selected&&(C.state="select"),"name"in C&&M===void 0&&p.xAxis&&p.xAxis.hasNames&&(C.x=p.xAxis.nameToX(C)),C.x===void 0&&p&&(C.x=M===void 0?p.autoIncrement(C):M),C},H.seriesTypes.column.prototype.pointAttribs=function(w,M){var C,p,f,r,l,t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",a=w&&w.color||this.color,s=w[o]||t[o]||this.color||a,h=w[e]||t[e]||this[e]||0,b=t.dashStyle;return w&&this.zones.length&&(a=(r=w.getZone())&&r.color||w.options.color||this.color),M&&(l=(C=t.states[M]).brightness,p=C.fillOpacity,a=C.color||l!==void 0&&V(a).brighten(C.brightness).get()||a,p&&p!==1&&(a=V(a).setOpacity(p).get("rgba")),s=C[o]||s,h=C[e]||h,b=C.dashStyle||b),f={fill:a,stroke:s,"stroke-width":h},t.borderRadius&&(f.r=t.borderRadius),b&&(f.dashstyle=b),f},H.seriesTypes.scatter.prototype.pointAttribs=function(w,M){var C=M?this.options.marker.states[M]:this.options.marker,p=A(C.fillOpacity,.5),f=P.prototype.pointAttribs.call(this,w,M);return p!==1&&(f.fill=V(f.fill).setOpacity(p).get("rgba")),f},H.seriesTypes.bubble.prototype.pointAttribs=function(w,M){var C=M?this.options.marker.states[M]:this.options.marker,p=A(C.fillOpacity,.5),f=P.prototype.pointAttribs.call(this,w,M);return p!==1&&(f.fill=V(f.fill).setOpacity(p).get("rgba")),f},H.seriesTypes.boxplot.prototype.pointAttribs=function(w,M){var C=M?this.options.states[M]:this.options,p=A(C.fillOpacity,.5),f=w&&w.color||this.color,r=w.fillColor||C.fillColor||f;return p!==1&&(r=V(r).setOpacity(p).get("rgba")),{fill:r,stroke:C.lineColor||f,"stroke-width":C.lineWidth||0}},H.Pointer.prototype.onContainerClick=function(w){var M,C,p,f=this.chart,r=f.hoverPoint,l=f.plotLeft,t=f.plotTop,i=f.inverted,o=w.type;w=this.normalize(w),f.cancelClick||(r&&this.inClass(w.target,v+"tracker")?(M=this.chartPosition,C=r.plotX,p=r.plotY,F(r,{pageX:M.left+l+(i?f.plotWidth-p:C),pageY:M.top+t+(i?f.plotHeight-C:p)}),Z(r.series,o,F(w,{point:r})),f.hoverPoint&&r.firePointEvent(o,w)):(F(w,this.getCoordinates(w)),f.isInsidePlot(w.chartX-l,w.chartY-t)&&Z(f,"click",w)))},H.wrap(H.Pointer.prototype,"onContainerMouseLeave",function(w,M){this.selectionMarker&&(this.selectionMarker.destroy(),this.selectionMarker=null),this.chart.mouseIsDown=!1,w.call(this,M)}),H.Pointer.prototype.onContainerTapHold=function(w){var M,C,p,f=this.chart,r=f.hoverPoint,l=f.plotLeft,t=f.plotTop,i=f.inverted,o="contextmenu";(w=this.normalize(w)).hasTapHold=!0,f.cancelClick||r&&this.inClass(w.target,v+"tracker")&&(M=this.chartPosition,C=r.plotX,p=r.plotY,F(r,{pageX:M.left+l+(i?f.plotWidth-p:C),pageY:M.top+t+(i?f.plotHeight-C:p)}),Z(r.series,o,F(w,{point:r})),f.hoverPoint&&(w.type="taphold",w.point=r,w.target=f,r.firePointEvent(o,w)))},H.Pointer.prototype.setDOMEvents=function(){var w,M=this,C=M.chart.container;this.unbindContainerMouseLeave=function(){},this._events=w=[[C,"onmousedown","onContainerMouseDown"],[C,"onmousemove","onContainerMouseMove"],[C,"onclick","onContainerClick"],[C,"mouseleave","onContainerMouseLeave"],[C,"contextmenu","onContainerClick"],[C,"mousemove","onDocumentMouseMove"],[C,"mouseup","onDocumentMouseUp"]],m&&g&&w.push([C,"taphold","onContainerClick"]),m&&w.push([C,"ontouchmove","onContainerTouchMove"],[C,"ontouchstart","onContainerTouchStart"],[C,"taphold","onContainerTapHold"],[document,"touchend","onDocumentTouchEnd"]),w.forEach(function(p){var f=ct(p,3),r=f[0],l=f[1],t=f[2];M["_"+t]=function(i){typeof M[p[2]]=="function"&&M[p[2]](i)},l.indexOf("on")===0?r[l]=M["_"+t]:r.addEventListener(l,M["_"+t])})},H.Navigator.prototype.updateNavigatorSeries=function(w){var M,C,p,f=this,r=f.chart,l=f.baseSeries,t=f.navigatorOptions.series,i={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,visible:!0},o=f.series=(f.series||[]).filter(function(e){var a=e.baseSeries;return!(l.indexOf(a)<0&&(a&&(U(a,"updatedData",f.updatedDataHandler),delete a.navigatorSeries),e.destroy(),1))});l&&l.length&&l.forEach(function(e){var a=e.navigatorSeries,s=F({color:e.color},Array.isArray(t)?u.navigator.series:t);if(!a||f.navigatorOptions.adaptToUpdatedData!==!1){i.name="Navigator "+l.length,M=e.options||{},p=M.navigatorOptions||{},C=E(M,i,s,p);var h=p.data||s.data;f.hasNavigatorData=f.hasNavigatorData||!!h,C.data=h||M.data&&M.data.slice(0),C.data=(0,G.default)(C.data),(C.data||[]).forEach(function(b){b&&b.marker&&b.marker.enabled&&(b.marker.enabled=!1)}),C.color=M.color,C.fillOpacity=M.fillOpacity,C.type!=="spline"&&C.type!=="areaspline"||(C.stacking=M.stacking),M.stacking!=="percent"&&M.stacking!=="normal"||(C.stacking=M.stacking,C.startFromThreshold=!1),a&&a.options?a.update(C,w):(e.navigatorSeries=r.initSeries(C),e.navigatorSeries.baseSeries=e,o.push(e.navigatorSeries))}}),(!t.data||l&&l.length)&&!Array.isArray(t)||(f.hasNavigatorData=!1,(t=H.splat(t)).forEach(function(e,a){i.name="Navigator "+(o.length+1),(C=E(u.navigator.series,{color:r.series[a]&&!r.series[a].options.isInternal&&r.series[a].color||r.options.colors[a]||r.options.colors[0]},i,e)).data=e.data,C.data&&(f.hasNavigatorData=!0,o.push(r.initSeries(C)))})),this.addBaseSeriesEvents()},H.seriesTypes.scatter.prototype.drawLegendSymbol=H.seriesTypes.column.prototype.drawLegendSymbol,(0,B.wrap)(H.Pointer.prototype,"runPointActions",function(w,M,C){var p,f=M,r=this.chart;w.call(this,M,C);var l=r.hoverPoint,t=r.hoverSeries;if(f&&r.hoverPoint&&(e=f.touches?f.touches.length&&f.touches.item?f.touches.item(0):f.changedTouches?f.changedTouches[0]:f:f)&&e.clientX&&e.clientY){for(var i=document.elementFromPoint(e.clientX,e.clientY);i&&!p;)p=i.point,i=i.parentNode;p&&r.hoverPoint!=p&&p.onMouseOver(f)}(0,B.defined)(l)||(0,B.defined)(t)||(0,_.default)(r,"sisenseTipper.status")!=="on"||!r.sisenseTipper.tipper||(r.sisenseTipper.tipper.deactivate(),(0,et.default)(r,"sisenseTipper.status","off"));var o=(0,_.default)(r,"sisenseTipper.chartType");if((0,_.default)(r,"sisenseTipper.status")!=="off"&&(0,_.default)(r,"sisenseTipper.tipper")&&(o==="pie"||o==="scatter"||o==="bubble"||f.type==="touchmove")){var e=f.touches?f.touches.length&&f.touches.item?f.touches.item(0):f.changedTouches?f.changedTouches[0]:f:f;r.sisenseTipper.tipper.activate({x:e.clientX,y:e.clientY,space:0})}}),(0,B.wrap)(H.Chart.prototype,"getContainer",function(w,M,C){w.call(this,M,C);var p,f=this;f.renderTo=p=f.container.parentElement,p.setAttribute("data-type",(0,_.default)(f,"options.chart.type"))}),(0,B.wrap)(H.Pointer.prototype,"normalize",function(w,M,C){return w.apply(this,[].slice.call(arguments,1)),C&&M.chartY<0&&(M.chartY=100),M}),(0,B.wrap)(H.Chart.prototype,"setChartSize",function(w){var M,C,p,f,r=this.legend,l=this.navigator;if(w.apply(this,[].slice.call(arguments,1)),l){if(C=r&&r.options,p=l.xAxis,f=l.yAxis,M=l.scrollbarHeight,this.inverted){var t=l.opposite?this.chartWidth-M-l.height:this.spacing[3]+M,i=this.plotTop+M;C.align==="left"&&r.legendWidth&&(t+=r.legendWidth),l.left=l.navigatorOptions.left||t,l.top=l.navigatorOptions.top||i}p&&f&&(this.inverted?p.options.left=f.options.left=l.left:p.options.top=f.options.top=l.top,p.setAxisSize(),f.setAxisSize())}}),(0,B.wrap)(H.Chart.prototype,"renderLabels",function(w){var M,C,p,f=this;if(w.apply(this,[].slice.call(arguments,1)),f&&f.polar&&f.userOptions&&((M=f.userOptions)===null||M===void 0?void 0:M.labels)&&((p=(C=f.userOptions.labels)===null||C===void 0?void 0:C.items)===null||p===void 0?void 0:p.length)){var r=void 0,l=f.userOptions.labels.items[0].html,t=pt([],ct(f.container.querySelectorAll("text")),!1).find(function(b){return b.innerHTML.includes(l)}),i=f.containerWidth,o=t.clientWidth,e=t.getBBox(),a=e.height?e.height:20,s=i/2-o/2,h=void 0;f.legend.options.verticalAlign==="top"?(r=f.legend.legendHeight+20+a)>f.plotTop&&(h=20+a,r=f.legend.legendHeight+h/2+10,f.legend.update({margin:h},!0)):(r=20)>f.plotTop&&(h=20+a,r=10+a,f.update({chart:{marginTop:h}},!0)),t.setAttribute("x",s),t.setAttribute("y",r)}}),H.wrap(H.SVGElement.prototype,"titleSetter",function(w,M){var C,p,f=this.element.getElementsByTagName("title")[0];f||(f=document.createElementNS(this.SVG_NS,"title"),this.element.appendChild(f)),f.firstChild&&f.removeChild(f.firstChild),f.appendChild(document.createTextNode((C=this.renderer.escapes,p=M,H.objectEach(C,function(r,l){p=p.replace(new RegExp(r,"g"),l)}),p)))}),(0,B.wrap)(H.Chart.prototype,"renderLabels",function(w){w.apply(this,[].slice.call(arguments,1)),this.chartBackground.addClass("widget-body")}),(0,B.wrap)(H.Legend.prototype,"renderItem",function(w,M){var C=this,p=C.options,f=M.legendItem,r=M.series&&M.series.drawLegendSymbol?M.series:M,l=p.useHTML;w.apply(this,[].slice.call(arguments,1)),/msie|trident/i.exec(navigator.userAgent)&&M.legendItem.group.element.addEventListener("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return M.firePointEvent?M.firePointEvent(i,o,null):Z(r,i,o,null),!1}),(l?f:M.legendItem.group).on("mouseover",function(){var t;M.setState("hover"),f&&((t=f.css)===null||t===void 0||t.call(f,C.options.itemHoverStyle))}).on("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return M.firePointEvent?M.firePointEvent(i,o,null):Z(r,i,o,null),!1})}),(0,B.wrap)(H.Navigator.prototype,"shadesMousedown",function(w){this.chart.pointer&&(this.chart.pointer.chartPosition=null),w.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(H.Navigator.prototype,"handlesMousedown",function(w){this.chart.pointer&&(this.chart.pointer.chartPosition=null),w.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(H.StackItem.prototype,"render",function(w){var M=this.options,C=(0,_.default)(this,"axis.chart.options.chart.type");if(this.alignOptions&&this.total!==void 0&&(C==="column"||C==="bar"&&Math.abs(M.rotation)===90)&&(this.alignOptions.y=this.alignOptions.x=0),w.apply(this,[].slice.call(arguments,1)),this.total!==void 0){var p=this.label.getBBox(!0,0),f=this.label.getBBox(),r=-Math.sign(this.total),l=0,t=0;if(C==="column"?(this.total<0||Math.abs(M.rotation)===90?l=f.height/2*r:Math.abs(M.rotation)===45&&this.total>0&&(l=-p.width/2*Math.sin(45*Math.PI/180)),Math.abs(M.rotation)===45&&(t+=-f.width/4*r),Math.abs(M.rotation)===90&&(t+=p.height/4),l+=5*r):C==="bar"&&Math.abs(M.rotation)===90&&(l=-f.height/2*r,this.total>=0&&(t+=p.height/2),t+=-5*r),this.label.translate(t,l),this.label&&!this.label.labelrank){var i=this.total===0?Number.MIN_SAFE_INTEGER:0;this.label.labelrank=this.x+M.labelrank+i}}}),H.wrap(H,"fireEvent",function(w,M,C,p){var f=new Event(C),r=(0,_.default)(p,"changedTouches"),l=(0,_.default)(p,"point.graphic.element");F(f,p),r&&(f.clientX=(0,_.default)(r,"0.clientX"),f.clientY=(0,_.default)(r,"0.clientY"),f.target=l),w.apply(this,[].slice.call(arguments,1))}),(0,B.wrap)(H.Point.prototype,"getLabelConfig",function(w){var M=w.apply(this,[].slice.call(arguments,1));return this.originalY&&(M.y=this.originalY),M}),(0,B.wrap)(H.seriesTypes.column.prototype,"alignDataLabel",function(w,M,C,p){var f=M.series.options.stacking,r=this.chart.inverted,l=p.rotation,t=M.y<0&&M.dataLabel,i=M.dlBox,o=M.dataLabel.getBBox();if(!f&&t){M.below=!0;var e=E(M.dlBox||M.shapeArgs),a=r?o.width:o.height;e.y+=a,M.dlBox=e}else f&&(p.align="center");!f&&l&&(o=M.dataLabel.getBBox(),r?p.x+=.5*o.width:t&&Math.abs(l)%360==45&&(p.x=.5*-o.width));var s=w.apply(this,[].slice.call(arguments,1));return M.dlBox=i,s}),H.Scroller=H.Navigator}},3269:(it,rt,st)=>{st.d(rt,{A:()=>U});const ht=(0,st(123).A)(Object,"create");var ct=Object.prototype.hasOwnProperty,pt=Object.prototype.hasOwnProperty;function ft($){var Z=-1,V=$==null?0:$.length;for(this.clear();++Z<V;){var F=$[Z];this.set(F[0],F[1])}}ft.prototype.clear=function(){this.__data__=ht?ht(null):{},this.size=0},ft.prototype.delete=function($){var Z=this.has($)&&delete this.__data__[$];return this.size-=Z?1:0,Z},ft.prototype.get=function($){var Z=this.__data__;if(ht){var V=Z[$];return V==="__lodash_hash_undefined__"?void 0:V}return ct.call(Z,$)?Z[$]:void 0},ft.prototype.has=function($){var Z=this.__data__;return ht?Z[$]!==void 0:pt.call(Z,$)},ft.prototype.set=function($,Z){var V=this.__data__;return this.size+=this.has($)?0:1,V[$]=ht&&Z===void 0?"__lodash_hash_undefined__":Z,this};const _=ft;var et=st(6096),G=st(5436);const B=function($,Z){var V,F,I=$.__data__;return((F=typeof(V=Z))=="string"||F=="number"||F=="symbol"||F=="boolean"?V!=="__proto__":V===null)?I[typeof Z=="string"?"string":"hash"]:I.map};function H($){var Z=-1,V=$==null?0:$.length;for(this.clear();++Z<V;){var F=$[Z];this.set(F[0],F[1])}}H.prototype.clear=function(){this.size=0,this.__data__={hash:new _,map:new(G.A||et.A),string:new _}},H.prototype.delete=function($){var Z=B(this,$).delete($);return this.size-=Z?1:0,Z},H.prototype.get=function($){return B(this,$).get($)},H.prototype.has=function($){return B(this,$).has($)},H.prototype.set=function($,Z){var V=B(this,$),F=V.size;return V.set($,Z),this.size+=V.size==F?0:1,this};const U=H},3516:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=st(9600).A.Symbol},3966:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(368));rt.default=ct.default},4044:(it,rt,st)=>{st.d(rt,{A:()=>B});var ht=st(3516),ct=Object.prototype,pt=ct.hasOwnProperty,ft=ct.toString,_=ht.A?ht.A.toStringTag:void 0,et=Object.prototype.toString,G=ht.A?ht.A.toStringTag:void 0;const B=function(H){return H==null?H===void 0?"[object Undefined]":"[object Null]":G&&G in Object(H)?function(U){var $=pt.call(U,_),Z=U[_];try{U[_]=void 0;var V=!0}catch(I){}var F=ft.call(U);return V&&($?U[_]=Z:delete U[_]),F}(H):function(U){return et.call(U)}(H)}},4089:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(4044),ct=st(7313);const pt=function(ft){return typeof ft=="symbol"||(0,ct.A)(ft)&&(0,ht.A)(ft)=="[object Symbol]"}},4441:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>et});var ht=st(6124),ct=st(5118),pt=st(5378),ft=st(7942),_=st(9322);const et=function(G,B,H){return G==null?G:function(U,$,Z,V){if(!(0,ft.A)(U))return U;for(var F=-1,I=($=(0,ct.A)($,U)).length,E=I-1,A=U;A!=null&&++F<I;){var P=(0,_.A)($[F]),y=Z;if(P==="__proto__"||P==="constructor"||P==="prototype")return U;if(F!=E){var c=A[P];(y=void 0)==void 0&&(y=(0,ft.A)(c)?c:(0,pt.A)($[F+1])?[]:{})}(0,ht.A)(A,P,y),A=A[P]}return U}(G,B,H)}},4459:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Extensions/Breadcrumbs.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/FormatUtilities.js"]],function(G,B,H,U,$){var Z=B.defaultOptions,V=$.format,F=U.addEvent,I=U.objectEach,E=U.extend,A=U.fireEvent,P=U.merge,y=U.pick,c=U.defined,g=U.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,w){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var M=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,w);this.chart=v,this.options=M||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var w=this.chart,M=this.options,C=w.options.lang,p=y(M.format,M.showFullPath?"{level.name}":"← {level.name}"),f=C&&y(C.drillUpText,C.mainBreadcrumb),r=M.formatter&&M.formatter(v)||V(p,{level:v.levelOptions},w)||"";return(g(r)&&!r.length||r==="← ")&&c(f)&&(r=M.showFullPath?f:"← "+f),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,w=v.chart,M=v.options;!v.group&&M&&(v.group=w.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:M.zIndex}).add()),M.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,w=v.chart,M=v.list,C=v.options.buttonSpacing;this.destroyListElements();var p=v.group?v.group.getBBox().width:C,f=C,r=M[M.length-2];!w.drillUpButton&&this.level>0?w.drillUpButton=v.renderButton(r,p,f):w.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var w=this;if(w.group){var M=w.options,C=M.buttonTheme,p=M.position,f=M.relativeTo==="chart"||M.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=w.group.getBBox(),l=2*(C.padding||0)+M.buttonSpacing;p.width=r.width+l,p.height=r.height+l;var t=P(p);v&&(t.x+=v),w.options.rtl&&(t.x+=p.width),t.y=y(t.y,this.yOffset,0),w.group.align(t,!0,f)}},u.prototype.renderButton=function(v,w,M){var C=this,p=this.chart,f=C.options,r=P(f.buttonTheme),l=p.renderer.button(C.getButtonText(v),w,M,function(t){var i,o=f.events&&f.events.click;o&&(i=o.call(C,t,v)),i!==!1&&(f.showFullPath?t.newLevel=v.level:t.newLevel=C.level-1,A(C,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(C.group);return p.styledMode||l.attr(f.style),l},u.prototype.renderSeparator=function(v,w){var M=this.chart,C=this.options.separator,p=M.renderer.label(C.text,v,w,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return M.styledMode||p.css(C.style),p},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,w=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(w)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var w=this.elementList;I(w,function(M,C){!v&&w[C].updated||((M=w[C]).button&&M.button.destroy(),M.separator&&M.separator.destroy(),delete M.button,delete M.separator,delete w[C])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,w=this,M=w.elementList,C=w.options.buttonSpacing,p=w.list,f=w.options.rtl,r=f?-1:1,l=function(e,a){return r*e.getBBox().width+r*a},t=function(e,a,s){e.translate(a-e.getBBox().width,s)},i=w.group?l(w.group,C):C,o=C;p.forEach(function(e,a){var s,h,b=a===p.length-1;M[e.level]?(s=(v=M[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*C,v.separator=w.renderSeparator(i,o),f&&t(v.separator,i,o),i+=l(v.separator,C)),M[e.level].updated=!0):(s=w.renderButton(e,i,o),f&&t(s,i,o),i+=l(s,C),b||(h=w.renderSeparator(i,o),f&&t(h,i,o),i+=l(h,C)),M[e.level]={button:s,separator:h,updated:!0}),s&&s.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return H.Breadcrumbs||(H.Breadcrumbs=m,F(G,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,w=v.buttonTheme,M=(w.height||0)+2*(w.padding||0)+v.buttonSpacing,C=v.position.verticalAlign;C==="bottom"?(this.marginBottom=(this.marginBottom||0)+M,u.yOffset=M):C!=="middle"?(this.plotTop+=M,u.yOffset=-M):u.yOffset=void 0}}),F(G,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),F(G,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),F(G,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),w=u.breadcrumbs.options;v&&w.position.align==="right"&&w.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-w.buttonSpacing)}}),F(G,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),et(_,"Extensions/Drilldown.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/Color/Color.js"],_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Defaults.js"],_["Core/Series/Point.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Axis/Tick.js"],_["Core/Utilities.js"],_["Extensions/Breadcrumbs.js"]],function(G,B,H,U,$,Z,V,F,I,E,A,P,y,c){var g=G.animObject,m=Z.noop,u=V.defaultOptions,v=E.seriesTypes,w=y.addEvent,M=y.removeEvent,C=y.extend,p=y.fireEvent,f=y.merge,r=y.objectEach,l=y.pick,t=y.syncTimeout,i=v.pie,o=1;C(u.lang,{}),u.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}},A.prototype.Element.prototype.fadeIn=function(b){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:l(this.newOpacity,1)},b||{duration:250})},H.prototype.addSeriesAsDrilldown=function(b,k){this.addSingleSeriesAsDrilldown(b,k),this.applyDrilldown()},H.prototype.addSingleSeriesAsDrilldown=function(b,k){var O,d,x,T,N,z,L=b.series,D=L.xAxis,j=L.yAxis,Y=[],X=[];z=this.styledMode?{colorIndex:l(b.colorIndex,L.colorIndex)}:{color:b.color||L.color},this.drilldownLevels||(this.drilldownLevels=[]),T=L.options._levelNumber||0,(N=this.drilldownLevels[this.drilldownLevels.length-1])&&N.levelNumber!==T&&(N=void 0),k=C(C({_ddSeriesId:o++},z),k),d=L.points.indexOf(b),L.chart.series.forEach(function(W){W.xAxis!==D||W.isDrilling||(W.options._ddSeriesId=W.options._ddSeriesId||o++,W.options._colorIndex=W.userOptions._colorIndex,W.options._levelNumber=W.options._levelNumber||T,N?(Y=N.levelSeries,X=N.levelSeriesOptions):(Y.push(W),W.purgedOptions=f({_ddSeriesId:W.options._ddSeriesId,_levelNumber:W.options._levelNumber,selected:W.options.selected},W.userOptions),X.push(W.purgedOptions)))}),x=C({levelNumber:T,seriesOptions:L.options,seriesPurgedOptions:L.purgedOptions,levelSeriesOptions:X,levelSeries:Y,shapeArgs:b.shapeArgs,bBox:b.graphic?b.graphic.getBBox():{},color:b.isNull?U.parse(z.color).setOpacity(0).get():z.color,lowerSeriesOptions:k,pointOptions:L.options.data[d],pointIndex:d,oldExtremes:{xMin:D&&D.userMin,xMax:D&&D.userMax,yMin:j&&j.userMin,yMax:j&&j.userMax},resetZoomButton:N&&N.levelNumber===T?void 0:this.resetZoomButton},z),this.drilldownLevels.push(x),D&&D.names&&(D.names.length=0),(O=x.lowerSeries=this.addSeries(k,!1)).options._levelNumber=T+1,D&&(D.oldPos=D.pos,D.userMin=D.userMax=null,j.userMin=j.userMax=null),L.type===O.type&&(O.animate=O.animateDrilldown||m,O.options.animation=!0)},H.prototype.applyDrilldown=function(){var b,k=this.drilldownLevels;k&&k.length>0&&(b=k[k.length-1].levelNumber,this.drilldownLevels.forEach(function(O){O.levelNumber===b&&O.levelSeries.forEach(function(d){d.options&&d.options._levelNumber===b&&d.remove(!1)})})),this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton),this.pointer.reset(),p(this,"afterDrilldown"),this.redraw(),p(this,"afterApplyDrilldown")};var e=function(b){var k=[],O=b.drilldownLevels;return O&&O.length&&(k[0]||k.push({level:0,levelOptions:O[0].seriesOptions}),O.forEach(function(d,x){var T=k[k.length-1];d.levelNumber+1>T.level&&k.push({level:d.levelNumber+1,levelOptions:f({name:d.lowerSeries.name},d.pointOptions)})})),k};function a(b){var k=g(this.chart.options.drilldown.animation);b&&(b.hide(),t(function(){b&&b.added&&b.fadeIn()},Math.max(k.duration-50,0)))}H.prototype.drillUp=function(){if(this.drilldownLevels&&this.drilldownLevels.length!==0){p(this,"beforeDrillUp");for(var b,k,O,d,x,T=this,N=T.drilldownLevels,z=N[N.length-1].levelNumber,L=N.length,D=T.series,j=function(X){var W;D.forEach(function(q){q.options._ddSeriesId===X._ddSeriesId&&(W=q)}),(W=W||T.addSeries(X,!1)).type===O.type&&W.animateDrillupTo&&(W.animate=W.animateDrillupTo),X===k.seriesPurgedOptions&&(d=W)},Y=T.drilldownLevels.length;L--;)if((k=N[L]).levelNumber===z){if(N.pop(),!(O=k.lowerSeries).chart){for(b=D.length;b--;)if(D[b].options.id===k.lowerSeriesOptions.id&&D[b].options._levelNumber===z+1){O=D[b];break}}O.xData=[],O.xAxis&&O.xAxis.names&&(Y===0||L===Y)&&(O.xAxis.names.length=0),k.levelSeriesOptions.forEach(j),p(T,"drillup",{seriesOptions:k.seriesPurgedOptions||k.seriesOptions}),d.type===O.type&&(d.drilldownLevel=k,d.options.animation=T.options.drilldown.animation,O.animateDrillupFrom&&O.chart&&O.animateDrillupFrom(k)),d.options._levelNumber=z,O.remove(!1),d.xAxis&&(x=k.oldExtremes,d.xAxis.setExtremes(x.xMin,x.xMax,!1),d.yAxis.setExtremes(x.yMin,x.yMax,!1)),k.resetZoomButton&&(T.resetZoomButton=k.resetZoomButton)}p(T,"afterDrillUp"),this.redraw(),this.ddDupes&&(this.ddDupes.length=0),p(T,"drillupall")}},w(H,"afterInit",function(){var b=this;b.drilldown={chart:b,fadeInGroup:a,update:function(k,O){f(!0,b.options.drilldown,k),l(O,!0)&&b.redraw()}}}),w(H,"render",function(){(this.xAxis||[]).forEach(function(b){b.ddPoints={},b.series.forEach(function(k){var O,d,x=k.xData||[],T=k.points;for(O=0;O<x.length;O++)if(typeof(d=k.options.data[O])!="number"&&(d=k.pointClass.prototype.optionsToObject.call({series:k},d)).drilldown){b.ddPoints[x[O]]||(b.ddPoints[x[O]]=[]);var N=O-(k.cropStart||0);b.ddPoints[x[O]].push(!(T&&N>=0&&N<T.length)||T[N])}}),r(b.ticks,P.prototype.drillable)})}),w(Z.Breadcrumbs,"up",function(b){for(var k=this.chart,O=this.getLevel()-b.newLevel,d=0;d<O;d++)k.drillUp()}),w(H,"afterDrilldown",function(){var b=this,k=b.options.drilldown,O=k&&k.breadcrumbs;b.breadcrumbs||(b.breadcrumbs=new c(b,O)),b.breadcrumbs.updateProperties(e(b))}),w(H,"afterDrillUp",function(){var b=this;b.breadcrumbs&&b.breadcrumbs.updateProperties(e(b))}),w(H,"update",function(b){var k=this.breadcrumbs,O=b.options.drilldown&&b.options.drilldown.breadcrumbs;k&&O&&k.update(b.options.drilldown.breadcrumbs)}),$.prototype.animateDrillupTo=function(b){if(!b){var k=this,O=k.drilldownLevel;this.points.forEach(function(d){var x=d.dataLabel;d.graphic&&d.graphic.hide(),x&&(x.hidden=x.attr("visibility")==="hidden",x.hidden||(x.hide(),d.connector&&d.connector.hide()))}),t(function(){if(k.points){var d=[];k.data.forEach(function(x){d.push(x)}),k.nodes&&(d=d.concat(k.nodes)),d.forEach(function(x,T){var N=T===(O&&O.pointIndex)?"show":"fadeIn",z=N==="show"||void 0,L=x.dataLabel;x.graphic&&x.graphic[N](z),L&&!L.hidden&&(L.fadeIn(),x.connector&&x.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-50,0)),delete this.animate}},$.prototype.animateDrilldown=function(b){var k,O=this,d=this.chart,x=d.drilldownLevels,T=g(d.options.drilldown.animation),N=this.xAxis,z=d.styledMode;b||(x.forEach(function(L){O.options._ddSeriesId===L.lowerSeriesOptions._ddSeriesId&&(k=L.shapeArgs,z||(k.fill=L.color))}),k.x+=l(N.oldPos,N.pos)-N.pos,this.points.forEach(function(L){var D=L.shapeArgs;z||(D.fill=L.color),L.graphic&&L.graphic.attr(k).animate(C(L.shapeArgs,{fill:L.color||O.color}),T)}),d.drilldown&&d.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)},$.prototype.animateDrillupFrom=function(b){var k=g(this.chart.options.drilldown.animation),O=this.group,d=O!==this.chart.columnGroup,x=this;x.trackerGroups.forEach(function(T){x[T]&&x[T].on("mouseover")}),d&&delete this.group,this.points.forEach(function(T){var N=T.graphic,z=b.shapeArgs,L=function(){N.destroy(),O&&d&&(O=O.destroy())};N&&z&&(delete T.graphic,x.chart.styledMode||(z.fill=b.color),k.duration?N.animate(z,f(k,{complete:L})):(N.attr(z),L()))})},i&&C(i.prototype,{animateDrillupTo:$.prototype.animateDrillupTo,animateDrillupFrom:$.prototype.animateDrillupFrom,animateDrilldown:function(b){var k=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],O=this.chart.options.drilldown.animation;if(this.is("item")&&(O.duration=0),this.center){var d=k.shapeArgs,x=d.start,T=(d.end-x)/this.points.length,N=this.chart.styledMode;b||(this.points.forEach(function(z,L){var D=z.shapeArgs;N||(d.fill=k.color,D.fill=z.color),z.graphic&&z.graphic.attr(f(d,{start:x+L*T,end:x+(L+1)*T}))[O?"animate":"attr"](D,O)}),this.chart.drilldown&&this.chart.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)}}}),F.prototype.doDrilldown=function(){this.runDrilldown()},F.prototype.runDrilldown=function(b,k,O){var d,x=this.series.chart,T=x.options.drilldown,N=(T.series||[]).length;for(x.ddDupes||(x.ddDupes=[]);N--&&!d;)T.series[N].id===this.drilldown&&x.ddDupes.indexOf(this.drilldown)===-1&&(d=T.series[N],x.ddDupes.push(this.drilldown));p(x,"drilldown",{point:this,seriesOptions:d,category:k,originalEvent:O,points:k!==void 0&&this.series.xAxis.getDDPoints(k).slice(0)},function(z){var L=z.point.series&&z.point.series.chart,D=z.seriesOptions;L&&D&&(b?L.addSingleSeriesAsDrilldown(z.point,D):L.addSeriesAsDrilldown(z.point,D))})},B.prototype.drilldownCategory=function(b,k){this.getDDPoints(b).forEach(function(O){O&&O.series&&O.series.visible&&O.runDrilldown&&O.runDrilldown(!0,b,k)}),this.chart.applyDrilldown()},B.prototype.getDDPoints=function(b){return this.ddPoints&&this.ddPoints[b]||[]},P.prototype.drillable=function(){var b=this.pos,k=this.label,O=this.axis,d=O.coll==="xAxis"&&O.getDDPoints,x=d&&O.getDDPoints(b),T=O.chart.styledMode;d&&(k&&x&&x.length?(k.drillable=!0,k.basicStyles||T||(k.basicStyles=f(k.styles)),k.addClass("highcharts-drilldown-axis-label"),k.removeOnDrillableClick&&M(k.element,"click"),k.removeOnDrillableClick=w(k.element,"click",function(N){N.preventDefault(),O.drilldownCategory(b,N)}),T||k.css(O.chart.options.drilldown.activeAxisLabelStyle)):k&&k.drillable&&k.removeOnDrillableClick&&(T||(k.styles={},k.element.removeAttribute("style"),k.css(k.basicStyles)),k.removeOnDrillableClick(),k.removeClass("highcharts-drilldown-axis-label")))},w(F,"afterInit",function(){var b=this;return b.drilldown&&!b.unbindDrilldownClick&&(b.unbindDrilldownClick=w(b,"click",s)),b}),w(F,"update",function(b){var k=this,O=b.options||{};O.drilldown&&!k.unbindDrilldownClick?k.unbindDrilldownClick=w(k,"click",s):!O.drilldown&&O.drilldown!==void 0&&k.unbindDrilldownClick&&(k.unbindDrilldownClick=k.unbindDrilldownClick())});var s=function(b){var k=this,O=k.series;O.xAxis&&O.chart.options.drilldown.allowPointDrilldown===!1?O.xAxis.drilldownCategory(k.x,b):k.runDrilldown(void 0,void 0,b)};w(I,"afterDrawDataLabels",function(){var b=this.chart.options.drilldown.activeDataLabelStyle,k=this.chart.renderer,O=this.chart.styledMode;this.points.forEach(function(d){var x=d.options.dataLabels,T=l(d.dlOptions,x&&x.style,{});d.drilldown&&d.dataLabel&&(b.color!=="contrast"||O||(T.color=k.getContrast(d.color||this.color)),x&&x.color&&(T.color=x.color),d.dataLabel.addClass("highcharts-drilldown-data-label"),O||d.dataLabel.css(b).css(T))},this)});var h=function(b,k,O,d){b[O?"addClass":"removeClass"]("highcharts-drilldown-point"),d||b.css({cursor:k})};w(I,"afterDrawTracker",function(){var b=this.chart.styledMode;this.points.forEach(function(k){k.drilldown&&k.graphic&&h(k.graphic,"pointer",!0,b)})}),w(F,"afterSetState",function(){var b=this.series.chart.styledMode;this.drilldown&&this.series.halo&&this.state==="hover"?h(this.series.halo,"pointer",!0,b):this.series.halo&&h(this.series.halo,"auto",!1,b)}),w(H,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())}),w(H,"drillupall",function(){this.resetZoomButton&&this.showResetZoom()})}),et(_,"masters/modules/drilldown.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},4501:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>ht});const ht=function(ct){return ct===void 0}},4608:function(it,rt,st){var ht=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(5134)),pt=ht(st(1039)),ft=ht(st(6725)),_=ht(st(6660)),et=ht(st(4459)),G=ht(st(2060)),B=ht(st(6236)),H=ht(st(6512)),U=ht(st(5098)),$=ht(st(4812)),Z=ht(st(2397)),V=ht(st(50)),F=ht(st(5322)),I=ht(st(2)),E=ht(st(362)),A=ht(st(3039)),P=ht(st(3966));(0,ft.default)(ct.default),(0,pt.default)(ct.default),(0,_.default)(ct.default),(0,et.default)(ct.default),(0,G.default)(ct.default),(0,B.default)(ct.default),(0,H.default)(ct.default),(0,$.default)(ct.default),(0,U.default)(ct.default),(0,F.default)(ct.default),(0,I.default)(ct.default),(0,E.default)(ct.default),(0,A.default)(ct.default),(0,Z.default)(ct.default),(0,V.default)(ct.default),ct.default.setOptions(P.default),rt.default=ct.default},4783:function(it,rt,st){var ht,ct,pt;ct=typeof window!="undefined"?window:this,pt=function(ft){function _(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}var et={};return _(et,"Core/Globals.js",[],function(){var G;return function(B){B.SVG_NS="http://www.w3.org/2000/svg",B.product="Highcharts",B.version="10.3.3",B.win=ft!==void 0?ft:{},B.doc=B.win.document,B.svg=B.doc&&B.doc.createElementNS&&!!B.doc.createElementNS(B.SVG_NS,"svg").createSVGRect,B.userAgent=B.win.navigator&&B.win.navigator.userAgent||"",B.isChrome=B.userAgent.indexOf("Chrome")!==-1,B.isFirefox=B.userAgent.indexOf("Firefox")!==-1,B.isMS=/(edge|msie|trident)/i.test(B.userAgent)&&!B.win.opera,B.isSafari=!B.isChrome&&B.userAgent.indexOf("Safari")!==-1,B.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(B.userAgent),B.isWebKit=B.userAgent.indexOf("AppleWebKit")!==-1,B.deg2rad=2*Math.PI/360,B.hasBidiBug=B.isFirefox&&4>parseInt(B.userAgent.split("Firefox/")[1],10),B.hasTouch=!!B.win.TouchEvent,B.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],B.noop=function(){},B.supportsPassiveEvents=function(){var H=!1;if(!B.isMS){var U=Object.defineProperty({},"passive",{get:function(){H=!0}});B.win.addEventListener&&B.win.removeEventListener&&(B.win.addEventListener("testPassive",B.noop,U),B.win.removeEventListener("testPassive",B.noop,U))}return H}(),B.charts=[],B.dateFormats={},B.seriesTypes={},B.symbolSizes={},B.chartCount=0}(G||(G={})),G}),_(et,"Core/Utilities.js",[et["Core/Globals.js"]],function(G){function B(t,i,o,e){var a=i?"Highcharts error":"Highcharts warning";t===32&&(t=a+": Deprecated member");var s=I(t),h=s?a+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(e!==void 0){var b="";s&&(h+="?"),u(e,function(k,O){b+=`
|
|
4
|
+
- `.concat(O,": ").concat(k),s&&(h+=encodeURI(O)+"="+encodeURI(k))}),h+=b}w(G,"displayError",{chart:o,code:t,message:h,params:e},function(){if(i)throw Error(h);p.console&&B.messages.indexOf(h)===-1&&console.warn(h)}),B.messages.push(h)}function H(t,i){return parseInt(t,i||10)}function U(t){return typeof t=="string"}function $(t){return(t=Object.prototype.toString.call(t))==="[object Array]"||t==="[object Array Iterator]"}function Z(t,i){return!(!t||typeof t!="object"||i&&$(t))}function V(t){return Z(t)&&typeof t.nodeType=="number"}function F(t){var i=t&&t.constructor;return!(!Z(t,!0)||V(t)||!i||!i.name||i.name==="Object")}function I(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function E(t){return t!=null}function A(t,i,o){var e,a=U(i)&&!E(o),s=function(h,b){E(h)?t.setAttribute(b,h):a?(e=t.getAttribute(b))||b!=="class"||(e=t.getAttribute(b+"Name")):t.removeAttribute(b)};return U(i)?s(o,i):u(i,s),e}function P(t,i){var o;for(o in t||(t={}),i)t[o]=i[o];return t}function y(){for(var t=arguments,i=t.length,o=0;o<i;o++){var e=t[o];if(e!=null)return e}}function c(t,i){G.isMS&&!G.svg&&i&&E(i.opacity)&&(i.filter="alpha(opacity=".concat(100*i.opacity,")")),P(t.style,i)}function g(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function m(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function u(t,i,o){for(var e in t)Object.hasOwnProperty.call(t,e)&&i.call(o||t[e],t[e],e,t)}function v(t,i,o){function e(b,k){var O=t.removeEventListener||G.removeEventListenerPolyfill;O&&O.call(t,b,k,!1)}function a(b){var k;if(t.nodeName){if(i){var O={};O[i]=!0}else O=b;u(O,function(d,x){if(b[x])for(k=b[x].length;k--;)e(x,b[x][k].fn)})}}var s=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(s,"hcEvents")){var h=s.hcEvents;i?(s=h[i]||[],o?(h[i]=s.filter(function(b){return o!==b.fn}),e(i,o)):(a(h),h[i]=[])):(a(h),delete s.hcEvents)}}function w(t,i,o,e){if(o=o||{},C.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==G)){var a=C.createEvent("Events");a.initEvent(i,!0,!0),o=P(a,o),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(i,o)}else if(t.hcEvents){o.target||P(o,{preventDefault:function(){o.defaultPrevented=!0},target:t,type:i}),a=[];for(var s=t,h=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[i]&&(a.length&&(h=!0),a.unshift.apply(a,s.hcEvents[i])),s=Object.getPrototypeOf(s);h&&a.sort(function(b,k){return b.order-k.order}),a.forEach(function(b){b.fn.call(t,o)===!1&&o.preventDefault()})}e&&!o.defaultPrevented&&e.call(t,o)}var M=G.charts,C=G.doc,p=G.win;(B||(B={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var f=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){var o,e=t.length;for(o=0;o<e;o++)if(i(t[o],o))return t[o]};u({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){G[i]=function(o){var e;return B(32,!1,void 0,((e={})["Highcharts.".concat(i)]="use Array.".concat(t),e)),Array.prototype[t].apply(o,[].slice.call(arguments,1))}});var r,l=function(){var t=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(r?"":t)+i++}}();return p.jQuery,f={addEvent:function(t,i,o,e){e===void 0&&(e={});var a=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(a,"hcEvents")||(a.hcEvents={}),a=a.hcEvents,G.Point&&t instanceof G.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener||G.addEventListenerPolyfill;return s&&s.call(t,i,o,!!G.supportsPassiveEvents&&{passive:e.passive===void 0?i.indexOf("touch")!==-1:e.passive,capture:!1}),a[i]||(a[i]=[]),a[i].push({fn:o,order:typeof e.order=="number"?e.order:1/0}),a[i].sort(function(h,b){return h.order-b.order}),function(){v(t,i,o)}},arrayMax:function(t){for(var i=t.length,o=t[0];i--;)t[i]>o&&(o=t[i]);return o},arrayMin:function(t){for(var i=t.length,o=t[0];i--;)t[i]<o&&(o=t[i]);return o},attr:A,clamp:function(t,i,o){return t>i?t<o?t:o:i},cleanRecursively:function t(i,o){var e={};return u(i,function(a,s){Z(i[s],!0)&&!i.nodeType&&o[s]?(a=t(i[s],o[s]),Object.keys(a).length&&(e[s]=a)):(Z(i[s])||i[s]!==o[s]||s in i&&!(s in o))&&(e[s]=i[s])}),e},clearTimeout:function(t){E(t)&&clearTimeout(t)},correctFloat:m,createElement:function(t,i,o,e,a){return t=C.createElement(t),i&&P(t,i),a&&c(t,{padding:"0",border:"none",margin:"0"}),o&&c(t,o),e&&e.appendChild(t),t},css:c,defined:E,destroyObjectProperties:function(t,i){u(t,function(o,e){o&&o!==i&&o.destroy&&o.destroy(),delete t[e]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){for(var o=t.length;o--;)if(t[o]===i){t.splice(o,1);break}},error:B,extend:P,extendClass:function(t,i){var o=function(){};return P(o.prototype=new t,i),o},find:f,fireEvent:w,getMagnitude:g,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&E(i);){var o=t.shift();if(o===void 0||o==="__proto__"||!E(i=i[o])||typeof i=="function"||typeof i.nodeType=="number"||i===p)return}return i},getStyle:function t(i,o,e){var a=G.getStyle||t;if(o==="width")return o=Math.min(i.offsetWidth,i.scrollWidth),(e=i.getBoundingClientRect&&i.getBoundingClientRect().width)<o&&e>=o-1&&(o=Math.floor(e)),Math.max(0,o-(a(i,"padding-left",!0)||0)-(a(i,"padding-right",!0)||0));if(o==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(a(i,"padding-top",!0)||0)-(a(i,"padding-bottom",!0)||0));if(p.getComputedStyle||B(27,!0),i=p.getComputedStyle(i,void 0)){var s=i.getPropertyValue(o);y(e,o!=="opacity")&&(s=H(s))}return s},inArray:function(t,i,o){return B(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:$,isClass:F,isDOMElement:V,isFunction:function(t){return typeof t=="function"},isNumber:I,isObject:Z,isString:U,keys:function(t){return B(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,i=arguments,o={},e=function(s,h){return typeof s!="object"&&(s={}),u(h,function(b,k){k!=="__proto__"&&k!=="constructor"&&(!Z(b,!0)||F(b)||V(b)?s[k]=h[k]:s[k]=e(s[k]||{},b))}),s};i[0]===!0&&(o=i[1],i=Array.prototype.slice.call(i,2));var a=i.length;for(t=0;t<a;t++)o=e(o,i[t]);return o},normalizeTickInterval:function(t,i,o,e,a){var s=t,h=t/(o=y(o,g(t)));for(i||(i=a?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],e===!1&&(o===1?i=i.filter(function(b){return b%1==0}):.1>=o&&(i=[1/o]))),e=0;e<i.length&&(s=i[e],!(a&&s*o>=t||!a&&h<=(i[e]+(i[e+1]||i[e]))/2));e++);return m(s*o,-Math.round(Math.log(.001)/Math.LN10))},objectEach:u,offset:function(t){var i=C.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(p.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(p.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,o){return Array((i||2)+1-String(t).replace("-","").length).join(o||"0")+t},pick:y,pInt:H,relativeLength:function(t,i,o){return/%$/.test(t)?i*parseFloat(t)/100+(o||0):parseFloat(t)},removeEvent:v,splat:function(t){return $(t)?t:[t]},stableSort:function(t,i){var o,e,a=t.length;for(e=0;e<a;e++)t[e].safeI=e;for(t.sort(function(s,h){return(o=i(s,h))===0?s.safeI-h.safeI:o}),e=0;e<a;e++)delete t[e].safeI},syncTimeout:function(t,i,o){return 0<i?setTimeout(t,i,o):(t.call(0,o),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:l,useSerialIds:function(t){return r=y(t,r)},wrap:function(t,i,o){var e=t[i];t[i]=function(){var a=arguments,s=this;return o.apply(this,[function(){return e.apply(s,arguments.length?arguments:a)}].concat([].slice.call(arguments)))}}},f}),_(et,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),_(et,"Core/Color/Color.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B){var H=B.isNumber,U=B.merge,$=B.pInt;return B=function(){function Z(V){this.rgba=[NaN,NaN,NaN,NaN],this.input=V;var F=G.Color;return F&&F!==Z?new F(V):this instanceof Z?void this.init(V):new Z(V)}return Z.parse=function(V){return V?new Z(V):Z.None},Z.prototype.init=function(V){var F;if(typeof V=="object"&&V.stops!==void 0)this.stops=V.stops.map(function(P){return new Z(P[1])});else if(typeof V=="string"){if(this.input=V=Z.names[V.toLowerCase()]||V,V.charAt(0)==="#"){var I=V.length,E=parseInt(V.substr(1),16);I===7?F=[(16711680&E)>>16,(65280&E)>>8,255&E,1]:I===4&&(F=[(3840&E)>>4|(3840&E)>>8,(240&E)>>4|240&E,(15&E)<<4|15&E,1])}if(!F)for(E=Z.parsers.length;E--&&!F;){var A=Z.parsers[E];(I=A.regex.exec(V))&&(F=A.parse(I))}}F&&(this.rgba=F)},Z.prototype.get=function(V){var F=this.input,I=this.rgba;if(typeof F=="object"&&this.stops!==void 0){var E=U(F);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(A,P){E.stops[P]=[E.stops[P][0],A.get(V)]}),E}return I&&H(I[0])?V==="rgb"||!V&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":V==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":F},Z.prototype.brighten=function(V){var F=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(V)});else if(H(V)&&V!==0)for(var I=0;3>I;I++)F[I]+=$(255*V),0>F[I]&&(F[I]=0),255<F[I]&&(F[I]=255);return this},Z.prototype.setOpacity=function(V){return this.rgba[3]=V,this},Z.prototype.tweenTo=function(V,F){var I=this.rgba,E=V.rgba;return H(I[0])&&H(E[0])?((V=E[3]!==1||I[3]!==1)?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-F))+","+Math.round(E[1]+(I[1]-E[1])*(1-F))+","+Math.round(E[2]+(I[2]-E[2])*(1-F))+(V?","+(E[3]+(I[3]-E[3])*(1-F)):"")+")":V.input||"none"},Z.names={white:"#ffffff",black:"#000000"},Z.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(V){return[$(V[1]),$(V[2]),$(V[3]),parseFloat(V[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(V){return[$(V[1]),$(V[2]),$(V[3]),1]}}],Z.None=new Z(""),Z}(),B}),_(et,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),_(et,"Core/Time.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B){var H=G.win,U=B.defined,$=B.error,Z=B.extend,V=B.isObject,F=B.merge,I=B.objectEach,E=B.pad,A=B.pick,P=B.splat,y=B.timeUnits,c=G.isSafari&&H.Intl&&H.Intl.DateTimeFormat.prototype.formatRange,g=G.isSafari&&H.Intl&&!H.Intl.DateTimeFormat.prototype.formatRange;return B=function(){function m(u){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=H.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(u)}return m.prototype.get=function(u,v){if(this.variableTimezone||this.timezoneOffset){var w=v.getTime(),M=w-this.getTimezoneOffset(v);return v.setTime(M),u=v["getUTC"+u](),v.setTime(w),u}return this.useUTC?v["getUTC"+u]():v["get"+u]()},m.prototype.set=function(u,v,w){if(this.variableTimezone||this.timezoneOffset){if(u==="Milliseconds"||u==="Seconds"||u==="Minutes"&&this.getTimezoneOffset(v)%36e5==0)return v["setUTC"+u](w);var M=this.getTimezoneOffset(v);return M=v.getTime()-M,v.setTime(M),v["setUTC"+u](w),u=this.getTimezoneOffset(v),M=v.getTime()+u,v.setTime(M)}return this.useUTC||c&&u==="FullYear"?v["setUTC"+u](w):v["set"+u](w)},m.prototype.update=function(u){u===void 0&&(u={});var v=A(u.useUTC,!0);this.options=u=F(!0,this.options,u),this.Date=u.Date||H.Date||Date,this.timezoneOffset=(this.useUTC=v)&&u.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=v&&!(!u.getTimezoneOffset&&!u.timezone)},m.prototype.makeTime=function(u,v,w,M,C,p){if(this.useUTC){var f=this.Date.UTC.apply(0,arguments),r=this.getTimezoneOffset(f);f+=r;var l=this.getTimezoneOffset(f);r!==l?f+=l-r:r-36e5!==this.getTimezoneOffset(f-36e5)||g||(f-=36e5)}else f=new this.Date(u,v,A(w,1),A(M,0),A(C,0),A(p,0)).getTime();return f},m.prototype.timezoneOffsetFunction=function(){var u=this,v=this.options,w=v.getTimezoneOffset,M=v.moment||H.moment;if(!this.useUTC)return function(C){return 6e4*new Date(C.toString()).getTimezoneOffset()};if(v.timezone){if(M)return function(C){return 6e4*-M.tz(C,v.timezone).utcOffset()};$(25)}return this.useUTC&&w?function(C){return 6e4*w(C.valueOf())}:function(){return 6e4*(u.timezoneOffset||0)}},m.prototype.dateFormat=function(u,v,w){if(!U(v)||isNaN(v))return G.defaultOptions.lang&&G.defaultOptions.lang.invalidDate||"";u=A(u,"%Y-%m-%d %H:%M:%S");var M=this,C=new this.Date(v),p=this.get("Hours",C),f=this.get("Day",C),r=this.get("Date",C),l=this.get("Month",C),t=this.get("FullYear",C),i=G.defaultOptions.lang,o=i&&i.weekdays,e=i&&i.shortWeekdays;return C=Z({a:e?e[f]:o[f].substr(0,3),A:o[f],d:E(r),e:E(r,2," "),w:f,b:i.shortMonths[l],B:i.months[l],m:E(l+1),o:l+1,y:t.toString().substr(2,2),Y:t,H:E(p),k:p,I:E(p%12||12),l:p%12||12,M:E(this.get("Minutes",C)),p:12>p?"AM":"PM",P:12>p?"am":"pm",S:E(C.getSeconds()),L:E(Math.floor(v%1e3),3)},G.dateFormats),I(C,function(a,s){for(;u.indexOf("%"+s)!==-1;)u=u.replace("%"+s,typeof a=="function"?a.call(M,v):a)}),w?u.substr(0,1).toUpperCase()+u.substr(1):u},m.prototype.resolveDTLFormat=function(u){return V(u,!0)?u:{main:(u=P(u))[0],from:u[1],to:u[2]}},m.prototype.getTimeTicks=function(u,v,w,M){var C,p=this,f=[],r={},l=new p.Date(v),t=u.unitRange,i=u.count||1;if(M=A(M,1),U(v)){if(p.set("Milliseconds",l,t>=y.second?0:i*Math.floor(p.get("Milliseconds",l)/i)),t>=y.second&&p.set("Seconds",l,t>=y.minute?0:i*Math.floor(p.get("Seconds",l)/i)),t>=y.minute&&p.set("Minutes",l,t>=y.hour?0:i*Math.floor(p.get("Minutes",l)/i)),t>=y.hour&&p.set("Hours",l,t>=y.day?0:i*Math.floor(p.get("Hours",l)/i)),t>=y.day&&p.set("Date",l,t>=y.month?1:Math.max(1,i*Math.floor(p.get("Date",l)/i))),t>=y.month){p.set("Month",l,t>=y.year?0:i*Math.floor(p.get("Month",l)/i));var o=p.get("FullYear",l)}t>=y.year&&p.set("FullYear",l,o-o%i),t===y.week&&(o=p.get("Day",l),p.set("Date",l,p.get("Date",l)-o+M+(o<M?-7:0))),o=p.get("FullYear",l),M=p.get("Month",l);var e=p.get("Date",l),a=p.get("Hours",l);for(v=l.getTime(),!p.variableTimezone&&p.useUTC||!U(w)||(C=w-v>4*y.month||p.getTimezoneOffset(v)!==p.getTimezoneOffset(w)),v=l.getTime(),l=1;v<w;)f.push(v),v=t===y.year?p.makeTime(o+l*i,0):t===y.month?p.makeTime(o,M+l*i):!C||t!==y.day&&t!==y.week?C&&t===y.hour&&1<i?p.makeTime(o,M,e,a+l*i):v+t*i:p.makeTime(o,M,e+l*i*(t===y.day?1:7)),l++;f.push(v),t<=y.hour&&1e4>f.length&&f.forEach(function(s){s%18e5==0&&p.dateFormat("%H%M%S%L",s)==="000000000"&&(r[s]="day")})}return f.info=Z(u,{higherRanks:r,totalRange:t*i}),f},m.prototype.getDateFormat=function(u,v,w,M){var C=this.dateFormat("%m-%d %H:%M:%S.%L",v),p={millisecond:15,second:12,minute:9,hour:6,day:3},f="millisecond";for(r in y){if(u===y.week&&+this.dateFormat("%w",v)===w&&C.substr(6)==="00:00:00.000"){var r="week";break}if(y[r]>u){r=f;break}if(p[r]&&C.substr(p[r])!=="01-01 00:00:00.000".substr(p[r]))break;r!=="week"&&(f=r)}return this.resolveDTLFormat(M[r]).main},m}(),B}),_(et,"Core/Defaults.js",[et["Core/Chart/ChartDefaults.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Color/Palettes.js"],et["Core/Time.js"],et["Core/Utilities.js"]],function(G,B,H,U,$,Z){B=B.parse;var V=Z.merge,F={colors:U.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:G,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:H.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:H.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:B("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};F.chart.styledMode=!1;var I=new $(V(F.global,F.time));return{defaultOptions:F,defaultTime:I,getOptions:function(){return F},setOptions:function(E){return V(!0,F,E),(E.time||E.global)&&(H.time?H.time.update(V(F.global,F.time,E.global,E.time)):H.time=I),F}}}),_(et,"Core/Animation/Fx.js",[et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,H){var U=G.parse,$=B.win,Z=H.isNumber,V=H.objectEach;return function(){function F(I,E,A){this.pos=NaN,this.options=E,this.elem=I,this.prop=A}return F.prototype.dSetter=function(){var I=this.paths,E=I&&I[0];I=I&&I[1];var A=this.now||0,P=[];if(A!==1&&E&&I)if(E.length===I.length&&1>A)for(var y=0;y<I.length;y++){for(var c=E[y],g=I[y],m=[],u=0;u<g.length;u++){var v=c[u],w=g[u];Z(v)&&Z(w)&&(g[0]!=="A"||u!==4&&u!==5)?m[u]=v+A*(w-v):m[u]=w}P.push(m)}else P=I;else P=this.toD||[];this.elem.attr("d",P,void 0,!0)},F.prototype.update=function(){var I=this.elem,E=this.prop,A=this.now,P=this.options.step;this[E+"Setter"]?this[E+"Setter"]():I.attr?I.element&&I.attr(E,A,null,!0):I.style[E]=A+this.unit,P&&P.call(I,A,this)},F.prototype.run=function(I,E,A){var P=this,y=P.options,c=function(u){return!c.stopped&&P.step(u)},g=$.requestAnimationFrame||function(u){setTimeout(u,13)},m=function(){for(var u=0;u<F.timers.length;u++)F.timers[u]()||F.timers.splice(u--,1);F.timers.length&&g(m)};I!==E||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=I,this.end=E,this.unit=A,this.now=this.start,this.pos=0,c.elem=this.elem,c.prop=this.prop,c()&&F.timers.push(c)===1&&g(m)):(delete y.curAnim[this.prop],y.complete&&Object.keys(y.curAnim).length===0&&y.complete.call(this.elem))},F.prototype.step=function(I){var E=+new Date,A=this.options,P=this.elem,y=A.complete,c=A.duration,g=A.curAnim;if(P.attr&&!P.element)I=!1;else if(I||E>=c+this.startTime){this.now=this.end,this.pos=1,this.update();var m=g[this.prop]=!0;V(g,function(u){u!==!0&&(m=!1)}),m&&y&&y.call(P),I=!1}else this.pos=A.easing((E-this.startTime)/c),this.now=this.start+(this.end-this.start)*this.pos,this.update(),I=!0;return I},F.prototype.initPath=function(I,E,A){function P(C,p){for(;C.length<M;){var f=C[0],r=p[M-C.length];r&&f[0]==="M"&&(C[0]=r[0]==="C"?["C",f[1],f[2],f[1],f[2],f[1],f[2]]:["L",f[1],f[2]]),C.unshift(f),m&&(f=C.pop(),C.push(C[C.length-1],f))}}function y(C,p){for(;C.length<M;)if((p=C[Math.floor(C.length/u)-1].slice())[0]==="C"&&(p[1]=p[5],p[2]=p[6]),m){var f=C[Math.floor(C.length/u)].slice();C.splice(C.length/2,0,p,f)}else C.push(p)}var c=I.startX,g=I.endX;A=A.slice();var m=I.isArea,u=m?2:1;if(!(E=E&&E.slice()))return[A,A];if(c&&g&&g.length){for(I=0;I<c.length;I++){if(c[I]===g[0]){var v=I;break}if(c[0]===g[g.length-c.length+I]){v=I;var w=!0;break}if(c[c.length-1]===g[g.length-c.length+I]){v=c.length-I;break}}v===void 0&&(E=[])}if(E.length&&Z(v)){var M=A.length+v*u;w?(P(E,A),y(A,E)):(P(A,E),y(E,A))}return[E,A]},F.prototype.fillSetter=function(){F.prototype.strokeSetter.apply(this,arguments)},F.prototype.strokeSetter=function(){this.elem.attr(this.prop,U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)},F.timers=[],F}()}),_(et,"Core/Animation/AnimationUtilities.js",[et["Core/Animation/Fx.js"],et["Core/Utilities.js"]],function(G,B){function H(y){return I(y)?E({duration:500,defer:0},y):{duration:y?500:0,defer:0}}function U(y,c){for(var g=G.timers.length;g--;)G.timers[g].elem!==y||c&&c!==G.timers[g].prop||(G.timers[g].stopped=!0)}var $=B.defined,Z=B.getStyle,V=B.isArray,F=B.isNumber,I=B.isObject,E=B.merge,A=B.objectEach,P=B.pick;return{animate:function(y,c,g){var m,u,v,w="";if(!I(g)){var M=arguments;g={duration:M[2],easing:M[3],complete:M[4]}}F(g.duration)||(g.duration=400),g.easing=typeof g.easing=="function"?g.easing:Math[g.easing]||Math.easeInOutSine,g.curAnim=E(c),A(c,function(C,p){U(y,p),v=new G(y,g,p),u=void 0,p==="d"&&V(c.d)?(v.paths=v.initPath(y,y.pathArray,c.d),v.toD=c.d,m=0,u=1):y.attr?m=y.attr(p):(m=parseFloat(Z(y,p))||0,p!=="opacity"&&(w="px")),u||(u=C),typeof u=="string"&&u.match("px")&&(u=u.replace(/px/g,"")),v.run(m,u,w)})},animObject:H,getDeferredAnimation:function(y,c,g){var m=H(c),u=0,v=0;return(g?[g]:y.series).forEach(function(w){w=H(w.options.animation),u=c&&$(c.defer)?m.defer:Math.max(u,w.duration+w.defer),v=Math.min(m.duration,w.duration)}),y.renderer.forExport&&(u=0),{defer:Math.max(0,u-v),duration:Math.min(u,v)}},setAnimation:function(y,c){c.renderer.globalAnimation=P(y,c.options.chart.animation,!0)},stop:U}}),_(et,"Core/Renderer/HTML/AST.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B){var H=G.SVG_NS,U=B.attr,$=B.createElement,Z=B.css,V=B.error,F=B.isFunction,I=B.isString,E=B.objectEach,A=B.splat,P=(B=G.win.trustedTypes)&&F(B.createPolicy)&&B.createPolicy("highcharts",{createHTML:function(g){return g}}),y=P?P.createHTML(""):"";try{var c=!!new DOMParser().parseFromString(y,"text/html")}catch(g){c=!1}return F=function(){function g(m){this.nodes=typeof m=="string"?this.parseMarkup(m):m}return g.filterUserAttributes=function(m){return E(m,function(u,v){var w=!0;g.allowedAttributes.indexOf(v)===-1&&(w=!1),["background","dynsrc","href","lowsrc","src"].indexOf(v)!==-1&&(w=I(u)&&g.allowedReferences.some(function(M){return u.indexOf(M)===0})),w||(V(33,!1,void 0,{"Invalid attribute in config":"".concat(v)}),delete m[v]),I(u)&&m[v]&&(m[v]=u.replace(/</g,"<"))}),m},g.parseStyle=function(m){return m.split(";").reduce(function(u,v){v=v.split(":").map(function(M){return M.trim()});var w=v.shift();return w&&v.length&&(u[w.replace(/-([a-z])/g,function(M){return M[1].toUpperCase()})]=v.join(":")),u},{})},g.setElementHTML=function(m,u){m.innerHTML=g.emptyHTML,u&&new g(u).addToDOM(m)},g.prototype.addToDOM=function(m){return function u(v,w){var M;return A(v).forEach(function(C){var p=C.tagName,f=C.textContent?G.doc.createTextNode(C.textContent):void 0,r=g.bypassHTMLFiltering;if(p)if(p==="#text")var l=f;else if(g.allowedTags.indexOf(p)!==-1||r){p=G.doc.createElementNS(p==="svg"?H:w.namespaceURI||H,p);var t=C.attributes||{};E(C,function(i,o){o!=="tagName"&&o!=="attributes"&&o!=="children"&&o!=="style"&&o!=="textContent"&&(t[o]=i)}),U(p,r?t:g.filterUserAttributes(t)),C.style&&Z(p,C.style),f&&p.appendChild(f),u(C.children||[],p),l=p}else V(33,!1,void 0,{"Invalid tagName in config":p});l&&w.appendChild(l),M=l}),M}(this.nodes,m)},g.prototype.parseMarkup=function(m){var u=[];if(m=m.trim().replace(/ style=(["'])/g," data-style=$1"),c)m=new DOMParser().parseFromString(P?P.createHTML(m):m,"text/html");else{var v=$("div");v.innerHTML=m,m={body:v}}var w=function(M,C){var p=M.nodeName.toLowerCase(),f={tagName:p};if(p==="#text"&&(f.textContent=M.textContent||""),p=M.attributes){var r={};[].forEach.call(p,function(t){t.name==="data-style"?f.style=g.parseStyle(t.value):r[t.name]=t.value}),f.attributes=r}if(M.childNodes.length){var l=[];[].forEach.call(M.childNodes,function(t){w(t,l)}),l.length&&(f.children=l)}C.push(f)};return[].forEach.call(m.body.childNodes,function(M){return w(M,u)}),u},g.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),g.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),g.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),g.emptyHTML=y,g.bypassHTMLFiltering=!1,g}(),F}),_(et,"Core/FormatUtilities.js",[et["Core/Defaults.js"],et["Core/Utilities.js"]],function(G,B){function H(E,A,P,y){E=+E||0,A=+A;var c=U.lang,g=(E.toString().split(".")[1]||"").split("e")[0].length,m=E.toString().split("e"),u=A;if(A===-1)A=Math.min(g,20);else if(V(A)){if(A&&m[1]&&0>m[1]){var v=A+ +m[1];0<=v?(m[0]=(+m[0]).toExponential(v).split("e")[0],A=v):(m[0]=m[0].split(".")[0]||0,E=20>A?(m[0]*Math.pow(10,m[1])).toFixed(A):0,m[1]=0)}}else A=2;v=(Math.abs(m[1]?m[0]:E)+Math.pow(10,-Math.max(A,g)-1)).toFixed(A);var w=3<(g=String(I(v))).length?g.length%3:0;return P=F(P,c.decimalPoint),y=F(y,c.thousandsSep),E=(0>E?"-":"")+(w?g.substr(0,w)+y:""),E=0>+m[1]&&!u?"0":E+g.substr(w).replace(/(\d{3})(?=\d)/g,"$1"+y),A&&(E+=P+v.slice(-A)),m[1]&&+E!=0&&(E+="e"+m[1]),E}var U=G.defaultOptions,$=G.defaultTime,Z=B.getNestedProperty,V=B.isNumber,F=B.pick,I=B.pInt;return{dateFormat:function(E,A,P){return $.dateFormat(E,A,P)},format:function(E,A,P){var y="{",c=!1,g=/f$/,m=/\.([0-9])/,u=U.lang,v=P&&P.time||$;P=P&&P.numberFormatter||H;for(var w=[];E;){var M=E.indexOf(y);if(M===-1)break;var C=E.slice(0,M);if(c){if(C=C.split(":"),y=Z(C.shift()||"",A),C.length&&typeof y=="number")if(C=C.join(":"),g.test(C)){var p=parseInt((C.match(m)||["","-1"])[1],10);y!==null&&(y=P(y,p,u.decimalPoint,-1<C.indexOf(",")?u.thousandsSep:""))}else y=v.dateFormat(C,y);w.push(y)}else w.push(C);E=E.slice(M+1),y=(c=!c)?"}":"{"}return w.push(E),w.join("")},numberFormat:H}}),_(et,"Core/Renderer/RendererUtilities.js",[et["Core/Utilities.js"]],function(G){var B,H=G.clamp,U=G.pick,$=G.stableSort;return function(Z){Z.distribute=function V(F,I,E){var A,P=F,y=P.reducedLen||I,c=function(w,M){return(M.rank||0)-(w.rank||0)},g=function(w,M){return w.target-M.target},m=!0,u=[],v=0;for(A=F.length;A--;)v+=F[A].size;if(v>y){for($(F,c),v=A=0;v<=y;)v+=F[A].size,A++;u=F.splice(A-1,F.length)}for($(F,g),F=F.map(function(w){return{size:w.size,targets:[w.target],align:U(w.align,.5)}});m;){for(A=F.length;A--;)y=F[A],c=(Math.min.apply(0,y.targets)+Math.max.apply(0,y.targets))/2,y.pos=H(c-y.size*y.align,0,I-y.size);for(A=F.length,m=!1;A--;)0<A&&F[A-1].pos+F[A-1].size>F[A].pos&&(F[A-1].size+=F[A].size,F[A-1].targets=F[A-1].targets.concat(F[A].targets),F[A-1].align=.5,F[A-1].pos+F[A-1].size>I&&(F[A-1].pos=I-F[A-1].size),F.splice(A,1),m=!0)}return P.push.apply(P,u),A=0,F.some(function(w){var M=0;return(w.targets||[]).some(function(){return P[A].pos=w.pos+M,E!==void 0&&Math.abs(P[A].pos-P[A].target)>E?(P.slice(0,A+1).forEach(function(C){return delete C.pos}),P.reducedLen=(P.reducedLen||I)-.1*I,P.reducedLen>.1*I&&V(P,I,E),!0):(M+=P[A].size,A++,!1)})}),$(P,g),P}}(B||(B={})),B}),_(et,"Core/Renderer/SVG/SVGElement.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,H,U){var $=G.animate,Z=G.animObject,V=G.stop,F=H.deg2rad,I=H.doc,E=H.svg,A=H.SVG_NS,P=H.win,y=U.addEvent,c=U.attr,g=U.createElement,m=U.css,u=U.defined,v=U.erase,w=U.extend,M=U.fireEvent,C=U.isArray,p=U.isFunction,f=U.isString,r=U.merge,l=U.objectEach,t=U.pick,i=U.pInt,o=U.syncTimeout,e=U.uniqueKey;return G=function(){function a(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=A,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return a.prototype._defaultGetter=function(s){return s=t(this[s+"Value"],this[s],this.element?this.element.getAttribute(s):null,0),/^[\-0-9\.]+$/.test(s)&&(s=parseFloat(s)),s},a.prototype._defaultSetter=function(s,h,b){b.setAttribute(h,s)},a.prototype.add=function(s){var h=this.renderer,b=this.element;if(s&&(this.parentGroup=s),this.textStr!==void 0&&this.element.nodeName==="text"&&h.buildText(this),this.added=!0,!s||s.handleZ||this.zIndex)var k=this.zIndexSetter();return k||(s?s.element:h.box).appendChild(b),this.onAdd&&this.onAdd(),this},a.prototype.addClass=function(s,h){var b=h?"":this.attr("class")||"";return s=(s||"").split(/ /g).reduce(function(k,O){return b.indexOf(O)===-1&&k.push(O),k},b?[b]:[]).join(" "),s!==b&&this.attr("class",s),this},a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},a.prototype.align=function(s,h,b){var k,O,d,x={},T=this.renderer,N=T.alignedObjects;s?(this.alignOptions=s,this.alignByTranslate=h,(!b||f(b))&&(this.alignTo=k=b||"renderer",v(N,this),N.push(this),b=void 0)):(s=this.alignOptions,h=this.alignByTranslate,k=this.alignTo),b=t(b,T[k],k==="scrollablePlotBox"?T.plotBox:void 0,T),k=s.align;var z=s.verticalAlign;return T=(b.x||0)+(s.x||0),N=(b.y||0)+(s.y||0),k==="right"?O=1:k==="center"&&(O=2),O&&(T+=(b.width-(s.width||0))/O),x[h?"translateX":"x"]=Math.round(T),z==="bottom"?d=1:z==="middle"&&(d=2),d&&(N+=(b.height-(s.height||0))/d),x[h?"translateY":"y"]=Math.round(N),this[this.placed?"animate":"attr"](x),this.placed=!0,this.alignAttr=x,this},a.prototype.alignSetter=function(s){var h={left:"start",center:"middle",right:"end"};h[s]&&(this.alignValue=s,this.element.setAttribute("text-anchor",h[s]))},a.prototype.animate=function(s,h,b){var k=this,O=Z(t(h,this.renderer.globalAnimation,!0));return h=O.defer,t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(O.duration=0),O.duration!==0?(b&&(O.complete=b),o(function(){k.element&&$(k,s,O)},h)):(this.attr(s,void 0,b||O.complete),l(s,function(d,x){O.step&&O.step.call(this,d,{prop:x,pos:1,elem:this})},this)),this},a.prototype.applyTextOutline=function(s){var h=this.element;s.indexOf("contrast")!==-1&&(s=s.replace(/contrast/g,this.renderer.getContrast(h.style.fill)));var b=s.split(" ");if(s=b[b.length-1],(b=b[0])&&b!=="none"&&H.svg){this.fakeTS=!0,b=b.replace(/(^[\d\.]+)(.*?)$/g,function(d,x,T){return 2*Number(x)+T}),this.removeTextOutline();var k=I.createElementNS(A,"tspan");c(k,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":b,"stroke-linejoin":"round"}),s=h.querySelector("textPath")||h,[].forEach.call(s.childNodes,function(d){var x=d.cloneNode(!0);x.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(T){return x.removeAttribute(T)}),k.appendChild(x)});var O=0;[].forEach.call(s.querySelectorAll("text tspan"),function(d){O+=Number(d.getAttribute("dy"))}),(b=I.createElementNS(A,"tspan")).textContent="",c(b,{x:Number(h.getAttribute("x")),dy:-O}),k.appendChild(b),s.insertBefore(k,s.firstChild)}},a.prototype.attr=function(s,h,b,k){var O,d,x,T=this.element,N=this.symbolCustomAttribs,z=this;if(typeof s=="string"&&h!==void 0){var L=s;(s={})[L]=h}return typeof s=="string"?z=(this[s+"Getter"]||this._defaultGetter).call(this,s,T):(l(s,function(D,j){d=!1,k||V(this,j),this.symbolName&&N.indexOf(j)!==-1&&(O||(this.symbolAttr(s),O=!0),d=!0),!this.rotation||j!=="x"&&j!=="y"||(this.doTransform=!0),d||((x=this[j+"Setter"]||this._defaultSetter).call(this,D,j,T),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(j)&&this.updateShadows(j,D,x))},this),this.afterSetters()),b&&b.call(this),z},a.prototype.clip=function(s){return this.attr("clip-path",s?"url("+this.renderer.url+"#"+s.id+")":"none")},a.prototype.crisp=function(s,h){h=h||s.strokeWidth||0;var b=Math.round(h)%2/2;return s.x=Math.floor(s.x||this.x||0)+b,s.y=Math.floor(s.y||this.y||0)+b,s.width=Math.floor((s.width||this.width||0)-2*b),s.height=Math.floor((s.height||this.height||0)-2*b),u(s.strokeWidth)&&(s.strokeWidth=h),s},a.prototype.complexColor=function(s,h,b){var k,O,d,x,T,N,z,L,D,j,Y,X=this.renderer,W=[];M(this.renderer,"complexColor",{args:arguments},function(){if(s.radialGradient?O="radialGradient":s.linearGradient&&(O="linearGradient"),O){if(d=s[O],T=X.gradients,N=s.stops,D=b.radialReference,C(d)&&(s[O]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"}),O==="radialGradient"&&D&&!u(d.gradientUnits)&&(x=d,d=r(d,X.getRadialAttr(D,x),{gradientUnits:"userSpaceOnUse"})),l(d,function(tt,Q){Q!=="id"&&W.push(Q,tt)}),l(N,function(tt){W.push(tt)}),W=W.join(","),T[W])j=T[W].attr("id");else{d.id=j=e();var q=T[W]=X.createElement(O).attr(d).add(X.defs);q.radAttr=x,q.stops=[],N.forEach(function(tt){tt[1].indexOf("rgba")===0?(k=B.parse(tt[1]),z=k.get("rgb"),L=k.get("a")):(z=tt[1],L=1),tt=X.createElement("stop").attr({offset:tt[0],"stop-color":z,"stop-opacity":L}).add(q),q.stops.push(tt)})}Y="url("+X.url+"#"+j+")",b.setAttribute(h,Y),b.gradient=W,s.toString=function(){return Y}}})},a.prototype.css=function(s){var h=this.styles,b={},k=this.element,O=!h;if(s.color&&(s.fill=s.color),h&&l(s,function(T,N){h&&h[N]!==T&&(b[N]=T,O=!0)}),O){if(h&&(s=w(h,b)),s.width===null||s.width==="auto")delete this.textWidth;else if(k.nodeName.toLowerCase()==="text"&&s.width)var d=this.textWidth=i(s.width);this.styles=s,d&&!E&&this.renderer.forExport&&delete s.width;var x=r(s);k.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(T){return x&&delete x[T]}),m(k,x),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),s.textOutline&&this.applyTextOutline(s.textOutline))}return this},a.prototype.dashstyleSetter=function(s){var h=this["stroke-width"];if(h==="inherit"&&(h=1),s=s&&s.toLowerCase()){var b=s.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(s=b.length;s--;)b[s]=""+i(b[s])*t(h,NaN);s=b.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",s)}},a.prototype.destroy=function(){var s=this,h=s.element||{},b=s.renderer,k=h.ownerSVGElement,O=b.isSVG&&h.nodeName==="SPAN"&&s.parentGroup||void 0;if(h.onclick=h.onmouseout=h.onmouseover=h.onmousemove=h.point=null,V(s),s.clipPath&&k){var d=s.clipPath;[].forEach.call(k.querySelectorAll("[clip-path],[CLIP-PATH]"),function(x){-1<x.getAttribute("clip-path").indexOf(d.element.id)&&x.removeAttribute("clip-path")}),s.clipPath=d.destroy()}if(s.stops){for(k=0;k<s.stops.length;k++)s.stops[k].destroy();s.stops.length=0,s.stops=void 0}for(s.safeRemoveChild(h),b.styledMode||s.destroyShadows();O&&O.div&&O.div.childNodes.length===0;)h=O.parentGroup,s.safeRemoveChild(O.div),delete O.div,O=h;s.alignTo&&v(b.alignedObjects,s),l(s,function(x,T){s[T]&&s[T].parentGroup===s&&s[T].destroy&&s[T].destroy(),delete s[T]})},a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(s){this.safeRemoveChild(s)},this),this.shadows=void 0},a.prototype.dSetter=function(s,h,b){C(s)&&(typeof s[0]=="string"&&(s=this.renderer.pathToSegments(s)),this.pathArray=s,s=s.reduce(function(k,O,d){return O&&O.join?(d?k+" ":"")+O.join(" "):(O||"").toString()},"")),/(NaN| {2}|^$)/.test(s)&&(s="M 0 0"),this[h]!==s&&(b.setAttribute(h,s),this[h]=s)},a.prototype.fadeOut=function(s){var h=this;h.animate({opacity:0},{duration:t(s,150),complete:function(){h.hide()}})},a.prototype.fillSetter=function(s,h,b){typeof s=="string"?b.setAttribute(h,s):s&&this.complexColor(s,h,b)},a.prototype.getBBox=function(s,h){var b=this.alignValue,k=this.element,O=this.renderer,d=this.styles,x=this.textStr,T=O.cache,N=O.cacheKeys,z=k.namespaceURI===this.SVG_NS;h=t(h,this.rotation,0);var L,D=O.styledMode?k&&a.prototype.getStyle.call(k,"font-size"):d&&d.fontSize;if(u(x)){var j=x.toString();j.indexOf("<")===-1&&(j=j.replace(/[0-9]/g,"0")),j+=["",h,D,this.textWidth,b,d&&d.textOverflow,d&&d.fontWeight].join()}if(j&&!s&&(L=T[j]),!L){if(z||O.forExport){try{var Y=this.fakeTS&&function(W){var q=k.querySelector(".highcharts-text-outline");q&&m(q,{display:W})};p(Y)&&Y("none"),L=k.getBBox?w({},k.getBBox()):{width:k.offsetWidth,height:k.offsetHeight,x:0,y:0},p(Y)&&Y("")}catch(W){}(!L||0>L.width)&&(L={x:0,y:0,width:0,height:0})}else L=this.htmlGetBBox();if(O.isSVG&&(O=L.width,s=L.height,z&&(L.height=s={"11px,17":14,"13px,20":16}[""+(D||"")+",".concat(Math.round(s))]||s),h)){z=Number(k.getAttribute("y")||0)-L.y,b={right:1,center:.5}[b||0]||0,d=h*F,D=(h-90)*F;var X=O*Math.cos(d);h=O*Math.sin(d),Y=Math.cos(D),d=Math.sin(D),X=(Y=(D=(O=L.x+b*(O-X)+z*Y)+X)-s*Y)-X,h=(s=(b=(z=L.y+z-b*h+z*d)+h)-s*d)-h,L.x=Math.min(O,D,Y,X),L.y=Math.min(z,b,s,h),L.width=Math.max(O,D,Y,X)-L.x,L.height=Math.max(z,b,s,h)-L.y}if(j&&(x===""||0<L.height)){for(;250<N.length;)delete T[N.shift()];T[j]||N.push(j),T[j]=L}}return L},a.prototype.getStyle=function(s){return P.getComputedStyle(this.element||this,"").getPropertyValue(s)},a.prototype.hasClass=function(s){return(""+this.attr("class")).split(" ").indexOf(s)!==-1},a.prototype.hide=function(){return this.attr({visibility:"hidden"})},a.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},a.prototype.init=function(s,h){this.element=h==="span"?g(h):I.createElementNS(this.SVG_NS,h),this.renderer=s,M(this,"afterInit")},a.prototype.on=function(s,h){var b=this.onEvents;return b[s]&&b[s](),b[s]=y(this.element,s,h),this},a.prototype.opacitySetter=function(s,h,b){this.opacity=s=Number(Number(s).toFixed(3)),b.setAttribute(h,s)},a.prototype.removeClass=function(s){return this.attr("class",(""+this.attr("class")).replace(f(s)?new RegExp("(^| )".concat(s,"( |$)")):s," ").replace(/ +/g," ").trim())},a.prototype.removeTextOutline=function(){var s=this.element.querySelector("tspan.highcharts-text-outline");s&&this.safeRemoveChild(s)},a.prototype.safeRemoveChild=function(s){var h=s.parentNode;h&&h.removeChild(s)},a.prototype.setRadialReference=function(s){var h=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=s,h&&h.radAttr&&h.animate(this.renderer.getRadialAttr(s,h.radAttr)),this},a.prototype.setTextPath=function(s,h){var b=this;h=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},h);var k=this.renderer.url,O=this.text||this,d=O.textPath,x=h.attributes,T=h.enabled;return s=s||d&&d.path,d&&d.undo(),s&&T?(h=y(O,"afterModifyTree",function(N){if(s&&T){var z=s.attr("id");z||s.attr("id",z=e());var L={x:0,y:0};u(x.dx)&&(L.dx=x.dx,delete x.dx),u(x.dy)&&(L.dy=x.dy,delete x.dy),O.attr(L),b.attr({transform:""}),b.box&&(b.box=b.box.destroy()),L=N.nodes.slice(0),N.nodes.length=0,N.nodes[0]={tagName:"textPath",attributes:w(x,{"text-anchor":x.textAnchor,href:""+k+"#".concat(z)}),children:L}}}),O.textPath={path:s,undo:h}):(O.attr({dx:0,dy:0}),delete O.textPath),this.added&&(O.textCache="",this.renderer.buildText(O)),this},a.prototype.shadow=function(s,h,b){var k=[],O=this.element,d=this.oldShadowOptions,x=this.parentGroup,T=x&&x.rotation===90;x={color:"#000000",offsetX:T?-1:1,offsetY:T?-1:1,opacity:.15,width:3};var N,z=!1;if(s===!0?N=x:typeof s=="object"&&(N=w(x,s)),N&&(N&&d&&l(N,function(Y,X){Y!==d[X]&&(z=!0)}),z&&this.destroyShadows(),this.oldShadowOptions=N),N){if(!this.shadows){x=N.opacity/N.width;var L=T?"translate(".concat(N.offsetY,", ").concat(N.offsetX,")"):"translate(".concat(N.offsetX,", ").concat(N.offsetY,")");for(T=1;T<=N.width;T++){var D=O.cloneNode(!1),j=2*N.width+1-2*T;c(D,{stroke:s.color||"#000000","stroke-opacity":x*T,"stroke-width":j,transform:L,fill:"none"}),D.setAttribute("class",(D.getAttribute("class")||"")+" highcharts-shadow"),b&&(c(D,"height",Math.max(c(D,"height")-j,0)),D.cutHeight=j),h?h.element.appendChild(D):O.parentNode&&O.parentNode.insertBefore(D,O),k.push(D)}this.shadows=k}}else this.destroyShadows();return this},a.prototype.show=function(s){return s===void 0&&(s=!0),this.attr({visibility:s?"inherit":"visible"})},a.prototype["stroke-widthSetter"]=function(s,h,b){this[h]=s,b.setAttribute(h,s)},a.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var s=this.getStyle("stroke-width"),h=0;if(s.indexOf("px")===s.length-2)h=i(s);else if(s!==""){var b=I.createElementNS(A,"rect");c(b,{width:s,"stroke-width":0}),this.element.parentNode.appendChild(b),h=b.getBBox().width,b.parentNode.removeChild(b)}return h},a.prototype.symbolAttr=function(s){var h=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(b){h[b]=t(s[b],h[b])}),h.attr({d:h.renderer.symbols[h.symbolName](h.x,h.y,h.width,h.height,h)})},a.prototype.textSetter=function(s){s!==this.textStr&&(delete this.textPxLength,this.textStr=s,this.added&&this.renderer.buildText(this))},a.prototype.titleSetter=function(s){var h=this.element,b=h.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");h.insertBefore?h.insertBefore(b,h.firstChild):h.appendChild(b),b.textContent=String(t(s,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},a.prototype.toFront=function(){var s=this.element;return s.parentNode.appendChild(s),this},a.prototype.translate=function(s,h){return this.attr({translateX:s,translateY:h})},a.prototype.updateShadows=function(s,h,b){var k=this.shadows;if(k)for(var O=k.length;O--;)b.call(k[O],s==="height"?Math.max(h-(k[O].cutHeight||0),0):s==="d"?this.d:h,s,k[O])},a.prototype.updateTransform=function(){var s=this.element,h=this.matrix,b=this.rotation;b=b===void 0?0:b;var k=this.scaleX,O=this.scaleY,d=this.translateX,x=this.translateY;d=["translate("+(d===void 0?0:d)+","+(x===void 0?0:x)+")"],u(h)&&d.push("matrix("+h.join(",")+")"),b&&d.push("rotate("+b+" "+t(this.rotationOriginX,s.getAttribute("x"),0)+" "+t(this.rotationOriginY,s.getAttribute("y")||0)+")"),(u(k)||u(O))&&d.push("scale("+t(k,1)+" "+t(O,1)+")"),d.length&&!(this.text||this).textPath&&s.setAttribute("transform",d.join(" "))},a.prototype.visibilitySetter=function(s,h,b){s==="inherit"?b.removeAttribute(h):this[h]!==s&&b.setAttribute(h,s),this[h]=s},a.prototype.xGetter=function(s){return this.element.nodeName==="circle"&&(s==="x"?s="cx":s==="y"&&(s="cy")),this._defaultGetter(s)},a.prototype.zIndexSetter=function(s,h){var b=this.renderer,k=this.parentGroup,O=(k||b).element||b.box,d=this.element;b=O===b.box;var x,T=!1,N=this.added;if(u(s)?(d.setAttribute("data-z-index",s),s=+s,this[h]===s&&(N=!1)):u(this[h])&&d.removeAttribute("data-z-index"),this[h]=s,N){for((s=this.zIndex)&&k&&(k.handleZ=!0),x=(h=O.childNodes).length-1;0<=x&&!T;x--){N=(k=h[x]).getAttribute("data-z-index");var z=!u(N);k!==d&&(0>s&&z&&!b&&!x?(O.insertBefore(d,h[x]),T=!0):(i(N)<=s||z&&(!u(s)||0<=s))&&(O.insertBefore(d,h[x+1]||null),T=!0))}T||(O.insertBefore(d,h[b?3:0]||null),T=!0)}return T},a}(),G.prototype.strokeSetter=G.prototype.fillSetter,G.prototype.yGetter=G.prototype.xGetter,G.prototype.matrixSetter=G.prototype.rotationOriginXSetter=G.prototype.rotationOriginYSetter=G.prototype.rotationSetter=G.prototype.scaleXSetter=G.prototype.scaleYSetter=G.prototype.translateXSetter=G.prototype.translateYSetter=G.prototype.verticalAlignSetter=function(a,s){this[s]=a,this.doTransform=!0},G}),_(et,"Core/Renderer/RendererRegistry.js",[et["Core/Globals.js"]],function(G){var B;return function(H){var U;H.rendererTypes={},H.getRendererType=function($){return $===void 0&&($=U),H.rendererTypes[$]||H.rendererTypes[U]},H.registerRendererType=function($,Z,V){H.rendererTypes[$]=Z,U&&!V||(U=$,G.Renderer=Z)}}(B||(B={})),B}),_(et,"Core/Renderer/SVG/SVGLabel.js",[et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(G,B){var H=this&&this.__extends||function(){var E=function(A,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},E(A,P)};return function(A,P){function y(){this.constructor=A}E(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),U=B.defined,$=B.extend,Z=B.isNumber,V=B.merge,F=B.pick,I=B.removeEvent;return function(E){function A(P,y,c,g,m,u,v,w,M,C){var p,f=E.call(this)||this;return f.paddingLeftSetter=f.paddingSetter,f.paddingRightSetter=f.paddingSetter,f.init(P,"g"),f.textStr=y,f.x=c,f.y=g,f.anchorX=u,f.anchorY=v,f.baseline=M,f.className=C,f.addClass(C==="button"?"highcharts-no-tooltip":"highcharts-label"),C&&f.addClass("highcharts-"+C),f.text=P.text(void 0,0,0,w).attr({zIndex:1}),typeof m=="string"&&((p=/^url\((.*?)\)$/.test(m))||f.renderer.symbols[m])&&(f.symbolKey=m),f.bBox=A.emptyBBox,f.padding=3,f.baselineOffset=0,f.needsBox=P.styledMode||p,f.deferredAttr={},f.alignFactor=0,f}return H(A,E),A.prototype.alignSetter=function(P){(P={left:0,center:.5,right:1}[P])!==this.alignFactor&&(this.alignFactor=P,this.bBox&&Z(this.xSetting)&&this.attr({x:this.xSetting}))},A.prototype.anchorXSetter=function(P,y){this.anchorX=P,this.boxAttr(y,Math.round(P)-this.getCrispAdjust()-this.xSetting)},A.prototype.anchorYSetter=function(P,y){this.anchorY=P,this.boxAttr(y,P-this.ySetting)},A.prototype.boxAttr=function(P,y){this.box?this.box.attr(P,y):this.deferredAttr[P]=y},A.prototype.css=function(P){if(P){var y={};P=V(P),A.textProps.forEach(function(c){P[c]!==void 0&&(y[c]=P[c],delete P[c])}),this.text.css(y),"fontSize"in y||"fontWeight"in y?this.updateTextPadding():("width"in y||"textOverflow"in y)&&this.updateBoxSize()}return G.prototype.css.call(this,P)},A.prototype.destroy=function(){I(this.element,"mouseenter"),I(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),G.prototype.destroy.call(this)},A.prototype.fillSetter=function(P,y){P&&(this.needsBox=!0),this.fill=P,this.boxAttr(y,P)},A.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var P=this.padding,y=F(this.paddingLeft,P);return{width:this.width,height:this.height,x:this.bBox.x-y,y:this.bBox.y-P}},A.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},A.prototype.heightSetter=function(P){this.heightSetting=P},A.prototype.onAdd=function(){this.text.add(this),this.attr({text:F(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&U(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},A.prototype.paddingSetter=function(P,y){Z(P)?P!==this[y]&&(this[y]=P,this.updateTextPadding()):this[y]=void 0},A.prototype.rSetter=function(P,y){this.boxAttr(y,P)},A.prototype.shadow=function(P){return P&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(P)),this},A.prototype.strokeSetter=function(P,y){this.stroke=P,this.boxAttr(y,P)},A.prototype["stroke-widthSetter"]=function(P,y){P&&(this.needsBox=!0),this["stroke-width"]=P,this.boxAttr(y,P)},A.prototype["text-alignSetter"]=function(P){this.textAlign=P},A.prototype.textSetter=function(P){P!==void 0&&this.text.attr({text:P}),this.updateTextPadding()},A.prototype.updateBoxSize=function(){var P=this.text,y=P.element.style,c={},g=this.padding,m=this.bBox=Z(this.widthSetting)&&Z(this.heightSetting)&&!this.textAlign||!U(P.textStr)?A.emptyBBox:P.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||m.height||0)+2*g,y=this.renderer.fontMetrics(y&&y.fontSize,P),this.baselineOffset=g+Math.min((this.text.firstLineMetrics||y).b,m.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-y.h)/2),this.needsBox&&!P.textPath&&(this.box||((P=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),P.add(this)),P=this.getCrispAdjust(),c.x=P,c.y=(this.baseline?-this.baselineOffset:0)+P,c.width=Math.round(this.width),c.height=Math.round(this.height),this.box.attr($(c,this.deferredAttr)),this.deferredAttr={})},A.prototype.updateTextPadding=function(){var P=this.text;if(!P.textPath){this.updateBoxSize();var y=this.baseline?0:this.baselineOffset,c=F(this.paddingLeft,this.padding);U(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(c+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),c===P.x&&y===P.y||(P.attr("x",c),P.hasBoxWidthChanged&&(this.bBox=P.getBBox(!0)),y!==void 0&&P.attr("y",y)),P.x=c,P.y=y}},A.prototype.widthSetter=function(P){this.widthSetting=Z(P)?P:void 0},A.prototype.getPaddedWidth=function(){var P=this.padding,y=F(this.paddingLeft,P);return P=F(this.paddingRight,P),(this.widthSetting||this.bBox.width||0)+y+P},A.prototype.xSetter=function(P){this.x=P,this.alignFactor&&(P-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(P),this.attr("translateX",this.xSetting)},A.prototype.ySetter=function(P){this.ySetting=this.y=Math.round(P),this.attr("translateY",this.ySetting)},A.emptyBBox={width:0,height:0,x:0,y:0},A.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),A}(G)}),_(et,"Core/Renderer/SVG/Symbols.js",[et["Core/Utilities.js"]],function(G){function B(F,I,E,A,P){var y=[];if(P){var c=P.start||0,g=V(P.r,E);E=V(P.r,A||E);var m=(P.end||0)-.001;A=P.innerR;var u=V(P.open,.001>Math.abs((P.end||0)-c-2*Math.PI)),v=Math.cos(c),w=Math.sin(c),M=Math.cos(m),C=Math.sin(m);c=V(P.longArc,.001>m-c-Math.PI?0:1),y.push(["M",F+g*v,I+E*w],["A",g,E,0,c,V(P.clockwise,1),F+g*M,I+E*C]),$(A)&&y.push(u?["M",F+A*M,I+A*C]:["L",F+A*M,I+A*C],["A",A,A,0,c,$(P.clockwise)?1-P.clockwise:0,F+A*v,I+A*w]),u||y.push(["Z"])}return y}function H(F,I,E,A,P){return P&&P.r?U(F,I,E,A,P):[["M",F,I],["L",F+E,I],["L",F+E,I+A],["L",F,I+A],["Z"]]}function U(F,I,E,A,P){return[["M",F+(P=P&&P.r||0),I],["L",F+E-P,I],["C",F+E,I,F+E,I,F+E,I+P],["L",F+E,I+A-P],["C",F+E,I+A,F+E,I+A,F+E-P,I+A],["L",F+P,I+A],["C",F,I+A,F,I+A,F,I+A-P],["L",F,I+P],["C",F,I,F,I,F+P,I]]}var $=G.defined,Z=G.isNumber,V=G.pick;return{arc:B,callout:function(F,I,E,A,P){var y=Math.min(P&&P.r||0,E,A),c=y+6,g=P&&P.anchorX;P=P&&P.anchorY||0;var m=U(F,I,E,A,{r:y});return Z(g)&&(F+g>=E?P>I+c&&P<I+A-c?m.splice(3,1,["L",F+E,P-6],["L",F+E+6,P],["L",F+E,P+6],["L",F+E,I+A-y]):m.splice(3,1,["L",F+E,A/2],["L",g,P],["L",F+E,A/2],["L",F+E,I+A-y]):0>=F+g?P>I+c&&P<I+A-c?m.splice(7,1,["L",F,P+6],["L",F-6,P],["L",F,P-6],["L",F,I+y]):m.splice(7,1,["L",F,A/2],["L",g,P],["L",F,A/2],["L",F,I+y]):P&&P>A&&g>F+c&&g<F+E-c?m.splice(5,1,["L",g+6,I+A],["L",g,I+A+6],["L",g-6,I+A],["L",F+y,I+A]):P&&0>P&&g>F+c&&g<F+E-c&&m.splice(1,1,["L",g-6,I],["L",g,I-6],["L",g+6,I],["L",E-y,I])),m},circle:function(F,I,E,A){return B(F+E/2,I+A/2,E/2,A/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(F,I,E,A){return[["M",F+E/2,I],["L",F+E,I+A/2],["L",F+E/2,I+A],["L",F,I+A/2],["Z"]]},rect:H,roundedRect:U,square:H,triangle:function(F,I,E,A){return[["M",F+E/2,I],["L",F+E,I+A],["L",F,I+A],["Z"]]},"triangle-down":function(F,I,E,A){return[["M",F,I],["L",F+E,I],["L",F+E/2,I+A],["Z"]]}}}),_(et,"Core/Renderer/SVG/TextBuilder.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,H){var U=B.doc,$=B.SVG_NS,Z=B.win,V=H.attr,F=H.extend,I=H.fireEvent,E=H.isString,A=H.objectEach,P=H.pick;return function(){function y(c){var g=c.styles;this.renderer=c.renderer,this.svgElement=c,this.width=c.textWidth,this.textLineHeight=g&&g.lineHeight,this.textOutline=g&&g.textOutline,this.ellipsis=!(!g||g.textOverflow!=="ellipsis"),this.noWrap=!(!g||g.whiteSpace!=="nowrap"),this.fontSize=g&&g.fontSize}return y.prototype.buildSVG=function(){var c=this.svgElement,g=c.element,m=c.renderer,u=P(c.textStr,"").toString(),v=u.indexOf("<")!==-1,w=g.childNodes;m=this.width&&!c.added&&m.box;var M=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(M!==c.textCache){for(c.textCache=M,delete c.actualWidth,M=w.length;M--;)g.removeChild(w[M]);v||this.ellipsis||this.width||c.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(u))?u!==""&&(m&&m.appendChild(g),u=new G(u),this.modifyTree(u.nodes),u.addToDOM(g),this.modifyDOM(),this.ellipsis&&(g.textContent||"").indexOf("…")!==-1&&c.attr("title",this.unescapeEntities(c.textStr||"",["<",">"])),m&&m.removeChild(g)):g.appendChild(U.createTextNode(this.unescapeEntities(u))),E(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var c,g=this,m=this.svgElement,u=V(m.element,"x");for(m.firstLineMetrics=void 0;(c=m.element.firstChild)&&/^[\s\u200B]*$/.test(c.textContent||" ");)m.element.removeChild(c);[].forEach.call(m.element.querySelectorAll("tspan.highcharts-br"),function(C,p){C.nextSibling&&C.previousSibling&&(p===0&&C.previousSibling.nodeType===1&&(m.firstLineMetrics=m.renderer.fontMetrics(void 0,C.previousSibling)),V(C,{dy:g.getLineHeight(C.nextSibling),x:u}))});var v=this.width||0;if(v){var w=function(C,p){var f=C.textContent||"",r=f.replace(/([^\^])-/g,"$1- ").split(" "),l=!g.noWrap&&(1<r.length||1<m.element.childNodes.length),t=g.getLineHeight(p),i=0,o=m.actualWidth;if(g.ellipsis)f&&g.truncate(C,f,void 0,0,Math.max(0,v-parseInt(g.fontSize||12,10)),function(e,a){return e.substring(0,a)+"…"});else if(l){for(f=[],l=[];p.firstChild&&p.firstChild!==C;)l.push(p.firstChild),p.removeChild(p.firstChild);for(;r.length;)r.length&&!g.noWrap&&0<i&&(f.push(C.textContent||""),C.textContent=r.join(" ").replace(/- /g,"-")),g.truncate(C,void 0,r,i===0&&o||0,v,function(e,a){return r.slice(0,a).join(" ").replace(/- /g,"-")}),o=m.actualWidth,i++;l.forEach(function(e){p.insertBefore(e,C)}),f.forEach(function(e){p.insertBefore(U.createTextNode(e),C),(e=U.createElementNS($,"tspan")).textContent="",V(e,{dy:t,x:u}),p.insertBefore(e,C)})}},M=function(C){[].slice.call(C.childNodes).forEach(function(p){p.nodeType===Z.Node.TEXT_NODE?w(p,C):(p.className.baseVal.indexOf("highcharts-br")!==-1&&(m.actualWidth=0),M(p))})};M(m.element)}},y.prototype.getLineHeight=function(c){var g;return c=c.nodeType===Z.Node.TEXT_NODE?c.parentElement:c,this.renderer.styledMode||(g=c&&/(px|em)$/.test(c.style.fontSize)?c.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(g,c||this.svgElement.element).h},y.prototype.modifyTree=function(c){var g=this,m=function(u,v){var w=u.attributes;w=w===void 0?{}:w;var M=u.children,C=u.style;C=C===void 0?{}:C;var p=u.tagName,f=g.renderer.styledMode;p==="b"||p==="strong"?f?w.class="highcharts-strong":C.fontWeight="bold":p!=="i"&&p!=="em"||(f?w.class="highcharts-emphasized":C.fontStyle="italic"),C&&C.color&&(C.fill=C.color),p==="br"?(w.class="highcharts-br",u.textContent="",(v=c[v+1])&&v.textContent&&(v.textContent=v.textContent.replace(/^ +/gm,""))):p==="a"&&M&&M.some(function(r){return r.tagName==="#text"})&&(u.children=[{children:M,tagName:"tspan"}]),p!=="#text"&&p!=="a"&&(u.tagName="tspan"),F(u,{attributes:w,style:C}),M&&M.filter(function(r){return r.tagName!=="#text"}).forEach(m)};c.forEach(m),I(this.svgElement,"afterModifyTree",{nodes:c})},y.prototype.truncate=function(c,g,m,u,v,w){var M,C=this.svgElement,p=C.renderer,f=C.rotation,r=[],l=m?1:0,t=(g||m||"").length,i=t,o=function(a,s){s=s||a;var h=c.parentNode;if(h&&r[s]===void 0)if(h.getSubStringLength)try{r[s]=u+h.getSubStringLength(0,m?s+1:s)}catch(b){}else p.getSpanWidth&&(c.textContent=w(g||m,a),r[s]=u+p.getSpanWidth(C,c));return r[s]};C.rotation=0;var e=o(c.textContent.length);if(u+e>v){for(;l<=t;)i=Math.ceil((l+t)/2),m&&(M=w(m,i)),e=o(i,M&&M.length-1),l===t?l=t+1:e>v?t=i-1:l=i;t===0?c.textContent="":g&&t===g.length-1||(c.textContent=M||w(g||m,i))}m&&m.splice(0,i),C.actualWidth=e,C.rotation=f},y.prototype.unescapeEntities=function(c,g){return A(this.renderer.escapes,function(m,u){g&&g.indexOf(m)!==-1||(c=c.toString().replace(new RegExp(m,"g"),u))}),c},y}()}),_(et,"Core/Renderer/SVG/SVGRenderer.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGLabel.js"],et["Core/Renderer/SVG/Symbols.js"],et["Core/Renderer/SVG/TextBuilder.js"],et["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I){var E,A=H.charts,P=H.deg2rad,y=H.doc,c=H.isFirefox,g=H.isMS,m=H.isWebKit,u=H.noop,v=H.SVG_NS,w=H.symbolSizes,M=H.win,C=I.addEvent,p=I.attr,f=I.createElement,r=I.css,l=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,a=I.isObject,s=I.isString,h=I.merge,b=I.pick,k=I.pInt,O=I.uniqueKey;return H=function(){function d(x,T,N,z,L,D,j){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(x,T,N,z,L,D,j)}return d.prototype.init=function(x,T,N,z,L,D,j){var Y,X=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),W=X.element;j||X.css(this.getStyle(z)),x.appendChild(W),p(x,"dir","ltr"),x.innerHTML.indexOf("xmlns")===-1&&p(W,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=W,this.boxWrapper=X,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=D,this.forExport=L,this.styledMode=j,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(T,N,!1),c&&x.getBoundingClientRect&&((T=function(){r(x,{left:0,top:0}),Y=x.getBoundingClientRect(),r(x,{left:Math.ceil(Y.left)-Y.left+"px",top:Math.ceil(Y.top)-Y.top+"px"})})(),this.unSubPixelFix=C(M,"resize",T))},d.prototype.definition=function(x){return new G([x]).addToDOM(this.defs.element)},d.prototype.getReferenceURL=function(){if((c||m)&&y.getElementsByTagName("base").length){if(!l(E)){var x=O();x=new G([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:x},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(x,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body),r(x,{position:"fixed",top:0,left:0,zIndex:9e5});var T=y.elementFromPoint(6,6);E=(T&&T.id)==="hitme",y.body.removeChild(x)}if(E)return M.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},d.prototype.getStyle=function(x){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},x)},d.prototype.setStyle=function(x){this.boxWrapper.css(this.getStyle(x))},d.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},d.prototype.destroy=function(){var x=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),t(this.gradients||{}),this.gradients=null,x&&(this.defs=x.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},d.prototype.createElement=function(x){var T=new this.Element;return T.init(this,x),T},d.prototype.getRadialAttr=function(x,T){return{cx:x[0]-x[2]/2+(T.cx||0)*x[2],cy:x[1]-x[2]/2+(T.cy||0)*x[2],r:(T.r||0)*x[2]}},d.prototype.buildText=function(x){new F(x).buildSVG()},d.prototype.getContrast=function(x){return 1.05/(.05+(x=.2126*(x=B.parse(x).rgba.map(function(T){return .03928>=(T/=255)?T/12.92:Math.pow((T+.055)/1.055,2.4)}))[0]+.7152*x[1]+.0722*x[2]))>(x+.05)/.05?"#FFFFFF":"#000000"},d.prototype.button=function(x,T,N,z,L,D,j,Y,X,W){L===void 0&&(L={});var q=this.label(x,T,N,X,void 0,void 0,W,void 0,"button"),tt=this.styledMode;x=L.states||{};var Q=0;delete(L=h(L)).states;var nt=h({color:"#333333",cursor:"pointer",fontWeight:"normal"},L.style);delete L.style;var lt=G.filterUserAttributes(L);if(q.attr(h({padding:8,r:2},lt)),!tt){lt=h({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},lt);var gt=(D=h(lt,{fill:"#e6e6e6"},G.filterUserAttributes(D||x.hover||{}))).style;delete D.style;var mt=(j=h(lt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},G.filterUserAttributes(j||x.select||{}))).style;delete j.style;var bt=(Y=h(lt,{style:{color:"#cccccc"}},G.filterUserAttributes(Y||x.disabled||{}))).style;delete Y.style}return C(q.element,g?"mouseover":"mouseenter",function(){Q!==3&&q.setState(1)}),C(q.element,g?"mouseout":"mouseleave",function(){Q!==3&&q.setState(Q)}),q.setState=function(yt){yt!==1&&(q.state=Q=yt),q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][yt||0]),tt||(q.attr([lt,D,j,Y][yt||0]),a(yt=[nt,gt,mt,bt][yt||0])&&q.css(yt))},tt||(q.attr(lt).css(i({cursor:"default"},nt)),W&&q.text.css({pointerEvents:"none"})),q.on("touchstart",function(yt){return yt.stopPropagation()}).on("click",function(yt){Q!==3&&z.call(q,yt)})},d.prototype.crispLine=function(x,T,N){N===void 0&&(N="round");var z=x[0],L=x[1];return l(z[1])&&z[1]===L[1]&&(z[1]=L[1]=Math[N](z[1])-T%2/2),l(z[2])&&z[2]===L[2]&&(z[2]=L[2]=Math[N](z[2])+T%2/2),x},d.prototype.path=function(x){var T=this.styledMode?{}:{fill:"none"};return o(x)?T.d=x:a(x)&&i(T,x),this.createElement("path").attr(T)},d.prototype.circle=function(x,T,N){return x=a(x)?x:x===void 0?{}:{x,y:T,r:N},(T=this.createElement("circle")).xSetter=T.ySetter=function(z,L,D){D.setAttribute("c"+L,z)},T.attr(x)},d.prototype.arc=function(x,T,N,z,L,D){return a(x)?(T=(z=x).y,N=z.r,x=z.x):z={innerR:z,start:L,end:D},(x=this.symbol("arc",x,T,N,N,z)).r=N,x},d.prototype.rect=function(x,T,N,z,L,D){L=a(x)?x.r:L;var j=this.createElement("rect");return x=a(x)?x:x===void 0?{}:{x,y:T,width:Math.max(N,0),height:Math.max(z,0)},this.styledMode||(D!==void 0&&(x["stroke-width"]=D,x=j.crisp(x)),x.fill="none"),L&&(x.r=L),j.rSetter=function(Y,X,W){j.r=Y,p(W,{rx:Y,ry:Y})},j.rGetter=function(){return j.r||0},j.attr(x)},d.prototype.setSize=function(x,T,N){this.width=x,this.height=T,this.boxWrapper.animate({width:x,height:T},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(N,!0)?void 0:0}),this.alignElements()},d.prototype.g=function(x){var T=this.createElement("g");return x?T.attr({class:"highcharts-"+x}):T},d.prototype.image=function(x,T,N,z,L,D){var j={preserveAspectRatio:"none"},Y=function(W,q){W.setAttributeNS?W.setAttributeNS("http://www.w3.org/1999/xlink","href",q):W.setAttribute("hc-svg-href",q)};e(T)&&(j.x=T),e(N)&&(j.y=N),e(z)&&(j.width=z),e(L)&&(j.height=L);var X=this.createElement("image").attr(j);return T=function(W){Y(X.element,x),D.call(X,W)},D?(Y(X.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),N=new M.Image,C(N,"load",T),N.src=x,N.complete&&T({})):Y(X.element,x),X},d.prototype.symbol=function(x,T,N,z,L,D){var j,Y=this,X=/^url\((.*?)\)$/,W=X.test(x),q=!W&&(this.symbols[x]?x:"circle"),tt=q&&this.symbols[q];if(tt){typeof T=="number"&&(j=tt.call(this.symbols,Math.round(T||0),Math.round(N||0),z||0,L||0,D));var Q=this.path(j);Y.styledMode||Q.attr("fill","none"),i(Q,{symbolName:q||void 0,x:T,y:N,width:z,height:L}),D&&i(Q,D)}else if(W){var nt=x.match(X)[1],lt=Q=this.image(nt);lt.imgwidth=b(w[nt]&&w[nt].width,D&&D.width),lt.imgheight=b(w[nt]&&w[nt].height,D&&D.height);var gt=function(mt){return mt.attr({width:mt.width,height:mt.height})};["width","height"].forEach(function(mt){lt[mt+"Setter"]=function(bt,yt){this[yt]=bt,bt=this.alignByTranslate;var dt=this.element,ot=this.width,at=this.height,ut=this.imgwidth,vt=this.imgheight,Ct=this["img"+yt];if(l(Ct)){var xt=1;D&&D.backgroundSize==="within"&&ot&&at?(xt=Math.min(ot/ut,at/vt),Ct=Math.round(Ct*xt),p(dt,{width:Math.round(ut*xt),height:Math.round(vt*xt)})):dt&&dt.setAttribute(yt,Ct),bt||this.translate(((ot||0)-Ct*xt)/2,((at||0)-Ct*xt)/2)}}}),l(T)&<.attr({x:T,y:N}),lt.isImg=!0,l(lt.imgwidth)&&l(lt.imgheight)?gt(lt):(lt.attr({width:0,height:0}),f("img",{onload:function(){var mt=A[Y.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),w[nt]={width:this.width,height:this.height},lt.imgwidth=this.width,lt.imgheight=this.height,lt.element&>(lt),this.parentNode&&this.parentNode.removeChild(this),Y.imgCount--,Y.imgCount||!mt||mt.hasLoaded||mt.onload()},src:nt}),this.imgCount++)}return Q},d.prototype.clipRect=function(x,T,N,z){var L=O()+"-",D=this.createElement("clipPath").attr({id:L}).add(this.defs);return(x=this.rect(x,T,N,z,0).add(D)).id=L,x.clipPath=D,x.count=0,x},d.prototype.text=function(x,T,N,z){var L={};return!z||!this.allowHTML&&this.forExport?(L.x=Math.round(T||0),N&&(L.y=Math.round(N)),l(x)&&(L.text=x),x=this.createElement("text").attr(L),(!z||this.forExport&&!this.allowHTML)&&(x.xSetter=function(D,j,Y){for(var X,W=Y.getElementsByTagName("tspan"),q=Y.getAttribute(j),tt=0;tt<W.length;tt++)(X=W[tt]).getAttribute(j)===q&&X.setAttribute(j,D);Y.setAttribute(j,D)}),x):this.html(x,T,N)},d.prototype.fontMetrics=function(x,T){return x=!this.styledMode&&/px/.test(x)||!M.getComputedStyle?x||T&&T.style&&T.style.fontSize||this.style&&this.style.fontSize:T&&$.prototype.getStyle.call(T,"font-size"),{h:T=24>(x=/px/.test(x)?k(x):12)?x+3:Math.round(1.2*x),b:Math.round(.8*T),f:x}},d.prototype.rotCorr=function(x,T,N){var z=x;return T&&N&&(z=Math.max(z*Math.cos(T*P),4)),{x:-x/3*Math.sin(T*P),y:z}},d.prototype.pathToSegments=function(x){for(var T=[],N=[],z={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},L=0;L<x.length;L++)s(N[0])&&e(x[L])&&N.length===z[N[0].toUpperCase()]&&x.splice(L,0,N[0].replace("M","L").replace("m","l")),typeof x[L]=="string"&&(N.length&&T.push(N.slice(0)),N.length=0),N.push(x[L]);return T.push(N.slice(0)),T},d.prototype.label=function(x,T,N,z,L,D,j,Y,X){return new Z(this,x,T,N,z,L,D,j,Y,X)},d.prototype.alignElements=function(){this.alignedObjects.forEach(function(x){return x.align()})},d}(),i(H.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:V,draw:u}),U.registerRendererType("svg",H,!0),H}),_(et,"Core/Renderer/HTML/HTMLElement.js",[et["Core/Globals.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(G,B,H){var U=this&&this.__extends||function(){var c=function(g,m){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var w in v)v.hasOwnProperty(w)&&(u[w]=v[w])},c(g,m)};return function(g,m){function u(){this.constructor=g}c(g,m),g.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}}(),$=G.isFirefox,Z=G.isMS,V=G.isWebKit,F=G.win,I=H.css,E=H.defined,A=H.extend,P=H.pick,y=H.pInt;return function(c){function g(){return c!==null&&c.apply(this,arguments)||this}return U(g,c),g.compose=function(m){if(g.composedClasses.indexOf(m)===-1){g.composedClasses.push(m);var u=g.prototype,v=m.prototype;v.getSpanCorrection=u.getSpanCorrection,v.htmlCss=u.htmlCss,v.htmlGetBBox=u.htmlGetBBox,v.htmlUpdateTransform=u.htmlUpdateTransform,v.setSpanRotation=u.setSpanRotation}return m},g.prototype.getSpanCorrection=function(m,u,v){this.xCorr=-m*v,this.yCorr=-u},g.prototype.htmlCss=function(m){var u=this.element.tagName==="SPAN"&&m&&"width"in m,v=P(u&&m.width,void 0);if(u){delete m.width,this.textWidth=v;var w=!0}return m&&m.textOverflow==="ellipsis"&&(m.whiteSpace="nowrap",m.overflow="hidden"),this.styles=A(this.styles,m),I(this.element,m),w&&this.htmlUpdateTransform(),this},g.prototype.htmlGetBBox=function(){var m=this.element;return{x:m.offsetLeft,y:m.offsetTop,width:m.offsetWidth,height:m.offsetHeight}},g.prototype.htmlUpdateTransform=function(){if(this.added){var m=this.renderer,u=this.element,v=this.translateX||0,w=this.translateY||0,M=this.x||0,C=this.y||0,p=this.textAlign||"left",f={left:0,center:.5,right:1}[p],r=this.styles;if(r=r&&r.whiteSpace,I(u,{marginLeft:v,marginTop:w}),!m.styledMode&&this.shadows&&this.shadows.forEach(function(a){I(a,{marginLeft:v+1,marginTop:w+1})}),this.inverted&&[].forEach.call(u.childNodes,function(a){m.invertChild(a,u)}),u.tagName==="SPAN"){var l=this.rotation,t=this.textWidth&&y(this.textWidth),i=[l,p,u.innerHTML,this.textWidth,this.textAlign].join(),o=void 0;if(o=!1,t!==this.oldTextWidth){if(this.textPxLength)var e=this.textPxLength;else I(u,{width:"",whiteSpace:r||"nowrap"}),e=u.offsetWidth;(t>this.oldTextWidth||e>t)&&(/[ \-]/.test(u.textContent||u.innerText)||u.style.textOverflow==="ellipsis")&&(I(u,{width:e>t||l?t+"px":"auto",display:"block",whiteSpace:r||"normal"}),this.oldTextWidth=t,o=!0)}this.hasBoxWidthChanged=o,i!==this.cTT&&(o=m.fontMetrics(u.style.fontSize,u).b,!E(l)||l===(this.oldRotation||0)&&p===this.oldAlign||this.setSpanRotation(l,f,o),this.getSpanCorrection(!E(l)&&this.textPxLength||u.offsetWidth,o,f,l,p)),I(u,{left:M+(this.xCorr||0)+"px",top:C+(this.yCorr||0)+"px"}),this.cTT=i,this.oldRotation=l,this.oldAlign=p}}else this.alignOnAdd=!0},g.prototype.setSpanRotation=function(m,u,v){var w={},M=Z&&!/Edge/.test(F.navigator.userAgent)?"-ms-transform":V?"-webkit-transform":$?"MozTransform":F.opera?"-o-transform":void 0;M&&(w[M]=w.transform="rotate("+m+"deg)",w[M+($?"Origin":"-origin")]=w.transformOrigin=100*u+"% "+v+"px",I(this.element,w))},g.composedClasses=[],g}(B)}),_(et,"Core/Renderer/HTML/HTMLRenderer.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Utilities.js"]],function(G,B,H,U){var $=this&&this.__extends||function(){var E=function(A,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},E(A,P)};return function(A,P){function y(){this.constructor=A}E(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),Z=U.attr,V=U.createElement,F=U.extend,I=U.pick;return function(E){function A(){return E!==null&&E.apply(this,arguments)||this}return $(A,E),A.compose=function(P){return A.composedClasses.indexOf(P)===-1&&(A.composedClasses.push(P),P.prototype.html=A.prototype.html),P},A.prototype.html=function(P,y,c){var g=this.createElement("span"),m=g.element,u=g.renderer,v=u.isSVG,w=function(M,C){["opacity","visibility"].forEach(function(p){M[p+"Setter"]=function(f,r,l){var t=M.div?M.div.style:C;B.prototype[p+"Setter"].call(this,f,r,l),t&&(t[r]=f)}}),M.addedSetters=!0};return g.textSetter=function(M){M!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,G.setElementHTML(this.element,I(M,"")),this.textStr=M,g.doTransform=!0)},v&&w(g,g.element.style),g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(M,C){C==="align"?g.alignValue=g.textAlign=M:g[C]=M,g.doTransform=!0},g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},g.attr({text:P,x:Math.round(y),y:Math.round(c)}).css({position:"absolute"}),u.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),m.style.whiteSpace="nowrap",g.css=g.htmlCss,v&&(g.add=function(M){var C=u.box.parentNode,p=[];if(this.parentGroup=M){var f=M.div;if(!f){for(;M;)p.push(M),M=M.parentGroup;p.reverse().forEach(function(r){function l(e,a){r[a]=e,a==="translateX"?o.left=e+"px":o.top=e+"px",r.doTransform=!0}var t=Z(r.element,"class"),i=r.styles||{},o=(f=r.div=r.div||V("div",t?{className:t}:void 0,{position:"absolute",left:(r.translateX||0)+"px",top:(r.translateY||0)+"px",display:r.display,opacity:r.opacity,cursor:i.cursor,pointerEvents:i.pointerEvents,visibility:r.visibility},f||C)).style;F(r,{classSetter:function(e){return function(a){this.element.setAttribute("class",a),e.className=a}}(f),on:function(){return p[0].div&&g.on.apply({element:p[0].div,onEvents:r.onEvents},arguments),r},translateXSetter:l,translateYSetter:l}),r.addedSetters||w(r)})}}else f=C;return f.appendChild(m),g.added=!0,g.alignOnAdd&&g.htmlUpdateTransform(),g}),g},A.composedClasses=[],A}(H)}),_(et,"Core/Axis/AxisDefaults.js",[],function(){var G;return function(B){B.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},B.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},B.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},B.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},B.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},B.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(G||(G={})),G}),_(et,"Core/Foundation.js",[et["Core/Utilities.js"]],function(G){var B,H=G.addEvent,U=G.isFunction,$=G.objectEach,Z=G.removeEvent;return function(V){V.registerEventOptions=function(F,I){F.eventOptions=F.eventOptions||{},$(I.events,function(E,A){F.eventOptions[A]!==E&&(F.eventOptions[A]&&(Z(F,A,F.eventOptions[A]),delete F.eventOptions[A]),U(E)&&(F.eventOptions[A]=E,H(F,A,E)))})}}(B||(B={})),B}),_(et,"Core/Axis/Tick.js",[et["Core/FormatUtilities.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(G,B,H){var U=B.deg2rad,$=H.clamp,Z=H.correctFloat,V=H.defined,F=H.destroyObjectProperties,I=H.extend,E=H.fireEvent,A=H.isNumber,P=H.merge,y=H.objectEach,c=H.pick;return B=function(){function g(m,u,v,w,M){this.isNewLabel=this.isNew=!0,this.axis=m,this.pos=u,this.type=v||"",this.parameters=M||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||w||this.addLabel()}return g.prototype.addLabel=function(){var m=this,u=m.axis,v=u.options,w=u.chart,M=u.categories,C=u.logarithmic,p=u.names,f=m.pos,r=c(m.options&&m.options.labels,v.labels),l=u.tickPositions,t=f===l[0],i=f===l[l.length-1],o=(!r.step||r.step===1)&&u.tickInterval===1;l=l.info;var e,a=m.label;if(M=this.parameters.category||(M?c(M[f],p[f],f):f),C&&A(M)&&(M=Z(C.lin2log(M))),u.dateTime)if(l)var s=w.time.resolveDTLFormat(v.dateTimeLabelFormats[!v.grid&&l.higherRanks[f]||l.unitName]),h=s.main;else A(M)&&(h=u.dateTime.getXDateFormat(M,v.dateTimeLabelFormats||{}));m.isFirst=t,m.isLast=i;var b={axis:u,chart:w,dateTimeLabelFormat:h,isFirst:t,isLast:i,pos:f,tick:m,tickPositionInfo:l,value:M};E(this,"labelFormat",b);var k=function(d){return r.formatter?r.formatter.call(d,d):r.format?(d.text=u.defaultLabelFormatter.call(d,d),G.format(r.format,d,w)):u.defaultLabelFormatter.call(d,d)};v=k.call(b,b);var O=s&&s.list;m.shortenLabel=O?function(){for(e=0;e<O.length;e++)if(I(b,{dateTimeLabelFormat:O[e]}),a.attr({text:k.call(b,b)}),a.getBBox().width<u.getSlotWidth(m)-2*r.padding)return;a.attr({text:""})}:void 0,o&&u._addedPlotLB&&m.moveLabel(v,r),V(a)||m.movedLabel?a&&a.textStr!==v&&!o&&(!a.textWidth||r.style.width||a.styles.width||a.css({width:null}),a.attr({text:v}),a.textPxLength=a.getBBox().width):(m.label=a=m.createLabel({x:0,y:0},v,r),m.rotation=0)},g.prototype.createLabel=function(m,u,v){var w=this.axis,M=w.chart;return(m=V(u)&&v.enabled?M.renderer.text(u,m.x,m.y,v.useHTML).add(w.labelGroup):null)&&(M.styledMode||m.css(P(v.style)),m.textPxLength=m.getBBox().width),m},g.prototype.destroy=function(){F(this,this.axis)},g.prototype.getPosition=function(m,u,v,w){var M=this.axis,C=M.chart,p=w&&C.oldChartHeight||C.chartHeight;return(m={x:m?Z(M.translate(u+v,void 0,void 0,w)+M.transB):M.left+M.offset+(M.opposite?(w&&C.oldChartWidth||C.chartWidth)-M.right-M.left:0),y:m?p-M.bottom+M.offset-(M.opposite?M.height:0):Z(p-M.translate(u+v,void 0,void 0,w)-M.transB)}).y=$(m.y,-1e5,1e5),E(this,"afterGetPosition",{pos:m}),m},g.prototype.getLabelPosition=function(m,u,v,w,M,C,p,f){var r=this.axis,l=r.transA,t=r.isLinked&&r.linkedParent?r.linkedParent.reversed:r.reversed,i=r.staggerLines,o=r.tickRotCorr||{x:0,y:0},e=w||r.reserveSpaceDefault?0:-r.labelOffset*(r.labelAlign==="center"?.5:1),a={};return v=r.side===0?v.rotation?-8:-v.getBBox().height:r.side===2?o.y+8:Math.cos(v.rotation*U)*(o.y-v.getBBox(!1,0).height/2),V(M.y)&&(v=r.side===0&&r.horiz?M.y+v:M.y),m=m+M.x+e+o.x-(C&&w?C*l*(t?-1:1):0),u=u+v-(C&&!w?C*l*(t?1:-1):0),i&&(w=p/(f||1)%i,r.opposite&&(w=i-w-1),u+=r.labelOffset/i*w),a.x=m,a.y=Math.round(u),E(this,"afterGetLabelPosition",{pos:a,tickmarkOffset:C,index:p}),a},g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},g.prototype.getMarkPath=function(m,u,v,w,M,C){return C.crispLine([["M",m,u],["L",m+(M?0:-v),u+(M?v:0)]],w)},g.prototype.handleOverflow=function(m){var u=this.axis,v=u.options.labels,w=m.x,M=u.chart.chartWidth,C=u.chart.spacing,p=c(u.labelLeft,Math.min(u.pos,C[3]));C=c(u.labelRight,Math.max(u.isRadial?0:u.pos+u.len,M-C[1]));var f,r=this.label,l=this.rotation,t={left:0,center:.5,right:1}[u.labelAlign||r.attr("align")],i=r.getBBox().width,o=u.getSlotWidth(this),e={},a=o,s=1;l||v.overflow!=="justify"?0>l&&w-t*i<p?f=Math.round(w/Math.cos(l*U)-p):0<l&&w+t*i>C&&(f=Math.round((M-w)/Math.cos(l*U))):(M=w+(1-t)*i,w-t*i<p?a=m.x+a*(1-t)-p:M>C&&(a=C-m.x+a*t,s=-1),(a=Math.min(o,a))<o&&u.labelAlign==="center"&&(m.x+=s*(o-a-t*(o-Math.min(i,a)))),(i>a||u.autoRotation&&(r.styles||{}).width)&&(f=a)),f&&(this.shortenLabel?this.shortenLabel():(e.width=Math.floor(f)+"px",(v.style||{}).textOverflow||(e.textOverflow="ellipsis"),r.css(e)))},g.prototype.moveLabel=function(m,u){var v=this,w=v.label,M=v.axis,C=M.reversed,p=!1;if(w&&w.textStr===m?(v.movedLabel=w,p=!0,delete v.label):y(M.ticks,function(r){p||r.isNew||r===v||!r.label||r.label.textStr!==m||(v.movedLabel=r.label,p=!0,r.labelPos=v.movedLabel.xy,delete r.label)}),!p&&(v.labelPos||w)){var f=v.labelPos||w.xy;w=M.horiz?C?0:M.width+M.left:f.x,M=M.horiz?f.y:C?M.width+M.left:0,v.movedLabel=v.createLabel({x:w,y:M},m,u),v.movedLabel&&v.movedLabel.attr({opacity:0})}},g.prototype.render=function(m,u,v){var w=this.axis,M=w.horiz,C=this.pos,p=c(this.tickmarkOffset,w.tickmarkOffset);p=(C=this.getPosition(M,C,p,u)).x;var f=C.y;w=M&&p===w.pos+w.len||!M&&f===w.pos?-1:1,M=c(v,this.label&&this.label.newOpacity,1),v=c(v,1),this.isActive=!0,this.renderGridLine(u,v,w),this.renderMark(C,v,w),this.renderLabel(C,u,M,m),this.isNew=!1,E(this,"afterRender")},g.prototype.renderGridLine=function(m,u,v){var w=this.axis,M=w.options,C={},p=this.pos,f=this.type,r=c(this.tickmarkOffset,w.tickmarkOffset),l=w.chart.renderer,t=this.gridLine,i=M.gridLineWidth,o=M.gridLineColor,e=M.gridLineDashStyle;this.type==="minor"&&(i=M.minorGridLineWidth,o=M.minorGridLineColor,e=M.minorGridLineDashStyle),t||(w.chart.styledMode||(C.stroke=o,C["stroke-width"]=i||0,C.dashstyle=e),f||(C.zIndex=1),m&&(u=0),this.gridLine=t=l.path().attr(C).addClass("highcharts-"+(f?f+"-":"")+"grid-line").add(w.gridGroup)),t&&(v=w.getPlotLinePath({value:p+r,lineWidth:t.strokeWidth()*v,force:"pass",old:m,acrossPanes:!1}))&&t[m||this.isNew?"attr":"animate"]({d:v,opacity:u})},g.prototype.renderMark=function(m,u,v){var w=this.axis,M=w.options,C=w.chart.renderer,p=this.type,f=w.tickSize(p?p+"Tick":"tick"),r=m.x;m=m.y;var l=c(M[p!=="minor"?"tickWidth":"minorTickWidth"],!p&&w.isXAxis?1:0);M=M[p!=="minor"?"tickColor":"minorTickColor"];var t=this.mark,i=!t;f&&(w.opposite&&(f[0]=-f[0]),t||(this.mark=t=C.path().addClass("highcharts-"+(p?p+"-":"")+"tick").add(w.axisGroup),w.chart.styledMode||t.attr({stroke:M,"stroke-width":l})),t[i?"attr":"animate"]({d:this.getMarkPath(r,m,f[0],t.strokeWidth()*v,w.horiz,C),opacity:u}))},g.prototype.renderLabel=function(m,u,v,w){var M=this.axis,C=M.horiz,p=M.options,f=this.label,r=p.labels,l=r.step;M=c(this.tickmarkOffset,M.tickmarkOffset);var t=m.x;m=m.y;var i=!0;f&&A(t)&&(f.xy=m=this.getLabelPosition(t,m,f,C,r,M,w,l),this.isFirst&&!this.isLast&&!p.showFirstLabel||this.isLast&&!this.isFirst&&!p.showLastLabel?i=!1:!C||r.step||r.rotation||u||v===0||this.handleOverflow(m),l&&w%l&&(i=!1),i&&A(m.y)?(m.opacity=v,f[this.isNewLabel?"attr":"animate"](m).show(!0),this.isNewLabel=!1):(f.hide(),this.isNewLabel=!0))},g.prototype.replaceMovedLabel=function(){var m=this.label,u=this.axis,v=u.reversed;if(m&&!this.isNew){var w=u.horiz?v?u.left:u.width+u.left:m.xy.x;v=u.horiz?m.xy.y:v?u.width+u.top:u.top,m.animate({x:w,y:v,opacity:0},void 0,m.destroy),delete this.label}u.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},g}(),B}),_(et,"Core/Axis/Axis.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/AxisDefaults.js"],et["Core/Color/Color.js"],et["Core/Defaults.js"],et["Core/Foundation.js"],et["Core/Globals.js"],et["Core/Axis/Tick.js"],et["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F){var I=G.animObject,E=U.defaultOptions,A=$.registerEventOptions,P=Z.deg2rad,y=F.arrayMax,c=F.arrayMin,g=F.clamp,m=F.correctFloat,u=F.defined,v=F.destroyObjectProperties,w=F.erase,M=F.error,C=F.extend,p=F.fireEvent,f=F.isArray,r=F.isNumber,l=F.isString,t=F.merge,i=F.normalizeTickInterval,o=F.objectEach,e=F.pick,a=F.relativeLength,s=F.removeEvent,h=F.splat,b=F.syncTimeout,k=function(O,d){return i(d,void 0,void 0,e(O.options.allowDecimals,.5>d||O.tickAmount!==void 0),!!O.tickAmount)};return G=function(){function O(d,x){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(d,x)}return O.prototype.init=function(d,x){var T=x.isX;this.chart=d,this.horiz=d.inverted&&!this.isZAxis?!T:T,this.isXAxis=T,this.coll=this.coll||(T?"xAxis":"yAxis"),p(this,"init",{userOptions:x}),this.opposite=e(x.opposite,this.opposite),this.side=e(x.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(x);var N=this.options,z=N.labels,L=N.type;this.userOptions=x,this.minPixelPadding=0,this.reversed=e(N.reversed,this.reversed),this.visible=N.visible,this.zoomEnabled=N.zoomEnabled,this.hasNames=L==="category"||N.categories===!0,this.categories=N.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=u(N.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=N.minRange||N.maxZoom,this.range=N.range,this.offset=N.offset||0,this.min=this.max=null,x=e(N.crosshair,h(d.options.tooltip.crosshairs)[T?0:1]),this.crosshair=x===!0?{}:x,d.axes.indexOf(this)===-1&&(T?d.axes.splice(d.xAxis.length,0,this):d.axes.push(this),d[this.coll].push(this)),this.series=this.series||[],d.inverted&&!this.isZAxis&&T&&this.reversed===void 0&&(this.reversed=!0),this.labelRotation=r(z.rotation)?z.rotation:void 0,A(this,N),p(this,"afterInit")},O.prototype.setOptions=function(d){this.options=t(B.defaultXAxisOptions,this.coll==="yAxis"&&B.defaultYAxisOptions,[B.defaultTopAxisOptions,B.defaultRightAxisOptions,B.defaultBottomAxisOptions,B.defaultLeftAxisOptions][this.side],t(E[this.coll],d)),p(this,"afterSetOptions",{userOptions:d})},O.prototype.defaultLabelFormatter=function(d){var x=this.axis;d=this.chart.numberFormatter;var T=r(this.value)?this.value:NaN,N=x.chart.time,z=this.dateTimeLabelFormat,L=E.lang,D=L.numericSymbols;L=L.numericSymbolMagnitude||1e3;var j=x.logarithmic?Math.abs(T):x.tickInterval,Y=D&&D.length;if(x.categories)var X="".concat(this.value);else if(z)X=N.dateFormat(z,T);else if(Y&&1e3<=j)for(;Y--&&X===void 0;)j>=(x=Math.pow(L,Y+1))&&10*T%x==0&&D[Y]!==null&&T!==0&&(X=d(T/x,-1)+D[Y]);return X===void 0&&(X=1e4<=Math.abs(T)?d(T,-1):d(T,-1,void 0,"")),X},O.prototype.getSeriesExtremes=function(){var d,x=this,T=x.chart;p(this,"getSeriesExtremes",null,function(){x.hasVisibleSeries=!1,x.dataMin=x.dataMax=x.threshold=null,x.softThreshold=!x.isXAxis,x.series.forEach(function(N){if(N.visible||!T.options.chart.ignoreHiddenSeries){var z=N.options,L=z.threshold;if(x.hasVisibleSeries=!0,x.positiveValuesOnly&&0>=L&&(L=null),x.isXAxis){if((z=N.xData).length){z=x.logarithmic?z.filter(x.validatePositiveValue):z;var D=(d=N.getXExtremes(z)).min,j=d.max;r(D)||D instanceof Date||(z=z.filter(r),D=(d=N.getXExtremes(z)).min,j=d.max),z.length&&(x.dataMin=Math.min(e(x.dataMin,D),D),x.dataMax=Math.max(e(x.dataMax,j),j))}}else N=N.applyExtremes(),r(N.dataMin)&&(D=N.dataMin,x.dataMin=Math.min(e(x.dataMin,D),D)),r(N.dataMax)&&(j=N.dataMax,x.dataMax=Math.max(e(x.dataMax,j),j)),u(L)&&(x.threshold=L),(!z.softThreshold||x.positiveValuesOnly)&&(x.softThreshold=!1)}})}),p(this,"afterGetSeriesExtremes")},O.prototype.translate=function(d,x,T,N,z,L){var D=this.linkedParent||this,j=N&&D.old?D.old.min:D.min;if(!r(j))return NaN;var Y=D.minPixelPadding;z=(D.isOrdinal||D.brokenAxis&&D.brokenAxis.hasBreaks||D.logarithmic&&z)&&D.lin2val;var X=1,W=0;return(N=N&&D.old?D.old.transA:D.transA)||(N=D.transA),T&&(X*=-1,W=D.len),D.reversed&&(W-=(X*=-1)*(D.sector||D.len)),x?(L=(d*X+W-Y)/N+j,z&&(L=D.lin2val(L))):(z&&(d=D.val2lin(d)),d=X*(d-j)*N,L=(D.isRadial?d:m(d))+W+X*Y+(r(L)?N*L:0)),L},O.prototype.toPixels=function(d,x){return this.translate(d,!1,!this.horiz,void 0,!0)+(x?0:this.pos)},O.prototype.toValue=function(d,x){return this.translate(d-(x?0:this.pos),!0,!this.horiz,void 0,!0)},O.prototype.getPlotLinePath=function(d){function x(yt,dt,ot){return bt!=="pass"&&(yt<dt||yt>ot)&&(bt?yt=g(yt,dt,ot):D=!0),yt}var T,N,z,L,D,j=this,Y=j.chart,X=j.left,W=j.top,q=d.old,tt=d.value,Q=d.lineWidth,nt=q&&Y.oldChartHeight||Y.chartHeight,lt=q&&Y.oldChartWidth||Y.chartWidth,gt=j.transB,mt=d.translatedValue,bt=d.force;return d={value:tt,lineWidth:Q,old:q,force:bt,acrossPanes:d.acrossPanes,translatedValue:mt},p(this,"getPlotLinePath",d,function(yt){mt=e(mt,j.translate(tt,void 0,void 0,q)),mt=g(mt,-1e5,1e5),T=z=Math.round(mt+gt),N=L=Math.round(nt-mt-gt),r(mt)?j.horiz?(N=W,L=nt-j.bottom,T=z=x(T,X,X+j.width)):(T=X,z=lt-j.right,N=L=x(N,W,W+j.height)):(D=!0,bt=!1),yt.path=D&&!bt?null:Y.renderer.crispLine([["M",T,N],["L",z,L]],Q||1)}),d.path},O.prototype.getLinearTickPositions=function(d,x,T){var N=m(Math.floor(x/d)*d);T=m(Math.ceil(T/d)*d);var z,L=[];if(m(N+d)===N&&(z=20),this.single)return[x];for(x=N;x<=T&&(L.push(x),(x=m(x+d,z))!==D);)var D=x;return L},O.prototype.getMinorTickInterval=function(){var d=this.options;return d.minorTicks===!0?e(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval},O.prototype.getMinorTickPositions=function(){var d=this.options,x=this.tickPositions,T=this.minorTickInterval,N=this.pointRangePadding||0,z=this.min-N,L=(N=this.max+N)-z,D=[];if(L&&L/T<this.len/3){var j=this.logarithmic;if(j)this.paddedTicks.forEach(function(Y,X,W){X&&D.push.apply(D,j.getLogTickPositions(T,W[X-1],W[X],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")D=D.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(T),z,N,d.startOfWeek));else for(d=z+(x[0]-z)%T;d<=N&&d!==D[0];d+=T)D.push(d)}return D.length!==0&&this.trimTicks(D),D},O.prototype.adjustForMinRange=function(){var d,x,T,N,z=this.options,L=this.logarithmic,D=this.min,j=this.max,Y=0;if(this.isXAxis&&this.minRange===void 0&&!L&&(u(z.min)||u(z.max)||u(z.floor)||u(z.ceiling)?this.minRange=null:(this.series.forEach(function(tt){if(T=tt.xData,N=tt.xIncrement?1:T.length-1,1<T.length)for(d=N;0<d;d--)x=T[d]-T[d-1],(!Y||x<Y)&&(Y=x)}),this.minRange=Math.min(5*Y,this.dataMax-this.dataMin))),j-D<this.minRange){var X=this.dataMax-this.dataMin>=this.minRange,W=this.minRange,q=(W-j+D)/2;q=[D-q,e(z.min,D-q)],X&&(q[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),j=[(D=y(q))+W,e(z.max,D+W)],X&&(j[2]=L?L.log2lin(this.dataMax):this.dataMax),(j=c(j))-D<W&&(q[0]=j-W,q[1]=e(z.min,j-W),D=y(q))}this.min=D,this.max=j},O.prototype.getClosest=function(){var d;return this.categories?d=1:this.series.forEach(function(x){var T=x.closestPointRange,N=x.visible||!x.chart.options.chart.ignoreHiddenSeries;!x.noSharedTooltip&&u(T)&&N&&(d=u(d)?Math.min(d,T):T)}),d},O.prototype.nameToX=function(d){var x=f(this.options.categories),T=x?this.categories:this.names,N=d.options.x;if(d.series.requireSorting=!1,u(N)||(N=this.options.uniqueNames&&T?x?T.indexOf(d.name):e(T.keys[d.name],-1):d.series.autoIncrement()),N===-1){if(!x&&T)var z=T.length}else z=N;return z!==void 0?(this.names[z]=d.name,this.names.keys[d.name]=z):d.x&&(z=d.x),z},O.prototype.updateNames=function(){var d=this,x=this.names;0<x.length&&(Object.keys(x.keys).forEach(function(T){delete x.keys[T]}),x.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(T){T.xIncrement=null,T.points&&!T.isDirtyData||(d.max=Math.max(d.max,T.xData.length-1),T.processData(),T.generatePoints()),T.data.forEach(function(N,z){if(N&&N.options&&N.name!==void 0){var L=d.nameToX(N);L!==void 0&&L!==N.x&&(N.x=L,T.xData[z]=L)}})}))},O.prototype.setAxisTranslation=function(){var d=this,x=d.max-d.min,T=d.linkedParent,N=!!d.categories,z=d.isXAxis,L=d.axisPointRange||0,D=0,j=0,Y=d.transA;if(z||N||L){var X=d.getClosest();T?(D=T.minPointOffset,j=T.pointRangePadding):d.series.forEach(function(W){var q=N?1:z?e(W.options.pointRange,X,0):d.axisPointRange||0,tt=W.options.pointPlacement;L=Math.max(L,q),d.single&&!N||(W=W.is("xrange")?!z:z,D=Math.max(D,W&&l(tt)?0:q/2),j=Math.max(j,W&&tt==="on"?0:q))}),T=d.ordinal&&d.ordinal.slope&&X?d.ordinal.slope/X:1,d.minPointOffset=D*=T,d.pointRangePadding=j*=T,d.pointRange=Math.min(L,d.single&&N?1:x),z&&(d.closestPointRange=X)}d.translationSlope=d.transA=Y=d.staticScale||d.len/(x+j||1),d.transB=d.horiz?d.left:d.bottom,d.minPixelPadding=Y*D,p(this,"afterSetAxisTranslation")},O.prototype.minFromRange=function(){return this.max-this.range},O.prototype.setTickInterval=function(d){var x=this.chart,T=this.logarithmic,N=this.options,z=this.isXAxis,L=this.isLinked,D=N.tickPixelInterval,j=this.categories,Y=this.softThreshold,X=N.maxPadding,W=N.minPadding,q=r(N.tickInterval)&&0<=N.tickInterval?N.tickInterval:void 0,tt=r(this.threshold)?this.threshold:null;this.dateTime||j||L||this.getTickAmount();var Q=e(this.userMin,N.min),nt=e(this.userMax,N.max);if(L){this.linkedParent=x[this.coll][N.linkedTo];var lt=this.linkedParent.getExtremes();this.min=e(lt.min,lt.dataMin),this.max=e(lt.max,lt.dataMax),N.type!==this.linkedParent.options.type&&M(11,1,x)}else{if(Y&&u(tt)){if(this.dataMin>=tt)lt=tt,W=0;else if(this.dataMax<=tt){var gt=tt;X=0}}this.min=e(Q,lt,this.dataMin),this.max=e(nt,gt,this.dataMax)}if(T&&(this.positiveValuesOnly&&!d&&0>=Math.min(this.min,e(this.dataMin,this.min))&&M(10,1,x),this.min=m(T.log2lin(this.min),16),this.max=m(T.log2lin(this.max),16)),this.range&&u(this.max)&&(this.userMin=this.min=Q=Math.max(this.dataMin,this.minFromRange()),this.userMax=nt=this.max,this.range=null),p(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(j||this.axisPointRange||this.stacking&&this.stacking.usePercentage||L)&&u(this.min)&&u(this.max)&&(x=this.max-this.min)&&(!u(Q)&&W&&(this.min-=x*W),!u(nt)&&X&&(this.max+=x*X)),r(this.userMin)||(r(N.softMin)&&N.softMin<this.min&&(this.min=Q=N.softMin),r(N.floor)&&(this.min=Math.max(this.min,N.floor))),r(this.userMax)||(r(N.softMax)&&N.softMax>this.max&&(this.max=nt=N.softMax),r(N.ceiling)&&(this.max=Math.min(this.max,N.ceiling))),Y&&u(this.dataMin)&&(tt=tt||0,!u(Q)&&this.min<tt&&this.dataMin>=tt?this.min=this.options.minRange?Math.min(tt,this.max-this.minRange):tt:!u(nt)&&this.max>tt&&this.dataMax<=tt&&(this.max=this.options.minRange?Math.max(tt,this.min+this.minRange):tt)),r(this.min)&&r(this.max)&&!this.chart.polar&&this.min>this.max&&(u(this.options.min)?this.max=this.min:u(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||this.min===void 0||this.max===void 0?1:L&&this.linkedParent&&!q&&D===this.linkedParent.options.tickPixelInterval?q=this.linkedParent.tickInterval:e(q,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,j?1:(this.max-this.min)*D/Math.max(this.len,D)),z&&!d){var mt=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(bt){bt.forceCrop=bt.forceCropping&&bt.forceCropping(),bt.processData(mt)}),p(this,"postProcessData",{hasExtremesChanged:mt})}this.setAxisTranslation(),p(this,"initialAxisTranslation"),this.pointRange&&!q&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),d=e(N.minTickInterval,this.dateTime&&!this.series.some(function(bt){return bt.noSharedTooltip})?this.closestPointRange:0),!q&&this.tickInterval<d&&(this.tickInterval=d),this.dateTime||this.logarithmic||q||(this.tickInterval=k(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},O.prototype.setTickPositions=function(){var d,x=this.options,T=x.tickPositions,N=x.tickPositioner,z=this.getMinorTickInterval(),L=this.hasVerticalPanning(),D=this.coll==="colorAxis",j=(D||!L)&&x.startOnTick;if(L=(D||!L)&&x.endOnTick,D=[],this.tickmarkOffset=this.categories&&x.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=z==="auto"&&this.tickInterval?this.tickInterval/5:z,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||x.allowDecimals!==!1),T)D=T.slice();else if(r(this.min)&&r(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)D=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,x.units),this.min,this.max,x.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)D=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(z=x=this.tickInterval;z<=2*x&&(D=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&D.length>this.tickAmount);)this.tickInterval=k(this,z*=1.1);else D=[this.min,this.max],M(19,!1,this.chart);D.length>this.len&&(D=[D[0],D[D.length-1]])[0]===D[1]&&(D.length=1),N&&(this.tickPositions=D,(d=N.apply(this,[this.min,this.max]))&&(D=d))}this.tickPositions=D,this.paddedTicks=D.slice(0),this.trimTicks(D,j,L),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&2>D.length&&!this.categories&&!this.series.some(function(Y){return Y.is("heatmap")&&Y.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),T||d||this.adjustTickAmount()),p(this,"afterSetTickPositions")},O.prototype.trimTicks=function(d,x,T){var N=d[0],z=d[d.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(p(this,"trimTicks"),!this.isLinked){if(x&&N!==-1/0)this.min=N;else for(;this.min-L>d[0];)d.shift();if(T)this.max=z;else for(;this.max+L<d[d.length-1];)d.pop();d.length===0&&u(N)&&!this.options.tickPositions&&d.push((z+N)/2)}},O.prototype.alignToOthers=function(){var d,x=this,T=[this],N=x.options,z=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(x.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||z)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!x.logarithmic){var D=function(X){var W=X.options;return[X.horiz?W.left:W.top,W.width,W.height,W.pane].join()},j=D(this);this.chart[this.coll].forEach(function(X){var W=X.series;W.length&&W.some(function(q){return q.visible})&&X!==x&&D(X)===j&&(d=!0,T.push(X))})}if(d&&z){T.forEach(function(X){X=X.getThresholdAlignment(x),r(X)&&L.push(X)});var Y=1<L.length?L.reduce(function(X,W){return X+W},0)/L.length:void 0;T.forEach(function(X){X.thresholdAlignment=Y})}return d},O.prototype.getThresholdAlignment=function(d){if((!r(this.dataMin)||this!==d&&this.series.some(function(x){return x.isDirty||x.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold))return d=g((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(d=1-d),d},O.prototype.getTickAmount=function(){var d=this.options,x=d.tickPixelInterval,T=d.tickAmount;!u(d.tickInterval)&&!T&&this.len<x&&!this.isRadial&&!this.logarithmic&&d.startOnTick&&d.endOnTick&&(T=2),!T&&this.alignToOthers()&&(T=Math.ceil(this.len/x)+1),4>T&&(this.finalTickAmt=T,T=5),this.tickAmount=T},O.prototype.adjustTickAmount=function(){var d=this,x=d.finalTickAmt,T=d.max,N=d.min,z=d.options,L=d.tickPositions,D=d.tickAmount,j=d.thresholdAlignment,Y=L&&L.length,X=e(d.threshold,d.softThreshold?0:null),W=d.tickInterval;if(r(j)){var q=.5>j?Math.ceil(j*(D-1)):Math.floor(j*(D-1));z.reversed&&(q=D-1-q)}if(d.hasData()&&r(N)&&r(T)){if(j=function(){d.transA*=(Y-1)/(D-1),d.min=z.startOnTick?L[0]:Math.min(N,L[0]),d.max=z.endOnTick?L[L.length-1]:Math.max(T,L[L.length-1])},r(q)&&r(d.threshold)){for(;L[q]!==X||L.length!==D||L[0]>N||L[L.length-1]<T;){for(L.length=0,L.push(d.threshold);L.length<D;)L[q]===void 0||L[q]>d.threshold?L.unshift(m(L[0]-W)):L.push(m(L[L.length-1]+W));if(W>8*d.tickInterval)break;W*=2}j()}else if(Y<D){for(;L.length<D;)L.length%2||N===X?L.push(m(L[L.length-1]+W)):L.unshift(m(L[0]-W));j()}if(u(x)){for(W=X=L.length;W--;)(x===3&&W%2==1||2>=x&&0<W&&W<X-1)&&L.splice(W,1);d.finalTickAmt=void 0}}},O.prototype.setScale=function(){var d=!1,x=!1;this.series.forEach(function(N){d=d||N.isDirtyData||N.isDirty,x=x||N.xAxis&&N.xAxis.isDirty||!1}),this.setAxisSize();var T=this.len!==(this.old&&this.old.len);T||d||x||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=T||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),d&&this.panningState&&(this.panningState.isDirty=!0),p(this,"afterSetScale")},O.prototype.setExtremes=function(d,x,T,N,z){var L=this,D=L.chart;T=e(T,!0),L.series.forEach(function(j){delete j.kdTree}),z=C(z,{min:d,max:x}),p(L,"setExtremes",z,function(){L.userMin=d,L.userMax=x,L.eventArgs=z,T&&D.redraw(N)})},O.prototype.zoom=function(d,x){var T=this,N=this.dataMin,z=this.dataMax,L=this.options,D=Math.min(N,e(L.min,N)),j=Math.max(z,e(L.max,z));return p(this,"zoom",d={newMin:d,newMax:x},function(Y){var X=Y.newMin,W=Y.newMax;X===T.min&&W===T.max||(T.allowZoomOutside||(u(N)&&(X<D&&(X=D),X>j&&(X=j)),u(z)&&(W<D&&(W=D),W>j&&(W=j))),T.displayBtn=X!==void 0||W!==void 0,T.setExtremes(X,W,!1,void 0,{trigger:"zoom"})),Y.zoomed=!0}),d.zoomed},O.prototype.setAxisSize=function(){var d=this.chart,x=this.options,T=x.offsets||[0,0,0,0],N=this.horiz,z=this.width=Math.round(a(e(x.width,d.plotWidth-T[3]+T[1]),d.plotWidth)),L=this.height=Math.round(a(e(x.height,d.plotHeight-T[0]+T[2]),d.plotHeight)),D=this.top=Math.round(a(e(x.top,d.plotTop+T[0]),d.plotHeight,d.plotTop));x=this.left=Math.round(a(e(x.left,d.plotLeft+T[3]),d.plotWidth,d.plotLeft)),this.bottom=d.chartHeight-L-D,this.right=d.chartWidth-z-x,this.len=Math.max(N?z:L,0),this.pos=N?x:D},O.prototype.getExtremes=function(){var d=this.logarithmic;return{min:d?m(d.lin2log(this.min)):this.min,max:d?m(d.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},O.prototype.getThreshold=function(d){var x=this.logarithmic,T=x?x.lin2log(this.min):this.min;return x=x?x.lin2log(this.max):this.max,d===null||d===-1/0?d=T:d===1/0?d=x:T>d?d=T:x<d&&(d=x),this.translate(d,0,1,0,1)},O.prototype.autoLabelAlign=function(d){var x=(e(d,0)-90*this.side+720)%360;return p(this,"autoLabelAlign",d={align:"center"},function(T){15<x&&165>x?T.align="right":195<x&&345>x&&(T.align="left")}),d.align},O.prototype.tickSize=function(d){var x=this.options,T=e(x[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0),N=x[d==="tick"?"tickLength":"minorTickLength"];if(T&&N){x[d+"Position"]==="inside"&&(N=-N);var z=[N,T]}return p(this,"afterTickSize",d={tickSize:z}),d.tickSize},O.prototype.labelMetrics=function(){var d=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[d]&&this.ticks[d].label)},O.prototype.unsquish=function(){var d=this.options.labels,x=this.horiz,T=this.tickInterval,N=this.len/(((this.categories?1:0)+this.max-this.min)/T),z=d.rotation,L=this.labelMetrics(),D=Math.max(this.max-this.min,0),j=function(gt){var mt=gt/(N||1);return(mt=1<mt?Math.ceil(mt):1)*T>D&>!==1/0&&N!==1/0&&D&&(mt=Math.ceil(D/T)),m(mt*T)},Y=T,X=Number.MAX_VALUE;if(x){if(!d.staggerLines)if(r(z))var W=[z];else N<d.autoRotationLimit&&(W=d.autoRotation);if(W)for(var q=x=void 0,tt=0,Q=W;tt<Q.length;tt++){var nt=Q[tt];if((nt===z||nt&&-90<=nt&&90>=nt)&&(q=(x=j(Math.abs(L.h/Math.sin(P*nt))))+Math.abs(nt/360))<X){X=q;var lt=nt;Y=x}}}else Y=j(L.h);return this.autoRotation=W,this.labelRotation=e(lt,r(z)?z:0),d.step?T:Y},O.prototype.getSlotWidth=function(d){var x=this.chart,T=this.horiz,N=this.options.labels,z=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=x.margin[3];if(d&&r(d.slotWidth))return d.slotWidth;if(T&&2>N.step)return N.rotation?0:(this.staggerLines||1)*this.len/z;if(!T){if((d=N.style.width)!==void 0)return parseInt(String(d),10);if(L)return L-x.spacing[3]}return .33*x.chartWidth},O.prototype.renderUnsquish=function(){var d=this.chart,x=d.renderer,T=this.tickPositions,N=this.ticks,z=this.options.labels,L=z.style,D=this.horiz,j=this.getSlotWidth(),Y=Math.max(1,Math.round(j-2*z.padding)),X={},W=this.labelMetrics(),q=L.textOverflow,tt=0;if(l(z.rotation)||(X.rotation=z.rotation||0),T.forEach(function(gt){(gt=N[gt]).movedLabel&>.replaceMovedLabel(),gt&>.label&>.label.textPxLength>tt&&(tt=gt.label.textPxLength)}),this.maxLabelLength=tt,this.autoRotation)tt>Y&&tt>W.h?X.rotation=this.labelRotation:this.labelRotation=0;else if(j){var Q=Y;if(!q){var nt="clip";for(Y=T.length;!D&&Y--;){var lt=T[Y];(lt=N[lt].label)&&(lt.styles&<.styles.textOverflow==="ellipsis"?lt.css({textOverflow:"clip"}):lt.textPxLength>j&<.css({width:j+"px"}),lt.getBBox().height>this.len/T.length-(W.h-W.f)&&(lt.specificTextOverflow="ellipsis"))}}}X.rotation&&(Q=tt>.5*d.chartHeight?.33*d.chartHeight:tt,q||(nt="ellipsis")),(this.labelAlign=z.align||this.autoLabelAlign(this.labelRotation))&&(X.align=this.labelAlign),T.forEach(function(gt){var mt=(gt=N[gt])&>.label,bt=L.width,yt={};mt&&(mt.attr(X),gt.shortenLabel?gt.shortenLabel():Q&&!bt&&L.whiteSpace!=="nowrap"&&(Q<mt.textPxLength||mt.element.tagName==="SPAN")?(yt.width=Q+"px",q||(yt.textOverflow=mt.specificTextOverflow||nt),mt.css(yt)):mt.styles&&mt.styles.width&&!yt.width&&!bt&&mt.css({width:null}),delete mt.specificTextOverflow,gt.rotation=X.rotation)},this),this.tickRotCorr=x.rotCorr(W.b,this.labelRotation||0,this.side!==0)},O.prototype.hasData=function(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)},O.prototype.addTitle=function(d){var x,T=this.chart.renderer,N=this.horiz,z=this.opposite,L=this.options.title,D=this.chart.styledMode;this.axisTitle||((x=L.textAlign)||(x=(N?{low:"left",middle:"center",high:"right"}:{low:z?"right":"left",middle:"center",high:z?"left":"right"})[L.align]),this.axisTitle=T.text(L.text||"",0,0,L.useHTML).attr({zIndex:7,rotation:L.rotation,align:x}).addClass("highcharts-axis-title"),D||this.axisTitle.css(t(L.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),D||L.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[d?"show":"hide"](d)},O.prototype.generateTick=function(d){var x=this.ticks;x[d]?x[d].addLabel():x[d]=new V(this,d)},O.prototype.getOffset=function(){var d=this,x=this,T=x.chart,N=x.horiz,z=x.options,L=x.side,D=x.ticks,j=x.tickPositions,Y=x.coll,X=x.axisParent,W=T.renderer,q=T.inverted&&!x.isZAxis?[1,0,3,2][L]:L,tt=x.hasData(),Q=z.title,nt=z.labels,lt=T.axisOffset;T=T.clipOffset;var gt,mt=[-1,1,1,-1][L],bt=z.className,yt=0,dt=0,ot=0;if(x.showAxis=gt=tt||z.showEmpty,x.staggerLines=x.horiz&&nt.staggerLines||void 0,!x.axisGroup){var at=function(vt,Ct,xt){return W.g(vt).attr({zIndex:xt}).addClass("highcharts-".concat(Y.toLowerCase()).concat(Ct," ")+(d.isRadial?"highcharts-radial-axis".concat(Ct," "):"")+(bt||"")).add(X)};x.gridGroup=at("grid","-grid",z.gridZIndex),x.axisGroup=at("axis","",z.zIndex),x.labelGroup=at("axis-labels","-labels",nt.zIndex)}if(tt||x.isLinked?(j.forEach(function(vt){x.generateTick(vt)}),x.renderUnsquish(),x.reserveSpaceDefault=L===0||L===2||{1:"left",3:"right"}[L]===x.labelAlign,e(nt.reserveSpace,x.labelAlign==="center"||null,x.reserveSpaceDefault)&&j.forEach(function(vt){ot=Math.max(D[vt].getLabelSize(),ot)}),x.staggerLines&&(ot*=x.staggerLines),x.labelOffset=ot*(x.opposite?-1:1)):o(D,function(vt,Ct){vt.destroy(),delete D[Ct]}),Q&&Q.text&&Q.enabled!==!1&&(x.addTitle(gt),gt&&Q.reserveSpace!==!1)){x.titleOffset=yt=x.axisTitle.getBBox()[N?"height":"width"];var ut=Q.offset;dt=u(ut)?0:e(Q.margin,N?5:10)}x.renderLine(),x.offset=mt*e(z.offset,lt[L]?lt[L]+(z.margin||0):0),x.tickRotCorr=x.tickRotCorr||{x:0,y:0},Q=L===0?-x.labelMetrics().h:L===2?x.tickRotCorr.y:0,tt=Math.abs(ot)+dt,ot&&(tt=tt-Q+mt*(N?e(nt.y,x.tickRotCorr.y+8*mt):nt.x)),x.axisTitleMargin=e(ut,tt),x.getMaxLabelDimensions&&(x.maxLabelDimensions=x.getMaxLabelDimensions(D,j)),Y!=="colorAxis"&&(N=this.tickSize("tick"),lt[L]=Math.max(lt[L],(x.axisTitleMargin||0)+yt+mt*x.offset,tt,j&&j.length&&N?N[0]+mt*x.offset:0),z=!x.axisLine||z.offset?0:2*Math.floor(x.axisLine.strokeWidth()/2),T[q]=Math.max(T[q],z)),p(this,"afterGetOffset")},O.prototype.getLinePath=function(d){var x=this.chart,T=this.opposite,N=this.offset,z=this.horiz,L=this.left+(T?this.width:0)+N;return N=x.chartHeight-this.bottom-(T?this.height:0)+N,T&&(d*=-1),x.renderer.crispLine([["M",z?this.left:L,z?N:this.top],["L",z?x.chartWidth-this.right:L,z?N:x.chartHeight-this.bottom]],d)},O.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},O.prototype.getTitlePosition=function(){var d=this.horiz,x=this.left,T=this.top,N=this.len,z=this.options.title,L=d?x:T,D=this.opposite,j=this.offset,Y=z.x,X=z.y,W=this.axisTitle,q=this.chart.renderer.fontMetrics(z.style.fontSize,W);return W=W?Math.max(W.getBBox(!1,0).height-q.h-1,0):0,N={low:L+(d?0:N),middle:L+N/2,high:L+(d?N:0)}[z.align],x=(d?T+this.height:x)+(d?1:-1)*(D?-1:1)*(this.axisTitleMargin||0)+[-W,W,q.f,-W][this.side],d={x:d?N+Y:x+(D?this.width:0)+j+Y,y:d?x+X-(D?this.height:0)+j:N+X},p(this,"afterGetTitlePosition",{titlePosition:d}),d},O.prototype.renderMinorTick=function(d,x){var T=this.minorTicks;T[d]||(T[d]=new V(this,d,"minor")),x&&T[d].isNew&&T[d].render(null,!0),T[d].render(null,!1,1)},O.prototype.renderTick=function(d,x,T){var N=this.ticks;(!this.isLinked||d>=this.min&&d<=this.max||this.grid&&this.grid.isColumn)&&(N[d]||(N[d]=new V(this,d)),T&&N[d].isNew&&N[d].render(x,!0,-1),N[d].render(x))},O.prototype.render=function(){var d,x,T=this,N=T.chart,z=T.logarithmic,L=T.options,D=T.isLinked,j=T.tickPositions,Y=T.axisTitle,X=T.ticks,W=T.minorTicks,q=T.alternateBands,tt=L.stackLabels,Q=L.alternateGridColor,nt=T.tickmarkOffset,lt=T.axisLine,gt=T.showAxis,mt=I(N.renderer.globalAnimation);if(T.labelEdge.length=0,T.overlap=!1,[X,W,q].forEach(function(yt){o(yt,function(dt){dt.isActive=!1})}),T.hasData()||D){var bt=T.chart.hasRendered&&T.old&&r(T.old.min);T.minorTickInterval&&!T.categories&&T.getMinorTickPositions().forEach(function(yt){T.renderMinorTick(yt,bt)}),j.length&&(j.forEach(function(yt,dt){T.renderTick(yt,dt,bt)}),nt&&(T.min===0||T.single)&&(X[-1]||(X[-1]=new V(T,-1,null,!0)),X[-1].render(-1))),Q&&j.forEach(function(yt,dt){x=j[dt+1]!==void 0?j[dt+1]+nt:T.max-nt,dt%2==0&&yt<T.max&&x<=T.max+(N.polar?-nt:nt)&&(q[yt]||(q[yt]=new Z.PlotLineOrBand(T)),d=yt+nt,q[yt].options={from:z?z.lin2log(d):d,to:z?z.lin2log(x):x,color:Q,className:"highcharts-alternate-grid"},q[yt].render(),q[yt].isActive=!0)}),T._addedPlotLB||(T._addedPlotLB=!0,(L.plotLines||[]).concat(L.plotBands||[]).forEach(function(yt){T.addPlotBandOrLine(yt)}))}[X,W,q].forEach(function(yt){var dt=[],ot=mt.duration;o(yt,function(at,ut){at.isActive||(at.render(ut,!1,0),at.isActive=!1,dt.push(ut))}),b(function(){for(var at=dt.length;at--;)yt[dt[at]]&&!yt[dt[at]].isActive&&(yt[dt[at]].destroy(),delete yt[dt[at]])},yt!==q&&N.hasRendered&&ot?ot:0)}),lt&&(lt[lt.isPlaced?"animate":"attr"]({d:this.getLinePath(lt.strokeWidth())}),lt.isPlaced=!0,lt[gt?"show":"hide"](gt)),Y&>&&(L=T.getTitlePosition(),Y[Y.isNew?"attr":"animate"](L),Y.isNew=!1),tt&&tt.enabled&&T.stacking&&T.stacking.renderStackTotals(),T.old={len:T.len,max:T.max,min:T.min,transA:T.transA,userMax:T.userMax,userMin:T.userMin},T.isDirty=!1,p(this,"afterRender")},O.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})},O.prototype.getKeepProps=function(){return this.keepProps||O.keepProps},O.prototype.destroy=function(d){var x=this,T=x.plotLinesAndBands,N=this.eventOptions;if(p(this,"destroy",{keepEvents:d}),d||s(x),[x.ticks,x.minorTicks,x.alternateBands].forEach(function(L){v(L)}),T)for(d=T.length;d--;)T[d].destroy();for(var z in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(L){x[L]&&(x[L]=x[L].destroy())}),x.plotLinesAndBandsGroups)x.plotLinesAndBandsGroups[z]=x.plotLinesAndBandsGroups[z].destroy();o(x,function(L,D){x.getKeepProps().indexOf(D)===-1&&delete x[D]}),this.eventOptions=N},O.prototype.drawCrosshair=function(d,x){var T,N=this.crosshair,z=e(N&&N.snap,!0),L=this.chart,D=this.cross;if(p(this,"drawCrosshair",{e:d,point:x}),d||(d=this.cross&&this.cross.e),N&&(u(x)||!z)!==!1){if(z?u(x)&&(T=e(this.coll!=="colorAxis"?x.crosshairPos:null,this.isXAxis?x.plotX:this.len-x.plotY)):T=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),u(T)){var j={value:x&&(this.isXAxis?x.x:e(x.stackY,x.y)),translatedValue:T};L.polar&&C(j,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:x}),j=this.getPlotLinePath(j)||null}if(!u(j))return void this.hideCrosshair();z=this.categories&&!this.isRadial,D||(this.cross=D=L.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(z?"category ":"thin ")+(N.className||"")).attr({zIndex:e(N.zIndex,2)}).add(),L.styledMode||(D.attr({stroke:N.color||(z?H.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(N.width,1)}).css({"pointer-events":"none"}),N.dashStyle&&D.attr({dashstyle:N.dashStyle}))),D.show().attr({d:j}),z&&!N.width&&D.attr({"stroke-width":this.transA}),this.cross.e=d}else this.hideCrosshair();p(this,"afterDrawCrosshair",{e:d,point:x})},O.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),p(this,"afterHideCrosshair")},O.prototype.hasVerticalPanning=function(){var d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))},O.prototype.validatePositiveValue=function(d){return r(d)&&0<d},O.prototype.update=function(d,x){var T=this.chart;d=t(this.userOptions,d),this.destroy(!0),this.init(T,d),T.isDirtyBox=!0,e(x,!0)&&T.redraw()},O.prototype.remove=function(d){for(var x=this.chart,T=this.coll,N=this.series,z=N.length;z--;)N[z]&&N[z].remove(!1);w(x.axes,this),w(x[T],this),x[T].forEach(function(L,D){L.options.index=L.userOptions.index=D}),this.destroy(),x.isDirtyBox=!0,e(d,!0)&&x.redraw()},O.prototype.setTitle=function(d,x){this.update({title:d},x)},O.prototype.setCategories=function(d,x){this.update({categories:d},x)},O.defaultOptions=B.defaultXAxisOptions,O.keepProps="extKey hcEvents names series userMax userMin".split(" "),O}(),G}),_(et,"Core/Axis/DateTimeAxis.js",[et["Core/Utilities.js"]],function(G){var B,H=G.addEvent,U=G.getMagnitude,$=G.normalizeTickInterval,Z=G.timeUnits;return function(V){function F(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function I(P){P.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new A(this))}var E=[];V.compose=function(P){return E.indexOf(P)===-1&&(E.push(P),P.keepProps.push("dateTime"),P.prototype.getTimeTicks=F,H(P,"init",I)),P};var A=function(){function P(y){this.axis=y}return P.prototype.normalizeTimeTickInterval=function(y,c){var g=c||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];c=g[g.length-1];var m,u=Z[c[0]],v=c[1];for(m=0;m<g.length&&(c=g[m],u=Z[c[0]],v=c[1],!(g[m+1]&&y<=(u*v[v.length-1]+Z[g[m+1][0]])/2));m++);return u===Z.year&&y<5*u&&(v=[1,2,5]),{unitRange:u,count:y=$(y/u,v,c[0]==="year"?Math.max(U(y/u),1):1),unitName:c[0]}},P.prototype.getXDateFormat=function(y,c){var g=this.axis,m=g.chart.time;return g.closestPointRange?m.getDateFormat(g.closestPointRange,y,g.options.startOfWeek,c)||m.resolveDTLFormat(c.year).main:m.resolveDTLFormat(c.day).main},P}();V.Additions=A}(B||(B={})),B}),_(et,"Core/Axis/LogarithmicAxis.js",[et["Core/Utilities.js"]],function(G){var B,H=G.addEvent,U=G.normalizeTickInterval,$=G.pick;return function(Z){function V(A){var P=this.logarithmic;A.userOptions.type!=="logarithmic"?this.logarithmic=void 0:P||(this.logarithmic=new E(this))}function F(){var A=this.logarithmic;A&&(this.lin2val=function(P){return A.lin2log(P)},this.val2lin=function(P){return A.log2lin(P)})}var I=[];Z.compose=function(A){return I.indexOf(A)===-1&&(I.push(A),A.keepProps.push("logarithmic"),H(A,"init",V),H(A,"afterInit",F)),A};var E=function(){function A(P){this.axis=P}return A.prototype.getLogTickPositions=function(P,y,c,g){var m=this.axis,u=m.len,v=m.options,w=[];if(g||(this.minorAutoInterval=void 0),.5<=P)P=Math.round(P),w=m.getLinearTickPositions(P,y,c);else if(.08<=P){var M,C=Math.floor(y),p=v=void 0;for(u=.3<P?[1,2,4]:.15<P?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];C<c+1&&!p;C++){var f=u.length;for(M=0;M<f&&!p;M++){var r=this.log2lin(this.lin2log(C)*u[M]);r>y&&(!g||v<=c)&&v!==void 0&&w.push(v),v>c&&(p=!0),v=r}}}else y=this.lin2log(y),c=this.lin2log(c),P=g?m.getMinorTickInterval():v.tickInterval,P=$(P==="auto"?null:P,this.minorAutoInterval,v.tickPixelInterval/(g?5:1)*(c-y)/((g?u/m.tickPositions.length:u)||1)),P=U(P),w=m.getLinearTickPositions(P,y,c).map(this.log2lin),g||(this.minorAutoInterval=P/5);return g||(m.tickInterval=P),w},A.prototype.lin2log=function(P){return Math.pow(10,P)},A.prototype.log2lin=function(P){return Math.log(P)/Math.LN10},A}();Z.Additions=E}(B||(B={})),B}),_(et,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[et["Core/Utilities.js"]],function(G){var B,H=G.erase,U=G.extend,$=G.isNumber;return function(Z){var V,F=[];Z.compose=function(E,A){return V||(V=E),F.indexOf(A)===-1&&(F.push(A),U(A.prototype,I.prototype)),A};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(A,P,y){y===void 0&&(y=this.options);var c=this.getPlotLinePath({value:P,force:!0,acrossPanes:y.acrossPanes}),g=[],m=this.horiz;if(P=!$(this.min)||!$(this.max)||A<this.min&&P<this.min||A>this.max&&P>this.max,A=this.getPlotLinePath({value:A,force:!0,acrossPanes:y.acrossPanes}),y=1,A&&c){if(P){var u=A.toString()===c.toString();y=0}for(P=0;P<A.length;P+=2){var v=A[P],w=A[P+1],M=c[P],C=c[P+1];v[0]!=="M"&&v[0]!=="L"||w[0]!=="M"&&w[0]!=="L"||M[0]!=="M"&&M[0]!=="L"||C[0]!=="M"&&C[0]!=="L"||(m&&M[1]===v[1]?(M[1]+=y,C[1]+=y):m||M[2]!==v[2]||(M[2]+=y,C[2]+=y),g.push(["M",v[1],v[2]],["L",w[1],w[2]],["L",C[1],C[2]],["L",M[1],M[2]],["Z"])),g.isFlat=u}}return g},E.prototype.addPlotBand=function(A){return this.addPlotBandOrLine(A,"plotBands")},E.prototype.addPlotLine=function(A){return this.addPlotBandOrLine(A,"plotLines")},E.prototype.addPlotBandOrLine=function(A,P){var y=this,c=this.userOptions,g=new V(this,A);if(this.visible&&(g=g.render()),g){if(this._addedPlotLB||(this._addedPlotLB=!0,(c.plotLines||[]).concat(c.plotBands||[]).forEach(function(u){y.addPlotBandOrLine(u)})),P){var m=c[P]||[];m.push(A),c[P]=m}this.plotLinesAndBands.push(g)}return g},E.prototype.removePlotBandOrLine=function(A){var P=this.plotLinesAndBands,y=this.options,c=this.userOptions;if(P){for(var g=P.length;g--;)P[g].id===A&&P[g].destroy();[y.plotLines||[],c.plotLines||[],y.plotBands||[],c.plotBands||[]].forEach(function(m){for(g=m.length;g--;)(m[g]||{}).id===A&&H(m,m[g])})}},E.prototype.removePlotBand=function(A){this.removePlotBandOrLine(A)},E.prototype.removePlotLine=function(A){this.removePlotBandOrLine(A)},E}()}(B||(B={})),B}),_(et,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[et["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],et["Core/Utilities.js"]],function(G,B){var H=B.arrayMax,U=B.arrayMin,$=B.defined,Z=B.destroyObjectProperties,V=B.erase,F=B.fireEvent,I=B.merge,E=B.objectEach,A=B.pick;return B=function(){function P(y,c){this.axis=y,c&&(this.options=c,this.id=c.id)}return P.compose=function(y){return G.compose(P,y)},P.prototype.render=function(){F(this,"render");var y=this,c=y.axis,g=c.horiz,m=c.logarithmic,u=y.options,v=u.color,w=A(u.zIndex,0),M=u.events,C={},p=c.chart.renderer,f=u.label,r=y.label,l=u.to,t=u.from,i=u.value,o=y.svgElem,e=[],a=$(t)&&$(l);e=$(i);var s=!o,h={class:"highcharts-plot-"+(a?"band ":"line ")+(u.className||"")},b=a?"bands":"lines";if(m&&(t=m.log2lin(t),l=m.log2lin(l),i=m.log2lin(i)),c.chart.styledMode||(e?(h.stroke=v||"#999999",h["stroke-width"]=A(u.width,1),u.dashStyle&&(h.dashstyle=u.dashStyle)):a&&(h.fill=v||"#e6ebf5",u.borderWidth&&(h.stroke=u.borderColor,h["stroke-width"]=u.borderWidth))),C.zIndex=w,b+="-"+w,(m=c.plotLinesAndBandsGroups[b])||(c.plotLinesAndBandsGroups[b]=m=p.g("plot-"+b).attr(C).add()),s&&(y.svgElem=o=p.path().attr(h).add(m)),e)e=c.getPlotLinePath({value:i,lineWidth:o.strokeWidth(),acrossPanes:u.acrossPanes});else{if(!a)return;e=c.getPlotBandPath(t,l,u)}return!y.eventsAdded&&M&&(E(M,function(k,O){o.on(O,function(d){M[O].apply(y,[d])})}),y.eventsAdded=!0),(s||!o.d)&&e&&e.length?o.attr({d:e}):o&&(e?(o.show(),o.animate({d:e})):o.d&&(o.hide(),r&&(y.label=r=r.destroy()))),f&&($(f.text)||$(f.formatter))&&e&&e.length&&0<c.width&&0<c.height&&!e.isFlat?(f=I({align:g&&a&&"center",x:g?!a&&4:10,verticalAlign:!g&&a&&"middle",y:g?a?16:10:a?6:-4,rotation:g&&!a&&90},f),this.renderLabel(f,e,a,w)):r&&r.hide(),y},P.prototype.renderLabel=function(y,c,g,m){var u=this.axis,v=u.chart.renderer,w=this.label;w||(this.label=w=v.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(g?"band":"line")+"-label "+(y.className||""),zIndex:m}).add(),u.chart.styledMode||w.css(I({textOverflow:"ellipsis"},y.style))),m=c.xBounds||[c[0][1],c[1][1],g?c[2][1]:c[0][1]],c=c.yBounds||[c[0][2],c[1][2],g?c[2][2]:c[0][2]],g=U(m),v=U(c),w.align(y,!1,{x:g,y:v,width:H(m)-g,height:H(c)-v}),w.alignValue&&w.alignValue!=="left"||(y=y.clip?u.width:u.chart.chartWidth,w.css({width:(w.rotation===90?u.height-(w.alignAttr.y-u.top):y-(w.alignAttr.x-u.left))+"px"})),w.show(!0)},P.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},P.prototype.destroy=function(){V(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},P}(),B}),_(et,"Core/Tooltip.js",[et["Core/FormatUtilities.js"],et["Core/Globals.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Utilities.js"]],function(G,B,H,U,$){var Z=G.format,V=B.doc,F=H.distribute,I=$.clamp,E=$.css,A=$.discardElement,P=$.extend,y=$.fireEvent,c=$.isArray,g=$.isNumber,m=$.isString,u=$.merge,v=$.pick,w=$.splat,M=$.syncTimeout;return G=function(){function C(p,f){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=p,this.init(p,f)}return C.prototype.applyFilter=function(){var p=this.chart;p.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+p.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},C.prototype.bodyFormatter=function(p){return p.map(function(f){var r=f.series.tooltipOptions;return(r[(f.point.formatPrefix||"point")+"Formatter"]||f.point.tooltipFormatter).call(f.point,r[(f.point.formatPrefix||"point")+"Format"]||"")})},C.prototype.cleanSplit=function(p){this.chart.series.forEach(function(f){var r=f&&f.tt;r&&(!r.isActive||p?f.tt=r.destroy():r.isActive=!1)})},C.prototype.defaultFormatter=function(p){var f=this.points||w(this),r=[p.tooltipFooterHeaderFormatter(f[0])];return(r=r.concat(p.bodyFormatter(f))).push(p.tooltipFooterHeaderFormatter(f[0],!0)),r},C.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),A(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},C.prototype.getAnchor=function(p,f){var r=this.chart,l=r.pointer,t=r.inverted,i=r.plotTop;if(r=r.plotLeft,(p=w(p))[0].series&&p[0].series.yAxis&&!p[0].series.yAxis.options.reversedStacks&&(p=p.slice().reverse()),this.followPointer&&f)f.chartX===void 0&&(f=l.normalize(f)),p=[f.chartX-r,f.chartY-i];else if(p[0].tooltipPos)p=p[0].tooltipPos;else{var o=0,e=0;p.forEach(function(a){(a=a.pos(!0))&&(o+=a[0],e+=a[1])}),o/=p.length,e/=p.length,this.shared&&1<p.length&&f&&(t?o=f.chartX:e=f.chartY),p=[o-r,e-i]}return p.map(Math.round)},C.prototype.getClassName=function(p,f,r){var l=p.series,t=l.options;return[this.options.className,"highcharts-label",r&&"highcharts-tooltip-header",f?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(p.colorIndex,l.colorIndex),t&&t.className].filter(m).join(" ")},C.prototype.getLabel=function(){var p,f=this,r=this.chart.styledMode,l=this.options,t=this.split&&this.allowShared,i=l.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(f.label){var e=!f.label.hasClass("highcharts-label");(t&&!e||!t&&e)&&f.destroy()}if(!this.label){if(this.outside){e=this.chart.options.chart.style;var a=U.getRendererType();this.container=p=B.doc.createElement("div"),p.className="highcharts-tooltip-container",E(p,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(e&&e.zIndex||0)+3)}),B.doc.body.appendChild(p),this.renderer=o=new a(p,0,0,e,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,l.shape,void 0,void 0,l.useHTML,void 0,"tooltip").attr({padding:l.padding,r:l.borderRadius}),r||this.label.attr({fill:l.backgroundColor,"stroke-width":l.borderWidth}).css(l.style).css({pointerEvents:i}).shadow(l.shadow)),r&&l.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),f.outside&&!f.split){var s=this.label,h=s.xSetter,b=s.ySetter;s.xSetter=function(k){h.call(s,f.distance),p.style.left=k+"px"},s.ySetter=function(k){b.call(s,f.distance),p.style.top=k+"px"}}this.label.attr({zIndex:8}).add()}return this.label},C.prototype.getPosition=function(p,f,r){var l,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,a=this.outside,s=a?V.documentElement.clientWidth-2*i:t.chartWidth,h=a?Math.max(V.body.scrollHeight,V.documentElement.scrollHeight,V.body.offsetHeight,V.documentElement.offsetHeight,V.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),k=function(D){var j=D==="x";return[D,j?s:h,j?p:f].concat(a?[j?p*b.scaleX:f*b.scaleY,j?b.left-i+(r.plotX+t.plotLeft)*b.scaleX:b.top-i+(r.plotY+t.plotTop)*b.scaleY,0,j?s:h]:[j?p:f,j?r.plotX+t.plotLeft:r.plotY+t.plotTop,j?t.plotLeft:t.plotTop,j?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},O=k("y"),d=k("x");k=!!r.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(k=!k);var x=!this.followPointer&&v(r.ttBelow,!t.inverted===k),T=function(D,j,Y,X,W,q,tt){var Q=a?D==="y"?i*b.scaleY:i*b.scaleX:i,nt=(Y-X)/2,lt=X<W-i,gt=W+i+X<j,mt=W-Q-Y+nt;if(W=W+Q-nt,x&>)o[D]=W;else if(!x&<)o[D]=mt;else if(lt)o[D]=Math.min(tt-X,0>mt-e?mt:mt-e);else{if(!gt)return!1;o[D]=Math.max(q,W+e+Y>j?W:W+e)}},N=function(D,j,Y,X,W){var q;return W<i||W>j-i?q=!1:o[D]=W<Y/2?1:W>j-X/2?j-X-2:W-Y/2,q},z=function(D){var j=O;O=d,d=j,l=D},L=function(){T.apply(0,O)!==!1?N.apply(0,d)!==!1||l||(z(!0),L()):l?o.x=o.y=0:(z(!0),L())};return(t.inverted||1<this.len)&&z(),L(),o},C.prototype.hide=function(p){var f=this;$.clearTimeout(this.hideTimer),p=v(p,this.options.hideDelay),this.isHidden||(this.hideTimer=M(function(){f.getLabel().fadeOut(p&&void 0),f.isHidden=!0},p))},C.prototype.init=function(p,f){this.chart=p,this.options=f,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=f.split&&!p.inverted&&!p.polar,this.shared=f.shared||this.split,this.outside=v(f.outside,!(!p.scrollablePixelsX&&!p.scrollablePixelsY))},C.prototype.shouldStickOnContact=function(p){return!(this.followPointer||!this.options.stickOnContact||p&&!this.chart.pointer.inClass(p.target,"highcharts-tooltip"))},C.prototype.move=function(p,f,r,l){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(1<Math.abs(p-i.x)||1<Math.abs(f-i.y)),e=t.followPointer||1<t.len;P(i,{x:o?(2*i.x+p)/3:p,y:o?(i.y+f)/2:f,anchorX:e?void 0:o?(2*i.anchorX+r)/3:r,anchorY:e?void 0:o?(i.anchorY+l)/2:l}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(p,f,r,l)},32))},C.prototype.refresh=function(p,f){var r=this.chart,l=this.options,t=r.pointer,i=w(p),o=i[0],e=[],a=l.formatter||this.defaultFormatter,s=this.shared,h=r.styledMode,b={};if(l.enabled&&o.series){$.clearTimeout(this.hideTimer),this.allowShared=!(!c(p)&&p.series&&p.series.noSharedTooltip),this.followPointer=!this.split&&o.series.tooltipOptions.followPointer;var k=(p=this.getAnchor(p,f))[0],O=p[1];if(s&&this.allowShared?(t.applyInactiveState(i),i.forEach(function(T){T.setState("hover"),e.push(T.getLabelConfig())}),(b={x:o.category,y:o.y}).points=e):b=o.getLabelConfig(),this.len=e.length,a=a.call(b,this),s=o.series,this.distance=v(s.tooltipOptions.distance,16),a===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(a,i);else{var d=k,x=O;if(f&&t.isDirectTouch&&(d=f.chartX-r.plotLeft,x=f.chartY-r.plotTop),!r.polar&&s.options.clip!==!1&&!i.some(function(T){return t.isDirectTouch||T.series.shouldShowTooltip(d,x)}))return void this.hide();f=this.getLabel(),l.style.width&&!h||f.css({width:r.spacingBox.width+"px"}),f.attr({text:a&&a.join?a.join(""):a}),f.addClass(this.getClassName(o),!0),h||f.attr({stroke:l.borderColor||o.color||s.color||"#666666"}),this.updatePosition({plotX:k,plotY:O,negative:o.negative,ttBelow:o.ttBelow,h:p[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}},C.prototype.renderSplit=function(p,f){function r(gt,mt,bt,yt,dt){return dt===void 0&&(dt=!0),bt?(mt=X?0:Q,gt=I(gt-yt/2,D.left,D.right-yt-(l.outside?W:0))):(mt-=q,gt=I(gt=dt?gt-yt-N:gt+N,dt?gt:D.left,D.right)),{x:gt,y:mt}}var l=this,t=l.chart,i=l.chart,o=i.chartWidth,e=i.chartHeight,a=i.plotHeight,s=i.plotLeft,h=i.plotTop,b=i.pointer,k=i.scrollablePixelsY;k=k===void 0?0:k;var O=i.scrollablePixelsX,d=i.scrollingContainer,x=(d=d===void 0?{scrollLeft:0,scrollTop:0}:d).scrollLeft;d=d.scrollTop;var T=i.styledMode,N=l.distance,z=l.options,L=l.options.positioner,D=l.outside&&typeof O!="number"?V.documentElement.getBoundingClientRect():{left:x,right:x+o,top:d,bottom:d+e},j=l.getLabel(),Y=this.renderer||t.renderer,X=!(!t.xAxis[0]||!t.xAxis[0].opposite),W=(t=b.getChartPosition()).left;t=t.top;var q=h+d,tt=0,Q=a-k;m(p)&&(p=[!1,p]),p=p.slice(0,f.length+1).reduce(function(gt,mt,bt){if(mt!==!1&&mt!==""){var yt=(bt=f[bt-1]||{isHeader:!0,plotX:f[0].plotX,plotY:a,series:{}}).isHeader,dt=yt?l:bt.series;mt=mt.toString();var ot=dt.tt,at=bt.isHeader,ut=bt.series;ot||(ot={padding:z.padding,r:z.borderRadius},T||(ot.fill=z.backgroundColor,ot["stroke-width"]=z.borderWidth),ot=Y.label("",0,0,z[at?"headerShape":"shape"],void 0,void 0,z.useHTML).addClass(l.getClassName(bt,!0,at)).attr(ot).add(j)),ot.isActive=!0,ot.attr({text:mt}),T||ot.css(z.style).shadow(z.shadow).attr({stroke:z.borderColor||bt.color||ut.color||"#333333"}),mt=(at=(dt=dt.tt=ot).getBBox()).width+dt.strokeWidth(),yt&&(tt=at.height,Q+=tt,X&&(q-=tt)),ut=(ut=bt.plotX)===void 0?0:ut,ot=(ot=bt.plotY)===void 0?0:ot;var vt=bt.series;if(bt.isHeader){ut=s+ut;var Ct=h+a/2}else{var xt=vt.xAxis,wt=vt.yAxis;ut=xt.pos+I(ut,-N,xt.len+N),vt.shouldShowTooltip(0,wt.pos-h+ot,{ignoreX:!0})&&(Ct=wt.pos+ot)}ut=I(ut,D.left-N,D.right+N),typeof Ct=="number"?(at=at.height+1,ot=L?L.call(l,mt,at,bt):r(ut,Ct,yt,mt),gt.push({align:L?0:void 0,anchorX:ut,anchorY:Ct,boxWidth:mt,point:bt,rank:v(ot.rank,yt?1:0),size:at,target:ot.y,tt:dt,x:ot.x})):dt.isActive=!1}return gt},[]),!L&&p.some(function(gt){var mt=(l.outside?W:0)+gt.anchorX;return mt<D.left&&mt+gt.boxWidth<D.right||mt<W-D.left+gt.boxWidth&&D.right-mt>mt})&&(p=p.map(function(gt){var mt=r(gt.anchorX,gt.anchorY,gt.point.isHeader,gt.boxWidth,!1);return P(gt,{target:mt.y,x:mt.x})})),l.cleanSplit(),F(p,Q);var nt=W,lt=W;p.forEach(function(gt){var mt=gt.x,bt=gt.boxWidth;(gt=gt.isHeader)||(l.outside&&W+mt<nt&&(nt=W+mt),!gt&&l.outside&&nt+bt>lt&&(lt=W+mt))}),p.forEach(function(gt){var mt=gt.x,bt=gt.anchorX,yt=gt.pos,dt=gt.point.isHeader;if(yt={visibility:yt===void 0?"hidden":"inherit",x:mt,y:(yt||0)+q,anchorX:bt,anchorY:gt.anchorY},l.outside&&mt<bt){var ot=W-nt;0<ot&&(dt||(yt.x=mt+ot,yt.anchorX=bt+ot),dt&&(yt.x=(lt-nt)/2,yt.anchorX=bt+ot))}gt.tt.attr(yt)}),p=l.container,k=l.renderer,l.outside&&p&&k&&(i=j.getBBox(),k.setSize(i.width+i.x,i.height+i.y,!1),p.style.left=nt+"px",p.style.top=t+"px")},C.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var p=this.chart,f=this.label,r=this.shared?p.hoverPoints:p.hoverPoint;if(f&&r){var l={x:0,y:0,width:0,height:0};r=this.getAnchor(r);var t=f.getBBox();r[0]+=p.plotLeft-f.translateX,r[1]+=p.plotTop-f.translateY,l.x=Math.min(0,r[0]),l.y=Math.min(0,r[1]),l.width=0>r[0]?Math.max(Math.abs(r[0]),t.width-r[0]):Math.max(Math.abs(r[0]),t.width),l.height=0>r[1]?Math.max(Math.abs(r[1]),t.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),t.height),this.tracker?this.tracker.attr(l):(this.tracker=f.renderer.rect(l).addClass("highcharts-tracker").add(f),p.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},C.prototype.styledModeFormat=function(p){return p.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},C.prototype.tooltipFooterHeaderFormatter=function(p,f){var r=p.series,l=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime;t={isFooter:f,labelConfig:p};var o=l.xDateFormat,e=l[f?"footerFormat":"headerFormat"];return y(this,"headerFormatter",t,function(a){i&&!o&&g(p.key)&&(o=i.getXDateFormat(p.key,l.dateTimeLabelFormats)),i&&o&&(p.point&&p.point.tooltipDateKeys||["key"]).forEach(function(s){e=e.replace("{point."+s+"}","{point."+s+":"+o+"}")}),r.chart.styledMode&&(e=this.styledModeFormat(e)),a.text=Z(e,{point:p,series:r},this.chart)}),t.text},C.prototype.update=function(p){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,p),this.init(this.chart,u(!0,this.options,p))},C.prototype.updatePosition=function(p){var f=this.chart,r=this.distance,l=this.options,t=f.pointer,i=this.getLabel(),o=t.getChartPosition();t=o.left;var e=o.top,a=o.scaleX;o=o.scaleY;var s=(l.positioner||this.getPosition).call(this,i.width,i.height,p),h=(p.plotX||0)+f.plotLeft;p=(p.plotY||0)+f.plotTop,this.outside&&(l.positioner&&(s.x+=t-r,s.y+=e-r),r=l.borderWidth+2*r,this.renderer.setSize(i.width+r,i.height+r,!1),a===1&&o===1||(E(this.container,{transform:"scale(".concat(a,", ").concat(o,")")}),h*=a,p*=o),h+=t-s.x,p+=e-s.y),this.move(Math.round(s.x),Math.round(s.y||0),h,p)},C}(),G}),_(et,"Core/Series/Point.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Animation/AnimationUtilities.js"],et["Core/Defaults.js"],et["Core/FormatUtilities.js"],et["Core/Utilities.js"]],function(G,B,H,U,$){var Z=B.animObject,V=H.defaultOptions,F=U.format,I=$.addEvent,E=$.defined,A=$.erase,P=$.extend,y=$.fireEvent,c=$.getNestedProperty,g=$.isArray,m=$.isFunction,u=$.isNumber,v=$.isObject,w=$.merge,M=$.objectEach,C=$.pick,p=$.syncTimeout,f=$.removeEvent,r=$.uniqueKey;return B=function(){function l(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return l.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){t[e]=t[e].animate(e==="dataLabel"?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(a){a.element&&a.animate(P({x:t.startXPos},a.startYPos?{x:a.startXPos,y:a.startYPos}:{}))})})},l.prototype.applyOptions=function(t,i){var o=this.series,e=o.options.pointValKey||o.pointValKey;return t=l.prototype.optionsToObject.call(this,t),P(this,t),this.options=this.options?P(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,e&&(this.y=l.prototype.getNestedProperty.call(this,e)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&i===void 0&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),this.x===void 0&&o?this.x=i===void 0?o.autoIncrement():i:u(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},l.prototype.destroy=function(){function t(){for(a in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(f(i),i.destroyElements()),i)i[a]=null}var i=this,o=i.series,e=o.chart;o=o.options.dataSorting;var a,s=e.hoverPoints,h=Z(i.series.chart.renderer.globalAnimation);i.legendItem&&e.legend.destroyItem(i),s&&(i.setState(),A(s,i),s.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),o&&o.enabled?(this.animateBeforeDestroy(),p(t,h.duration)):t(),e.pointCount--},l.prototype.destroyElements=function(t){var i=this;(t=i.getGraphicalProps(t)).singular.forEach(function(o){i[o]=i[o].destroy()}),t.plural.forEach(function(o){i[o].forEach(function(e){e&&e.element&&e.destroy()}),delete i[o]})},l.prototype.firePointEvent=function(t,i,o){var e=this,a=this.series.options;(a.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&a.allowPointSelect&&(o=function(s){e.select&&e.select(null,s.ctrlKey||s.metaKey||s.shiftKey)}),y(e,t,i,o)},l.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},l.prototype.getGraphicalProps=function(t){var i,o=this,e=[],a={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&e.push("graphic","shadowGroup"),t.dataLabel&&e.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),i=e.length;i--;){var s=e[i];o[s]&&a.singular.push(s)}return["graphic","dataLabel","connector"].forEach(function(h){var b=h+"s";t[h]&&o[b]&&a.plural.push(b)}),a},l.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},l.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?c(t,this.options):this[t]},l.prototype.getZone=function(){var t=this.series,i=t.zones;t=t.zoneAxis||"y";var o,e=0;for(o=i[e];this[t]>=o.value;)o=i[++e];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=o&&o.color&&!this.options.color?o.color:this.nonZonedColor,o},l.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},l.prototype.init=function(t,i,o){return this.series=t,this.applyOptions(i,o),this.id=E(this.id)?this.id:r(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},l.prototype.isValid=function(){return this.x!==null&&u(this.y)},l.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,e=o||i.pointArrayMap||["y"],a=e.length,s={},h=0,b=0;if(u(t)||t===null)s[e[0]]=t;else if(g(t))for(!o&&t.length>a&&((i=typeof t[0])=="string"?s.name=t[0]:i==="number"&&(s.x=t[0]),h++);b<a;)o&&t[h]===void 0||(0<e[b].indexOf(".")?l.prototype.setNestedProperty(s,t[h],e[b]):s[e[b]]=t[h]),h++,b++;else typeof t=="object"&&(s=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return s},l.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,a=e.chart,s=e.xAxis;e=e.yAxis;var h=0,b=0;if(u(o)&&u(i))return t&&(h=s?s.pos:a.plotLeft,b=e?e.pos:a.plotTop),a.inverted&&s&&e?[e.len-i+b,s.len-o+h]:[o+h,i+b]},l.prototype.resolveColor=function(){var t=this.series,i=t.chart.styledMode,o=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!i){var e=(o=t.options.colors||t.chart.options.colors)[t.colorCounter];o=o.length}i=t.colorCounter,t.colorCounter++,t.colorCounter===o&&(t.colorCounter=0)}else i||(e=t.color),i=t.colorIndex;this.colorIndex=C(this.options.colorIndex,i),this.color=C(this.options.color,e)},l.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,a,s,h){return e[a]=h.length-1===s?i:v(e[a],!0)?e[a]:{},e[a]},t),t},l.prototype.shouldDraw=function(){return!this.isNull},l.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=C(o.valueDecimals,""),a=o.valuePrefix||"",s=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(h){h="{point."+h,(a||s)&&(t=t.replace(RegExp(h+"}","g"),a+h+"}"+s)),t=t.replace(RegExp(h+"}","g"),h+":,."+e+"f}")}),F(t,{point:this,series:this.series},i.chart)},l.prototype.update=function(t,i,o,e){function a(){h.applyOptions(t);var x=k&&h.hasMockGraphic;x=h.y===null?!x:x,k&&x&&(h.graphic=k.destroy(),delete h.hasMockGraphic),v(t,!0)&&(k&&k.element&&t&&t.marker&&t.marker.symbol!==void 0&&(h.graphic=k.destroy()),t&&t.dataLabels&&h.dataLabel&&(h.dataLabel=h.dataLabel.destroy()),h.connector&&(h.connector=h.connector.destroy())),s=h.index,b.updateParallelArrays(h,s),d.data[s]=v(d.data[s],!0)||v(t,!0)?h.options:C(t,d.data[s]),b.isDirty=b.isDirtyData=!0,!b.fixedBox&&b.hasCartesianSeries&&(O.isDirtyBox=!0),d.legendType==="point"&&(O.isDirtyLegend=!0),i&&O.redraw(o)}var s,h=this,b=h.series,k=h.graphic,O=b.chart,d=b.options;i=C(i,!0),e===!1?a():h.firePointEvent("update",{options:t},a)},l.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},l.prototype.select=function(t,i){var o=this,e=o.series,a=e.chart;this.selectedStaging=t=C(t,!o.selected),o.firePointEvent(t?"select":"unselect",{accumulate:i},function(){o.selected=o.options.selected=t,e.options.data[e.data.indexOf(o)]=o.options,o.setState(t&&"select"),i||a.getSelectedPoints().forEach(function(s){var h=s.series;s.selected&&s!==o&&(s.selected=s.options.selected=!1,h.options.data[h.data.indexOf(s)]=s.options,s.setState(a.hoverPoints&&h.options.inactiveOtherPoints?"inactive":""),s.firePointEvent("unselect"))})}),delete this.selectedStaging},l.prototype.onMouseOver=function(t){var i=this.series.chart,o=i.pointer;t=t?o.normalize(t):o.getChartCoordinatesFromPoint(this,i.inverted),o.runPointActions(t,this)},l.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(i){i.setState()}),t.hoverPoints=t.hoverPoint=null},l.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=w(t.series.options.point,t.options).events;t.events=i,M(i,function(o,e){m(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},l.prototype.setState=function(t,i){var o,e=this.series,a=this.state,s=e.options.states[t||"normal"]||{},h=V.plotOptions[e.type].marker&&e.options.marker,b=h&&h.enabled===!1,k=h&&h.states&&h.states[t||"normal"]||{},O=k.enabled===!1,d=this.marker||{},x=e.chart,T=h&&e.markerAttribs,N=e.halo,z=e.stateMarkerGraphic;if(!((t=t||"")===this.state&&!i||this.selected&&t!=="select"||s.enabled===!1||t&&(O||b&&k.enabled===!1)||t&&d.states&&d.states[t]&&d.states[t].enabled===!1)){if(this.state=t,T&&(o=e.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(a&&this.graphic.removeClass("highcharts-point-"+a),t&&this.graphic.addClass("highcharts-point-"+t),!x.styledMode){a=e.pointAttribs(this,t);var L=C(x.options.chart.animation,s.animation),D=a.opacity;e.options.inactiveOtherPoints&&u(D)&&((this.dataLabels||[]).forEach(function(j){j&&!j.hasClass("highcharts-data-label-hidden")&&j.animate({opacity:D},L)}),this.connector&&this.connector.animate({opacity:D},L)),this.graphic.animate(a,L)}o&&this.graphic.animate(o,C(x.options.chart.animation,k.animation,h.animation)),z&&z.hide()}else t&&k&&(h=d.symbol||e.symbol,z&&z.currentSymbol!==h&&(z=z.destroy()),o&&(z?z[i?"animate":"attr"]({x:o.x,y:o.y}):h&&(e.stateMarkerGraphic=z=x.renderer.symbol(h,o.x,o.y,o.width,o.height).add(e.markerGroup),z.currentSymbol=h)),!x.styledMode&&z&&this.state!=="inactive"&&z.attr(e.pointAttribs(this,t))),z&&(z[t&&this.isInside?"show":"hide"](),z.element.point=this,z.addClass(this.getClassName(),!0));s=s.halo,o=(z=this.graphic||z)&&z.visibility||"inherit",s&&s.size&&z&&o!=="hidden"&&!this.isCluster?(N||(e.halo=N=x.renderer.path().add(z.parentGroup)),N.show()[i?"animate":"attr"]({d:this.haloPath(s.size)}),N.attr({class:"highcharts-halo highcharts-color-"+C(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),N.point=this,x.styledMode||N.attr(P({fill:this.color||e.color,"fill-opacity":s.opacity},G.filterUserAttributes(s.attributes||{})))):N&&N.point&&N.point.haloPath&&N.animate({d:N.point.haloPath(0)},null,N.hide),y(this,"afterSetState",{state:t})}},l.prototype.haloPath=function(t){var i=this.pos();return i?this.series.chart.renderer.symbols.circle(Math.floor(i[0])-t,i[1]-t,2*t,2*t):[]},l}(),B}),_(et,"Core/Pointer.js",[et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Tooltip.js"],et["Core/Utilities.js"]],function(G,B,H,U){var $=G.parse,Z=B.charts,V=B.noop,F=U.addEvent,I=U.attr,E=U.css,A=U.defined,P=U.extend,y=U.find,c=U.fireEvent,g=U.isNumber,m=U.isObject,u=U.objectEach,v=U.offset,w=U.pick,M=U.splat;return G=function(){function C(p,f){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=p,this.hasDragged=!1,this.options=f,this.init(p,f)}return C.prototype.applyInactiveState=function(p){var f,r=[];(p||[]).forEach(function(l){f=l.series,r.push(f),f.linkedParent&&r.push(f.linkedParent),f.linkedSeries&&(r=r.concat(f.linkedSeries)),f.navigatorSeries&&r.push(f.navigatorSeries)}),this.chart.series.forEach(function(l){r.indexOf(l)===-1?l.setState("inactive",!0):l.options.inactiveOtherPoints&&l.setAllPointsToState("inactive")})},C.prototype.destroy=function(){var p=this;this.eventsToUnbind.forEach(function(f){return f()}),this.eventsToUnbind=[],B.chartCount||(C.unbindDocumentMouseUp&&(C.unbindDocumentMouseUp=C.unbindDocumentMouseUp()),C.unbindDocumentTouchEnd&&(C.unbindDocumentTouchEnd=C.unbindDocumentTouchEnd())),clearInterval(p.tooltipTimeout),u(p,function(f,r){p[r]=void 0})},C.prototype.getSelectionMarkerAttrs=function(p,f){var r=this,l={args:{chartX:p,chartY:f},attrs:{},shapeType:"rect"};return c(this,"getSelectionMarkerAttrs",l,function(t){var i=r.chart,o=r.mouseDownX;o=o===void 0?0:o;var e=r.mouseDownY;e=e===void 0?0:e;var a=r.zoomHor,s=r.zoomVert;(t=t.attrs).x=i.plotLeft,t.y=i.plotTop,t.width=a?1:i.plotWidth,t.height=s?1:i.plotHeight,a&&(i=p-o,t.width=Math.abs(i),t.x=(0<i?0:i)+o),s&&(i=f-e,t.height=Math.abs(i),t.y=(0<i?0:i)+e)}),l},C.prototype.drag=function(p){var f=this.chart,r=f.options.chart,l=f.plotLeft,t=f.plotTop,i=f.plotWidth,o=f.plotHeight,e=this.mouseDownX||0,a=this.mouseDownY||0,s=m(r.panning)?r.panning&&r.panning.enabled:r.panning,h=r.panKey&&p[r.panKey+"Key"],b=p.chartX,k=p.chartY,O=this.selectionMarker;O&&O.touch||(b<l?b=l:b>l+i&&(b=l+i),k<t?k=t:k>t+o&&(k=t+o),this.hasDragged=Math.sqrt(Math.pow(e-b,2)+Math.pow(a-k,2)),10<this.hasDragged&&(l=f.isInsidePlot(e-l,a-t,{visiblePlotOnly:!0}),b=(k=this.getSelectionMarkerAttrs(b,k)).shapeType,k=k.attrs,!f.hasCartesianSeries&&!f.mapView||!this.zoomX&&!this.zoomY||!l||h||O||(this.selectionMarker=O=f.renderer[b](),O.attr({class:"highcharts-selection-marker",zIndex:7}).add(),f.styledMode||O.attr({fill:r.selectionMarkerFill||$("#335cad").setOpacity(.25).get()})),O&&O.attr(k),l&&!O&&s&&f.pan(p,r.panning)))},C.prototype.dragStart=function(p){var f=this.chart;f.mouseIsDown=p.type,f.cancelClick=!1,f.mouseDownX=this.mouseDownX=p.chartX,f.mouseDownY=this.mouseDownY=p.chartY},C.prototype.getSelectionBox=function(p){var f={args:{marker:p},result:{}};return c(this,"getSelectionBox",f,function(r){r.result={x:p.attr?+p.attr("x"):p.x,y:p.attr?+p.attr("y"):p.y,width:p.attr?p.attr("width"):p.width,height:p.attr?p.attr("height"):p.height}}),f.result},C.prototype.drop=function(p){var f=this,r=this.chart,l=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,a=t.height,s={originalEvent:p,xAxis:[],yAxis:[],x:i,y:o,width:e,height:a},h=!!r.mapView;(this.hasDragged||l)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&A(b.min)&&(l||f[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&g(i)&&g(o)&&g(e)&&g(a)){var k=b.horiz,O=p.type==="touchend"?b.minPixelPadding:0,d=b.toValue((k?i:o)+O);k=b.toValue((k?i+e:o+a)-O),s[b.coll].push({axis:b,min:Math.min(d,k),max:Math.max(d,k)}),h=!0}}),h&&c(r,"selection",s,function(b){r.zoom(P(b,l?{animation:!1}:null))})),g(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),l&&this.scaleGroups()}r&&g(r.index)&&(E(r.container,{cursor:r._cursor}),r.cancelClick=10<this.hasDragged,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},C.prototype.findNearestKDPoint=function(p,f,r){var l;return p.forEach(function(t){var i=!(t.noSharedTooltip&&f)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(r,i),(i=m(t,!0)&&t.series)&&!(i=!m(l,!0))){i=l.distX-t.distX;var o=l.dist-t.dist,e=(t.series.group&&t.series.group.zIndex)-(l.series.group&&l.series.group.zIndex);i=0<(i!==0&&f?i:o!==0?o:e!==0?e:l.series.index>t.series.index?-1:1)}i&&(l=t)}),l},C.prototype.getChartCoordinatesFromPoint=function(p,f){var r=p.series,l=r.xAxis;r=r.yAxis;var t=p.shapeArgs;if(l&&r){var i=w(p.clientX,p.plotX),o=p.plotY||0;return p.isNode&&t&&g(t.x)&&g(t.y)&&(i=t.x,o=t.y),f?{chartX:r.len+r.pos-o,chartY:l.len+l.pos-i}:{chartX:i+l.pos,chartY:o+r.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}},C.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var p=this.chart.container,f=v(p);this.chartPosition={left:f.left,top:f.top,scaleX:1,scaleY:1};var r=p.offsetWidth;return p=p.offsetHeight,2<r&&2<p&&(this.chartPosition.scaleX=f.width/r,this.chartPosition.scaleY=f.height/p),this.chartPosition},C.prototype.getCoordinates=function(p){var f={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){f[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(p[r.horiz?"chartX":"chartY"])})}),f},C.prototype.getHoverData=function(p,f,r,l,t,i){var o=[];l=!(!l||!p);var e=function(b){return b.visible&&!(!t&&b.directTouch)&&w(b.options.enableMouseTracking,!0)},a={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};c(this,"beforeGetHoverData",a);var s=f&&!f.stickyTracking?[f]:r.filter(function(b){return b.stickyTracking&&(a.filter||e)(b)}),h=l||!i?p:this.findNearestKDPoint(s,t,i);return f=h&&h.series,h&&(t&&!f.noSharedTooltip?(s=r.filter(function(b){return a.filter?a.filter(b):e(b)&&!b.noSharedTooltip}),s.forEach(function(b){var k=y(b.points,function(O){return O.x===h.x&&!O.isNull});m(k)&&(b.boosted&&b.boost&&(k=b.boost.getPoint(k)),o.push(k))})):o.push(h)),c(this,"afterGetHoverData",a={hoverPoint:h}),{hoverPoint:a.hoverPoint,hoverSeries:f,hoverPoints:o}},C.prototype.getPointFromEvent=function(p){p=p.target;for(var f;p&&!f;)f=p.point,p=p.parentNode;return f},C.prototype.onTrackerMouseOut=function(p){p=p.relatedTarget||p.toElement;var f=this.chart.hoverSeries;this.isDirectTouch=!1,!f||!p||f.stickyTracking||this.inClass(p,"highcharts-tooltip")||this.inClass(p,"highcharts-series-"+f.index)&&this.inClass(p,"highcharts-tracker")||f.onMouseOut()},C.prototype.inClass=function(p,f){for(var r;p;){if(r=I(p,"class")){if(r.indexOf(f)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}p=p.parentElement}},C.prototype.init=function(p,f){this.options=f,this.chart=p,this.runChartClick=!(!f.chart.events||!f.chart.events.click),this.pinchDown=[],this.lastValidTouch={},H&&(p.tooltip=new H(p,f.tooltip)),this.setDOMEvents()},C.prototype.normalize=function(p,f){var r=p.touches,l=r?r.length?r.item(0):w(r.changedTouches,p.changedTouches)[0]:p;return f||(f=this.getChartPosition()),r=l.pageX-f.left,l=l.pageY-f.top,r/=f.scaleX,l/=f.scaleY,P(p,{chartX:Math.round(r),chartY:Math.round(l)})},C.prototype.onContainerClick=function(p){var f=this.chart,r=f.hoverPoint;p=this.normalize(p);var l=f.plotLeft,t=f.plotTop;f.cancelClick||(r&&this.inClass(p.target,"highcharts-tracker")?(c(r.series,"click",P(p,{point:r})),f.hoverPoint&&r.firePointEvent("click",p)):(P(p,this.getCoordinates(p)),f.isInsidePlot(p.chartX-l,p.chartY-t,{visiblePlotOnly:!0})&&c(f,"click",p)))},C.prototype.onContainerMouseDown=function(p){var f=!(1&~(p.buttons||p.button));p=this.normalize(p),B.isFirefox&&p.button!==0&&this.onContainerMouseMove(p),(p.button===void 0||f)&&(this.zoomOption(p),f&&p.preventDefault&&p.preventDefault(),this.dragStart(p))},C.prototype.onContainerMouseLeave=function(p){var f=Z[w(C.hoverChartIndex,-1)],r=this.chart.tooltip;p=this.normalize(p),f&&(p.relatedTarget||p.toElement)&&(f.pointer.reset(),f.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},C.prototype.onContainerMouseEnter=function(p){delete this.chartPosition},C.prototype.onContainerMouseMove=function(p){var f=this.chart,r=f.tooltip;p=this.normalize(p),this.setHoverChartIndex(),p.preventDefault||(p.returnValue=!1),(f.mouseIsDown==="mousedown"||this.touchSelect(p))&&this.drag(p),f.openMenu||!this.inClass(p.target,"highcharts-tracker")&&!f.isInsidePlot(p.chartX-f.plotLeft,p.chartY-f.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(p)||(this.inClass(p.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(p))},C.prototype.onDocumentTouchEnd=function(p){var f=Z[w(C.hoverChartIndex,-1)];f&&f.pointer.drop(p)},C.prototype.onContainerTouchMove=function(p){this.touchSelect(p)?this.onContainerMouseMove(p):this.touch(p)},C.prototype.onContainerTouchStart=function(p){this.touchSelect(p)?this.onContainerMouseDown(p):(this.zoomOption(p),this.touch(p,!0))},C.prototype.onDocumentMouseMove=function(p){var f=this.chart,r=f.tooltip,l=this.chartPosition;p=this.normalize(p,l),!l||f.isInsidePlot(p.chartX-f.plotLeft,p.chartY-f.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(p)||this.inClass(p.target,"highcharts-tracker")||this.reset()},C.prototype.onDocumentMouseUp=function(p){var f=Z[w(C.hoverChartIndex,-1)];f&&f.pointer.drop(p)},C.prototype.pinch=function(p){var f=this,r=f.chart,l=f.pinchDown,t=p.touches||[],i=t.length,o=f.lastValidTouch,e=f.hasZoom,a={},s=i===1&&(f.inClass(p.target,"highcharts-tracker")&&r.runTrackerClick||f.runChartClick),h={},b=f.chart.tooltip;b=i===1&&w(b&&b.options.followTouchMove,!0);var k=f.selectionMarker;1<i?f.initiated=!0:b&&(f.initiated=!1),e&&f.initiated&&!s&&p.cancelable!==!1&&p.preventDefault(),[].map.call(t,function(O){return f.normalize(O)}),p.type==="touchstart"?([].forEach.call(t,function(O,d){l[d]={chartX:O.chartX,chartY:O.chartY}}),o.x=[l[0].chartX,l[1]&&l[1].chartX],o.y=[l[0].chartY,l[1]&&l[1].chartY],r.axes.forEach(function(O){if(O.zoomEnabled){var d=r.bounds[O.horiz?"h":"v"],x=O.minPixelPadding,T=O.toPixels(Math.min(w(O.options.min,O.dataMin),O.dataMin)),N=O.toPixels(Math.max(w(O.options.max,O.dataMax),O.dataMax)),z=Math.max(T,N);d.min=Math.min(O.pos,Math.min(T,N)-x),d.max=Math.max(O.pos+O.len,z+x)}}),f.res=!0):b?this.runPointActions(f.normalize(p)):l.length&&(c(r,"touchpan",{originalEvent:p},function(){k||(f.selectionMarker=k=P({destroy:V,touch:!0},r.plotBox)),f.pinchTranslate(l,t,a,k,h,o),f.hasPinched=e,f.scaleGroups(a,h)}),f.res&&(f.res=!1,this.reset(!1,0)))},C.prototype.pinchTranslate=function(p,f,r,l,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,p,f,r,l,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,p,f,r,l,t,i)},C.prototype.pinchTranslateDirection=function(p,f,r,l,t,i,o,e){var a=this.chart,s=p?"x":"y",h=p?"X":"Y",b="chart"+h,k=p?"width":"height",O=a["plot"+(p?"Left":"Top")],d=a.inverted,x=a.bounds[p?"h":"v"],T=f.length===1,N=f[0][b],z=!T&&f[1][b];f=function(){typeof X=="number"&&20<Math.abs(N-z)&&(j=e||Math.abs(Y-X)/Math.abs(N-z)),D=(O-Y)/j+N,L=a["plot"+(p?"Width":"Height")]/j};var L,D,j=e||1,Y=r[0][b],X=!T&&r[1][b];if(f(),(r=D)<x.min){r=x.min;var W=!0}else r+L>x.max&&(r=x.max-L,W=!0);W?(Y-=.8*(Y-o[s][0]),typeof X=="number"&&(X-=.8*(X-o[s][1])),f()):o[s]=[Y,X],d||(i[s]=D-O,i[k]=L),i=d?1/j:j,t[k]=L,t[s]=r,l[d?p?"scaleY":"scaleX":"scale"+h]=j,l["translate"+h]=i*O+(Y-i*N)},C.prototype.reset=function(p,f){var r=this.chart,l=r.hoverSeries,t=r.hoverPoint,i=r.hoverPoints,o=r.tooltip,e=o&&o.shared?i:t;p&&e&&M(e).forEach(function(a){a.series.isCartesian&&a.plotX===void 0&&(p=!1)}),p?o&&e&&M(e).length&&(o.refresh(e),o.shared&&i?i.forEach(function(a){a.setState(a.state,!0),a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):t&&(t.setState(t.state,!0),r.axes.forEach(function(a){a.crosshair&&t.series[a.coll]===a&&a.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),i&&i.forEach(function(a){a.setState()}),l&&l.onMouseOut(),o&&o.hide(f),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),r.axes.forEach(function(a){a.hideCrosshair()}),this.hoverX=r.hoverPoints=r.hoverPoint=null)},C.prototype.runPointActions=function(p,f,r){var l=this.chart,t=l.tooltip&&l.tooltip.options.enabled?l.tooltip:void 0,i=!!t&&t.shared,o=f||l.hoverPoint,e=o&&o.series||l.hoverSeries;f=this.getHoverData(o,e,l.series,(!p||p.type!=="touchmove")&&(!!f||e&&e.directTouch&&this.isDirectTouch),i,p),o=f.hoverPoint,e=f.hoverSeries;var a=f.hoverPoints;f=e&&e.tooltipOptions.followPointer&&!e.tooltipOptions.split;var s=i&&e&&!e.noSharedTooltip;if(o&&(r||o!==l.hoverPoint||t&&t.isHidden)){if((l.hoverPoints||[]).forEach(function(h){a.indexOf(h)===-1&&h.setState()}),l.hoverSeries!==e&&e.onMouseOver(),this.applyInactiveState(a),(a||[]).forEach(function(h){h.setState("hover")}),l.hoverPoint&&l.hoverPoint.firePointEvent("mouseOut"),!o.series)return;l.hoverPoints=a,l.hoverPoint=o,o.firePointEvent("mouseOver",void 0,function(){t&&o&&t.refresh(s?a:o,p)})}else f&&t&&!t.isHidden&&(r=t.getAnchor([{}],p),l.isInsidePlot(r[0],r[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:r[0],plotY:r[1]}));this.unDocMouseMove||(this.unDocMouseMove=F(l.container.ownerDocument,"mousemove",function(h){var b=Z[C.hoverChartIndex];b&&b.pointer.onDocumentMouseMove(h)}),this.eventsToUnbind.push(this.unDocMouseMove)),l.axes.forEach(function(h){var b,k=w((h.crosshair||{}).snap,!0);k&&((b=l.hoverPoint)&&b.series[h.coll]===h||(b=y(a,function(O){return O.series&&O.series[h.coll]===h}))),b||!k?h.drawCrosshair(p,b):h.hideCrosshair()})},C.prototype.scaleGroups=function(p,f){var r=this.chart;r.series.forEach(function(l){var t=p||l.getPlotBox();l.group&&(l.xAxis&&l.xAxis.zoomEnabled||r.mapView)&&(l.group.attr(t),l.markerGroup&&(l.markerGroup.attr(t),l.markerGroup.clip(f?r.clipRect:null)),l.dataLabelsGroup&&l.dataLabelsGroup.attr(t))}),r.clipRect.attr(f||r.clipBox)},C.prototype.setDOMEvents=function(){var p=this,f=this.chart.container,r=f.ownerDocument;f.onmousedown=this.onContainerMouseDown.bind(this),f.onmousemove=this.onContainerMouseMove.bind(this),f.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(F(f,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(F(f,"mouseleave",this.onContainerMouseLeave.bind(this))),C.unbindDocumentMouseUp||(C.unbindDocumentMouseUp=F(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var l=this.chart.renderTo.parentElement;l&&l.tagName!=="BODY";)this.eventsToUnbind.push(F(l,"scroll",function(){delete p.chartPosition})),l=l.parentElement;B.hasTouch&&(this.eventsToUnbind.push(F(f,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(F(f,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),C.unbindDocumentTouchEnd||(C.unbindDocumentTouchEnd=F(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},C.prototype.setHoverChartIndex=function(){var p=this.chart,f=B.charts[w(C.hoverChartIndex,-1)];f&&f!==p&&f.pointer.onContainerMouseLeave({relatedTarget:p.container}),f&&f.mouseIsDown||(C.hoverChartIndex=p.index)},C.prototype.touch=function(p,f){var r=this.chart;if(this.setHoverChartIndex(),p.touches.length===1)if(p=this.normalize(p),r.isInsidePlot(p.chartX-r.plotLeft,p.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu){if(f&&this.runPointActions(p),p.type==="touchmove")var l=!!(f=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(f[0].chartX-p.chartX,2)+Math.pow(f[0].chartY-p.chartY,2));w(l,!0)&&this.pinch(p)}else f&&this.reset();else p.touches.length===2&&this.pinch(p)},C.prototype.touchSelect=function(p){return!(!this.chart.options.chart.zooming.singleTouch||!p.touches||p.touches.length!==1)},C.prototype.zoomOption=function(p){var f=this.chart,r=f.options.chart;f=f.inverted;var l=r.zooming.type||"";/touch/.test(p.type)&&(l=w(r.zooming.pinchType,l)),this.zoomX=p=/x/.test(l),this.zoomY=r=/y/.test(l),this.zoomHor=p&&!f||r&&f,this.zoomVert=r&&!f||p&&f,this.hasZoom=p||r},C}(),G}),_(et,"Core/MSPointer.js",[et["Core/Globals.js"],et["Core/Pointer.js"],et["Core/Utilities.js"]],function(G,B,H){function U(){var v=[];return v.item=function(w){return this[w]},y(m,function(w){v.push({pageX:w.pageX,pageY:w.pageY,target:w.target})}),v}function $(v,w,M,C){var p=V[B.hoverChartIndex||NaN];v.pointerType!=="touch"&&v.pointerType!==v.MSPOINTER_TYPE_TOUCH||!p||(p=p.pointer,C(v),p[w]({type:M,target:v.currentTarget,preventDefault:I,touches:U()}))}var Z=this&&this.__extends||function(){var v=function(w,M){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,p){C.__proto__=p}||function(C,p){for(var f in p)p.hasOwnProperty(f)&&(C[f]=p[f])},v(w,M)};return function(w,M){function C(){this.constructor=w}v(w,M),w.prototype=M===null?Object.create(M):(C.prototype=M.prototype,new C)}}(),V=G.charts,F=G.doc,I=G.noop,E=G.win,A=H.addEvent,P=H.css,y=H.objectEach,c=H.pick,g=H.removeEvent,m={},u=!!E.PointerEvent;return function(v){function w(){return v!==null&&v.apply(this,arguments)||this}return Z(w,v),w.isRequired=function(){return!(G.hasTouch||!E.PointerEvent&&!E.MSPointerEvent)},w.prototype.batchMSEvents=function(M){M(this.chart.container,u?"pointerdown":"MSPointerDown",this.onContainerPointerDown),M(this.chart.container,u?"pointermove":"MSPointerMove",this.onContainerPointerMove),M(F,u?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},w.prototype.destroy=function(){this.batchMSEvents(g),v.prototype.destroy.call(this)},w.prototype.init=function(M,C){v.prototype.init.call(this,M,C),this.hasZoom&&P(M.container,{"-ms-touch-action":"none","touch-action":"none"})},w.prototype.onContainerPointerDown=function(M){$(M,"onContainerTouchStart","touchstart",function(C){m[C.pointerId]={pageX:C.pageX,pageY:C.pageY,target:C.currentTarget}})},w.prototype.onContainerPointerMove=function(M){$(M,"onContainerTouchMove","touchmove",function(C){m[C.pointerId]={pageX:C.pageX,pageY:C.pageY},m[C.pointerId].target||(m[C.pointerId].target=C.currentTarget)})},w.prototype.onDocumentPointerUp=function(M){$(M,"onDocumentTouchEnd","touchend",function(C){delete m[C.pointerId]})},w.prototype.setDOMEvents=function(){var M=this.chart.tooltip;v.prototype.setDOMEvents.call(this),(this.hasZoom||c(M&&M.options.followTouchMove,!0))&&this.batchMSEvents(A)},w}(B)}),_(et,"Core/Legend/Legend.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/FormatUtilities.js"],et["Core/Globals.js"],et["Core/Series/Point.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V=G.animObject,F=G.setAnimation,I=B.format,E=H.marginNames,A=$.distribute,P=Z.addEvent,y=Z.createElement,c=Z.css,g=Z.defined,m=Z.discardElement,u=Z.find,v=Z.fireEvent,w=Z.isNumber,M=Z.merge,C=Z.pick,p=Z.relativeLength,f=Z.stableSort,r=Z.syncTimeout;return G=function(){function l(t,i){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,i)}return l.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),P(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=P(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},l.prototype.setOptions=function(t){var i=C(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=M(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=i,this.initialItemY=i-5,this.symbolWidth=C(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},l.prototype.update=function(t,i){var o=this.chart;this.setOptions(M(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,C(i,!0)&&o.redraw(),v(this,"afterUpdate")},l.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,a=o.label,s=o.line;if(o=o.symbol,e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var h=this.options;e=this.itemHiddenStyle.color,h=i?h.itemStyle.color:e;var b=i&&t.color||e,k=t.options&&t.options.marker,O={fill:b};a&&a.css({fill:h,color:h}),s&&s.attr({stroke:b}),o&&(k&&o.isMarker&&(O=t.pointAttribs(),i||(O.stroke=O.fill=e)),o.attr(O))}v(this,"afterColorizeItem",{item:t,visible:i})},l.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},l.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,a=o.x;a=a===void 0?0:a,o=(o=o.y)===void 0?0:o;var s=this.options,h=s.symbolPadding,b=!s.rtl;s=t.checkbox,e&&e.element&&(h={translateX:b?a:this.legendWidth-a-2*h-4,translateY:o},e[g(e.translateY)?"animate":"attr"](h,void 0,function(){v(i,"afterPositionItem",{item:t})})),s&&(s.x=a,s.y=o)},l.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,a=["group","label","line","symbol"];e<a.length;e++){var s=a[e];o[s]&&(o[s]=o[s].destroy())}i&&m(i),t.legendItem=void 0},l.prototype.destroy=function(){for(var t=0,i=this.getAllItems();t<i.length;t++)this.destroyItem(i[t]);for(t=0,i="clipRect up down pager nav box title group".split(" ");t<i.length;t++){var o=i[t];this[o]&&(this[o]=this[o].destroy())}this.display=null},l.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,o=this.titleHeight;if(t){var e=t.translateY;this.allItems.forEach(function(a){var s=a.checkbox;if(s){var h=e+o+s.y+(this.scrollOffset||0)+3;c(s,{left:t.translateX+a.checkboxOffset+s.x-20+"px",top:h+"px",display:this.proximate||h>e-6&&h<e+i-6?"":"none"})}},this)}},l.prototype.renderTitle=function(){var t=this.options,i=this.padding,o=t.title,e=0;o.text&&(this.title||(this.title=this.chart.renderer.label(o.text,i-3,i-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(o.style),this.title.add(this.group)),o.width||this.title.css({width:this.maxLegendWidth+"px"}),e=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:e})),this.titleHeight=e},l.prototype.setText=function(t){var i=this.options;t.legendItem.label.attr({text:i.labelFormat?I(i.labelFormat,t,this.chart):i.labelFormatter.call(t)})},l.prototype.renderItem=function(t){var i=t.legendItem=t.legendItem||{},o=this.chart,e=o.renderer,a=this.options,s=this.symbolWidth,h=a.symbolPadding||0,b=this.itemStyle,k=this.itemHiddenStyle,O=a.layout==="horizontal"?C(a.itemDistance,20):0,d=!a.rtl,x=!t.series,T=!x&&t.series.drawLegendSymbol?t.series:t,N=T.options,z=this.createCheckboxForItem&&N&&N.showCheckbox,L=a.useHTML,D=t.options.className,j=i.label;N=s+h+O+(z?20:0),j||(i.group=e.g("legend-item").addClass("highcharts-"+T.type+"-series highcharts-color-"+t.colorIndex+(D?" "+D:"")+(x?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),i.label=j=e.text("",d?s+h:-h,this.baseline||0,L),o.styledMode||j.css(M(t.visible?b:k)),j.attr({align:d?"left":"right",zIndex:2}).add(i.group),this.baseline||(this.fontMetrics=e.fontMetrics(o.styledMode?12:b.fontSize,j),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,j.attr("y",this.baseline),this.symbolHeight=a.symbolHeight||this.fontMetrics.f,a.squareSymbol&&(this.symbolWidth=C(a.symbolWidth,Math.max(this.symbolHeight,16)),N=this.symbolWidth+h+O+(z?20:0),d&&j.attr("x",this.symbolWidth+h))),T.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,j,L)),z&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!o.styledMode&&b.width||j.css({width:(a.itemWidth||this.widthOption||o.spacingBox.width)-N+"px"}),this.setText(t),o=j.getBBox(),e=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=a.itemWidth||i.labelWidth||o.width+N,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(i.labelHeight||(o.height>1.5*e?o.height:e))},l.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",a=t.itemHeight,s=this.itemMarginBottom,h=this.itemMarginTop,b=e?C(i.itemDistance,20):0,k=this.maxLegendWidth;i=i.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:t.itemWidth;var O=t.legendItem||{};e&&this.itemX-o+i>k&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=h+this.itemY+s,this.lastLineHeight=Math.max(a,this.lastLineHeight),O.x=this.itemX,O.y=this.itemY,e?this.itemX+=i:(this.itemY+=h+a+s,this.lastLineHeight=a),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):i)+o,this.offsetWidth)},l.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&C(o.showInLegend,!g(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},l.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},l.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,a=this.getAlignment();a&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(s,h){s.test(a)&&!g(t[h])&&(o[E[h]]=Math.max(o[E[h]],o.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*e[h%2?"x":"y"]+C(e.margin,12)+i[h]+(o.titleOffset[h]||0)))})},l.prototype.proximatePositions=function(){var t=this.chart,i=[],o=this.options.align==="left";this.allItems.forEach(function(b){var k,O=o;if(b.yAxis){b.xAxis.options.reversed&&(O=!O),b.points&&(k=u(O?b.points:b.points.slice(0).reverse(),function(x){return w(x.plotY)})),O=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom;var d=b.yAxis.top-t.plotTop;b.visible?(k=k?k.plotY:b.yAxis.height,k+=d-.3*O):k=d+b.yAxis.height,i.push({target:k,size:O,item:b})}},this);for(var e,a=0,s=A(i,t.plotHeight);a<s.length;a++){var h=s[a];e=h.item.legendItem||{},w(h.pos)&&(e.y=t.plotTop-t.spacing[0]+h.pos)}},l.prototype.render=function(){var t=this.chart,i=t.renderer,o=this.options,e=this.padding,a=this.getAllItems(),s=this.group,h=this.box;this.itemX=e,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=p(o.width,t.spacingBox.width-e);var b=t.spacingBox.width-2*e-o.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(b/=2),this.maxLegendWidth=this.widthOption||b,s||(this.group=s=i.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(s),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),f(a,function(O,d){return(O.options&&O.options.legendIndex||0)-(d.options&&d.options.legendIndex||0)}),o.reversed&&a.reverse(),this.allItems=a,this.display=b=!!a.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,a.forEach(this.renderItem,this),a.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+e;var k=this.lastItemY+this.lastLineHeight+this.titleHeight;k=this.handleOverflow(k),k+=e,h||(this.box=h=i.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(s)),t.styledMode||h.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0<a&&0<k&&h[h.placed?"animate":"attr"](h.crisp.call({},{x:0,y:0,width:a,height:k},h.strokeWidth())),s[b?"show":"hide"](),t.styledMode&&s.getStyle("display")==="none"&&(a=k=0),this.legendWidth=a,this.legendHeight=k,b&&this.align(),this.proximate||this.positionItems(),v(this,"afterRender")},l.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var i=this.chart,o=this.options,e=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<i.titleOffset[0]?e+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<i.titleOffset[2]&&(e-=i.titleOffset[2]),e!==t.y&&(t=M(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(M(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},l.prototype.handleOverflow=function(t){var i,o,e,a=this,s=this.chart,h=s.renderer,b=this.options,k=b.y,O=b.verticalAlign==="top",d=this.padding,x=b.maxHeight,T=b.navigation,N=C(T.animation,!0),z=T.arrowSize||12,L=this.pages,D=this.allItems,j=function(q){typeof q=="number"?W.attr({height:q}):W&&(a.clipRect=W.destroy(),a.contentGroup.clip()),a.contentGroup.div&&(a.contentGroup.div.style.clip=q?"rect("+d+"px,9999px,"+(d+q)+"px,0)":"auto")},Y=function(q){return a[q]=h.circle(0,0,1.3*z).translate(z/2,z/2).add(X),s.styledMode||a[q].attr("fill","rgba(0,0,0,0.0001)"),a[q]};k=s.spacingBox.height+(O?-k:k)-d;var X=this.nav,W=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(k/=2),x&&(k=Math.min(k,x)),L.length=0,t&&0<k&&t>k&&T.enabled!==!1?(this.clipHeight=i=Math.max(k-20-this.titleHeight-d,0),this.currentPage=C(this.currentPage,1),this.fullHeight=t,D.forEach(function(q,tt){q=(e=q.legendItem||{}).y||0;var Q=Math.round(e.label.getBBox().height),nt=L.length;(!nt||q-L[nt-1]>i&&(o||q)!==L[nt-1])&&(L.push(o||q),nt++),e.pageIx=nt-1,o&&((D[tt-1].legendItem||{}).pageIx=nt-1),tt===D.length-1&&q+Q-L[nt-1]>i&&Q<=i&&(L.push(q),e.pageIx=nt),q!==o&&(o=q)}),W||(W=a.clipRect=h.clipRect(0,d,9999,0),a.contentGroup.clip(W)),j(i),X||(this.nav=X=h.g().attr({zIndex:1}).add(this.group),this.up=h.symbol("triangle",0,0,z,z).add(X),Y("upTracker").on("click",function(){a.scroll(-1,N)}),this.pager=h.text("",15,10).addClass("highcharts-legend-navigation"),!s.styledMode&&T.style&&this.pager.css(T.style),this.pager.add(X),this.down=h.symbol("triangle-down",0,0,z,z).add(X),Y("downTracker").on("click",function(){a.scroll(1,N)})),a.scroll(0),t=k):X&&(j(),this.nav=X.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},l.prototype.scroll=function(t,i){var o=this,e=this.chart,a=this.pages,s=a.length,h=this.clipHeight,b=this.options.navigation,k=this.pager,O=this.padding,d=this.currentPage+t;d>s&&(d=s),0<d&&(i!==void 0&&F(i,e),this.nav.attr({translateX:O,translateY:h+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(x){x.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),k.attr({text:d+"/"+s}),[this.down,this.downTracker].forEach(function(x){x.attr({x:18+this.pager.getBBox().width,class:d===s?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:d===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===s?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:d===s?"default":"pointer"})),this.scrollOffset=-a[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),t=V(C(i,e.renderer.globalAnimation,!0)),r(function(){v(o,"afterScroll",{currentPage:d})},t.duration))},l.prototype.setItemEvents=function(t,i,o){var e=this,a=t.legendItem||{},s=e.chart.renderer.boxWrapper,h=t instanceof U,b="highcharts-legend-"+(h?"point":"series")+"-active",k=e.chart.styledMode,O=function(x){e.allItems.forEach(function(T){t!==T&&[T].concat(T.linkedSeries||[]).forEach(function(N){N.setState(x,!h)})})},d=0;for(o=o?[i,a.symbol]:[a.group];d<o.length;d++)(a=o[d])&&a.on("mouseover",function(){t.visible&&O("inactive"),t.setState("hover"),t.visible&&s.addClass(b),k||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(M(t.visible?e.itemStyle:e.itemHiddenStyle)),O(""),s.removeClass(b),t.setState()}).on("click",function(x){var T=function(){t.setVisible&&t.setVisible(),O(t.visible?"inactive":"")};s.removeClass(b),x={browserEvent:x},t.firePointEvent?t.firePointEvent("legendItemClick",x,T):v(t,"legendItemClick",x,T)})},l.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),P(t.checkbox,"click",function(i){v(t.series||t,"checkboxClick",{checked:i.target.checked,item:t},function(){t.select()})})},l}(),G}),_(et,"Core/Series/SeriesRegistry.js",[et["Core/Globals.js"],et["Core/Defaults.js"],et["Core/Series/Point.js"],et["Core/Utilities.js"]],function(G,B,H,U){var $,Z=B.defaultOptions,V=U.extendClass,F=U.merge;return function(I){function E(A,P){var y=Z.plotOptions||{},c=P.defaultOptions,g=P.prototype;g.type=A,g.pointClass||(g.pointClass=H),c&&(y[A]=c),I.seriesTypes[A]=P}I.seriesTypes=G.seriesTypes,I.registerSeriesType=E,I.seriesType=function(A,P,y,c,g){var m=Z.plotOptions||{};return P=P||"",m[A]=F(m[P],y),E(A,V(I.seriesTypes[P]||function(){},c)),I.seriesTypes[A].prototype.type=A,g&&(I.seriesTypes[A].prototype.pointClass=V(H,g)),I.seriesTypes[A]}}($||($={})),$}),_(et,"Core/Chart/Chart.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Defaults.js"],et["Core/FormatUtilities.js"],et["Core/Foundation.js"],et["Core/Globals.js"],et["Core/Legend/Legend.js"],et["Core/MSPointer.js"],et["Core/Pointer.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Time.js"],et["Core/Utilities.js"],et["Core/Renderer/HTML/AST.js"]],function(G,B,H,U,$,Z,V,F,I,E,A,P,y,c,g){var m=G.animate,u=G.animObject,v=G.setAnimation,w=H.defaultOptions,M=H.defaultTime,C=U.numberFormat,p=$.registerEventOptions,f=Z.charts,r=Z.doc,l=Z.marginNames,t=Z.svg,i=Z.win,o=A.seriesTypes,e=c.addEvent,a=c.attr,s=c.cleanRecursively,h=c.createElement,b=c.css,k=c.defined,O=c.discardElement,d=c.erase,x=c.error,T=c.extend,N=c.find,z=c.fireEvent,L=c.getStyle,D=c.isArray,j=c.isNumber,Y=c.isObject,X=c.isString,W=c.merge,q=c.objectEach,tt=c.pick,Q=c.pInt,nt=c.relativeLength,lt=c.removeEvent,gt=c.splat,mt=c.syncTimeout,bt=c.uniqueKey;return G=function(){function yt(dt,ot,at){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(dt,ot,at)}return yt.chart=function(dt,ot,at){return new yt(dt,ot,at)},yt.prototype.getArgs=function(dt,ot,at){X(dt)||dt.nodeName?(this.renderTo=dt,this.init(ot,at)):this.init(dt,ot)},yt.prototype.init=function(dt,ot){var at=dt.plotOptions||{};z(this,"init",{args:arguments},function(){var ut=W(w,dt),vt=ut.chart;q(ut.plotOptions,function(xt,wt){Y(xt)&&(xt.tooltip=at[wt]&&W(at[wt].tooltip)||void 0)}),ut.tooltip.userOptions=dt.chart&&dt.chart.forExport&&dt.tooltip.userOptions||dt.tooltip,this.userOptions=dt,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=ot,this.isResizing=0;var Ct=vt.zooming=vt.zooming||{};dt.chart&&!dt.chart.zooming&&(Ct.resetButton=vt.resetZoomButton),Ct.key=tt(Ct.key,vt.zoomKey),Ct.pinchType=tt(Ct.pinchType,vt.pinchType),Ct.singleTouch=tt(Ct.singleTouch,vt.zoomBySingleTouch),Ct.type=tt(Ct.type,vt.zoomType),this.options=ut,this.axes=[],this.series=[],this.time=dt.time&&Object.keys(dt.time).length?new y(dt.time):Z.time,this.numberFormatter=vt.numberFormatter||C,this.styledMode=vt.styledMode,this.hasCartesianSeries=vt.showAxes,this.index=f.length,f.push(this),Z.chartCount++,p(this,vt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,z(this,"afterInit"),this.firstRender()})},yt.prototype.initSeries=function(dt){var ot=this.options.chart;ot=dt.type||ot.type||ot.defaultSeriesType;var at=o[ot];return at||x(17,!0,this,{missingModuleFor:ot}),typeof(ot=new at).init=="function"&&ot.init(this,dt),ot},yt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(dt){dt.points||dt.data||!dt.enabledDataSorting||dt.setData(dt.options.data,!1)})},yt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(dt,ot){return dt.linkedSeries.length||ot.linkedSeries.length?ot.linkedSeries.length-dt.linkedSeries.length:0})},yt.prototype.orderSeries=function(dt){var ot=this.series;dt=dt||0;for(var at=ot.length;dt<at;++dt)ot[dt]&&(ot[dt].index=dt,ot[dt].name=ot[dt].getName())},yt.prototype.isInsidePlot=function(dt,ot,at){at===void 0&&(at={});var ut=this.inverted,vt=this.plotBox,Ct=this.plotLeft,xt=this.plotTop,wt=this.scrollablePlotBox,Mt=0,At=0;at.visiblePlotOnly&&this.scrollingContainer&&(Mt=(At=this.scrollingContainer).scrollLeft,At=At.scrollTop);var Tt=at.series;if(vt=at.visiblePlotOnly&&wt||vt,dt={x:wt=at.inverted?ot:dt,y:ot=at.inverted?dt:ot,isInsidePlot:!0,options:at},!at.ignoreX){var Et=Tt&&(ut&&!this.polar?Tt.yAxis:Tt.xAxis)||{pos:Ct,len:1/0};(wt=at.paneCoordinates?Et.pos+wt:Ct+wt)>=Math.max(Mt+Ct,Et.pos)&&wt<=Math.min(Mt+Ct+vt.width,Et.pos+Et.len)||(dt.isInsidePlot=!1)}return!at.ignoreY&&dt.isInsidePlot&&(ut=at.axis&&!at.axis.isXAxis&&at.axis||Tt&&(ut?Tt.xAxis:Tt.yAxis)||{pos:xt,len:1/0},(at=at.paneCoordinates?ut.pos+ot:xt+ot)>=Math.max(At+xt,ut.pos)&&at<=Math.min(At+xt+vt.height,ut.pos+ut.len)||(dt.isInsidePlot=!1)),z(this,"afterIsInsidePlot",dt),dt.isInsidePlot},yt.prototype.redraw=function(dt){z(this,"beforeRedraw");var ot=this.hasCartesianSeries?this.axes:this.colorAxis||[],at=this.series,ut=this.pointer,vt=this.legend,Ct=this.userOptions.legend,xt=this.renderer,wt=xt.isHidden(),Mt=[],At=this.isDirtyBox,Tt=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&dt,this),wt&&this.temporaryDisplay(),this.layOutTitles(),dt=at.length;dt--;){var Et=at[dt];if(Et.options.stacking||Et.options.centerInCategory){var Pt=!0;if(Et.isDirty){var Dt=!0;break}}}if(Dt)for(dt=at.length;dt--;)(Et=at[dt]).options.stacking&&(Et.isDirty=!0);at.forEach(function(It){It.isDirty&&(It.options.legendType==="point"?(typeof It.updateTotals=="function"&&It.updateTotals(),Tt=!0):Ct&&(Ct.labelFormatter||Ct.labelFormat)&&(Tt=!0)),It.isDirtyData&&z(It,"updatedData")}),Tt&&vt&&vt.options.enabled&&(vt.render(),this.isDirtyLegend=!1),Pt&&this.getStacks(),ot.forEach(function(It){It.updateNames(),It.setScale()}),this.getMargins(),ot.forEach(function(It){It.isDirty&&(At=!0)}),ot.forEach(function(It){var jt=It.min+","+It.max;It.extKey!==jt&&(It.extKey=jt,Mt.push(function(){z(It,"afterSetExtremes",T(It.eventArgs,It.getExtremes())),delete It.eventArgs})),(At||Pt)&&It.redraw()}),At&&this.drawChartBox(),z(this,"predraw"),at.forEach(function(It){(At||It.isDirty)&&It.visible&&It.redraw(),It.isDirtyData=!1}),ut&&ut.reset(!0),xt.draw(),z(this,"redraw"),z(this,"render"),wt&&this.temporaryDisplay(!0),Mt.forEach(function(It){It.call()})},yt.prototype.get=function(dt){function ot(Ct){return Ct.id===dt||Ct.options&&Ct.options.id===dt}for(var at=this.series,ut=N(this.axes,ot)||N(this.series,ot),vt=0;!ut&&vt<at.length;vt++)ut=N(at[vt].points||[],ot);return ut},yt.prototype.getAxes=function(){var dt=this,ot=this.options,at=ot.xAxis=gt(ot.xAxis||{});ot=ot.yAxis=gt(ot.yAxis||{}),z(this,"getAxes"),at.forEach(function(ut,vt){ut.index=vt,ut.isX=!0}),ot.forEach(function(ut,vt){ut.index=vt}),at.concat(ot).forEach(function(ut){new B(dt,ut)}),z(this,"afterGetAxes")},yt.prototype.getSelectedPoints=function(){return this.series.reduce(function(dt,ot){return ot.getPointsCollection().forEach(function(at){tt(at.selectedStaging,at.selected)&&dt.push(at)}),dt},[])},yt.prototype.getSelectedSeries=function(){return this.series.filter(function(dt){return dt.selected})},yt.prototype.setTitle=function(dt,ot,at){this.applyDescription("title",dt),this.applyDescription("subtitle",ot),this.applyDescription("caption",void 0),this.layOutTitles(at)},yt.prototype.applyDescription=function(dt,ot){var at=this,ut=dt==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};ut=this.options[dt]=W(!this.styledMode&&{style:ut},this.options[dt],ot);var vt=this[dt];vt&&ot&&(this[dt]=vt=vt.destroy()),ut&&!vt&&((vt=this.renderer.text(ut.text,0,0,ut.useHTML).attr({align:ut.align,class:"highcharts-"+dt,zIndex:ut.zIndex||4}).add()).update=function(Ct){at[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[dt]](Ct)},this.styledMode||vt.css(ut.style),this[dt]=vt)},yt.prototype.layOutTitles=function(dt){var ot=[0,0,0],at=this.renderer,ut=this.spacingBox;["title","subtitle","caption"].forEach(function(Ct){var xt,wt=this[Ct],Mt=this.options[Ct],At=Mt.verticalAlign||"top";if(Ct=Ct==="title"?At==="top"?-3:0:At==="top"?ot[0]+2:0,wt){this.styledMode||(xt=Mt.style&&Mt.style.fontSize),xt=at.fontMetrics(xt,wt).b,wt.css({width:(Mt.width||ut.width+(Mt.widthAdjust||0))+"px"});var Tt=Math.round(wt.getBBox(Mt.useHTML).height);wt.align(T({y:At==="bottom"?xt:Ct+xt,height:Tt},Mt),!1,"spacingBox"),Mt.floating||(At==="top"?ot[0]=Math.ceil(ot[0]+Tt):At==="bottom"&&(ot[2]=Math.ceil(ot[2]+Tt)))}},this),ot[0]&&(this.options.title.verticalAlign||"top")==="top"&&(ot[0]+=this.options.title.margin),ot[2]&&this.options.caption.verticalAlign==="bottom"&&(ot[2]+=this.options.caption.margin);var vt=!this.titleOffset||this.titleOffset.join(",")!==ot.join(",");this.titleOffset=ot,z(this,"afterLayOutTitles"),!this.isDirtyBox&&vt&&(this.isDirtyBox=this.isDirtyLegend=vt,this.hasRendered&&tt(dt,!0)&&this.isDirtyBox&&this.redraw())},yt.prototype.getChartSize=function(){var dt=this.options.chart,ot=dt.width;dt=dt.height;var at=this.renderTo;k(ot)||(this.containerWidth=L(at,"width")),k(dt)||(this.containerHeight=L(at,"height")),this.chartWidth=Math.max(0,ot||this.containerWidth||600),this.chartHeight=Math.max(0,nt(dt,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},yt.prototype.temporaryDisplay=function(dt){var ot=this.renderTo;if(dt)for(;ot&&ot.style;)ot.hcOrigStyle&&(b(ot,ot.hcOrigStyle),delete ot.hcOrigStyle),ot.hcOrigDetached&&(r.body.removeChild(ot),ot.hcOrigDetached=!1),ot=ot.parentNode;else for(;ot&&ot.style&&(r.body.contains(ot)||ot.parentNode||(ot.hcOrigDetached=!0,r.body.appendChild(ot)),(L(ot,"display",!1)==="none"||ot.hcOricDetached)&&(ot.hcOrigStyle={display:ot.style.display,height:ot.style.height,overflow:ot.style.overflow},dt={display:"block",overflow:"hidden"},ot!==this.renderTo&&(dt.height=0),b(ot,dt),ot.offsetWidth||ot.style.setProperty("display","block","important")),(ot=ot.parentNode)!==r.body););},yt.prototype.setClassName=function(dt){this.container.className="highcharts-container "+(dt||"")},yt.prototype.getContainer=function(){var dt,ot=this.options,at=ot.chart,ut=bt(),vt=this.renderTo;vt||(this.renderTo=vt=at.renderTo),X(vt)&&(this.renderTo=vt=r.getElementById(vt)),vt||x(13,!0,this);var Ct=Q(a(vt,"data-highcharts-chart"));j(Ct)&&f[Ct]&&f[Ct].hasRendered&&f[Ct].destroy(),a(vt,"data-highcharts-chart",this.index),vt.innerHTML=g.emptyHTML,at.skipClone||vt.offsetWidth||this.temporaryDisplay(),this.getChartSize(),Ct=this.chartWidth;var xt=this.chartHeight;if(b(vt,{overflow:"hidden"}),this.styledMode||(dt=T({position:"relative",overflow:"hidden",width:Ct+"px",height:xt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},at.style||{})),this.container=ut=h("div",{id:ut},dt,vt),this._cursor=ut.style.cursor,this.renderer=new(at.renderer||!t?E.getRendererType(at.renderer):P)(ut,Ct,xt,void 0,at.forExport,ot.exporting&&ot.exporting.allowHTML,this.styledMode),v(void 0,this),this.setClassName(at.className),this.styledMode)for(var wt in ot.defs)this.renderer.definition(ot.defs[wt]);else this.renderer.setStyle(at.style);this.renderer.chartIndex=this.index,z(this,"afterGetContainer")},yt.prototype.getMargins=function(dt){var ot=this.spacing,at=this.margin,ut=this.titleOffset;this.resetMargins(),ut[0]&&!k(at[0])&&(this.plotTop=Math.max(this.plotTop,ut[0]+ot[0])),ut[2]&&!k(at[2])&&(this.marginBottom=Math.max(this.marginBottom,ut[2]+ot[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(at,ot),z(this,"getMargins"),dt||this.getAxisMargins()},yt.prototype.getAxisMargins=function(){var dt=this,ot=dt.axisOffset=[0,0,0,0],at=dt.colorAxis,ut=dt.margin,vt=function(Ct){Ct.forEach(function(xt){xt.visible&&xt.getOffset()})};dt.hasCartesianSeries?vt(dt.axes):at&&at.length&&vt(at),l.forEach(function(Ct,xt){k(ut[xt])||(dt[Ct]+=ot[xt])}),dt.setChartSize()},yt.prototype.reflow=function(dt){var ot=this,at=ot.options.chart,ut=ot.renderTo,vt=k(at.width)&&k(at.height),Ct=at.width||L(ut,"width");at=at.height||L(ut,"height"),ut=dt?dt.target:i,delete ot.pointer.chartPosition,vt||ot.isPrinting||!Ct||!at||ut!==i&&ut!==r||(Ct===ot.containerWidth&&at===ot.containerHeight||(c.clearTimeout(ot.reflowTimeout),ot.reflowTimeout=mt(function(){ot.container&&ot.setSize(void 0,void 0,!1)},dt?100:0)),ot.containerWidth=Ct,ot.containerHeight=at)},yt.prototype.setReflow=function(dt){var ot=this;dt===!1||this.unbindReflow?dt===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(at){ot.options&&ot.reflow(at)}),e(this,"destroy",this.unbindReflow))},yt.prototype.setSize=function(dt,ot,at){var ut=this,vt=ut.renderer;ut.isResizing+=1,v(at,ut),at=vt.globalAnimation,ut.oldChartHeight=ut.chartHeight,ut.oldChartWidth=ut.chartWidth,dt!==void 0&&(ut.options.chart.width=dt),ot!==void 0&&(ut.options.chart.height=ot),ut.getChartSize(),ut.styledMode||(at?m:b)(ut.container,{width:ut.chartWidth+"px",height:ut.chartHeight+"px"},at),ut.setChartSize(!0),vt.setSize(ut.chartWidth,ut.chartHeight,at),ut.axes.forEach(function(Ct){Ct.isDirty=!0,Ct.setScale()}),ut.isDirtyLegend=!0,ut.isDirtyBox=!0,ut.layOutTitles(),ut.getMargins(),ut.redraw(at),ut.oldChartHeight=null,z(ut,"resize"),mt(function(){ut&&z(ut,"endResize",null,function(){--ut.isResizing})},u(at).duration)},yt.prototype.setChartSize=function(dt){var ot,at,ut,vt,Ct=this.inverted,xt=this.renderer,wt=this.chartWidth,Mt=this.chartHeight,At=this.options.chart,Tt=this.spacing,Et=this.clipOffset;this.plotLeft=ot=Math.round(this.plotLeft),this.plotTop=at=Math.round(this.plotTop),this.plotWidth=ut=Math.max(0,Math.round(wt-ot-this.marginRight)),this.plotHeight=vt=Math.max(0,Math.round(Mt-at-this.marginBottom)),this.plotSizeX=Ct?vt:ut,this.plotSizeY=Ct?ut:vt,this.plotBorderWidth=At.plotBorderWidth||0,this.spacingBox=xt.spacingBox={x:Tt[3],y:Tt[0],width:wt-Tt[3]-Tt[1],height:Mt-Tt[0]-Tt[2]},this.plotBox=xt.plotBox={x:ot,y:at,width:ut,height:vt},Ct=2*Math.floor(this.plotBorderWidth/2),wt=Math.ceil(Math.max(Ct,Et[3])/2),Mt=Math.ceil(Math.max(Ct,Et[0])/2),this.clipBox={x:wt,y:Mt,width:Math.floor(this.plotSizeX-Math.max(Ct,Et[1])/2-wt),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(Ct,Et[2])/2-Mt))},dt||(this.axes.forEach(function(Pt){Pt.setAxisSize(),Pt.setAxisTranslation()}),xt.alignElements()),z(this,"afterSetChartSize",{skipAxes:dt})},yt.prototype.resetMargins=function(){z(this,"resetMargins");var dt=this,ot=dt.options.chart;["margin","spacing"].forEach(function(at){var ut=ot[at],vt=Y(ut)?ut:[ut,ut,ut,ut];["Top","Right","Bottom","Left"].forEach(function(Ct,xt){dt[at][xt]=tt(ot[at+Ct],vt[xt])})}),l.forEach(function(at,ut){dt[at]=tt(dt.margin[ut],dt.spacing[ut])}),dt.axisOffset=[0,0,0,0],dt.clipOffset=[0,0,0,0]},yt.prototype.drawChartBox=function(){var dt,ot=this.options.chart,at=this.renderer,ut=this.chartWidth,vt=this.chartHeight,Ct=this.styledMode,xt=this.plotBGImage,wt=ot.backgroundColor,Mt=ot.plotBackgroundColor,At=ot.plotBackgroundImage,Tt=this.plotLeft,Et=this.plotTop,Pt=this.plotWidth,Dt=this.plotHeight,It=this.plotBox,jt=this.clipRect,_t=this.clipBox,Rt=this.chartBackground,Jt=this.plotBackground,zt=this.plotBorder,Vt="animate";if(Rt||(this.chartBackground=Rt=at.rect().addClass("highcharts-background").add(),Vt="attr"),Ct)var te=dt=Rt.strokeWidth();else dt=(te=ot.borderWidth||0)+(ot.shadow?8:0),wt={fill:wt||"none"},(te||Rt["stroke-width"])&&(wt.stroke=ot.borderColor,wt["stroke-width"]=te),Rt.attr(wt).shadow(ot.shadow);Rt[Vt]({x:dt/2,y:dt/2,width:ut-dt-te%2,height:vt-dt-te%2,r:ot.borderRadius}),Vt="animate",Jt||(Vt="attr",this.plotBackground=Jt=at.rect().addClass("highcharts-plot-background").add()),Jt[Vt](It),Ct||(Jt.attr({fill:Mt||"none"}).shadow(ot.plotShadow),At&&(xt?(At!==xt.attr("href")&&xt.attr("href",At),xt.animate(It)):this.plotBGImage=at.image(At,Tt,Et,Pt,Dt).add())),jt?jt.animate({width:_t.width,height:_t.height}):this.clipRect=at.clipRect(_t),Vt="animate",zt||(Vt="attr",this.plotBorder=zt=at.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Ct||zt.attr({stroke:ot.plotBorderColor,"stroke-width":ot.plotBorderWidth||0,fill:"none"}),zt[Vt](zt.crisp({x:Tt,y:Et,width:Pt,height:Dt},-zt.strokeWidth())),this.isDirtyBox=!1,z(this,"afterDrawChartBox")},yt.prototype.propFromSeries=function(){var dt,ot,at,ut=this,vt=ut.options.chart,Ct=ut.options.series;["inverted","angular","polar"].forEach(function(xt){for(ot=o[vt.type||vt.defaultSeriesType],at=vt[xt]||ot&&ot.prototype[xt],dt=Ct&&Ct.length;!at&&dt--;)(ot=o[Ct[dt].type])&&ot.prototype[xt]&&(at=!0);ut[xt]=at})},yt.prototype.linkSeries=function(){var dt=this,ot=dt.series;ot.forEach(function(at){at.linkedSeries.length=0}),ot.forEach(function(at){var ut=at.options.linkedTo;X(ut)&&(ut=ut===":previous"?dt.series[at.index-1]:dt.get(ut))&&ut.linkedParent!==at&&(ut.linkedSeries.push(at),at.linkedParent=ut,ut.enabledDataSorting&&at.setDataSortingOptions(),at.visible=tt(at.options.visible,ut.options.visible,at.visible))}),z(this,"afterLinkSeries")},yt.prototype.renderSeries=function(){this.series.forEach(function(dt){dt.translate(),dt.render()})},yt.prototype.renderLabels=function(){var dt=this,ot=dt.options.labels;ot.items&&ot.items.forEach(function(at){var ut=T(ot.style,at.style),vt=Q(ut.left)+dt.plotLeft,Ct=Q(ut.top)+dt.plotTop+12;delete ut.left,delete ut.top,dt.renderer.text(at.html,vt,Ct).attr({zIndex:2}).css(ut).add()})},yt.prototype.render=function(){var dt=this.axes,ot=this.colorAxis,at=this.renderer,ut=this.options,vt=function(At){At.forEach(function(Tt){Tt.visible&&Tt.render()})},Ct=0;this.setTitle(),this.legend=new V(this,ut.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),ut=this.plotWidth,dt.some(function(At){if(At.horiz&&At.visible&&At.options.labels.enabled&&At.series.length)return Ct=21,!0});var xt=this.plotHeight=Math.max(this.plotHeight-Ct,0);dt.forEach(function(At){At.setScale()}),this.getAxisMargins();var wt=1.1<ut/this.plotWidth,Mt=1.05<xt/this.plotHeight;(wt||Mt)&&(dt.forEach(function(At){(At.horiz&&wt||!At.horiz&&Mt)&&At.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?vt(dt):ot&&ot.length&&vt(ot),this.seriesGroup||(this.seriesGroup=at.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},yt.prototype.addCredits=function(dt){var ot=this,at=W(!0,this.options.credits,dt);at.enabled&&!this.credits&&(this.credits=this.renderer.text(at.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){at.href&&(i.location.href=at.href)}).attr({align:at.position.align,zIndex:8}),ot.styledMode||this.credits.css(at.style),this.credits.add().align(at.position),this.credits.update=function(ut){ot.credits=ot.credits.destroy(),ot.addCredits(ut)})},yt.prototype.destroy=function(){var dt,ot=this,at=ot.axes,ut=ot.series,vt=ot.container,Ct=vt&&vt.parentNode;for(z(ot,"destroy"),ot.renderer.forExport?d(f,ot):f[ot.index]=void 0,Z.chartCount--,ot.renderTo.removeAttribute("data-highcharts-chart"),lt(ot),dt=at.length;dt--;)at[dt]=at[dt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),dt=ut.length;dt--;)ut[dt]=ut[dt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(xt){var wt=ot[xt];wt&&wt.destroy&&(ot[xt]=wt.destroy())}),vt&&(vt.innerHTML=g.emptyHTML,lt(vt),Ct&&O(vt)),q(ot,function(xt,wt){delete ot[wt]})},yt.prototype.firstRender=function(){var dt=this,ot=dt.options;dt.isReadyToRender&&!dt.isReadyToRender()||(dt.getContainer(),dt.resetMargins(),dt.setChartSize(),dt.propFromSeries(),dt.getAxes(),(D(ot.series)?ot.series:[]).forEach(function(at){dt.initSeries(at)}),dt.linkSeries(),dt.setSeriesData(),z(dt,"beforeRender"),I&&(F.isRequired()?dt.pointer=new F(dt,ot):dt.pointer=new I(dt,ot)),dt.render(),dt.pointer.getChartPosition(),dt.renderer.imgCount||dt.hasLoaded||dt.onload(),dt.temporaryDisplay(!0))},yt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(dt){dt&&this.index!==void 0&&dt.apply(this,[this])},this),z(this,"load"),z(this,"render"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},yt.prototype.warnIfA11yModuleNotLoaded=function(){var dt=this.options,ot=this.title;dt&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(ot&&ot.element.textContent||"").replace(/</g,"<")}),dt.accessibility&&dt.accessibility.enabled===!1||x('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},yt.prototype.addSeries=function(dt,ot,at){var ut,vt=this;return dt&&(ot=tt(ot,!0),z(vt,"addSeries",{options:dt},function(){ut=vt.initSeries(dt),vt.isDirtyLegend=!0,vt.linkSeries(),ut.enabledDataSorting&&ut.setData(dt.data,!1),z(vt,"afterAddSeries",{series:ut}),ot&&vt.redraw(at)})),ut},yt.prototype.addAxis=function(dt,ot,at,ut){return this.createAxis(ot?"xAxis":"yAxis",{axis:dt,redraw:at,animation:ut})},yt.prototype.addColorAxis=function(dt,ot,at){return this.createAxis("colorAxis",{axis:dt,redraw:ot,animation:at})},yt.prototype.createAxis=function(dt,ot){return dt=new B(this,W(ot.axis,{index:this[dt].length,isX:dt==="xAxis"})),tt(ot.redraw,!0)&&this.redraw(ot.animation),dt},yt.prototype.showLoading=function(dt){var ot=this,at=ot.options,ut=at.loading,vt=function(){Ct&&b(Ct,{left:ot.plotLeft+"px",top:ot.plotTop+"px",width:ot.plotWidth+"px",height:ot.plotHeight+"px"})},Ct=ot.loadingDiv,xt=ot.loadingSpan;Ct||(ot.loadingDiv=Ct=h("div",{className:"highcharts-loading highcharts-loading-hidden"},null,ot.container)),xt||(ot.loadingSpan=xt=h("span",{className:"highcharts-loading-inner"},null,Ct),e(ot,"redraw",vt)),Ct.className="highcharts-loading",g.setElementHTML(xt,tt(dt,at.lang.loading,"")),ot.styledMode||(b(Ct,T(ut.style,{zIndex:10})),b(xt,ut.labelStyle),ot.loadingShown||(b(Ct,{opacity:0,display:""}),m(Ct,{opacity:ut.style.opacity||.5},{duration:ut.showDuration||0}))),ot.loadingShown=!0,vt()},yt.prototype.hideLoading=function(){var dt=this.options,ot=this.loadingDiv;ot&&(ot.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(ot,{opacity:0},{duration:dt.loading.hideDuration||100,complete:function(){b(ot,{display:"none"})}})),this.loadingShown=!1},yt.prototype.update=function(dt,ot,at,ut){var vt,Ct,xt=this,wt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Mt=dt.isResponsiveOptions,At=[];z(xt,"update",{options:dt}),Mt||xt.setResponsive(!1,!0),dt=s(dt,xt.options),xt.userOptions=W(xt.userOptions,dt);var Tt=dt.chart;if(Tt){if(W(!0,xt.options.chart,Tt),"className"in Tt&&xt.setClassName(Tt.className),"reflow"in Tt&&xt.setReflow(Tt.reflow),"inverted"in Tt||"polar"in Tt||"type"in Tt){xt.propFromSeries();var Et=!0}"alignTicks"in Tt&&(Et=!0),"events"in Tt&&p(this,Tt),q(Tt,function(Pt,Dt){xt.propsRequireUpdateSeries.indexOf("chart."+Dt)!==-1&&(vt=!0),xt.propsRequireDirtyBox.indexOf(Dt)!==-1&&(xt.isDirtyBox=!0),xt.propsRequireReflow.indexOf(Dt)!==-1&&(Mt?xt.isDirtyBox=!0:Ct=!0)}),!xt.styledMode&&Tt.style&&xt.renderer.setStyle(xt.options.chart.style||{})}!xt.styledMode&&dt.colors&&(this.options.colors=dt.colors),dt.time&&(this.time===M&&(this.time=new y(dt.time)),W(!0,xt.options.time,dt.time)),q(dt,function(Pt,Dt){xt[Dt]&&typeof xt[Dt].update=="function"?xt[Dt].update(Pt,!1):typeof xt[wt[Dt]]=="function"?xt[wt[Dt]](Pt):Dt!=="colors"&&xt.collectionsWithUpdate.indexOf(Dt)===-1&&W(!0,xt.options[Dt],dt[Dt]),Dt!=="chart"&&xt.propsRequireUpdateSeries.indexOf(Dt)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(Pt){if(dt[Pt]){var Dt=[];xt[Pt].forEach(function(It,jt){It.options.isInternal||Dt.push(tt(It.options.index,jt))}),gt(dt[Pt]).forEach(function(It,jt){var _t,Rt=k(It.id);Rt&&(_t=xt.get(It.id)),!_t&&xt[Pt]&&(_t=xt[Pt][Dt?Dt[jt]:jt])&&Rt&&k(_t.options.id)&&(_t=void 0),_t&&_t.coll===Pt&&(_t.update(It,!1),at&&(_t.touched=!0)),!_t&&at&&xt.collectionsWithInit[Pt]&&(xt.collectionsWithInit[Pt][0].apply(xt,[It].concat(xt.collectionsWithInit[Pt][1]||[]).concat([!1])).touched=!0)}),at&&xt[Pt].forEach(function(It){It.touched||It.options.isInternal?delete It.touched:At.push(It)})}}),At.forEach(function(Pt){Pt.chart&&Pt.remove&&Pt.remove(!1)}),Et&&xt.axes.forEach(function(Pt){Pt.update({},!1)}),vt&&xt.getSeriesOrderByLinks().forEach(function(Pt){Pt.chart&&Pt.update({},!1)},this),Et=Tt&&Tt.width,Tt=Tt&&(X(Tt.height)?nt(Tt.height,Et||xt.chartWidth):Tt.height),Ct||j(Et)&&Et!==xt.chartWidth||j(Tt)&&Tt!==xt.chartHeight?xt.setSize(Et,Tt,ut):tt(ot,!0)&&xt.redraw(ut),z(xt,"afterUpdate",{options:dt,redraw:ot,animation:ut})},yt.prototype.setSubtitle=function(dt,ot){this.applyDescription("subtitle",dt),this.layOutTitles(ot)},yt.prototype.setCaption=function(dt,ot){this.applyDescription("caption",dt),this.layOutTitles(ot)},yt.prototype.showResetZoom=function(){function dt(){ot.zoomOut()}var ot=this,at=w.lang,ut=ot.options.chart.zooming.resetButton,vt=ut.theme,Ct=ut.relativeTo==="chart"||ut.relativeTo==="spacingBox"?null:"scrollablePlotBox";z(this,"beforeShowResetZoom",null,function(){ot.resetZoomButton=ot.renderer.button(at.resetZoom,null,null,dt,vt).attr({align:ut.position.align,title:at.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ut.position,!1,Ct)}),z(this,"afterShowResetZoom")},yt.prototype.zoomOut=function(){z(this,"selection",{resetSelection:!0},this.zoom)},yt.prototype.zoom=function(dt){var ot,at=this,ut=at.pointer,vt=!1;!dt||dt.resetSelection?(at.axes.forEach(function(xt){ot=xt.zoom()}),ut.initiated=!1):dt.xAxis.concat(dt.yAxis).forEach(function(xt){var wt=xt.axis;(ut[wt.isXAxis?"zoomX":"zoomY"]&&k(ut.mouseDownX)&&k(ut.mouseDownY)&&at.isInsidePlot(ut.mouseDownX-at.plotLeft,ut.mouseDownY-at.plotTop,{axis:wt})||!k(at.inverted?ut.mouseDownX:ut.mouseDownY))&&(ot=wt.zoom(xt.min,xt.max),wt.displayBtn&&(vt=!0))});var Ct=at.resetZoomButton;vt&&!Ct?at.showResetZoom():!vt&&Y(Ct)&&(at.resetZoomButton=Ct.destroy()),ot&&at.redraw(tt(at.options.chart.animation,dt&&dt.animation,100>at.pointCount))},yt.prototype.pan=function(dt,ot){var at=this,ut=at.hoverPoints;ot=typeof ot=="object"?ot:{enabled:ot,type:"x"};var vt=at.options.chart;vt&&vt.panning&&(vt.panning=ot);var Ct,xt=ot.type;z(this,"pan",{originalEvent:dt},function(){ut&&ut.forEach(function(At){At.setState()});var wt=at.xAxis;xt==="xy"?wt=wt.concat(at.yAxis):xt==="y"&&(wt=at.yAxis);var Mt={};wt.forEach(function(At){if(At.options.panningEnabled&&!At.options.isInternal){var Tt=At.horiz,Et=dt[Tt?"chartX":"chartY"],Pt=at[Tt=Tt?"mouseDownX":"mouseDownY"],Dt=At.minPointOffset||0,It=At.reversed&&!at.inverted||!At.reversed&&at.inverted?-1:1,jt=At.getExtremes(),_t=At.toValue(Pt-Et,!0)+Dt*It,Rt=At.toValue(Pt+At.len-Et,!0)-(Dt*It||At.isXAxis&&At.pointRangePadding||0),Jt=Rt<_t;It=At.hasVerticalPanning(),Pt=Jt?Rt:_t,_t=Jt?_t:Rt;var zt=At.panningState;!It||At.isXAxis||zt&&!zt.isDirty||At.series.forEach(function(Vt){var te=Vt.getProcessedData(!0);te=Vt.getExtremes(te.yData,!0),zt||(zt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(te.dataMin)&&j(te.dataMax)&&(zt.startMin=Math.min(tt(Vt.options.threshold,1/0),te.dataMin,zt.startMin),zt.startMax=Math.max(tt(Vt.options.threshold,-1/0),te.dataMax,zt.startMax))}),It=Math.min(tt(zt&&zt.startMin,jt.dataMin),Dt?jt.min:At.toValue(At.toPixels(jt.min)-At.minPixelPadding)),Rt=Math.max(tt(zt&&zt.startMax,jt.dataMax),Dt?jt.max:At.toValue(At.toPixels(jt.max)+At.minPixelPadding)),At.panningState=zt,At.isOrdinal||(0<(Dt=It-Pt)&&(_t+=Dt,Pt=It),0<(Dt=_t-Rt)&&(_t=Rt,Pt-=Dt),At.series.length&&Pt!==jt.min&&_t!==jt.max&&Pt>=It&&_t<=Rt&&(At.setExtremes(Pt,_t,!1,!1,{trigger:"pan"}),!at.resetZoomButton&&Pt!==It&&_t!==Rt&&xt.match("y")&&(at.showResetZoom(),At.displayBtn=!1),Ct=!0),Mt[Tt]=Et)}}),q(Mt,function(At,Tt){at[Tt]=At}),Ct&&at.redraw(!1),b(at.container,{cursor:"move"})})},yt}(),T(G.prototype,{callbacks:[],collectionsWithInit:{xAxis:[G.prototype.addAxis,[!0]],yAxis:[G.prototype.addAxis,[!1]],series:[G.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),G}),_(et,"Core/Legend/LegendSymbol.js",[et["Core/Utilities.js"]],function(G){var B,H=G.extend,U=G.merge,$=G.pick;return function(Z){Z.drawLineMarker=function(V){var F=this.legendItem=this.legendItem||{},I=this.options,E=V.symbolWidth,A=V.symbolHeight,P=A/2,y=this.chart.renderer,c=F.group;V=V.baseline-Math.round(.3*V.fontMetrics.b);var g={},m=I.marker,u=0;this.chart.styledMode||(g={"stroke-width":Math.min(I.lineWidth||0,24)},I.dashStyle?g.dashstyle=I.dashStyle:I.linecap!=="square"&&(g["stroke-linecap"]="round")),F.line=y.path().addClass("highcharts-graph").attr(g).add(c),g["stroke-linecap"]&&(u=Math.min(F.line.strokeWidth(),E)/2),F.line.attr({d:[["M",u,V],["L",E-u,V]]}),m&&m.enabled!==!1&&E&&(I=Math.min($(m.radius,P),P),this.symbol.indexOf("url")===0&&(m=U(m,{width:A,height:A}),I=0),F.symbol=F=y.symbol(this.symbol,E/2-I,V-I,2*I,2*I,H({context:"legend"},m)).addClass("highcharts-point").add(c),F.isMarker=!0)},Z.drawRectangle=function(V,F){F=F.legendItem||{};var I=V.symbolHeight,E=V.options.squareSymbol;F.symbol=this.chart.renderer.rect(E?(V.symbolWidth-I)/2:0,V.baseline-I+1,E?I:V.symbolWidth,I,$(V.options.symbolRadius,I/2)).addClass("highcharts-point").attr({zIndex:3}).add(F.group)}}(B||(B={})),B}),_(et,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var G=this.series.chart.numberFormatter;return typeof this.y!="number"?"":G(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),_(et,"Core/Series/Series.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Defaults.js"],et["Core/Foundation.js"],et["Core/Globals.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/Point.js"],et["Core/Series/SeriesDefaults.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I,E){var A=G.animObject,P=G.setAnimation,y=B.defaultOptions,c=H.registerEventOptions,g=U.hasTouch,m=U.svg,u=U.win,v=F.seriesTypes,w=E.arrayMax,M=E.arrayMin,C=E.clamp,p=E.cleanRecursively,f=E.correctFloat,r=E.defined,l=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,a=E.getNestedProperty,s=E.isArray,h=E.isNumber,b=E.isString,k=E.merge,O=E.objectEach,d=E.pick,x=E.removeEvent,T=E.splat,N=E.syncTimeout;return G=function(){function z(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return z.prototype.init=function(L,D){e(this,"init",{options:D});var j=this,Y=L.series;this.eventsToUnbind=[],j.chart=L,j.options=j.setOptions(D),D=j.options,j.linkedSeries=[],j.bindAxes(),i(j,{name:D.name,state:"",visible:D.visible!==!1,selected:D.selected===!0}),c(this,D);var X,W=D.events;(W&&W.click||D.point&&D.point.events&&D.point.events.click||D.allowPointSelect)&&(L.runTrackerClick=!0),j.getColor(),j.getSymbol(),j.parallelArrays.forEach(function(q){j[q+"Data"]||(j[q+"Data"]=[])}),j.isCartesian&&(L.hasCartesianSeries=!0),Y.length&&(X=Y[Y.length-1]),j._i=d(X&&X._i,-1)+1,j.opacity=j.options.opacity,L.orderSeries(this.insert(Y)),D.dataSorting&&D.dataSorting.enabled?j.setDataSortingOptions():j.points||j.data||j.setData(D.data,!1),e(this,"afterInit")},z.prototype.is=function(L){return v[L]&&this instanceof v[L]},z.prototype.insert=function(L){var D,j=this.options.index;if(h(j)){for(D=L.length;D--;)if(j>=d(L[D].options.index,L[D]._i)){L.splice(D+1,0,this);break}D===-1&&L.unshift(this),D+=1}else L.push(this);return d(D,L.length-1)},z.prototype.bindAxes=function(){var L,D=this,j=D.options,Y=D.chart;e(this,"bindAxes",null,function(){(D.axisTypes||[]).forEach(function(X){var W=0;Y[X].forEach(function(q){L=q.options,(j[X]===W&&!L.isInternal||j[X]!==void 0&&j[X]===L.id||j[X]===void 0&&L.index===0)&&(D.insert(q.series),D[X]=q,q.isDirty=!0),L.isInternal||W++}),D[X]||D.optionalAxis===X||t(18,!0,Y)})}),e(this,"afterBindAxes")},z.prototype.updateParallelArrays=function(L,D){var j=L.series,Y=arguments,X=h(D)?function(W){var q=W==="y"&&j.toYData?j.toYData(L):L[W];j[W+"Data"][D]=q}:function(W){Array.prototype[D].apply(j[W+"Data"],Array.prototype.slice.call(Y,2))};j.parallelArrays.forEach(X)},z.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&0<this.yData.length},z.prototype.autoIncrement=function(L){var D,j=this.options,Y=j.pointIntervalUnit,X=j.relativeXValue,W=this.chart.time,q=this.xIncrement;return q=d(q,j.pointStart,0),this.pointInterval=D=d(this.pointInterval,j.pointInterval,1),X&&h(L)&&(D*=L),Y&&(j=new W.Date(q),Y==="day"?W.set("Date",j,W.get("Date",j)+D):Y==="month"?W.set("Month",j,W.get("Month",j)+D):Y==="year"&&W.set("FullYear",j,W.get("FullYear",j)+D),D=j.getTime()-q),X&&h(L)?q+D:(this.xIncrement=q+D,q)},z.prototype.setDataSortingOptions=function(){var L=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(L.pointRange)||(L.pointRange=1)},z.prototype.setOptions=function(L){var D=this.chart,j=D.options,Y=j.plotOptions,X=D.userOptions||{};L=k(L),D=D.styledMode;var W={plotOptions:Y,userOptions:L};e(this,"setOptions",W);var q=W.plotOptions[this.type],tt=X.plotOptions||{};return this.userOptions=W.userOptions,X=k(q,Y.series,X.plotOptions&&X.plotOptions[this.type],L),this.tooltipOptions=k(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,j.tooltip.userOptions,Y.series&&Y.series.tooltip,Y[this.type].tooltip,L.tooltip),this.stickyTracking=d(L.stickyTracking,tt[this.type]&&tt[this.type].stickyTracking,tt.series&&tt.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||X.stickyTracking),q.marker===null&&delete X.marker,this.zoneAxis=X.zoneAxis,Y=this.zones=(X.zones||[]).slice(),!X.negativeColor&&!X.negativeFillColor||X.zones||(j={value:X[this.zoneAxis+"Threshold"]||X.threshold||0,className:"highcharts-negative"},D||(j.color=X.negativeColor,j.fillColor=X.negativeFillColor),Y.push(j)),Y.length&&r(Y[Y.length-1].value)&&Y.push(D?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:X}),X},z.prototype.getName=function(){return d(this.options.name,"Series "+(this.index+1))},z.prototype.getCyclic=function(L,D,j){var Y=this.chart,X=this.userOptions,W=L+"Index",q=L+"Counter",tt=j?j.length:d(Y.options.chart[L+"Count"],Y[L+"Count"]);if(!D){var Q=d(X[W],X["_"+W]);r(Q)||(Y.series.length||(Y[q]=0),X["_"+W]=Q=Y[q]%tt,Y[q]+=1),j&&(D=j[Q])}Q!==void 0&&(this[W]=Q),this[L]=D},z.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},z.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},z.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},z.prototype.findPointIndex=function(L,D){var j,Y,X=L.id,W=L.x,q=this.points,tt=this.options.dataSorting;if(X)(tt=this.chart.get(X))instanceof Z&&(j=tt);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(j=function(nt){return!nt.touched&&nt.index===L.index},tt&&tt.matchByName?j=function(nt){return!nt.touched&&nt.name===L.name}:this.options.relativeXValue&&(j=function(nt){return!nt.touched&&nt.options.x===L.x}),!(j=o(q,j))))return;if(j){var Q=j&&j.index;Q!==void 0&&(Y=!0)}return Q===void 0&&h(W)&&(Q=this.xData.indexOf(W,D)),Q!==-1&&Q!==void 0&&this.cropped&&(Q=Q>=this.cropStart?Q-this.cropStart:Q),!Y&&h(Q)&&q[Q]&&q[Q].touched&&(Q=void 0),Q},z.prototype.updateData=function(L,D){var j,Y,X,W=this.options,q=W.dataSorting,tt=this.points,Q=[],nt=this.requireSorting,lt=L.length===tt.length,gt=!0;if(this.xIncrement=null,L.forEach(function(mt,bt){var yt=r(mt)&&this.pointClass.prototype.optionsToObject.call({series:this},mt)||{},dt=yt.x;yt.id||h(dt)?((yt=this.findPointIndex(yt,X))===-1||yt===void 0?Q.push(mt):tt[yt]&&mt!==W.data[yt]?(tt[yt].update(mt,!1,null,!1),tt[yt].touched=!0,nt&&(X=yt+1)):tt[yt]&&(tt[yt].touched=!0),(!lt||bt!==yt||q&&q.enabled||this.hasDerivedData)&&(j=!0)):Q.push(mt)},this),j)for(L=tt.length;L--;)(Y=tt[L])&&!Y.touched&&Y.remove&&Y.remove(!1,D);else!lt||q&&q.enabled?gt=!1:(L.forEach(function(mt,bt){mt!==tt[bt].y&&tt[bt].update&&tt[bt].update(mt,!1,null,!1)}),Q.length=0);return tt.forEach(function(mt){mt&&(mt.touched=!1)}),!!gt&&(Q.forEach(function(mt){this.addPoint(mt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=w(this.xData),this.autoIncrement()),!0)},z.prototype.setData=function(L,D,j,Y){D===void 0&&(D=!0);var X=this,W=X.points,q=W&&W.length||0,tt=X.options,Q=X.chart,nt=tt.dataSorting,lt=X.xAxis,gt=tt.turboThreshold,mt=this.xData,bt=this.yData,yt=X.pointArrayMap;yt=yt&&yt.length;var dt,ot=tt.keys,at=0,ut=1,vt=null;if(!Q.options.chart.allowMutatingData){tt.data&&delete X.options.data,X.userOptions.data&&delete X.userOptions.data;var Ct=k(!0,L)}if(Ct=(L=Ct||L||[]).length,nt&&nt.enabled&&(L=this.sortData(L)),Q.options.chart.allowMutatingData&&Y!==!1&&Ct&&q&&!X.cropped&&!X.hasGroupedData&&X.visible&&!X.boosted&&(dt=this.updateData(L,j)),!dt){if(X.xIncrement=null,X.colorCounter=0,this.parallelArrays.forEach(function(xt){X[xt+"Data"].length=0}),gt&&Ct>gt)if(vt=X.getFirstValidPoint(L),h(vt))for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else if(s(vt))if(yt)if(vt.length===yt)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[0],bt[j]=Y.slice(1,yt+1);else if(ot&&(at=0<=(at=ot.indexOf("x"))?at:0,ut=0<=(ut=ot.indexOf("y"))?ut:1),vt.length===1&&(ut=0),at===ut)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j][ut];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[at],bt[j]=Y[ut];else t(12,!1,Q);else for(j=0;j<Ct;j++)L[j]!==void 0&&(Y={series:X},X.pointClass.prototype.applyOptions.apply(Y,[L[j]]),X.updateParallelArrays(Y,j));for(bt&&b(bt[0])&&t(14,!0,Q),X.data=[],X.options.data=X.userOptions.data=L,j=q;j--;)W[j]&&W[j].destroy&&W[j].destroy();lt&&(lt.minRange=lt.userMinRange),X.isDirty=Q.isDirtyBox=!0,X.isDirtyData=!!W,j=!1}tt.legendType==="point"&&(this.processData(),this.generatePoints()),D&&Q.redraw(j)},z.prototype.sortData=function(L){var D=this,j=D.options.dataSorting.sortKey||"y",Y=function(X,W){return r(W)&&X.pointClass.prototype.optionsToObject.call({series:X},W)||{}};return L.forEach(function(X,W){L[W]=Y(D,X),L[W].index=W},this),L.concat().sort(function(X,W){return X=a(j,X),(W=a(j,W))<X?-1:W>X?1:0}).forEach(function(X,W){X.x=W},this),D.linkedSeries&&D.linkedSeries.forEach(function(X){var W=X.options,q=W.data;W.dataSorting&&W.dataSorting.enabled||!q||(q.forEach(function(tt,Q){q[Q]=Y(X,tt),L[Q]&&(q[Q].x=L[Q].x,q[Q].index=Q)}),X.setData(q,!1))}),L},z.prototype.getProcessedData=function(L){var D=this.xAxis,j=this.options,Y=j.cropThreshold,X=L||this.getExtremesFromAll||j.getExtremesFromAll,W=this.isCartesian;L=D&&D.val2lin,j=!(!D||!D.logarithmic);var q=0,tt=this.xData,Q=this.yData,nt=this.requireSorting,lt=!1,gt=tt.length;if(D){var mt=(lt=D.getExtremes()).min,bt=lt.max;lt=!(!D.categories||D.names.length)}if(W&&this.sorted&&!X&&(!Y||gt>Y||this.forceCrop)){if(tt[gt-1]<mt||tt[0]>bt)tt=[],Q=[];else if(this.yData&&(tt[0]<mt||tt[gt-1]>bt)){var yt=this.cropData(this.xData,this.yData,mt,bt);tt=yt.xData,Q=yt.yData,q=yt.start,yt=!0}}for(Y=tt.length||1;--Y;)if(0<(D=j?L(tt[Y])-L(tt[Y-1]):tt[Y]-tt[Y-1])&&(dt===void 0||D<dt))var dt=D;else 0>D&&nt&&!lt&&(t(15,!1,this.chart),nt=!1);return{xData:tt,yData:Q,cropped:yt,cropStart:q,closestPointRange:dt}},z.prototype.processData=function(L){var D=this.xAxis;if(this.isCartesian&&!this.isDirty&&!D.isDirty&&!this.yAxis.isDirty&&!L)return!1;L=this.getProcessedData(),this.cropped=L.cropped,this.cropStart=L.cropStart,this.processedXData=L.xData,this.processedYData=L.yData,this.closestPointRange=this.basePointRange=L.closestPointRange,e(this,"afterProcessData")},z.prototype.cropData=function(L,D,j,Y,X){var W,q=L.length,tt=0,Q=q;for(X=d(X,this.cropShoulder),W=0;W<q;W++)if(L[W]>=j){tt=Math.max(0,W-X);break}for(j=W;j<q;j++)if(L[j]>Y){Q=j+X;break}return{xData:L.slice(tt,Q),yData:D.slice(tt,Q),start:tt,end:Q}},z.prototype.generatePoints=function(){var L=this.options,D=this.processedData||L.data,j=this.processedXData,Y=this.processedYData,X=this.pointClass,W=j.length,q=this.cropStart||0,tt=this.hasGroupedData,Q=L.keys,nt=[];L=L.dataGrouping&&L.dataGrouping.groupAll?q:0;var lt,gt,mt=this.data;if(!mt&&!tt){var bt=[];bt.length=D.length,mt=this.data=bt}for(Q&&tt&&(this.options.keys=!1),gt=0;gt<W;gt++){if(bt=q+gt,tt){var yt=new X().init(this,[j[gt]].concat(T(Y[gt])));yt.dataGroup=this.groupMap[L+gt],yt.dataGroup.options&&(yt.options=yt.dataGroup.options,i(yt,yt.dataGroup.options),delete yt.dataLabels)}else(yt=mt[bt])||D[bt]===void 0||(mt[bt]=yt=new X().init(this,D[bt],j[gt]));yt&&(yt.index=tt?L+gt:bt,nt[gt]=yt)}if(this.options.keys=Q,mt&&(W!==(lt=mt.length)||tt))for(gt=0;gt<lt;gt++)gt!==q||tt||(gt+=W),mt[gt]&&(mt[gt].destroyElements(),mt[gt].plotX=void 0);this.data=mt,this.points=nt,e(this,"afterGeneratePoints")},z.prototype.getXExtremes=function(L){return{min:M(L),max:w(L)}},z.prototype.getExtremes=function(L,D){var j=this.xAxis,Y=this.yAxis,X=this.processedXData||this.xData,W=[],q=this.requireSorting?this.cropShoulder:0;Y=!!Y&&Y.positiveValuesOnly;var tt,Q=0,nt=0,lt=0,gt=(L=L||this.stackedYData||this.processedYData||[]).length;if(j){var mt=j.getExtremes();Q=mt.min,nt=mt.max}for(tt=0;tt<gt;tt++){var bt=X[tt];mt=L[tt];var yt=(h(mt)||s(mt))&&(mt.length||0<mt||!Y);if(bt=D||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!j||(X[tt+q]||bt)>=Q&&(X[tt-q]||bt)<=nt,yt&&bt)if(yt=mt.length)for(;yt--;)h(mt[yt])&&(W[lt++]=mt[yt]);else W[lt++]=mt}return L={activeYData:W,dataMin:M(W),dataMax:w(W)},e(this,"afterGetExtremes",{dataExtremes:L}),L},z.prototype.applyExtremes=function(){var L=this.getExtremes();return this.dataMin=L.dataMin,this.dataMax=L.dataMax,L},z.prototype.getFirstValidPoint=function(L){for(var D=L.length,j=0,Y=null;Y===null&&j<D;)Y=L[j],j++;return Y},z.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var L,D,j=this.options,Y=j.stacking,X=this.xAxis,W=X.categories,q=this.enabledDataSorting,tt=this.yAxis,Q=this.points,nt=Q.length,lt=this.pointPlacementToXValue(),gt=!!lt,mt=j.threshold,bt=j.startFromThreshold?mt:0,yt=this.zoneAxis||"y",dt=Number.MAX_VALUE;for(L=0;L<nt;L++){var ot=Q[L],at=ot.x,ut=void 0,vt=void 0,Ct=ot.y,xt=ot.low,wt=Y&&tt.stacking&&tt.stacking.stacks[(this.negStacks&&Ct<(bt?0:mt)?"-":"")+this.stackKey];if((tt.positiveValuesOnly&&!tt.validatePositiveValue(Ct)||X.positiveValuesOnly&&!X.validatePositiveValue(at))&&(ot.isNull=!0),ot.plotX=D=f(C(X.translate(at,0,0,0,1,lt,this.type==="flags"),-1e5,1e5)),Y&&this.visible&&wt&&wt[at]){var Mt=this.getStackIndicator(Mt,at,this.index);!ot.isNull&&Mt.key&&(vt=(ut=wt[at]).points[Mt.key]),ut&&s(vt)&&(xt=vt[0],Ct=vt[1],xt===bt&&Mt.key===wt[at].base&&(xt=d(h(mt)?mt:tt.min)),tt.positiveValuesOnly&&r(xt)&&0>=xt&&(xt=void 0),ot.total=ot.stackTotal=d(ut.total),ot.percentage=r(ot.y)&&ut.total?ot.y/ut.total*100:void 0,ot.stackY=Ct,this.irregularWidths||ut.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(ot.yBottom=r(xt)?C(tt.translate(xt,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(Ct=this.dataModify.modifyValue(Ct,L)),ot.plotY=void 0,h(Ct)&&(ut=tt.translate(Ct,!1,!0,!1,!0))!==void 0&&(ot.plotY=C(ut,-1e5,1e5)),ot.isInside=this.isPointInside(ot),ot.clientX=gt?f(X.translate(at,0,0,0,1,lt)):D,ot.negative=ot[yt]<(j[yt+"Threshold"]||mt||0),ot.category=d(W&&W[ot.x],ot.x),!ot.isNull&&ot.visible!==!1){At!==void 0&&(dt=Math.min(dt,Math.abs(D-At)));var At=D}ot.zone=this.zones.length?ot.getZone():void 0,!ot.graphic&&this.group&&q&&(ot.isNew=!0)}this.closestPointRangePx=dt,e(this,"afterTranslate")},z.prototype.getValidPoints=function(L,D,j){var Y=this.chart;return(L||this.points||[]).filter(function(X){return!(D&&!Y.isInsidePlot(X.plotX,X.plotY,{inverted:Y.inverted}))&&X.visible!==!1&&(j||!X.isNull)})},z.prototype.getClipBox=function(){var L=this.chart,D=this.xAxis,j=this.yAxis,Y=k(L.clipBox);return D&&D.len!==L.plotSizeX&&(Y.width=D.len),j&&j.len!==L.plotSizeY&&(Y.height=j.len),Y},z.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},z.prototype.setClip=function(){var L=this.chart,D=this.group,j=this.markerGroup,Y=L.sharedClips;L=L.renderer;var X=this.getClipBox(),W=this.getSharedClipKey(),q=Y[W];q?q.animate(X):Y[W]=q=L.clipRect(X),D&&D.clip(this.options.clip===!1?void 0:q),j&&j.clip()},z.prototype.animate=function(L){var D=this.chart,j=this.group,Y=this.markerGroup,X=D.inverted,W=A(this.options.animation),q=[this.getSharedClipKey(),W.duration,W.easing,W.defer].join(),tt=D.sharedClips[q],Q=D.sharedClips[q+"m"];if(L&&j)W=this.getClipBox(),tt?tt.attr("height",W.height):(W.width=0,X&&(W.x=D.plotHeight),tt=D.renderer.clipRect(W),D.sharedClips[q]=tt,Q=D.renderer.clipRect({x:-99,y:-99,width:X?D.plotWidth+199:99,height:X?99:D.plotHeight+199}),D.sharedClips[q+"m"]=Q),j.clip(tt),Y&&Y.clip(Q);else if(tt&&!tt.hasClass("highcharts-animating")){D=this.getClipBox();var nt=W.step;Y&&Y.element.childNodes.length&&(W.step=function(lt,gt){nt&&nt.apply(gt,arguments),gt.prop==="width"&&Q&&Q.element&&Q.attr(X?"height":"width",lt+99)}),tt.addClass("highcharts-animating").animate(D,W)}},z.prototype.afterAnimate=function(){var L=this;this.setClip(),O(this.chart.sharedClips,function(D,j,Y){D&&!L.chart.container.querySelector('[clip-path="url(#'.concat(D.id,')"]'))&&(D.destroy(),delete Y[j])}),this.finishedAnimating=!0,e(this,"afterAnimate")},z.prototype.drawPoints=function(L){L===void 0&&(L=this.points);var D,j,Y=this.chart,X=Y.styledMode,W=this.colorAxis,q=this.options.marker,tt=this[this.specialGroup||"markerGroup"],Q=this.xAxis,nt=d(q.enabled,!(Q&&!Q.isRadial)||null,this.closestPointRangePx>=q.enabledThreshold*q.radius);if(q.enabled!==!1||this._hasPointMarkers)for(D=0;D<L.length;D++){var lt=L[D],gt=(j=lt.graphic)?"animate":"attr",mt=lt.marker||{},bt=!!lt.marker;if((nt&&mt.enabled===void 0||mt.enabled)&&!lt.isNull&<.visible!==!1){var yt=d(mt.symbol,this.symbol,"rect"),dt=this.markerAttribs(lt,lt.selected&&"select");this.enabledDataSorting&&(lt.startXPos=Q.reversed?-(dt.width||0):Q.width);var ot=lt.isInside!==!1;!j&&ot&&(0<(dt.width||0)||lt.hasImage)&&(lt.graphic=j=Y.renderer.symbol(yt,dt.x,dt.y,dt.width,dt.height,bt?mt:q).add(tt),this.enabledDataSorting&&Y.hasRendered&&(j.attr({x:lt.startXPos}),gt="animate")),j&>==="animate"&&j[ot?"show":"hide"](ot).animate(dt),j&&(mt=this.pointAttribs(lt,X||!lt.selected?void 0:"select"),X?W&&j.css({fill:mt.fill}):j[gt](mt)),j&&j.addClass(lt.getClassName(),!0)}else j&&(lt.graphic=j.destroy())}},z.prototype.markerAttribs=function(L,D){var j=this.options,Y=j.marker,X=L.marker||{},W=X.symbol||Y.symbol,q={},tt=d(X.radius,Y&&Y.radius);return D&&(Y=Y.states[D],D=X.states&&X.states[D],tt=d(D&&D.radius,Y&&Y.radius,tt&&tt+(Y&&Y.radiusPlus||0))),L.hasImage=W&&W.indexOf("url")===0,L.hasImage&&(tt=0),L=L.pos(),h(tt)&&L&&(q.x=L[0]-tt,q.y=L[1]-tt,j.crisp&&(q.x=Math.floor(q.x))),tt&&(q.width=q.height=2*tt),q},z.prototype.pointAttribs=function(L,D){var j=this.options.marker,Y=L&&L.options,X=Y&&Y.marker||{},W=Y&&Y.color,q=L&&L.color,tt=L&&L.zone&&L.zone.color,Q=this.color;return L=d(X.lineWidth,j.lineWidth),Y=1,Q=W||tt||q||Q,W=X.fillColor||j.fillColor||Q,q=X.lineColor||j.lineColor||Q,D=D||"normal",j=j.states[D]||{},D=X.states&&X.states[D]||{},L=d(D.lineWidth,j.lineWidth,L+d(D.lineWidthPlus,j.lineWidthPlus,0)),W=D.fillColor||j.fillColor||W,{stroke:q=D.lineColor||j.lineColor||q,"stroke-width":L,fill:W,opacity:Y=d(D.opacity,j.opacity,Y)}},z.prototype.destroy=function(L){var D,j,Y,X=this,W=X.chart,q=/AppleWebKit\/533/.test(u.navigator.userAgent),tt=X.data||[];for(e(X,"destroy",{keepEventsForUpdate:L}),this.removeEvents(L),(X.axisTypes||[]).forEach(function(Q){(Y=X[Q])&&Y.series&&(l(Y.series,X),Y.isDirty=Y.forceRedraw=!0)}),X.legendItem&&X.chart.legend.destroyItem(X),D=tt.length;D--;)(j=tt[D])&&j.destroy&&j.destroy();X.clips&&X.clips.forEach(function(Q){return Q.destroy()}),E.clearTimeout(X.animationTimeout),O(X,function(Q,nt){Q instanceof I&&!Q.survive&&Q[q&&nt==="group"?"hide":"destroy"]()}),W.hoverSeries===X&&(W.hoverSeries=void 0),l(W.series,X),W.orderSeries(),O(X,function(Q,nt){L&&nt==="hcEvents"||delete X[nt]})},z.prototype.applyZones=function(){var L,D,j,Y,X,W,q,tt,Q=this,nt=this.chart,lt=nt.renderer,gt=this.zones,mt=this.clips||[],bt=this.graph,yt=this.area,dt=Math.max(nt.plotWidth,nt.plotHeight),ot=this[(this.zoneAxis||"y")+"Axis"],at=nt.inverted,ut=!1;if(gt.length&&(bt||yt)&&ot&&ot.min!==void 0){var vt=ot.reversed,Ct=ot.horiz;bt&&!this.showLine&&bt.hide(),yt&&yt.hide();var xt=ot.getExtremes();gt.forEach(function(wt,Mt){L=vt?Ct?nt.plotWidth:0:Ct?0:ot.toPixels(xt.min)||0,L=C(d(D,L),0,dt),D=C(Math.round(ot.toPixels(d(wt.value,xt.max),!0)||0),0,dt),ut&&(L=D=ot.toPixels(xt.max)),Y=Math.abs(L-D),X=Math.min(L,D),W=Math.max(L,D),ot.isXAxis?(j={x:at?W:X,y:0,width:Y,height:dt},Ct||(j.x=nt.plotHeight-j.x)):(j={x:0,y:at?W:X,width:dt,height:Y},Ct&&(j.y=nt.plotWidth-j.y)),at&<.isVML&&(j=ot.isXAxis?{x:0,y:vt?X:W,height:j.width,width:nt.chartWidth}:{x:j.y-nt.plotLeft-nt.spacingBox.x,y:0,width:j.height,height:nt.chartHeight}),mt[Mt]?mt[Mt].animate(j):mt[Mt]=lt.clipRect(j),q=Q["zone-area-"+Mt],tt=Q["zone-graph-"+Mt],bt&&tt&&tt.clip(mt[Mt]),yt&&q&&q.clip(mt[Mt]),ut=wt.value>xt.max,Q.resetZones&&D===0&&(D=void 0)}),this.clips=mt}else Q.visible&&(bt&&bt.show(),yt&&yt.show())},z.prototype.plotGroup=function(L,D,j,Y,X){var W=this[L],q=!W;return j={visibility:j,zIndex:Y||.1},this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(j.opacity=this.opacity),q&&(this[L]=W=this.chart.renderer.g().add(X)),W.addClass("highcharts-"+D+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(W.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),W.attr(j)[q?"attr":"animate"](this.getPlotBox(D)),W},z.prototype.getPlotBox=function(L){var D=this.xAxis,j=this.yAxis,Y=this.chart;return L=Y.inverted&&!Y.polar&&D&&this.invertible!==!1&&L==="series",Y.inverted&&(D=j,j=this.xAxis),{translateX:D?D.left:Y.plotLeft,translateY:j?j.top:Y.plotTop,rotation:L?90:0,rotationOriginX:L?(D.len-j.len)/2:0,rotationOriginY:L?(D.len+j.len)/2:0,scaleX:L?-1:1,scaleY:1}},z.prototype.removeEvents=function(L){L||x(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(D){D()}),this.eventsToUnbind.length=0)},z.prototype.render=function(){var L=this,D=L.chart,j=L.options,Y=A(j.animation),X=L.visible?"inherit":"hidden",W=j.zIndex,q=L.hasRendered,tt=D.seriesGroup;D=!L.finishedAnimating&&D.renderer.isSVG?Y.duration:0,e(this,"render"),L.plotGroup("group","series",X,W,tt),L.markerGroup=L.plotGroup("markerGroup","markers",X,W,tt),j.clip!==!1&&L.setClip(),L.animate&&D&&L.animate(!0),L.drawGraph&&(L.drawGraph(),L.applyZones()),L.visible&&L.drawPoints(),L.drawDataLabels&&L.drawDataLabels(),L.redrawPoints&&L.redrawPoints(),L.drawTracker&&L.options.enableMouseTracking!==!1&&L.drawTracker(),L.animate&&D&&L.animate(),q||(D&&Y.defer&&(D+=Y.defer),L.animationTimeout=N(function(){L.afterAnimate()},D||0)),L.isDirty=!1,L.hasRendered=!0,e(L,"afterRender")},z.prototype.redraw=function(){var L=this.isDirty||this.isDirtyData;this.translate(),this.render(),L&&delete this.kdTree},z.prototype.searchPoint=function(L,D){var j=this.xAxis,Y=this.yAxis,X=this.chart.inverted;return this.searchKDTree({clientX:X?j.len-L.chartY+j.pos:L.chartX-j.pos,plotY:X?Y.len-L.chartX+Y.pos:L.chartY-Y.pos},D,L)},z.prototype.buildKDTree=function(L){function D(X,W,q){var tt=X&&X.length;if(tt){var Q=j.kdAxisArray[W%q];return X.sort(function(nt,lt){return nt[Q]-lt[Q]}),{point:X[tt=Math.floor(tt/2)],left:D(X.slice(0,tt),W+1,q),right:D(X.slice(tt+1),W+1,q)}}}this.buildingKdTree=!0;var j=this,Y=-1<j.options.findNearestPointBy.indexOf("y")?2:1;delete j.kdTree,N(function(){j.kdTree=D(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||L&&L.type==="touchstart"?0:1)},z.prototype.searchKDTree=function(L,D,j){var Y=this,X=this.kdAxisArray[0],W=this.kdAxisArray[1],q=D?"distX":"dist";if(D=-1<Y.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(j),this.kdTree)return function tt(Q,nt,lt,gt){var mt=nt.point,bt=Y.kdAxisArray[lt%gt],yt=mt,dt=r(Q[X])&&r(mt[X])?Math.pow(Q[X]-mt[X],2):null,ot=r(Q[W])&&r(mt[W])?Math.pow(Q[W]-mt[W],2):null;return ot=(dt||0)+(ot||0),mt.dist=r(ot)?Math.sqrt(ot):Number.MAX_VALUE,mt.distX=r(dt)?Math.sqrt(dt):Number.MAX_VALUE,dt=0>(bt=Q[bt]-mt[bt])?"right":"left",nt[ot=0>bt?"left":"right"]&&(yt=(ot=tt(Q,nt[ot],lt+1,gt))[q]<yt[q]?ot:mt),nt[dt]&&Math.sqrt(bt*bt)<yt[q]&&(yt=(Q=tt(Q,nt[dt],lt+1,gt))[q]<yt[q]?Q:yt),yt}(L,this.kdTree,D,D)},z.prototype.pointPlacementToXValue=function(){var L=this.options,D=L.pointRange,j=this.xAxis;return(L=L.pointPlacement)==="between"&&(L=j.reversed?-.5:.5),h(L)?L*(D||j.pointRange):0},z.prototype.isPointInside=function(L){var D=this.chart,j=this.xAxis,Y=this.yAxis;return L.plotY!==void 0&&L.plotX!==void 0&&0<=L.plotY&&L.plotY<=(Y?Y.len:D.plotHeight)&&0<=L.plotX&&L.plotX<=(j?j.len:D.plotWidth)},z.prototype.drawTracker=function(){var L=this,D=L.options,j=D.trackByArea,Y=[].concat(j?L.areaPath:L.graphPath),X=L.chart,W=X.pointer,q=X.renderer,tt=X.options.tooltip.snap,Q=L.tracker,nt=function(gt){X.hoverSeries!==L&&L.onMouseOver()},lt="rgba(192,192,192,"+(m?1e-4:.002)+")";Q?Q.attr({d:Y}):L.graph&&(L.tracker=q.path(Y).attr({visibility:L.visible?"inherit":"hidden",zIndex:2}).addClass(j?"highcharts-tracker-area":"highcharts-tracker-line").add(L.group),X.styledMode||L.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:lt,fill:j?lt:"none","stroke-width":L.graph.strokeWidth()+(j?0:2*tt)}),[L.tracker,L.markerGroup,L.dataLabelsGroup].forEach(function(gt){gt&&(gt.addClass("highcharts-tracker").on("mouseover",nt).on("mouseout",function(mt){W.onTrackerMouseOut(mt)}),D.cursor&&!X.styledMode&>.css({cursor:D.cursor}),g)&>.on("touchstart",nt)})),e(this,"afterDrawTracker")},z.prototype.addPoint=function(L,D,j,Y,X){var W=this.options,q=this.data,tt=this.chart,Q=this.xAxis;Q=Q&&Q.hasNames&&Q.names;var nt,lt=W.data,gt=this.xData;D=d(D,!0);var mt={series:this};this.pointClass.prototype.applyOptions.apply(mt,[L]);var bt=mt.x,yt=gt.length;if(this.requireSorting&&bt<gt[yt-1])for(nt=!0;yt&>[yt-1]>bt;)yt--;this.updateParallelArrays(mt,"splice",yt,0,0),this.updateParallelArrays(mt,yt),Q&&mt.name&&(Q[bt]=mt.name),lt.splice(yt,0,L),(nt||this.processedData)&&(this.data.splice(yt,0,null),this.processData()),W.legendType==="point"&&this.generatePoints(),j&&(q[0]&&q[0].remove?q[0].remove(!1):(q.shift(),this.updateParallelArrays(mt,"shift"),lt.shift())),X!==!1&&e(this,"addPoint",{point:mt}),this.isDirtyData=this.isDirty=!0,D&&tt.redraw(Y)},z.prototype.removePoint=function(L,D,j){var Y=this,X=Y.data,W=X[L],q=Y.points,tt=Y.chart,Q=function(){q&&q.length===X.length&&q.splice(L,1),X.splice(L,1),Y.options.data.splice(L,1),Y.updateParallelArrays(W||{series:Y},"splice",L,1),W&&W.destroy(),Y.isDirty=!0,Y.isDirtyData=!0,D&&tt.redraw()};P(j,tt),D=d(D,!0),W?W.firePointEvent("remove",null,Q):Q()},z.prototype.remove=function(L,D,j,Y){function X(){W.destroy(Y),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),d(L,!0)&&q.redraw(D)}var W=this,q=W.chart;j!==!1?e(W,"remove",null,X):X()},z.prototype.update=function(L,D){L=p(L,this.userOptions),e(this,"update",{options:L});var j=this,Y=j.chart,X=j.userOptions,W=j.initialType||j.type,q=Y.options.plotOptions,tt=v[W].prototype,Q=j.finishedAnimating&&{animation:!1},nt={},lt=["eventOptions","navigatorSeries","baseSeries"],gt=L.type||X.type||Y.options.chart.type,mt=!(this.hasDerivedData||gt&>!==this.type||L.pointStart!==void 0||L.pointInterval!==void 0||L.relativeXValue!==void 0||L.joinBy||L.mapData||j.hasOptionChanged("dataGrouping")||j.hasOptionChanged("pointStart")||j.hasOptionChanged("pointInterval")||j.hasOptionChanged("pointIntervalUnit")||j.hasOptionChanged("keys"));if(gt=gt||W,mt&&(lt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),L.visible!==!1&<.push("area","graph"),j.parallelArrays.forEach(function(yt){lt.push(yt+"Data")}),L.data&&(L.dataSorting&&i(j.options.dataSorting,L.dataSorting),this.setData(L.data,!1))),L=k(X,Q,{index:X.index===void 0?j.index:X.index,pointStart:d(q&&q.series&&q.series.pointStart,X.pointStart,j.xData[0])},!mt&&{data:j.options.data},L),mt&&L.data&&(L.data=j.options.data),(lt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(lt)).forEach(function(yt){lt[yt]=j[yt],delete j[yt]}),q=!1,v[gt]){if(q=gt!==j.type,j.remove(!1,!1,!1,!0),q)if(Object.setPrototypeOf)Object.setPrototypeOf(j,v[gt].prototype);else{for(bt in Q=Object.hasOwnProperty.call(j,"hcEvents")&&j.hcEvents,tt)j[bt]=void 0;i(j,v[gt].prototype),Q?j.hcEvents=Q:delete j.hcEvents}}else t(17,!0,Y,{missingModuleFor:gt});if(lt.forEach(function(yt){j[yt]=lt[yt]}),j.init(Y,L),mt&&this.points){if((L=j.options).visible===!1)nt.graphic=1,nt.dataLabel=1;else if(!j._hasPointLabels){tt=L.marker;var bt=L.dataLabels;X=X.marker||{},!tt||tt.enabled!==!1&&X.symbol===tt.symbol&&X.height===tt.height&&X.width===tt.width||(nt.graphic=1),bt&&bt.enabled===!1&&(nt.dataLabel=1)}for(X=0,tt=this.points;X<tt.length;X++)(bt=tt[X])&&bt.series&&(bt.resolveColor(),Object.keys(nt).length&&bt.destroyElements(nt),L.showInLegend===!1&&bt.legendItem&&Y.legend.destroyItem(bt))}j.initialType=W,Y.linkSeries(),q&&j.linkedSeries.length&&(j.isDirtyData=!0),e(this,"afterUpdate"),d(D,!0)&&Y.redraw(!!mt&&void 0)},z.prototype.setName=function(L){this.name=this.options.name=this.userOptions.name=L,this.chart.isDirtyLegend=!0},z.prototype.hasOptionChanged=function(L){var D=this.options[L],j=this.chart.options.plotOptions,Y=this.userOptions[L];return Y?D!==Y:D!==d(j&&j[this.type]&&j[this.type][L],j&&j.series&&j.series[L],D)},z.prototype.onMouseOver=function(){var L=this.chart,D=L.hoverSeries;L.pointer.setHoverChartIndex(),D&&D!==this&&D.onMouseOut(),this.options.events.mouseOver&&e(this,"mouseOver"),this.setState("hover"),L.hoverSeries=this},z.prototype.onMouseOut=function(){var L=this.options,D=this.chart,j=D.tooltip,Y=D.hoverPoint;D.hoverSeries=null,Y&&Y.onMouseOut(),this&&L.events.mouseOut&&e(this,"mouseOut"),!j||this.stickyTracking||j.shared&&!this.noSharedTooltip||j.hide(),D.series.forEach(function(X){X.setState("",!0)})},z.prototype.setState=function(L,D){var j=this,Y=j.options,X=j.graph,W=Y.inactiveOtherPoints,q=Y.states,tt=d(q[L||"normal"]&&q[L||"normal"].animation,j.chart.options.chart.animation),Q=Y.lineWidth,nt=0,lt=Y.opacity;if(L=L||"",j.state!==L&&([j.group,j.markerGroup,j.dataLabelsGroup].forEach(function(gt){gt&&(j.state&>.removeClass("highcharts-series-"+j.state),L&>.addClass("highcharts-series-"+L))}),j.state=L,!j.chart.styledMode)){if(q[L]&&q[L].enabled===!1)return;if(L&&(Q=q[L].lineWidth||Q+(q[L].lineWidthPlus||0),lt=d(q[L].opacity,lt)),X&&!X.dashstyle&&h(Q))for(Y={"stroke-width":Q},X.animate(Y,tt);j["zone-graph-"+nt];)j["zone-graph-"+nt].animate(Y,tt),nt+=1;W||[j.group,j.markerGroup,j.dataLabelsGroup,j.labelBySeries].forEach(function(gt){gt&>.animate({opacity:lt},tt)})}D&&W&&j.points&&j.setAllPointsToState(L||void 0)},z.prototype.setAllPointsToState=function(L){this.points.forEach(function(D){D.setState&&D.setState(L)})},z.prototype.setVisible=function(L,D){var j=this,Y=j.chart,X=Y.options.chart.ignoreHiddenSeries,W=j.visible,q=(j.visible=L=j.options.visible=j.userOptions.visible=L===void 0?!W:L)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(tt){j[tt]&&j[tt][q]()}),Y.hoverSeries!==j&&(Y.hoverPoint&&Y.hoverPoint.series)!==j||j.onMouseOut(),j.legendItem&&Y.legend.colorizeItem(j,L),j.isDirty=!0,j.options.stacking&&Y.series.forEach(function(tt){tt.options.stacking&&tt.visible&&(tt.isDirty=!0)}),j.linkedSeries.forEach(function(tt){tt.setVisible(L,!1)}),X&&(Y.isDirtyBox=!0),e(j,q),D!==!1&&Y.redraw()},z.prototype.show=function(){this.setVisible(!0)},z.prototype.hide=function(){this.setVisible(!1)},z.prototype.select=function(L){this.selected=L=this.options.selected=L===void 0?!this.selected:L,this.checkbox&&(this.checkbox.checked=L),e(this,L?"select":"unselect")},z.prototype.shouldShowTooltip=function(L,D,j){return j===void 0&&(j={}),j.series=this,j.visiblePlotOnly=!0,this.chart.isInsidePlot(L,D,j)},z.defaultOptions=V,z.types=F.seriesTypes,z.registerType=F.registerSeriesType,z}(),i(G.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Z,requireSorting:!0,sorted:!0}),F.series=G,G}),_(et,"Extensions/ScrollablePlotArea.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Chart/Chart.js"],et["Core/Series/Series.js"],et["Core/Renderer/RendererRegistry.js"],et["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V=G.stop,F=Z.addEvent,I=Z.createElement,E=Z.defined,A=Z.merge,P=Z.pick;F(H,"afterSetChartSize",function(y){var c=this.options.chart.scrollablePlotArea,g=c&&c.minWidth;if(c=c&&c.minHeight,!this.renderer.forExport){if(g){if(this.scrollablePixelsX=g=Math.max(0,g-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=A(this.plotBox),this.plotBox.width=this.plotWidth+=g,this.inverted?this.clipBox.height+=g:this.clipBox.width+=g;var m={1:{name:"right",value:g}}}}else c&&(this.scrollablePixelsY=g=Math.max(0,c-this.chartHeight),E(g)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=A(this.plotBox),this.plotBox.height=this.plotHeight+=g,this.inverted?this.clipBox.width+=g:this.clipBox.height+=g,m={2:{name:"bottom",value:g}}));m&&!y.skipAxes&&this.axes.forEach(function(u){m[u.side]?u.getPlotLinePath=function(){var v=m[u.side].name,w=this[v];this[v]=w-m[u.side].value;var M=B.prototype.getPlotLinePath.apply(this,arguments);return this[v]=w,M}:(u.setAxisSize(),u.setAxisTranslation())})}}),F(H,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),H.prototype.setUpScrolling=function(){var y,c=this,g={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(g.overflowX="auto"),this.scrollablePixelsY&&(g.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},g,this.scrollingParent),F(this.scrollingContainer,"scroll",function(){c.pointer&&(delete c.pointer.chartPosition,c.hoverPoint&&(y=c.hoverPoint),c.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},H.prototype.moveFixedElements=function(){var y,c=this.container,g=this.fixedRenderer,m=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&m.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),m.forEach(function(u){[].forEach.call(c.querySelectorAll(u),function(v){(v.namespaceURI===g.SVG_NS?g.box:g.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},H.prototype.applyFixed=function(){var y=!this.fixedDiv,c=this.options.chart,g=c.scrollablePlotArea,m=$.getRendererType();y?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(c.style&&c.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=c=new m(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=c.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":P(g.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),F(this,"afterShowResetZoom",this.moveFixedElements),F(this,"afterApplyDrilldown",this.moveFixedElements),F(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||y)&&(this.scrollableDirty=!1,this.moveFixedElements()),c=this.chartWidth+(this.scrollablePixelsX||0),m=this.chartHeight+(this.scrollablePixelsY||0),V(this.container),this.container.style.width=c+"px",this.container.style.height=m+"px",this.renderer.boxWrapper.attr({width:c,height:m,viewBox:[0,0,c,m].join(" ")}),this.chartBackground.attr({width:c,height:m}),this.scrollingContainer.style.height=this.chartHeight+"px",y&&(g.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*g.scrollPositionX),g.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*g.scrollPositionY)),m=this.axisOffset,y=this.plotTop-m[0]-1,g=this.plotLeft-m[3]-1,c=this.plotTop+this.plotHeight+m[2]+1,m=this.plotLeft+this.plotWidth+m[1]+1;var u=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),v=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);y=this.scrollablePixelsX?[["M",0,y],["L",this.plotLeft-1,y],["L",this.plotLeft-1,c],["L",0,c],["Z"],["M",u,y],["L",this.chartWidth,y],["L",this.chartWidth,c],["L",u,c],["Z"]]:this.scrollablePixelsY?[["M",g,0],["L",g,this.plotTop-1],["L",m,this.plotTop-1],["L",m,0],["Z"],["M",g,v],["L",g,this.chartHeight],["L",m,this.chartHeight],["L",m,v],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:y})},F(B,"afterInit",function(){this.chart.scrollableDirty=!0}),F(U,"show",function(){this.chart.scrollableDirty=!0})}),_(et,"Core/Axis/Stacking/StackItem.js",[et["Core/FormatUtilities.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,H){var U=G.format,$=B.series,Z=H.destroyObjectProperties,V=H.pick,F=H.isNumber;return G=function(){function I(E,A,P,y,c){var g=E.chart.inverted,m=E.reversed;this.axis=E,E=this.isNegative=!!P!=!!m,this.options=A=A||{},this.x=y,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=c,this.rightCliff=this.leftCliff=0,this.alignOptions={align:A.align||(g?E?"left":"right":"center"),verticalAlign:A.verticalAlign||(g?"middle":E?"bottom":"top"),y:A.y,x:A.x},this.textAlign=A.textAlign||(g?E?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var A=this.axis.chart,P=this.options,y=P.format;y=y?U(y,this,A):P.formatter.call(this),this.label?this.label.attr({text:y,visibility:"hidden"}):(this.label=A.renderer.label(y,null,void 0,P.shape,void 0,void 0,P.useHTML,!1,"stack-labels"),y={r:P.borderRadius||0,text:y,padding:V(P.padding,5),visibility:"hidden"},A.styledMode||(y.fill=P.backgroundColor,y.stroke=P.borderColor,y["stroke-width"]=P.borderWidth,this.label.css(P.style||{})),this.label.attr(y),this.label.added||this.label.add(E)),this.label.labelrank=A.plotSizeY},I.prototype.setOffset=function(E,A,P,y,c,g){var m=this.alignOptions,u=this.axis,v=this.label,w=this.options,M=this.textAlign,C=u.chart;E=this.getStackBox({xOffset:E,width:A,boxBottom:P,boxTop:y,defaultX:c,xAxis:g}),c=m.verticalAlign,v&&E&&(A=v.getBBox(),P=v.padding,y=V(w.overflow,"justify")==="justify",m.x=w.x||0,m.y=w.y||0,M=(c=this.adjustStackPosition({labelBox:A,verticalAlign:c,textAlign:M})).x,c=c.y,E.x-=M,E.y-=c,v.align(m,!1,E),(M=C.isInsidePlot(v.alignAttr.x+m.x+M,v.alignAttr.y+m.y+c))||(y=!1),y&&$.prototype.justifyDataLabel.call(u,v,m,v.alignAttr,A,E),v.attr({x:v.alignAttr.x,y:v.alignAttr.y,rotation:w.rotation,rotationOriginX:A.width/2,rotationOriginY:A.height/2}),V(!y&&w.crop,!0)&&(M=F(v.x)&&F(v.y)&&C.isInsidePlot(v.x-P+v.width,v.y)&&C.isInsidePlot(v.x+P,v.y)),v[M?"show":"hide"]())},I.prototype.adjustStackPosition=function(E){var A=E.labelBox,P={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:A.width/2+A.width/2*P[E.textAlign],y:A.height/2*P[E.verticalAlign]}},I.prototype.getStackBox=function(E){var A=this.axis,P=A.chart,y=E.boxTop,c=E.defaultX,g=E.xOffset,m=E.width,u=E.boxBottom;return y=A.stacking.usePercentage?100:V(y,this.total,0),y=A.toPixels(y),E=V(c,(E.xAxis||P.xAxis[0]).toPixels(this.x))+g,A=A.toPixels(u||0),A=Math.abs(y-A),u=this.isNegative,P.inverted?{x:(u?y:y-A)-P.plotLeft,y:E-P.plotTop,width:A,height:m}:{x:E-P.plotLeft,y:(u?y-A:y)-P.plotTop,width:m,height:A}},I}(),G}),_(et,"Core/Axis/Stacking/StackingAxis.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Axis/Axis.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Axis/Stacking/StackItem.js"],et["Core/Utilities.js"]],function(G,B,H,U,$){function Z(){var i=this,o=i.inverted;i.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),i.series.forEach(function(e){var a=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,l(e.options.stack,""),o?a.top:a.left,o?a.height:a.width].join())})}function V(){var i=this.stacking;if(i){var o=i.stacks;r(o,function(e,a){M(e),o[a]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function F(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function I(i,o,e,a){return!w(i)||i.x!==o||a&&i.stackKey!==a?i={x:o,index:0,key:a,stackKey:a}:i.index++,i.key=[e,o,i.index].join(),i}function E(){var i,o=this,e=o.stackKey,a=o.yAxis.stacking.stacks,s=o.processedXData,h=o[o.options.stacking+"Stacker"];h&&[e,"-"+e].forEach(function(b){for(var k,O,d=s.length;d--;)k=s[d],i=o.getStackIndicator(i,k,o.index,b),(O=(k=a[b]&&a[b][k])&&k.points[i.key])&&h.call(o,O,k,d)})}function A(i,o,e){o=o.total?100/o.total:0,i[0]=v(i[0]*o),i[1]=v(i[1]*o),this.stackedYData[e]=i[1]}function P(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?m.setStackedPoints.call(this,"group"):i&&r(i.stacks,function(o,e){e.slice(-5)==="group"&&(r(o,function(a){return a.destroy()}),delete i.stacks[e])})}function y(i){var o=this.chart,e=i||this.options.stacking;if(e&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var a=this.processedXData,s=this.processedYData,h=[],b=s.length,k=this.options,O=k.threshold,d=l(k.startFromThreshold&&O,0);k=k.stack;var x,T,N="-"+(i=i?""+this.type+",".concat(e):this.stackKey),z=this.negStacks,L=(o=e==="group"?o.yAxis[0]:this.yAxis).stacking.stacks,D=o.stacking.oldStacks;for(o.stacking.stacksTouched+=1,T=0;T<b;T++){var j=a[T],Y=s[T],X=this.getStackIndicator(X,j,this.index),W=X.key,q=(x=z&&Y<(d?0:O))?N:i;L[q]||(L[q]={}),L[q][j]||(D[q]&&D[q][j]?(L[q][j]=D[q][j],L[q][j].total=null):L[q][j]=new U(o,o.options.stackLabels,!!x,j,k)),q=L[q][j],Y!==null?(q.points[W]=q.points[this.index]=[l(q.cumulative,d)],w(q.cumulative)||(q.base=W),q.touched=o.stacking.stacksTouched,0<X.index&&this.singleStacks===!1&&(q.points[W][0]=q.points[this.index+","+j+",0"][0])):q.points[W]=q.points[this.index]=null,e==="percent"?(x=x?i:N,z&&L[x]&&L[x][j]?(x=L[x][j],q.total=x.total=Math.max(x.total,q.total)+Math.abs(Y)||0):q.total=v(q.total+(Math.abs(Y)||0))):e==="group"?(p(Y)&&(Y=Y[0]),Y!==null&&(q.total=(q.total||0)+1)):q.total=v(q.total+(Y||0)),q.cumulative=e==="group"?(q.total||1)-1:l(q.cumulative,d)+(Y||0),Y!==null&&(q.points[W].push(q.cumulative),h[T]=q.cumulative,q.hasValidPoints=!0)}e==="percent"&&(o.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=h),o.stacking.oldStacks={}}}var c,g=G.getDeferredAnimation,m=H.series.prototype,u=$.addEvent,v=$.correctFloat,w=$.defined,M=$.destroyObjectProperties,C=$.fireEvent,p=$.isArray,f=$.isNumber,r=$.objectEach,l=$.pick,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e=this.axis,a=e.series,s=e.options.reversedStacks,h=a.length;for(this.usePercentage=!1,o=h;o--;){var b=a[s?o:h-o-1];b.setStackedPoints(),b.setGroupedPoints()}for(o=0;o<h;o++)a[o].modifyStacks();C(e,"afterBuildStacks")},i.prototype.cleanStacks=function(){if(this.oldStacks)var o=this.stacks=this.oldStacks;r(o,function(e){r(e,function(a){a.cumulative=a.total})})},i.prototype.resetStacks=function(){var o=this;r(this.stacks,function(e){r(e,function(a,s){f(a.touched)&&a.touched<o.stacksTouched?(a.destroy(),delete e[s]):(a.total=null,a.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this.axis,e=o.chart,a=e.renderer,s=this.stacks;o=g(e,o.options.stackLabels&&o.options.stackLabels.animation||!1);var h=this.stackTotalGroup=this.stackTotalGroup||a.g("stack-labels").attr({zIndex:6,opacity:0}).add();h.translate(e.plotLeft,e.plotTop),r(s,function(b){r(b,function(k){k.render(h)})}),h.animate({opacity:1},o)},i}();return function(i){var o=[];i.compose=function(e,a,s){o.indexOf(e)===-1&&(o.push(e),u(e,"init",F),u(e,"destroy",V)),o.indexOf(a)===-1&&(o.push(a),a.prototype.getStacks=Z),o.indexOf(s)===-1&&(o.push(s),(e=s.prototype).getStackIndicator=I,e.modifyStacks=E,e.percentStacker=A,e.setGroupedPoints=P,e.setStackedPoints=y)}}(c||(c={})),c}),_(et,"Series/Line/LineSeries.js",[et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,H){var U=this&&this.__extends||function(){var V=function(F,I){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])})(F,I)};return function(F,I){function E(){this.constructor=F}V(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=H.defined,Z=H.merge;return H=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return U(F,V),F.prototype.drawGraph=function(){var I=this,E=this.options,A=(this.gappedPath||this.getGraphPath).call(this),P=this.chart.styledMode,y=[["graph","highcharts-graph"]];P||y[0].push(E.lineColor||this.color||"#cccccc",E.dashStyle),(y=I.getZonesGraphs(y)).forEach(function(c,g){var m=c[0],u=I[m],v=u?"animate":"attr";u?(u.endX=I.preventGraphAnimation?null:A.xMap,u.animate({d:A})):A.length&&(I[m]=u=I.chart.renderer.path(A).addClass(c[1]).attr({zIndex:1}).add(I.group)),u&&!P&&(m={stroke:c[2],"stroke-width":E.lineWidth||0,fill:I.fillGraph&&I.color||"none"},c[3]?m.dashstyle=c[3]:E.linecap!=="square"&&(m["stroke-linecap"]=m["stroke-linejoin"]="round"),u[v](m).shadow(2>g&&E.shadow)),u&&(u.startX=A.xMap,u.isArea=A.isArea)})},F.prototype.getGraphPath=function(I,E,A){var P,y=this,c=y.options,g=[],m=[],u=c.step,v=(I=I||y.points).reversed;return v&&I.reverse(),(u={right:1,center:2}[u]||u&&3)&&v&&(u=4-u),(I=this.getValidPoints(I,!1,!(c.connectNulls&&!E&&!A))).forEach(function(w,M){var C=w.plotX,p=w.plotY,f=I[M-1];(w.leftCliff||f&&f.rightCliff)&&!A&&(P=!0),w.isNull&&!$(E)&&0<M?P=!c.connectNulls:w.isNull&&!E?P=!0:(M===0||P?M=[["M",w.plotX,w.plotY]]:y.getPointSpline?M=[y.getPointSpline(I,w,M)]:u?(M=u===1?[["L",f.plotX,p]]:u===2?[["L",(f.plotX+C)/2,f.plotY],["L",(f.plotX+C)/2,p]]:[["L",C,f.plotY]]).push(["L",C,p]):M=[["L",C,p]],m.push(w.x),u&&(m.push(w.x),u===2&&m.push(w.x)),g.push.apply(g,M),P=!1)}),g.xMap=m,y.graphPath=g},F.prototype.getZonesGraphs=function(I){return this.zones.forEach(function(E,A){A=["zone-graph-"+A,"highcharts-graph highcharts-zone-graph-"+A+" "+(E.className||"")],this.chart.styledMode||A.push(E.color||this.color,E.dashStyle||this.options.dashStyle),I.push(A)},this),I},F.defaultOptions=Z(G.defaultOptions,{}),F}(G),B.registerSeriesType("line",H),H}),_(et,"Series/Area/AreaSeries.js",[et["Core/Color/Color.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,H,U){var $=this&&this.__extends||function(){var A=function(P,y){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var m in g)g.hasOwnProperty(m)&&(c[m]=g[m])},A(P,y)};return function(P,y){function c(){this.constructor=P}A(P,y),P.prototype=y===null?Object.create(y):(c.prototype=y.prototype,new c)}}(),Z=G.parse,V=H.seriesTypes.line;G=U.extend;var F=U.merge,I=U.objectEach,E=U.pick;return U=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(P,A),P.prototype.drawGraph=function(){this.areaPath=[],A.prototype.drawGraph.apply(this);var y=this,c=this.areaPath,g=this.options,m=[["area","highcharts-area",this.color,g.fillColor]];this.zones.forEach(function(u,v){m.push(["zone-area-"+v,"highcharts-area highcharts-zone-area-"+v+" "+u.className,u.color||y.color,u.fillColor||g.fillColor])}),m.forEach(function(u){var v=u[0],w={},M=y[v],C=M?"animate":"attr";M?(M.endX=y.preventGraphAnimation?null:c.xMap,M.animate({d:c})):(w.zIndex=0,(M=y[v]=y.chart.renderer.path(c).addClass(u[1]).add(y.group)).isArea=!0),y.chart.styledMode||(w.fill=E(u[3],Z(u[2]).setOpacity(E(g.fillOpacity,.75)).get())),M[C](w),M.startX=c.xMap,M.shiftUnit=g.step?2:1})},P.prototype.getGraphPath=function(y){var c=V.prototype.getGraphPath,g=this.options,m=g.stacking,u=this.yAxis,v=[],w=[],M=this.index,C=u.stacking.stacks[this.stackKey],p=g.threshold,f=Math.round(u.getThreshold(g.threshold));g=E(g.connectNulls,m==="percent");var r=function(a,s,h){var b=y[a];a=m&&C[b.x].points[M];var k=b[h+"Null"]||0;if(h=b[h+"Cliff"]||0,b=!0,h||k){var O=(k?a[0]:a[1])+h,d=a[0]+h;b=!!k}else!m&&y[s]&&y[s].isNull&&(O=d=p);O!==void 0&&(w.push({plotX:o,plotY:O===null?f:u.getThreshold(O),isNull:b,isCliff:!0}),v.push({plotX:o,plotY:d===null?f:u.getThreshold(d),doCurve:!1}))};y=y||this.points,m&&(y=this.getStackPoints(y));for(var l=0,t=y.length;l<t;++l){m||(y[l].leftCliff=y[l].rightCliff=y[l].leftNull=y[l].rightNull=void 0);var i=y[l].isNull,o=E(y[l].rectPlotX,y[l].plotX),e=m?E(y[l].yBottom,f):f;i&&!g||(g||r(l,l-1,"left"),i&&!m&&g||(w.push(y[l]),v.push({x:l,plotX:o,plotY:e})),g||r(l,l+1,"right"))}return r=c.call(this,w,!0,!0),v.reversed=!0,(e=(i=c.call(this,v,!0,!0))[0])&&e[0]==="M"&&(i[0]=["L",e[1],e[2]]),(i=r.concat(i)).length&&i.push(["Z"]),c=c.call(this,w,!1,g),i.xMap=r.xMap,this.areaPath=i,c},P.prototype.getStackPoints=function(y){var c=this,g=[],m=[],u=this.xAxis,v=this.yAxis,w=v.stacking.stacks[this.stackKey],M={},C=v.series,p=C.length,f=v.options.reversedStacks?1:-1,r=C.indexOf(c);if(y=y||this.points,this.options.stacking){for(var l=0;l<y.length;l++)y[l].leftNull=y[l].rightNull=void 0,M[y[l].x]=y[l];I(w,function(i,o){i.total!==null&&m.push(o)}),m.sort(function(i,o){return i-o});var t=C.map(function(i){return i.visible});m.forEach(function(i,o){var e,a,s=0;if(M[i]&&!M[i].isNull)g.push(M[i]),[-1,1].forEach(function(b){var k=b===1?"rightNull":"leftNull",O=w[m[o+b]],d=0;if(O)for(var x=r;0<=x&&x<p;){var T=C[x].index;(e=O.points[T])||(T===c.index?M[i][k]=!0:t[x]&&(a=w[i].points[T])&&(d-=a[1]-a[0])),x+=f}M[i][b===1?"rightCliff":"leftCliff"]=d});else{for(var h=r;0<=h&&h<p;){if(e=w[i].points[C[h].index]){s=e[1];break}h+=f}s=E(s,0),s=v.translate(s,0,1,0,1),g.push({isNull:!0,plotX:u.translate(i,0,0,0,1),x:i,plotY:s,yBottom:s})}})}return g},P.defaultOptions=F(V.defaultOptions,{threshold:0}),P}(V),G(U.prototype,{singleStacks:!1,drawLegendSymbol:B.drawRectangle}),H.registerSeriesType("area",U),U}),_(et,"Series/Spline/SplineSeries.js",[et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B){var H=this&&this.__extends||function(){var V=function(F,I){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])})(F,I)};return function(F,I){function E(){this.constructor=F}V(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),U=G.seriesTypes.line,$=B.merge,Z=B.pick;return B=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return H(F,V),F.prototype.getPointSpline=function(I,E,A){var P=E.plotX||0,y=E.plotY||0,c=I[A-1];if(A=I[A+1],c&&!c.isNull&&c.doCurve!==!1&&!E.isCliff&&A&&!A.isNull&&A.doCurve!==!1&&!E.isCliff){I=c.plotY||0;var g=A.plotX||0;A=A.plotY||0;var m=0,u=(1.5*P+(c.plotX||0))/2.5,v=(1.5*y+I)/2.5,w=(1.5*y+A)/2.5;(g=(1.5*P+g)/2.5)!==u&&(m=(w-v)*(g-P)/(g-u)+y-w),w+=m,(v+=m)>I&&v>y?w=2*y-(v=Math.max(I,y)):v<I&&v<y&&(w=2*y-(v=Math.min(I,y))),w>A&&w>y?v=2*y-(w=Math.max(A,y)):w<A&&w<y&&(v=2*y-(w=Math.min(A,y))),E.rightContX=g,E.rightContY=w}return E=["C",Z(c.rightContX,c.plotX,0),Z(c.rightContY,c.plotY,0),Z(u,P,0),Z(v,y,0),P,y],c.rightContX=c.rightContY=void 0,E},F.defaultOptions=$(U.defaultOptions),F}(U),G.registerSeriesType("spline",B),B}),_(et,"Series/AreaSpline/AreaSplineSeries.js",[et["Series/Spline/SplineSeries.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,H,U){var $=this&&this.__extends||function(){var E=function(A,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},E(A,P)};return function(A,P){function y(){this.constructor=A}E(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),Z=H.seriesTypes,V=Z.area;Z=Z.area.prototype;var F=U.extend,I=U.merge;return U=function(E){function A(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.points=void 0,P.options=void 0,P}return $(A,E),A.defaultOptions=I(G.defaultOptions,V.defaultOptions),A}(G),F(U.prototype,{getGraphPath:Z.getGraphPath,getStackPoints:Z.getStackPoints,drawGraph:Z.drawGraph,drawLegendSymbol:B.drawRectangle}),H.registerSeriesType("areaspline",U),U}),_(et,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),_(et,"Series/Column/ColumnSeries.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Color/Color.js"],et["Series/Column/ColumnSeriesDefaults.js"],et["Core/Globals.js"],et["Core/Legend/LegendSymbol.js"],et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F){var I=this&&this.__extends||function(){var p=function(f,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,t){l.__proto__=t}||function(l,t){for(var i in t)t.hasOwnProperty(i)&&(l[i]=t[i])},p(f,r)};return function(f,r){function l(){this.constructor=f}p(f,r),f.prototype=r===null?Object.create(r):(l.prototype=r.prototype,new l)}}(),E=G.animObject,A=B.parse,P=U.hasTouch;G=U.noop;var y=F.clamp,c=F.defined,g=F.extend,m=F.fireEvent,u=F.isArray,v=F.isNumber,w=F.merge,M=F.pick,C=F.objectEach;return F=function(p){function f(){var r=p!==null&&p.apply(this,arguments)||this;return r.borderWidth=void 0,r.data=void 0,r.group=void 0,r.options=void 0,r.points=void 0,r}return I(f,p),f.prototype.animate=function(r){var l=this,t=this.yAxis,i=l.options,o=this.chart.inverted,e={},a=o?"translateX":"translateY";if(r)e.scaleY=.001,r=y(t.toPixels(i.threshold),t.pos,t.pos+t.len),o?e.translateX=r-t.len:e.translateY=r,l.clipBox&&l.setClip(),l.group.attr(e);else{var s=Number(l.group.attr(a));l.group.animate({scaleY:1},g(E(l.options.animation),{step:function(h,b){l.group&&(e[a]=s+b.pos*(t.pos-s),l.group.attr(e))}}))}},f.prototype.init=function(r,l){p.prototype.init.apply(this,arguments);var t=this;(r=t.chart).hasRendered&&r.series.forEach(function(i){i.type===t.type&&(i.isDirty=!0)})},f.prototype.getColumnMetrics=function(){var r=this,l=r.options,t=r.xAxis,i=r.yAxis,o=t.options.reversedStacks;o=t.reversed&&!o||!t.reversed&&o;var e,a={},s=0;l.grouping===!1?s=1:r.chart.series.forEach(function(O){var d=O.yAxis,x=O.options;if(O.type===r.type&&(O.visible||!r.chart.options.chart.ignoreHiddenSeries)&&i.len===d.len&&i.pos===d.pos){if(x.stacking&&x.stacking!=="group"){e=O.stackKey,a[e]===void 0&&(a[e]=s++);var T=a[e]}else x.grouping!==!1&&(T=s++);O.columnIndex=T}});var h=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||l.pointRange||t.closestPointRange||t.tickInterval||1),t.len),b=h*l.groupPadding,k=(h-2*b)/(s||1);return l=Math.min(l.maxPointWidth||t.len,M(l.pointWidth,k*(1-2*l.pointPadding))),r.columnMetrics={width:l,offset:(k-l)/2+(b+((r.columnIndex||0)+(o?1:0))*k-h/2)*(o?-1:1),paddedWidth:k,columnCount:s},r.columnMetrics},f.prototype.crispCol=function(r,l,t,i){var o=this.chart,e=this.borderWidth,a=-(e%2?.5:0);return e=e%2?.5:1,o.inverted&&o.renderer.isVML&&(e+=1),this.options.crisp&&(t=Math.round(r+t)+a,t-=r=Math.round(r)+a),i=Math.round(l+i)+e,a=.5>=Math.abs(l)&&.5<i,i-=l=Math.round(l)+e,a&&i&&(--l,i+=1),{x:r,y:l,width:t,height:i}},f.prototype.adjustForMissingColumns=function(r,l,t,i){var o=this,e=this.options.stacking;if(!t.isNull&&1<i.columnCount){var a=this.yAxis.options.reversedStacks,s=0,h=a?0:-i.columnCount;C(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(b){if(typeof t.x=="number"){var k=b[t.x.toString()];k&&(b=k.points[o.index],e?(b&&(s=h),k.hasValidPoints&&(a?h++:h--)):u(b)&&(b=Object.keys(k.points).filter(function(O){return!O.match(",")&&k.points[O]&&1<k.points[O].length}).map(parseFloat).sort(function(O,d){return d-O}),s=b.indexOf(o.index),h=b.length))}}),r=(t.plotX||0)+((h-1)*i.paddedWidth+l)/2-l-s*i.paddedWidth}return r},f.prototype.translate=function(){var r=this,l=r.chart,t=r.options,i=r.dense=2>r.closestPointRange*r.xAxis.transA;i=r.borderWidth=M(t.borderWidth,i?0:1);var o=r.xAxis,e=r.yAxis,a=t.threshold,s=r.translatedThreshold=e.getThreshold(a),h=M(t.minPointLength,5),b=r.getColumnMetrics(),k=b.width,O=r.pointXOffset=b.offset,d=r.dataMin,x=r.dataMax,T=r.barW=Math.max(k,1+2*i);l.inverted&&(s-=.5),t.pointPadding&&(T=Math.ceil(T)),Z.prototype.translate.apply(r),r.points.forEach(function(N){var z=M(N.yBottom,s),L=999+Math.abs(z),D=N.plotX||0;L=y(N.plotY,-L,e.len+L);var j=Math.min(L,z),Y=Math.max(L,z)-j,X=k,W=D+O,q=T;h&&Math.abs(Y)<h&&(Y=h,D=!e.reversed&&!N.negative||e.reversed&&N.negative,v(a)&&v(x)&&N.y===a&&x<=a&&(e.min||0)<a&&(d!==x||(e.max||0)<=a)&&(D=!D),j=Math.abs(j-s)>h?z-h:s-(D?h:0)),c(N.options.pointWidth)&&(X=q=Math.ceil(N.options.pointWidth),W-=Math.round((X-k)/2)),t.centerInCategory&&(W=r.adjustForMissingColumns(W,X,N,b)),N.barX=W,N.pointWidth=X,N.tooltipPos=l.inverted?[y(e.len+e.pos-l.plotLeft-L,e.pos-l.plotLeft,e.len+e.pos-l.plotLeft),o.len+o.pos-l.plotTop-W-q/2,Y]:[o.left-l.plotLeft+W+q/2,y(L+e.pos-l.plotTop,e.pos-l.plotTop,e.len+e.pos-l.plotTop),Y],N.shapeType=r.pointClass.prototype.shapeType||"rect",N.shapeArgs=r.crispCol.apply(r,N.isNull?[W,s,q,0]:[W,j,q,Y])})},f.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},f.prototype.pointAttribs=function(r,l){var t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",a=r&&r.color||this.color,s=r&&r[o]||t[o]||a;i=r&&r.options.dashStyle||t.dashStyle;var h=r&&r[e]||t[e]||this[e]||0,b=M(r&&r.opacity,t.opacity,1);if(r&&this.zones.length){var k=r.getZone();a=r.options.color||k&&(k.color||r.nonZonedColor)||this.color,k&&(s=k.borderColor||s,i=k.dashStyle||i,h=k.borderWidth||h)}return l&&r&&(l=(r=w(t.states[l],r.options.states&&r.options.states[l]||{})).brightness,a=r.color||l!==void 0&&A(a).brighten(r.brightness).get()||a,s=r[o]||s,h=r[e]||h,i=r.dashStyle||i,b=M(r.opacity,b)),o={fill:a,stroke:s,"stroke-width":h,opacity:b},i&&(o.dashstyle=i),o},f.prototype.drawPoints=function(r){r===void 0&&(r=this.points);var l,t=this,i=this.chart,o=t.options,e=i.renderer,a=o.animationLimit||250;r.forEach(function(s){var h=s.graphic,b=!!h,k=h&&i.pointCount<a?"animate":"attr";v(s.plotY)&&s.y!==null?(l=s.shapeArgs,h&&s.hasNewShapeType()&&(h=h.destroy()),t.enabledDataSorting&&(s.startXPos=t.xAxis.reversed?-(l&&l.width||0):t.xAxis.width),h||(s.graphic=h=e[s.shapeType](l).add(s.group||t.group))&&t.enabledDataSorting&&i.hasRendered&&i.pointCount<a&&(h.attr({x:s.startXPos}),b=!0,k="animate"),h&&b&&h[k](w(l)),o.borderRadius&&h[k]({r:o.borderRadius}),i.styledMode||h[k](t.pointAttribs(s,s.selected&&"select")).shadow(s.allowShadow!==!1&&o.shadow,null,o.stacking&&!o.borderRadius),h&&(h.addClass(s.getClassName(),!0),h.attr({visibility:s.visible?"inherit":"hidden"}))):h&&(s.graphic=h.destroy())})},f.prototype.drawTracker=function(r){r===void 0&&(r=this.points);var l,t=this,i=t.chart,o=i.pointer,e=function(a){var s=o.getPointFromEvent(a);s!==void 0&&(o.isDirectTouch=!0,s.onMouseOver(a))};r.forEach(function(a){l=u(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[],a.graphic&&(a.graphic.element.point=a),l.forEach(function(s){s.div?s.div.point=a:s.element.point=a})}),t._hasTracking||(t.trackerGroups.forEach(function(a){t[a]&&(t[a].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(s){o.onTrackerMouseOut(s)}),P&&t[a].on("touchstart",e),!i.styledMode&&t.options.cursor&&t[a].css({cursor:t.options.cursor}))}),t._hasTracking=!0),m(this,"afterDrawTracker")},f.prototype.remove=function(){var r=this,l=r.chart;l.hasRendered&&l.series.forEach(function(t){t.type===r.type&&(t.isDirty=!0)}),Z.prototype.remove.apply(r,arguments)},f.defaultOptions=w(Z.defaultOptions,H),f}(Z),g(F.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:G,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),V.registerSeriesType("column",F),F}),_(et,"Core/Series/DataLabel.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/FormatUtilities.js"],et["Core/Utilities.js"]],function(G,B,H){var U,$=G.getDeferredAnimation,Z=B.format,V=H.defined,F=H.extend,I=H.fireEvent,E=H.isArray,A=H.isString,P=H.merge,y=H.objectEach,c=H.pick,g=H.splat;return function(m){function u(f,r,l,t,i){var o=this,e=this.chart,a=this.isCartesian&&e.inverted,s=this.enabledDataSorting,h=f.plotX,b=f.plotY,k=l.rotation,O=l.align,d=V(h)&&V(b)&&e.isInsidePlot(h,Math.round(b),{inverted:a,paneCoordinates:!0,series:o});b=function(z){s&&o.xAxis&&!x&&o.setDataLabelStartPos(f,r,i,d,z)};var x=c(l.overflow,s?"none":"justify")==="justify";if(h=this.visible&&f.visible!==!1&&V(h)&&(f.series.forceDL||s&&!x||d||c(l.inside,!!this.options.stacking)&&t&&e.isInsidePlot(h,a?t.x+1:t.y+t.height-1,{inverted:a,paneCoordinates:!0,series:o})),a=f.pos(),h&&a){k&&r.attr({align:O}),O=r.getBBox(!0);var T=[0,0],N=e.renderer.fontMetrics(e.styledMode?void 0:l.style.fontSize,r).b;t=F({x:a[0],y:Math.round(a[1]),width:0,height:0},t),F(l,{width:O.width,height:O.height}),k?(x=!1,T=e.renderer.rotCorr(N,k),N={x:t.x+(l.x||0)+t.width/2+T.x,y:t.y+(l.y||0)+{top:0,middle:.5,bottom:1}[l.verticalAlign]*t.height},T=[O.x-Number(r.attr("x")),O.y-Number(r.attr("y"))],b(N),r[i?"attr":"animate"](N)):(b(t),r.align(l,void 0,t),N=r.alignAttr),x&&0<=t.height?this.justifyDataLabel(r,l,N,O,t,i):c(l.crop,!0)&&(t=N.x,b=N.y,t+=T[0],b+=T[1],h=e.isInsidePlot(t,b,{paneCoordinates:!0,series:o})&&e.isInsidePlot(t+O.width,b+O.height,{paneCoordinates:!0,series:o})),l.shape&&!k&&r[i?"attr":"animate"]({anchorX:a[0],anchorY:a[1]})}i&&s&&(r.placed=!1),h||s&&!x?r.show():(r.hide(),r.placed=!1)}function v(f){f===void 0&&(f=this.points);var r=this,l=r.chart,t=r.options,i=r.hasRendered||0,o=l.renderer,e=l.options.chart,a=e.backgroundColor;e=e.plotBackgroundColor;var s=o.getContrast(A(e)&&e||A(a)&&a||"#000000"),h=t.dataLabels;if(a=h.animation,a=h.defer?$(l,a,r):{defer:0,duration:0},h=M(M(l.options.plotOptions&&l.options.plotOptions.series&&l.options.plotOptions.series.dataLabels,l.options.plotOptions&&l.options.plotOptions[r.type]&&l.options.plotOptions[r.type].dataLabels),h),I(this,"drawDataLabels"),E(h)||h.enabled||r._hasPointLabels){var b=r.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",h.zIndex||6);b.attr({opacity:+i}),!i&&(i=r.dataLabelsGroup)&&(r.visible&&b.show(),i[t.animation?"animate":"attr"]({opacity:1},a)),f.forEach(function(k){g(M(h,k.dlOptions||k.options&&k.options.dataLabels)).forEach(function(O,d){var x=O.enabled&&(!k.isNull||k.dataLabelOnNull)&&function(q,tt){var Q=tt.filter;return!Q||(tt=Q.operator,q=q[Q.property],Q=Q.value,tt===">"&&q>Q||tt==="<"&&q<Q||tt===">="&&q>=Q||tt==="<="&&q<=Q||tt==="=="&&q==Q||tt==="==="&&q===Q)}(k,O),T=k.connectors?k.connectors[d]:k.connector,N=k.dataLabels?k.dataLabels[d]:k.dataLabel,z=!N,L=c(O.distance,k.labelDistance);if(x){var D=k.getLabelConfig(),j=c(O[k.formatPrefix+"Format"],O.format);D=V(j)?Z(j,D,l):(O[k.formatPrefix+"Formatter"]||O.formatter).call(D,O),j=O.style;var Y=O.rotation;l.styledMode||(j.color=c(O.color,j.color,r.color,"#000000"),j.color==="contrast"?(k.contrastColor=o.getContrast(k.color||r.color),j.color=!V(L)&&O.inside||0>L||t.stacking?k.contrastColor:s):delete k.contrastColor,t.cursor&&(j.cursor=t.cursor));var X={r:O.borderRadius||0,rotation:Y,padding:O.padding,zIndex:1};if(!l.styledMode){L=O.backgroundColor;var W=O.borderColor;X.fill=L==="auto"?k.color:L,X.stroke=W==="auto"?k.color:W,X["stroke-width"]=O.borderWidth}y(X,function(q,tt){q===void 0&&delete X[tt]})}!N||x&&V(D)&&!!N.div==!!O.useHTML&&(N.rotation&&O.rotation||N.rotation===O.rotation)||(z=!0,k.dataLabel=N=k.dataLabel&&k.dataLabel.destroy(),k.dataLabels&&(k.dataLabels.length===1?delete k.dataLabels:delete k.dataLabels[d]),d||delete k.dataLabel,T&&(k.connector=k.connector.destroy(),k.connectors&&(k.connectors.length===1?delete k.connectors:delete k.connectors[d]))),x&&V(D)?(N?X.text=D:(k.dataLabels=k.dataLabels||[],N=k.dataLabels[d]=Y?o.text(D,0,0,O.useHTML).addClass("highcharts-data-label"):o.label(D,0,0,O.shape,null,null,O.useHTML,null,"data-label"),d||(k.dataLabel=N),N.addClass(" highcharts-data-label-color-"+k.colorIndex+" "+(O.className||"")+(O.useHTML?" highcharts-tracker":""))),N.options=O,N.attr(X),l.styledMode||N.css(j).shadow(O.shadow),(d=O[k.formatPrefix+"TextPath"]||O.textPath)&&!O.useHTML&&(N.setTextPath(k.getDataLabelPath&&k.getDataLabelPath(N)||k.graphic,d),k.dataLabelPath&&!d.enabled&&(k.dataLabelPath=k.dataLabelPath.destroy())),N.added||N.add(b),r.alignDataLabel(k,N,O,null,z)):N&&N.hide()})})}I(this,"afterDrawDataLabels")}function w(f,r,l,t,i,o){var e=this.chart,a=r.align,s=r.verticalAlign,h=f.box?0:f.padding||0,b=r.x;b=b===void 0?0:b;var k=r.y;k=k===void 0?0:k;var O=(l.x||0)+h;if(0>O){a==="right"&&0<=b?(r.align="left",r.inside=!0):b-=O;var d=!0}return(O=(l.x||0)+t.width-h)>e.plotWidth&&(a==="left"&&0>=b?(r.align="right",r.inside=!0):b+=e.plotWidth-O,d=!0),0>(O=l.y+h)&&(s==="bottom"&&0<=k?(r.verticalAlign="top",r.inside=!0):k-=O,d=!0),(O=(l.y||0)+t.height-h)>e.plotHeight&&(s==="top"&&0>=k?(r.verticalAlign="bottom",r.inside=!0):k+=e.plotHeight-O,d=!0),d&&(r.x=b,r.y=k,f.placed=!o,f.align(r,void 0,i)),d}function M(f,r){var l,t=[];if(E(f)&&!E(r))t=f.map(function(i){return P(i,r)});else if(E(r)&&!E(f))t=r.map(function(i){return P(f,i)});else if(E(f)||E(r))for(l=Math.max(f.length,r.length);l--;)t[l]=P(f[l],r[l]);else t=P(f,r);return t}function C(f,r,l,t,i){var o=this.chart,e=o.inverted,a=this.xAxis,s=a.reversed,h=e?r.height/2:r.width/2;f=(f=f.pointWidth)?f/2:0,r.startXPos=e?i.x:s?-h-f:a.width-h+f,r.startYPos=e?s?this.yAxis.height-h+f:-h-f:i.y,t?r.visibility==="hidden"&&(r.show(),r.attr({opacity:0}).animate({opacity:1})):r.attr({opacity:1}).animate({opacity:0},void 0,r.hide),o.hasRendered&&(l&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}var p=[];m.compose=function(f){if(p.indexOf(f)===-1){var r=f.prototype;p.push(f),r.alignDataLabel=u,r.drawDataLabels=v,r.justifyDataLabel=w,r.setDataLabelStartPos=C}}}(U||(U={})),U}),_(et,"Series/Column/ColumnDataLabel.js",[et["Core/Series/DataLabel.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,H){var U,$=B.series,Z=H.merge,V=H.pick;return function(F){function I(A,P,y,c,g){var m=this.chart.inverted,u=A.series,v=(u.xAxis?u.xAxis.len:this.chart.plotSizeX)||0;u=(u.yAxis?u.yAxis.len:this.chart.plotSizeY)||0;var w=A.dlBox||A.shapeArgs,M=V(A.below,A.plotY>V(this.translatedThreshold,u)),C=V(y.inside,!!this.options.stacking);w&&(0>(c=Z(w)).y&&(c.height+=c.y,c.y=0),0<(w=c.y+c.height-u)&&w<c.height&&(c.height-=w),m&&(c={x:u-c.y-c.height,y:v-c.x-c.width,width:c.height,height:c.width}),C||(m?(c.x+=M?0:c.width,c.width=0):(c.y+=M?c.height:0,c.height=0))),y.align=V(y.align,!m||C?"center":M?"right":"left"),y.verticalAlign=V(y.verticalAlign,m||C?"middle":M?"top":"bottom"),$.prototype.alignDataLabel.call(this,A,P,y,c,g),y.inside&&A.contrastColor&&P.css({color:A.contrastColor})}var E=[];F.compose=function(A){G.compose($),E.indexOf(A)===-1&&(E.push(A),A.prototype.alignDataLabel=I)}}(U||(U={})),U}),_(et,"Series/Bar/BarSeries.js",[et["Series/Column/ColumnSeries.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,H){var U=this&&this.__extends||function(){var V=function(F,I){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])})(F,I)};return function(F,I){function E(){this.constructor=F}V(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=H.extend,Z=H.merge;return H=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return U(F,V),F.defaultOptions=Z(G.defaultOptions,{}),F}(G),$(H.prototype,{inverted:!0}),B.registerSeriesType("bar",H),H}),_(et,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),_(et,"Series/Scatter/ScatterSeries.js",[et["Series/Scatter/ScatterSeriesDefaults.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,H){var U=this&&this.__extends||function(){var E=function(A,P){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},E(A,P)};return function(A,P){function y(){this.constructor=A}E(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}}(),$=B.seriesTypes,Z=$.column,V=$.line;$=H.addEvent;var F=H.extend,I=H.merge;return H=function(E){function A(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return U(A,E),A.prototype.applyJitter=function(){var P=this,y=this.options.jitter,c=this.points.length;y&&this.points.forEach(function(g,m){["x","y"].forEach(function(u,v){var w="plot"+u.toUpperCase();if(y[u]&&!g.isNull){var M=P[u+"Axis"],C=y[u]*M.transA;if(M&&!M.isLog){var p=Math.max(0,g[w]-C);M=Math.min(M.len,g[w]+C),v=1e4*Math.sin(m+v*c),g[w]=p+(M-p)*(v-Math.floor(v)),u==="x"&&(g.clientX=g.plotX)}}})})},A.prototype.drawGraph=function(){this.options.lineWidth?E.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},A.defaultOptions=I(V.defaultOptions,G),A}(V),F(H.prototype,{drawTracker:Z.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),$(H,"afterTranslate",function(){this.applyJitter()}),B.registerSeriesType("scatter",H),H}),_(et,"Series/CenteredUtilities.js",[et["Core/Globals.js"],et["Core/Series/Series.js"],et["Core/Utilities.js"]],function(G,B,H){var U,$=G.deg2rad,Z=H.fireEvent,V=H.isNumber,F=H.pick,I=H.relativeLength;return function(E){E.getCenter=function(){var A=this.options,P=this.chart,y=2*(A.slicedOffset||0),c=P.plotWidth-2*y,g=P.plotHeight-2*y,m=A.center,u=Math.min(c,g),v=A.thickness,w=A.size,M=A.innerSize||0;for(typeof w=="string"&&(w=parseFloat(w)),typeof M=="string"&&(M=parseFloat(M)),A=[F(m[0],"50%"),F(m[1],"50%"),F(w&&0>w?void 0:A.size,"100%"),F(M&&0>M?void 0:A.innerSize||0,"0%")],!P.angular||this instanceof B||(A[3]=0),m=0;4>m;++m)w=A[m],P=2>m||m===2&&/%$/.test(w),A[m]=I(w,[c,g,u,A[2]][m])+(P?y:0);return A[3]>A[2]&&(A[3]=A[2]),V(v)&&2*v<A[2]&&0<v&&(A[3]=A[2]-2*v),Z(this,"afterGetCenter",{positions:A}),A},E.getStartAndEndRadians=function(A,P){return A=V(A)?A:0,P=V(P)&&P>A&&360>P-A?P:A+360,{start:$*(A+-90),end:$*(P+-90)}}}(U||(U={})),U}),_(et,"Series/Pie/PiePoint.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Series/Point.js"],et["Core/Utilities.js"]],function(G,B,H){var U=this&&this.__extends||function(){var A=function(P,y){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var m in g)g.hasOwnProperty(m)&&(c[m]=g[m])},A(P,y)};return function(P,y){function c(){this.constructor=P}A(P,y),P.prototype=y===null?Object.create(y):(c.prototype=y.prototype,new c)}}(),$=G.setAnimation,Z=H.addEvent,V=H.defined;G=H.extend;var F=H.isNumber,I=H.pick,E=H.relativeLength;return B=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.labelDistance=void 0,y.options=void 0,y.series=void 0,y}return U(P,A),P.prototype.getConnectorPath=function(){var y=this.labelPosition,c=this.series.options.dataLabels,g=this.connectorShapes,m=c.connectorShape;return g[m]&&(m=g[m]),m.call(this,{x:y.final.x,y:y.final.y,alignment:y.alignment},y.connectorPosition,c)},P.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},P.prototype.haloPath=function(y){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+y,c.r+y,{innerR:c.r-1,start:c.start,end:c.end})},P.prototype.init=function(){var y=this;A.prototype.init.apply(this,arguments),this.name=I(this.name,"Slice");var c=function(g){y.slice(g.type==="select")};return Z(this,"select",c),Z(this,"unselect",c),this},P.prototype.isValid=function(){return F(this.y)&&0<=this.y},P.prototype.setVisible=function(y,c){var g=this,m=this.series,u=m.chart,v=m.options.ignoreHiddenPoint;c=I(c,v),y!==this.visible&&(this.visible=this.options.visible=y=y===void 0?!this.visible:y,m.options.data[m.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(w){g[w]&&g[w][y?"show":"hide"](y)}),this.legendItem&&u.legend.colorizeItem(this,y),y||this.state!=="hover"||this.setState(""),v&&(m.isDirty=!0),c&&u.redraw())},P.prototype.slice=function(y,c,g){var m=this.series;$(g,m.chart),I(c,!0),this.sliced=this.options.sliced=V(y)?y:!this.sliced,m.options.data[m.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},P}(B),G(B.prototype,{connectorShapes:{fixedOffset:function(A,P,y){var c=P.breakAt;return P=P.touchingSliceAt,[["M",A.x,A.y],y.softConnector?["C",A.x+(A.alignment==="left"?-5:5),A.y,2*c.x-P.x,2*c.y-P.y,c.x,c.y]:["L",c.x,c.y],["L",P.x,P.y]]},straight:function(A,P){return P=P.touchingSliceAt,[["M",A.x,A.y],["L",P.x,P.y]]},crookedLine:function(A,P,y){P=P.touchingSliceAt;var c=this.series,g=c.center[0],m=c.chart.plotWidth,u=c.chart.plotLeft;c=A.alignment;var v=this.shapeArgs.r;return y=E(y.crookDistance,1),y=["L",m=c==="left"?g+v+(m+u-g-v)*(1-y):u+(g-v)*y,A.y],g=!0,(c==="left"?m>A.x||m<P.x:m<A.x||m>P.x)&&(g=!1),A=[["M",A.x,A.y]],g&&A.push(y),A.push(["L",P.x,P.y]),A}}}),B}),_(et,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),_(et,"Series/Pie/PieSeries.js",[et["Series/CenteredUtilities.js"],et["Series/Column/ColumnSeries.js"],et["Core/Globals.js"],et["Core/Legend/LegendSymbol.js"],et["Series/Pie/PiePoint.js"],et["Series/Pie/PieSeriesDefaults.js"],et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Renderer/SVG/Symbols.js"],et["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I,E){var A=this&&this.__extends||function(){var w=function(M,C){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,f){p.__proto__=f}||function(p,f){for(var r in f)f.hasOwnProperty(r)&&(p[r]=f[r])},w(M,C)};return function(M,C){function p(){this.constructor=M}w(M,C),M.prototype=C===null?Object.create(C):(p.prototype=C.prototype,new p)}}(),P=G.getStartAndEndRadians;H=H.noop;var y=E.clamp,c=E.extend,g=E.fireEvent,m=E.merge,u=E.pick,v=E.relativeLength;return E=function(w){function M(){var C=w!==null&&w.apply(this,arguments)||this;return C.center=void 0,C.data=void 0,C.maxLabelDistance=void 0,C.options=void 0,C.points=void 0,C}return A(M,w),M.prototype.animate=function(C){var p=this,f=p.points,r=p.startAngleRad;C||f.forEach(function(l){var t=l.graphic,i=l.shapeArgs;t&&i&&(t.attr({r:u(l.startR,p.center&&p.center[3]/2),start:r,end:r}),t.animate({r:i.r,start:i.start,end:i.end},p.options.animation))})},M.prototype.drawEmpty=function(){var C=this.startAngleRad,p=this.endAngleRad,f=this.options;if(this.total===0&&this.center){var r=this.center[0],l=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,l,this.center[1]/2,0,C,p).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,l,this.center[2]/2,0,{start:C,end:p,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":f.borderWidth,fill:f.fillColor||"none",stroke:f.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},M.prototype.drawPoints=function(){var C=this.chart.renderer;this.points.forEach(function(p){p.graphic&&p.hasNewShapeType()&&(p.graphic=p.graphic.destroy()),p.graphic||(p.graphic=C[p.shapeType](p.shapeArgs).add(p.series.group),p.delayedRendering=!0)})},M.prototype.generatePoints=function(){w.prototype.generatePoints.call(this),this.updateTotals()},M.prototype.getX=function(C,p,f){var r=this.center,l=this.radii?this.radii[f.index]||0:r[2]/2;return C=Math.asin(y((C-r[1])/(l+f.labelDistance),-1,1)),r[0]+(p?-1:1)*Math.cos(C)*(l+f.labelDistance)+(0<f.labelDistance?(p?-1:1)*this.options.dataLabels.padding:0)},M.prototype.hasData=function(){return!!this.processedXData.length},M.prototype.redrawPoints=function(){var C,p,f,r,l=this,t=l.chart,i=t.renderer,o=l.options.shadow;this.drawEmpty(),!o||l.shadowGroup||t.styledMode||(l.shadowGroup=i.g("shadow").attr({zIndex:-1}).add(l.group)),l.points.forEach(function(e){var a={};if(p=e.graphic,!e.isNull&&p){var s=void 0;r=e.shapeArgs,C=e.getTranslate(),t.styledMode||(s=e.shadowGroup,o&&!s&&(s=e.shadowGroup=i.g("shadow").add(l.shadowGroup)),s&&s.attr(C),f=l.pointAttribs(e,e.selected&&"select")),e.delayedRendering?(p.setRadialReference(l.center).attr(r).attr(C),t.styledMode||p.attr(f).attr({"stroke-linejoin":"round"}).shadow(o,s),e.delayedRendering=!1):(p.setRadialReference(l.center),t.styledMode||m(!0,a,f),m(!0,a,r,C),p.animate(a)),p.attr({visibility:e.visible?"inherit":"hidden"}),p.addClass(e.getClassName(),!0)}else p&&(e.graphic=p.destroy())})},M.prototype.sortByAngle=function(C,p){C.sort(function(f,r){return f.angle!==void 0&&(r.angle-f.angle)*p})},M.prototype.translate=function(C){g(this,"translate"),this.generatePoints();var p=this.options,f=p.slicedOffset,r=f+(p.borderWidth||0),l=P(p.startAngle,p.endAngle),t=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-t;var i=this.points,o=p.dataLabels.distance;p=p.ignoreHiddenPoint;var e,a=i.length,s=0;for(C||(this.center=C=this.getCenter()),e=0;e<a;e++){var h=i[e],b=t+s*l;!h.isValid()||p&&!h.visible||(s+=h.percentage/100);var k=t+s*l,O={x:C[0],y:C[1],r:C[2]/2,innerR:C[3]/2,start:Math.round(1e3*b)/1e3,end:Math.round(1e3*k)/1e3};h.shapeType="arc",h.shapeArgs=O,h.labelDistance=u(h.options.dataLabels&&h.options.dataLabels.distance,o),h.labelDistance=v(h.labelDistance,O.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,h.labelDistance),(k=(k+b)/2)>1.5*Math.PI?k-=2*Math.PI:k<-Math.PI/2&&(k+=2*Math.PI),h.slicedTranslation={translateX:Math.round(Math.cos(k)*f),translateY:Math.round(Math.sin(k)*f)},O=Math.cos(k)*C[2]/2;var d=Math.sin(k)*C[2]/2;h.tooltipPos=[C[0]+.7*O,C[1]+.7*d],h.half=k<-Math.PI/2||k>Math.PI/2?1:0,h.angle=k,b=Math.min(r,h.labelDistance/5),h.labelPosition={natural:{x:C[0]+O+Math.cos(k)*h.labelDistance,y:C[1]+d+Math.sin(k)*h.labelDistance},final:{},alignment:0>h.labelDistance?"center":h.half?"right":"left",connectorPosition:{breakAt:{x:C[0]+O+Math.cos(k)*b,y:C[1]+d+Math.sin(k)*b},touchingSliceAt:{x:C[0]+O,y:C[1]+d}}}}g(this,"afterTranslate")},M.prototype.updateTotals=function(){var C,p=this.points,f=p.length,r=this.options.ignoreHiddenPoint,l=0;for(C=0;C<f;C++){var t=p[C];!t.isValid()||r&&!t.visible||(l+=t.y)}for(this.total=l,C=0;C<f;C++)(t=p[C]).percentage=0<l&&(t.visible||!r)?t.y/l*100:0,t.total=l},M.defaultOptions=m(V.defaultOptions,Z),M}(V),c(E.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:U.drawRectangle,drawTracker:B.prototype.drawTracker,getCenter:G.getCenter,getSymbol:H,isCartesian:!1,noSharedTooltip:!0,pointAttribs:B.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:H,trackerGroups:["group","dataLabelsGroup"]}),F.registerSeriesType("pie",E),E}),_(et,"Series/Pie/PieDataLabel.js",[et["Core/Series/DataLabel.js"],et["Core/Globals.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(G,B,H,U,$){var Z,V=B.noop,F=H.distribute,I=U.series,E=$.arrayMax,A=$.clamp,P=$.defined,y=$.merge,c=$.pick,g=$.relativeLength;return function(m){function u(){var p,f,r,l,t,i,o,e,a,s,h,b,k=this,O=k.data,d=k.chart,x=k.options.dataLabels||{},T=x.connectorPadding,N=d.plotWidth,z=d.plotHeight,L=d.plotLeft,D=Math.round(d.chartWidth/3),j=k.center,Y=j[2]/2,X=j[1],W=[[],[]],q=[0,0,0,0],tt=k.dataLabelPositioners;k.visible&&(x.enabled||k._hasPointLabels)&&(O.forEach(function(Q){Q.dataLabel&&Q.visible&&Q.dataLabel.shortened&&(Q.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),Q.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(k),O.forEach(function(Q){Q.dataLabel&&(Q.visible?(W[Q.half].push(Q),Q.dataLabel._pos=null,!P(x.style.width)&&!P(Q.options.dataLabels&&Q.options.dataLabels.style&&Q.options.dataLabels.style.width)&&Q.dataLabel.getBBox().width>D&&(Q.dataLabel.css({width:Math.round(.7*D)+"px"}),Q.dataLabel.shortened=!0)):(Q.dataLabel=Q.dataLabel.destroy(),Q.dataLabels&&Q.dataLabels.length===1&&delete Q.dataLabels))}),W.forEach(function(Q,nt){var lt,gt=Q.length,mt=[];if(gt){if(k.sortByAngle(Q,nt-.5),0<k.maxLabelDistance){var bt=Math.max(0,X-Y-k.maxLabelDistance),yt=Math.min(X+Y+k.maxLabelDistance,d.plotHeight);Q.forEach(function(dt){0<dt.labelDistance&&dt.dataLabel&&(dt.top=Math.max(0,X-Y-dt.labelDistance),dt.bottom=Math.min(X+Y+dt.labelDistance,d.plotHeight),lt=dt.dataLabel.getBBox().height||21,dt.distributeBox={target:dt.labelPosition.natural.y-dt.top+lt/2,size:lt,rank:dt.y},mt.push(dt.distributeBox))}),F(mt,bt=yt+lt-bt,bt/5)}for(h=0;h<gt;h++){if(p=Q[h],i=p.labelPosition,l=p.dataLabel,s=p.visible===!1?"hidden":"inherit",a=bt=i.natural.y,mt&&P(p.distributeBox)&&(p.distributeBox.pos===void 0?s="hidden":(o=p.distributeBox.size,a=tt.radialDistributionY(p))),delete p.positionIndex,x.justify)e=tt.justify(p,Y,j);else switch(x.alignTo){case"connectors":e=tt.alignToConnectors(Q,nt,N,L);break;case"plotEdges":e=tt.alignToPlotEdges(l,nt,N,L);break;default:e=tt.radialDistributionX(k,p,a,bt)}l._attr={visibility:s,align:i.alignment},b=p.options.dataLabels||{},l._pos={x:e+c(b.x,x.x)+({left:T,right:-T}[i.alignment]||0),y:a+c(b.y,x.y)-10},i.final.x=e,i.final.y=a,c(x.crop,!0)&&(t=l.getBBox().width,bt=null,e-t<T&&nt===1?(bt=Math.round(t-e+T),q[3]=Math.max(bt,q[3])):e+t>N-T&&nt===0&&(bt=Math.round(e+t-N+T),q[1]=Math.max(bt,q[1])),0>a-o/2?q[0]=Math.max(Math.round(o/2-a),q[0]):a+o/2>z&&(q[2]=Math.max(Math.round(a+o/2-z),q[2])),l.sideOverflow=bt)}}}),E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(Q){var nt;b=y(x,Q.options.dataLabels),(f=c(b.connectorWidth,1))&&(r=Q.connector,(l=Q.dataLabel)&&l._pos&&Q.visible&&0<Q.labelDistance?(s=l._attr.visibility,(nt=!r)&&(Q.connector=r=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+Q.colorIndex+(Q.className?" "+Q.className:"")).add(k.dataLabelsGroup),d.styledMode||r.attr({"stroke-width":f,stroke:b.connectorColor||Q.color||"#666666"})),r[nt?"attr":"animate"]({d:Q.getConnectorPath()}),r.attr("visibility",s)):r&&(Q.connector=r.destroy()))}))}function v(){this.points.forEach(function(p){var f,r=p.dataLabel;r&&p.visible&&((f=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](f),r.moved=!0):r&&r.attr({y:-9999})),delete p.distributeBox},this)}function w(p){var f=this.center,r=this.options,l=r.center,t=r.minSize||80,i=r.size!==null;if(!i){if(l[0]!==null)var o=Math.max(f[2]-Math.max(p[1],p[3]),t);else o=Math.max(f[2]-p[1]-p[3],t),f[0]+=(p[3]-p[1])/2;l[1]!==null?o=A(o,t,f[2]-Math.max(p[0],p[2])):(o=A(o,t,f[2]-p[0]-p[2]),f[1]+=(p[0]-p[2])/2),o<f[2]?(f[2]=o,f[3]=Math.min(r.thickness?Math.max(0,o-2*r.thickness):Math.max(0,g(r.innerSize||0,o)),o),this.translate(f),this.drawDataLabels&&this.drawDataLabels()):i=!0}return i}var M=[],C={radialDistributionY:function(p){return p.top+p.distributeBox.pos},radialDistributionX:function(p,f,r,l){return p.getX(r<f.top+2||r>f.bottom-2?l:r,f.half,f)},justify:function(p,f,r){return r[0]+(p.half?-1:1)*(f+p.labelDistance)},alignToPlotEdges:function(p,f,r,l){return p=p.getBBox().width,f?p+l:r-p-l},alignToConnectors:function(p,f,r,l){var t,i=0;return p.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),f?i+l:r-i-l}};m.compose=function(p){G.compose(I),M.indexOf(p)===-1&&(M.push(p),(p=p.prototype).dataLabelPositioners=C,p.alignDataLabel=V,p.drawDataLabels=u,p.placeDataLabels=v,p.verifyDataLabelOverflow=w)}}(Z||(Z={})),Z}),_(et,"Extensions/OverlappingDataLabels.js",[et["Core/Chart/Chart.js"],et["Core/Utilities.js"]],function(G,B){function H(E,A){var P=!1;if(E){var y=E.newOpacity;E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,function(){A.styledMode||E.css({pointerEvents:y?"auto":"none"})}),$(A,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0}return P}var U=B.addEvent,$=B.fireEvent,Z=B.isArray,V=B.isNumber,F=B.objectEach,I=B.pick;U(G,"render",function(){var E=this,A=[];(this.labelCollectors||[]).forEach(function(P){A=A.concat(P())}),(this.yAxis||[]).forEach(function(P){P.stacking&&P.options.stackLabels&&!P.options.stackLabels.allowOverlap&&F(P.stacking.stacks,function(y){F(y,function(c){c.label&&A.push(c.label)})})}),(this.series||[]).forEach(function(P){var y=P.options.dataLabels;P.visible&&(y.enabled!==!1||P._hasPointLabels)&&(y=function(c){return c.forEach(function(g){g.visible&&(Z(g.dataLabels)?g.dataLabels:g.dataLabel?[g.dataLabel]:[]).forEach(function(m){var u=m.options;m.labelrank=I(u.labelrank,g.labelrank,g.shapeArgs&&g.shapeArgs.height),u.allowOverlap?(m.oldOpacity=m.opacity,m.newOpacity=1,H(m,E)):A.push(m)})})},y(P.nodes||[]),y(P.points))}),this.hideOverlappingLabels(A)}),G.prototype.hideOverlappingLabels=function(E){var A,P,y,c=this,g=E.length,m=c.renderer,u=!1,v=function(C){var p,f,r=C.box?0:C.padding||0,l=p=0;if(C&&(!C.alignAttr||C.placed)){var t=C.alignAttr||{x:C.attr("x"),y:C.attr("y")},i=C.parentGroup;C.width||(p=C.getBBox(),C.width=p.width,C.height=p.height,p=m.fontMetrics(null,C.element).h);var o=C.width-2*r;return(f={left:"0",center:"0.5",right:"1"}[C.alignValue])?l=+f*o:V(C.x)&&Math.round(C.x)!==C.translateX&&(l=C.x-C.translateX),{x:t.x+(i.translateX||0)+r-(l||0),y:t.y+(i.translateY||0)+r-p,width:C.width-2*r,height:C.height-2*r}}};for(P=0;P<g;P++)(A=E[P])&&(A.oldOpacity=A.opacity,A.newOpacity=1,A.absoluteBox=v(A));for(E.sort(function(C,p){return(p.labelrank||0)-(C.labelrank||0)}),P=0;P<g;P++){var w=(v=E[P])&&v.absoluteBox;for(A=P+1;A<g;++A){var M=(y=E[A])&&y.absoluteBox;!w||!M||v===y||v.newOpacity===0||y.newOpacity===0||v.visibility==="hidden"||y.visibility==="hidden"||M.x>=w.x+w.width||M.x+M.width<=w.x||M.y>=w.y+w.height||M.y+M.height<=w.y||((v.labelrank<y.labelrank?v:y).newOpacity=0)}}E.forEach(function(C){H(C,c)&&(u=!0)}),u&&$(c,"afterHideAllOverlappingLabels")}}),_(et,"Core/Responsive.js",[et["Core/Utilities.js"]],function(G){var B,H=G.extend,U=G.find,$=G.isArray,Z=G.isObject,V=G.merge,F=G.objectEach,I=G.pick,E=G.splat,A=G.uniqueKey;return function(P){var y=[];P.compose=function(g){return y.indexOf(g)===-1&&(y.push(g),H(g.prototype,c.prototype)),g};var c=function(){function g(){}return g.prototype.currentOptions=function(m){var u=this,v={};return function w(M,C,p,f){var r;F(M,function(l,t){if(!f&&-1<u.collectionsWithUpdate.indexOf(t)&&C[t])for(l=E(l),p[t]=[],r=0;r<Math.max(l.length,C[t].length);r++)C[t][r]&&(l[r]===void 0?p[t][r]=C[t][r]:(p[t][r]={},w(l[r],C[t][r],p[t][r],f+1)));else Z(l)?(p[t]=$(l)?[]:{},w(l,C[t]||{},p[t],f+1)):p[t]=C[t]===void 0?null:C[t]})}(m,this.options,v,0),v},g.prototype.matchResponsiveRule=function(m,u){var v=m.condition;(v.callback||function(){return this.chartWidth<=I(v.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=I(v.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=I(v.minWidth,0)&&this.chartHeight>=I(v.minHeight,0)}).call(this)&&u.push(m._id)},g.prototype.setResponsive=function(m,u){var v=this,w=this.options.responsive,M=this.currentResponsive,C=[];!u&&w&&w.rules&&w.rules.forEach(function(p){p._id===void 0&&(p._id=A()),v.matchResponsiveRule(p,C)},this),u=V.apply(void 0,C.map(function(p){return U((w||{}).rules||[],function(f){return f._id===p})}).map(function(p){return p&&p.chartOptions})),u.isResponsiveOptions=!0,(C=C.toString()||void 0)!==(M&&M.ruleIds)&&(M&&this.update(M.undoOptions,m,!0),C?((M=this.currentOptions(u)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:C,mergedOptions:u,undoOptions:M},this.update(u,m,!0)):this.currentResponsive=void 0)},g}()}(B||(B={})),B}),_(et,"masters/highcharts.src.js",[et["Core/Globals.js"],et["Core/Utilities.js"],et["Core/Defaults.js"],et["Core/Animation/Fx.js"],et["Core/Animation/AnimationUtilities.js"],et["Core/Renderer/HTML/AST.js"],et["Core/FormatUtilities.js"],et["Core/Renderer/RendererUtilities.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Renderer/SVG/SVGRenderer.js"],et["Core/Renderer/HTML/HTMLElement.js"],et["Core/Renderer/HTML/HTMLRenderer.js"],et["Core/Axis/Axis.js"],et["Core/Axis/DateTimeAxis.js"],et["Core/Axis/LogarithmicAxis.js"],et["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],et["Core/Axis/Tick.js"],et["Core/Tooltip.js"],et["Core/Series/Point.js"],et["Core/Pointer.js"],et["Core/MSPointer.js"],et["Core/Legend/Legend.js"],et["Core/Chart/Chart.js"],et["Core/Axis/Stacking/StackingAxis.js"],et["Core/Axis/Stacking/StackItem.js"],et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Series/Column/ColumnSeries.js"],et["Series/Column/ColumnDataLabel.js"],et["Series/Pie/PieSeries.js"],et["Series/Pie/PieDataLabel.js"],et["Core/Series/DataLabel.js"],et["Core/Responsive.js"],et["Core/Color/Color.js"],et["Core/Time.js"]],function(G,B,H,U,$,Z,V,F,I,E,A,P,y,c,g,m,u,v,w,M,C,p,f,r,l,t,i,o,e,a,s,h,b,k,O){return G.animate=$.animate,G.animObject=$.animObject,G.getDeferredAnimation=$.getDeferredAnimation,G.setAnimation=$.setAnimation,G.stop=$.stop,G.timers=U.timers,G.AST=Z,G.Axis=y,G.Chart=f,G.chart=f.chart,G.Fx=U,G.Legend=p,G.PlotLineOrBand=m,G.Point=w,G.Pointer=C.isRequired()?C:M,G.Series=t,G.StackItem=l,G.SVGElement=I,G.SVGRenderer=E,G.Tick=u,G.Time=O,G.Tooltip=v,G.Color=k,G.color=k.parse,P.compose(E),A.compose(I),G.defaultOptions=H.defaultOptions,G.getOptions=H.getOptions,G.time=H.defaultTime,G.setOptions=H.setOptions,G.dateFormat=V.dateFormat,G.format=V.format,G.numberFormat=V.numberFormat,G.addEvent=B.addEvent,G.arrayMax=B.arrayMax,G.arrayMin=B.arrayMin,G.attr=B.attr,G.clearTimeout=B.clearTimeout,G.correctFloat=B.correctFloat,G.createElement=B.createElement,G.css=B.css,G.defined=B.defined,G.destroyObjectProperties=B.destroyObjectProperties,G.discardElement=B.discardElement,G.distribute=F.distribute,G.erase=B.erase,G.error=B.error,G.extend=B.extend,G.extendClass=B.extendClass,G.find=B.find,G.fireEvent=B.fireEvent,G.getMagnitude=B.getMagnitude,G.getStyle=B.getStyle,G.inArray=B.inArray,G.isArray=B.isArray,G.isClass=B.isClass,G.isDOMElement=B.isDOMElement,G.isFunction=B.isFunction,G.isNumber=B.isNumber,G.isObject=B.isObject,G.isString=B.isString,G.keys=B.keys,G.merge=B.merge,G.normalizeTickInterval=B.normalizeTickInterval,G.objectEach=B.objectEach,G.offset=B.offset,G.pad=B.pad,G.pick=B.pick,G.pInt=B.pInt,G.relativeLength=B.relativeLength,G.removeEvent=B.removeEvent,G.seriesType=i.seriesType,G.splat=B.splat,G.stableSort=B.stableSort,G.syncTimeout=B.syncTimeout,G.timeUnits=B.timeUnits,G.uniqueKey=B.uniqueKey,G.useSerialIds=B.useSerialIds,G.wrap=B.wrap,e.compose(o),h.compose(t),c.compose(y),g.compose(y),s.compose(a),m.compose(y),b.compose(f),r.compose(y,f,t),G}),et["masters/highcharts.src.js"]._modules=et,et["masters/highcharts.src.js"]},it.exports?(pt.default=pt,it.exports=ct.document?pt(ct):pt):(ht=function(){return pt(ct)}.call(rt,st,rt,it))===void 0||(it.exports=ht)},4812:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Series/Bullet/BulletPoint.js",[_["Series/Column/ColumnSeries.js"]],function(G){var B,H=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,F){V.__proto__=F}||function(V,F){for(var I in F)F.hasOwnProperty(I)&&(V[I]=F[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.options=void 0,V.series=void 0,V}return H(Z,$),Z.prototype.destroy=function(){this.targetGraphic&&(this.targetGraphic=this.targetGraphic.destroy()),$.prototype.destroy.apply(this,arguments)},Z}(G.prototype.pointClass);return U}),et(_,"Series/Bullet/BulletSeries.js",[_["Series/Bullet/BulletPoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(y,c){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},U(y,c)},function(y,c){function g(){this.constructor=y}U(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),Z=B.seriesTypes.column,V=H.extend,F=H.isNumber,I=H.merge,E=H.pick,A=H.relativeLength,P=function(y){function c(){var g=y!==null&&y.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g.targetData=void 0,g}return $(c,y),c.prototype.drawPoints=function(){var g=this,m=g.chart,u=g.options,v=u.animationLimit||250;y.prototype.drawPoints.apply(this,arguments),g.points.forEach(function(w){var M,C,p,f,r,l=w.options,t=w.target,i=w.y,o=w.targetGraphic;if(F(t)&&t!==null){p=(f=I(u.targetOptions,l.targetOptions)).height;var e=w.shapeArgs;w.dlBox&&e&&!F(e.width)&&(e=w.dlBox),C=A(f.width,e.width),r=g.yAxis.translate(t,!1,!0,!1,!0)-f.height/2-.5,M=g.crispCol.apply({chart:m,borderWidth:f.borderWidth,options:{crisp:u.crisp}},[e.x+e.width/2-C/2,r,C,p]),o?(o[m.pointCount<v?"animate":"attr"](M),F(i)&&i!==null?o.element.point=w:o.element.point=void 0):w.targetGraphic=o=m.renderer.rect().attr(M).add(g.group),m.styledMode||o.attr({fill:E(f.color,l.color,g.zones.length&&(w.getZone.call({series:g,x:w.x,y:t,options:{}}).color||g.color)||void 0,w.color,g.color),stroke:E(f.borderColor,w.borderColor,g.options.borderColor),"stroke-width":f.borderWidth,r:f.borderRadius}),F(i)&&i!==null&&(o.element.point=w),o.addClass(w.getClassName()+" highcharts-bullet-target",!0)}else o&&(w.targetGraphic=o.destroy())})},c.prototype.getExtremes=function(g){var m=y.prototype.getExtremes.call(this,g),u=this.targetData;if(u&&u.length){var v=y.prototype.getExtremes.call(this,u);F(v.dataMin)&&(m.dataMin=Math.min(E(m.dataMin,1/0),v.dataMin)),F(v.dataMax)&&(m.dataMax=Math.max(E(m.dataMax,-1/0),v.dataMax))}return m},c.defaultOptions=I(Z.defaultOptions,{targetOptions:{width:"140%",height:3,borderWidth:0,borderRadius:0},tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.y}</b>. Target: <b>{point.target}</b><br/>'}}),c}(Z);return V(P.prototype,{parallelArrays:["x","y","target"],pointArrayMap:["y","target"]}),P.prototype.pointClass=G,B.registerSeriesType("bullet",P),P}),et(_,"masters/modules/bullet.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},5035:(it,rt)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.calculateInscribedCircle=void 0;var st=2*Math.PI,ht=1e-9,ct=function(_){var et=_%st;return et<=-Math.PI?et+st:et>Math.PI?et-st:et},pt=function(_,et,G){return et?Number.POSITIVE_INFINITY:G*_},ft=function(_,et){return{id:"outerArc",radialDistance:_/(1+et),radius:_*et/(1+et)}};rt.calculateInscribedCircle=function(_){if(!(_.innerArcRadius>=0&&_.outerArcRadius>_.innerArcRadius))return{angle:0,radialDistance:0,radius:0};if(Math.abs(_.phi1-_.phi2)<ht)return{angle:_.phi1,radialDistance:0,radius:0};var et,G=ct(_.phi1),B=(et=((ct(_.phi2)-G)%st+st)%st)===0?st:et,H=function(P){return Math.sin(P/2)}(B),U=B>=Math.PI;if(B<ht)return{angle:G,radialDistance:0,radius:0};var $,Z,V=ct(G+B/2),F=[ft(_.outerArcRadius,H),($=_.innerArcRadius,Z=_.outerArcRadius,{id:"betweenArcs",radialDistance:($+Z)/2,radius:(Z-$)/2})].map(function(P){var y=function(c,g,m,u,v){var w=function(f,r,l,t){return l<f-ht||l>r+ht?Number.NEGATIVE_INFINITY:Math.min(t,l-f,r-l)}(g,m,c.radialDistance,c.radius);if(!Number.isFinite(w)||w<0)return{effectiveRadius:Number.NEGATIVE_INFINITY,active:{innerArc:!1,outerArc:!1,radials:!1}};var M=pt(u,v,c.radialDistance),C=Math.min(w,M),p=function(f,r){return Math.abs(f-r)<=1e-6};return{effectiveRadius:C,active:{innerArc:p(C,c.radialDistance-g),outerArc:p(C,m-c.radialDistance),radials:!v&&isFinite(M)&&p(C,M)}}}(P,_.innerArcRadius,_.outerArcRadius,H,U);return{candidate:P,effectiveRadius:y.effectiveRadius,active:y.active}}).filter(function(P){return P.effectiveRadius>0});if(F.length===0){var I=(_.innerArcRadius+_.outerArcRadius)/2;return{angle:V,radialDistance:I,radius:Math.max(0,Math.min(I-_.innerArcRadius,_.outerArcRadius-I,pt(H,U,I)))}}var E=F.reduce(function(P,y){return y.effectiveRadius>P.effectiveRadius?y:P}),A=Math.max(0,Math.min(E.effectiveRadius,E.candidate.radialDistance-_.innerArcRadius,_.outerArcRadius-E.candidate.radialDistance,pt(H,U,E.candidate.radialDistance)));return{angle:V,radialDistance:E.candidate.radialDistance,radius:A}}},5098:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Accessibility/Utils/HTMLUtilities.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var H=G.doc,U=G.win,$=B.css,Z=U.EventTarget&&new U.EventTarget||"none";function V(I){if(typeof U.MouseEvent=="function")return new U.MouseEvent(I.type,I);if(H.createEvent){var E=H.createEvent("MouseEvent");if(E.initMouseEvent)return E.initMouseEvent(I.type,I.bubbles,I.cancelable,I.view||U,I.detail,I.screenX,I.screenY,I.clientX,I.clientY,I.ctrlKey,I.altKey,I.shiftKey,I.metaKey,I.button,I.relatedTarget),E}return F(I.type)}function F(I,E,A){var P=E||{x:0,y:0};if(typeof U.MouseEvent=="function")return new U.MouseEvent(I,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:A||Z,view:U,detail:I==="click"?1:0,screenX:P.x,screenY:P.y,clientX:P.x,clientY:P.y});if(H.createEvent){var y=H.createEvent("MouseEvent");if(y.initMouseEvent)return y.initMouseEvent(I,!0,!0,U,I==="click"?1:0,P.x,P.y,P.x,P.y,!1,!1,!1,!1,0,null),y}return{type:I}}return{addClass:function(I,E){I.classList?I.classList.add(E):I.className.indexOf(E)<0&&(I.className+=" "+E)},cloneMouseEvent:V,cloneTouchEvent:function(I){var E=function(y){for(var c=[],g=0;g<y.length;++g){var m=y.item(g);m&&c.push(m)}return c};if(typeof U.TouchEvent=="function"){var A=new U.TouchEvent(I.type,{touches:E(I.touches),targetTouches:E(I.targetTouches),changedTouches:E(I.changedTouches),ctrlKey:I.ctrlKey,shiftKey:I.shiftKey,altKey:I.altKey,metaKey:I.metaKey,bubbles:I.bubbles,cancelable:I.cancelable,composed:I.composed,detail:I.detail,view:I.view});return I.defaultPrevented&&A.preventDefault(),A}var P=V(I);return P.touches=I.touches,P.changedTouches=I.changedTouches,P.targetTouches=I.targetTouches,P},escapeStringForHTML:function(I){return I.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(I){return H.getElementById(I)},getFakeMouseEvent:F,getHeadingTagNameForElement:function(I){var E=function(y){var c=parseInt(y.slice(1),10);return"h"+Math.min(6,c+1)},A=function(y){return/H[1-6]/.test(y)},P=function(y){var c=function(u){for(var v=u;v=v.previousSibling;){var w=v.tagName||"";if(A(w))return w}return""}(y);if(c)return E(c);var g=y.parentElement;if(!g)return"p";var m=g.tagName;return A(m)?E(m):P(g)};return P(I)},removeChildNodes:function(I){for(;I.lastChild;)I.removeChild(I.lastChild)},removeClass:function(I,E){I.classList?I.classList.remove(E):I.className=I.className.replace(new RegExp(E,"g"),"")},removeElement:function(I){I&&I.parentNode&&I.parentNode.removeChild(I)},reverseChildNodes:function(I){for(var E=I.childNodes.length;E--;)I.appendChild(I.childNodes[E])},simulatedEventTarget:Z,stripHTMLTagsFromString:function(I){return typeof I=="string"?I.replace(/<\/?[^>]+(>|$)/g,""):I},visuallyHideElement:function(I){$(I,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}}}),et(_,"Accessibility/A11yI18n.js",[_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B){var H,U=G.format,$=B.getNestedProperty,Z=B.pick;return function(V){var F=[];function I(A,P,y){var c,g,m=function(w,M){var C=w.slice(M||0),p=C.indexOf("{"),f=C.indexOf("}");if(p>-1&&f>p)return{statement:C.substring(p+1,f),begin:M+p+1,end:M+f}},u=[],v=0;do c=m(A,v),(g=A.substring(v,c&&c.begin-1)).length&&u.push({value:g,type:"constant"}),c&&u.push({value:c.statement,type:"statement"}),v=c?c.end+1:v+1;while(c);return u.forEach(function(w){w.type==="statement"&&(w.value=function(M,C){var p,f,r,l=M.indexOf("#each("),t=M.indexOf("#plural("),i=M.indexOf("["),o=M.indexOf("]");if(l>-1){var e=M.slice(l).indexOf(")")+l,a=M.substring(0,l),s=M.substring(e+1),h=M.substring(l+6,e).split(","),b=Number(h[1]),k=void 0;if(f="",p=$(h[0],C)){k=(b=isNaN(b)?p.length:b)<0?p.length+b:Math.min(b,p.length);for(var O=0;O<k;++O)f+=a+p[O]+s}return f.length?f:""}if(t>-1){var d=M.slice(t).indexOf(")")+t,x=M.substring(t+8,d).split(",");switch(Number($(x[0],C))){case 0:f=Z(x[4],x[1]);break;case 1:f=Z(x[2],x[1]);break;case 2:f=Z(x[3],x[1]);break;default:f=x[1]}return f?(r=f).trim&&r.trim()||r.replace(/^\s+|\s+$/g,""):""}if(i>-1){var T=M.substring(0,i),N=Number(M.substring(i+1,o)),z=void 0;return p=$(T,C),!isNaN(N)&&p&&(N<0?(z=p[p.length+N])===void 0&&(z=p[0]):(z=p[N])===void 0&&(z=p[p.length-1])),z!==void 0?z:""}return"{"+M+"}"}(w.value,P))}),U(u.reduce(function(w,M){return w+M.value},""),P,y)}function E(A,P){for(var y=A.split("."),c=this.options.lang,g=0;g<y.length;++g)c=c&&c[y[g]];return typeof c=="string"?I(c,P,this):""}V.compose=function(A){return F.indexOf(A)===-1&&(F.push(A),A.prototype.langFormat=E),A},V.i18nFormat=I}(H||(H={})),H}),et(_,"Accessibility/Utils/ChartUtilities.js",[_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,H){var U=G.doc,$=B.stripHTMLTagsFromString,Z=H.defined,V=H.find,F=H.fireEvent;function I(A){if(A.points&&A.points.length){var P=V(A.points,function(y){return!!y.graphic});return P&&P.graphic&&P.graphic.element}}function E(A){var P=I(A);return P&&P.parentNode||A.graph&&A.graph.element||A.group&&A.group.element}return{fireEventOnWrappedOrUnwrappedElement:function A(P,y){var c=y.type,g=P.hcEvents;U.createEvent&&(P.dispatchEvent||P.fireEvent)?P.dispatchEvent?P.dispatchEvent(y):P.fireEvent(c,y):g&&g[c]?F(P,c,y):P.element&&A(P.element,y)},getChartTitle:function(A){return $(A.options.title.text||A.langFormat("accessibility.defaultChartTitle",{chart:A}))},getAxisDescription:function(A){return A&&(A.userOptions&&A.userOptions.accessibility&&A.userOptions.accessibility.description||A.axisTitle&&A.axisTitle.textStr||A.options.id||A.categories&&"categories"||A.dateTime&&"Time"||"values")},getAxisRangeDescription:function(A){var P=A.options||{};return P.accessibility&&P.accessibility.rangeDescription!==void 0?P.accessibility.rangeDescription:A.categories?function(y){var c=y.chart;return y.dataMax&&y.dataMin?c.langFormat("accessibility.axis.rangeCategories",{chart:c,axis:y,numCategories:y.dataMax-y.dataMin+1}):""}(A):!A.dateTime||A.min!==0&&A.dataMin!==0?function(y){var c=y.chart,g=c.options,m=g&&g.accessibility&&g.accessibility.screenReaderSection.axisRangeDateFormat||"",u={min:y.dataMin||y.min||0,max:y.dataMax||y.max||0},v=function(w){return y.dateTime?c.time.dateFormat(m,u[w]):u[w].toString()};return c.langFormat("accessibility.axis.rangeFromTo",{chart:c,axis:y,rangeFrom:v("min"),rangeTo:v("max")})}(A):function(y){var c=y.chart,g={},m=y.dataMin||y.min||0,u=y.dataMax||y.max||0,v="Seconds";g.Seconds=(u-m)/1e3,g.Minutes=g.Seconds/60,g.Hours=g.Minutes/60,g.Days=g.Hours/24,["Minutes","Hours","Days"].forEach(function(M){g[M]>2&&(v=M)});var w=g[v].toFixed(v!=="Seconds"&&v!=="Minutes"?1:0);return c.langFormat("accessibility.axis.timeRange"+v,{chart:c,axis:y,range:w.replace(".0","")})}(A)},getPointFromXY:function(A,P,y){for(var c,g=A.length;g--;)if(c=V(A[g].points||[],function(m){return m.x===P&&m.y===y}))return c},getSeriesFirstPointElement:I,getSeriesFromName:function(A,P){return P?(A.series||[]).filter(function(y){return y.name===P}):A.series},getSeriesA11yElement:E,unhideChartElementFromAT:function A(P,y){y.setAttribute("aria-hidden",!1),y!==P.renderTo&&y.parentNode&&y.parentNode!==U.body&&(Array.prototype.forEach.call(y.parentNode.childNodes,function(c){c.hasAttribute("aria-hidden")||c.setAttribute("aria-hidden",!0)}),A(P,y.parentNode))},hideSeriesFromAT:function(A){var P=E(A);P&&P.setAttribute("aria-hidden",!0)},scrollToPoint:function(A){var P=A.series.xAxis,y=A.series.yAxis,c=P&&P.scrollbar?P:y,g=c&&c.scrollbar;if(g&&Z(g.to)&&Z(g.from)){var m=g.to-g.from,u=function(v,w){if(!Z(v.dataMin)||!Z(v.dataMax))return 0;var M=v.toPixels(v.dataMin),C=v.toPixels(v.dataMax),p=v.coll==="xAxis"?"x":"y";return(v.toPixels(w[p]||0)-M)/(C-M)}(c,A);g.updatePosition(u-m/2,u+m/2),F(g,"changed",{from:g.from,to:g.to,trigger:"scrollbar",DOMEvent:null})}}}}),et(_,"Accessibility/Utils/DOMElementProvider.js",[_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B){var H=G.doc,U=B.removeElement,$=function(){function Z(){this.elements=[]}return Z.prototype.createElement=function(){var V=H.createElement.apply(H,arguments);return this.elements.push(V),V},Z.prototype.destroyCreatedElements=function(){this.elements.forEach(function(V){U(V)}),this.elements=[]},Z}();return $}),et(_,"Accessibility/Utils/EventProvider.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var H=B.addEvent,U=function(){function $(){this.eventRemovers=[]}return $.prototype.addEvent=function(){var Z=H.apply(G,arguments);return this.eventRemovers.push(Z),Z},$.prototype.removeAddedEvents=function(){this.eventRemovers.forEach(function(Z){return Z()}),this.eventRemovers=[]},$}();return U}),et(_,"Accessibility/AccessibilityComponent.js",[_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/DOMElementProvider.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=G.fireEventOnWrappedOrUnwrappedElement,V=U.getFakeMouseEvent,F=$.extend,I=function(){function E(){this.chart=void 0,this.domElementProvider=void 0,this.eventProvider=void 0,this.keyCodes=void 0,this.proxyProvider=void 0}return E.prototype.initBase=function(A,P){this.chart=A,this.eventProvider=new H,this.domElementProvider=new B,this.proxyProvider=P,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}},E.prototype.addEvent=function(A,P,y,c){return this.eventProvider.addEvent(A,P,y,c)},E.prototype.createElement=function(A,P){return this.domElementProvider.createElement(A,P)},E.prototype.fakeClickEvent=function(A){var P=V("click");Z(A,P)},E.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},E}();return F(I.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),I}),et(_,"Accessibility/KeyboardNavigationHandler.js",[_["Core/Utilities.js"]],function(G){var B=G.find;return function(){function H(U,$){this.chart=U,this.keyCodeMap=$.keyCodeMap||[],this.validate=$.validate,this.init=$.init,this.terminate=$.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}return H.prototype.run=function(U){var $=U.which||U.keyCode,Z=this.response.noHandler,V=B(this.keyCodeMap,function(F){return F[0].indexOf($)>-1});return V?Z=V[1].call(this,$,U):$===9&&(Z=this.response[U.shiftKey?"prev":"next"]),Z},H}()}),et(_,"Accessibility/Components/ContainerComponent.js",[_["Accessibility/AccessibilityComponent.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,H,U,$){var Z,V=this&&this.__extends||(Z=function(y,c){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},Z(y,c)},function(y,c){function g(){this.constructor=y}Z(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),F=H.unhideChartElementFromAT,I=H.getChartTitle,E=U.doc,A=$.stripHTMLTagsFromString,P=function(y){function c(){return y!==null&&y.apply(this,arguments)||this}return V(c,y),c.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},c.prototype.handleSVGTitleElement=function(){var g=this.chart,m="highcharts-title-"+g.index,u=A(g.langFormat("accessibility.svgContainerTitle",{chartTitle:I(g)}));if(u.length){var v=this.svgTitleElement=this.svgTitleElement||E.createElementNS("http://www.w3.org/2000/svg","title");v.textContent=u,v.id=m,g.renderTo.insertBefore(v,g.renderTo.firstChild)}},c.prototype.setSVGContainerLabel=function(){var g=this.chart,m=g.langFormat("accessibility.svgContainerLabel",{chartTitle:I(g)});g.renderer.box&&m.length&&g.renderer.box.setAttribute("aria-label",m)},c.prototype.setGraphicContainerAttrs=function(){var g=this.chart,m=g.langFormat("accessibility.graphicContainerLabel",{chartTitle:I(g)});m.length&&g.container.setAttribute("aria-label",m)},c.prototype.setRenderToAttrs=function(){var g=this.chart,m=g.options.accessibility.landmarkVerbosity!=="disabled",u=g.langFormat("accessibility.chartContainerLabel",{title:I(g),chart:g});u&&(g.renderTo.setAttribute("role",m?"region":"group"),g.renderTo.setAttribute("aria-label",u))},c.prototype.makeCreditsAccessible=function(){var g=this.chart,m=g.credits;m&&(m.textStr&&m.element.setAttribute("aria-label",g.langFormat("accessibility.credits",{creditsStr:A(m.textStr)})),F(g,m.element))},c.prototype.getKeyboardNavigation=function(){var g=this.chart;return new B(g,{keyCodeMap:[],validate:function(){return!0},init:function(){var m=g.accessibility;m&&m.keyboardNavigation.tabindexContainer.focus()}})},c.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},c}(G);return P}),et(_,"Accessibility/FocusBorder.js",[_["Core/Renderer/SVG/SVGLabel.js"],_["Core/Utilities.js"]],function(G,B){var H,U=B.addEvent,$=B.pick;return function(Z){var V=[],F=["x","y","transform","width","height","r","d","stroke-width"];function I(){var y=this.focusElement,c=this.options.accessibility.keyboardNavigation.focusBorder;y&&(y.removeFocusBorder(),c.enabled&&y.addFocusBorder(c.margin,{stroke:c.style.color,strokeWidth:c.style.lineWidth,r:c.style.borderRadius}))}function E(y,c){var g=this.options.accessibility.keyboardNavigation.focusBorder,m=c||y.element;m&&m.focus&&(m.hcEvents&&m.hcEvents.focusin||U(m,"focusin",function(){}),m.focus(),g.hideBrowserFocusOutline&&(m.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=y,this.renderFocusBorder()}function A(y,c){this.focusBorder&&this.removeFocusBorder();var g=this.getBBox(),m=$(y,3),u=this.parentGroup,v=this.scaleX||u&&u.scaleX,w=this.scaleY||u&&u.scaleY,M=(v?!w:w)?Math.abs(v||w||1):(Math.abs(v||1)+Math.abs(w||1))/2;g.x+=this.translateX?this.translateX:0,g.y+=this.translateY?this.translateY:0;var C,p,f,r=g.x-m,l=g.y-m,t=g.width+2*m,i=g.height+2*m,o=this instanceof G;if(this.element.nodeName==="text"||o){var e=!!this.rotation,a=o?{x:e?1:0,y:0}:(p=0,f=0,(C=this).attr("text-anchor")==="middle"?p=f=.5:C.rotation?p=.25:f=.75,{x:p,y:f}),s=+this.attr("x"),h=+this.attr("y");if(isNaN(s)||(r=s-g.width*a.x-m),isNaN(h)||(l=h-g.height*a.y-m),o&&e){var b=t;t=i,i=b,isNaN(s)||(r=s-g.height*a.x-m),isNaN(h)||(l=h-g.width*a.y-m)}}this.focusBorder=this.renderer.rect(r,l,t,i,parseInt((c&&c.r||0).toString(),10)/M).addClass("highcharts-focus-border").attr({zIndex:99}).add(u),this.renderer.styledMode||this.focusBorder.attr({stroke:c&&c.stroke,"stroke-width":(c&&c.strokeWidth||0)/M}),function(k){for(var O=[],d=1;d<arguments.length;d++)O[d-1]=arguments[d];k.focusBorderUpdateHooks||(k.focusBorderUpdateHooks={},F.forEach(function(x){var T=x+"Setter",N=k[T]||k._defaultSetter;k.focusBorderUpdateHooks[T]=N,k[T]=function(){var z=N.apply(k,arguments);return k.addFocusBorder.apply(k,O),z}}))}(this,y,c),function(k){if(!k.focusBorderDestroyHook){var O=k.destroy;k.destroy=function(){return k.focusBorder&&k.focusBorder.destroy&&k.focusBorder.destroy(),O.apply(k,arguments)},k.focusBorderDestroyHook=O}}(this)}function P(){var y;(function(c){c.focusBorderUpdateHooks&&(Object.keys(c.focusBorderUpdateHooks).forEach(function(g){var m=c.focusBorderUpdateHooks[g];m===c._defaultSetter?delete c[g]:c[g]=m}),delete c.focusBorderUpdateHooks)})(this),(y=this).focusBorderDestroyHook&&(y.destroy=y.focusBorderDestroyHook,delete y.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}Z.compose=function(y,c){if(V.indexOf(y)===-1){V.push(y);var g=y.prototype;g.renderFocusBorder=I,g.setFocusToElement=E}if(V.indexOf(c)===-1){V.push(c);var m=c.prototype;m.addFocusBorder=A,m.removeFocusBorder=P}}}(H||(H={})),H}),et(_,"Accessibility/Utils/Announcer.js",[_["Core/Renderer/HTML/AST.js"],_["Accessibility/Utils/DOMElementProvider.js"],_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=H.doc,V=U.addClass,F=U.visuallyHideElement,I=$.attr;return function(){function E(A,P){this.chart=A,this.domElementProvider=new B,this.announceRegion=this.addAnnounceRegion(P)}return E.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},E.prototype.announce=function(A){var P=this;G.setElementHTML(this.announceRegion,A),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(function(){P.announceRegion.innerHTML=G.emptyHTML,delete P.clearAnnouncementRegionTimer},1e3)},E.prototype.addAnnounceRegion=function(A){var P=this.chart.announcerContainer||this.createAnnouncerContainer(),y=this.domElementProvider.createElement("div");return I(y,{"aria-hidden":!1,"aria-live":A}),this.chart.styledMode?V(y,"highcharts-visually-hidden"):F(y),P.appendChild(y),y},E.prototype.createAnnouncerContainer=function(){var A=this.chart,P=Z.createElement("div");return I(P,{"aria-hidden":!1,class:"highcharts-announcer-container"}),P.style.position="relative",A.renderTo.insertBefore(P,A.renderTo.firstChild),A.announcerContainer=P,P},E}()}),et(_,"Accessibility/Components/AnnotationsA11y.js",[_["Accessibility/Utils/HTMLUtilities.js"]],function(G){var B=G.escapeStringForHTML,H=G.stripHTMLTagsFromString;function U(F){return(F.annotations||[]).reduce(function(I,E){return E.options&&E.options.visible!==!1&&(I=I.concat(E.labels)),I},[])}function $(F){return F.options&&F.options.accessibility&&F.options.accessibility.description||F.graphic&&F.graphic.text&&F.graphic.text.textStr||""}function Z(F){var I=F.options&&F.options.accessibility&&F.options.accessibility.description;if(I)return I;var E=F.chart,A=$(F),P=F.points.filter(function(m){return!!m.graphic}).map(function(m){var u=m.accessibility&&m.accessibility.valueDescription||function(w){return w.graphic&&w.graphic.element&&w.graphic.element.getAttribute("aria-label")||""}(m),v=m&&m.series.name||"";return(v?v+", ":"")+"data point "+u}).filter(function(m){return!!m}),y=P.length,c="accessibility.screenReaderSection.annotations.description"+(y>1?"MultiplePoints":y?"SinglePoint":"NoPoints"),g={annotationText:A,annotation:F,numPoints:y,annotationPoint:P[0],additionalAnnotationPoints:P.slice(1)};return E.langFormat(c,g)}function V(F){return U(F).map(function(I){var E=B(H(Z(I)));return E?"<li>".concat(E,"</li>"):""})}return{getAnnotationsInfoHTML:function(F){var I=F.annotations;if(!I||!I.length)return"";var E=V(F);return'<ul style="list-style-type: none">'.concat(E.join(" "),"</ul>")},getAnnotationLabelDescription:Z,getAnnotationListItems:V,getPointAnnotationTexts:function(F){var I=U(F.series.chart).filter(function(E){return E.points.indexOf(F)>-1});return I.length?I.map(function(E){return"".concat($(E))}):[]}}}),et(_,"Accessibility/Components/InfoRegionsComponent.js",[_["Accessibility/A11yI18n.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/Announcer.js"],_["Accessibility/Components/AnnotationsA11y.js"],_["Core/Renderer/HTML/AST.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I,E){var A,P=this&&this.__extends||(A=function(e,a){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,h){s.__proto__=h}||function(s,h){for(var b in h)h.hasOwnProperty(b)&&(s[b]=h[b])},A(e,a)},function(e,a){function s(){this.constructor=e}A(e,a),e.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}),y=U.getAnnotationsInfoHTML,c=Z.getAxisDescription,g=Z.getAxisRangeDescription,m=Z.getChartTitle,u=Z.unhideChartElementFromAT,v=V.format,w=F.doc,M=I.addClass,C=I.getElement,p=I.getHeadingTagNameForElement,f=I.stripHTMLTagsFromString,r=I.visuallyHideElement,l=E.attr,t=E.pick;function i(e){return e.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")}var o=function(e){function a(){var s=e!==null&&e.apply(this,arguments)||this;return s.announcer=void 0,s.screenReaderSections={},s}return P(a,e),a.prototype.init=function(){var s=this.chart,h=this;this.initRegionsDefinitions(),this.addEvent(s,"aftergetTableAST",function(b){h.onDataTableCreated(b)}),this.addEvent(s,"afterViewData",function(b){b.wasHidden&&(h.dataTableDiv=b.element,setTimeout(function(){h.focusDataTable()},300))}),this.announcer=new H(s,"assertive")},a.prototype.initRegionsDefinitions=function(){var s=this;this.screenReaderSections={before:{element:null,buildContent:function(h){var b=h.options.accessibility.screenReaderSection.beforeChartFormatter;return b?b(h):s.defaultBeforeChartFormatter(h)},insertIntoDOM:function(h,b){b.renderTo.insertBefore(h,b.renderTo.firstChild)},afterInserted:function(){s.sonifyButtonId!==void 0&&s.initSonifyButton(s.sonifyButtonId),s.dataTableButtonId!==void 0&&s.initDataTableButton(s.dataTableButtonId)}},after:{element:null,buildContent:function(h){var b=h.options.accessibility.screenReaderSection.afterChartFormatter;return b?b(h):s.defaultAfterChartFormatter()},insertIntoDOM:function(h,b){b.renderTo.insertBefore(h,b.container.nextSibling)},afterInserted:function(){s.chart.accessibility&&s.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},a.prototype.onChartRender=function(){var s=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(h){s.updateScreenReaderSection(h)})},a.prototype.getLinkedDescriptionElement=function(){var s=this.chart.options.accessibility.linkedDescription;if(s){if(typeof s!="string")return s;var h=v(s,this.chart),b=w.querySelectorAll(h);return b.length===1?b[0]:void 0}},a.prototype.setLinkedDescriptionAttrs=function(){var s=this.linkedDescriptionElement;s&&(s.setAttribute("aria-hidden","true"),M(s,"highcharts-linked-description"))},a.prototype.updateScreenReaderSection=function(s){var h=this.chart,b=this.screenReaderSections[s],k=b.buildContent(h),O=b.element=b.element||this.createElement("div"),d=O.firstChild||this.createElement("div");k?(this.setScreenReaderSectionAttribs(O,s),$.setElementHTML(d,k),O.appendChild(d),b.insertIntoDOM(O,h),h.styledMode?M(d,"highcharts-visually-hidden"):r(d),u(h,d),b.afterInserted&&b.afterInserted()):(O.parentNode&&O.parentNode.removeChild(O),b.element=null)},a.prototype.setScreenReaderSectionAttribs=function(s,h){var b=this.chart,k=b.langFormat("accessibility.screenReaderSection."+h+"RegionLabel",{chart:b,chartTitle:m(b)}),O="highcharts-screen-reader-region-".concat(h,"-").concat(b.index);l(s,{id:O,"aria-label":k||void 0}),s.style.position="relative",k&&s.setAttribute("role",b.options.accessibility.landmarkVerbosity==="all"?"region":"group")},a.prototype.defaultBeforeChartFormatter=function(){var s=this.chart,h=s.options.accessibility.screenReaderSection.beforeChartFormat;if(!h)return"";var b=this.getAxesDescription(),k=s.sonify&&s.options.sonification&&s.options.sonification.enabled,O="highcharts-a11y-sonify-data-btn-"+s.index,d="hc-linkto-highcharts-data-table-"+s.index,x=y(s),T=s.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:s}),N={headingTagName:p(s.renderTo),chartTitle:m(s),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:b.xAxis,yAxisDescription:b.yAxis,playAsSoundButton:k?this.getSonifyButtonText(O):"",viewTableButton:s.getCSV?this.getDataTableButtonText(d):"",annotationsTitle:x?T:"",annotationsList:x},z=G.i18nFormat(h,N,s);return this.dataTableButtonId=d,this.sonifyButtonId=O,i(z)},a.prototype.defaultAfterChartFormatter=function(){var s=this.chart,h=s.options.accessibility.screenReaderSection.afterChartFormat;if(!h)return"";var b={endOfChartMarker:this.getEndOfChartMarkerText()};return i(G.i18nFormat(h,b,s))},a.prototype.getLinkedDescription=function(){var s=this.linkedDescriptionElement,h=s&&s.innerHTML||"";return f(h)},a.prototype.getLongdescText=function(){var s=this.chart.options,h=s.caption,b=h&&h.text,k=this.getLinkedDescription();return s.accessibility.description||k||b||""},a.prototype.getTypeDescriptionText=function(){var s=this.chart;return s.types?s.options.accessibility.typeDescription||function(h,b){var k=b[0],O=h.series&&h.series[0]||{},d=h.mapView&&h.mapView.geoMap&&h.mapView.geoMap.title,x={numSeries:h.series.length,numPoints:O.points&&O.points.length,chart:h,mapTitle:d};return k?k==="map"?function(T,N){return N.mapTitle?T.langFormat("accessibility.chartTypes.mapTypeDescription",N):T.langFormat("accessibility.chartTypes.unknownMap",N)}(h,x):h.types.length>1?function(T,N){return T.langFormat("accessibility.chartTypes.combinationChart",N)}(h,x):function(T,N,z){var L=N[0],D=T.langFormat("accessibility.seriesTypeDescriptions."+L,z),j=T.series&&T.series.length<2?"Single":"Multiple";return(T.langFormat("accessibility.chartTypes."+L+j,z)||T.langFormat("accessibility.chartTypes.default"+j,z))+(D?" "+D:"")}(h,b,x):function(T,N){return T.langFormat("accessibility.chartTypes.emptyChart",N)}(h,x)}(s,s.types):""},a.prototype.getDataTableButtonText=function(s){var h=this.chart;return'<button id="'+s+'">'+h.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:h,chartTitle:m(h)})+"</button>"},a.prototype.getSonifyButtonText=function(s){var h=this.chart;return h.options.sonification&&h.options.sonification.enabled===!1?"":'<button id="'+s+'">'+h.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:h,chartTitle:m(h)})+"</button>"},a.prototype.getSubtitleText=function(){var s=this.chart.options.subtitle;return f(s&&s.text||"")},a.prototype.getEndOfChartMarkerText=function(){var s=this.chart,h=s.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:s});return'<div id="highcharts-end-of-chart-marker-'+s.index+'">'+h+"</div>"},a.prototype.onDataTableCreated=function(s){var h=this.chart;if(h.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var b=s.tree.attributes||{};b.tabindex=-1,b.summary=function(k){return k.langFormat("accessibility.table.tableSummary",{chart:k})}(h),s.tree.attributes=b}},a.prototype.focusDataTable=function(){var s=this.dataTableDiv,h=s&&s.getElementsByTagName("table")[0];h&&h.focus&&h.focus()},a.prototype.initSonifyButton=function(s){var h=this,b=this.sonifyButton=C(s),k=this.chart,O=function(d){b&&(b.setAttribute("aria-hidden","true"),b.setAttribute("aria-label","")),d.preventDefault(),d.stopPropagation();var x=k.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:k});h.announcer.announce(x),setTimeout(function(){b&&(b.removeAttribute("aria-hidden"),b.removeAttribute("aria-label")),k.sonify&&k.sonify()},1e3)};b&&k&&(b.setAttribute("tabindex",-1),b.onclick=function(d){(k.options.accessibility&&k.options.accessibility.screenReaderSection.onPlayAsSoundClick||O).call(this,d,k)})},a.prototype.initDataTableButton=function(s){var h=this.viewDataTableButton=C(s),b=this.chart,k=s.replace("hc-linkto-","");h&&(l(h,{tabindex:-1,"aria-expanded":!!C(k)}),h.onclick=b.options.accessibility.screenReaderSection.onViewDataTableClick||function(){b.viewData()})},a.prototype.getAxesDescription=function(){var s=this.chart,h=function(T,N){var z=s[T];return z.length>1||z[0]&&t(z[0].options.accessibility&&z[0].options.accessibility.enabled,N)},b=!!s.types&&s.types.indexOf("map")<0&&s.types.indexOf("treemap")<0&&s.types.indexOf("tilemap")<0,k=!!s.hasCartesianSeries,O=h("xAxis",!s.angular&&k&&b),d=h("yAxis",k&&b),x={};return O&&(x.xAxis=this.getAxisDescriptionText("xAxis")),d&&(x.yAxis=this.getAxisDescriptionText("yAxis")),x},a.prototype.getAxisDescriptionText=function(s){var h=this.chart,b=h[s];return h.langFormat("accessibility.axis."+s+"Description"+(b.length>1?"Plural":"Singular"),{chart:h,names:b.map(function(k){return c(k)}),ranges:b.map(function(k){return g(k)}),numAxes:b.length})},a.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},a}(B);return o}),et(_,"Accessibility/Components/MenuComponent.js",[_["Core/Chart/Chart.js"],_["Core/Utilities.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,H,U,$,Z){var V,F=this&&this.__extends||(V=function(g,m){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var w in v)v.hasOwnProperty(w)&&(u[w]=v[w])},V(g,m)},function(g,m){function u(){this.constructor=g}V(g,m),g.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}),I=B.attr,E=$.getChartTitle,A=$.unhideChartElementFromAT,P=Z.getFakeMouseEvent;function y(g){return g.exportSVGElements&&g.exportSVGElements[0]}var c=function(g){function m(){return g!==null&&g.apply(this,arguments)||this}return F(m,g),m.prototype.init=function(){var u=this.chart,v=this;this.addEvent(u,"exportMenuShown",function(){v.onMenuShown()}),this.addEvent(u,"exportMenuHidden",function(){v.onMenuHidden()}),this.createProxyGroup()},m.prototype.onMenuHidden=function(){var u=this.chart.exportContextMenu;u&&u.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},m.prototype.onMenuShown=function(){var u=this.chart,v=u.exportContextMenu;v&&(this.addAccessibleContextMenuAttribs(),A(u,v)),this.setExportButtonExpandedState("true")},m.prototype.setExportButtonExpandedState=function(u){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",u)},m.prototype.onChartRender=function(){var u=this.chart,v=u.focusElement,w=u.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&v&&v===u.exportingGroup&&(v.focusBorder?u.setFocusToElement(v,this.exportButtonProxy.buttonElement):w&&w.keyboardNavigation.tabindexContainer.focus())},m.prototype.proxyMenuButton=function(){var u=this.chart,v=this.proxyProvider,w=y(u);(function(M){var C=M.options.exporting,p=y(M);return!!(C&&C.enabled!==!1&&C.accessibility&&C.accessibility.enabled&&p&&p.element)})(u)&&w&&(this.exportButtonProxy=v.addProxyElement("chartMenu",{click:w},{"aria-label":u.langFormat("accessibility.exporting.menuButtonLabel",{chart:u,chartTitle:E(u)}),"aria-expanded":!1,title:u.options.lang.contextButtonTitle||null}))},m.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")},m.prototype.addAccessibleContextMenuAttribs=function(){var u=this.chart,v=u.exportDivElements;if(v&&v.length){v.forEach(function(M){M&&(M.tagName!=="LI"||M.children&&M.children.length?M.setAttribute("aria-hidden","true"):M.setAttribute("tabindex",-1))});var w=v[0]&&v[0].parentNode;w&&I(w,{"aria-hidden":void 0,"aria-label":u.langFormat("accessibility.exporting.chartMenuLabel",{chart:u}),role:"list"})}},m.prototype.getKeyboardNavigation=function(){var u=this.keyCodes,v=this.chart,w=this;return new U(v,{keyCodeMap:[[[u.left,u.up],function(){return w.onKbdPrevious(this)}],[[u.right,u.down],function(){return w.onKbdNext(this)}],[[u.enter,u.space],function(){return w.onKbdClick(this)}]],validate:function(){return!!v.exporting&&v.options.exporting.enabled!==!1&&v.options.exporting.accessibility.enabled!==!1},init:function(){var M=w.exportButtonProxy,C=w.chart.exportingGroup;M&&C&&v.setFocusToElement(C,M.buttonElement)},terminate:function(){v.hideExportMenu()}})},m.prototype.onKbdPrevious=function(u){for(var v=this.chart,w=v.options.accessibility,M=u.response,C=v.highlightedExportItemIx||0;C--;)if(v.highlightExportItem(C))return M.success;return w.keyboardNavigation.wrapAround?(v.highlightLastExportItem(),M.success):M.prev},m.prototype.onKbdNext=function(u){for(var v=this.chart,w=v.options.accessibility,M=u.response,C=(v.highlightedExportItemIx||0)+1;C<v.exportDivElements.length;++C)if(v.highlightExportItem(C))return M.success;return w.keyboardNavigation.wrapAround?(v.highlightExportItem(0),M.success):M.next},m.prototype.onKbdClick=function(u){var v=this.chart,w=v.exportDivElements[v.highlightedExportItemIx],M=y(v).element;return v.openMenu?this.fakeClickEvent(w):(this.fakeClickEvent(M),v.highlightExportItem(0)),u.response.success},m}(H);return function(g){var m=[];function u(){var C=y(this);if(C){var p=C.element;p.onclick&&p.onclick(P("click"))}}function v(){var C=this,p=C.exportDivElements;p&&C.exportContextMenu&&C.openMenu&&(p.forEach(function(f){f&&f.className==="highcharts-menu-item"&&f.onmouseout&&f.onmouseout(P("mouseout"))}),C.highlightedExportItemIx=0,C.exportContextMenu.hideMenu(),C.container.focus())}function w(C){var p=this.exportDivElements&&this.exportDivElements[C],f=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(p&&p.tagName==="LI"&&(!p.children||!p.children.length)){var r=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return p.focus&&r&&p.focus(),f&&f.onmouseout&&f.onmouseout(P("mouseout")),p.onmouseover&&p.onmouseover(P("mouseover")),this.highlightedExportItemIx=C,!0}return!1}function M(){var C=this;if(C.exportDivElements){for(var p=C.exportDivElements.length;p--;)if(C.highlightExportItem(p))return!0}return!1}g.compose=function(C){if(m.indexOf(C)===-1){m.push(C);var p=G.prototype;p.hideExportMenu=v,p.highlightExportItem=w,p.highlightLastExportItem=M,p.showExportMenu=u}}}(c||(c={})),c}),et(_,"Accessibility/KeyboardNavigation.js",[_["Core/Globals.js"],_["Accessibility/Components/MenuComponent.js"],_["Core/Utilities.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,H,U,$){var Z=G.doc,V=G.win,F=H.addEvent,I=H.fireEvent,E=$.getElement,A=$.simulatedEventTarget,P=function(){function y(c,g){this.chart=void 0,this.components=void 0,this.currentModuleIx=NaN,this.eventProvider=void 0,this.exitAnchor=void 0,this.modules=[],this.tabindexContainer=void 0,this.init(c,g)}return y.prototype.init=function(c,g){var m=this,u=this.eventProvider=new U;this.chart=c,this.components=g,this.modules=[],this.currentModuleIx=0,this.update(),u.addEvent(this.tabindexContainer,"keydown",function(v){return m.onKeydown(v)}),u.addEvent(this.tabindexContainer,"focus",function(v){return m.onFocus(v)}),["mouseup","touchend"].forEach(function(v){return u.addEvent(Z,v,function(w){return m.onMouseUp(w)})}),["mousedown","touchstart"].forEach(function(v){return u.addEvent(c.renderTo,v,function(){m.isClickingChart=!0})}),u.addEvent(c.renderTo,"mouseover",function(){m.pointerIsOverChart=!0}),u.addEvent(c.renderTo,"mouseout",function(){m.pointerIsOverChart=!1})},y.prototype.update=function(c){var g=this.chart.options.accessibility,m=g&&g.keyboardNavigation,u=this.components;this.updateContainerTabindex(),m&&m.enabled&&c&&c.length?(this.modules=c.reduce(function(v,w){var M=u[w].getKeyboardNavigation();return v.concat(M)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},y.prototype.updateExitAnchor=function(){var c="highcharts-end-of-chart-marker-".concat(this.chart.index),g=E(c);this.removeExitAnchor(),g?(this.makeElementAnExitAnchor(g),this.exitAnchor=g):this.createExitAnchor()},y.prototype.move=function(c){var g=this.modules&&this.modules[this.currentModuleIx];g&&g.terminate&&g.terminate(c),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=c;var m=this.modules&&this.modules[this.currentModuleIx];if(m){if(m.validate&&!m.validate())return this.move(c);if(m.init)return m.init(c),!0}return this.currentModuleIx=0,this.exiting=!0,c>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1},y.prototype.onFocus=function(c){var g=this.chart,m=c.relatedTarget&&g.container.contains(c.relatedTarget);if(!(this.exiting||this.tabbingInBackwards||this.isClickingChart||m)){var u=this.getFirstValidModuleIx();u!==null&&(this.currentModuleIx=u,this.modules[u].init(1))}this.exiting=!1},y.prototype.onMouseUp=function(c){if(delete this.isClickingChart,!this.keyboardReset&&c.relatedTarget!==A){var g=this.chart;if(!this.pointerIsOverChart){var m=this.modules&&this.modules[this.currentModuleIx||0];m&&m.terminate&&m.terminate(),this.currentModuleIx=0}g.focusElement&&(g.focusElement.removeFocusBorder(),delete g.focusElement),this.keyboardReset=!0}},y.prototype.onKeydown=function(c){var g,m=c||V.event,u=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];if(this.keyboardReset=!1,this.exiting=!1,u){var v=u.run(m);v===u.response.success?g=!0:v===u.response.prev?g=this.move(-1):v===u.response.next&&(g=this.move(1)),g&&(m.preventDefault(),m.stopPropagation())}},y.prototype.updateContainerTabindex=function(){var c,g=this.chart.options.accessibility,m=g&&g.keyboardNavigation,u=!(m&&m.enabled===!1),v=this.chart,w=v.container;v.renderTo.hasAttribute("tabindex")?(w.removeAttribute("tabindex"),c=v.renderTo):c=w,this.tabindexContainer=c;var M=c.getAttribute("tabindex");u&&!M?c.setAttribute("tabindex","0"):u||v.container.removeAttribute("tabindex")},y.prototype.createExitAnchor=function(){var c=this.chart,g=this.exitAnchor=Z.createElement("div");c.renderTo.appendChild(g),this.makeElementAnExitAnchor(g)},y.prototype.makeElementAnExitAnchor=function(c){var g=this.tabindexContainer.getAttribute("tabindex")||0;c.setAttribute("class","highcharts-exit-anchor"),c.setAttribute("tabindex",g),c.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(c)},y.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},y.prototype.addExitAnchorEventsToEl=function(c){var g=this.chart,m=this;this.eventProvider.addEvent(c,"focus",function(u){var v=u||V.event,w=!(v.relatedTarget&&g.container.contains(v.relatedTarget)||m.exiting);if(g.focusElement&&delete g.focusElement,w){if(m.tabbingInBackwards=!0,m.tabindexContainer.focus(),delete m.tabbingInBackwards,v.preventDefault(),m.modules&&m.modules.length){m.currentModuleIx=m.modules.length-1;var M=m.modules[m.currentModuleIx];M&&M.validate&&!M.validate()?m.move(-1):M&&M.init(-1)}}else m.exiting=!1})},y.prototype.getFirstValidModuleIx=function(){for(var c=this.modules.length,g=0;g<c;++g){var m=this.modules[g];if(!m.validate||m.validate())return g}return null},y.prototype.destroy=function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")},y}();return function(y){var c=[];function g(){var u=this;I(this,"dismissPopupContent",{},function(){u.tooltip&&u.tooltip.hide(0),u.hideExportMenu()})}function m(u){(u.which||u.keyCode)===27&&G.charts&&G.charts.forEach(function(v){v&&v.dismissPopupContent&&v.dismissPopupContent()})}y.compose=function(u){return B.compose(u),c.indexOf(u)===-1&&(c.push(u),u.prototype.dismissPopupContent=g),c.indexOf(Z)===-1&&(c.push(Z),F(Z,"keydown",m)),u}}(P||(P={})),P}),et(_,"Accessibility/Components/LegendComponent.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Globals.js"],_["Core/Legend/Legend.js"],_["Core/Utilities.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,H,U,$,Z,V,F){var I,E=this&&this.__extends||(I=function(l,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var e in o)o.hasOwnProperty(e)&&(i[e]=o[e])},I(l,t)},function(l,t){function i(){this.constructor=l}I(l,t),l.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),A=G.animObject,P=B.doc,y=U.addEvent,c=U.fireEvent,g=U.isNumber,m=U.pick,u=U.syncTimeout,v=V.getChartTitle,w=F.stripHTMLTagsFromString,M=F.addClass,C=F.removeClass;function p(l){var t=l.legend&&l.legend.allItems,i=l.options.legend.accessibility||{},o=l.colorAxis&&l.colorAxis.some(function(e){return!e.dataClasses||!e.dataClasses.length});return!(!t||!t.length||o||i.enabled===!1)}function f(l,t){var i=t.legendItem||{};t.setState(l?"hover":"",!0);for(var o=0,e=["group","label","symbol"];o<e.length;o++){var a=i[e[o]],s=a&&a.element||a;s&&c(s,l?"mouseover":"mouseout")}}var r=function(l){function t(){var i=l!==null&&l.apply(this,arguments)||this;return i.highlightedLegendItemIx=NaN,i.proxyGroup=null,i}return E(t,l),t.prototype.init=function(){var i=this;this.recreateProxies(),this.addEvent(H,"afterScroll",function(){this.chart===i.chart&&(i.proxyProvider.updateGroupProxyElementPositions("legend"),i.updateLegendItemProxyVisibility(),i.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(i.highlightedLegendItemIx))}),this.addEvent(H,"afterPositionItem",function(o){this.chart===i.chart&&this.chart.renderer&&i.updateProxyPositionForItem(o.item)}),this.addEvent(H,"afterRender",function(){this.chart===i.chart&&this.chart.renderer&&i.recreateProxies()&&u(function(){return i.proxyProvider.updateGroupProxyElementPositions("legend")},A(m(this.chart.renderer.globalAnimation,!0)).duration)})},t.prototype.updateLegendItemProxyVisibility=function(){var i,o=this.chart,e=o.legend,a=e.allItems||[],s=e.currentPage||1,h=e.clipHeight||0;a.forEach(function(b){if(b.a11yProxyElement){var k=e.pages&&e.pages.length,O=b.a11yProxyElement.element,d=!1;if(i=b.legendItem||{},k){var x=i.pageIx||0;d=(i.y||0)+(i.label?Math.round(i.label.getBBox().height):0)-e.pages[x]>h||x!==s-1}d?o.styledMode?M(O,"highcharts-a11y-invisible"):O.style.visibility="hidden":(C(O,"highcharts-a11y-invisible"),O.style.visibility="")}})},t.prototype.onChartRender=function(){p(this.chart)||this.removeProxies()},t.prototype.highlightAdjacentLegendPage=function(i){var o=this.chart,e=o.legend,a=(e.currentPage||1)+i,s=e.pages||[];if(a>0&&a<=s.length)for(var h=0,b=0,k=e.allItems;b<k.length;b++)((k[b].legendItem||{}).pageIx||0)+1===a&&o.highlightLegendItem(h)&&(this.highlightedLegendItemIx=h),++h},t.prototype.updateProxyPositionForItem=function(i){i.a11yProxyElement&&i.a11yProxyElement.refreshPosition()},t.prototype.recreateProxies=function(){var i=P.activeElement,o=this.proxyGroup,e=i&&o&&o.contains(i);return this.removeProxies(),!!p(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),e&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)},t.prototype.removeProxies=function(){this.proxyProvider.removeGroup("legend")},t.prototype.updateLegendTitle=function(){var i=this.chart,o=w((i.legend&&i.legend.options.title&&i.legend.options.title.text||"").replace(/<br ?\/?>/g," ")),e=i.langFormat("accessibility.legend.legendLabel"+(o?"":"NoTitle"),{chart:i,legendTitle:o,chartTitle:v(i)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":e})},t.prototype.addLegendProxyGroup=function(){var i=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:i})},t.prototype.proxyLegendItems=function(){var i,o=this;((this.chart.legend||{}).allItems||[]).forEach(function(e){(i=e.legendItem||{}).label&&i.label.element&&o.proxyLegendItem(e)})},t.prototype.proxyLegendItem=function(i){var o=i.legendItem||{};if(o.label&&o.group){var e=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:w(i.name),item:i}),a={tabindex:-1,"aria-pressed":i.visible,"aria-label":e},s=o.group.div?o.label:o.group;i.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:o.label,visual:s.element},a)}},t.prototype.getKeyboardNavigation=function(){var i=this.keyCodes,o=this,e=this.chart;return new Z(e,{keyCodeMap:[[[i.left,i.right,i.up,i.down],function(a){return o.onKbdArrowKey(this,a)}],[[i.enter,i.space],function(){return o.onKbdClick(this)}],[[i.pageDown,i.pageUp],function(a){var s=a===i.pageDown?1:-1;return o.highlightAdjacentLegendPage(s),this.response.success}]],validate:function(){return o.shouldHaveLegendNavigation()},init:function(){e.highlightLegendItem(0),o.highlightedLegendItemIx=0},terminate:function(){o.highlightedLegendItemIx=-1,e.legend.allItems.forEach(function(a){return f(!1,a)})}})},t.prototype.onKbdArrowKey=function(i,o){var e=this.keyCodes,a=i.response,s=this.chart,h=s.options.accessibility,b=s.legend.allItems.length,k=o===e.left||o===e.up?-1:1;return s.highlightLegendItem(this.highlightedLegendItemIx+k)?(this.highlightedLegendItemIx+=k,a.success):(b>1&&h.keyboardNavigation.wrapAround&&i.init(k),a.success)},t.prototype.onKbdClick=function(i){var o=this.chart.legend.allItems[this.highlightedLegendItemIx];return o&&o.a11yProxyElement&&o.a11yProxyElement.click(),i.response.success},t.prototype.shouldHaveLegendNavigation=function(){if(!p(this.chart))return!1;var i=this.chart,o=(i.options.legend||{}).accessibility||{};return!!(i.legend.display&&o.keyboardNavigation&&o.keyboardNavigation.enabled)},t}($);return function(l){var t=[];function i(e){var a,s,h,b,k=this.legend.allItems,O=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,d=k[e],x=d.legendItem||{};if(d){g(O)&&k[O]&&f(!1,k[O]),s=e,h=((a=this.legend).allItems[s].legendItem||{}).pageIx,b=a.currentPage,h!==void 0&&h+1!==b&&a.scroll(1+h-b);var T=x.label,N=d.a11yProxyElement&&d.a11yProxyElement.buttonElement;return T&&T.element&&N&&this.setFocusToElement(T,N),f(!0,d),!0}return!1}function o(e){var a=this.chart.options.accessibility,s=e.item;a.enabled&&s&&s.a11yProxyElement&&s.a11yProxyElement.buttonElement.setAttribute("aria-pressed",e.visible?"true":"false")}l.compose=function(e,a){t.indexOf(e)===-1&&(t.push(e),e.prototype.highlightLegendItem=i),t.indexOf(a)===-1&&(t.push(a),y(a,"afterColorizeItem",o))}}(r||(r={})),r}),et(_,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[_["Accessibility/Components/AnnotationsA11y.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Core/FormatUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=G.getPointAnnotationTexts,V=B.getAxisDescription,F=B.getSeriesFirstPointElement,I=B.getSeriesA11yElement,E=B.unhideChartElementFromAT,A=H.format,P=H.numberFormat,y=U.reverseChildNodes,c=U.stripHTMLTagsFromString,g=$.find,m=$.isNumber,u=$.pick,v=$.defined;function w(t){var i=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(i!==!1&&t.points&&t.points.length>=i)}function M(t,i){var o=t.series,e=o.chart,a=e.options.accessibility.point||{},s=o.options.accessibility&&o.options.accessibility.point||{},h=o.tooltipOptions||{},b=e.options.lang;return m(i)?P(i,s.valueDecimals||a.valueDecimals||h.valueDecimals||-1,b.decimalPoint,b.accessibility.thousandsSep||b.thousandsSep):i}function C(t,i){var o=t[i];return t.chart.langFormat("accessibility.series."+i+"Description",{name:V(o),series:t})}function p(t){var i=t.series,o=i.chart.options.accessibility.point||{},e=i.chart.options.accessibility&&i.chart.options.accessibility.point||{},a=i.tooltipOptions||{},s=e.valuePrefix||o.valuePrefix||a.valuePrefix||"",h=e.valueSuffix||o.valueSuffix||a.valueSuffix||"",b=M(t,t[t.value!==void 0?"value":"y"]);return t.isNull?i.chart.langFormat("accessibility.series.nullPointValue",{point:t}):i.pointArrayMap?function(k,O,d){var x=O||"",T=d||"";return k.series.pointArrayMap.reduce(function(N,z){return N+(N.length?", ":"")+function(L){var D=M(k,u(k[L],k.options[L]));return L+": "+x+D+T}(z)},"")}(t,s,h):s+b+h}function f(t){var i=t.series,o=i.chart.series.length>1||i.options.name,e=function(O){var d=O.series,x=d.chart,T=d.options.accessibility,N=T&&T.point&&T.point.valueDescriptionFormat||x.options.accessibility.point.valueDescriptionFormat,z=u(d.xAxis&&d.xAxis.options.accessibility&&d.xAxis.options.accessibility.enabled,!x.angular),L=z?function(j){var Y=function(tt){var Q=tt.series,nt=Q.chart,lt=Q.options.accessibility&&Q.options.accessibility.point||{},gt=nt.options.accessibility.point||{},mt=Q.xAxis&&Q.xAxis.dateTime;if(mt){var bt=mt.getXDateFormat(tt.x||0,nt.options.tooltip.dateTimeLabelFormats),yt=lt.dateFormatter&<.dateFormatter(tt)||gt.dateFormatter&>.dateFormatter(tt)||lt.dateFormat||gt.dateFormat||bt;return nt.time.dateFormat(yt,tt.x||0,void 0)}}(j),X=(j.series.xAxis||{}).categories&&v(j.category)&&(""+j.category).replace("<br/>"," "),W=v(j.id)&&(""+j.id).indexOf("highcharts-")<0,q="x, "+j.x;return j.name||Y||X||(W?j.id:q)}(O):"",D={point:O,index:v(O.index)?O.index+1:"",xDescription:L,value:p(O),separator:z?", ":""};return A(N,D,x)}(t),a=t.options&&t.options.accessibility&&t.options.accessibility.description,s=a?" "+a:"",h=o?" "+i.name+".":"",b=function(O){var d=O.series.chart,x=Z(O),T={point:O,annotations:x};return x.length?d.langFormat("accessibility.series.pointAnnotationsDescription",T):""}(t),k=b?" "+b:"";return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=e,e+s+h+k}function r(t){var i=function(a){var s=a.options.accessibility||{};return!w(a)&&!s.exposeAsGroupOnly}(t),o=function(a){var s=a.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!a.points||!(a.points.length<s.pointNavigationEnabledThreshold||s.pointNavigationEnabledThreshold===!1))}(t),e=t.chart.options.accessibility.point.describeNull;(i||o)&&t.points.forEach(function(a){var s=a.graphic&&a.graphic.element||function(b){var k=b.series,O=k&&k.chart,d=k&&k.is("sunburst"),x=b.isNull,T=O&&O.options.accessibility.point.describeNull;return x&&!d&&T}(a)&&function(b){var k=b.series,O=function(N){var z=N.index;return N.series&&N.series.data&&v(z)&&g(N.series.data,function(L){return!!(L&&L.index!==void 0&&L.index>z&&L.graphic&&L.graphic.element)})||null}(b),d=O&&O.graphic,x=d?d.parentGroup:k.graph||k.group,T=function(N,z){var L=N.series.chart.renderer.rect(z.x,z.y,1,1);return L.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),L}(b,O?{x:u(b.plotX,O.plotX,0),y:u(b.plotY,O.plotY,0)}:{x:u(b.plotX,0),y:u(b.plotY,0)});if(x&&x.element)return b.graphic=T,b.hasMockGraphic=!0,T.add(x),x.element.insertBefore(T.element,d?d.element:null),T.element}(a),h=a.options&&a.options.accessibility&&a.options.accessibility.enabled===!1;if(s){if(a.isNull&&!e)return void s.setAttribute("aria-hidden",!0);s.setAttribute("tabindex","-1"),t.chart.styledMode||(s.style.outline="none"),i&&!h?function(b,k){var O=b.series,d=O.chart.options.accessibility.point||{},x=O.options.accessibility&&O.options.accessibility.point||{},T=c(x.descriptionFormatter&&x.descriptionFormatter(b)||d.descriptionFormatter&&d.descriptionFormatter(b)||f(b));k.setAttribute("role","img"),k.setAttribute("aria-label",T)}(a,s):s.setAttribute("aria-hidden",!0)}})}function l(t){var i=t.chart,o=i.types||[],e=function(N){var z=(N.options.accessibility||{}).description;return z&&N.chart.langFormat("accessibility.series.description",{description:z,series:N})||""}(t),a=function(N){return i[N]&&i[N].length>1&&t[N]},s=t.index+1,h=C(t,"xAxis"),b=C(t,"yAxis"),k={seriesNumber:s,series:t,chart:i},O=o.length>1?"Combination":"",d=i.langFormat("accessibility.series.summary."+t.type+O,k)||i.langFormat("accessibility.series.summary.default"+O,k),x=(a("yAxis")?" "+b+".":"")+(a("xAxis")?" "+h+".":""),T=i.options.accessibility.series.descriptionFormat||"";return A(T,{seriesDescription:d,authorDescription:e?" "+e:"",axisDescription:x,series:t,chart:i,seriesNumber:s},void 0)}return{defaultPointDescriptionFormatter:f,defaultSeriesDescriptionFormatter:l,describeSeries:function(t){var i=t.chart,o=F(t),e=I(t),a=i.is3d&&i.is3d();e&&(e.lastChild!==o||a||y(e),r(t),E(i,e),function(s){var h=s.chart,b=h.options.chart,k=b.options3d&&b.options3d.enabled,O=h.series.length>1,d=h.options.accessibility.series.describeSingleSeries,x=(s.options.accessibility||{}).exposeAsGroupOnly;return!(k&&O)&&(O||d||x||w(s))}(t)?function(s,h){var b=s.options.accessibility||{},k=s.chart.options.accessibility,O=k.landmarkVerbosity;b.exposeAsGroupOnly?h.setAttribute("role","img"):O==="all"?h.setAttribute("role","region"):h.setAttribute("role","group"),h.setAttribute("tabindex","-1"),s.chart.styledMode||(h.style.outline="none"),h.setAttribute("aria-label",c(k.series.descriptionFormatter&&k.series.descriptionFormatter(s)||l(s)))}(t,e):e.removeAttribute("aria-label"))}}}),et(_,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/Announcer.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(G,B,H,U,$,Z){var V=B.addEvent,F=B.defined,I=U.getChartTitle,E=Z.defaultPointDescriptionFormatter,A=Z.defaultSeriesDescriptionFormatter;function P(c){return!!c.options.accessibility.announceNewData.enabled}var y=function(){function c(g){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=g}return c.prototype.init=function(){var g=this.chart,m=g.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new $,this.announcer=new H(g,m),this.addEventListeners()},c.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},c.prototype.addEventListeners=function(){var g=this,m=this.chart,u=this.eventProvider;u.addEvent(m,"afterApplyDrilldown",function(){g.lastAnnouncementTime=0}),u.addEvent(m,"afterAddSeries",function(v){g.onSeriesAdded(v.series)}),u.addEvent(m,"redraw",function(){g.announceDirtyData()})},c.prototype.onSeriesAdded=function(g){P(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[g.name+g.index]=g,this.dirty.newSeries=F(this.dirty.newSeries)?void 0:g)},c.prototype.announceDirtyData=function(){var g,m,u=this.chart,v=this;if(u.options.accessibility.announceNewData&&this.dirty.hasDirty){var w=this.dirty.newPoint;w&&(w=(m=(g=w).series.data.filter(function(M){return g.x===M.x&&g.y===M.y})).length===1?m[0]:g),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(M){return v.dirty.allSeries[M]}),this.dirty.newSeries,w),this.dirty={allSeries:{}}}},c.prototype.queueAnnouncement=function(g,m,u){var v,w,M,C=this,p=this.chart.options.accessibility.announceNewData;if(p.enabled){var f=+new Date,r=f-this.lastAnnouncementTime,l=Math.max(0,p.minAnnounceInterval-r),t=(v=this.queuedAnnouncement&&this.queuedAnnouncement.series,w=g,M=(v||[]).concat(w||[]).reduce(function(o,e){return o[e.name+e.index]=e,o},{}),Object.keys(M).map(function(o){return M[o]})),i=this.buildAnnouncementMessage(t,m,u);i&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:f,message:i,series:t},this.queuedAnnouncementTimer=setTimeout(function(){C&&C.announcer&&(C.lastAnnouncementTime=+new Date,C.announcer.announce(C.queuedAnnouncement.message),delete C.queuedAnnouncement,delete C.queuedAnnouncementTimer)},l))}},c.prototype.buildAnnouncementMessage=function(g,m,u){var v=this.chart,w=v.options.accessibility.announceNewData;if(w.announcementFormatter){var M=w.announcementFormatter(g,m,u);if(M!==!1)return M.length?M:null}var C=G.charts&&G.charts.length>1?"Multiple":"Single",p=m?"newSeriesAnnounce"+C:u?"newPointAnnounce"+C:"newDataAnnounce",f=I(v);return v.langFormat("accessibility.announceNewData."+p,{chartTitle:f,seriesDesc:m?A(m):null,pointDesc:u?E(u):null,point:u,series:m})},c}();return function(c){function g(u){var v=this.chart,w=this.newDataAnnouncer;w&&w.chart===v&&P(v)&&(w.dirty.newPoint=F(w.dirty.newPoint)?void 0:u.point)}function m(){var u=this.chart,v=this.newDataAnnouncer;v&&v.chart===u&&P(u)&&(v.dirty.hasDirty=!0,v.dirty.allSeries[this.name+this.index]=this)}c.composedClasses=[],c.compose=function(u){c.composedClasses.indexOf(u)===-1&&(c.composedClasses.push(u),V(u,"addPoint",g),V(u,"updatedData",m))}}(y||(y={})),y}),et(_,"Accessibility/ProxyElement.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"]],function(G,B,H,U,$){var Z=G.doc,V=B.attr,F=B.css,I=B.merge,E=U.fireEventOnWrappedOrUnwrappedElement,A=$.cloneMouseEvent,P=$.cloneTouchEvent,y=$.getFakeMouseEvent,c=$.removeElement;return function(){function g(m,u,v,w){this.chart=m,this.target=u,this.groupType=v;var M=v==="ul";this.eventProvider=new H;var C=M?Z.createElement("li"):null,p=this.buttonElement=Z.createElement("button");m.styledMode||this.hideButtonVisually(p),C?(M&&!m.styledMode&&(C.style.listStyle="none"),C.appendChild(p),this.element=C):this.element=p,this.updateTarget(u,w)}return g.prototype.click=function(){var m=this.getTargetPosition();m.x+=m.width/2,m.y+=m.height/2;var u=y("click",m);E(this.target.click,u)},g.prototype.updateTarget=function(m,u){this.target=m,this.updateCSSClassName();var v=u||{};Object.keys(v).forEach(function(w){v[w]===null&&delete v[w]}),V(this.buttonElement,I({"aria-label":this.getTargetAttr(m.click,"aria-label")},v)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToButton(this.buttonElement,m.click),this.refreshPosition()},g.prototype.refreshPosition=function(){var m=this.getTargetPosition();F(this.buttonElement,{width:(m.width||1)+"px",height:(m.height||1)+"px",left:(Math.round(m.x)||0)+"px",top:(Math.round(m.y)||0)+"px"})},g.prototype.remove=function(){this.eventProvider.removeAddedEvents(),c(this.element)},g.prototype.updateCSSClassName=function(){var m=function(C){return C.indexOf("highcharts-no-tooltip")>-1},u=this.chart.legend,v=u.group&&u.group.div,w=m(v&&v.className||""),M=m(this.getTargetAttr(this.target.click,"class")||"");this.buttonElement.className=w||M?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"},g.prototype.addProxyEventsToButton=function(m,u){var v=this;["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(function(w){var M=w.indexOf("touch")===0;v.eventProvider.addEvent(m,w,function(C){var p=M?P(C):A(C);u&&E(u,p),C.stopPropagation(),M||C.preventDefault()},{passive:!1})})},g.prototype.hideButtonVisually=function(m){F(m,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})},g.prototype.getTargetPosition=function(){var m=this.target.click,u=m.element?m.element:m,v=this.target.visual||u;if(this.chart.renderTo&&v&&v.getBoundingClientRect){var w=v.getBoundingClientRect(),M=this.chart.pointer.getChartPosition();return{x:(w.left-M.left)/M.scaleX,y:(w.top-M.top)/M.scaleY,width:w.right/M.scaleX-w.left/M.scaleX,height:w.bottom/M.scaleY-w.top/M.scaleY}}return{x:0,y:0,width:1,height:1}},g.prototype.getTargetAttr=function(m,u){return m.element?m.element.getAttribute(u):m.getAttribute(u)},g}()}),et(_,"Accessibility/ProxyProvider.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/DOMElementProvider.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/ProxyElement.js"]],function(G,B,H,U,$,Z){var V=G.doc,F=B.attr,I=B.css,E=H.unhideChartElementFromAT,A=$.removeElement,P=$.removeChildNodes;return function(){function y(c){this.chart=c,this.domElementProvider=new U,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return y.prototype.addProxyElement=function(c,g,m){var u=this.groups[c];if(!u)throw new Error("ProxyProvider.addProxyElement: Invalid group key "+c);var v=new Z(this.chart,g,u.type,m);return u.proxyContainerElement.appendChild(v.element),u.proxyElements.push(v),v},y.prototype.addGroup=function(c,g,m){var u=this.groups[c];if(u)return u.groupElement;var v,w=this.domElementProvider.createElement(g);return m&&m.role&&g!=="div"?(v=this.domElementProvider.createElement("div")).appendChild(w):v=w,v.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+c.replace(/\W/g,"-"),this.groups[c]={proxyContainerElement:w,groupElement:v,type:g,proxyElements:[]},F(v,m||{}),g==="ul"&&w.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(v),this.updateGroupOrder(this.groupOrder),v},y.prototype.updateGroupAttrs=function(c,g){var m=this.groups[c];if(!m)throw new Error("ProxyProvider.updateGroupAttrs: Invalid group key "+c);F(m.groupElement,g)},y.prototype.updateGroupOrder=function(c){var g=this;if(this.groupOrder=c.slice(),!this.isDOMOrderGroupOrder()){var m=c.indexOf("series"),u=m>-1?c.slice(0,m):c,v=m>-1?c.slice(m+1):[],w=V.activeElement;["before","after"].forEach(function(M){var C=g[M==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"],p=M==="before"?u:v;P(C),p.forEach(function(f){var r=g.groups[f];r&&C.appendChild(r.groupElement)})}),(this.beforeChartProxyPosContainer.contains(w)||this.afterChartProxyPosContainer.contains(w))&&w&&w.focus&&w.focus()}},y.prototype.clearGroup=function(c){var g=this.groups[c];if(!g)throw new Error("ProxyProvider.clearGroup: Invalid group key "+c);P(g.proxyContainerElement)},y.prototype.removeGroup=function(c){var g=this.groups[c];g&&(A(g.groupElement),delete this.groups[c])},y.prototype.update=function(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()},y.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))},y.prototype.updateGroupProxyElementPositions=function(c){var g=this.groups[c];g&&g.proxyElements.forEach(function(m){return m.refreshPosition()})},y.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},y.prototype.createProxyPosContainer=function(c){var g=this.domElementProvider.createElement("div");return g.setAttribute("aria-hidden","false"),g.className="highcharts-a11y-proxy-container"+(c?"-"+c:""),I(g,{top:"0",left:"0"}),this.chart.styledMode||(g.style.whiteSpace="nowrap",g.style.position="absolute"),g},y.prototype.getCurrentGroupOrderInDOM=function(){var c=this,g=function(w){for(var M=Object.keys(c.groups),C=M.length;C--;){var p=M[C],f=c.groups[p];if(f&&w===f.groupElement)return p}},m=function(w){for(var M=[],C=w.children,p=0;p<C.length;++p){var f=g(C[p]);f&&M.push(f)}return M},u=m(this.beforeChartProxyPosContainer),v=m(this.afterChartProxyPosContainer);return u.push("series"),u.concat(v)},y.prototype.isDOMOrderGroupOrder=function(){var c=this,g=this.getCurrentGroupOrderInDOM(),m=this.groupOrder.filter(function(v){return v==="series"||!!c.groups[v]}),u=g.length;if(u!==m.length)return!1;for(;u--;)if(g[u]!==m[u])return!1;return!0},y.prototype.updatePosContainerPositions=function(){var c=this.chart;if(!c.renderer.forExport){var g=c.renderer.box;c.container.insertBefore(this.afterChartProxyPosContainer,g.nextSibling),c.container.insertBefore(this.beforeChartProxyPosContainer,g),E(this.chart,this.afterChartProxyPosContainer),E(this.chart,this.beforeChartProxyPosContainer)}},y}()}),et(_,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}),et(_,"Stock/RangeSelector/RangeSelectorComposition.js",[_["Core/Defaults.js"],_["Stock/RangeSelector/RangeSelectorDefaults.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=G.defaultOptions,Z=G.setOptions,V=H.addEvent,F=H.defined,I=H.extend,E=H.find,A=H.isNumber,P=H.merge,y=H.pick,c=[],g=[];function m(){var r,l,t=this.range,i=t.type,o=this.max,e=this.chart.time,a=function(h,b){var k=i==="year"?"FullYear":"Month",O=new e.Date(h),d=e.get(k,O);return e.set(k,O,d+b),d===e.get(k,O)&&e.set("Date",O,0),O.getTime()-h};A(t)?(r=o-t,l=t):t&&(r=o+a(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var s=y(this.dataMin,Number.MIN_VALUE);return A(r)||(r=s),r<=s&&(r=s,l===void 0&&(l=a(r,t.count)),this.newMax=Math.min(r+l,y(this.dataMax,Number.MAX_VALUE))),A(o)?!A(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function u(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new U(this))}function v(){var r=this,l=r.axes,t=r.rangeSelector;if(t){A(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),l.forEach(function(o){o.updateNames(),o.setScale()}),r.getAxisMargins(),t.render();var i=t.options.verticalAlign;t.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0))}}function w(r){var l,t,i,o,e=r.rangeSelector,a=function(){e&&(l=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,A(l.min)&&e.render(l.min,l.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=P(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(c,function(s){return s[0]===r})||c.push([r,[V(r.xAxis[0],"afterSetExtremes",function(s){e&&e.render(s.min,s.max)}),V(r,"redraw",a)]]),a())}function M(){for(var r=0,l=c.length;r<l;++r){var t=c[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void c.splice(r,1)}}function C(){var r=this.rangeSelector;if(r){var l=r.getHeight();this.extraTopMargin&&(this.plotTop+=l),this.extraBottomMargin&&(this.marginBottom+=l)}}function p(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var l=r.options.verticalAlign;l==="bottom"?this.extraBottomMargin=!0:l!=="middle"&&(this.extraTopMargin=!0)}}function f(r){var l=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(l&&l.enabled&&!F(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new U(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){w(this);var e=l&&l.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(e==="bottom"?this.extraBottomMargin=!0:e!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===t&&this.extraTopMargin===i||(this.isDirtyBox=!0)}}return{compose:function(r,l,t){U=t,g.indexOf(r)===-1&&(g.push(r),r.prototype.minFromRange=m),g.indexOf(l)===-1&&(g.push(l),V(l,"afterGetContainer",u),V(l,"beforeRender",v),V(l,"destroy",M),V(l,"getMargins",C),V(l,"render",p),V(l,"update",f),l.prototype.callbacks.push(w)),g.indexOf(Z)===-1&&(I($,{rangeSelector:B.rangeSelector}),I($.lang,B.lang))}}}),et(_,"Stock/RangeSelector/RangeSelector.js",[_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Stock/RangeSelector/RangeSelectorComposition.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V=B.defaultOptions,F=Z.addEvent,I=Z.createElement,E=Z.css,A=Z.defined,P=Z.destroyObjectProperties,y=Z.discardElement,c=Z.extend,g=Z.fireEvent,m=Z.isNumber,u=Z.merge,v=Z.objectEach,w=Z.pad,M=Z.pick,C=Z.pInt,p=Z.splat,f=function(){function r(l){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=l,this.init(l)}return r.compose=function(l,t){U.compose(l,t,r)},r.prototype.clickButton=function(l,t){var i,o,e,a,s,h,b,k=this,O=k.chart,d=k.buttonOptions[l],x=O.xAxis[0],T=O.scroller&&O.scroller.getUnionExtremes()||x||{},N=d.type,z=d.dataGrouping,L=T.dataMin,D=T.dataMax,j=x&&Math.round(Math.min(x.max,M(D,x.max))),Y=d._range,X=!0;if(L!==null&&D!==null){if(O.fixedRange=Y,k.setSelected(l),z&&(this.forcedDataGrouping=!0,G.prototype.setDataGrouping.call(x||{chart:this.chart},z,!1),this.frozenStates=d.preserveDataGrouping),N==="month"||N==="year")x?(h={range:d,max:j,chart:O,dataMin:L,dataMax:D},i=x.minFromRange.call(h),m(h.newMax)&&(j=h.newMax),X=!1):Y=d;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,D),X=!1;else if(N==="ytd"){if(!x)return void(k.deferredYTDClick=l);D!==void 0&&L!==void 0||(L=Number.MAX_VALUE,D=Number.MIN_VALUE,O.series.forEach(function(W){var q=W.xData;q&&(L=Math.min(q[0],L),D=Math.max(q[q.length-1],D))}),t=!1),i=e=(b=k.getYTDExtremes(D,L,O.time.useUTC)).min,j=b.max}else N==="all"&&x&&(O.navigator&&O.navigator.baseSeries[0]&&(O.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=D);X&&d._offsetMin&&A(i)&&(i+=d._offsetMin),d._offsetMax&&A(j)&&(j+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=l+1),x?x.setExtremes(i,j,M(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}):(o=p(O.options.xAxis)[0],s=o.range,o.range=Y,a=o.min,o.min=e,F(O,"load",function(){o.range=s,o.min=a})),g(this,"afterBtnClick")}},r.prototype.setSelected=function(l){this.selected=this.options.selected=l},r.prototype.init=function(l){var t=this,i=l.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,a=function(){var s=t.minInput,h=t.maxInput;s&&s.blur&&g(s,"blur"),h&&h.blur&&g(h,"blur")};t.chart=l,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(F(l.container,"mousedown",a)),this.eventsToUnbind.push(F(l,"resize",a)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(F(l,"load",function(){l.xAxis&&l.xAxis[0]&&F(l.xAxis[0],"setExtremes",function(s){this.max-this.min!==l.fixedRange&&s.trigger!=="rangeSelectorButton"&&s.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var l=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),a=!o.hasVisibleSeries,s=864e5,h=t.scroller&&t.scroller.getUnionExtremes()||o,b=h.dataMin,k=h.dataMax,O=l.getYTDExtremes(k,b,t.time.useUTC),d=O.min,x=O.max,T=l.selected,N=l.options.allButtonsEnabled,z=l.buttons,L=m(T);l.buttonOptions.forEach(function(D,j){var Y=D._range,X=D.type,W=D.count||1,q=z[j],tt=D._offsetMax-D._offsetMin,Q=j===T,nt=Y>k-b,lt=Y<o.minRange,gt=0,mt=!1,bt=!1,yt=Y===e;(X==="month"||X==="year")&&e+36e5>={month:28,year:365}[X]*s*W-tt&&e-36e5<={month:31,year:366}[X]*s*W+tt?yt=!0:X==="ytd"?(yt=x-d+tt===e,mt=!Q):X==="all"&&(yt=o.max-o.min>=k-b,bt=!Q&&L&&yt);var dt=!N&&(nt||lt||bt||a),ot=Q&&yt||yt&&!L&&!mt||Q&&l.frozenStates;dt?gt=3:ot&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=dt,gt===2&&(i.selectedIndex=j+1)),gt===0&&T===j&&l.setSelected())})},r.prototype.computeButtonRange=function(l){var t=l.type,i=l.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?l._range=o[t]*i:t!=="month"&&t!=="year"||(l._range=24*{month:30,year:365}[t]*36e5*i),l._offsetMin=M(l.offsetMin,0),l._offsetMax=M(l.offsetMax,0),l._range+=l._offsetMax-l._offsetMin},r.prototype.getInputValue=function(l){var t=l==="min"?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return t?(t.type==="text"&&i.inputDateParser||this.defaultInputDateParser)(t.value,o.useUTC,o):0},r.prototype.setInputValue=function(l,t){var i=this.options,o=this.chart.time,e=l==="min"?this.minInput:this.maxInput,a=l==="min"?this.minDateBox:this.maxDateBox;if(e){var s=e.getAttribute("data-hc-time"),h=A(s)?Number(s):void 0;if(A(t)){var b=h;A(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),h=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,h),a&&a.attr({text:o.dateFormat(i.inputDateFormat,h)})}},r.prototype.setInputExtremes=function(l,t,i){var o=l==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],a=this.chart.time;if(e){var s=a.dateFormat(e,t);o.min!==s&&(o.min=s);var h=a.dateFormat(e,i);o.max!==h&&(o.max=h)}}},r.prototype.showInput=function(l){var t=l==="min"?this.minDateBox:this.maxDateBox,i=l==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,a=e.translateX,s=e.translateY,h=this.options.inputBoxWidth;E(i,{width:o?t.width+(h?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&h?{left:a+t.x+"px",top:s+"px"}:{left:Math.min(Math.round(t.x+a-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:s-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(l){var t=l==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(l,t,i){var o,e=l.split("/").join("-").split(" ").join("T");if(e.indexOf("T")===-1&&(e+="T00:00"),t)e+="Z";else if(H.isSafari&&(!((o=e).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var a=new Date(e).getTimezoneOffset()/60;e+=a<=0?"+".concat(w(-a),":00"):"-".concat(w(a),":00")}var s=Date.parse(e);if(!m(s)){var h=l.split("-");s=Date.UTC(C(h[0]),C(h[1])-1,C(h[2]))}return i&&t&&m(s)&&(s+=i.getTimezoneOffset(s)),s},r.prototype.drawInput=function(l){var t=this,i=t.chart,o=t.div,e=t.inputGroup,a=this,s=i.renderer.style||{},h=i.renderer,b=i.options.rangeSelector,k=V.lang,O=l==="min";function d(){var D=a.maxInput,j=a.minInput,Y=i.xAxis[0],X=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,W=X.dataMin,q=X.dataMax,tt=a.getInputValue(l);tt!==Number(z.getAttribute("data-hc-time-previous"))&&m(tt)&&(z.setAttribute("data-hc-time-previous",tt),O&&D&&m(W)?tt>Number(D.getAttribute("data-hc-time"))?tt=void 0:tt<W&&(tt=W):j&&m(q)&&(tt<Number(j.getAttribute("data-hc-time"))?tt=void 0:tt>q&&(tt=q)),tt!==void 0&&Y.setExtremes(O?tt:Y.min,O?Y.max:tt,void 0,void 0,{trigger:"rangeSelectorInput"}))}var x=k[O?"rangeSelectorFrom":"rangeSelectorTo"]||"",T=h.label(x,0).addClass("highcharts-range-label").attr({padding:x?2:0,height:x?b.inputBoxHeight:0}).add(e),N=h.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){a.showInput(l),a[l+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var z=I("input",{name:l,className:"highcharts-range-selector"},void 0,o);z.setAttribute("type",function(D){if(D.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(X){return D.indexOf("%"+X)!==-1}),Y=["H","k","I","l","M","S"].some(function(X){return D.indexOf("%"+X)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(T.css(u(s,b.labelStyle)),N.css(u({color:"#333333"},s,b.inputStyle)),E(z,c({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:s.fontSize,fontFamily:s.fontFamily,top:"-9999em"},b.inputStyle))),z.onfocus=function(){a.showInput(l)},z.onblur=function(){z===H.doc.activeElement&&d(),a.hideInput(l),a.setInputValue(l),z.blur()};var L=!1;return z.onchange=function(){L||(d(),a.hideInput(l),z.blur())},z.onkeypress=function(D){D.keyCode===13&&d()},z.onkeydown=function(D){L=!0,D.keyCode!==38&&D.keyCode!==40||d()},z.onkeyup=function(){L=!1},{dateBox:N,input:z,label:T}},r.prototype.getPosition=function(){var l=this.chart,t=l.options.rangeSelector,i=t.verticalAlign==="top"?l.plotTop-l.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(l,t,i){var o=this.chart.time,e=new o.Date(l),a=o.get("FullYear",e),s=i?o.Date.UTC(a,0,1):+new o.Date(a,0,1),h=Math.max(t,s),b=e.getTime();return{max:Math.min(l||b,b),min:h}},r.prototype.render=function(l,t){var i=this.chart,o=i.renderer,e=i.container,a=i.options,s=a.rangeSelector,h=M(a.chart.style&&a.chart.style.zIndex,0)+1,b=s.inputEnabled,k=this.rendered;if(s.enabled!==!1){if(!k&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:h}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var O=this.drawInput("min");this.minDateBox=O.dateBox,this.minLabel=O.label,this.minInput=O.input;var d=this.drawInput("max");this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input}if(b){this.setInputValue("min",l),this.setInputValue("max",t);var x=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(A(x.dataMin)&&A(x.dataMax)){var T=i.xAxis[0].minRange||0;this.setInputExtremes("min",x.dataMin,Math.min(x.dataMax,this.getInputValue("max"))-T),this.setInputExtremes("max",Math.max(x.dataMin,this.getInputValue("min"))+T,x.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(z){if(z){var L=z.getBBox().width;L&&(z.attr({x:N}),N+=L+s.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var l=this,t=this,i=t.buttons,o=t.chart,e=t.options,a=V.lang,s=o.renderer,h=u(e.buttonTheme),b=h&&h.states,k=h.width||28;delete h.width,delete h.states,this.buttonGroup=s.g("range-selector-buttons").add(this.group);var O=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);F(O,"touchstart",function(){O.style.fontSize="16px"}),[[H.isMS?"mouseover":"mouseenter"],[H.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(d){var x=d[0],T=d[1];F(O,x,function(){var N=i[l.currentButtonIndex()];N&&g(N.element,T||x)})}),this.zoomText=s.label(a&&a.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(e.labelStyle),h["stroke-width"]=M(h["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,O),this.buttonOptions.forEach(function(d,x){I("option",{textContent:d.title||d.text},void 0,O),i[x]=s.button(d.text,0,0,function(T){var N,z=d.events&&d.events.click;z&&(N=z.call(d,T)),N!==!1&&l.clickButton(x),l.isActive=!0},h,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:k}).add(l.buttonGroup),d.title&&i[x].attr("title",d.title)})},r.prototype.alignElements=function(){var l=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,a=t.group,s=t.inputGroup,h=t.options,b=t.zoomText,k=e.options,O=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,d=h.buttonPosition,x=h.inputPosition,T=h.verticalAlign,N=function(mt,bt){return O&&l.titleCollision(e)&&T==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(O.y||0)+(O.height||0)+e.spacing[0]?-40:0},z=e.plotLeft;if(a&&d&&x){var L=d.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var D=0;b&&(D+=b.getBBox().width+5),o.forEach(function(mt,bt){D+=mt.width,bt!==o.length-1&&(D+=h.buttonSpacing)}),this.initialButtonGroupWidth=D}z-=e.spacing[3],this.updateButtonStates();var j=N(i,d);this.alignButtonGroup(j),a.placed=i.placed=e.hasLoaded}var Y=0;s&&(Y=N(s,x),x.align==="left"?L=z:x.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),s.align({y:x.y,width:s.getBBox().width,align:x.align,x:x.x+L-2},!0,e.spacingBox),s.placed=e.hasLoaded),this.handleCollision(Y),a.align({verticalAlign:T},!0,e.spacingBox);var X=a.alignAttr.translateY,W=a.getBBox().height+20,q=0;if(T==="bottom"){var tt=e.legend&&e.legend.options;q=X-(W=W+(tt&&tt.verticalAlign==="bottom"&&tt.enabled&&!tt.floating?e.legend.legendHeight+M(tt.margin,10):0)-20)-(h.floating?0:h.y)-(e.titleOffset?e.titleOffset[2]:0)-10}T==="top"?(h.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):T==="middle"&&(x.y===d.y?q=X:(x.y||d.y)&&(x.y<0||d.y<0?q-=Math.min(x.y,d.y):q=X-W)),a.translate(h.x,h.y+Math.floor(q));var Q=this,nt=Q.minInput,lt=Q.maxInput,gt=Q.dropdown;h.inputEnabled&&nt&<&&(nt.style.marginTop=a.translateY+"px",lt.style.marginTop=a.translateY+"px"),gt&&(gt.style.marginTop=a.translateY+"px")}},r.prototype.alignButtonGroup=function(l,t){var i=this,o=i.chart,e=i.options,a=i.buttonGroup,s=e.buttonPosition,h=o.plotLeft-o.spacing[3],b=s.x-o.spacing[3];s.align==="right"?b+=l-h:s.align==="center"&&(b-=h/2),a&&a.align({y:s.y,width:M(t,this.initialButtonGroupWidth),align:s.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var l=this,t=l.buttons,i=l.chart,o=l.options,e=l.zoomText,a=i.hasLoaded?"animate":"attr",s=o.buttonPosition,h=i.plotLeft,b=h;e&&e.visibility!=="hidden"&&(e[a]({x:M(h+s.x,h)}),b+=s.x+e.getBBox().width+5);for(var k=0,O=this.buttonOptions.length;k<O;++k)t[k].visibility!=="hidden"?(t[k][a]({x:b}),b+=t[k].width+o.buttonSpacing):t[k][a]({x:h})},r.prototype.handleCollision=function(l){var t=this,i=this,o=i.chart,e=i.buttonGroup,a=i.inputGroup,s=this.options,h=s.buttonPosition,b=s.dropdown,k=s.inputPosition,O=function(){var T=0;return t.buttons.forEach(function(N){var z=N.getBBox();z.width>T&&(T=z.width)}),T},d=function(T){if(a&&e){var N=a.alignAttr.translateX+a.alignOptions.x-l+a.getBBox().x+2,z=a.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+T>N&&N+z>L&&h.y<k.y+a.getBBox().height}return!1},x=function(){a&&e&&a.attr({translateX:a.alignAttr.translateX+(o.axisOffset[1]>=-l?0:-l),translateY:a.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(l),void(d(O())&&x());b==="never"&&this.expandButtons()}a&&e?k.align===h.align||d(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(l),d(O())&&x()):x():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(l):this.expandButtons())},r.prototype.collapseButtons=function(l){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,a=t.dropdown,s=t.options,h=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(x){return{text:x?x+" ▾":"▾",width:"auto",paddingLeft:M(s.buttonTheme.paddingLeft,b.padding,8),paddingRight:M(s.buttonTheme.paddingRight,b.padding,8)}};h&&h.hide();var O=!1;o.forEach(function(x,T){var N=i[T];N.state!==2?N.hide():(N.show(),N.attr(k(x.text)),O=!0)}),O||(a&&(a.selectedIndex=0),i[0].show(),i[0].attr(k(this.zoomText&&this.zoomText.textStr)));var d=s.buttonPosition.align;this.positionButtons(),d!=="right"&&d!=="center"||this.alignButtonGroup(l,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var l=this,t=l.buttons,i=l.buttonOptions,o=l.options,e=l.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(a,s){var h=t[s];h.show(),h.attr({text:a.text,width:o.buttonTheme.width||28,paddingLeft:M(o.buttonTheme.paddingLeft,"unset"),paddingRight:M(o.buttonTheme.paddingRight,"unset")}),h.state<2&&h.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var l=this.dropdown;return l&&l.selectedIndex>0?l.selectedIndex-1:0},r.prototype.showDropdown=function(){var l=this,t=l.buttonGroup,i=l.buttons,o=l.chart,e=l.dropdown;if(t&&e){var a=t.translateX,s=t.translateY,h=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+a+"px",top:s+.5+"px",width:h.width+"px",height:h.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var l=this.dropdown;l&&(E(l,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var l=this.options,t=this.group,i=l.inputPosition,o=l.buttonPosition,e=l.y,a=o.y,s=i.y,h=0;if(l.height)return l.height;this.alignElements(),h=t?t.getBBox(!0).height+13+e:0;var b=Math.min(s,a);return(s<0&&a<0||s>0&&a>0)&&(h+=Math.abs(b)),h},r.prototype.titleCollision=function(l){return!(l.options.title.text||l.options.subtitle.text)},r.prototype.update=function(l){var t=this.chart;u(!0,t.options.rangeSelector,l),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var l=this,t=l.minInput,i=l.maxInput;l.eventsToUnbind&&(l.eventsToUnbind.forEach(function(o){return o()}),l.eventsToUnbind=void 0),P(l.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(l,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof window.HTMLElement&&y(o)),o!==r.prototype[e]&&(l[e]=null)},this)},r}();return c(f.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),f}),et(_,"Accessibility/Components/RangeSelectorComponent.js",[_["Stock/RangeSelector/RangeSelector.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/Announcer.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V,F=this&&this.__extends||(V=function(c,g){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},V(c,g)},function(c,g){function m(){this.constructor=c}V(c,g),c.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}),I=H.unhideChartElementFromAT,E=H.getAxisRangeDescription,A=Z.addEvent,P=Z.attr,y=function(c){function g(){var m=c!==null&&c.apply(this,arguments)||this;return m.announcer=void 0,m}return F(g,c),g.prototype.init=function(){var m=this.chart;this.announcer=new U(m,"polite")},g.prototype.onChartUpdate=function(){var m=this.chart,u=this,v=m.rangeSelector;v&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),v.buttons&&v.buttons.length&&v.buttons.forEach(function(w){u.setRangeButtonAttrs(w)}),v.maxInput&&v.minInput&&["minInput","maxInput"].forEach(function(w,M){var C=v[w];C&&(I(m,C),u.setRangeInputAttrs(C,"accessibility.rangeSelector."+(M?"max":"min")+"InputLabel"))}))},g.prototype.updateSelectorVisibility=function(){var m=this.chart,u=m.rangeSelector,v=u&&u.dropdown,w=u&&u.buttons||[],M=function(C){return C.setAttribute("aria-hidden",!0)};u&&u.hasVisibleDropdown&&v?(I(m,v),w.forEach(function(C){return M(C.element)})):(v&&M(v),w.forEach(function(C){return I(m,C.element)}))},g.prototype.setDropdownAttrs=function(){var m=this.chart,u=m.rangeSelector&&m.rangeSelector.dropdown;if(u){var v=m.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:m.options.lang.rangeSelectorZoom});u.setAttribute("aria-label",v),u.setAttribute("tabindex",-1)}},g.prototype.setRangeButtonAttrs=function(m){P(m.element,{tabindex:-1,role:"button"})},g.prototype.setRangeInputAttrs=function(m,u){var v=this.chart;P(m,{tabindex:-1,"aria-label":v.langFormat(u,{chart:v})})},g.prototype.onButtonNavKbdArrowKey=function(m,u){var v=m.response,w=this.keyCodes,M=this.chart,C=M.options.accessibility.keyboardNavigation.wrapAround,p=u===w.left||u===w.up?-1:1;return M.highlightRangeSelectorButton(M.highlightedRangeSelectorItemIx+p)?v.success:C?(m.init(p),v.success):v[p>0?"next":"prev"]},g.prototype.onButtonNavKbdClick=function(m){var u=m.response,v=this.chart;return v.oldRangeSelectorItemState===3||this.fakeClickEvent(v.rangeSelector.buttons[v.highlightedRangeSelectorItemIx].element),u.success},g.prototype.onAfterBtnClick=function(){var m=this.chart,u=E(m.xAxis[0]),v=m.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:m,axisRangeDescription:u});v&&this.announcer.announce(v)},g.prototype.onInputKbdMove=function(m){var u=this.chart,v=u.rangeSelector,w=u.highlightedInputRangeIx=(u.highlightedInputRangeIx||0)+m;if(w>1||w<0)u.accessibility&&(u.accessibility.keyboardNavigation.tabindexContainer.focus(),u.accessibility.keyboardNavigation.move(m));else if(v){var M=v[w?"maxDateBox":"minDateBox"],C=v[w?"maxInput":"minInput"];M&&C&&u.setFocusToElement(M,C)}},g.prototype.onInputNavInit=function(m){var u=this,v=this,w=this.chart,M=m>0?0:1,C=w.rangeSelector,p=C&&C[M?"maxDateBox":"minDateBox"],f=C&&C.minInput,r=C&&C.maxInput,l=M?r:f;if(w.highlightedInputRangeIx=M,p&&f&&r){w.setFocusToElement(p,l),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();var t=function(e){(e.which||e.keyCode)===u.keyCodes.tab&&(e.preventDefault(),e.stopPropagation(),v.onInputKbdMove(e.shiftKey?-1:1))},i=A(f,"keydown",t),o=A(r,"keydown",t);this.removeInputKeydownHandler=function(){i(),o()}}},g.prototype.onInputNavTerminate=function(){var m=this.chart.rangeSelector||{};m.maxInput&&m.hideInput("max"),m.minInput&&m.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},g.prototype.initDropdownNav=function(){var m=this,u=this.chart,v=u.rangeSelector,w=v&&v.dropdown;v&&w&&(u.setFocusToElement(v.buttonGroup,w),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=A(w,"keydown",function(M){var C=(M.which||M.keyCode)===m.keyCodes.tab,p=u.accessibility;C&&(M.preventDefault(),M.stopPropagation(),p&&(p.keyboardNavigation.tabindexContainer.focus(),p.keyboardNavigation.move(M.shiftKey?-1:1)))}))},g.prototype.getRangeSelectorButtonNavigation=function(){var m=this.chart,u=this.keyCodes,v=this;return new $(m,{keyCodeMap:[[[u.left,u.right,u.up,u.down],function(w){return v.onButtonNavKbdArrowKey(this,w)}],[[u.enter,u.space],function(){return v.onButtonNavKbdClick(this)}]],validate:function(){return!!(m.rangeSelector&&m.rangeSelector.buttons&&m.rangeSelector.buttons.length)},init:function(w){var M=m.rangeSelector;if(M&&M.hasVisibleDropdown)v.initDropdownNav();else if(M){var C=M.buttons.length-1;m.highlightRangeSelectorButton(w>0?0:C)}},terminate:function(){v.removeDropdownKeydownHandler&&(v.removeDropdownKeydownHandler(),delete v.removeDropdownKeydownHandler)}})},g.prototype.getRangeSelectorInputNavigation=function(){var m=this.chart,u=this;return new $(m,{keyCodeMap:[],validate:function(){return function(v){return!!(v.rangeSelector&&v.rangeSelector.inputGroup&&v.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&v.options.rangeSelector.inputEnabled!==!1&&v.rangeSelector.minInput&&v.rangeSelector.maxInput)}(m)},init:function(v){u.onInputNavInit(v)},terminate:function(){u.onInputNavTerminate()}})},g.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},g.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},g}(B);return function(c){var g=[];function m(v){var w=this.rangeSelector&&this.rangeSelector.buttons||[],M=this.highlightedRangeSelectorItemIx,C=this.rangeSelector&&this.rangeSelector.selected;return M!==void 0&&w[M]&&M!==C&&w[M].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=v,!!w[v]&&(this.setFocusToElement(w[v].box,w[v].element),v!==C&&(this.oldRangeSelectorItemState=w[v].state,w[v].setState(1)),!0)}function u(){var v=this.chart.accessibility;if(v&&v.components.rangeSelector)return v.components.rangeSelector.onAfterBtnClick()}c.compose=function(v,w){g.indexOf(v)===-1&&(g.push(v),v.prototype.highlightRangeSelectorButton=m),g.indexOf(w)===-1&&(g.push(w),A(G,"afterBtnClick",u))}}(y||(y={})),y}),et(_,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[_["Core/Utilities.js"]],function(G){var B,H=G.addEvent,U=G.merge;return function($){var Z=[];function V(c){U(!0,c,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function F(c){return c.marker.states&&c.marker.states.normal&&c.marker.states.normal.opacity}function I(c){return!!(c._hasPointMarkers&&c.points&&c.points.length)}function E(){var c=this;c.chart.styledMode&&(c.markerGroup&&c.markerGroup[c.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),I(c)&&c.points.forEach(function(g){g.graphic&&(g.graphic[g.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),g.graphic[g.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function A(c){this.resetA11yMarkerOptions=U(c.options.marker||{},this.userOptions.marker||{})}function P(){var c=this,g=c.options;(function(m){var u=m.chart.options.accessibility.enabled,v=(m.options.accessibility&&m.options.accessibility.enabled)!==!1;return u&&v&&function(w){var M=w.chart.options.accessibility;return w.points.length<M.series.pointDescriptionEnabledThreshold||M.series.pointDescriptionEnabledThreshold===!1}(m)})(c)?(g.marker&&g.marker.enabled===!1&&(c.a11yMarkersForced=!0,V(c.options)),I(c)&&function(m){for(var u=m.points.length;u--;){var v=m.points[u],w=v.options,M=v.hasForcedA11yMarker;if(delete v.hasForcedA11yMarker,w.marker){var C=M&&F(w)===0;w.marker.enabled&&!C?(y(w),v.hasForcedA11yMarker=!1):w.marker.enabled===!1&&(V(w),v.hasForcedA11yMarker=!0)}}}(c)):c.a11yMarkersForced&&(delete c.a11yMarkersForced,function(m){var u=m.resetA11yMarkerOptions;if(u){var v=u.states&&u.states.normal&&u.states.normal.opacity;m.update({marker:{enabled:u.enabled,states:{normal:{opacity:v}}}})}}(c),delete c.resetA11yMarkerOptions)}function y(c){U(!0,c.marker,{states:{normal:{opacity:F(c)||1}}})}$.compose=function(c){Z.indexOf(c)===-1&&(Z.push(c),H(c,"afterSetOptions",A),H(c,"render",P),H(c,"afterRender",E))}}(B||(B={})),B}),et(_,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[_["Core/Series/Point.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Utils/EventProvider.js"],_["Accessibility/Utils/ChartUtilities.js"]],function(G,B,H,U,$,Z,V,F){var I=H.seriesTypes,E=U.doc,A=$.defined,P=$.fireEvent,y=F.getPointFromXY,c=F.getSeriesFromName,g=F.scrollToPoint;function m(r){var l=r.index,t=r.series.points,i=t.length;if(t[l]===r)return l;for(;i--;)if(t[i]===r)return i}function u(r){var l=r.chart.options.accessibility.keyboardNavigation.seriesNavigation,t=r.options.accessibility||{},i=t.keyboardNavigation;return i&&i.enabled===!1||t.enabled===!1||r.options.enableMouseTracking===!1||!r.visible||l.pointNavigationEnabledThreshold&&l.pointNavigationEnabledThreshold<=r.points.length}function v(r){var l=r.series.chart.options.accessibility,t=r.options.accessibility&&r.options.accessibility.enabled===!1;return r.isNull&&l.keyboardNavigation.seriesNavigation.skipNullPoints||r.visible===!1||r.isInside===!1||t||u(r.series)}function w(r){for(var l=r.points||[],t=l.length,i=0;i<t;++i)if(!v(l[i]))return l[i];return null}function M(r){for(var l=r.series||[],t=l.length,i=0;i<t;++i)if(!u(l[i])){var o=w(l[i]);if(o)return o}return null}function C(r){for(var l=r.series.length,t=!1;l--&&(r.highlightedPoint=r.series[l].points[r.series[l].points.length-1],!(t=r.series[l].highlightNextValidPoint())););return t}function p(r){delete r.highlightedPoint;var l=M(r);return!!l&&l.highlight()}var f=function(){function r(l,t){this.keyCodes=t,this.chart=l}return r.prototype.init=function(){var l=this,t=this.chart,i=this.eventProvider=new V;i.addEvent(B,"destroy",function(){return l.onSeriesDestroy(this)}),i.addEvent(t,"afterApplyDrilldown",function(){(function(o){var e=M(o);e&&e.highlight(!1)})(this)}),i.addEvent(t,"drilldown",function(o){var e=o.point,a=e.series;l.lastDrilledDownPoint={x:e.x,y:e.y,seriesName:a?a.name:""}}),i.addEvent(t,"drillupall",function(){setTimeout(function(){l.onDrillupAll()},10)}),i.addEvent(G,"afterSetState",function(){var o=this,e=o.graphic&&o.graphic.element,a=E.activeElement,s=a&&a.getAttribute("class"),h=s&&s.indexOf("highcharts-a11y-proxy-button")>-1;t.highlightedPoint===o&&a!==e&&!h&&e&&e.focus&&e.focus()})},r.prototype.onDrillupAll=function(){var l,t=this.lastDrilledDownPoint,i=this.chart,o=t&&c(i,t.seriesName);t&&o&&A(t.x)&&A(t.y)&&(l=y(o,t.x,t.y)),l=l||M(i),i.container&&i.container.focus(),l&&l.highlight&&l.highlight(!1)},r.prototype.getKeyboardNavigationHandler=function(){var l=this,t=this.keyCodes,i=this.chart,o=i.inverted;return new Z(i,{keyCodeMap:[[o?[t.up,t.down]:[t.left,t.right],function(e){return l.onKbdSideways(this,e)}],[o?[t.left,t.right]:[t.up,t.down],function(e){return l.onKbdVertical(this,e)}],[[t.enter,t.space],function(e,a){var s=i.highlightedPoint;return s&&(a.point=s,P(s.series,"click",a),s.firePointEvent("click")),this.response.success}],[[t.home],function(){return p(i),this.response.success}],[[t.end],function(){return C(i),this.response.success}],[[t.pageDown,t.pageUp],function(e){return i.highlightAdjacentSeries(e===t.pageDown),this.response.success}]],init:function(){return l.onHandlerInit(this)},validate:function(){return!!M(i)},terminate:function(){return l.onHandlerTerminate()}})},r.prototype.onKbdSideways=function(l,t){var i=this.keyCodes,o=t===i.right||t===i.down;return this.attemptHighlightAdjacentPoint(l,o)},r.prototype.onHandlerInit=function(l){var t=this.chart;return t.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&t.highlightedPoint?t.highlightedPoint.highlight():p(t),l.response.success},r.prototype.onKbdVertical=function(l,t){var i=this.chart,o=this.keyCodes,e=t===o.down||t===o.right,a=i.options.accessibility.keyboardNavigation.seriesNavigation;return a.mode&&a.mode==="serialize"?this.attemptHighlightAdjacentPoint(l,e):(i[i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](e),l.response.success)},r.prototype.onHandlerTerminate=function(){var l=this.chart,t=l.options.accessibility.keyboardNavigation;l.tooltip&&l.tooltip.hide(0);var i=l.highlightedPoint&&l.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),l.highlightedPoint&&l.highlightedPoint.onMouseOut&&l.highlightedPoint.onMouseOut(),t.seriesNavigation.rememberPointFocus||delete l.highlightedPoint},r.prototype.attemptHighlightAdjacentPoint=function(l,t){var i=this.chart,o=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(t)||o&&(t?p(i):C(i))?l.response.success:l.response[t?"next":"prev"]},r.prototype.onSeriesDestroy=function(l){var t=this.chart;t.highlightedPoint&&t.highlightedPoint.series===l&&(delete t.highlightedPoint,t.focusElement&&t.focusElement.removeFocusBorder())},r.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},r}();return function(r){var l=[];function t(s){var h,b,k=this,O=k.series,d=k.highlightedPoint,x=d&&m(d)||0,T=d&&d.series.points||[],N=k.series&&k.series[k.series.length-1],z=N&&N.points&&N.points[N.points.length-1];if(!O[0]||!O[0].points)return!1;if(d){if(h=O[d.series.index+(s?1:-1)],!(b=T[x+(s?1:-1)])&&h&&(b=h.points[s?0:h.points.length-1]),!b)return!1}else b=s?O[0].points[0]:z;return v(b)?(u(h=b.series)?k.highlightedPoint=s?h.points[h.points.length-1]:h.points[0]:k.highlightedPoint=b,k.highlightAdjacentPoint(s)):b.highlight()}function i(s){var h,b=this.highlightedPoint,k=1/0;return!(!A(b.plotX)||!A(b.plotY))&&(this.series.forEach(function(O){u(O)||O.points.forEach(function(d){if(A(d.plotY)&&A(d.plotX)&&d!==b){var x=d.plotY-b.plotY,T=Math.abs(d.plotX-b.plotX),N=Math.abs(x)*Math.abs(x)+T*T*4;O.yAxis&&O.yAxis.reversed&&(x*=-1),x<=0&&s||x>=0&&!s||N<5||v(d)||N<k&&(k=N,h=d)}})}),!!h&&h.highlight())}function o(s){var h,b,k=this,O=k.highlightedPoint,d=k.series&&k.series[k.series.length-1],x=d&&d.points&&d.points[d.points.length-1];return k.highlightedPoint?!!(h=k.series[O.series.index+(s?-1:1)])&&!!(b=function(T,N){var z,L,D,j=1/0,Y=N.points.length,X=function(W){return!(A(W.plotX)&&A(W.plotY))};if(!X(T)){for(;Y--;)X(z=N.points[Y])||(D=(T.plotX-z.plotX)*(T.plotX-z.plotX)*4+(T.plotY-z.plotY)*(T.plotY-z.plotY)*1)<j&&(j=D,L=Y);return A(L)?N.points[L]:void 0}}(O,h))&&(u(h)?(b.highlight(),k.highlightAdjacentSeries(s)||(O.highlight(),!1)):(b.highlight(),b.series.highlightNextValidPoint())):(h=s?k.series&&k.series[0]:d,!!(b=s?h&&h.points&&h.points[0]:x)&&b.highlight())}function e(s){s===void 0&&(s=!0);var h=this.series.chart;return!this.isNull&&s?this.onMouseOver():h.tooltip&&h.tooltip.hide(0),g(this),this.graphic&&(h.setFocusToElement(this.graphic),!s&&h.focusElement&&h.focusElement.removeFocusBorder()),h.highlightedPoint=this,this}function a(){var s=this.chart.highlightedPoint,h=(s&&s.series)===this?m(s):0,b=this.points,k=b.length;if(b&&k){for(var O=h;O<k;++O)if(!v(b[O]))return b[O].highlight();for(var d=h;d>=0;--d)if(!v(b[d]))return b[d].highlight()}return!1}r.compose=function(s,h,b){if(l.indexOf(s)===-1){l.push(s);var k=s.prototype;k.highlightAdjacentPoint=t,k.highlightAdjacentPointVertical=i,k.highlightAdjacentSeries=o}if(l.indexOf(h)===-1&&(l.push(h),h.prototype.highlight=e),l.indexOf(b)===-1){l.push(b);var O=b.prototype;O.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(function(d){I[d]&&(I[d].prototype.keyboardMoveVertical=!1)}),O.highlightNextValidPoint=a}}}(f||(f={})),f}),et(_,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],_["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],_["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],_["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],_["Core/Tooltip.js"]],function(G,B,H,U,$,Z,V){var F,I=this&&this.__extends||(F=function(y,c){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},F(y,c)},function(y,c){function g(){this.constructor=y}F(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),E=B.hideSeriesFromAT,A=$.describeSeries,P=function(y){function c(){return y!==null&&y.apply(this,arguments)||this}return I(c,y),c.compose=function(g,m,u){U.compose(u),H.compose(u),Z.compose(g,m,u)},c.prototype.init=function(){this.newDataAnnouncer=new U(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new Z(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},c.prototype.hideTooltipFromATWhenShown=function(){var g=this;this.addEvent(V,"refresh",function(){this.chart===g.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})},c.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(g){g.labelBySeries&&g.labelBySeries.attr("aria-hidden",!0)})})},c.prototype.onChartRender=function(){this.chart.series.forEach(function(g){(g.options.accessibility&&g.options.accessibility.enabled)!==!1&&g.visible?A(g):E(g)})},c.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},c.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},c}(G);return P}),et(_,"Accessibility/Components/ZoomComponent.js",[_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z,V=this&&this.__extends||(Z=function(y,c){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},Z(y,c)},function(y,c){function g(){this.constructor=y}Z(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),F=B.unhideChartElementFromAT,I=H.getFakeMouseEvent,E=$.attr,A=$.pick,P=function(y){function c(){var g=y!==null&&y.apply(this,arguments)||this;return g.focusedMapNavButtonIx=-1,g}return V(c,y),c.prototype.init=function(){var g=this,m=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(function(u){g.addEvent(m,u,function(){g.updateProxyOverlays()})})},c.prototype.onChartUpdate=function(){var g=this.chart,m=this;g.mapNavigation&&g.mapNavigation.navButtons.forEach(function(u,v){F(g,u.element),m.setMapNavButtonAttrs(u.element,"accessibility.zoom.mapZoom"+(v?"Out":"In"))})},c.prototype.setMapNavButtonAttrs=function(g,m){var u=this.chart,v=u.langFormat(m,{chart:u});E(g,{tabindex:-1,role:"button","aria-label":v})},c.prototype.onChartRender=function(){this.updateProxyOverlays()},c.prototype.updateProxyOverlays=function(){var g=this.chart;if(this.proxyProvider.clearGroup("zoom"),g.resetZoomButton&&this.createZoomProxyButton(g.resetZoomButton,"resetZoomProxyButton",g.langFormat("accessibility.zoom.resetZoomButton",{chart:g})),g.drillUpButton&&g.breadcrumbs&&g.breadcrumbs.list){var m=g.breadcrumbs.list[g.breadcrumbs.list.length-1];this.createZoomProxyButton(g.drillUpButton,"drillUpProxyButton",g.langFormat("accessibility.drillUpButton",{chart:g,buttonText:g.breadcrumbs.getButtonText(m)}))}},c.prototype.createZoomProxyButton=function(g,m,u){this[m]=this.proxyProvider.addProxyElement("zoom",{click:g},{"aria-label":u,tabindex:-1})},c.prototype.getMapZoomNavigation=function(){var g=this.keyCodes,m=this.chart,u=this;return new U(m,{keyCodeMap:[[[g.up,g.down,g.left,g.right],function(v){return u.onMapKbdArrow(this,v)}],[[g.tab],function(v,w){return u.onMapKbdTab(this,w)}],[[g.space,g.enter],function(){return u.onMapKbdClick(this)}]],validate:function(){return function(v){return!!(v.mapView&&v.mapNavigation&&v.mapNavigation.navButtons.length)}(m)},init:function(v){return u.onMapNavInit(v)}})},c.prototype.onMapKbdArrow=function(g,m){var u=this.chart,v=this.keyCodes,w=u.container,M=m===v.up||m===v.down,C=m===v.left||m===v.up?1:-1,p=(M?u.plotHeight:u.plotWidth)/10*C,f=10*Math.random(),r={x:w.offsetLeft+u.plotLeft+u.plotWidth/2+f,y:w.offsetTop+u.plotTop+u.plotHeight/2+f},l=M?{x:r.x,y:r.y+p}:{x:r.x+p,y:r.y};return[I("mousedown",r),I("mousemove",l),I("mouseup",l)].forEach(function(t){return w.dispatchEvent(t)}),g.response.success},c.prototype.onMapKbdTab=function(g,m){var u=this.chart,v=g.response,w=m.shiftKey,M=w&&!this.focusedMapNavButtonIx||!w&&this.focusedMapNavButtonIx;if(u.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),M)return u.mapView&&u.mapView.zoomBy(),v[w?"prev":"next"];this.focusedMapNavButtonIx+=w?-1:1;var C=u.mapNavigation.navButtons[this.focusedMapNavButtonIx];return u.setFocusToElement(C.box,C.element),C.setState(2),v.success},c.prototype.onMapKbdClick=function(g){var m=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(m),g.response.success},c.prototype.onMapNavInit=function(g){var m=this.chart,u=m.mapNavigation.navButtons[0],v=m.mapNavigation.navButtons[1],w=g>0?u:v;m.setFocusToElement(w.box,w.element),w.setState(2),this.focusedMapNavButtonIx=g>0?0:1},c.prototype.simpleButtonNavigation=function(g,m,u){var v=this.keyCodes,w=this,M=this.chart;return new U(M,{keyCodeMap:[[[v.tab,v.up,v.down,v.left,v.right],function(C,p){var f=C===v.tab&&p.shiftKey||C===v.left||C===v.up;return this.response[f?"prev":"next"]}],[[v.space,v.enter],function(){var C=u(this,M);return A(C,this.response.success)}]],validate:function(){return M[g]&&M[g].box&&w[m].buttonElement},init:function(){M.setFocusToElement(M[g].box,w[m].buttonElement)}})},c.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(g,m){m.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(g,m){return m.drillUp(),g.response.prev}),this.getMapZoomNavigation()]},c}(G);return P}),et(_,"Accessibility/HighContrastMode.js",[_["Core/Globals.js"]],function(G){var B=G.doc,H=G.isMS,U=G.win;return{isHighContrastModeActive:function(){var $=/(Edg)/.test(U.navigator.userAgent);if(U.matchMedia&&$)return U.matchMedia("(-ms-high-contrast: active)").matches;if(H&&U.getComputedStyle){var Z=B.createElement("div");Z.style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")"),B.body.appendChild(Z);var V=(Z.currentStyle||U.getComputedStyle(Z)).backgroundImage;return B.body.removeChild(Z),V==="none"}return U.matchMedia&&U.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function($){$.highContrastModeActive=!0;var Z=$.options.accessibility.highContrastTheme;$.update(Z,!1),$.series.forEach(function(V){var F=Z.plotOptions[V.type]||{};V.update({color:F.color||"windowText",colors:[F.color||"windowText"],borderColor:F.borderColor||"window"}),V.points.forEach(function(I){I.options&&I.options.color&&I.update({color:F.color||"windowText",borderColor:F.borderColor||"window"},!1)})}),$.redraw()}}}),et(_,"Accessibility/HighContrastTheme.js",[],function(){return{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},labels:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}}),et(_,"Accessibility/Options/A11yDefaults.js",[],function(){return{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#335cad",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}}),et(_,"Accessibility/Options/LangDefaults.js",[],function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{ Also related to, #each(additionalAnnotationPoints)}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bars, bar)}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#plural(series.points.length, bars, bar)}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, slices, slice)}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#plural(series.points.length, slices, slice)}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, points, point)}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#plural(series.points.length, points, point)}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, boxes, box)}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#plural(series.points.length, boxes, box)}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, areas, area)}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#plural(series.points.length, areas, area)}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#plural(series.points.length, points, point)}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#plural(series.points.length, points, point)}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#plural(series.points.length, bubbles, bubble)}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#plural(series.points.length, bubbles, bubble)}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{Annotation: #each(annotations). }"}}}}),et(_,"Accessibility/Options/DeprecatedOptions.js",[_["Core/Utilities.js"]],function(G){var B=G.error,H=G.pick;function U(Z,V,F){for(var I,E=Z,A=0;A<V.length-1;++A)E=E[I=V[A]]=H(E[I],{});E[V[V.length-1]]=F}function $(Z,V,F,I){function E(y,c){return c.reduce(function(g,m){return g[m]},y)}var A=E(Z.options,V),P=E(Z.options,F);Object.keys(I).forEach(function(y){var c,g=A[y];g!==void 0&&(U(P,I[y],g),B(32,!1,Z,((c={})[V.join(".")+"."+y]=F.join(".")+"."+I[y].join("."),c)))})}return function(Z){(function(V){var F=V.options.chart,I=V.options.accessibility||{};["description","typeDescription"].forEach(function(E){var A;F[E]&&(I[E]=F[E],B(32,!1,V,((A={})["chart.".concat(E)]="use accessibility.".concat(E),A)))})})(Z),function(V){V.axes.forEach(function(F){var I=F.options;I&&I.description&&(I.accessibility=I.accessibility||{},I.accessibility.description=I.description,B(32,!1,V,{"axis.description":"use axis.accessibility.description"}))})}(Z),Z.series&&function(V){var F={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};V.series.forEach(function(I){Object.keys(F).forEach(function(E){var A,P=I.options[E];E==="accessibility.pointDescriptionFormatter"&&(P=I.options.accessibility&&I.options.accessibility.pointDescriptionFormatter),P!==void 0&&(U(I.options,F[E],E==="skipKeyboardNavigation"?!P:P),B(32,!1,V,((A={})["series.".concat(E)]="series."+F[E].join("."),A)))})})}(Z),function(V){$(V,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]})}(Z),function(V){$(V,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]})}(Z),function(V){$(V,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})}(Z)}}),et(_,"Accessibility/Accessibility.js",[_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/A11yI18n.js"],_["Accessibility/Components/ContainerComponent.js"],_["Accessibility/FocusBorder.js"],_["Accessibility/Components/InfoRegionsComponent.js"],_["Accessibility/KeyboardNavigation.js"],_["Accessibility/Components/LegendComponent.js"],_["Accessibility/Components/MenuComponent.js"],_["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],_["Accessibility/ProxyProvider.js"],_["Accessibility/Components/RangeSelectorComponent.js"],_["Accessibility/Components/SeriesComponent/SeriesComponent.js"],_["Accessibility/Components/ZoomComponent.js"],_["Accessibility/HighContrastMode.js"],_["Accessibility/HighContrastTheme.js"],_["Accessibility/Options/A11yDefaults.js"],_["Accessibility/Options/LangDefaults.js"],_["Accessibility/Options/DeprecatedOptions.js"]],function(G,B,H,U,$,Z,V,F,I,E,A,P,y,c,g,m,u,v,w,M,C){var p=G.defaultOptions,f=B.doc,r=H.addEvent,l=H.extend,t=H.fireEvent,i=H.merge,o=U.removeElement,e=function(){function a(s){this.chart=void 0,this.components=void 0,this.keyboardNavigation=void 0,this.proxyProvider=void 0,this.init(s)}return a.prototype.init=function(s){if(this.chart=s,!f.addEventListener||!s.renderer.isSVG)return this.zombie=!0,this.components={},void s.renderTo.setAttribute("aria-hidden",!0);C(s),this.proxyProvider=new y(this.chart),this.initComponents(),this.keyboardNavigation=new I(s,this.components)},a.prototype.initComponents=function(){var s=this.chart,h=this.proxyProvider,b=s.options.accessibility;this.components={container:new Z,infoRegions:new F,legend:new E,chartMenu:new A,rangeSelector:new c,series:new g,zoom:new m},b.customComponents&&l(this.components,b.customComponents);var k=this.components;this.getComponentOrder().forEach(function(O){k[O].initBase(s,h),k[O].init()})},a.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var s=Object.keys(this.components).filter(function(h){return h!=="series"});return["series"].concat(s)},a.prototype.update=function(){var s=this.components,h=this.chart,b=h.options.accessibility;t(h,"beforeA11yUpdate"),h.types=this.getChartTypes();var k=b.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(k),this.getComponentOrder().forEach(function(O){s[O].onChartUpdate(),t(h,"afterA11yComponentUpdate",{name:O,component:s[O]})}),this.keyboardNavigation.update(k),!h.highContrastModeActive&&u.isHighContrastModeActive()&&u.setHighContrastTheme(h),t(h,"afterA11yUpdate",{accessibility:this})},a.prototype.destroy=function(){var s=this.chart||{},h=this.components;Object.keys(h).forEach(function(b){h[b].destroy(),h[b].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),s.announcerContainer&&o(s.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),s.renderTo&&s.renderTo.setAttribute("aria-hidden",!0),s.focusElement&&s.focusElement.removeFocusBorder()},a.prototype.getChartTypes=function(){var s={};return this.chart.series.forEach(function(h){s[h.type]=1}),Object.keys(s)},a}();return function(a){var s=[];function h(){this.accessibility&&this.accessibility.destroy()}function b(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());var x=this.accessibility;x&&!x.zombie&&(x.proxyProvider.updateProxyElementPositions(),x.getComponentOrder().forEach(function(T){x.components[T].onChartRender()}))}function k(x){var T=x.options.accessibility;T&&(T.customComponents&&(this.options.accessibility.customComponents=T.customComponents,delete T.customComponents),i(!0,this.options.accessibility,T),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function O(){var x=this.accessibility,T=this.options.accessibility;T&&T.enabled?x&&!x.zombie?x.update():(this.accessibility=x=new a(this),x&&!x.zombie&&x.update()):x?(x.destroy&&x.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function d(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}a.i18nFormat=$.i18nFormat,a.compose=function(x,T,N,z,L,D){I.compose(x),P.compose(z),E.compose(x,T),A.compose(x),g.compose(x,N,z),$.compose(x),V.compose(x,L),D&&c.compose(x,D),s.indexOf(x)===-1&&(s.push(x),x.prototype.updateA11yEnabled=O,r(x,"destroy",h),r(x,"render",b),r(x,"update",k),["addSeries","init"].forEach(function(j){r(x,j,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(function(j){r(x,j,function(){var Y=this.accessibility;Y&&!Y.zombie&&Y.update()})})),s.indexOf(N)===-1&&(s.push(N),r(N,"update",d)),s.indexOf(z)===-1&&(s.push(z),["update","updatedData","remove"].forEach(function(j){r(z,j,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(e||(e={})),i(!0,p,w,{accessibility:{highContrastTheme:v},lang:M}),e}),et(_,"masters/modules/accessibility.src.js",[_["Core/Globals.js"],_["Accessibility/Accessibility.js"],_["Accessibility/AccessibilityComponent.js"],_["Accessibility/Utils/ChartUtilities.js"],_["Accessibility/Utils/HTMLUtilities.js"],_["Accessibility/KeyboardNavigationHandler.js"],_["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(G,B,H,U,$,Z,V){var F=G;F.i18nFormat=B.i18nFormat,F.A11yChartUtilities=U,F.A11yHTMLUtilities=$,F.AccessibilityComponent=H,F.KeyboardNavigationHandler=Z,F.SeriesAccessibilityDescriber=V,B.compose(F.Chart,F.Legend,F.Point,F.Series,F.SVGElement,F.RangeSelector)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},5118:(it,rt,st)=>{st.d(rt,{A:()=>E});var ht=st(6956),ct=st(4089),pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,_=st(3269);function et(A,P){if(typeof A!="function"||P!=null&&typeof P!="function")throw new TypeError("Expected a function");var y=function(){var c=arguments,g=P?P.apply(this,c):c[0],m=y.cache;if(m.has(g))return m.get(g);var u=A.apply(this,c);return y.cache=m.set(g,u)||m,u};return y.cache=new(et.Cache||_.A),y}et.Cache=_.A;var G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B=/\\(\\)?/g;const H=(U=et(function(A){var P=[];return A.charCodeAt(0)===46&&P.push(""),A.replace(G,function(y,c,g,m){P.push(g?m.replace(B,"$1"):c||y)}),P},function(A){return $.size===500&&$.clear(),A}),$=U.cache,U);var U,$,Z=st(3516),V=Z.A?Z.A.prototype:void 0,F=V?V.toString:void 0;const I=function A(P){if(typeof P=="string")return P;if((0,ht.A)(P))return function(c,g){for(var m=-1,u=c==null?0:c.length,v=Array(u);++m<u;)v[m]=g(c[m],m,c);return v}(P,A)+"";if((0,ct.A)(P))return F?F.call(P):"";var y=P+"";return y=="0"&&1/P==-1/0?"-0":y},E=function(A,P){return(0,ht.A)(A)?A:function(y,c){if((0,ht.A)(y))return!1;var g=typeof y;return!(g!="number"&&g!="symbol"&&g!="boolean"&&y!=null&&!(0,ct.A)(y))||ft.test(y)||!pt.test(y)||c!=null&&y in Object(c)}(A,P)?[A]:H(function(y){return y==null?"":I(y)}(A))}},5134:function(it,rt,st){var ht,ct,pt;ct=typeof window!="undefined"?window:this,pt=function(ft){var _={};function et(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}return et(_,"Core/Globals.js",[],function(){var G;return function(B){B.SVG_NS="http://www.w3.org/2000/svg",B.product="Highcharts",B.version="10.3.3",B.win=ft!==void 0?ft:{},B.doc=B.win.document,B.svg=B.doc&&B.doc.createElementNS&&!!B.doc.createElementNS(B.SVG_NS,"svg").createSVGRect,B.userAgent=B.win.navigator&&B.win.navigator.userAgent||"",B.isChrome=B.userAgent.indexOf("Chrome")!==-1,B.isFirefox=B.userAgent.indexOf("Firefox")!==-1,B.isMS=/(edge|msie|trident)/i.test(B.userAgent)&&!B.win.opera,B.isSafari=!B.isChrome&&B.userAgent.indexOf("Safari")!==-1,B.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(B.userAgent),B.isWebKit=B.userAgent.indexOf("AppleWebKit")!==-1,B.deg2rad=2*Math.PI/360,B.hasBidiBug=B.isFirefox&&parseInt(B.userAgent.split("Firefox/")[1],10)<4,B.hasTouch=!!B.win.TouchEvent,B.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],B.noop=function(){},B.supportsPassiveEvents=function(){var H=!1;if(!B.isMS){var U=Object.defineProperty({},"passive",{get:function(){H=!0}});B.win.addEventListener&&B.win.removeEventListener&&(B.win.addEventListener("testPassive",B.noop,U),B.win.removeEventListener("testPassive",B.noop,U))}return H}(),B.charts=[],B.dateFormats={},B.seriesTypes={},B.symbolSizes={},B.chartCount=0}(G||(G={})),G}),et(_,"Core/Utilities.js",[_["Core/Globals.js"]],function(G){var B=G.charts,H=G.doc,U=G.win;function $(e,a,s,h){var b=a?"Highcharts error":"Highcharts warning";e===32&&(e=b+": Deprecated member");var k=P(e),O=k?b+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString();if(h!==void 0){var d="";k&&(O+="?"),p(h,function(x,T){d+=`
|
|
5
|
+
- `.concat(T,": ").concat(x),k&&(O+=encodeURI(T)+"="+encodeURI(x))}),O+=d}r(G,"displayError",{chart:s,code:e,message:O,params:h},function(){if(a)throw new Error(O);U.console&&$.messages.indexOf(O)===-1&&console.warn(O)}),$.messages.push(O)}function Z(e,a){return parseInt(e,a||10)}function V(e){return typeof e=="string"}function F(e){var a=Object.prototype.toString.call(e);return a==="[object Array]"||a==="[object Array Iterator]"}function I(e,a){return!(!e||typeof e!="object"||a&&F(e))}function E(e){return I(e)&&typeof e.nodeType=="number"}function A(e){var a=e&&e.constructor;return!(!I(e,!0)||E(e)||!a||!a.name||a.name==="Object")}function P(e){return typeof e=="number"&&!isNaN(e)&&e<1/0&&e>-1/0}function y(e){return e!=null}function c(e,a,s){var h,b=V(a)&&!y(s),k=function(O,d){y(O)?e.setAttribute(d,O):b?(h=e.getAttribute(d))||d!=="class"||(h=e.getAttribute(d+"Name")):e.removeAttribute(d)};return V(a)?k(s,a):p(a,k),h}function g(e,a){var s;for(s in e||(e={}),a)e[s]=a[s];return e}function m(){for(var e=arguments,a=e.length,s=0;s<a;s++){var h=e[s];if(h!=null)return h}}function u(e,a){G.isMS&&!G.svg&&a&&y(a.opacity)&&(a.filter="alpha(opacity=".concat(100*a.opacity,")")),g(e.style,a)}function v(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function w(e,a){return e>1e14?e:parseFloat(e.toPrecision(a||14))}(function(e){e.messages=[]})($||($={})),Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var M,C=Array.prototype.find?function(e,a){return e.find(a)}:function(e,a){var s,h=e.length;for(s=0;s<h;s++)if(a(e[s],s))return e[s]};function p(e,a,s){for(var h in e)Object.hasOwnProperty.call(e,h)&&a.call(s||e[h],e[h],h,e)}function f(e,a,s){function h(x,T){var N=e.removeEventListener||G.removeEventListenerPolyfill;N&&N.call(e,x,T,!1)}function b(x){var T,N;e.nodeName&&(a?(T={})[a]=!0:T=x,p(T,function(z,L){if(x[L])for(N=x[L].length;N--;)h(L,x[L][N].fn)}))}var k=typeof e=="function"&&e.prototype||e;if(Object.hasOwnProperty.call(k,"hcEvents")){var O=k.hcEvents;if(a){var d=O[a]||[];s?(O[a]=d.filter(function(x){return s!==x.fn}),h(a,s)):(b(O),O[a]=[])}else b(O),delete k.hcEvents}}function r(e,a,s,h){var b;if(s=s||{},H.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==G))(b=H.createEvent("Events")).initEvent(a,!0,!0),s=g(b,s),e.dispatchEvent?e.dispatchEvent(s):e.fireEvent(a,s);else if(e.hcEvents){s.target||g(s,{preventDefault:function(){s.defaultPrevented=!0},target:e,type:a});for(var k=[],O=e,d=!1;O.hcEvents;)Object.hasOwnProperty.call(O,"hcEvents")&&O.hcEvents[a]&&(k.length&&(d=!0),k.unshift.apply(k,O.hcEvents[a])),O=Object.getPrototypeOf(O);d&&k.sort(function(x,T){return x.order-T.order}),k.forEach(function(x){x.fn.call(e,s)===!1&&s.preventDefault()})}h&&!s.defaultPrevented&&h.call(e,s)}p({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,a){G[a]=function(s){var h;return $(32,!1,void 0,((h={})["Highcharts.".concat(a)]="use Array.".concat(e),h)),Array.prototype[e].apply(s,[].slice.call(arguments,1))}});var l,t,i=(l=Math.random().toString(36).substring(2,9)+"-",t=0,function(){return"highcharts-"+(M?"":l)+t++});U.jQuery;var o={addEvent:function(e,a,s,h){h===void 0&&(h={});var b=typeof e=="function"&&e.prototype||e;Object.hasOwnProperty.call(b,"hcEvents")||(b.hcEvents={});var k=b.hcEvents;G.Point&&e instanceof G.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var O=e.addEventListener||G.addEventListenerPolyfill;O&&O.call(e,a,s,!!G.supportsPassiveEvents&&{passive:h.passive===void 0?a.indexOf("touch")!==-1:h.passive,capture:!1}),k[a]||(k[a]=[]);var d={fn:s,order:typeof h.order=="number"?h.order:1/0};return k[a].push(d),k[a].sort(function(x,T){return x.order-T.order}),function(){f(e,a,s)}},arrayMax:function(e){for(var a=e.length,s=e[0];a--;)e[a]>s&&(s=e[a]);return s},arrayMin:function(e){for(var a=e.length,s=e[0];a--;)e[a]<s&&(s=e[a]);return s},attr:c,clamp:function(e,a,s){return e>a?e<s?e:s:a},cleanRecursively:function e(a,s){var h={};return p(a,function(b,k){var O;I(a[k],!0)&&!a.nodeType&&s[k]?(O=e(a[k],s[k]),Object.keys(O).length&&(h[k]=O)):(I(a[k])||a[k]!==s[k]||k in a&&!(k in s))&&(h[k]=a[k])}),h},clearTimeout:function(e){y(e)&&clearTimeout(e)},correctFloat:w,createElement:function(e,a,s,h,b){var k=H.createElement(e);return a&&g(k,a),b&&u(k,{padding:"0",border:"none",margin:"0"}),s&&u(k,s),h&&h.appendChild(k),k},css:u,defined:y,destroyObjectProperties:function(e,a){p(e,function(s,h){s&&s!==a&&s.destroy&&s.destroy(),delete e[h]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,a){for(var s=e.length;s--;)if(e[s]===a){e.splice(s,1);break}},error:$,extend:g,extendClass:function(e,a){var s=function(){};return g(s.prototype=new e,a),s},find:C,fireEvent:r,getMagnitude:v,getNestedProperty:function(e,a){for(var s=e.split(".");s.length&&y(a);){var h=s.shift();if(h===void 0||h==="__proto__")return;var b=a[h];if(!y(b)||typeof b=="function"||typeof b.nodeType=="number"||b===U)return;a=b}return a},getStyle:function e(a,s,h){var b,k=G.getStyle||e;if(s==="width"){var O=Math.min(a.offsetWidth,a.scrollWidth),d=a.getBoundingClientRect&&a.getBoundingClientRect().width;return d<O&&d>=O-1&&(O=Math.floor(d)),Math.max(0,O-(k(a,"padding-left",!0)||0)-(k(a,"padding-right",!0)||0))}if(s==="height")return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-(k(a,"padding-top",!0)||0)-(k(a,"padding-bottom",!0)||0));U.getComputedStyle||$(27,!0);var x=U.getComputedStyle(a,void 0);return x&&(b=x.getPropertyValue(s),m(h,s!=="opacity")&&(b=Z(b))),b},inArray:function(e,a,s){return $(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),a.indexOf(e,s)},isArray:F,isClass:A,isDOMElement:E,isFunction:function(e){return typeof e=="function"},isNumber:P,isObject:I,isString:V,keys:function(e){return $(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(e)},merge:function(){var e,a=arguments,s={},h=function(k,O){return typeof k!="object"&&(k={}),p(O,function(d,x){x!=="__proto__"&&x!=="constructor"&&(!I(d,!0)||A(d)||E(d)?k[x]=O[x]:k[x]=h(k[x]||{},d))}),k};a[0]===!0&&(s=a[1],a=Array.prototype.slice.call(a,2));var b=a.length;for(e=0;e<b;e++)s=h(s,a[e]);return s},normalizeTickInterval:function(e,a,s,h,b){var k,O=e,d=e/(s=m(s,v(e)));for(a||(a=b?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],h===!1&&(s===1?a=a.filter(function(x){return x%1==0}):s<=.1&&(a=[1/s]))),k=0;k<a.length&&(O=a[k],!(b&&O*s>=e||!b&&d<=(a[k]+(a[k+1]||a[k]))/2));k++);return w(O*s,-Math.round(Math.log(.001)/Math.LN10))},objectEach:p,offset:function(e){var a=H.documentElement,s=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:s.top+(U.pageYOffset||a.scrollTop)-(a.clientTop||0),left:s.left+(U.pageXOffset||a.scrollLeft)-(a.clientLeft||0),width:s.width,height:s.height}},pad:function(e,a,s){return new Array((a||2)+1-String(e).replace("-","").length).join(s||"0")+e},pick:m,pInt:Z,relativeLength:function(e,a,s){return/%$/.test(e)?a*parseFloat(e)/100+(s||0):parseFloat(e)},removeEvent:f,splat:function(e){return F(e)?e:[e]},stableSort:function(e,a){var s,h,b=e.length;for(h=0;h<b;h++)e[h].safeI=h;for(e.sort(function(k,O){return(s=a(k,O))===0?k.safeI-O.safeI:s}),h=0;h<b;h++)delete e[h].safeI},syncTimeout:function(e,a,s){return a>0?setTimeout(e,a,s):(e.call(0,s),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:i,useSerialIds:function(e){return M=m(e,M)},wrap:function(e,a,s){var h=e[a];e[a]=function(){var b=arguments,k=this;return s.apply(this,[function(){return h.apply(k,arguments.length?arguments:b)}].concat([].slice.call(arguments)))}}};return o}),et(_,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),et(_,"Core/Color/Color.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var H=B.isNumber,U=B.merge,$=B.pInt;return function(){function Z(V){this.rgba=[NaN,NaN,NaN,NaN],this.input=V;var F=G.Color;return F&&F!==Z?new F(V):this instanceof Z?void this.init(V):new Z(V)}return Z.parse=function(V){return V?new Z(V):Z.None},Z.prototype.init=function(V){var F,I,E,A;if(typeof V=="object"&&V.stops!==void 0)this.stops=V.stops.map(function(c){return new Z(c[1])});else if(typeof V=="string"){if(this.input=V=Z.names[V.toLowerCase()]||V,V.charAt(0)==="#"){var P=V.length,y=parseInt(V.substr(1),16);P===7?I=[(16711680&y)>>16,(65280&y)>>8,255&y,1]:P===4&&(I=[(3840&y)>>4|(3840&y)>>8,(240&y)>>4|240&y,(15&y)<<4|15&y,1])}if(!I)for(E=Z.parsers.length;E--&&!I;)(F=(A=Z.parsers[E]).regex.exec(V))&&(I=A.parse(F))}I&&(this.rgba=I)},Z.prototype.get=function(V){var F=this.input,I=this.rgba;if(typeof F=="object"&&this.stops!==void 0){var E=U(F);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(A,P){E.stops[P]=[E.stops[P][0],A.get(V)]}),E}return I&&H(I[0])?V==="rgb"||!V&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":V==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":F},Z.prototype.brighten=function(V){var F=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(V)});else if(H(V)&&V!==0)for(var I=0;I<3;I++)F[I]+=$(255*V),F[I]<0&&(F[I]=0),F[I]>255&&(F[I]=255);return this},Z.prototype.setOpacity=function(V){return this.rgba[3]=V,this},Z.prototype.tweenTo=function(V,F){var I=this.rgba,E=V.rgba;if(!H(I[0])||!H(E[0]))return V.input||"none";var A=E[3]!==1||I[3]!==1;return(A?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-F))+","+Math.round(E[1]+(I[1]-E[1])*(1-F))+","+Math.round(E[2]+(I[2]-E[2])*(1-F))+(A?","+(E[3]+(I[3]-E[3])*(1-F)):"")+")"},Z.names={white:"#ffffff",black:"#000000"},Z.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(V){return[$(V[1]),$(V[2]),$(V[3]),parseFloat(V[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(V){return[$(V[1]),$(V[2]),$(V[3]),1]}}],Z.None=new Z(""),Z}()}),et(_,"Core/Color/Palettes.js",[],function(){return{colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]}}),et(_,"Core/Time.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var H=G.win,U=B.defined,$=B.error,Z=B.extend,V=B.isObject,F=B.merge,I=B.objectEach,E=B.pad,A=B.pick,P=B.splat,y=B.timeUnits,c=G.isSafari&&H.Intl&&H.Intl.DateTimeFormat.prototype.formatRange,g=G.isSafari&&H.Intl&&!H.Intl.DateTimeFormat.prototype.formatRange,m=function(){function u(v){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=H.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(v)}return u.prototype.get=function(v,w){if(this.variableTimezone||this.timezoneOffset){var M=w.getTime(),C=M-this.getTimezoneOffset(w);w.setTime(C);var p=w["getUTC"+v]();return w.setTime(M),p}return this.useUTC?w["getUTC"+v]():w["get"+v]()},u.prototype.set=function(v,w,M){if(this.variableTimezone||this.timezoneOffset){if(v==="Milliseconds"||v==="Seconds"||v==="Minutes"&&this.getTimezoneOffset(w)%36e5==0)return w["setUTC"+v](M);var C=this.getTimezoneOffset(w),p=w.getTime()-C;w.setTime(p),w["setUTC"+v](M);var f=this.getTimezoneOffset(w);return p=w.getTime()+f,w.setTime(p)}return this.useUTC||c&&v==="FullYear"?w["setUTC"+v](M):w["set"+v](M)},u.prototype.update=function(v){v===void 0&&(v={});var w=A(v.useUTC,!0);this.options=v=F(!0,this.options,v),this.Date=v.Date||H.Date||Date,this.useUTC=w,this.timezoneOffset=w&&v.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=w&&!(!v.getTimezoneOffset&&!v.timezone)},u.prototype.makeTime=function(v,w,M,C,p,f){var r,l,t;return this.useUTC?(r=this.Date.UTC.apply(0,arguments),r+=l=this.getTimezoneOffset(r),l!==(t=this.getTimezoneOffset(r))?r+=t-l:l-36e5!==this.getTimezoneOffset(r-36e5)||g||(r-=36e5)):r=new this.Date(v,w,A(M,1),A(C,0),A(p,0),A(f,0)).getTime(),r},u.prototype.timezoneOffsetFunction=function(){var v=this,w=this.options,M=w.getTimezoneOffset,C=w.moment||H.moment;if(!this.useUTC)return function(p){return 6e4*new Date(p.toString()).getTimezoneOffset()};if(w.timezone){if(C)return function(p){return 6e4*-C.tz(p,w.timezone).utcOffset()};$(25)}return this.useUTC&&M?function(p){return 6e4*M(p.valueOf())}:function(){return 6e4*(v.timezoneOffset||0)}},u.prototype.dateFormat=function(v,w,M){if(!U(w)||isNaN(w))return G.defaultOptions.lang&&G.defaultOptions.lang.invalidDate||"";v=A(v,"%Y-%m-%d %H:%M:%S");var C=this,p=new this.Date(w),f=this.get("Hours",p),r=this.get("Day",p),l=this.get("Date",p),t=this.get("Month",p),i=this.get("FullYear",p),o=G.defaultOptions.lang,e=o&&o.weekdays,a=o&&o.shortWeekdays,s=Z({a:a?a[r]:e[r].substr(0,3),A:e[r],d:E(l),e:E(l,2," "),w:r,b:o.shortMonths[t],B:o.months[t],m:E(t+1),o:t+1,y:i.toString().substr(2,2),Y:i,H:E(f),k:f,I:E(f%12||12),l:f%12||12,M:E(this.get("Minutes",p)),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:E(p.getSeconds()),L:E(Math.floor(w%1e3),3)},G.dateFormats);return I(s,function(h,b){for(;v.indexOf("%"+b)!==-1;)v=v.replace("%"+b,typeof h=="function"?h.call(C,w):h)}),M?v.substr(0,1).toUpperCase()+v.substr(1):v},u.prototype.resolveDTLFormat=function(v){return V(v,!0)?v:{main:(v=P(v))[0],from:v[1],to:v[2]}},u.prototype.getTimeTicks=function(v,w,M,C){var p,f,r,l,t=this,i=t.Date,o=[],e={},a=new i(w),s=v.unitRange,h=v.count||1;if(C=A(C,1),U(w)){t.set("Milliseconds",a,s>=y.second?0:h*Math.floor(t.get("Milliseconds",a)/h)),s>=y.second&&t.set("Seconds",a,s>=y.minute?0:h*Math.floor(t.get("Seconds",a)/h)),s>=y.minute&&t.set("Minutes",a,s>=y.hour?0:h*Math.floor(t.get("Minutes",a)/h)),s>=y.hour&&t.set("Hours",a,s>=y.day?0:h*Math.floor(t.get("Hours",a)/h)),s>=y.day&&t.set("Date",a,s>=y.month?1:Math.max(1,h*Math.floor(t.get("Date",a)/h))),s>=y.month&&(t.set("Month",a,s>=y.year?0:h*Math.floor(t.get("Month",a)/h)),f=t.get("FullYear",a)),s>=y.year&&(f-=f%h,t.set("FullYear",a,f)),s===y.week&&(l=t.get("Day",a),t.set("Date",a,t.get("Date",a)-l+C+(l<C?-7:0))),f=t.get("FullYear",a);var b=t.get("Month",a),k=t.get("Date",a),O=t.get("Hours",a);w=a.getTime(),!t.variableTimezone&&t.useUTC||!U(M)||(r=M-w>4*y.month||t.getTimezoneOffset(w)!==t.getTimezoneOffset(M));var d=a.getTime();for(p=1;d<M;)o.push(d),s===y.year?d=t.makeTime(f+p*h,0):s===y.month?d=t.makeTime(f,b+p*h):!r||s!==y.day&&s!==y.week?r&&s===y.hour&&h>1?d=t.makeTime(f,b,k,O+p*h):d+=s*h:d=t.makeTime(f,b,k+p*h*(s===y.day?1:7)),p++;o.push(d),s<=y.hour&&o.length<1e4&&o.forEach(function(x){x%18e5==0&&t.dateFormat("%H%M%S%L",x)==="000000000"&&(e[x]="day")})}return o.info=Z(v,{higherRanks:e,totalRange:s*h}),o},u.prototype.getDateFormat=function(v,w,M,C){var p=this.dateFormat("%m-%d %H:%M:%S.%L",w),f="01-01 00:00:00.000",r={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond",t=l;for(l in y){if(v===y.week&&+this.dateFormat("%w",w)===M&&p.substr(6)===f.substr(6)){l="week";break}if(y[l]>v){l=t;break}if(r[l]&&p.substr(r[l])!==f.substr(r[l]))break;l!=="week"&&(t=l)}return this.resolveDTLFormat(C[l]).main},u}();return m}),et(_,"Core/Defaults.js",[_["Core/Chart/ChartDefaults.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Color/Palettes.js"],_["Core/Time.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V=B.parse,F=H.isTouchDevice,I=H.svg,E=Z.merge,A={colors:U.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:G,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:I,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:F?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:V("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};A.chart.styledMode=!1;var P=new $(E(A.global,A.time));return{defaultOptions:A,defaultTime:P,getOptions:function(){return A},setOptions:function(y){return E(!0,A,y),(y.time||y.global)&&(H.time?H.time.update(E(A.global,A.time,y.global,y.time)):H.time=P),A}}}),et(_,"Core/Animation/Fx.js",[_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,H){var U=G.parse,$=B.win,Z=H.isNumber,V=H.objectEach,F=function(){function I(E,A,P){this.pos=NaN,this.options=A,this.elem=E,this.prop=P}return I.prototype.dSetter=function(){var E=this.paths,A=E&&E[0],P=E&&E[1],y=this.now||0,c=[];if(y!==1&&A&&P)if(A.length===P.length&&y<1)for(var g=0;g<P.length;g++){for(var m=A[g],u=P[g],v=[],w=0;w<u.length;w++){var M=m[w],C=u[w];Z(M)&&Z(C)&&(u[0]!=="A"||w!==4&&w!==5)?v[w]=M+y*(C-M):v[w]=C}c.push(v)}else c=P;else c=this.toD||[];this.elem.attr("d",c,void 0,!0)},I.prototype.update=function(){var E=this.elem,A=this.prop,P=this.now,y=this.options.step;this[A+"Setter"]?this[A+"Setter"]():E.attr?E.element&&E.attr(A,P,null,!0):E.style[A]=P+this.unit,y&&y.call(E,P,this)},I.prototype.run=function(E,A,P){var y=this,c=y.options,g=function(v){return!g.stopped&&y.step(v)},m=$.requestAnimationFrame||function(v){setTimeout(v,13)},u=function(){for(var v=0;v<I.timers.length;v++)I.timers[v]()||I.timers.splice(v--,1);I.timers.length&&m(u)};E!==A||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=E,this.end=A,this.unit=P,this.now=this.start,this.pos=0,g.elem=this.elem,g.prop=this.prop,g()&&I.timers.push(g)===1&&m(u)):(delete c.curAnim[this.prop],c.complete&&Object.keys(c.curAnim).length===0&&c.complete.call(this.elem))},I.prototype.step=function(E){var A,P,y=+new Date,c=this.options,g=this.elem,m=c.complete,u=c.duration,v=c.curAnim;return g.attr&&!g.element?A=!1:E||y>=u+this.startTime?(this.now=this.end,this.pos=1,this.update(),v[this.prop]=!0,P=!0,V(v,function(w){w!==!0&&(P=!1)}),P&&m&&m.call(g),A=!1):(this.pos=c.easing((y-this.startTime)/u),this.now=this.start+(this.end-this.start)*this.pos,this.update(),A=!0),A},I.prototype.initPath=function(E,A,P){var y,c,g,m,u=E.startX,v=E.endX,w=P.slice(),M=E.isArea,C=M?2:1,p=A&&A.slice();if(!p)return[w,w];function f(l,t){for(;l.length<c;){var i=l[0],o=t[c-l.length];if(o&&i[0]==="M"&&(o[0]==="C"?l[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:l[0]=["L",i[1],i[2]]),l.unshift(i),M){var e=l.pop();l.push(l[l.length-1],e)}}}function r(l,t){for(;l.length<c;){var i=l[Math.floor(l.length/C)-1].slice();if(i[0]==="C"&&(i[1]=i[5],i[2]=i[6]),M){var o=l[Math.floor(l.length/C)].slice();l.splice(l.length/2,0,i,o)}else l.push(i)}}if(u&&v&&v.length){for(g=0;g<u.length;g++){if(u[g]===v[0]){y=g;break}if(u[0]===v[v.length-u.length+g]){y=g,m=!0;break}if(u[u.length-1]===v[v.length-u.length+g]){y=u.length-g;break}}y===void 0&&(p=[])}return p.length&&Z(y)&&(c=w.length+y*C,m?(f(p,w),r(w)):(f(w,p),r(p))),[p,w]},I.prototype.fillSetter=function(){I.prototype.strokeSetter.apply(this,arguments)},I.prototype.strokeSetter=function(){this.elem.attr(this.prop,U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)},I.timers=[],I}();return F}),et(_,"Core/Animation/AnimationUtilities.js",[_["Core/Animation/Fx.js"],_["Core/Utilities.js"]],function(G,B){var H=B.defined,U=B.getStyle,$=B.isArray,Z=B.isNumber,V=B.isObject,F=B.merge,I=B.objectEach,E=B.pick;function A(c){return V(c)?F({duration:500,defer:0},c):{duration:c?500:0,defer:0}}function P(c,g){for(var m=G.timers.length;m--;)G.timers[m].elem!==c||g&&g!==G.timers[m].prop||(G.timers[m].stopped=!0)}var y={animate:function(c,g,m){var u,v,w,M,C="";V(m)||(m={duration:(M=arguments)[2],easing:M[3],complete:M[4]}),Z(m.duration)||(m.duration=400),m.easing=typeof m.easing=="function"?m.easing:Math[m.easing]||Math.easeInOutSine,m.curAnim=F(g),I(g,function(p,f){P(c,f),w=new G(c,m,f),v=void 0,f==="d"&&$(g.d)?(w.paths=w.initPath(c,c.pathArray,g.d),w.toD=g.d,u=0,v=1):c.attr?u=c.attr(f):(u=parseFloat(U(c,f))||0,f!=="opacity"&&(C="px")),v||(v=p),typeof v=="string"&&v.match("px")&&(v=v.replace(/px/g,"")),w.run(u,v,C)})},animObject:A,getDeferredAnimation:function(c,g,m){var u=A(g),v=m?[m]:c.series,w=0,M=0;return v.forEach(function(C){var p=A(C.options.animation);w=g&&H(g.defer)?u.defer:Math.max(w,p.duration+p.defer),M=Math.min(u.duration,p.duration)}),c.renderer.forExport&&(w=0),{defer:Math.max(0,w-M),duration:Math.min(w,M)}},setAnimation:function(c,g){g.renderer.globalAnimation=E(c,g.options.chart.animation,!0)},stop:P};return y}),et(_,"Core/Renderer/HTML/AST.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var H=G.SVG_NS,U=G.win,$=B.attr,Z=B.createElement,V=B.css,F=B.error,I=B.isFunction,E=B.isString,A=B.objectEach,P=B.splat,y=U.trustedTypes,c=y&&I(y.createPolicy)&&y.createPolicy("highcharts",{createHTML:function(u){return u}}),g=c?c.createHTML(""):"",m=function(){try{return!!new DOMParser().parseFromString(g,"text/html")}catch(u){return!1}}();return function(){function u(v){this.nodes=typeof v=="string"?this.parseMarkup(v):v}return u.filterUserAttributes=function(v){return A(v,function(w,M){var C=!0;u.allowedAttributes.indexOf(M)===-1&&(C=!1),["background","dynsrc","href","lowsrc","src"].indexOf(M)!==-1&&(C=E(w)&&u.allowedReferences.some(function(p){return w.indexOf(p)===0})),C||(F(33,!1,void 0,{"Invalid attribute in config":"".concat(M)}),delete v[M]),E(w)&&v[M]&&(v[M]=w.replace(/</g,"<"))}),v},u.parseStyle=function(v){return v.split(";").reduce(function(w,M){var C=M.split(":").map(function(f){return f.trim()}),p=C.shift();return p&&C.length&&(w[p.replace(/-([a-z])/g,function(f){return f[1].toUpperCase()})]=C.join(":")),w},{})},u.setElementHTML=function(v,w){v.innerHTML=u.emptyHTML,w&&new u(w).addToDOM(v)},u.prototype.addToDOM=function(v){return function w(M,C){var p;return P(M).forEach(function(f){var r,l=f.tagName,t=f.textContent?G.doc.createTextNode(f.textContent):void 0,i=u.bypassHTMLFiltering;if(l)if(l==="#text")r=t;else if(u.allowedTags.indexOf(l)!==-1||i){var o=l==="svg"?H:C.namespaceURI||H,e=G.doc.createElementNS(o,l),a=f.attributes||{};A(f,function(s,h){h!=="tagName"&&h!=="attributes"&&h!=="children"&&h!=="style"&&h!=="textContent"&&(a[h]=s)}),$(e,i?a:u.filterUserAttributes(a)),f.style&&V(e,f.style),t&&e.appendChild(t),w(f.children||[],e),r=e}else F(33,!1,void 0,{"Invalid tagName in config":l});r&&C.appendChild(r),p=r}),p}(this.nodes,v)},u.prototype.parseMarkup=function(v){var w,M=[];if(v=v.trim().replace(/ style=(["'])/g," data-style=$1"),m)w=new DOMParser().parseFromString(c?c.createHTML(v):v,"text/html");else{var C=Z("div");C.innerHTML=v,w={body:C}}var p=function(f,r){var l=f.nodeName.toLowerCase(),t={tagName:l};l==="#text"&&(t.textContent=f.textContent||"");var i=f.attributes;if(i){var o={};[].forEach.call(i,function(a){a.name==="data-style"?t.style=u.parseStyle(a.value):o[a.name]=a.value}),t.attributes=o}if(f.childNodes.length){var e=[];[].forEach.call(f.childNodes,function(a){p(a,e)}),e.length&&(t.children=e)}r.push(t)};return[].forEach.call(w.body.childNodes,function(f){return p(f,M)}),M},u.allowedAttributes=["aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","height","href","id","in","markerHeight","markerWidth","offset","opacity","orient","padding","paddingLeft","paddingRight","patternUnits","r","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],u.allowedReferences=["https://","http://","mailto:","/","../","./","#"],u.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],u.emptyHTML=g,u.bypassHTMLFiltering=!1,u}()}),et(_,"Core/FormatUtilities.js",[_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B){var H=G.defaultOptions,U=G.defaultTime,$=B.getNestedProperty,Z=B.isNumber,V=B.pick,F=B.pInt;function I(E,A,P,y){var c,g;E=+E||0,A=+A;var m=H.lang,u=(E.toString().split(".")[1]||"").split("e")[0].length,v=E.toString().split("e"),w=A;A===-1?A=Math.min(u,20):Z(A)?A&&v[1]&&v[1]<0&&((g=A+ +v[1])>=0?(v[0]=(+v[0]).toExponential(g).split("e")[0],A=g):(v[0]=v[0].split(".")[0]||0,E=A<20?(v[0]*Math.pow(10,v[1])).toFixed(A):0,v[1]=0)):A=2;var M=(Math.abs(v[1]?v[0]:E)+Math.pow(10,-Math.max(A,u)-1)).toFixed(A),C=String(F(M)),p=C.length>3?C.length%3:0;return P=V(P,m.decimalPoint),y=V(y,m.thousandsSep),c=E<0?"-":"",c+=p?C.substr(0,p)+y:"",+v[1]<0&&!w?c="0":c+=C.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+y),A&&(c+=P+M.slice(-A)),v[1]&&+c!=0&&(c+="e"+v[1]),c}return{dateFormat:function(E,A,P){return U.dateFormat(E,A,P)},format:function(E,A,P){for(var y,c,g,m,u="{",v=!1,w=/f$/,M=/\.([0-9])/,C=H.lang,p=P&&P.time||U,f=P&&P.numberFormatter||I,r=[];E&&(m=E.indexOf(u))!==-1;){if(y=E.slice(0,m),v){if(c=y.split(":"),g=$(c.shift()||"",A),c.length&&typeof g=="number")if(y=c.join(":"),w.test(y)){var l=parseInt((y.match(M)||["","-1"])[1],10);g!==null&&(g=f(g,l,C.decimalPoint,y.indexOf(",")>-1?C.thousandsSep:""))}else g=p.dateFormat(y,g);r.push(g)}else r.push(y);E=E.slice(m+1),u=(v=!v)?"}":"{"}return r.push(E),r.join("")},numberFormat:I}}),et(_,"Core/Renderer/RendererUtilities.js",[_["Core/Utilities.js"]],function(G){var B,H=G.clamp,U=G.pick,$=G.stableSort;return function(Z){Z.distribute=function V(F,I,E){var A,P,y,c=F,g=c.reducedLen||I,m=function(M,C){return M.target-C.target},u=!0,v=[],w=0;for(A=F.length;A--;)w+=F[A].size;if(w>g){for($(F,function(M,C){return(C.rank||0)-(M.rank||0)}),A=0,w=0;w<=g;)w+=F[A].size,A++;v=F.splice(A-1,F.length)}for($(F,m),F=F.map(function(M){return{size:M.size,targets:[M.target],align:U(M.align,.5)}});u;){for(A=F.length;A--;)P=F[A],y=(Math.min.apply(0,P.targets)+Math.max.apply(0,P.targets))/2,P.pos=H(y-P.size*P.align,0,I-P.size);for(A=F.length,u=!1;A--;)A>0&&F[A-1].pos+F[A-1].size>F[A].pos&&(F[A-1].size+=F[A].size,F[A-1].targets=F[A-1].targets.concat(F[A].targets),F[A-1].align=.5,F[A-1].pos+F[A-1].size>I&&(F[A-1].pos=I-F[A-1].size),F.splice(A,1),u=!0)}return c.push.apply(c,v),A=0,F.some(function(M){var C=0;return(M.targets||[]).some(function(){return c[A].pos=M.pos+C,E!==void 0&&Math.abs(c[A].pos-c[A].target)>E?(c.slice(0,A+1).forEach(function(p){return delete p.pos}),c.reducedLen=(c.reducedLen||I)-.1*I,c.reducedLen>.1*I&&V(c,I,E),!0):(C+=c[A].size,A++,!1)})}),$(c,m),c}}(B||(B={})),B}),et(_,"Core/Renderer/SVG/SVGElement.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $=G.animate,Z=G.animObject,V=G.stop,F=H.deg2rad,I=H.doc,E=H.svg,A=H.SVG_NS,P=H.win,y=U.addEvent,c=U.attr,g=U.createElement,m=U.css,u=U.defined,v=U.erase,w=U.extend,M=U.fireEvent,C=U.isArray,p=U.isFunction,f=U.isString,r=U.merge,l=U.objectEach,t=U.pick,i=U.pInt,o=U.syncTimeout,e=U.uniqueKey,a=function(){function s(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=A,this.symbolCustomAttribs=["x","y","width","height","r","start","end","innerR","anchorX","anchorY","rounded"]}return s.prototype._defaultGetter=function(h){var b=t(this[h+"Value"],this[h],this.element?this.element.getAttribute(h):null,0);return/^[\-0-9\.]+$/.test(b)&&(b=parseFloat(b)),b},s.prototype._defaultSetter=function(h,b,k){k.setAttribute(b,h)},s.prototype.add=function(h){var b,k=this.renderer,O=this.element;return h&&(this.parentGroup=h),this.textStr!==void 0&&this.element.nodeName==="text"&&k.buildText(this),this.added=!0,(!h||h.handleZ||this.zIndex)&&(b=this.zIndexSetter()),b||(h?h.element:k.box).appendChild(O),this.onAdd&&this.onAdd(),this},s.prototype.addClass=function(h,b){var k=b?"":this.attr("class")||"";return(h=(h||"").split(/ /g).reduce(function(O,d){return k.indexOf(d)===-1&&O.push(d),O},k?[k]:[]).join(" "))!==k&&this.attr("class",h),this},s.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},s.prototype.align=function(h,b,k){var O,d,x,T,N,z={},L=this.renderer,D=L.alignedObjects;h?(this.alignOptions=h,this.alignByTranslate=b,k&&!f(k)||(this.alignTo=x=k||"renderer",v(D,this),D.push(this),k=void 0)):(h=this.alignOptions,b=this.alignByTranslate,x=this.alignTo),k=t(k,L[x],x==="scrollablePlotBox"?L.plotBox:void 0,L);var j=h.align,Y=h.verticalAlign;return O=(k.x||0)+(h.x||0),d=(k.y||0)+(h.y||0),j==="right"?T=1:j==="center"&&(T=2),T&&(O+=(k.width-(h.width||0))/T),z[b?"translateX":"x"]=Math.round(O),Y==="bottom"?N=1:Y==="middle"&&(N=2),N&&(d+=(k.height-(h.height||0))/N),z[b?"translateY":"y"]=Math.round(d),this[this.placed?"animate":"attr"](z),this.placed=!0,this.alignAttr=z,this},s.prototype.alignSetter=function(h){var b={left:"start",center:"middle",right:"end"};b[h]&&(this.alignValue=h,this.element.setAttribute("text-anchor",b[h]))},s.prototype.animate=function(h,b,k){var O=this,d=Z(t(b,this.renderer.globalAnimation,!0)),x=d.defer;return t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(d.duration=0),d.duration!==0?(k&&(d.complete=k),o(function(){O.element&&$(O,h,d)},x)):(this.attr(h,void 0,k||d.complete),l(h,function(T,N){d.step&&d.step.call(this,T,{prop:N,pos:1,elem:this})},this)),this},s.prototype.applyTextOutline=function(h){var b=this.element;h.indexOf("contrast")!==-1&&(h=h.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));var k=h.split(" "),O=k[k.length-1],d=k[0];if(d&&d!=="none"&&H.svg){this.fakeTS=!0,d=d.replace(/(^[\d\.]+)(.*?)$/g,function(L,D,j){return 2*Number(D)+j}),this.removeTextOutline();var x=I.createElementNS(A,"tspan");c(x,{class:"highcharts-text-outline",fill:O,stroke:O,"stroke-width":d,"stroke-linejoin":"round"});var T=b.querySelector("textPath")||b;[].forEach.call(T.childNodes,function(L){var D=L.cloneNode(!0);D.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(j){return D.removeAttribute(j)}),x.appendChild(D)});var N=0;[].forEach.call(T.querySelectorAll("text tspan"),function(L){N+=Number(L.getAttribute("dy"))});var z=I.createElementNS(A,"tspan");z.textContent="",c(z,{x:Number(b.getAttribute("x")),dy:-N}),x.appendChild(z),T.insertBefore(x,T.firstChild)}},s.prototype.attr=function(h,b,k,O){var d,x,T,N,z=this.element,L=this.symbolCustomAttribs,D=this;return typeof h=="string"&&b!==void 0&&(d=h,(h={})[d]=b),typeof h=="string"?D=(this[h+"Getter"]||this._defaultGetter).call(this,h,z):(l(h,function(j,Y){T=!1,O||V(this,Y),this.symbolName&&L.indexOf(Y)!==-1&&(x||(this.symbolAttr(h),x=!0),T=!0),!this.rotation||Y!=="x"&&Y!=="y"||(this.doTransform=!0),T||((N=this[Y+"Setter"]||this._defaultSetter).call(this,j,Y,z),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(Y)&&this.updateShadows(Y,j,N))},this),this.afterSetters()),k&&k.call(this),D},s.prototype.clip=function(h){return this.attr("clip-path",h?"url("+this.renderer.url+"#"+h.id+")":"none")},s.prototype.crisp=function(h,b){var k=this;b=b||h.strokeWidth||0;var O=Math.round(b)%2/2;return h.x=Math.floor(h.x||k.x||0)+O,h.y=Math.floor(h.y||k.y||0)+O,h.width=Math.floor((h.width||k.width||0)-2*O),h.height=Math.floor((h.height||k.height||0)-2*O),u(h.strokeWidth)&&(h.strokeWidth=b),h},s.prototype.complexColor=function(h,b,k){var O,d,x,T,N,z,L,D,j,Y,X,W=this.renderer,q=[];M(this.renderer,"complexColor",{args:arguments},function(){if(h.radialGradient?d="radialGradient":h.linearGradient&&(d="linearGradient"),d){if(x=h[d],N=W.gradients,z=h.stops,j=k.radialReference,C(x)&&(h[d]=x={x1:x[0],y1:x[1],x2:x[2],y2:x[3],gradientUnits:"userSpaceOnUse"}),d==="radialGradient"&&j&&!u(x.gradientUnits)&&(T=x,x=r(x,W.getRadialAttr(j,T),{gradientUnits:"userSpaceOnUse"})),l(x,function(Q,nt){nt!=="id"&&q.push(nt,Q)}),l(z,function(Q){q.push(Q)}),q=q.join(","),N[q])Y=N[q].attr("id");else{x.id=Y=e();var tt=N[q]=W.createElement(d).attr(x).add(W.defs);tt.radAttr=T,tt.stops=[],z.forEach(function(Q){Q[1].indexOf("rgba")===0?(O=B.parse(Q[1]),L=O.get("rgb"),D=O.get("a")):(L=Q[1],D=1);var nt=W.createElement("stop").attr({offset:Q[0],"stop-color":L,"stop-opacity":D}).add(tt);tt.stops.push(nt)})}X="url("+W.url+"#"+Y+")",k.setAttribute(b,X),k.gradient=q,h.toString=function(){return X}}})},s.prototype.css=function(h){var b,k=this.styles,O={},d=this.element,x=!k;if(h.color&&(h.fill=h.color),k&&l(h,function(N,z){k&&k[z]!==N&&(O[z]=N,x=!0)}),x){k&&(h=w(k,O)),h.width===null||h.width==="auto"?delete this.textWidth:d.nodeName.toLowerCase()==="text"&&h.width&&(b=this.textWidth=i(h.width)),this.styles=h,b&&!E&&this.renderer.forExport&&delete h.width;var T=r(h);d.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(N){return T&&delete T[N]}),m(d,T),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),h.textOutline&&this.applyTextOutline(h.textOutline))}return this},s.prototype.dashstyleSetter=function(h){var b,k=this["stroke-width"];if(k==="inherit"&&(k=1),h=h&&h.toLowerCase()){var O=h.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(b=O.length;b--;)O[b]=""+i(O[b])*t(k,NaN);h=O.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",h)}},s.prototype.destroy=function(){var h,b,k=this,O=k.element||{},d=k.renderer,x=O.ownerSVGElement,T=d.isSVG&&O.nodeName==="SPAN"&&k.parentGroup||void 0;if(O.onclick=O.onmouseout=O.onmouseover=O.onmousemove=O.point=null,V(k),k.clipPath&&x){var N=k.clipPath;[].forEach.call(x.querySelectorAll("[clip-path],[CLIP-PATH]"),function(z){z.getAttribute("clip-path").indexOf(N.element.id)>-1&&z.removeAttribute("clip-path")}),k.clipPath=N.destroy()}if(k.stops){for(b=0;b<k.stops.length;b++)k.stops[b].destroy();k.stops.length=0,k.stops=void 0}for(k.safeRemoveChild(O),d.styledMode||k.destroyShadows();T&&T.div&&T.div.childNodes.length===0;)h=T.parentGroup,k.safeRemoveChild(T.div),delete T.div,T=h;k.alignTo&&v(d.alignedObjects,k),l(k,function(z,L){k[L]&&k[L].parentGroup===k&&k[L].destroy&&k[L].destroy(),delete k[L]})},s.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(h){this.safeRemoveChild(h)},this),this.shadows=void 0},s.prototype.dSetter=function(h,b,k){C(h)&&(typeof h[0]=="string"&&(h=this.renderer.pathToSegments(h)),this.pathArray=h,h=h.reduce(function(O,d,x){return d&&d.join?(x?O+" ":"")+d.join(" "):(d||"").toString()},"")),/(NaN| {2}|^$)/.test(h)&&(h="M 0 0"),this[b]!==h&&(k.setAttribute(b,h),this[b]=h)},s.prototype.fadeOut=function(h){var b=this;b.animate({opacity:0},{duration:t(h,150),complete:function(){b.hide()}})},s.prototype.fillSetter=function(h,b,k){typeof h=="string"?k.setAttribute(b,h):h&&this.complexColor(h,b,k)},s.prototype.getBBox=function(h,b){var k,O,d,x,T,N=this,z=N.alignValue,L=N.element,D=N.renderer,j=N.styles,Y=N.textStr,X=D.cache,W=D.cacheKeys,q=L.namespaceURI===N.SVG_NS,tt=t(b,N.rotation,0),Q=D.styledMode?L&&s.prototype.getStyle.call(L,"font-size"):j&&j.fontSize;if(u(Y)&&((T=Y.toString()).indexOf("<")===-1&&(T=T.replace(/[0-9]/g,"0")),T+=["",tt,Q,N.textWidth,z,j&&j.textOverflow,j&&j.fontWeight].join(",")),T&&!h&&(k=X[T]),!k){if(q||D.forExport){try{x=this.fakeTS&&function(Tt){var Et=L.querySelector(".highcharts-text-outline");Et&&m(Et,{display:Tt})},p(x)&&x("none"),k=L.getBBox?w({},L.getBBox()):{width:L.offsetWidth,height:L.offsetHeight,x:0,y:0},p(x)&&x("")}catch(Tt){}(!k||k.width<0)&&(k={x:0,y:0,width:0,height:0})}else k=N.htmlGetBBox();if(D.isSVG&&(O=k.width,d=k.height,q&&(k.height=d={"11px,17":14,"13px,20":16}[""+(Q||"")+",".concat(Math.round(d))]||d),tt)){var nt=Number(L.getAttribute("y")||0)-k.y,lt={right:1,center:.5}[z||0]||0,gt=tt*F,mt=(tt-90)*F,bt=O*Math.cos(gt),yt=O*Math.sin(gt),dt=Math.cos(mt),ot=Math.sin(mt),at=k.x+lt*(O-bt)+nt*dt,ut=at+bt,vt=ut-d*dt,Ct=vt-bt,xt=k.y+nt-lt*yt+nt*ot,wt=xt+yt,Mt=wt-d*ot,At=Mt-yt;k.x=Math.min(at,ut,vt,Ct),k.y=Math.min(xt,wt,Mt,At),k.width=Math.max(at,ut,vt,Ct)-k.x,k.height=Math.max(xt,wt,Mt,At)-k.y}if(T&&(Y===""||k.height>0)){for(;W.length>250;)delete X[W.shift()];X[T]||W.push(T),X[T]=k}}return k},s.prototype.getStyle=function(h){return P.getComputedStyle(this.element||this,"").getPropertyValue(h)},s.prototype.hasClass=function(h){return(""+this.attr("class")).split(" ").indexOf(h)!==-1},s.prototype.hide=function(){return this.attr({visibility:"hidden"})},s.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},s.prototype.init=function(h,b){this.element=b==="span"?g(b):I.createElementNS(this.SVG_NS,b),this.renderer=h,M(this,"afterInit")},s.prototype.on=function(h,b){var k=this.onEvents;return k[h]&&k[h](),k[h]=y(this.element,h,b),this},s.prototype.opacitySetter=function(h,b,k){var O=Number(Number(h).toFixed(3));this.opacity=O,k.setAttribute(b,O)},s.prototype.removeClass=function(h){return this.attr("class",(""+this.attr("class")).replace(f(h)?new RegExp("(^| )".concat(h,"( |$)")):h," ").replace(/ +/g," ").trim())},s.prototype.removeTextOutline=function(){var h=this.element.querySelector("tspan.highcharts-text-outline");h&&this.safeRemoveChild(h)},s.prototype.safeRemoveChild=function(h){var b=h.parentNode;b&&b.removeChild(h)},s.prototype.setRadialReference=function(h){var b=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=h,b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(h,b.radAttr)),this},s.prototype.setTextPath=function(h,b){var k=this;b=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},b);var O=this.renderer.url,d=this.text||this,x=d.textPath,T=b.attributes,N=b.enabled;if(h=h||x&&x.path,x&&x.undo(),h&&N){var z=y(d,"afterModifyTree",function(L){if(h&&N){var D=h.attr("id");D||h.attr("id",D=e());var j={x:0,y:0};u(T.dx)&&(j.dx=T.dx,delete T.dx),u(T.dy)&&(j.dy=T.dy,delete T.dy),d.attr(j),k.attr({transform:""}),k.box&&(k.box=k.box.destroy());var Y=L.nodes.slice(0);L.nodes.length=0,L.nodes[0]={tagName:"textPath",attributes:w(T,{"text-anchor":T.textAnchor,href:""+O+"#".concat(D)}),children:Y}}});d.textPath={path:h,undo:z}}else d.attr({dx:0,dy:0}),delete d.textPath;return this.added&&(d.textCache="",this.renderer.buildText(d)),this},s.prototype.shadow=function(h,b,k){var O,d,x,T,N,z,L=[],D=this,j=D.element,Y=D.oldShadowOptions,X=D.parentGroup,W=X&&X.rotation===90,q={color:"#000000",offsetX:W?-1:1,offsetY:W?-1:1,opacity:.15,width:3},tt=!1;if(h===!0?z=q:typeof h=="object"&&(z=w(q,h)),z&&(z&&Y&&l(z,function(Q,nt){Q!==Y[nt]&&(tt=!0)}),tt&&this.destroyShadows(),this.oldShadowOptions=z),z){if(!this.shadows){for(T=z.opacity/z.width,N=W?"translate(".concat(z.offsetY,", ").concat(z.offsetX,")"):"translate(".concat(z.offsetX,", ").concat(z.offsetY,")"),O=1;O<=z.width;O++)d=j.cloneNode(!1),x=2*z.width+1-2*O,c(d,{stroke:h.color||"#000000","stroke-opacity":T*O,"stroke-width":x,transform:N,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),k&&(c(d,"height",Math.max(c(d,"height")-x,0)),d.cutHeight=x),b?b.element.appendChild(d):j.parentNode&&j.parentNode.insertBefore(d,j),L.push(d);this.shadows=L}}else this.destroyShadows();return this},s.prototype.show=function(h){return h===void 0&&(h=!0),this.attr({visibility:h?"inherit":"visible"})},s.prototype["stroke-widthSetter"]=function(h,b,k){this[b]=h,k.setAttribute(b,h)},s.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var h,b=this.getStyle("stroke-width"),k=0;return b.indexOf("px")===b.length-2?k=i(b):b!==""&&(h=I.createElementNS(A,"rect"),c(h,{width:b,"stroke-width":0}),this.element.parentNode.appendChild(h),k=h.getBBox().width,h.parentNode.removeChild(h)),k},s.prototype.symbolAttr=function(h){var b=this;["x","y","r","start","end","width","height","innerR","anchorX","anchorY","clockwise"].forEach(function(k){b[k]=t(h[k],b[k])}),b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},s.prototype.textSetter=function(h){h!==this.textStr&&(delete this.textPxLength,this.textStr=h,this.added&&this.renderer.buildText(this))},s.prototype.titleSetter=function(h){var b=this.element,k=b.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");b.insertBefore?b.insertBefore(k,b.firstChild):b.appendChild(k),k.textContent=String(t(h,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},s.prototype.toFront=function(){var h=this.element;return h.parentNode.appendChild(h),this},s.prototype.translate=function(h,b){return this.attr({translateX:h,translateY:b})},s.prototype.updateShadows=function(h,b,k){var O=this.shadows;if(O)for(var d=O.length;d--;)k.call(O[d],h==="height"?Math.max(b-(O[d].cutHeight||0),0):h==="d"?this.d:b,h,O[d])},s.prototype.updateTransform=function(){var h=this,b=h.element,k=h.matrix,O=h.rotation,d=O===void 0?0:O,x=h.scaleX,T=h.scaleY,N=h.translateX,z=N===void 0?0:N,L=h.translateY,D=["translate("+z+","+(L===void 0?0:L)+")"];u(k)&&D.push("matrix("+k.join(",")+")"),d&&D.push("rotate("+d+" "+t(this.rotationOriginX,b.getAttribute("x"),0)+" "+t(this.rotationOriginY,b.getAttribute("y")||0)+")"),(u(x)||u(T))&&D.push("scale("+t(x,1)+" "+t(T,1)+")"),D.length&&!(this.text||this).textPath&&b.setAttribute("transform",D.join(" "))},s.prototype.visibilitySetter=function(h,b,k){h==="inherit"?k.removeAttribute(b):this[b]!==h&&k.setAttribute(b,h),this[b]=h},s.prototype.xGetter=function(h){return this.element.nodeName==="circle"&&(h==="x"?h="cx":h==="y"&&(h="cy")),this._defaultGetter(h)},s.prototype.zIndexSetter=function(h,b){var k,O,d,x,T,N=this.renderer,z=this.parentGroup,L=(z||N).element||N.box,D=this.element,j=L===N.box,Y=!1,X=this.added;if(u(h)?(D.setAttribute("data-z-index",h),h=+h,this[b]===h&&(X=!1)):u(this[b])&&D.removeAttribute("data-z-index"),this[b]=h,X){for((h=this.zIndex)&&z&&(z.handleZ=!0),T=(k=L.childNodes).length-1;T>=0&&!Y;T--)d=(O=k[T]).getAttribute("data-z-index"),x=!u(d),O!==D&&(h<0&&x&&!j&&!T?(L.insertBefore(D,k[T]),Y=!0):(i(d)<=h||x&&(!u(h)||h>=0))&&(L.insertBefore(D,k[T+1]||null),Y=!0));Y||(L.insertBefore(D,k[j?3:0]||null),Y=!0)}return Y},s}();return a.prototype.strokeSetter=a.prototype.fillSetter,a.prototype.yGetter=a.prototype.xGetter,a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=a.prototype.rotationOriginYSetter=a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(s,h){this[h]=s,this.doTransform=!0},a}),et(_,"Core/Renderer/RendererRegistry.js",[_["Core/Globals.js"]],function(G){var B;return function(H){var U;H.rendererTypes={},H.getRendererType=function($){return $===void 0&&($=U),H.rendererTypes[$]||H.rendererTypes[U]},H.registerRendererType=function($,Z,V){H.rendererTypes[$]=Z,U&&!V||(U=$,G.Renderer=Z)}}(B||(B={})),B}),et(_,"Core/Renderer/SVG/SVGLabel.js",[_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B){var H,U=this&&this.__extends||(H=function(A,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},H(A,P)},function(A,P){function y(){this.constructor=A}H(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=B.defined,Z=B.extend,V=B.isNumber,F=B.merge,I=B.pick,E=B.removeEvent;return function(A){function P(y,c,g,m,u,v,w,M,C,p){var f,r=A.call(this)||this;return r.paddingLeftSetter=r.paddingSetter,r.paddingRightSetter=r.paddingSetter,r.init(y,"g"),r.textStr=c,r.x=g,r.y=m,r.anchorX=v,r.anchorY=w,r.baseline=C,r.className=p,r.addClass(p==="button"?"highcharts-no-tooltip":"highcharts-label"),p&&r.addClass("highcharts-"+p),r.text=y.text(void 0,0,0,M).attr({zIndex:1}),typeof u=="string"&&((f=/^url\((.*?)\)$/.test(u))||r.renderer.symbols[u])&&(r.symbolKey=u),r.bBox=P.emptyBBox,r.padding=3,r.baselineOffset=0,r.needsBox=y.styledMode||f,r.deferredAttr={},r.alignFactor=0,r}return U(P,A),P.prototype.alignSetter=function(y){var c={left:0,center:.5,right:1}[y];c!==this.alignFactor&&(this.alignFactor=c,this.bBox&&V(this.xSetting)&&this.attr({x:this.xSetting}))},P.prototype.anchorXSetter=function(y,c){this.anchorX=y,this.boxAttr(c,Math.round(y)-this.getCrispAdjust()-this.xSetting)},P.prototype.anchorYSetter=function(y,c){this.anchorY=y,this.boxAttr(c,y-this.ySetting)},P.prototype.boxAttr=function(y,c){this.box?this.box.attr(y,c):this.deferredAttr[y]=c},P.prototype.css=function(y){if(y){var c={};y=F(y),P.textProps.forEach(function(g){y[g]!==void 0&&(c[g]=y[g],delete y[g])}),this.text.css(c),"fontSize"in c||"fontWeight"in c?this.updateTextPadding():("width"in c||"textOverflow"in c)&&this.updateBoxSize()}return G.prototype.css.call(this,y)},P.prototype.destroy=function(){E(this.element,"mouseenter"),E(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),G.prototype.destroy.call(this)},P.prototype.fillSetter=function(y,c){y&&(this.needsBox=!0),this.fill=y,this.boxAttr(c,y)},P.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var y=this.padding,c=I(this.paddingLeft,y);return{width:this.width,height:this.height,x:this.bBox.x-c,y:this.bBox.y-y}},P.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},P.prototype.heightSetter=function(y){this.heightSetting=y},P.prototype.onAdd=function(){this.text.add(this),this.attr({text:I(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&$(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},P.prototype.paddingSetter=function(y,c){V(y)?y!==this[c]&&(this[c]=y,this.updateTextPadding()):this[c]=void 0},P.prototype.rSetter=function(y,c){this.boxAttr(c,y)},P.prototype.shadow=function(y){return y&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(y)),this},P.prototype.strokeSetter=function(y,c){this.stroke=y,this.boxAttr(c,y)},P.prototype["stroke-widthSetter"]=function(y,c){y&&(this.needsBox=!0),this["stroke-width"]=y,this.boxAttr(c,y)},P.prototype["text-alignSetter"]=function(y){this.textAlign=y},P.prototype.textSetter=function(y){y!==void 0&&this.text.attr({text:y}),this.updateTextPadding()},P.prototype.updateBoxSize=function(){var y,c=this.text,g=c.element.style,m={},u=this.padding,v=this.bBox=V(this.widthSetting)&&V(this.heightSetting)&&!this.textAlign||!$(c.textStr)?P.emptyBBox:c.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||v.height||0)+2*u;var w=this.renderer.fontMetrics(g&&g.fontSize,c);if(this.baselineOffset=u+Math.min((this.text.firstLineMetrics||w).b,v.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-w.h)/2),this.needsBox&&!c.textPath){if(!this.box){var M=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();M.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),M.add(this)}y=this.getCrispAdjust(),m.x=y,m.y=(this.baseline?-this.baselineOffset:0)+y,m.width=Math.round(this.width),m.height=Math.round(this.height),this.box.attr(Z(m,this.deferredAttr)),this.deferredAttr={}}},P.prototype.updateTextPadding=function(){var y=this.text;if(!y.textPath){this.updateBoxSize();var c=this.baseline?0:this.baselineOffset,g=I(this.paddingLeft,this.padding);$(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(g+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),g===y.x&&c===y.y||(y.attr("x",g),y.hasBoxWidthChanged&&(this.bBox=y.getBBox(!0)),c!==void 0&&y.attr("y",c)),y.x=g,y.y=c}},P.prototype.widthSetter=function(y){this.widthSetting=V(y)?y:void 0},P.prototype.getPaddedWidth=function(){var y=this.padding,c=I(this.paddingLeft,y),g=I(this.paddingRight,y);return(this.widthSetting||this.bBox.width||0)+c+g},P.prototype.xSetter=function(y){this.x=y,this.alignFactor&&(y-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(y),this.attr("translateX",this.xSetting)},P.prototype.ySetter=function(y){this.ySetting=this.y=Math.round(y),this.attr("translateY",this.ySetting)},P.emptyBBox={width:0,height:0,x:0,y:0},P.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","width"],P}(G)}),et(_,"Core/Renderer/SVG/Symbols.js",[_["Core/Utilities.js"]],function(G){var B=G.defined,H=G.isNumber,U=G.pick;function $(F,I,E,A,P){var y=[];if(P){var c=P.start||0,g=U(P.r,E),m=U(P.r,A||E),u=.001,v=Math.abs((P.end||0)-c-2*Math.PI)<u,w=(P.end||0)-u,M=P.innerR,C=U(P.open,v),p=Math.cos(c),f=Math.sin(c),r=Math.cos(w),l=Math.sin(w),t=U(P.longArc,w-c-Math.PI<u?0:1);y.push(["M",F+g*p,I+m*f],["A",g,m,0,t,U(P.clockwise,1),F+g*r,I+m*l]),B(M)&&y.push(C?["M",F+M*r,I+M*l]:["L",F+M*r,I+M*l],["A",M,M,0,t,B(P.clockwise)?1-P.clockwise:0,F+M*p,I+M*f]),C||y.push(["Z"])}return y}function Z(F,I,E,A,P){return P&&P.r?V(F,I,E,A,P):[["M",F,I],["L",F+E,I],["L",F+E,I+A],["L",F,I+A],["Z"]]}function V(F,I,E,A,P){var y=P&&P.r||0;return[["M",F+y,I],["L",F+E-y,I],["C",F+E,I,F+E,I,F+E,I+y],["L",F+E,I+A-y],["C",F+E,I+A,F+E,I+A,F+E-y,I+A],["L",F+y,I+A],["C",F,I+A,F,I+A,F,I+A-y],["L",F,I+y],["C",F,I,F,I,F+y,I]]}return{arc:$,callout:function(F,I,E,A,P){var y=Math.min(P&&P.r||0,E,A),c=y+6,g=P&&P.anchorX,m=P&&P.anchorY||0,u=V(F,I,E,A,{r:y});return H(g)&&(F+g>=E?m>I+c&&m<I+A-c?u.splice(3,1,["L",F+E,m-6],["L",F+E+6,m],["L",F+E,m+6],["L",F+E,I+A-y]):u.splice(3,1,["L",F+E,A/2],["L",g,m],["L",F+E,A/2],["L",F+E,I+A-y]):F+g<=0?m>I+c&&m<I+A-c?u.splice(7,1,["L",F,m+6],["L",F-6,m],["L",F,m-6],["L",F,I+y]):u.splice(7,1,["L",F,A/2],["L",g,m],["L",F,A/2],["L",F,I+y]):m&&m>A&&g>F+c&&g<F+E-c?u.splice(5,1,["L",g+6,I+A],["L",g,I+A+6],["L",g-6,I+A],["L",F+y,I+A]):m&&m<0&&g>F+c&&g<F+E-c&&u.splice(1,1,["L",g-6,I],["L",g,I-6],["L",g+6,I],["L",E-y,I])),u},circle:function(F,I,E,A){return $(F+E/2,I+A/2,E/2,A/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(F,I,E,A){return[["M",F+E/2,I],["L",F+E,I+A/2],["L",F+E/2,I+A],["L",F,I+A/2],["Z"]]},rect:Z,roundedRect:V,square:Z,triangle:function(F,I,E,A){return[["M",F+E/2,I],["L",F+E,I+A],["L",F,I+A],["Z"]]},"triangle-down":function(F,I,E,A){return[["M",F,I],["L",F+E,I],["L",F+E/2,I+A],["Z"]]}}}),et(_,"Core/Renderer/SVG/TextBuilder.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,H){var U=B.doc,$=B.SVG_NS,Z=B.win,V=H.attr,F=H.extend,I=H.fireEvent,E=H.isString,A=H.objectEach,P=H.pick;return function(){function y(c){var g=c.styles;this.renderer=c.renderer,this.svgElement=c,this.width=c.textWidth,this.textLineHeight=g&&g.lineHeight,this.textOutline=g&&g.textOutline,this.ellipsis=!!(g&&g.textOverflow==="ellipsis"),this.noWrap=!!(g&&g.whiteSpace==="nowrap"),this.fontSize=g&&g.fontSize}return y.prototype.buildSVG=function(){var c=this.svgElement,g=c.element,m=c.renderer,u=P(c.textStr,"").toString(),v=u.indexOf("<")!==-1,w=g.childNodes,M=this.width&&!c.added&&m.box,C=[u,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join(",");if(C!==c.textCache){c.textCache=C,delete c.actualWidth;for(var p=w.length;p--;)g.removeChild(w[p]);if(v||this.ellipsis||this.width||c.textPath||u.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(u))){if(u!==""){M&&M.appendChild(g);var f=new G(u);this.modifyTree(f.nodes),f.addToDOM(g),this.modifyDOM(),this.ellipsis&&(g.textContent||"").indexOf("…")!==-1&&c.attr("title",this.unescapeEntities(c.textStr||"",["<",">"])),M&&M.removeChild(g)}}else g.appendChild(U.createTextNode(this.unescapeEntities(u)));E(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var c,g=this,m=this.svgElement,u=V(m.element,"x");for(m.firstLineMetrics=void 0;(c=m.element.firstChild)&&/^[\s\u200B]*$/.test(c.textContent||" ");)m.element.removeChild(c);[].forEach.call(m.element.querySelectorAll("tspan.highcharts-br"),function(M,C){M.nextSibling&&M.previousSibling&&(C===0&&M.previousSibling.nodeType===1&&(m.firstLineMetrics=m.renderer.fontMetrics(void 0,M.previousSibling)),V(M,{dy:g.getLineHeight(M.nextSibling),x:u}))});var v=this.width||0;if(v){var w=function(M){[].slice.call(M.childNodes).forEach(function(C){C.nodeType===Z.Node.TEXT_NODE?function(p,f){var r=p.textContent||"",l=r.replace(/([^\^])-/g,"$1- ").split(" "),t=!g.noWrap&&(l.length>1||m.element.childNodes.length>1),i=g.getLineHeight(f),o=0,e=m.actualWidth;if(g.ellipsis)r&&g.truncate(p,r,void 0,0,Math.max(0,v-parseInt(g.fontSize||12,10)),function(h,b){return h.substring(0,b)+"…"});else if(t){for(var a=[],s=[];f.firstChild&&f.firstChild!==p;)s.push(f.firstChild),f.removeChild(f.firstChild);for(;l.length;)l.length&&!g.noWrap&&o>0&&(a.push(p.textContent||""),p.textContent=l.join(" ").replace(/- /g,"-")),g.truncate(p,void 0,l,o===0&&e||0,v,function(h,b){return l.slice(0,b).join(" ").replace(/- /g,"-")}),e=m.actualWidth,o++;s.forEach(function(h){f.insertBefore(h,p)}),a.forEach(function(h){f.insertBefore(U.createTextNode(h),p);var b=U.createElementNS($,"tspan");b.textContent="",V(b,{dy:i,x:u}),f.insertBefore(b,p)})}}(C,M):(C.className.baseVal.indexOf("highcharts-br")!==-1&&(m.actualWidth=0),w(C))})};w(m.element)}},y.prototype.getLineHeight=function(c){var g,m=c.nodeType===Z.Node.TEXT_NODE?c.parentElement:c;return this.renderer.styledMode||(g=m&&/(px|em)$/.test(m.style.fontSize)?m.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(g,m||this.svgElement.element).h},y.prototype.modifyTree=function(c){var g=this,m=function(u,v){var w=u.attributes,M=w===void 0?{}:w,C=u.children,p=u.style,f=p===void 0?{}:p,r=u.tagName,l=g.renderer.styledMode;if(r==="b"||r==="strong"?l?M.class="highcharts-strong":f.fontWeight="bold":r!=="i"&&r!=="em"||(l?M.class="highcharts-emphasized":f.fontStyle="italic"),f&&f.color&&(f.fill=f.color),r==="br"){M.class="highcharts-br",u.textContent="";var t=c[v+1];t&&t.textContent&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else r==="a"&&C&&C.some(function(i){return i.tagName==="#text"})&&(u.children=[{children:C,tagName:"tspan"}]);r!=="#text"&&r!=="a"&&(u.tagName="tspan"),F(u,{attributes:M,style:f}),C&&C.filter(function(i){return i.tagName!=="#text"}).forEach(m)};c.forEach(m),I(this.svgElement,"afterModifyTree",{nodes:c})},y.prototype.truncate=function(c,g,m,u,v,w){var M,C,p=this.svgElement,f=p.renderer,r=p.rotation,l=[],t=m?1:0,i=(g||m||"").length,o=i,e=function(a,s){var h=s||a,b=c.parentNode;if(b&&l[h]===void 0)if(b.getSubStringLength)try{l[h]=u+b.getSubStringLength(0,m?h+1:h)}catch(k){}else f.getSpanWidth&&(c.textContent=w(g||m,a),l[h]=u+f.getSpanWidth(p,c));return l[h]};if(p.rotation=0,C=e(c.textContent.length),u+C>v){for(;t<=i;)o=Math.ceil((t+i)/2),m&&(M=w(m,o)),C=e(o,M&&M.length-1),t===i?t=i+1:C>v?i=o-1:t=o;i===0?c.textContent="":g&&i===g.length-1||(c.textContent=M||w(g||m,o))}m&&m.splice(0,o),p.actualWidth=C,p.rotation=r},y.prototype.unescapeEntities=function(c,g){return A(this.renderer.escapes,function(m,u){g&&g.indexOf(m)!==-1||(c=c.toString().replace(new RegExp(m,"g"),u))}),c},y}()}),et(_,"Core/Renderer/SVG/SVGRenderer.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGLabel.js"],_["Core/Renderer/SVG/Symbols.js"],_["Core/Renderer/SVG/TextBuilder.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I){var E,A=H.charts,P=H.deg2rad,y=H.doc,c=H.isFirefox,g=H.isMS,m=H.isWebKit,u=H.noop,v=H.SVG_NS,w=H.symbolSizes,M=H.win,C=I.addEvent,p=I.attr,f=I.createElement,r=I.css,l=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,a=I.isObject,s=I.isString,h=I.merge,b=I.pick,k=I.pInt,O=I.uniqueKey,d=function(){function x(T,N,z,L,D,j,Y){this.alignedObjects=void 0,this.box=void 0,this.boxWrapper=void 0,this.cache=void 0,this.cacheKeys=void 0,this.chartIndex=void 0,this.defs=void 0,this.globalAnimation=void 0,this.gradients=void 0,this.height=void 0,this.imgCount=void 0,this.isSVG=void 0,this.style=void 0,this.url=void 0,this.width=void 0,this.init(T,N,z,L,D,j,Y)}return x.prototype.init=function(T,N,z,L,D,j,Y){var X,W,q=this,tt=q.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),Q=tt.element;Y||tt.css(this.getStyle(L)),T.appendChild(Q),p(T,"dir","ltr"),T.innerHTML.indexOf("xmlns")===-1&&p(Q,"xmlns",this.SVG_NS),q.isSVG=!0,this.box=Q,this.boxWrapper=tt,q.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 10.3.3")),q.defs=this.createElement("defs").add(),q.allowHTML=j,q.forExport=D,q.styledMode=Y,q.gradients={},q.cache={},q.cacheKeys=[],q.imgCount=0,q.setSize(N,z,!1),c&&T.getBoundingClientRect&&((X=function(){r(T,{left:0,top:0}),W=T.getBoundingClientRect(),r(T,{left:Math.ceil(W.left)-W.left+"px",top:Math.ceil(W.top)-W.top+"px"})})(),q.unSubPixelFix=C(M,"resize",X))},x.prototype.definition=function(T){return new G([T]).addToDOM(this.defs.element)},x.prototype.getReferenceURL=function(){if((c||m)&&y.getElementsByTagName("base").length){if(!l(E)){var T=O(),N=new G([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:T},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(T,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body);r(N,{position:"fixed",top:0,left:0,zIndex:9e5});var z=y.elementFromPoint(6,6);E=(z&&z.id)==="hitme",y.body.removeChild(N)}if(E)return M.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},x.prototype.getStyle=function(T){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},T),this.style},x.prototype.setStyle=function(T){this.boxWrapper.css(this.getStyle(T))},x.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},x.prototype.destroy=function(){var T=this,N=T.defs;return T.box=null,T.boxWrapper=T.boxWrapper.destroy(),t(T.gradients||{}),T.gradients=null,N&&(T.defs=N.destroy()),T.unSubPixelFix&&T.unSubPixelFix(),T.alignedObjects=null,null},x.prototype.createElement=function(T){var N=new this.Element;return N.init(this,T),N},x.prototype.getRadialAttr=function(T,N){return{cx:T[0]-T[2]/2+(N.cx||0)*T[2],cy:T[1]-T[2]/2+(N.cy||0)*T[2],r:(N.r||0)*T[2]}},x.prototype.buildText=function(T){new F(T).buildSVG()},x.prototype.getContrast=function(T){var N=B.parse(T).rgba.map(function(L){var D=L/255;return D<=.03928?D/12.92:Math.pow((D+.055)/1.055,2.4)}),z=.2126*N[0]+.7152*N[1]+.0722*N[2];return 1.05/(z+.05)>(z+.05)/.05?"#FFFFFF":"#000000"},x.prototype.button=function(T,N,z,L,D,j,Y,X,W,q){D===void 0&&(D={});var tt=this.label(T,N,z,W,void 0,void 0,q,void 0,"button"),Q=this.styledMode,nt=D.states||{},lt=0;delete(D=h(D)).states;var gt=h({color:"#333333",cursor:"pointer",fontWeight:"normal"},D.style);delete D.style;var mt,bt,yt,dt=G.filterUserAttributes(D);return tt.attr(h({padding:8,r:2},dt)),Q||(dt=h({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},dt),j=h(dt,{fill:"#e6e6e6"},G.filterUserAttributes(j||nt.hover||{})),mt=j.style,delete j.style,Y=h(dt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},G.filterUserAttributes(Y||nt.select||{})),bt=Y.style,delete Y.style,X=h(dt,{style:{color:"#cccccc"}},G.filterUserAttributes(X||nt.disabled||{})),yt=X.style,delete X.style),C(tt.element,g?"mouseover":"mouseenter",function(){lt!==3&&tt.setState(1)}),C(tt.element,g?"mouseout":"mouseleave",function(){lt!==3&&tt.setState(lt)}),tt.setState=function(ot){if(ot!==1&&(tt.state=lt=ot),tt.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][ot||0]),!Q){tt.attr([dt,j,Y,X][ot||0]);var at=[gt,mt,bt,yt][ot||0];a(at)&&tt.css(at)}},Q||(tt.attr(dt).css(i({cursor:"default"},gt)),q&&tt.text.css({pointerEvents:"none"})),tt.on("touchstart",function(ot){return ot.stopPropagation()}).on("click",function(ot){lt!==3&&L.call(tt,ot)})},x.prototype.crispLine=function(T,N,z){z===void 0&&(z="round");var L=T[0],D=T[1];return l(L[1])&&L[1]===D[1]&&(L[1]=D[1]=Math[z](L[1])-N%2/2),l(L[2])&&L[2]===D[2]&&(L[2]=D[2]=Math[z](L[2])+N%2/2),T},x.prototype.path=function(T){var N=this.styledMode?{}:{fill:"none"};return o(T)?N.d=T:a(T)&&i(N,T),this.createElement("path").attr(N)},x.prototype.circle=function(T,N,z){var L=a(T)?T:T===void 0?{}:{x:T,y:N,r:z},D=this.createElement("circle");return D.xSetter=D.ySetter=function(j,Y,X){X.setAttribute("c"+Y,j)},D.attr(L)},x.prototype.arc=function(T,N,z,L,D,j){var Y;a(T)?(N=(Y=T).y,z=Y.r,L=Y.innerR,D=Y.start,j=Y.end,T=Y.x):Y={innerR:L,start:D,end:j};var X=this.symbol("arc",T,N,z,z,Y);return X.r=z,X},x.prototype.rect=function(T,N,z,L,D,j){D=a(T)?T.r:D;var Y=this.createElement("rect"),X=a(T)?T:T===void 0?{}:{x:T,y:N,width:Math.max(z,0),height:Math.max(L,0)};return this.styledMode||(j!==void 0&&(X["stroke-width"]=j,X=Y.crisp(X)),X.fill="none"),D&&(X.r=D),Y.rSetter=function(W,q,tt){Y.r=W,p(tt,{rx:W,ry:W})},Y.rGetter=function(){return Y.r||0},Y.attr(X)},x.prototype.setSize=function(T,N,z){var L=this;L.width=T,L.height=N,L.boxWrapper.animate({width:T,height:N},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(z,!0)?void 0:0}),L.alignElements()},x.prototype.g=function(T){var N=this.createElement("g");return T?N.attr({class:"highcharts-"+T}):N},x.prototype.image=function(T,N,z,L,D,j){var Y={preserveAspectRatio:"none"},X=function(Q,nt){Q.setAttributeNS?Q.setAttributeNS("http://www.w3.org/1999/xlink","href",nt):Q.setAttribute("hc-svg-href",nt)};e(N)&&(Y.x=N),e(z)&&(Y.y=z),e(L)&&(Y.width=L),e(D)&&(Y.height=D);var W=this.createElement("image").attr(Y),q=function(Q){X(W.element,T),j.call(W,Q)};if(j){X(W.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var tt=new M.Image;C(tt,"load",q),tt.src=T,tt.complete&&q({})}else X(W.element,T);return W},x.prototype.symbol=function(T,N,z,L,D,j){var Y,X,W,q,tt=this,Q=/^url\((.*?)\)$/,nt=Q.test(T),lt=!nt&&(this.symbols[T]?T:"circle"),gt=lt&&this.symbols[lt];if(gt)typeof N=="number"&&(X=gt.call(this.symbols,Math.round(N||0),Math.round(z||0),L||0,D||0,j)),Y=this.path(X),tt.styledMode||Y.attr("fill","none"),i(Y,{symbolName:lt||void 0,x:N,y:z,width:L,height:D}),j&&i(Y,j);else if(nt){W=T.match(Q)[1];var mt=Y=this.image(W);mt.imgwidth=b(w[W]&&w[W].width,j&&j.width),mt.imgheight=b(w[W]&&w[W].height,j&&j.height),q=function(bt){return bt.attr({width:bt.width,height:bt.height})},["width","height"].forEach(function(bt){mt[bt+"Setter"]=function(yt,dt){this[dt]=yt;var ot=this,at=ot.alignByTranslate,ut=ot.element,vt=ot.width,Ct=ot.height,xt=ot.imgwidth,wt=ot.imgheight,Mt=this["img"+dt];if(l(Mt)){var At=1;j&&j.backgroundSize==="within"&&vt&&Ct?(At=Math.min(vt/xt,Ct/wt),Mt=Math.round(Mt*At),p(ut,{width:Math.round(xt*At),height:Math.round(wt*At)})):ut&&ut.setAttribute(dt,Mt),at||this.translate(((vt||0)-Mt*At)/2,((Ct||0)-Mt*At)/2)}}}),l(N)&&mt.attr({x:N,y:z}),mt.isImg=!0,l(mt.imgwidth)&&l(mt.imgheight)?q(mt):(mt.attr({width:0,height:0}),f("img",{onload:function(){var bt=A[tt.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),w[W]={width:this.width,height:this.height},mt.imgwidth=this.width,mt.imgheight=this.height,mt.element&&q(mt),this.parentNode&&this.parentNode.removeChild(this),tt.imgCount--,tt.imgCount||!bt||bt.hasLoaded||bt.onload()},src:W}),this.imgCount++)}return Y},x.prototype.clipRect=function(T,N,z,L){var D=O()+"-",j=this.createElement("clipPath").attr({id:D}).add(this.defs),Y=this.rect(T,N,z,L,0).add(j);return Y.id=D,Y.clipPath=j,Y.count=0,Y},x.prototype.text=function(T,N,z,L){var D=this,j={};if(L&&(D.allowHTML||!D.forExport))return D.html(T,N,z);j.x=Math.round(N||0),z&&(j.y=Math.round(z)),l(T)&&(j.text=T);var Y=D.createElement("text").attr(j);return(!L||D.forExport&&!D.allowHTML)&&(Y.xSetter=function(X,W,q){for(var tt=q.getElementsByTagName("tspan"),Q=q.getAttribute(W),nt=0,lt=void 0;nt<tt.length;nt++)(lt=tt[nt]).getAttribute(W)===Q&<.setAttribute(W,X);q.setAttribute(W,X)}),Y},x.prototype.fontMetrics=function(T,N){T=!this.styledMode&&/px/.test(T)||!M.getComputedStyle?T||N&&N.style&&N.style.fontSize||this.style&&this.style.fontSize:N&&$.prototype.getStyle.call(N,"font-size");var z=(T=/px/.test(T)?k(T):12)<24?T+3:Math.round(1.2*T);return{h:z,b:Math.round(.8*z),f:T}},x.prototype.rotCorr=function(T,N,z){var L=T;return N&&z&&(L=Math.max(L*Math.cos(N*P),4)),{x:-T/3*Math.sin(N*P),y:L}},x.prototype.pathToSegments=function(T){for(var N=[],z=[],L={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},D=0;D<T.length;D++)s(z[0])&&e(T[D])&&z.length===L[z[0].toUpperCase()]&&T.splice(D,0,z[0].replace("M","L").replace("m","l")),typeof T[D]=="string"&&(z.length&&N.push(z.slice(0)),z.length=0),z.push(T[D]);return N.push(z.slice(0)),N},x.prototype.label=function(T,N,z,L,D,j,Y,X,W){return new Z(this,T,N,z,L,D,j,Y,X,W)},x.prototype.alignElements=function(){this.alignedObjects.forEach(function(T){return T.align()})},x}();return i(d.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:V,draw:u}),U.registerRendererType("svg",d,!0),d}),et(_,"Core/Renderer/HTML/HTMLElement.js",[_["Core/Globals.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(m,u){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var M in w)w.hasOwnProperty(M)&&(v[M]=w[M])},U(m,u)},function(m,u){function v(){this.constructor=m}U(m,u),m.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}),Z=G.isFirefox,V=G.isMS,F=G.isWebKit,I=G.win,E=H.css,A=H.defined,P=H.extend,y=H.pick,c=H.pInt,g=function(m){function u(){return m!==null&&m.apply(this,arguments)||this}return $(u,m),u.compose=function(v){if(u.composedClasses.indexOf(v)===-1){u.composedClasses.push(v);var w=u.prototype,M=v.prototype;M.getSpanCorrection=w.getSpanCorrection,M.htmlCss=w.htmlCss,M.htmlGetBBox=w.htmlGetBBox,M.htmlUpdateTransform=w.htmlUpdateTransform,M.setSpanRotation=w.setSpanRotation}return v},u.prototype.getSpanCorrection=function(v,w,M){this.xCorr=-v*M,this.yCorr=-w},u.prototype.htmlCss=function(v){var w,M=this,C=M.element.tagName==="SPAN"&&v&&"width"in v,p=y(C&&v.width,void 0);return C&&(delete v.width,M.textWidth=p,w=!0),v&&v.textOverflow==="ellipsis"&&(v.whiteSpace="nowrap",v.overflow="hidden"),M.styles=P(M.styles,v),E(M.element,v),w&&M.htmlUpdateTransform(),M},u.prototype.htmlGetBBox=function(){var v=this.element;return{x:v.offsetLeft,y:v.offsetTop,width:v.offsetWidth,height:v.offsetHeight}},u.prototype.htmlUpdateTransform=function(){if(this.added){var v=this,w=v.renderer,M=v.element,C=v.translateX||0,p=v.translateY||0,f=v.x||0,r=v.y||0,l=v.textAlign||"left",t={left:0,center:.5,right:1}[l],i=v.styles,o=i&&i.whiteSpace;if(E(M,{marginLeft:C,marginTop:p}),!w.styledMode&&v.shadows&&v.shadows.forEach(function(O){E(O,{marginLeft:C+1,marginTop:p+1})}),v.inverted&&[].forEach.call(M.childNodes,function(O){w.invertChild(O,M)}),M.tagName==="SPAN"){var e=v.rotation,a=v.textWidth&&c(v.textWidth),s=[e,l,M.innerHTML,v.textWidth,v.textAlign].join(","),h=void 0,b=!1;if(a!==v.oldTextWidth){var k=v.textPxLength?v.textPxLength:(E(M,{width:"",whiteSpace:o||"nowrap"}),M.offsetWidth);(a>v.oldTextWidth||k>a)&&(/[ \-]/.test(M.textContent||M.innerText)||M.style.textOverflow==="ellipsis")&&(E(M,{width:k>a||e?a+"px":"auto",display:"block",whiteSpace:o||"normal"}),v.oldTextWidth=a,b=!0)}v.hasBoxWidthChanged=b,s!==v.cTT&&(h=w.fontMetrics(M.style.fontSize,M).b,!A(e)||e===(v.oldRotation||0)&&l===v.oldAlign||v.setSpanRotation(e,t,h),v.getSpanCorrection(!A(e)&&v.textPxLength||M.offsetWidth,h,t,e,l)),E(M,{left:f+(v.xCorr||0)+"px",top:r+(v.yCorr||0)+"px"}),v.cTT=s,v.oldRotation=e,v.oldAlign=l}}else this.alignOnAdd=!0},u.prototype.setSpanRotation=function(v,w,M){var C={},p=V&&!/Edge/.test(I.navigator.userAgent)?"-ms-transform":F?"-webkit-transform":Z?"MozTransform":I.opera?"-o-transform":void 0;p&&(C[p]=C.transform="rotate("+v+"deg)",C[p+(Z?"Origin":"-origin")]=C.transformOrigin=100*w+"% "+M+"px",E(this.element,C))},u.composedClasses=[],u}(B);return g}),et(_,"Core/Renderer/HTML/HTMLRenderer.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(P,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var m in g)g.hasOwnProperty(m)&&(c[m]=g[m])},$(P,y)},function(P,y){function c(){this.constructor=P}$(P,y),P.prototype=y===null?Object.create(y):(c.prototype=y.prototype,new c)}),V=U.attr,F=U.createElement,I=U.extend,E=U.pick,A=function(P){function y(){return P!==null&&P.apply(this,arguments)||this}return Z(y,P),y.compose=function(c){if(y.composedClasses.indexOf(c)===-1){y.composedClasses.push(c);var g=y.prototype;c.prototype.html=g.html}return c},y.prototype.html=function(c,g,m){var u=this.createElement("span"),v=u.element,w=u.renderer,M=w.isSVG,C=function(p,f){["opacity","visibility"].forEach(function(r){p[r+"Setter"]=function(l,t,i){var o=p.div?p.div.style:f;B.prototype[r+"Setter"].call(this,l,t,i),o&&(o[t]=l)}}),p.addedSetters=!0};return u.textSetter=function(p){p!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,G.setElementHTML(this.element,E(p,"")),this.textStr=p,u.doTransform=!0)},M&&C(u,u.element.style),u.xSetter=u.ySetter=u.alignSetter=u.rotationSetter=function(p,f){f==="align"?u.alignValue=u.textAlign=p:u[f]=p,u.doTransform=!0},u.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},u.attr({text:c,x:Math.round(g),y:Math.round(m)}).css({position:"absolute"}),w.styledMode||u.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),v.style.whiteSpace="nowrap",u.css=u.htmlCss,M&&(u.add=function(p){var f,r,l=w.box.parentNode,t=[];if(this.parentGroup=p,p){if(!(f=p.div)){for(r=p;r;)t.push(r),r=r.parentGroup;t.reverse().forEach(function(i){var o=V(i.element,"class");function e(h,b){i[b]=h,b==="translateX"?s.left=h+"px":s.top=h+"px",i.doTransform=!0}var a=i.styles||{},s=(f=i.div=i.div||F("div",o?{className:o}:void 0,{position:"absolute",left:(i.translateX||0)+"px",top:(i.translateY||0)+"px",display:i.display,opacity:i.opacity,cursor:a.cursor,pointerEvents:a.pointerEvents,visibility:i.visibility},f||l)).style;I(i,{classSetter:function(h){return function(b){this.element.setAttribute("class",b),h.className=b}}(f),on:function(){return t[0].div&&u.on.apply({element:t[0].div,onEvents:i.onEvents},arguments),i},translateXSetter:e,translateYSetter:e}),i.addedSetters||C(i)})}}else f=l;return f.appendChild(v),u.added=!0,u.alignOnAdd&&u.htmlUpdateTransform(),u}),u},y.composedClasses=[],y}(H);return A}),et(_,"Core/Axis/AxisDefaults.js",[],function(){var G;return function(B){B.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},B.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},B.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},B.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},B.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},B.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(G||(G={})),G}),et(_,"Core/Foundation.js",[_["Core/Utilities.js"]],function(G){var B,H=G.addEvent,U=G.isFunction,$=G.objectEach,Z=G.removeEvent;return function(V){V.registerEventOptions=function(F,I){F.eventOptions=F.eventOptions||{},$(I.events,function(E,A){F.eventOptions[A]!==E&&(F.eventOptions[A]&&(Z(F,A,F.eventOptions[A]),delete F.eventOptions[A]),U(E)&&(F.eventOptions[A]=E,H(F,A,E)))})}}(B||(B={})),B}),et(_,"Core/Axis/Tick.js",[_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,H){var U=B.deg2rad,$=H.clamp,Z=H.correctFloat,V=H.defined,F=H.destroyObjectProperties,I=H.extend,E=H.fireEvent,A=H.isNumber,P=H.merge,y=H.objectEach,c=H.pick;return function(){function g(m,u,v,w,M){this.isNew=!0,this.isNewLabel=!0,this.axis=m,this.pos=u,this.type=v||"",this.parameters=M||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||w||this.addLabel()}return g.prototype.addLabel=function(){var m,u,v,w=this,M=w.axis,C=M.options,p=M.chart,f=M.categories,r=M.logarithmic,l=M.names,t=w.pos,i=c(w.options&&w.options.labels,C.labels),o=M.tickPositions,e=t===o[0],a=t===o[o.length-1],s=(!i.step||i.step===1)&&M.tickInterval===1,h=o.info,b=w.label,k=this.parameters.category||(f?c(f[t],l[t],t):t);r&&A(k)&&(k=Z(r.lin2log(k))),M.dateTime&&(h?m=(u=p.time.resolveDTLFormat(C.dateTimeLabelFormats[!C.grid&&h.higherRanks[t]||h.unitName])).main:A(k)&&(m=M.dateTime.getXDateFormat(k,C.dateTimeLabelFormats||{}))),w.isFirst=e,w.isLast=a;var O={axis:M,chart:p,dateTimeLabelFormat:m,isFirst:e,isLast:a,pos:t,tick:w,tickPositionInfo:h,value:k};E(this,"labelFormat",O);var d=function(N){return i.formatter?i.formatter.call(N,N):i.format?(N.text=M.defaultLabelFormatter.call(N,N),G.format(i.format,N,p)):M.defaultLabelFormatter.call(N,N)},x=d.call(O,O),T=u&&u.list;w.shortenLabel=T?function(){for(v=0;v<T.length;v++)if(I(O,{dateTimeLabelFormat:T[v]}),b.attr({text:d.call(O,O)}),b.getBBox().width<M.getSlotWidth(w)-2*i.padding)return;b.attr({text:""})}:void 0,s&&M._addedPlotLB&&w.moveLabel(x,i),V(b)||w.movedLabel?b&&b.textStr!==x&&!s&&(!b.textWidth||i.style.width||b.styles.width||b.css({width:null}),b.attr({text:x}),b.textPxLength=b.getBBox().width):(w.label=b=w.createLabel({x:0,y:0},x,i),w.rotation=0)},g.prototype.createLabel=function(m,u,v){var w=this.axis,M=w.chart,C=V(u)&&v.enabled?M.renderer.text(u,m.x,m.y,v.useHTML).add(w.labelGroup):null;return C&&(M.styledMode||C.css(P(v.style)),C.textPxLength=C.getBBox().width),C},g.prototype.destroy=function(){F(this,this.axis)},g.prototype.getPosition=function(m,u,v,w){var M=this.axis,C=M.chart,p=w&&C.oldChartHeight||C.chartHeight,f={x:m?Z(M.translate(u+v,void 0,void 0,w)+M.transB):M.left+M.offset+(M.opposite?(w&&C.oldChartWidth||C.chartWidth)-M.right-M.left:0),y:m?p-M.bottom+M.offset-(M.opposite?M.height:0):Z(p-M.translate(u+v,void 0,void 0,w)-M.transB)};return f.y=$(f.y,-1e5,1e5),E(this,"afterGetPosition",{pos:f}),f},g.prototype.getLabelPosition=function(m,u,v,w,M,C,p,f){var r,l,t=this.axis,i=t.transA,o=t.isLinked&&t.linkedParent?t.linkedParent.reversed:t.reversed,e=t.staggerLines,a=t.tickRotCorr||{x:0,y:0},s=w||t.reserveSpaceDefault?0:-t.labelOffset*(t.labelAlign==="center"?.5:1),h={};return r=t.side===0?v.rotation?-8:-v.getBBox().height:t.side===2?a.y+8:Math.cos(v.rotation*U)*(a.y-v.getBBox(!1,0).height/2),V(M.y)&&(r=t.side===0&&t.horiz?M.y+r:M.y),m=m+M.x+s+a.x-(C&&w?C*i*(o?-1:1):0),u=u+r-(C&&!w?C*i*(o?1:-1):0),e&&(l=p/(f||1)%e,t.opposite&&(l=e-l-1),u+=l*(t.labelOffset/e)),h.x=m,h.y=Math.round(u),E(this,"afterGetLabelPosition",{pos:h,tickmarkOffset:C,index:p}),h},g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},g.prototype.getMarkPath=function(m,u,v,w,M,C){return C.crispLine([["M",m,u],["L",m+(M?0:-v),u+(M?v:0)]],w)},g.prototype.handleOverflow=function(m){var u,v,w=this,M=this.axis,C=M.options.labels,p=m.x,f=M.chart.chartWidth,r=M.chart.spacing,l=c(M.labelLeft,Math.min(M.pos,r[3])),t=c(M.labelRight,Math.max(M.isRadial?0:M.pos+M.len,f-r[1])),i=this.label,o=this.rotation,e={left:0,center:.5,right:1}[M.labelAlign||i.attr("align")],a=i.getBBox().width,s=M.getSlotWidth(w),h=e,b={},k=s,O=1;o||C.overflow!=="justify"?o<0&&p-e*a<l?v=Math.round(p/Math.cos(o*U)-l):o>0&&p+e*a>t&&(v=Math.round((f-p)/Math.cos(o*U))):(u=p+(1-e)*a,p-e*a<l?k=m.x+k*(1-e)-l:u>t&&(k=t-m.x+k*e,O=-1),(k=Math.min(s,k))<s&&M.labelAlign==="center"&&(m.x+=O*(s-k-h*(s-Math.min(a,k)))),(a>k||M.autoRotation&&(i.styles||{}).width)&&(v=k)),v&&(w.shortenLabel?w.shortenLabel():(b.width=Math.floor(v)+"px",(C.style||{}).textOverflow||(b.textOverflow="ellipsis"),i.css(b)))},g.prototype.moveLabel=function(m,u){var v,w,M,C=this,p=C.label,f=C.axis,r=f.reversed,l=!1;p&&p.textStr===m?(C.movedLabel=p,l=!0,delete C.label):y(f.ticks,function(t){l||t.isNew||t===C||!t.label||t.label.textStr!==m||(C.movedLabel=t.label,l=!0,t.labelPos=C.movedLabel.xy,delete t.label)}),l||!C.labelPos&&!p||(v=C.labelPos||p.xy,w=f.horiz?r?0:f.width+f.left:v.x,M=f.horiz?v.y:r?f.width+f.left:0,C.movedLabel=C.createLabel({x:w,y:M},m,u),C.movedLabel&&C.movedLabel.attr({opacity:0}))},g.prototype.render=function(m,u,v){var w=this,M=w.axis,C=M.horiz,p=w.pos,f=c(w.tickmarkOffset,M.tickmarkOffset),r=w.getPosition(C,p,f,u),l=r.x,t=r.y,i=C&&l===M.pos+M.len||!C&&t===M.pos?-1:1,o=c(v,w.label&&w.label.newOpacity,1);v=c(v,1),this.isActive=!0,this.renderGridLine(u,v,i),this.renderMark(r,v,i),this.renderLabel(r,u,o,m),w.isNew=!1,E(this,"afterRender")},g.prototype.renderGridLine=function(m,u,v){var w,M=this,C=M.axis,p=C.options,f={},r=M.pos,l=M.type,t=c(M.tickmarkOffset,C.tickmarkOffset),i=C.chart.renderer,o=M.gridLine,e=p.gridLineWidth,a=p.gridLineColor,s=p.gridLineDashStyle;M.type==="minor"&&(e=p.minorGridLineWidth,a=p.minorGridLineColor,s=p.minorGridLineDashStyle),o||(C.chart.styledMode||(f.stroke=a,f["stroke-width"]=e||0,f.dashstyle=s),l||(f.zIndex=1),m&&(u=0),M.gridLine=o=i.path().attr(f).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(C.gridGroup)),o&&(w=C.getPlotLinePath({value:r+t,lineWidth:o.strokeWidth()*v,force:"pass",old:m,acrossPanes:!1}))&&o[m||M.isNew?"attr":"animate"]({d:w,opacity:u})},g.prototype.renderMark=function(m,u,v){var w=this,M=w.axis,C=M.options,p=M.chart.renderer,f=w.type,r=M.tickSize(f?f+"Tick":"tick"),l=m.x,t=m.y,i=c(C[f!=="minor"?"tickWidth":"minorTickWidth"],!f&&M.isXAxis?1:0),o=C[f!=="minor"?"tickColor":"minorTickColor"],e=w.mark,a=!e;r&&(M.opposite&&(r[0]=-r[0]),e||(w.mark=e=p.path().addClass("highcharts-"+(f?f+"-":"")+"tick").add(M.axisGroup),M.chart.styledMode||e.attr({stroke:o,"stroke-width":i})),e[a?"attr":"animate"]({d:w.getMarkPath(l,t,r[0],e.strokeWidth()*v,M.horiz,p),opacity:u}))},g.prototype.renderLabel=function(m,u,v,w){var M=this,C=M.axis,p=C.horiz,f=C.options,r=M.label,l=f.labels,t=l.step,i=c(M.tickmarkOffset,C.tickmarkOffset),o=m.x,e=m.y,a=!0;r&&A(o)&&(r.xy=m=M.getLabelPosition(o,e,r,p,l,i,w,t),M.isFirst&&!M.isLast&&!f.showFirstLabel||M.isLast&&!M.isFirst&&!f.showLastLabel?a=!1:!p||l.step||l.rotation||u||v===0||M.handleOverflow(m),t&&w%t&&(a=!1),a&&A(m.y)?(m.opacity=v,r[M.isNewLabel?"attr":"animate"](m).show(!0),M.isNewLabel=!1):(r.hide(),M.isNewLabel=!0))},g.prototype.replaceMovedLabel=function(){var m,u,v=this,w=v.label,M=v.axis,C=M.reversed;w&&!v.isNew&&(m=M.horiz?C?M.left:M.width+M.left:w.xy.x,u=M.horiz?w.xy.y:C?M.width+M.top:M.top,w.animate({x:m,y:u,opacity:0},void 0,w.destroy),delete v.label),M.isDirty=!0,v.label=v.movedLabel,delete v.movedLabel},g}()}),et(_,"Core/Axis/Axis.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/AxisDefaults.js"],_["Core/Color/Color.js"],_["Core/Defaults.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Axis/Tick.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F){var I=G.animObject,E=U.defaultOptions,A=$.registerEventOptions,P=Z.deg2rad,y=F.arrayMax,c=F.arrayMin,g=F.clamp,m=F.correctFloat,u=F.defined,v=F.destroyObjectProperties,w=F.erase,M=F.error,C=F.extend,p=F.fireEvent,f=F.isArray,r=F.isNumber,l=F.isString,t=F.merge,i=F.normalizeTickInterval,o=F.objectEach,e=F.pick,a=F.relativeLength,s=F.removeEvent,h=F.splat,b=F.syncTimeout,k=function(O,d){return i(d,void 0,void 0,e(O.options.allowDecimals,d<.5||O.tickAmount!==void 0),!!O.tickAmount)};return function(){function O(d,x){this.alternateBands=void 0,this.bottom=void 0,this.chart=void 0,this.closestPointRange=void 0,this.coll=void 0,this.eventOptions=void 0,this.hasNames=void 0,this.hasVisibleSeries=void 0,this.height=void 0,this.isLinked=void 0,this.labelEdge=void 0,this.labelFormatter=void 0,this.left=void 0,this.len=void 0,this.max=void 0,this.maxLabelLength=void 0,this.min=void 0,this.minorTickInterval=void 0,this.minorTicks=void 0,this.minPixelPadding=void 0,this.names=void 0,this.offset=void 0,this.options=void 0,this.overlap=void 0,this.paddedTicks=void 0,this.plotLinesAndBands=void 0,this.plotLinesAndBandsGroups=void 0,this.pointRange=void 0,this.pointRangePadding=void 0,this.pos=void 0,this.positiveValuesOnly=void 0,this.right=void 0,this.series=void 0,this.side=void 0,this.tickAmount=void 0,this.tickInterval=void 0,this.tickmarkOffset=void 0,this.tickPositions=void 0,this.tickRotCorr=void 0,this.ticks=void 0,this.top=void 0,this.transA=void 0,this.transB=void 0,this.translationSlope=void 0,this.userOptions=void 0,this.visible=void 0,this.width=void 0,this.zoomEnabled=void 0,this.init(d,x)}return O.prototype.init=function(d,x){var T=x.isX,N=this;N.chart=d,N.horiz=d.inverted&&!N.isZAxis?!T:T,N.isXAxis=T,N.coll=N.coll||(T?"xAxis":"yAxis"),p(this,"init",{userOptions:x}),N.opposite=e(x.opposite,N.opposite),N.side=e(x.side,N.side,N.horiz?N.opposite?0:2:N.opposite?1:3),N.setOptions(x);var z=this.options,L=z.labels,D=z.type;N.userOptions=x,N.minPixelPadding=0,N.reversed=e(z.reversed,N.reversed),N.visible=z.visible,N.zoomEnabled=z.zoomEnabled,N.hasNames=D==="category"||z.categories===!0,N.categories=z.categories||(N.hasNames?[]:void 0),N.names||(N.names=[],N.names.keys={}),N.plotLinesAndBandsGroups={},N.positiveValuesOnly=!!N.logarithmic,N.isLinked=u(z.linkedTo),N.ticks={},N.labelEdge=[],N.minorTicks={},N.plotLinesAndBands=[],N.alternateBands={},N.len=0,N.minRange=N.userMinRange=z.minRange||z.maxZoom,N.range=z.range,N.offset=z.offset||0,N.max=null,N.min=null;var j=e(z.crosshair,h(d.options.tooltip.crosshairs)[T?0:1]);N.crosshair=j===!0?{}:j,d.axes.indexOf(N)===-1&&(T?d.axes.splice(d.xAxis.length,0,N):d.axes.push(N),d[N.coll].push(N)),N.series=N.series||[],d.inverted&&!N.isZAxis&&T&&N.reversed===void 0&&(N.reversed=!0),N.labelRotation=r(L.rotation)?L.rotation:void 0,A(N,z),p(this,"afterInit")},O.prototype.setOptions=function(d){this.options=t(B.defaultXAxisOptions,this.coll==="yAxis"&&B.defaultYAxisOptions,[B.defaultTopAxisOptions,B.defaultRightAxisOptions,B.defaultBottomAxisOptions,B.defaultLeftAxisOptions][this.side],t(E[this.coll],d)),p(this,"afterSetOptions",{userOptions:d})},O.prototype.defaultLabelFormatter=function(d){var x,T,N=this.axis,z=this.chart.numberFormatter,L=r(this.value)?this.value:NaN,D=N.chart.time,j=N.categories,Y=this.dateTimeLabelFormat,X=E.lang,W=X.numericSymbols,q=X.numericSymbolMagnitude||1e3,tt=N.logarithmic?Math.abs(L):N.tickInterval,Q=W&&W.length;if(j)T="".concat(this.value);else if(Y)T=D.dateFormat(Y,L);else if(Q&&tt>=1e3)for(;Q--&&T===void 0;)tt>=(x=Math.pow(q,Q+1))&&10*L%x==0&&W[Q]!==null&&L!==0&&(T=z(L/x,-1)+W[Q]);return T===void 0&&(T=Math.abs(L)>=1e4?z(L,-1):z(L,-1,void 0,"")),T},O.prototype.getSeriesExtremes=function(){var d,x=this,T=x.chart;p(this,"getSeriesExtremes",null,function(){x.hasVisibleSeries=!1,x.dataMin=x.dataMax=x.threshold=null,x.softThreshold=!x.isXAxis,x.series.forEach(function(N){if(N.visible||!T.options.chart.ignoreHiddenSeries){var z=N.options,L=void 0,D=z.threshold,j=void 0,Y=void 0;if(x.hasVisibleSeries=!0,x.positiveValuesOnly&&D<=0&&(D=null),x.isXAxis)(L=N.xData).length&&(L=x.logarithmic?L.filter(x.validatePositiveValue):L,j=(d=N.getXExtremes(L)).min,Y=d.max,r(j)||j instanceof Date||(L=L.filter(r),j=(d=N.getXExtremes(L)).min,Y=d.max),L.length&&(x.dataMin=Math.min(e(x.dataMin,j),j),x.dataMax=Math.max(e(x.dataMax,Y),Y)));else{var X=N.applyExtremes();r(X.dataMin)&&(j=X.dataMin,x.dataMin=Math.min(e(x.dataMin,j),j)),r(X.dataMax)&&(Y=X.dataMax,x.dataMax=Math.max(e(x.dataMax,Y),Y)),u(D)&&(x.threshold=D),z.softThreshold&&!x.positiveValuesOnly||(x.softThreshold=!1)}}})}),p(this,"afterGetSeriesExtremes")},O.prototype.translate=function(d,x,T,N,z,L){var D=this.linkedParent||this,j=N&&D.old?D.old.min:D.min;if(!r(j))return NaN;var Y=D.minPixelPadding,X=(D.isOrdinal||D.brokenAxis&&D.brokenAxis.hasBreaks||D.logarithmic&&z)&&D.lin2val,W=1,q=0,tt=N&&D.old?D.old.transA:D.transA,Q=0;if(tt||(tt=D.transA),T&&(W*=-1,q=D.len),D.reversed&&(q-=(W*=-1)*(D.sector||D.len)),x)d=d*W+q,Q=(d-=Y)/tt+j,X&&(Q=D.lin2val(Q));else{X&&(d=D.val2lin(d));var nt=W*(d-j)*tt;Q=(D.isRadial?nt:m(nt))+q+W*Y+(r(L)?tt*L:0)}return Q},O.prototype.toPixels=function(d,x){return this.translate(d,!1,!this.horiz,void 0,!0)+(x?0:this.pos)},O.prototype.toValue=function(d,x){return this.translate(d-(x?0:this.pos),!0,!this.horiz,void 0,!0)},O.prototype.getPlotLinePath=function(d){var x,T,N,z,L,D=this,j=D.chart,Y=D.left,X=D.top,W=d.old,q=d.value,tt=d.lineWidth,Q=W&&j.oldChartHeight||j.chartHeight,nt=W&&j.oldChartWidth||j.chartWidth,lt=D.transB,gt=d.translatedValue,mt=d.force;function bt(dt,ot,at){return mt!=="pass"&&(dt<ot||dt>at)&&(mt?dt=g(dt,ot,at):L=!0),dt}var yt={value:q,lineWidth:tt,old:W,force:mt,acrossPanes:d.acrossPanes,translatedValue:gt};return p(this,"getPlotLinePath",yt,function(dt){gt=e(gt,D.translate(q,void 0,void 0,W)),gt=g(gt,-1e5,1e5),x=N=Math.round(gt+lt),T=z=Math.round(Q-gt-lt),r(gt)?D.horiz?(T=X,z=Q-D.bottom,x=N=bt(x,Y,Y+D.width)):(x=Y,N=nt-D.right,T=z=bt(T,X,X+D.height)):(L=!0,mt=!1),dt.path=L&&!mt?null:j.renderer.crispLine([["M",x,T],["L",N,z]],tt||1)}),yt.path},O.prototype.getLinearTickPositions=function(d,x,T){var N,z,L,D=m(Math.floor(x/d)*d),j=m(Math.ceil(T/d)*d),Y=[];if(m(D+d)===D&&(L=20),this.single)return[x];for(N=D;N<=j&&(Y.push(N),(N=m(N+d,L))!==z);)z=N;return Y},O.prototype.getMinorTickInterval=function(){var d=this.options;return d.minorTicks===!0?e(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval},O.prototype.getMinorTickPositions=function(){var d,x=this,T=x.options,N=x.tickPositions,z=x.minorTickInterval,L=x.pointRangePadding||0,D=x.min-L,j=x.max+L,Y=j-D,X=[];if(Y&&Y/z<x.len/3){var W=x.logarithmic;if(W)this.paddedTicks.forEach(function(q,tt,Q){tt&&X.push.apply(X,W.getLogTickPositions(z,Q[tt-1],Q[tt],!0))});else if(x.dateTime&&this.getMinorTickInterval()==="auto")X=X.concat(x.getTimeTicks(x.dateTime.normalizeTimeTickInterval(z),D,j,T.startOfWeek));else for(d=D+(N[0]-D)%z;d<=j&&d!==X[0];d+=z)X.push(d)}return X.length!==0&&x.trimTicks(X),X},O.prototype.adjustForMinRange=function(){var d,x,T,N,z,L,D,j,Y,X=this,W=X.options,q=X.logarithmic,tt=X.min,Q=X.max,nt=0;X.isXAxis&&X.minRange===void 0&&!q&&(u(W.min)||u(W.max)||u(W.floor)||u(W.ceiling)?X.minRange=null:(X.series.forEach(function(lt){if(z=lt.xData,L=lt.xIncrement?1:z.length-1,z.length>1)for(T=L;T>0;T--)N=z[T]-z[T-1],(!nt||N<nt)&&(nt=N)}),X.minRange=Math.min(5*nt,X.dataMax-X.dataMin))),Q-tt<X.minRange&&(x=X.dataMax-X.dataMin>=X.minRange,D=[tt-(d=((Y=X.minRange)-Q+tt)/2),e(W.min,tt-d)],x&&(D[2]=X.logarithmic?X.logarithmic.log2lin(X.dataMin):X.dataMin),j=[(tt=y(D))+Y,e(W.max,tt+Y)],x&&(j[2]=q?q.log2lin(X.dataMax):X.dataMax),(Q=c(j))-tt<Y&&(D[0]=Q-Y,D[1]=e(W.min,Q-Y),tt=y(D))),X.min=tt,X.max=Q},O.prototype.getClosest=function(){var d;return this.categories?d=1:this.series.forEach(function(x){var T=x.closestPointRange,N=x.visible||!x.chart.options.chart.ignoreHiddenSeries;!x.noSharedTooltip&&u(T)&&N&&(d=u(d)?Math.min(d,T):T)}),d},O.prototype.nameToX=function(d){var x,T=f(this.options.categories),N=T?this.categories:this.names,z=d.options.x;return d.series.requireSorting=!1,u(z)||(z=this.options.uniqueNames&&N?T?N.indexOf(d.name):e(N.keys[d.name],-1):d.series.autoIncrement()),z===-1?!T&&N&&(x=N.length):x=z,x!==void 0?(this.names[x]=d.name,this.names.keys[d.name]=x):d.x&&(x=d.x),x},O.prototype.updateNames=function(){var d=this,x=this.names;x.length>0&&(Object.keys(x.keys).forEach(function(T){delete x.keys[T]}),x.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(T){T.xIncrement=null,T.points&&!T.isDirtyData||(d.max=Math.max(d.max,T.xData.length-1),T.processData(),T.generatePoints()),T.data.forEach(function(N,z){var L;N&&N.options&&N.name!==void 0&&(L=d.nameToX(N))!==void 0&&L!==N.x&&(N.x=L,T.xData[z]=L)})}))},O.prototype.setAxisTranslation=function(){var d,x,T=this,N=T.max-T.min,z=T.linkedParent,L=!!T.categories,D=T.isXAxis,j=T.axisPointRange||0,Y=0,X=0,W=T.transA;(D||L||j)&&(d=T.getClosest(),z?(Y=z.minPointOffset,X=z.pointRangePadding):T.series.forEach(function(q){var tt=L?1:D?e(q.options.pointRange,d,0):T.axisPointRange||0,Q=q.options.pointPlacement;if(j=Math.max(j,tt),!T.single||L){var nt=q.is("xrange")?!D:D;Y=Math.max(Y,nt&&l(Q)?0:tt/2),X=Math.max(X,nt&&Q==="on"?0:tt)}}),x=T.ordinal&&T.ordinal.slope&&d?T.ordinal.slope/d:1,T.minPointOffset=Y*=x,T.pointRangePadding=X*=x,T.pointRange=Math.min(j,T.single&&L?1:N),D&&(T.closestPointRange=d)),T.translationSlope=T.transA=W=T.staticScale||T.len/(N+X||1),T.transB=T.horiz?T.left:T.bottom,T.minPixelPadding=W*Y,p(this,"afterSetAxisTranslation")},O.prototype.minFromRange=function(){return this.max-this.range},O.prototype.setTickInterval=function(d){var x,T,N,z,L,D,j=this,Y=j.chart,X=j.logarithmic,W=j.options,q=j.isXAxis,tt=j.isLinked,Q=W.tickPixelInterval,nt=j.categories,lt=j.softThreshold,gt=W.maxPadding,mt=W.minPadding,bt=r(W.tickInterval)&&W.tickInterval>=0?W.tickInterval:void 0,yt=r(j.threshold)?j.threshold:null;if(j.dateTime||nt||tt||this.getTickAmount(),L=e(j.userMin,W.min),D=e(j.userMax,W.max),tt?(j.linkedParent=Y[j.coll][W.linkedTo],T=j.linkedParent.getExtremes(),j.min=e(T.min,T.dataMin),j.max=e(T.max,T.dataMax),W.type!==j.linkedParent.options.type&&M(11,1,Y)):(lt&&u(yt)&&(j.dataMin>=yt?(N=yt,mt=0):j.dataMax<=yt&&(z=yt,gt=0)),j.min=e(L,N,j.dataMin),j.max=e(D,z,j.dataMax)),X&&(j.positiveValuesOnly&&!d&&Math.min(j.min,e(j.dataMin,j.min))<=0&&M(10,1,Y),j.min=m(X.log2lin(j.min),16),j.max=m(X.log2lin(j.max),16)),j.range&&u(j.max)&&(j.userMin=j.min=L=Math.max(j.dataMin,j.minFromRange()),j.userMax=D=j.max,j.range=null),p(j,"foundExtremes"),j.beforePadding&&j.beforePadding(),j.adjustForMinRange(),nt||j.axisPointRange||j.stacking&&j.stacking.usePercentage||tt||!u(j.min)||!u(j.max)||(x=j.max-j.min)&&(!u(L)&&mt&&(j.min-=x*mt),!u(D)&>&&(j.max+=x*gt)),r(j.userMin)||(r(W.softMin)&&W.softMin<j.min&&(j.min=L=W.softMin),r(W.floor)&&(j.min=Math.max(j.min,W.floor))),r(j.userMax)||(r(W.softMax)&&W.softMax>j.max&&(j.max=D=W.softMax),r(W.ceiling)&&(j.max=Math.min(j.max,W.ceiling))),lt&&u(j.dataMin)&&(yt=yt||0,!u(L)&&j.min<yt&&j.dataMin>=yt?j.min=j.options.minRange?Math.min(yt,j.max-j.minRange):yt:!u(D)&&j.max>yt&&j.dataMax<=yt&&(j.max=j.options.minRange?Math.max(yt,j.min+j.minRange):yt)),r(j.min)&&r(j.max)&&!this.chart.polar&&j.min>j.max&&(u(j.options.min)?j.max=j.min:u(j.options.max)&&(j.min=j.max)),j.min===j.max||j.min===void 0||j.max===void 0?j.tickInterval=1:tt&&j.linkedParent&&!bt&&Q===j.linkedParent.options.tickPixelInterval?j.tickInterval=bt=j.linkedParent.tickInterval:j.tickInterval=e(bt,this.tickAmount?(j.max-j.min)/Math.max(this.tickAmount-1,1):void 0,nt?1:(j.max-j.min)*Q/Math.max(j.len,Q)),q&&!d){var dt=j.min!==(j.old&&j.old.min)||j.max!==(j.old&&j.old.max);j.series.forEach(function(at){at.forceCrop=at.forceCropping&&at.forceCropping(),at.processData(dt)}),p(this,"postProcessData",{hasExtremesChanged:dt})}j.setAxisTranslation(),p(this,"initialAxisTranslation"),j.pointRange&&!bt&&(j.tickInterval=Math.max(j.pointRange,j.tickInterval));var ot=e(W.minTickInterval,j.dateTime&&!j.series.some(function(at){return at.noSharedTooltip})?j.closestPointRange:0);!bt&&j.tickInterval<ot&&(j.tickInterval=ot),j.dateTime||j.logarithmic||bt||(j.tickInterval=k(j,j.tickInterval)),this.tickAmount||(j.tickInterval=j.unsquish()),this.setTickPositions()},O.prototype.setTickPositions=function(){var d,x=this,T=this.options,N=T.tickPositions,z=T.tickPositioner,L=this.getMinorTickInterval(),D=this.hasVerticalPanning(),j=this.coll==="colorAxis",Y=(j||!D)&&T.startOnTick,X=(j||!D)&&T.endOnTick,W=[];if(this.tickmarkOffset=this.categories&&T.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=L==="auto"&&this.tickInterval?this.tickInterval/5:L,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||T.allowDecimals!==!1),N)W=N.slice();else if(r(this.min)&&r(this.max)){if(x.ordinal&&x.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(x.dateTime)W=x.getTimeTicks(x.dateTime.normalizeTimeTickInterval(this.tickInterval,T.units),this.min,this.max,T.startOfWeek,x.ordinal&&x.ordinal.positions,this.closestPointRange,!0);else if(x.logarithmic)W=x.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var q=this.tickInterval,tt=q;tt<=2*q&&(W=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&W.length>this.tickAmount);)this.tickInterval=k(this,tt*=1.1);else W=[this.min,this.max],M(19,!1,this.chart);W.length>this.len&&(W=[W[0],W[W.length-1]])[0]===W[1]&&(W.length=1),z&&(this.tickPositions=W,(d=z.apply(x,[this.min,this.max]))&&(W=d))}this.tickPositions=W,this.paddedTicks=W.slice(0),this.trimTicks(W,Y,X),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&W.length<2&&!this.categories&&!this.series.some(function(Q){return Q.is("heatmap")&&Q.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),N||d||this.adjustTickAmount()),p(this,"afterSetTickPositions")},O.prototype.trimTicks=function(d,x,T){var N=d[0],z=d[d.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(p(this,"trimTicks"),!this.isLinked){if(x&&N!==-1/0)this.min=N;else for(;this.min-L>d[0];)d.shift();if(T)this.max=z;else for(;this.max+L<d[d.length-1];)d.pop();d.length===0&&u(N)&&!this.options.tickPositions&&d.push((z+N)/2)}},O.prototype.alignToOthers=function(){var d,x=this,T=[this],N=x.options,z=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(x.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||z)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!x.logarithmic){var D=function(X){var W=X.horiz,q=X.options;return[W?q.left:q.top,q.width,q.height,q.pane].join(",")},j=D(this);this.chart[this.coll].forEach(function(X){var W=X.series;W.length&&W.some(function(q){return q.visible})&&X!==x&&D(X)===j&&(d=!0,T.push(X))})}if(d&&z){T.forEach(function(X){var W=X.getThresholdAlignment(x);r(W)&&L.push(W)});var Y=L.length>1?L.reduce(function(X,W){return X+W},0)/L.length:void 0;T.forEach(function(X){X.thresholdAlignment=Y})}return d},O.prototype.getThresholdAlignment=function(d){if((!r(this.dataMin)||this!==d&&this.series.some(function(T){return T.isDirty||T.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold)){var x=g((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(x=1-x),x}},O.prototype.getTickAmount=function(){var d=this.options,x=d.tickPixelInterval,T=d.tickAmount;!u(d.tickInterval)&&!T&&this.len<x&&!this.isRadial&&!this.logarithmic&&d.startOnTick&&d.endOnTick&&(T=2),!T&&this.alignToOthers()&&(T=Math.ceil(this.len/x)+1),T<4&&(this.finalTickAmt=T,T=5),this.tickAmount=T},O.prototype.adjustTickAmount=function(){var d,x,T,N=this,z=N.finalTickAmt,L=N.max,D=N.min,j=N.options,Y=N.tickPositions,X=N.tickAmount,W=N.thresholdAlignment,q=Y&&Y.length,tt=e(N.threshold,N.softThreshold?0:null),Q=N.tickInterval,nt=function(){return Y.push(m(Y[Y.length-1]+Q))},lt=function(){return Y.unshift(m(Y[0]-Q))};if(r(W)&&(T=W<.5?Math.ceil(W*(X-1)):Math.floor(W*(X-1)),j.reversed&&(T=X-1-T)),N.hasData()&&r(D)&&r(L)){var gt=function(){N.transA*=(q-1)/(X-1),N.min=j.startOnTick?Y[0]:Math.min(D,Y[0]),N.max=j.endOnTick?Y[Y.length-1]:Math.max(L,Y[Y.length-1])};if(r(T)&&r(N.threshold)){for(;Y[T]!==tt||Y.length!==X||Y[0]>D||Y[Y.length-1]<L;){for(Y.length=0,Y.push(N.threshold);Y.length<X;)Y[T]===void 0||Y[T]>N.threshold?lt():nt();if(Q>8*N.tickInterval)break;Q*=2}gt()}else if(q<X){for(;Y.length<X;)Y.length%2||D===tt?nt():lt();gt()}if(u(z)){for(x=d=Y.length;x--;)(z===3&&x%2==1||z<=2&&x>0&&x<d-1)&&Y.splice(x,1);N.finalTickAmt=void 0}}},O.prototype.setScale=function(){var d=this,x=!1,T=!1;d.series.forEach(function(z){x=x||z.isDirtyData||z.isDirty,T=T||z.xAxis&&z.xAxis.isDirty||!1}),d.setAxisSize();var N=d.len!==(d.old&&d.old.len);N||x||T||d.isLinked||d.forceRedraw||d.userMin!==(d.old&&d.old.userMin)||d.userMax!==(d.old&&d.old.userMax)||d.alignToOthers()?(d.stacking&&(d.stacking.resetStacks(),d.stacking.buildStacks()),d.forceRedraw=!1,d.getSeriesExtremes(),d.setTickInterval(),d.isDirty||(d.isDirty=N||d.min!==(d.old&&d.old.min)||d.max!==(d.old&&d.old.max))):d.stacking&&d.stacking.cleanStacks(),x&&d.panningState&&(d.panningState.isDirty=!0),p(this,"afterSetScale")},O.prototype.setExtremes=function(d,x,T,N,z){var L=this,D=L.chart;T=e(T,!0),L.series.forEach(function(j){delete j.kdTree}),z=C(z,{min:d,max:x}),p(L,"setExtremes",z,function(){L.userMin=d,L.userMax=x,L.eventArgs=z,T&&D.redraw(N)})},O.prototype.zoom=function(d,x){var T=this,N=this.dataMin,z=this.dataMax,L=this.options,D=Math.min(N,e(L.min,N)),j=Math.max(z,e(L.max,z)),Y={newMin:d,newMax:x};return p(this,"zoom",Y,function(X){var W=X.newMin,q=X.newMax;W===T.min&&q===T.max||(T.allowZoomOutside||(u(N)&&(W<D&&(W=D),W>j&&(W=j)),u(z)&&(q<D&&(q=D),q>j&&(q=j))),T.displayBtn=W!==void 0||q!==void 0,T.setExtremes(W,q,!1,void 0,{trigger:"zoom"})),X.zoomed=!0}),Y.zoomed},O.prototype.setAxisSize=function(){var d=this.chart,x=this.options,T=x.offsets||[0,0,0,0],N=this.horiz,z=this.width=Math.round(a(e(x.width,d.plotWidth-T[3]+T[1]),d.plotWidth)),L=this.height=Math.round(a(e(x.height,d.plotHeight-T[0]+T[2]),d.plotHeight)),D=this.top=Math.round(a(e(x.top,d.plotTop+T[0]),d.plotHeight,d.plotTop)),j=this.left=Math.round(a(e(x.left,d.plotLeft+T[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-L-D,this.right=d.chartWidth-z-j,this.len=Math.max(N?z:L,0),this.pos=N?j:D},O.prototype.getExtremes=function(){var d=this,x=d.logarithmic;return{min:x?m(x.lin2log(d.min)):d.min,max:x?m(x.lin2log(d.max)):d.max,dataMin:d.dataMin,dataMax:d.dataMax,userMin:d.userMin,userMax:d.userMax}},O.prototype.getThreshold=function(d){var x=this,T=x.logarithmic,N=T?T.lin2log(x.min):x.min,z=T?T.lin2log(x.max):x.max;return d===null||d===-1/0?d=N:d===1/0?d=z:N>d?d=N:z<d&&(d=z),x.translate(d,0,1,0,1)},O.prototype.autoLabelAlign=function(d){var x=(e(d,0)-90*this.side+720)%360,T={align:"center"};return p(this,"autoLabelAlign",T,function(N){x>15&&x<165?N.align="right":x>195&&x<345&&(N.align="left")}),T.align},O.prototype.tickSize=function(d){var x,T=this.options,N=e(T[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0),z=T[d==="tick"?"tickLength":"minorTickLength"];N&&z&&(T[d+"Position"]==="inside"&&(z=-z),x=[z,N]);var L={tickSize:x};return p(this,"afterTickSize",L),L.tickSize},O.prototype.labelMetrics=function(){var d=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[d]&&this.ticks[d].label)},O.prototype.unsquish=function(){var d,x,T=this.options.labels,N=this.horiz,z=this.tickInterval,L=this.len/(((this.categories?1:0)+this.max-this.min)/z),D=T.rotation,j=this.labelMetrics(),Y=Math.max(this.max-this.min,0),X=function(mt){var bt=mt/(L||1);return(bt=bt>1?Math.ceil(bt):1)*z>Y&&mt!==1/0&&L!==1/0&&Y&&(bt=Math.ceil(Y/z)),m(bt*z)},W=z,q=Number.MAX_VALUE;if(N){if(T.staggerLines||(r(D)?x=[D]:L<T.autoRotationLimit&&(x=T.autoRotation)),x)for(var tt=void 0,Q=void 0,nt=0,lt=x;nt<lt.length;nt++){var gt=lt[nt];(gt===D||gt&>>=-90&><=90)&&(Q=(tt=X(Math.abs(j.h/Math.sin(P*gt))))+Math.abs(gt/360))<q&&(q=Q,d=gt,W=tt)}}else W=X(j.h);return this.autoRotation=x,this.labelRotation=e(d,r(D)?D:0),T.step?z:W},O.prototype.getSlotWidth=function(d){var x=this.chart,T=this.horiz,N=this.options.labels,z=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=x.margin[3];if(d&&r(d.slotWidth))return d.slotWidth;if(T&&N.step<2)return N.rotation?0:(this.staggerLines||1)*this.len/z;if(!T){var D=N.style.width;if(D!==void 0)return parseInt(String(D),10);if(L)return L-x.spacing[3]}return .33*x.chartWidth},O.prototype.renderUnsquish=function(){var d,x,T,N,z,L=this.chart,D=L.renderer,j=this.tickPositions,Y=this.ticks,X=this.options.labels,W=X.style,q=this.horiz,tt=this.getSlotWidth(),Q=Math.max(1,Math.round(tt-2*X.padding)),nt={},lt=this.labelMetrics(),gt=W.textOverflow,mt=0;if(l(X.rotation)||(nt.rotation=X.rotation||0),j.forEach(function(bt){var yt=Y[bt];yt.movedLabel&&yt.replaceMovedLabel(),yt&&yt.label&&yt.label.textPxLength>mt&&(mt=yt.label.textPxLength)}),this.maxLabelLength=mt,this.autoRotation)mt>Q&&mt>lt.h?nt.rotation=this.labelRotation:this.labelRotation=0;else if(tt&&(d=Q,!gt))for(x="clip",N=j.length;!q&&N--;)z=j[N],(T=Y[z].label)&&(T.styles&&T.styles.textOverflow==="ellipsis"?T.css({textOverflow:"clip"}):T.textPxLength>tt&&T.css({width:tt+"px"}),T.getBBox().height>this.len/j.length-(lt.h-lt.f)&&(T.specificTextOverflow="ellipsis"));nt.rotation&&(d=mt>.5*L.chartHeight?.33*L.chartHeight:mt,gt||(x="ellipsis")),this.labelAlign=X.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(nt.align=this.labelAlign),j.forEach(function(bt){var yt=Y[bt],dt=yt&&yt.label,ot=W.width,at={};dt&&(dt.attr(nt),yt.shortenLabel?yt.shortenLabel():d&&!ot&&W.whiteSpace!=="nowrap"&&(d<dt.textPxLength||dt.element.tagName==="SPAN")?(at.width=d+"px",gt||(at.textOverflow=dt.specificTextOverflow||x),dt.css(at)):dt.styles&&dt.styles.width&&!at.width&&!ot&&dt.css({width:null}),delete dt.specificTextOverflow,yt.rotation=nt.rotation)},this),this.tickRotCorr=D.rotCorr(lt.b,this.labelRotation||0,this.side!==0)},O.prototype.hasData=function(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&u(this.min)&&u(this.max)},O.prototype.addTitle=function(d){var x,T=this,N=T.chart.renderer,z=T.horiz,L=T.opposite,D=T.options.title,j=T.chart.styledMode;T.axisTitle||((x=D.textAlign)||(x=(z?{low:"left",middle:"center",high:"right"}:{low:L?"right":"left",middle:"center",high:L?"left":"right"})[D.align]),T.axisTitle=N.text(D.text||"",0,0,D.useHTML).attr({zIndex:7,rotation:D.rotation,align:x}).addClass("highcharts-axis-title"),j||T.axisTitle.css(t(D.style)),T.axisTitle.add(T.axisGroup),T.axisTitle.isNew=!0),j||D.style.width||T.isRadial||T.axisTitle.css({width:T.len+"px"}),T.axisTitle[d?"show":"hide"](d)},O.prototype.generateTick=function(d){var x=this.ticks;x[d]?x[d].addLabel():x[d]=new V(this,d)},O.prototype.getOffset=function(){var d,x,T,N,z=this,L=this,D=L.chart,j=L.horiz,Y=L.options,X=L.side,W=L.ticks,q=L.tickPositions,tt=L.coll,Q=L.axisParent,nt=D.renderer,lt=D.inverted&&!L.isZAxis?[1,0,3,2][X]:X,gt=L.hasData(),mt=Y.title,bt=Y.labels,yt=D.axisOffset,dt=D.clipOffset,ot=[-1,1,1,-1][X],at=Y.className,ut=0,vt=0,Ct=0;if(L.showAxis=d=gt||Y.showEmpty,L.staggerLines=L.horiz&&bt.staggerLines||void 0,!L.axisGroup){var xt=function(At,Tt,Et){return nt.g(At).attr({zIndex:Et}).addClass("highcharts-".concat(tt.toLowerCase()).concat(Tt," ")+(z.isRadial?"highcharts-radial-axis".concat(Tt," "):"")+(at||"")).add(Q)};L.gridGroup=xt("grid","-grid",Y.gridZIndex),L.axisGroup=xt("axis","",Y.zIndex),L.labelGroup=xt("axis-labels","-labels",bt.zIndex)}if(gt||L.isLinked?(q.forEach(function(At){L.generateTick(At)}),L.renderUnsquish(),L.reserveSpaceDefault=X===0||X===2||{1:"left",3:"right"}[X]===L.labelAlign,e(bt.reserveSpace,L.labelAlign==="center"||null,L.reserveSpaceDefault)&&q.forEach(function(At){Ct=Math.max(W[At].getLabelSize(),Ct)}),L.staggerLines&&(Ct*=L.staggerLines),L.labelOffset=Ct*(L.opposite?-1:1)):o(W,function(At,Tt){At.destroy(),delete W[Tt]}),mt&&mt.text&&mt.enabled!==!1&&(L.addTitle(d),d&&mt.reserveSpace!==!1&&(L.titleOffset=ut=L.axisTitle.getBBox()[j?"height":"width"],x=mt.offset,vt=u(x)?0:e(mt.margin,j?5:10))),L.renderLine(),L.offset=ot*e(Y.offset,yt[X]?yt[X]+(Y.margin||0):0),L.tickRotCorr=L.tickRotCorr||{x:0,y:0},N=X===0?-L.labelMetrics().h:X===2?L.tickRotCorr.y:0,T=Math.abs(Ct)+vt,Ct&&(T-=N,T+=ot*(j?e(bt.y,L.tickRotCorr.y+8*ot):bt.x)),L.axisTitleMargin=e(x,T),L.getMaxLabelDimensions&&(L.maxLabelDimensions=L.getMaxLabelDimensions(W,q)),tt!=="colorAxis"){var wt=this.tickSize("tick");yt[X]=Math.max(yt[X],(L.axisTitleMargin||0)+ut+ot*L.offset,T,q&&q.length&&wt?wt[0]+ot*L.offset:0);var Mt=!L.axisLine||Y.offset?0:2*Math.floor(L.axisLine.strokeWidth()/2);dt[lt]=Math.max(dt[lt],Mt)}p(this,"afterGetOffset")},O.prototype.getLinePath=function(d){var x=this.chart,T=this.opposite,N=this.offset,z=this.horiz,L=this.left+(T?this.width:0)+N,D=x.chartHeight-this.bottom-(T?this.height:0)+N;return T&&(d*=-1),x.renderer.crispLine([["M",z?this.left:L,z?D:this.top],["L",z?x.chartWidth-this.right:L,z?D:x.chartHeight-this.bottom]],d)},O.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},O.prototype.getTitlePosition=function(){var d=this.horiz,x=this.left,T=this.top,N=this.len,z=this.options.title,L=d?x:T,D=this.opposite,j=this.offset,Y=z.x,X=z.y,W=this.axisTitle,q=this.chart.renderer.fontMetrics(z.style.fontSize,W),tt=W?Math.max(W.getBBox(!1,0).height-q.h-1,0):0,Q={low:L+(d?0:N),middle:L+N/2,high:L+(d?N:0)}[z.align],nt=(d?T+this.height:x)+(d?1:-1)*(D?-1:1)*(this.axisTitleMargin||0)+[-tt,tt,q.f,-tt][this.side],lt={x:d?Q+Y:nt+(D?this.width:0)+j+Y,y:d?nt+X-(D?this.height:0)+j:Q+X};return p(this,"afterGetTitlePosition",{titlePosition:lt}),lt},O.prototype.renderMinorTick=function(d,x){var T=this.minorTicks;T[d]||(T[d]=new V(this,d,"minor")),x&&T[d].isNew&&T[d].render(null,!0),T[d].render(null,!1,1)},O.prototype.renderTick=function(d,x,T){var N=this,z=N.isLinked,L=N.ticks;(!z||d>=N.min&&d<=N.max||N.grid&&N.grid.isColumn)&&(L[d]||(L[d]=new V(N,d)),T&&L[d].isNew&&L[d].render(x,!0,-1),L[d].render(x))},O.prototype.render=function(){var d,x,T=this,N=T.chart,z=T.logarithmic,L=N.renderer,D=T.options,j=T.isLinked,Y=T.tickPositions,X=T.axisTitle,W=T.ticks,q=T.minorTicks,tt=T.alternateBands,Q=D.stackLabels,nt=D.alternateGridColor,lt=T.tickmarkOffset,gt=T.axisLine,mt=T.showAxis,bt=I(L.globalAnimation);if(T.labelEdge.length=0,T.overlap=!1,[W,q,tt].forEach(function(ot){o(ot,function(at){at.isActive=!1})}),T.hasData()||j){var yt=T.chart.hasRendered&&T.old&&r(T.old.min);T.minorTickInterval&&!T.categories&&T.getMinorTickPositions().forEach(function(ot){T.renderMinorTick(ot,yt)}),Y.length&&(Y.forEach(function(ot,at){T.renderTick(ot,at,yt)}),lt&&(T.min===0||T.single)&&(W[-1]||(W[-1]=new V(T,-1,null,!0)),W[-1].render(-1))),nt&&Y.forEach(function(ot,at){x=Y[at+1]!==void 0?Y[at+1]+lt:T.max-lt,at%2==0&&ot<T.max&&x<=T.max+(N.polar?-lt:lt)&&(tt[ot]||(tt[ot]=new Z.PlotLineOrBand(T)),d=ot+lt,tt[ot].options={from:z?z.lin2log(d):d,to:z?z.lin2log(x):x,color:nt,className:"highcharts-alternate-grid"},tt[ot].render(),tt[ot].isActive=!0)}),T._addedPlotLB||(T._addedPlotLB=!0,(D.plotLines||[]).concat(D.plotBands||[]).forEach(function(ot){T.addPlotBandOrLine(ot)}))}if([W,q,tt].forEach(function(ot){var at=[],ut=bt.duration;o(ot,function(vt,Ct){vt.isActive||(vt.render(Ct,!1,0),vt.isActive=!1,at.push(Ct))}),b(function(){for(var vt=at.length;vt--;)ot[at[vt]]&&!ot[at[vt]].isActive&&(ot[at[vt]].destroy(),delete ot[at[vt]])},ot!==tt&&N.hasRendered&&ut?ut:0)}),gt&&(gt[gt.isPlaced?"animate":"attr"]({d:this.getLinePath(gt.strokeWidth())}),gt.isPlaced=!0,gt[mt?"show":"hide"](mt)),X&&mt){var dt=T.getTitlePosition();X[X.isNew?"attr":"animate"](dt),X.isNew=!1}Q&&Q.enabled&&T.stacking&&T.stacking.renderStackTotals(),T.old={len:T.len,max:T.max,min:T.min,transA:T.transA,userMax:T.userMax,userMin:T.userMin},T.isDirty=!1,p(this,"afterRender")},O.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})},O.prototype.getKeepProps=function(){return this.keepProps||O.keepProps},O.prototype.destroy=function(d){var x=this,T=x.plotLinesAndBands,N=this.eventOptions;if(p(this,"destroy",{keepEvents:d}),d||s(x),[x.ticks,x.minorTicks,x.alternateBands].forEach(function(D){v(D)}),T)for(var z=T.length;z--;)T[z].destroy();for(var L in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(D){x[D]&&(x[D]=x[D].destroy())}),x.plotLinesAndBandsGroups)x.plotLinesAndBandsGroups[L]=x.plotLinesAndBandsGroups[L].destroy();o(x,function(D,j){x.getKeepProps().indexOf(j)===-1&&delete x[j]}),this.eventOptions=N},O.prototype.drawCrosshair=function(d,x){var T,N,z,L,D=this.crosshair,j=e(D&&D.snap,!0),Y=this.chart,X=this.cross;if(p(this,"drawCrosshair",{e:d,point:x}),d||(d=this.cross&&this.cross.e),D&&(u(x)||!j)!==!1){if(j?u(x)&&(N=e(this.coll!=="colorAxis"?x.crosshairPos:null,this.isXAxis?x.plotX:this.len-x.plotY)):N=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),u(N)&&(L={value:x&&(this.isXAxis?x.x:e(x.stackY,x.y)),translatedValue:N},Y.polar&&C(L,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:x}),T=this.getPlotLinePath(L)||null),!u(T))return void this.hideCrosshair();z=this.categories&&!this.isRadial,X||(this.cross=X=Y.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(z?"category ":"thin ")+(D.className||"")).attr({zIndex:e(D.zIndex,2)}).add(),Y.styledMode||(X.attr({stroke:D.color||(z?H.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(D.width,1)}).css({"pointer-events":"none"}),D.dashStyle&&X.attr({dashstyle:D.dashStyle}))),X.show().attr({d:T}),z&&!D.width&&X.attr({"stroke-width":this.transA}),this.cross.e=d}else this.hideCrosshair();p(this,"afterDrawCrosshair",{e:d,point:x})},O.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),p(this,"afterHideCrosshair")},O.prototype.hasVerticalPanning=function(){var d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))},O.prototype.validatePositiveValue=function(d){return r(d)&&d>0},O.prototype.update=function(d,x){var T=this.chart;d=t(this.userOptions,d),this.destroy(!0),this.init(T,d),T.isDirtyBox=!0,e(x,!0)&&T.redraw()},O.prototype.remove=function(d){for(var x=this.chart,T=this.coll,N=this.series,z=N.length;z--;)N[z]&&N[z].remove(!1);w(x.axes,this),w(x[T],this),x[T].forEach(function(L,D){L.options.index=L.userOptions.index=D}),this.destroy(),x.isDirtyBox=!0,e(d,!0)&&x.redraw()},O.prototype.setTitle=function(d,x){this.update({title:d},x)},O.prototype.setCategories=function(d,x){this.update({categories:d},x)},O.defaultOptions=B.defaultXAxisOptions,O.keepProps=["extKey","hcEvents","names","series","userMax","userMin"],O}()}),et(_,"Core/Axis/DateTimeAxis.js",[_["Core/Utilities.js"]],function(G){var B,H=G.addEvent,U=G.getMagnitude,$=G.normalizeTickInterval,Z=G.timeUnits;return function(V){var F=[];function I(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function E(P){var y=this;P.userOptions.type==="datetime"?y.dateTime||(y.dateTime=new A(y)):y.dateTime=void 0}V.compose=function(P){return F.indexOf(P)===-1&&(F.push(P),P.keepProps.push("dateTime"),P.prototype.getTimeTicks=I,H(P,"init",E)),P};var A=function(){function P(y){this.axis=y}return P.prototype.normalizeTimeTickInterval=function(y,c){var g,m=c||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],u=m[m.length-1],v=Z[u[0]],w=u[1];for(g=0;g<m.length&&(u=m[g],v=Z[u[0]],w=u[1],!(m[g+1]&&y<=(v*w[w.length-1]+Z[m[g+1][0]])/2));g++);return v===Z.year&&y<5*v&&(w=[1,2,5]),{unitRange:v,count:$(y/v,w,u[0]==="year"?Math.max(U(y/v),1):1),unitName:u[0]}},P.prototype.getXDateFormat=function(y,c){var g=this.axis,m=g.chart.time;return g.closestPointRange?m.getDateFormat(g.closestPointRange,y,g.options.startOfWeek,c)||m.resolveDTLFormat(c.year).main:m.resolveDTLFormat(c.day).main},P}();V.Additions=A}(B||(B={})),B}),et(_,"Core/Axis/LogarithmicAxis.js",[_["Core/Utilities.js"]],function(G){var B,H=G.addEvent,U=G.normalizeTickInterval,$=G.pick;return function(Z){var V=[];function F(A){var P=this,y=A.userOptions,c=P.logarithmic;y.type!=="logarithmic"?P.logarithmic=void 0:c||(c=P.logarithmic=new E(P))}function I(){var A=this,P=A.logarithmic;P&&(A.lin2val=function(y){return P.lin2log(y)},A.val2lin=function(y){return P.log2lin(y)})}Z.compose=function(A){return V.indexOf(A)===-1&&(V.push(A),A.keepProps.push("logarithmic"),H(A,"init",F),H(A,"afterInit",I)),A};var E=function(){function A(P){this.axis=P}return A.prototype.getLogTickPositions=function(P,y,c,g){var m=this,u=m.axis,v=u.len,w=u.options,M=[];if(g||(m.minorAutoInterval=void 0),P>=.5)P=Math.round(P),M=u.getLinearTickPositions(P,y,c);else if(P>=.08){var C,p=void 0,f=void 0,r=void 0,l=void 0,t=void 0,i=void 0;for(C=P>.3?[1,2,4]:P>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],p=Math.floor(y);p<c+1&&!i;p++)for(r=C.length,f=0;f<r&&!i;f++)(l=m.log2lin(m.lin2log(p)*C[f]))>y&&(!g||t<=c)&&t!==void 0&&M.push(t),t>c&&(i=!0),t=l}else{var o=m.lin2log(y),e=m.lin2log(c),a=g?u.getMinorTickInterval():w.tickInterval,s=a==="auto"?null:a,h=w.tickPixelInterval/(g?5:1),b=g?v/u.tickPositions.length:v;P=$(s,m.minorAutoInterval,(e-o)*h/(b||1)),P=U(P),M=u.getLinearTickPositions(P,o,e).map(m.log2lin),g||(m.minorAutoInterval=P/5)}return g||(u.tickInterval=P),M},A.prototype.lin2log=function(P){return Math.pow(10,P)},A.prototype.log2lin=function(P){return Math.log(P)/Math.LN10},A}();Z.Additions=E}(B||(B={})),B}),et(_,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[_["Core/Utilities.js"]],function(G){var B,H=G.erase,U=G.extend,$=G.isNumber;return function(Z){var V,F=[];Z.compose=function(E,A){return V||(V=E),F.indexOf(A)===-1&&(F.push(A),U(A.prototype,I.prototype)),A};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(A,P,y){y===void 0&&(y=this.options);var c,g,m=this.getPlotLinePath({value:P,force:!0,acrossPanes:y.acrossPanes}),u=[],v=this.horiz,w=!$(this.min)||!$(this.max)||A<this.min&&P<this.min||A>this.max&&P>this.max,M=this.getPlotLinePath({value:A,force:!0,acrossPanes:y.acrossPanes}),C=1;if(M&&m)for(w&&(g=M.toString()===m.toString(),C=0),c=0;c<M.length;c+=2){var p=M[c],f=M[c+1],r=m[c],l=m[c+1];p[0]!=="M"&&p[0]!=="L"||f[0]!=="M"&&f[0]!=="L"||r[0]!=="M"&&r[0]!=="L"||l[0]!=="M"&&l[0]!=="L"||(v&&r[1]===p[1]?(r[1]+=C,l[1]+=C):v||r[2]!==p[2]||(r[2]+=C,l[2]+=C),u.push(["M",p[1],p[2]],["L",f[1],f[2]],["L",l[1],l[2]],["L",r[1],r[2]],["Z"])),u.isFlat=g}else M=null;return u},E.prototype.addPlotBand=function(A){return this.addPlotBandOrLine(A,"plotBands")},E.prototype.addPlotLine=function(A){return this.addPlotBandOrLine(A,"plotLines")},E.prototype.addPlotBandOrLine=function(A,P){var y=this,c=this.userOptions,g=new V(this,A);if(this.visible&&(g=g.render()),g){if(this._addedPlotLB||(this._addedPlotLB=!0,(c.plotLines||[]).concat(c.plotBands||[]).forEach(function(u){y.addPlotBandOrLine(u)})),P){var m=c[P]||[];m.push(A),c[P]=m}this.plotLinesAndBands.push(g)}return g},E.prototype.removePlotBandOrLine=function(A){var P=this.plotLinesAndBands,y=this.options,c=this.userOptions;if(P){for(var g=P.length;g--;)P[g].id===A&&P[g].destroy();[y.plotLines||[],c.plotLines||[],y.plotBands||[],c.plotBands||[]].forEach(function(m){for(g=m.length;g--;)(m[g]||{}).id===A&&H(m,m[g])})}},E.prototype.removePlotBand=function(A){this.removePlotBandOrLine(A)},E.prototype.removePlotLine=function(A){this.removePlotBandOrLine(A)},E}()}(B||(B={})),B}),et(_,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[_["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],_["Core/Utilities.js"]],function(G,B){var H=B.arrayMax,U=B.arrayMin,$=B.defined,Z=B.destroyObjectProperties,V=B.erase,F=B.fireEvent,I=B.merge,E=B.objectEach,A=B.pick;return function(){function P(y,c){this.axis=y,c&&(this.options=c,this.id=c.id)}return P.compose=function(y){return G.compose(P,y)},P.prototype.render=function(){F(this,"render");var y,c=this,g=c.axis,m=g.horiz,u=g.logarithmic,v=c.options,w=v.color,M=A(v.zIndex,0),C=v.events,p={},f=g.chart.renderer,r=v.label,l=c.label,t=v.to,i=v.from,o=v.value,e=c.svgElem,a=[],s=$(i)&&$(t),h=$(o),b=!e,k={class:"highcharts-plot-"+(s?"band ":"line ")+(v.className||"")},O=s?"bands":"lines";if(u&&(i=u.log2lin(i),t=u.log2lin(t),o=u.log2lin(o)),g.chart.styledMode||(h?(k.stroke=w||"#999999",k["stroke-width"]=A(v.width,1),v.dashStyle&&(k.dashstyle=v.dashStyle)):s&&(k.fill=w||"#e6ebf5",v.borderWidth&&(k.stroke=v.borderColor,k["stroke-width"]=v.borderWidth))),p.zIndex=M,O+="-"+M,(y=g.plotLinesAndBandsGroups[O])||(g.plotLinesAndBandsGroups[O]=y=f.g("plot-"+O).attr(p).add()),b&&(c.svgElem=e=f.path().attr(k).add(y)),h)a=g.getPlotLinePath({value:o,lineWidth:e.strokeWidth(),acrossPanes:v.acrossPanes});else{if(!s)return;a=g.getPlotBandPath(i,t,v)}return!c.eventsAdded&&C&&(E(C,function(d,x){e.on(x,function(T){C[x].apply(c,[T])})}),c.eventsAdded=!0),(b||!e.d)&&a&&a.length?e.attr({d:a}):e&&(a?(e.show(),e.animate({d:a})):e.d&&(e.hide(),l&&(c.label=l=l.destroy()))),r&&($(r.text)||$(r.formatter))&&a&&a.length&&g.width>0&&g.height>0&&!a.isFlat?(r=I({align:m&&s&&"center",x:m?!s&&4:10,verticalAlign:!m&&s&&"middle",y:m?s?16:10:s?6:-4,rotation:m&&!s&&90},r),this.renderLabel(r,a,s,M)):l&&l.hide(),c},P.prototype.renderLabel=function(y,c,g,m){var u=this,v=u.axis,w=v.chart.renderer,M=u.label;M||(u.label=M=w.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(g?"band":"line")+"-label "+(y.className||""),zIndex:m}).add(),v.chart.styledMode||M.css(I({textOverflow:"ellipsis"},y.style)));var C=c.xBounds||[c[0][1],c[1][1],g?c[2][1]:c[0][1]],p=c.yBounds||[c[0][2],c[1][2],g?c[2][2]:c[0][2]],f=U(C),r=U(p);if(M.align(y,!1,{x:f,y:r,width:H(C)-f,height:H(p)-r}),!M.alignValue||M.alignValue==="left"){var l=y.clip?v.width:v.chart.chartWidth;M.css({width:(M.rotation===90?v.height-(M.alignAttr.y-v.top):l-(M.alignAttr.x-v.left))+"px"})}M.show(!0)},P.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},P.prototype.destroy=function(){V(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},P}()}),et(_,"Core/Tooltip.js",[_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=G.format,V=B.doc,F=H.distribute,I=$.clamp,E=$.css,A=$.discardElement,P=$.extend,y=$.fireEvent,c=$.isArray,g=$.isNumber,m=$.isString,u=$.merge,v=$.pick,w=$.splat,M=$.syncTimeout;return function(){function C(p,f){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=p,this.init(p,f)}return C.prototype.applyFilter=function(){var p=this.chart;p.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+p.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},C.prototype.bodyFormatter=function(p){return p.map(function(f){var r=f.series.tooltipOptions;return(r[(f.point.formatPrefix||"point")+"Formatter"]||f.point.tooltipFormatter).call(f.point,r[(f.point.formatPrefix||"point")+"Format"]||"")})},C.prototype.cleanSplit=function(p){this.chart.series.forEach(function(f){var r=f&&f.tt;r&&(!r.isActive||p?f.tt=r.destroy():r.isActive=!1)})},C.prototype.defaultFormatter=function(p){var f,r=this.points||w(this);return(f=(f=[p.tooltipFooterHeaderFormatter(r[0])]).concat(p.bodyFormatter(r))).push(p.tooltipFooterHeaderFormatter(r[0],!0)),f},C.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),A(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},C.prototype.getAnchor=function(p,f){var r,l=this.chart,t=l.pointer,i=l.inverted,o=l.plotTop,e=l.plotLeft;if((p=w(p))[0].series&&p[0].series.yAxis&&!p[0].series.yAxis.options.reversedStacks&&(p=p.slice().reverse()),this.followPointer&&f)f.chartX===void 0&&(f=t.normalize(f)),r=[f.chartX-e,f.chartY-o];else if(p[0].tooltipPos)r=p[0].tooltipPos;else{var a=0,s=0;p.forEach(function(h){var b=h.pos(!0);b&&(a+=b[0],s+=b[1])}),a/=p.length,s/=p.length,this.shared&&p.length>1&&f&&(i?a=f.chartX:s=f.chartY),r=[a-e,s-o]}return r.map(Math.round)},C.prototype.getClassName=function(p,f,r){var l=this.options,t=p.series,i=t.options;return[l.className,"highcharts-label",r&&"highcharts-tooltip-header",f?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(p.colorIndex,t.colorIndex),i&&i.className].filter(m).join(" ")},C.prototype.getLabel=function(){var p,f=this,r=this.chart.styledMode,l=this.options,t=this.split&&this.allowShared,i=l.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),o=this.chart.renderer;if(f.label){var e=!f.label.hasClass("highcharts-label");(t&&!e||!t&&e)&&f.destroy()}if(!this.label){if(this.outside){var a=this.chart.options.chart.style,s=U.getRendererType();this.container=p=B.doc.createElement("div"),p.className="highcharts-tooltip-container",E(p,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(a&&a.zIndex||0)+3)}),B.doc.body.appendChild(p),this.renderer=o=new s(p,0,0,a,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,l.shape,void 0,void 0,l.useHTML,void 0,"tooltip").attr({padding:l.padding,r:l.borderRadius}),r||this.label.attr({fill:l.backgroundColor,"stroke-width":l.borderWidth}).css(l.style).css({pointerEvents:i}).shadow(l.shadow)),r&&l.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),f.outside&&!f.split){var h=this.label,b=h.xSetter,k=h.ySetter;h.xSetter=function(O){b.call(h,f.distance),p.style.left=O+"px"},h.ySetter=function(O){k.call(h,f.distance),p.style.top=O+"px"}}this.label.attr({zIndex:8}).add()}return this.label},C.prototype.getPosition=function(p,f,r){var l,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,a=this.outside,s=a?V.documentElement.clientWidth-2*i:t.chartWidth,h=a?Math.max(V.body.scrollHeight,V.documentElement.scrollHeight,V.body.offsetHeight,V.documentElement.offsetHeight,V.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),k=function(X){return X*b.scaleX},O=function(X){return X*b.scaleY},d=function(X){var W=X==="x";return[X,W?s:h,W?p:f].concat(a?[W?k(p):O(f),W?b.left-i+k(r.plotX+t.plotLeft):b.top-i+O(r.plotY+t.plotTop),0,W?s:h]:[W?p:f,W?r.plotX+t.plotLeft:r.plotY+t.plotTop,W?t.plotLeft:t.plotTop,W?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},x=d("y"),T=d("x"),N=!!r.negative;!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(N=!N);var z=!this.followPointer&&v(r.ttBelow,!t.inverted===N),L=function(X,W,q,tt,Q,nt,lt){var gt=a?X==="y"?O(i):k(i):i,mt=(q-tt)/2,bt=tt<Q-i,yt=Q+i+tt<W,dt=Q-gt-q+mt,ot=Q+gt-mt;if(z&&yt)o[X]=ot;else if(!z&&bt)o[X]=dt;else if(bt)o[X]=Math.min(lt-tt,dt-e<0?dt:dt-e);else{if(!yt)return!1;o[X]=Math.max(nt,ot+e+q>W?ot:ot+e)}},D=function(X,W,q,tt,Q){var nt;return Q<i||Q>W-i?nt=!1:o[X]=Q<q/2?1:Q>W-tt/2?W-tt-2:Q-q/2,nt},j=function(X){var W=x;x=T,T=W,l=X},Y=function(){L.apply(0,x)!==!1?D.apply(0,T)!==!1||l||(j(!0),Y()):l?o.x=o.y=0:(j(!0),Y())};return(t.inverted||this.len>1)&&j(),Y(),o},C.prototype.hide=function(p){var f=this;$.clearTimeout(this.hideTimer),p=v(p,this.options.hideDelay),this.isHidden||(this.hideTimer=M(function(){f.getLabel().fadeOut(p&&void 0),f.isHidden=!0},p))},C.prototype.init=function(p,f){this.chart=p,this.options=f,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=f.split&&!p.inverted&&!p.polar,this.shared=f.shared||this.split,this.outside=v(f.outside,!!(p.scrollablePixelsX||p.scrollablePixelsY))},C.prototype.shouldStickOnContact=function(p){return!(this.followPointer||!this.options.stickOnContact||p&&!this.chart.pointer.inClass(p.target,"highcharts-tooltip"))},C.prototype.move=function(p,f,r,l){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(Math.abs(p-i.x)>1||Math.abs(f-i.y)>1),e=t.followPointer||t.len>1;P(i,{x:o?(2*i.x+p)/3:p,y:o?(i.y+f)/2:f,anchorX:e?void 0:o?(2*i.anchorX+r)/3:r,anchorY:e?void 0:o?(i.anchorY+l)/2:l}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(p,f,r,l)},32))},C.prototype.refresh=function(p,f){var r=this,l=this.chart,t=r.options,i=l.pointer,o=w(p),e=o[0],a=[],s=t.formatter||r.defaultFormatter,h=r.shared,b=l.styledMode,k={};if(t.enabled&&e.series){$.clearTimeout(this.hideTimer),r.allowShared=!(!c(p)&&p.series&&p.series.noSharedTooltip),r.followPointer=!r.split&&e.series.tooltipOptions.followPointer;var O=r.getAnchor(p,f),d=O[0],x=O[1];h&&r.allowShared?(i.applyInactiveState(o),o.forEach(function(j){j.setState("hover"),a.push(j.getLabelConfig())}),(k={x:e.category,y:e.y}).points=a):k=e.getLabelConfig(),this.len=a.length;var T=s.call(k,r),N=e.series;if(this.distance=v(N.tooltipOptions.distance,16),T===!1)this.hide();else{if(r.split&&r.allowShared)this.renderSplit(T,o);else{var z=d,L=x;if(f&&i.isDirectTouch&&(z=f.chartX-l.plotLeft,L=f.chartY-l.plotTop),!l.polar&&N.options.clip!==!1&&!o.some(function(j){return i.isDirectTouch||j.series.shouldShowTooltip(z,L)}))return void r.hide();var D=r.getLabel();t.style.width&&!b||D.css({width:l.spacingBox.width+"px"}),D.attr({text:T&&T.join?T.join(""):T}),D.addClass(r.getClassName(e),!0),b||D.attr({stroke:t.borderColor||e.color||N.color||"#666666"}),r.updatePosition({plotX:d,plotY:x,negative:e.negative,ttBelow:e.ttBelow,h:O[2]||0})}r.isHidden&&r.label&&r.label.attr({opacity:1}).show(),r.isHidden=!1}y(this,"refresh")}},C.prototype.renderSplit=function(p,f){var r=this,l=r.chart,t=r.chart,i=t.chartWidth,o=t.chartHeight,e=t.plotHeight,a=t.plotLeft,s=t.plotTop,h=t.pointer,b=t.scrollablePixelsY,k=b===void 0?0:b,O=t.scrollablePixelsX,d=t.scrollingContainer,x=d===void 0?{scrollLeft:0,scrollTop:0}:d,T=x.scrollLeft,N=x.scrollTop,z=t.styledMode,L=r.distance,D=r.options,j=r.options.positioner,Y=r.outside&&typeof O!="number"?V.documentElement.getBoundingClientRect():{left:T,right:T+i,top:N,bottom:N+o},X=r.getLabel(),W=this.renderer||l.renderer,q=!!(l.xAxis[0]&&l.xAxis[0].opposite),tt=h.getChartPosition(),Q=tt.left,nt=tt.top,lt=s+N,gt=0,mt=e-k;function bt(At,Tt,Et,Pt,Dt){var It,jt;return Dt===void 0&&(Dt=!0),Et?(It=q?0:mt,jt=I(At-Pt/2,Y.left,Y.right-Pt-(r.outside?Q:0))):(It=Tt-lt,jt=I(jt=Dt?At-Pt-L:At+L,Dt?jt:Y.left,Y.right)),{x:jt,y:It}}m(p)&&(p=[!1,p]);var yt=p.slice(0,f.length+1).reduce(function(At,Tt,Et){if(Tt!==!1&&Tt!==""){var Pt=f[Et-1]||{isHeader:!0,plotX:f[0].plotX,plotY:e,series:{}},Dt=Pt.isHeader,It=Dt?r:Pt.series,jt=It.tt=function($t,ie,we){var Ot=$t,Ft=ie.isHeader,Zt=ie.series;if(!Ot){var qt={padding:D.padding,r:D.borderRadius};z||(qt.fill=D.backgroundColor,qt["stroke-width"]=D.borderWidth),Ot=W.label("",0,0,D[Ft?"headerShape":"shape"],void 0,void 0,D.useHTML).addClass(r.getClassName(ie,!0,Ft)).attr(qt).add(X)}return Ot.isActive=!0,Ot.attr({text:we}),z||Ot.css(D.style).shadow(D.shadow).attr({stroke:D.borderColor||ie.color||Zt.color||"#333333"}),Ot}(It.tt,Pt,Tt.toString()),_t=jt.getBBox(),Rt=_t.width+jt.strokeWidth();Dt&&(gt=_t.height,mt+=gt,q&&(lt-=gt));var Jt=function($t){var ie,we,Ot=$t.isHeader,Ft=$t.plotX,Zt=Ft===void 0?0:Ft,qt=$t.plotY,pe=qt===void 0?0:qt,de=$t.series;if(Ot)ie=a+Zt,we=s+e/2;else{var ce=de.xAxis,ne=de.yAxis;ie=ce.pos+I(Zt,-L,ce.len+L),de.shouldShowTooltip(0,ne.pos-s+pe,{ignoreX:!0})&&(we=ne.pos+pe)}return{anchorX:ie=I(ie,Y.left-L,Y.right+L),anchorY:we}}(Pt),zt=Jt.anchorX,Vt=Jt.anchorY;if(typeof Vt=="number"){var te=_t.height+1,be=j?j.call(r,Rt,te,Pt):bt(zt,Vt,Dt,Rt);At.push({align:j?0:void 0,anchorX:zt,anchorY:Vt,boxWidth:Rt,point:Pt,rank:v(be.rank,Dt?1:0),size:te,target:be.y,tt:jt,x:be.x})}else jt.isActive=!1}return At},[]);!j&&yt.some(function(At){var Tt=(r.outside?Q:0)+At.anchorX;return Tt<Y.left&&Tt+At.boxWidth<Y.right||Tt<Q-Y.left+At.boxWidth&&Y.right-Tt>Tt})&&(yt=yt.map(function(At){var Tt=bt(At.anchorX,At.anchorY,At.point.isHeader,At.boxWidth,!1),Et=Tt.x,Pt=Tt.y;return P(At,{target:Pt,x:Et})})),r.cleanSplit(),F(yt,mt);var dt={left:Q,right:Q};yt.forEach(function(At){var Tt=At.x,Et=At.boxWidth,Pt=At.isHeader;Pt||(r.outside&&Q+Tt<dt.left&&(dt.left=Q+Tt),!Pt&&r.outside&&dt.left+Et>dt.right&&(dt.right=Q+Tt))}),yt.forEach(function(At){var Tt=At.x,Et=At.anchorX,Pt=At.anchorY,Dt=At.pos,It=At.point.isHeader,jt={visibility:Dt===void 0?"hidden":"inherit",x:Tt,y:(Dt||0)+lt,anchorX:Et,anchorY:Pt};if(r.outside&&Tt<Et){var _t=Q-dt.left;_t>0&&(It||(jt.x=Tt+_t,jt.anchorX=Et+_t),It&&(jt.x=(dt.right-dt.left)/2,jt.anchorX=Et+_t))}At.tt.attr(jt)});var ot=r.container,at=r.outside,ut=r.renderer;if(at&&ot&&ut){var vt=X.getBBox(),Ct=vt.width,xt=vt.height,wt=vt.x,Mt=vt.y;ut.setSize(Ct+wt,xt+Mt,!1),ot.style.left=dt.left+"px",ot.style.top=nt+"px"}},C.prototype.drawTracker=function(){var p=this;if(this.shouldStickOnContact()){var f=p.chart,r=p.label,l=p.shared?f.hoverPoints:f.hoverPoint;if(r&&l){var t={x:0,y:0,width:0,height:0},i=this.getAnchor(l),o=r.getBBox();i[0]+=f.plotLeft-r.translateX,i[1]+=f.plotTop-r.translateY,t.x=Math.min(0,i[0]),t.y=Math.min(0,i[1]),t.width=i[0]<0?Math.max(Math.abs(i[0]),o.width-i[0]):Math.max(Math.abs(i[0]),o.width),t.height=i[1]<0?Math.max(Math.abs(i[1]),o.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),o.height),p.tracker?p.tracker.attr(t):(p.tracker=r.renderer.rect(t).addClass("highcharts-tracker").add(r),f.styledMode||p.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else p.tracker&&p.tracker.destroy()},C.prototype.styledModeFormat=function(p){return p.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},C.prototype.tooltipFooterHeaderFormatter=function(p,f){var r=p.series,l=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime,o={isFooter:f,labelConfig:p},e=l.xDateFormat,a=l[f?"footerFormat":"headerFormat"];return y(this,"headerFormatter",o,function(s){i&&!e&&g(p.key)&&(e=i.getXDateFormat(p.key,l.dateTimeLabelFormats)),i&&e&&(p.point&&p.point.tooltipDateKeys||["key"]).forEach(function(h){a=a.replace("{point."+h+"}","{point."+h+":"+e+"}")}),r.chart.styledMode&&(a=this.styledModeFormat(a)),s.text=Z(a,{point:p,series:r},this.chart)}),o.text},C.prototype.update=function(p){this.destroy(),u(!0,this.chart.options.tooltip.userOptions,p),this.init(this.chart,u(!0,this.options,p))},C.prototype.updatePosition=function(p){var f,r=this,l=r.chart,t=r.distance,i=r.options,o=l.pointer,e=this.getLabel(),a=o.getChartPosition(),s=a.left,h=a.top,b=a.scaleX,k=a.scaleY,O=(i.positioner||this.getPosition).call(this,e.width,e.height,p),d=(p.plotX||0)+l.plotLeft,x=(p.plotY||0)+l.plotTop;this.outside&&(i.positioner&&(O.x+=s-t,O.y+=h-t),f=i.borderWidth+2*t,this.renderer.setSize(e.width+f,e.height+f,!1),b===1&&k===1||(E(this.container,{transform:"scale(".concat(b,", ").concat(k,")")}),d*=b,x*=k),d+=s-O.x,x+=h-O.y),this.move(Math.round(O.x),Math.round(O.y||0),d,x)},C}()}),et(_,"Core/Series/Point.js",[_["Core/Renderer/HTML/AST.js"],_["Core/Animation/AnimationUtilities.js"],_["Core/Defaults.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=B.animObject,V=H.defaultOptions,F=U.format,I=$.addEvent,E=$.defined,A=$.erase,P=$.extend,y=$.fireEvent,c=$.getNestedProperty,g=$.isArray,m=$.isFunction,u=$.isNumber,v=$.isObject,w=$.merge,M=$.objectEach,C=$.pick,p=$.syncTimeout,f=$.removeEvent,r=$.uniqueKey;return function(){function l(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.name=void 0,this.options=void 0,this.percentage=void 0,this.selected=!1,this.series=void 0,this.shapeArgs=void 0,this.total=void 0,this.visible=!0,this.x=void 0}return l.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){var a=e==="dataLabel";t[e]=t[e].animate(a?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(a){a.element&&a.animate(P({x:t.startXPos},a.startYPos?{x:a.startXPos,y:a.startYPos}:{}))})})},l.prototype.applyOptions=function(t,i){var o=this,e=o.series,a=e.options.pointValKey||e.pointValKey;return t=l.prototype.optionsToObject.call(this,t),P(o,t),o.options=o.options?P(o.options,t):t,t.group&&delete o.group,t.dataLabels&&delete o.dataLabels,a&&(o.y=l.prototype.getNestedProperty.call(o,a)),o.isNull=this.isValid&&!this.isValid(),o.formatPrefix=o.isNull?"null":"point",o.selected&&(o.state="select"),"name"in o&&i===void 0&&e.xAxis&&e.xAxis.hasNames&&(o.x=e.xAxis.nameToX(o)),o.x===void 0&&e?o.x=i===void 0?e.autoIncrement():i:u(t.x)&&e.options.relativeXValue&&(o.x=e.autoIncrement(t.x)),o},l.prototype.destroy=function(){var t,i=this,o=i.series,e=o.chart,a=o.options.dataSorting,s=e.hoverPoints,h=i.series.chart.renderer.globalAnimation,b=Z(h);function k(){for(t in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(f(i),i.destroyElements()),i)i[t]=null}i.legendItem&&e.legend.destroyItem(i),s&&(i.setState(),A(s,i),s.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),a&&a.enabled?(this.animateBeforeDestroy(),p(k,b.duration)):k(),e.pointCount--},l.prototype.destroyElements=function(t){var i=this,o=i.getGraphicalProps(t);o.singular.forEach(function(e){i[e]=i[e].destroy()}),o.plural.forEach(function(e){i[e].forEach(function(a){a&&a.element&&a.destroy()}),delete i[e]})},l.prototype.firePointEvent=function(t,i,o){var e=this,a=this.series.options;(a.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&a.allowPointSelect&&(o=function(s){e.select&&e.select(null,s.ctrlKey||s.metaKey||s.shiftKey)}),y(e,t,i,o)},l.prototype.getClassName=function(){var t=this;return"highcharts-point"+(t.selected?" highcharts-point-select":"")+(t.negative?" highcharts-negative":"")+(t.isNull?" highcharts-null-point":"")+(t.colorIndex!==void 0?" highcharts-color-"+t.colorIndex:"")+(t.options.className?" "+t.options.className:"")+(t.zone&&t.zone.className?" "+t.zone.className.replace("highcharts-negative",""):"")},l.prototype.getGraphicalProps=function(t){var i,o,e=this,a=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&a.push("graphic","shadowGroup"),t.dataLabel&&a.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),o=a.length;o--;)i=a[o],e[i]&&s.singular.push(i);return["graphic","dataLabel","connector"].forEach(function(h){var b=h+"s";t[h]&&e[b]&&s.plural.push(b)}),s},l.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},l.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?c(t,this.options):this[t]},l.prototype.getZone=function(){var t,i=this.series,o=i.zones,e=i.zoneAxis||"y",a=0;for(t=o[a];this[e]>=t.value;)t=o[++a];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},l.prototype.hasNewShapeType=function(){var t=this;return(t.graphic&&(t.graphic.symbolName||t.graphic.element.nodeName))!==this.shapeType},l.prototype.init=function(t,i,o){return this.series=t,this.applyOptions(i,o),this.id=E(this.id)?this.id:r(),this.resolveColor(),t.chart.pointCount++,y(this,"afterInit"),this},l.prototype.isValid=function(){return this.x!==null&&u(this.y)},l.prototype.optionsToObject=function(t){var i,o=this.series,e=o.options.keys,a=e||o.pointArrayMap||["y"],s=a.length,h={},b=0,k=0;if(u(t)||t===null)h[a[0]]=t;else if(g(t))for(!e&&t.length>s&&((i=typeof t[0])=="string"?h.name=t[0]:i==="number"&&(h.x=t[0]),b++);k<s;)e&&t[b]===void 0||(a[k].indexOf(".")>0?l.prototype.setNestedProperty(h,t[b],a[k]):h[a[k]]=t[b]),b++,k++;else typeof t=="object"&&(h=t,t.dataLabels&&(o._hasPointLabels=!0),t.marker&&(o._hasPointMarkers=!0));return h},l.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,a=e.chart,s=e.xAxis,h=e.yAxis,b=0,k=0;if(u(o)&&u(i))return t&&(b=s?s.pos:a.plotLeft,k=h?h.pos:a.plotTop),a.inverted&&s&&h?[h.len-i+k,s.len-o+b]:[o+b,i+k]},l.prototype.resolveColor=function(){var t,i,o,e=this.series,a=e.chart.options.chart,s=e.chart.styledMode,h=a.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(s||(t=(i=e.options.colors||e.chart.options.colors)[e.colorCounter],h=i.length),o=e.colorCounter,e.colorCounter++,e.colorCounter===h&&(e.colorCounter=0)):(s||(t=e.color),o=e.colorIndex),this.colorIndex=C(this.options.colorIndex,o),this.color=C(this.options.color,t)},l.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,a,s,h){var b=h.length-1===s;return e[a]=b?i:v(e[a],!0)?e[a]:{},e[a]},t),t},l.prototype.shouldDraw=function(){return!this.isNull},l.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=C(o.valueDecimals,""),a=o.valuePrefix||"",s=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(h){h="{point."+h,(a||s)&&(t=t.replace(RegExp(h+"}","g"),a+h+"}"+s)),t=t.replace(RegExp(h+"}","g"),h+":,."+e+"f}")}),F(t,{point:this,series:this.series},i.chart)},l.prototype.update=function(t,i,o,e){var a,s=this,h=s.series,b=s.graphic,k=h.chart,O=h.options;function d(){s.applyOptions(t);var x=b&&s.hasMockGraphic,T=s.y===null?!x:x;b&&T&&(s.graphic=b.destroy(),delete s.hasMockGraphic),v(t,!0)&&(b&&b.element&&t&&t.marker&&t.marker.symbol!==void 0&&(s.graphic=b.destroy()),t&&t.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy()),s.connector&&(s.connector=s.connector.destroy())),a=s.index,h.updateParallelArrays(s,a),O.data[a]=v(O.data[a],!0)||v(t,!0)?s.options:C(t,O.data[a]),h.isDirty=h.isDirtyData=!0,!h.fixedBox&&h.hasCartesianSeries&&(k.isDirtyBox=!0),O.legendType==="point"&&(k.isDirtyLegend=!0),i&&k.redraw(o)}i=C(i,!0),e===!1?d():s.firePointEvent("update",{options:t},d)},l.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},l.prototype.select=function(t,i){var o=this,e=o.series,a=e.chart;t=C(t,!o.selected),this.selectedStaging=t,o.firePointEvent(t?"select":"unselect",{accumulate:i},function(){o.selected=o.options.selected=t,e.options.data[e.data.indexOf(o)]=o.options,o.setState(t&&"select"),i||a.getSelectedPoints().forEach(function(s){var h=s.series;s.selected&&s!==o&&(s.selected=s.options.selected=!1,h.options.data[h.data.indexOf(s)]=s.options,s.setState(a.hoverPoints&&h.options.inactiveOtherPoints?"inactive":""),s.firePointEvent("unselect"))})}),delete this.selectedStaging},l.prototype.onMouseOver=function(t){var i=this,o=i.series.chart,e=o.pointer;t=t?e.normalize(t):e.getChartCoordinatesFromPoint(i,o.inverted),e.runPointActions(t,i)},l.prototype.onMouseOut=function(){var t=this,i=t.series.chart;t.firePointEvent("mouseOut"),t.series.options.inactiveOtherPoints||(i.hoverPoints||[]).forEach(function(o){o.setState()}),i.hoverPoints=i.hoverPoint=null},l.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=w(t.series.options.point,t.options).events;t.events=i,M(i,function(o,e){m(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},l.prototype.setState=function(t,i){var o,e,a,s,h=this,b=h.series,k=h.state,O=b.options.states[t||"normal"]||{},d=V.plotOptions[b.type].marker&&b.options.marker,x=d&&d.enabled===!1,T=d&&d.states&&d.states[t||"normal"]||{},N=T.enabled===!1,z=h.marker||{},L=b.chart,D=d&&b.markerAttribs,j=b.halo,Y=b.stateMarkerGraphic;if(!((t=t||"")===h.state&&!i||h.selected&&t!=="select"||O.enabled===!1||t&&(N||x&&T.enabled===!1)||t&&z.states&&z.states[t]&&z.states[t].enabled===!1)){if(h.state=t,D&&(o=b.markerAttribs(h,t)),h.graphic&&!h.hasMockGraphic){if(k&&h.graphic.removeClass("highcharts-point-"+k),t&&h.graphic.addClass("highcharts-point-"+t),!L.styledMode){e=b.pointAttribs(h,t),a=C(L.options.chart.animation,O.animation);var X=e.opacity;b.options.inactiveOtherPoints&&u(X)&&((h.dataLabels||[]).forEach(function(Q){Q&&!Q.hasClass("highcharts-data-label-hidden")&&Q.animate({opacity:X},a)}),h.connector&&h.connector.animate({opacity:X},a)),h.graphic.animate(e,a)}o&&h.graphic.animate(o,C(L.options.chart.animation,T.animation,d.animation)),Y&&Y.hide()}else t&&T&&(s=z.symbol||b.symbol,Y&&Y.currentSymbol!==s&&(Y=Y.destroy()),o&&(Y?Y[i?"animate":"attr"]({x:o.x,y:o.y}):s&&(b.stateMarkerGraphic=Y=L.renderer.symbol(s,o.x,o.y,o.width,o.height).add(b.markerGroup),Y.currentSymbol=s)),!L.styledMode&&Y&&h.state!=="inactive"&&Y.attr(b.pointAttribs(h,t))),Y&&(Y[t&&h.isInside?"show":"hide"](),Y.element.point=h,Y.addClass(h.getClassName(),!0));var W=O.halo,q=h.graphic||Y,tt=q&&q.visibility||"inherit";W&&W.size&&q&&tt!=="hidden"&&!h.isCluster?(j||(b.halo=j=L.renderer.path().add(q.parentGroup)),j.show()[i?"animate":"attr"]({d:h.haloPath(W.size)}),j.attr({class:"highcharts-halo highcharts-color-"+C(h.colorIndex,b.colorIndex)+(h.className?" "+h.className:""),visibility:tt,zIndex:-1}),j.point=h,L.styledMode||j.attr(P({fill:h.color||b.color,"fill-opacity":W.opacity},G.filterUserAttributes(W.attributes||{})))):j&&j.point&&j.point.haloPath&&j.animate({d:j.point.haloPath(0)},null,j.hide),y(h,"afterSetState",{state:t})}},l.prototype.haloPath=function(t){var i=this.pos();return i?this.series.chart.renderer.symbols.circle(Math.floor(i[0])-t,i[1]-t,2*t,2*t):[]},l}()}),et(_,"Core/Pointer.js",[_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Tooltip.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $=G.parse,Z=B.charts,V=B.noop,F=U.addEvent,I=U.attr,E=U.css,A=U.defined,P=U.extend,y=U.find,c=U.fireEvent,g=U.isNumber,m=U.isObject,u=U.objectEach,v=U.offset,w=U.pick,M=U.splat;return function(){function C(p,f){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=p,this.hasDragged=!1,this.options=f,this.init(p,f)}return C.prototype.applyInactiveState=function(p){var f,r=[];(p||[]).forEach(function(l){f=l.series,r.push(f),f.linkedParent&&r.push(f.linkedParent),f.linkedSeries&&(r=r.concat(f.linkedSeries)),f.navigatorSeries&&r.push(f.navigatorSeries)}),this.chart.series.forEach(function(l){r.indexOf(l)===-1?l.setState("inactive",!0):l.options.inactiveOtherPoints&&l.setAllPointsToState("inactive")})},C.prototype.destroy=function(){var p=this;this.eventsToUnbind.forEach(function(f){return f()}),this.eventsToUnbind=[],B.chartCount||(C.unbindDocumentMouseUp&&(C.unbindDocumentMouseUp=C.unbindDocumentMouseUp()),C.unbindDocumentTouchEnd&&(C.unbindDocumentTouchEnd=C.unbindDocumentTouchEnd())),clearInterval(p.tooltipTimeout),u(p,function(f,r){p[r]=void 0})},C.prototype.getSelectionMarkerAttrs=function(p,f){var r=this,l={args:{chartX:p,chartY:f},attrs:{},shapeType:"rect"};return c(this,"getSelectionMarkerAttrs",l,function(t){var i,o=r,e=o.chart,a=o.mouseDownX,s=a===void 0?0:a,h=o.mouseDownY,b=h===void 0?0:h,k=o.zoomHor,O=o.zoomVert,d=t.attrs;d.x=e.plotLeft,d.y=e.plotTop,d.width=k?1:e.plotWidth,d.height=O?1:e.plotHeight,k&&(i=p-s,d.width=Math.abs(i),d.x=(i>0?0:i)+s),O&&(i=f-b,d.height=Math.abs(i),d.y=(i>0?0:i)+b)}),l},C.prototype.drag=function(p){var f,r=this.chart,l=r.options.chart,t=r.plotLeft,i=r.plotTop,o=r.plotWidth,e=r.plotHeight,a=this.mouseDownX||0,s=this.mouseDownY||0,h=m(l.panning)?l.panning&&l.panning.enabled:l.panning,b=l.panKey&&p[l.panKey+"Key"],k=p.chartX,O=p.chartY,d=this.selectionMarker;if((!d||!d.touch)&&(k<t?k=t:k>t+o&&(k=t+o),O<i?O=i:O>i+e&&(O=i+e),this.hasDragged=Math.sqrt(Math.pow(a-k,2)+Math.pow(s-O,2)),this.hasDragged>10)){f=r.isInsidePlot(a-t,s-i,{visiblePlotOnly:!0});var x=this.getSelectionMarkerAttrs(k,O),T=x.shapeType,N=x.attrs;(r.hasCartesianSeries||r.mapView)&&(this.zoomX||this.zoomY)&&f&&!b&&(d||(this.selectionMarker=d=r.renderer[T](),d.attr({class:"highcharts-selection-marker",zIndex:7}).add(),r.styledMode||d.attr({fill:l.selectionMarkerFill||$("#335cad").setOpacity(.25).get()}))),d&&d.attr(N),f&&!d&&h&&r.pan(p,l.panning)}},C.prototype.dragStart=function(p){var f=this.chart;f.mouseIsDown=p.type,f.cancelClick=!1,f.mouseDownX=this.mouseDownX=p.chartX,f.mouseDownY=this.mouseDownY=p.chartY},C.prototype.getSelectionBox=function(p){var f={args:{marker:p},result:{}};return c(this,"getSelectionBox",f,function(r){r.result={x:p.attr?+p.attr("x"):p.x,y:p.attr?+p.attr("y"):p.y,width:p.attr?p.attr("width"):p.width,height:p.attr?p.attr("height"):p.height}}),f.result},C.prototype.drop=function(p){var f=this,r=this.chart,l=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,a=t.height,s={originalEvent:p,xAxis:[],yAxis:[],x:i,y:o,width:e,height:a},h=!!r.mapView;(this.hasDragged||l)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&A(b.min)&&(l||f[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&g(i)&&g(o)&&g(e)&&g(a)){var k=b.horiz,O=p.type==="touchend"?b.minPixelPadding:0,d=b.toValue((k?i:o)+O),x=b.toValue((k?i+e:o+a)-O);s[b.coll].push({axis:b,min:Math.min(d,x),max:Math.max(d,x)}),h=!0}}),h&&c(r,"selection",s,function(b){r.zoom(P(b,l?{animation:!1}:null))})),g(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),l&&this.scaleGroups()}r&&g(r.index)&&(E(r.container,{cursor:r._cursor}),r.cancelClick=this.hasDragged>10,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},C.prototype.findNearestKDPoint=function(p,f,r){var l;return p.forEach(function(t){var i,o,e,a,s,h=!(t.noSharedTooltip&&f)&&t.options.findNearestPointBy.indexOf("y")<0,b=t.searchPoint(r,h);m(b,!0)&&b.series&&(!m(l,!0)||(o=b,e=(i=l).distX-o.distX,a=i.dist-o.dist,s=(o.series.group&&o.series.group.zIndex)-(i.series.group&&i.series.group.zIndex),(e!==0&&f?e:a!==0?a:s!==0?s:i.series.index>o.series.index?-1:1)>0))&&(l=b)}),l},C.prototype.getChartCoordinatesFromPoint=function(p,f){var r=p.series,l=r.xAxis,t=r.yAxis,i=p.shapeArgs;if(l&&t){var o=w(p.clientX,p.plotX),e=p.plotY||0;return p.isNode&&i&&g(i.x)&&g(i.y)&&(o=i.x,e=i.y),f?{chartX:t.len+t.pos-e,chartY:l.len+l.pos-o}:{chartX:o+l.pos,chartY:e+t.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},C.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var p=this.chart.container,f=v(p);this.chartPosition={left:f.left,top:f.top,scaleX:1,scaleY:1};var r=p.offsetWidth,l=p.offsetHeight;return r>2&&l>2&&(this.chartPosition.scaleX=f.width/r,this.chartPosition.scaleY=f.height/l),this.chartPosition},C.prototype.getCoordinates=function(p){var f={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){f[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(p[r.horiz?"chartX":"chartY"])})}),f},C.prototype.getHoverData=function(p,f,r,l,t,i){var o,e=[],a=!(!l||!p),s=function(O){return O.visible&&!(!t&&O.directTouch)&&w(O.options.enableMouseTracking,!0)},h=f,b={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};c(this,"beforeGetHoverData",b),o=h&&!h.stickyTracking?[h]:r.filter(function(O){return O.stickyTracking&&(b.filter||s)(O)});var k=a||!i?p:this.findNearestKDPoint(o,t,i);return h=k&&k.series,k&&(t&&!h.noSharedTooltip?(o=r.filter(function(O){return b.filter?b.filter(O):s(O)&&!O.noSharedTooltip})).forEach(function(O){var d=y(O.points,function(x){return x.x===k.x&&!x.isNull});m(d)&&(O.boosted&&O.boost&&(d=O.boost.getPoint(d)),e.push(d))}):e.push(k)),c(this,"afterGetHoverData",b={hoverPoint:k}),{hoverPoint:b.hoverPoint,hoverSeries:h,hoverPoints:e}},C.prototype.getPointFromEvent=function(p){for(var f,r=p.target;r&&!f;)f=r.point,r=r.parentNode;return f},C.prototype.onTrackerMouseOut=function(p){var f=this.chart,r=p.relatedTarget||p.toElement,l=f.hoverSeries;this.isDirectTouch=!1,!l||!r||l.stickyTracking||this.inClass(r,"highcharts-tooltip")||this.inClass(r,"highcharts-series-"+l.index)&&this.inClass(r,"highcharts-tracker")||l.onMouseOut()},C.prototype.inClass=function(p,f){for(var r,l=p;l;){if(r=I(l,"class")){if(r.indexOf(f)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}l=l.parentElement}},C.prototype.init=function(p,f){this.options=f,this.chart=p,this.runChartClick=!!(f.chart.events&&f.chart.events.click),this.pinchDown=[],this.lastValidTouch={},H&&(p.tooltip=new H(p,f.tooltip)),this.setDOMEvents()},C.prototype.normalize=function(p,f){var r=p.touches,l=r?r.length?r.item(0):w(r.changedTouches,p.changedTouches)[0]:p;f||(f=this.getChartPosition());var t=l.pageX-f.left,i=l.pageY-f.top;return t/=f.scaleX,i/=f.scaleY,P(p,{chartX:Math.round(t),chartY:Math.round(i)})},C.prototype.onContainerClick=function(p){var f=this.chart,r=f.hoverPoint,l=this.normalize(p),t=f.plotLeft,i=f.plotTop;f.cancelClick||(r&&this.inClass(l.target,"highcharts-tracker")?(c(r.series,"click",P(l,{point:r})),f.hoverPoint&&r.firePointEvent("click",l)):(P(l,this.getCoordinates(l)),f.isInsidePlot(l.chartX-t,l.chartY-i,{visiblePlotOnly:!0})&&c(f,"click",l)))},C.prototype.onContainerMouseDown=function(p){var f=!(1&~(p.buttons||p.button));p=this.normalize(p),B.isFirefox&&p.button!==0&&this.onContainerMouseMove(p),(p.button===void 0||f)&&(this.zoomOption(p),f&&p.preventDefault&&p.preventDefault(),this.dragStart(p))},C.prototype.onContainerMouseLeave=function(p){var f=Z[w(C.hoverChartIndex,-1)],r=this.chart.tooltip;p=this.normalize(p),f&&(p.relatedTarget||p.toElement)&&(f.pointer.reset(),f.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},C.prototype.onContainerMouseEnter=function(p){delete this.chartPosition},C.prototype.onContainerMouseMove=function(p){var f=this.chart,r=f.tooltip,l=this.normalize(p);this.setHoverChartIndex(),l.preventDefault||(l.returnValue=!1),(f.mouseIsDown==="mousedown"||this.touchSelect(l))&&this.drag(l),f.openMenu||!this.inClass(l.target,"highcharts-tracker")&&!f.isInsidePlot(l.chartX-f.plotLeft,l.chartY-f.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(l)||(this.inClass(l.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(l))},C.prototype.onDocumentTouchEnd=function(p){var f=Z[w(C.hoverChartIndex,-1)];f&&f.pointer.drop(p)},C.prototype.onContainerTouchMove=function(p){this.touchSelect(p)?this.onContainerMouseMove(p):this.touch(p)},C.prototype.onContainerTouchStart=function(p){this.touchSelect(p)?this.onContainerMouseDown(p):(this.zoomOption(p),this.touch(p,!0))},C.prototype.onDocumentMouseMove=function(p){var f=this.chart,r=f.tooltip,l=this.chartPosition,t=this.normalize(p,l);!l||f.isInsidePlot(t.chartX-f.plotLeft,t.chartY-f.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},C.prototype.onDocumentMouseUp=function(p){var f=Z[w(C.hoverChartIndex,-1)];f&&f.pointer.drop(p)},C.prototype.pinch=function(p){var f=this,r=f.chart,l=f.pinchDown,t=p.touches||[],i=t.length,o=f.lastValidTouch,e=f.hasZoom,a={},s=i===1&&(f.inClass(p.target,"highcharts-tracker")&&r.runTrackerClick||f.runChartClick),h={},b=f.chart.tooltip,k=i===1&&w(b&&b.options.followTouchMove,!0),O=f.selectionMarker;i>1?f.initiated=!0:k&&(f.initiated=!1),e&&f.initiated&&!s&&p.cancelable!==!1&&p.preventDefault(),[].map.call(t,function(d){return f.normalize(d)}),p.type==="touchstart"?([].forEach.call(t,function(d,x){l[x]={chartX:d.chartX,chartY:d.chartY}}),o.x=[l[0].chartX,l[1]&&l[1].chartX],o.y=[l[0].chartY,l[1]&&l[1].chartY],r.axes.forEach(function(d){if(d.zoomEnabled){var x=r.bounds[d.horiz?"h":"v"],T=d.minPixelPadding,N=d.toPixels(Math.min(w(d.options.min,d.dataMin),d.dataMin)),z=d.toPixels(Math.max(w(d.options.max,d.dataMax),d.dataMax)),L=Math.min(N,z),D=Math.max(N,z);x.min=Math.min(d.pos,L-T),x.max=Math.max(d.pos+d.len,D+T)}}),f.res=!0):k?this.runPointActions(f.normalize(p)):l.length&&(c(r,"touchpan",{originalEvent:p},function(){O||(f.selectionMarker=O=P({destroy:V,touch:!0},r.plotBox)),f.pinchTranslate(l,t,a,O,h,o),f.hasPinched=e,f.scaleGroups(a,h)}),f.res&&(f.res=!1,this.reset(!1,0)))},C.prototype.pinchTranslate=function(p,f,r,l,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,p,f,r,l,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,p,f,r,l,t,i)},C.prototype.pinchTranslateDirection=function(p,f,r,l,t,i,o,e){var a,s,h,b,k=this.chart,O=p?"x":"y",d=p?"X":"Y",x="chart"+d,T=p?"width":"height",N=k["plot"+(p?"Left":"Top")],z=k.inverted,L=k.bounds[p?"h":"v"],D=f.length===1,j=f[0][x],Y=!D&&f[1][x],X=function(){typeof tt=="number"&&Math.abs(j-Y)>20&&(W=e||Math.abs(q-tt)/Math.abs(j-Y)),h=(N-q)/W+j,a=k["plot"+(p?"Width":"Height")]/W},W=e||1,q=r[0][x],tt=!D&&r[1][x];X(),(s=h)<L.min?(s=L.min,b=!0):s+a>L.max&&(s=L.max-a,b=!0),b?(q-=.8*(q-o[O][0]),typeof tt=="number"&&(tt-=.8*(tt-o[O][1])),X()):o[O]=[q,tt],z||(i[O]=h-N,i[T]=a);var Q=z?p?"scaleY":"scaleX":"scale"+d,nt=z?1/W:W;t[T]=a,t[O]=s,l[Q]=W,l["translate"+d]=nt*N+(q-nt*j)},C.prototype.reset=function(p,f){var r=this,l=r.chart,t=l.hoverSeries,i=l.hoverPoint,o=l.hoverPoints,e=l.tooltip,a=e&&e.shared?o:i;p&&a&&M(a).forEach(function(s){s.series.isCartesian&&s.plotX===void 0&&(p=!1)}),p?e&&a&&M(a).length&&(e.refresh(a),e.shared&&o?o.forEach(function(s){s.setState(s.state,!0),s.series.isCartesian&&(s.series.xAxis.crosshair&&s.series.xAxis.drawCrosshair(null,s),s.series.yAxis.crosshair&&s.series.yAxis.drawCrosshair(null,s))}):i&&(i.setState(i.state,!0),l.axes.forEach(function(s){s.crosshair&&i.series[s.coll]===s&&s.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),o&&o.forEach(function(s){s.setState()}),t&&t.onMouseOut(),e&&e.hide(f),r.unDocMouseMove&&(r.unDocMouseMove=r.unDocMouseMove()),l.axes.forEach(function(s){s.hideCrosshair()}),r.hoverX=l.hoverPoints=l.hoverPoint=null)},C.prototype.runPointActions=function(p,f,r){var l=this,t=l.chart,i=t.series,o=t.tooltip&&t.tooltip.options.enabled?t.tooltip:void 0,e=!!o&&o.shared,a=f||t.hoverPoint,s=a&&a.series||t.hoverSeries,h=(!p||p.type!=="touchmove")&&(!!f||s&&s.directTouch&&l.isDirectTouch),b=this.getHoverData(a,s,i,h,e,p);a=b.hoverPoint,s=b.hoverSeries;var k=b.hoverPoints,O=s&&s.tooltipOptions.followPointer&&!s.tooltipOptions.split,d=e&&s&&!s.noSharedTooltip;if(a&&(r||a!==t.hoverPoint||o&&o.isHidden)){if((t.hoverPoints||[]).forEach(function(T){k.indexOf(T)===-1&&T.setState()}),t.hoverSeries!==s&&s.onMouseOver(),l.applyInactiveState(k),(k||[]).forEach(function(T){T.setState("hover")}),t.hoverPoint&&t.hoverPoint.firePointEvent("mouseOut"),!a.series)return;t.hoverPoints=k,t.hoverPoint=a,a.firePointEvent("mouseOver",void 0,function(){o&&a&&o.refresh(d?k:a,p)})}else if(O&&o&&!o.isHidden){var x=o.getAnchor([{}],p);t.isInsidePlot(x[0],x[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:x[0],plotY:x[1]})}l.unDocMouseMove||(l.unDocMouseMove=F(t.container.ownerDocument,"mousemove",function(T){var N=Z[C.hoverChartIndex];N&&N.pointer.onDocumentMouseMove(T)}),l.eventsToUnbind.push(l.unDocMouseMove)),t.axes.forEach(function(T){var N,z=w((T.crosshair||{}).snap,!0);z&&((N=t.hoverPoint)&&N.series[T.coll]===T||(N=y(k,function(L){return L.series&&L.series[T.coll]===T}))),N||!z?T.drawCrosshair(p,N):T.hideCrosshair()})},C.prototype.scaleGroups=function(p,f){var r=this.chart;r.series.forEach(function(l){var t=p||l.getPlotBox();l.group&&(l.xAxis&&l.xAxis.zoomEnabled||r.mapView)&&(l.group.attr(t),l.markerGroup&&(l.markerGroup.attr(t),l.markerGroup.clip(f?r.clipRect:null)),l.dataLabelsGroup&&l.dataLabelsGroup.attr(t))}),r.clipRect.attr(f||r.clipBox)},C.prototype.setDOMEvents=function(){var p=this,f=this.chart.container,r=f.ownerDocument;f.onmousedown=this.onContainerMouseDown.bind(this),f.onmousemove=this.onContainerMouseMove.bind(this),f.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(F(f,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(F(f,"mouseleave",this.onContainerMouseLeave.bind(this))),C.unbindDocumentMouseUp||(C.unbindDocumentMouseUp=F(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var l=this.chart.renderTo.parentElement;l&&l.tagName!=="BODY";)this.eventsToUnbind.push(F(l,"scroll",function(){delete p.chartPosition})),l=l.parentElement;B.hasTouch&&(this.eventsToUnbind.push(F(f,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(F(f,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),C.unbindDocumentTouchEnd||(C.unbindDocumentTouchEnd=F(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},C.prototype.setHoverChartIndex=function(){var p=this.chart,f=B.charts[w(C.hoverChartIndex,-1)];f&&f!==p&&f.pointer.onContainerMouseLeave({relatedTarget:p.container}),f&&f.mouseIsDown||(C.hoverChartIndex=p.index)},C.prototype.touch=function(p,f){var r,l,t=this.chart;this.setHoverChartIndex(),p.touches.length===1?(p=this.normalize(p),t.isInsidePlot(p.chartX-t.plotLeft,p.chartY-t.plotTop,{visiblePlotOnly:!0})&&!t.openMenu?(f&&this.runPointActions(p),p.type==="touchmove"&&(r=!!(l=this.pinchDown)[0]&&Math.sqrt(Math.pow(l[0].chartX-p.chartX,2)+Math.pow(l[0].chartY-p.chartY,2))>=4),w(r,!0)&&this.pinch(p)):f&&this.reset()):p.touches.length===2&&this.pinch(p)},C.prototype.touchSelect=function(p){return!!(this.chart.options.chart.zooming.singleTouch&&p.touches&&p.touches.length===1)},C.prototype.zoomOption=function(p){var f,r,l=this.chart,t=l.options.chart,i=l.inverted,o=t.zooming.type||"";/touch/.test(p.type)&&(o=w(t.zooming.pinchType,o)),this.zoomX=f=/x/.test(o),this.zoomY=r=/y/.test(o),this.zoomHor=f&&!i||r&&i,this.zoomVert=r&&!i||f&&i,this.hasZoom=f||r},C}()}),et(_,"Core/MSPointer.js",[_["Core/Globals.js"],_["Core/Pointer.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(w,M){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,p){C.__proto__=p}||function(C,p){for(var f in p)p.hasOwnProperty(f)&&(C[f]=p[f])},U(w,M)},function(w,M){function C(){this.constructor=w}U(w,M),w.prototype=M===null?Object.create(M):(C.prototype=M.prototype,new C)}),Z=G.charts,V=G.doc,F=G.noop,I=G.win,E=H.addEvent,A=H.css,P=H.objectEach,y=H.pick,c=H.removeEvent,g={},m=!!I.PointerEvent;function u(w,M,C,p){var f,r=Z[B.hoverChartIndex||NaN];if((w.pointerType==="touch"||w.pointerType===w.MSPOINTER_TYPE_TOUCH)&&r){var l=r.pointer;p(w),l[M]({type:C,target:w.currentTarget,preventDefault:F,touches:(f=[],f.item=function(t){return this[t]},P(g,function(t){f.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),f)})}}var v=function(w){function M(){return w!==null&&w.apply(this,arguments)||this}return $(M,w),M.isRequired=function(){return!(G.hasTouch||!I.PointerEvent&&!I.MSPointerEvent)},M.prototype.batchMSEvents=function(C){C(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),C(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),C(V,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},M.prototype.destroy=function(){this.batchMSEvents(c),w.prototype.destroy.call(this)},M.prototype.init=function(C,p){w.prototype.init.call(this,C,p),this.hasZoom&&A(C.container,{"-ms-touch-action":"none","touch-action":"none"})},M.prototype.onContainerPointerDown=function(C){u(C,"onContainerTouchStart","touchstart",function(p){g[p.pointerId]={pageX:p.pageX,pageY:p.pageY,target:p.currentTarget}})},M.prototype.onContainerPointerMove=function(C){u(C,"onContainerTouchMove","touchmove",function(p){g[p.pointerId]={pageX:p.pageX,pageY:p.pageY},g[p.pointerId].target||(g[p.pointerId].target=p.currentTarget)})},M.prototype.onDocumentPointerUp=function(C){u(C,"onDocumentTouchEnd","touchend",function(p){delete g[p.pointerId]})},M.prototype.setDOMEvents=function(){var C=this.chart.tooltip;w.prototype.setDOMEvents.call(this),(this.hasZoom||y(C&&C.options.followTouchMove,!0))&&this.batchMSEvents(E)},M}(B);return v}),et(_,"Core/Legend/Legend.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Series/Point.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V=G.animObject,F=G.setAnimation,I=B.format,E=H.marginNames,A=$.distribute,P=Z.addEvent,y=Z.createElement,c=Z.css,g=Z.defined,m=Z.discardElement,u=Z.find,v=Z.fireEvent,w=Z.isNumber,M=Z.merge,C=Z.pick,p=Z.relativeLength,f=Z.stableSort,r=Z.syncTimeout;return function(){function l(t,i){this.allItems=[],this.box=void 0,this.contentGroup=void 0,this.display=!1,this.group=void 0,this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.init(t,i)}return l.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),P(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=P(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},l.prototype.setOptions=function(t){var i=C(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=M(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=i,this.initialItemY=i-5,this.symbolWidth=C(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},l.prototype.update=function(t,i){var o=this.chart;this.setOptions(M(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,C(i,!0)&&o.redraw(),v(this,"afterUpdate")},l.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,a=o.label,s=o.line,h=o.symbol;if(e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var b=this.options,k=this.itemHiddenStyle.color,O=i?b.itemStyle.color:k,d=i&&t.color||k,x=t.options&&t.options.marker,T={fill:d};a&&a.css({fill:O,color:O}),s&&s.attr({stroke:d}),h&&(x&&h.isMarker&&(T=t.pointAttribs(),i||(T.stroke=T.fill=k)),h.attr(T))}v(this,"afterColorizeItem",{item:t,visible:i})},l.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},l.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,a=o.x,s=a===void 0?0:a,h=o.y,b=h===void 0?0:h,k=this.options,O=k.symbolPadding,d=!k.rtl,x=t.checkbox;if(e&&e.element){var T={translateX:d?s:this.legendWidth-s-2*O-4,translateY:b};e[g(e.translateY)?"animate":"attr"](T,void 0,function(){v(i,"afterPositionItem",{item:t})})}x&&(x.x=s,x.y=b)},l.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,a=["group","label","line","symbol"];e<a.length;e++){var s=a[e];o[s]&&(o[s]=o[s].destroy())}i&&m(i),t.legendItem=void 0},l.prototype.destroy=function(){for(var t=this,i=0,o=this.getAllItems();i<o.length;i++){var e=o[i];this.destroyItem(e)}for(var a=0,s=["clipRect","up","down","pager","nav","box","title","group"];a<s.length;a++){var h=s[a];t[h]&&(t[h]=t[h].destroy())}this.display=null},l.prototype.positionCheckboxes=function(){var t,i=this.group&&this.group.alignAttr,o=this.clipHeight||this.legendHeight,e=this.titleHeight;i&&(t=i.translateY,this.allItems.forEach(function(a){var s,h=a.checkbox;h&&(s=t+e+h.y+(this.scrollOffset||0)+3,c(h,{left:i.translateX+a.checkboxOffset+h.x-20+"px",top:s+"px",display:this.proximate||s>t-6&&s<t+o-6?"":"none"}))},this))},l.prototype.renderTitle=function(){var t,i=this.options,o=this.padding,e=i.title,a=0;e.text&&(this.title||(this.title=this.chart.renderer.label(e.text,o-3,o-4,void 0,void 0,void 0,i.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(e.style),this.title.add(this.group)),e.width||this.title.css({width:this.maxLegendWidth+"px"}),a=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:a})),this.titleHeight=a},l.prototype.setText=function(t){var i=this.options;t.legendItem.label.attr({text:i.labelFormat?I(i.labelFormat,t,this.chart):i.labelFormatter.call(t)})},l.prototype.renderItem=function(t){var i=this,o=t.legendItem=t.legendItem||{},e=i.chart,a=e.renderer,s=i.options,h=s.layout==="horizontal",b=i.symbolWidth,k=s.symbolPadding||0,O=i.itemStyle,d=i.itemHiddenStyle,x=h?C(s.itemDistance,20):0,T=!s.rtl,N=!t.series,z=!N&&t.series.drawLegendSymbol?t.series:t,L=z.options,D=i.createCheckboxForItem&&L&&L.showCheckbox,j=s.useHTML,Y=t.options.className,X=o.label,W=b+k+x+(D?20:0);X||(o.group=a.g("legend-item").addClass("highcharts-"+z.type+"-series highcharts-color-"+t.colorIndex+(Y?" "+Y:"")+(N?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(i.scrollGroup),o.label=X=a.text("",T?b+k:-k,i.baseline||0,j),e.styledMode||X.css(M(t.visible?O:d)),X.attr({align:T?"left":"right",zIndex:2}).add(o.group),i.baseline||(i.fontMetrics=a.fontMetrics(e.styledMode?12:O.fontSize,X),i.baseline=i.fontMetrics.f+3+i.itemMarginTop,X.attr("y",i.baseline),i.symbolHeight=s.symbolHeight||i.fontMetrics.f,s.squareSymbol&&(i.symbolWidth=C(s.symbolWidth,Math.max(i.symbolHeight,16)),W=i.symbolWidth+k+x+(D?20:0),T&&X.attr("x",i.symbolWidth+k))),z.drawLegendSymbol(i,t),i.setItemEvents&&i.setItemEvents(t,X,j)),D&&!t.checkbox&&i.createCheckboxForItem&&i.createCheckboxForItem(t),i.colorizeItem(t,t.visible),!e.styledMode&&O.width||X.css({width:(s.itemWidth||i.widthOption||e.spacingBox.width)-W+"px"}),i.setText(t);var q=X.getBBox(),tt=i.fontMetrics&&i.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=s.itemWidth||o.labelWidth||q.width+W,i.maxItemWidth=Math.max(i.maxItemWidth,t.itemWidth),i.totalItemWidth+=t.itemWidth,i.itemHeight=t.itemHeight=Math.round(o.labelHeight||(q.height>1.5*tt?q.height:tt))},l.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",a=t.itemHeight,s=this.itemMarginBottom,h=this.itemMarginTop,b=e?C(i.itemDistance,20):0,k=this.maxLegendWidth,O=i.alignColumns&&this.totalItemWidth>k?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};e&&this.itemX-o+O>k&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=h+this.itemY+s,this.lastLineHeight=Math.max(a,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,e?this.itemX+=O:(this.itemY+=h+a+s,this.lastLineHeight=a),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):O)+o,this.offsetWidth)},l.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&C(o.showInLegend,!g(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},l.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},l.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,a=this.getAlignment();a&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(s,h){s.test(a)&&!g(t[h])&&(o[E[h]]=Math.max(o[E[h]],o.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*e[h%2?"x":"y"]+C(e.margin,12)+i[h]+(o.titleOffset[h]||0)))})},l.prototype.proximatePositions=function(){var t,i=this.chart,o=[],e=this.options.align==="left";this.allItems.forEach(function(b){var k,O,d,x,T=e;b.yAxis&&(b.xAxis.options.reversed&&(T=!T),b.points&&(k=u(T?b.points:b.points.slice(0).reverse(),function(N){return w(N.plotY)})),O=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom,x=b.yAxis.top-i.plotTop,b.visible?(d=k?k.plotY:b.yAxis.height,d+=x-.3*O):d=x+b.yAxis.height,o.push({target:d,size:O,item:b}))},this);for(var a=0,s=A(o,i.plotHeight);a<s.length;a++){var h=s[a];t=h.item.legendItem||{},w(h.pos)&&(t.y=i.plotTop-i.spacing[0]+h.pos)}},l.prototype.render=function(){var t,i,o,e,a=this,s=a.chart,h=s.renderer,b=a.options,k=a.padding,O=a.getAllItems(),d=a.group,x=a.box;a.itemX=k,a.itemY=a.initialItemY,a.offsetWidth=0,a.lastItemY=0,a.widthOption=p(b.width,s.spacingBox.width-k),e=s.spacingBox.width-2*k-b.x,["rm","lm"].indexOf(a.getAlignment().substring(0,2))>-1&&(e/=2),a.maxLegendWidth=a.widthOption||e,d||(a.group=d=h.g("legend").addClass(b.className||"").attr({zIndex:7}).add(),a.contentGroup=h.g().attr({zIndex:1}).add(d),a.scrollGroup=h.g().add(a.contentGroup)),a.renderTitle(),f(O,function(T,N){return(T.options&&T.options.legendIndex||0)-(N.options&&N.options.legendIndex||0)}),b.reversed&&O.reverse(),a.allItems=O,a.display=t=!!O.length,a.lastLineHeight=0,a.maxItemWidth=0,a.totalItemWidth=0,a.itemHeight=0,O.forEach(a.renderItem,a),O.forEach(a.layoutItem,a),i=(a.widthOption||a.offsetWidth)+k,o=a.lastItemY+a.lastLineHeight+a.titleHeight,o=a.handleOverflow(o),o+=k,x||(a.box=x=h.rect().addClass("highcharts-legend-box").attr({r:b.borderRadius}).add(d)),s.styledMode||x.attr({stroke:b.borderColor,"stroke-width":b.borderWidth||0,fill:b.backgroundColor||"none"}).shadow(b.shadow),i>0&&o>0&&x[x.placed?"animate":"attr"](x.crisp.call({},{x:0,y:0,width:i,height:o},x.strokeWidth())),d[t?"show":"hide"](),s.styledMode&&d.getStyle("display")==="none"&&(i=o=0),a.legendWidth=i,a.legendHeight=o,t&&a.align(),this.proximate||this.positionItems(),v(this,"afterRender")},l.prototype.align=function(t){t===void 0&&(t=this.chart.spacingBox);var i=this.chart,o=this.options,e=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&i.titleOffset[0]>0?e+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&i.titleOffset[2]>0&&(e-=i.titleOffset[2]),e!==t.y&&(t=M(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(M(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},l.prototype.handleOverflow=function(t){var i,o,e,a=this,s=this.chart,h=s.renderer,b=this.options,k=b.y,O=b.verticalAlign==="top",d=this.padding,x=b.maxHeight,T=b.navigation,N=C(T.animation,!0),z=T.arrowSize||12,L=this.pages,D=this.allItems,j=function(tt){typeof tt=="number"?q.attr({height:tt}):q&&(a.clipRect=q.destroy(),a.contentGroup.clip()),a.contentGroup.div&&(a.contentGroup.div.style.clip=tt?"rect("+d+"px,9999px,"+(d+tt)+"px,0)":"auto")},Y=function(tt){return a[tt]=h.circle(0,0,1.3*z).translate(z/2,z/2).add(W),s.styledMode||a[tt].attr("fill","rgba(0,0,0,0.0001)"),a[tt]},X=s.spacingBox.height+(O?-k:k)-d,W=this.nav,q=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(X/=2),x&&(X=Math.min(X,x)),L.length=0,t&&X>0&&t>X&&T.enabled!==!1?(this.clipHeight=i=Math.max(X-20-this.titleHeight-d,0),this.currentPage=C(this.currentPage,1),this.fullHeight=t,D.forEach(function(tt,Q){var nt=(e=tt.legendItem||{}).y||0,lt=Math.round(e.label.getBBox().height),gt=L.length;(!gt||nt-L[gt-1]>i&&(o||nt)!==L[gt-1])&&(L.push(o||nt),gt++),e.pageIx=gt-1,o&&((D[Q-1].legendItem||{}).pageIx=gt-1),Q===D.length-1&&nt+lt-L[gt-1]>i&<<=i&&(L.push(nt),e.pageIx=gt),nt!==o&&(o=nt)}),q||(q=a.clipRect=h.clipRect(0,d,9999,0),a.contentGroup.clip(q)),j(i),W||(this.nav=W=h.g().attr({zIndex:1}).add(this.group),this.up=h.symbol("triangle",0,0,z,z).add(W),Y("upTracker").on("click",function(){a.scroll(-1,N)}),this.pager=h.text("",15,10).addClass("highcharts-legend-navigation"),!s.styledMode&&T.style&&this.pager.css(T.style),this.pager.add(W),this.down=h.symbol("triangle-down",0,0,z,z).add(W),Y("downTracker").on("click",function(){a.scroll(1,N)})),a.scroll(0),t=X):W&&(j(),this.nav=W.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},l.prototype.scroll=function(t,i){var o=this,e=this.chart,a=this.pages,s=a.length,h=this.clipHeight,b=this.options.navigation,k=this.pager,O=this.padding,d=this.currentPage+t;if(d>s&&(d=s),d>0){i!==void 0&&F(i,e),this.nav.attr({translateX:O,translateY:h+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(T){T.attr({class:d===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),k.attr({text:d+"/"+s}),[this.down,this.downTracker].forEach(function(T){T.attr({x:18+this.pager.getBBox().width,class:d===s?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:d===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:d===1?"default":"pointer"}),this.down.attr({fill:d===s?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:d===s?"default":"pointer"})),this.scrollOffset=-a[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes();var x=V(C(i,e.renderer.globalAnimation,!0));r(function(){v(o,"afterScroll",{currentPage:d})},x.duration)}},l.prototype.setItemEvents=function(t,i,o){for(var e=this,a=t.legendItem||{},s=e.chart.renderer.boxWrapper,h=t instanceof U,b="highcharts-legend-"+(h?"point":"series")+"-active",k=e.chart.styledMode,O=o?[i,a.symbol]:[a.group],d=function(z){e.allItems.forEach(function(L){t!==L&&[L].concat(L.linkedSeries||[]).forEach(function(D){D.setState(z,!h)})})},x=0,T=O;x<T.length;x++){var N=T[x];N&&N.on("mouseover",function(){t.visible&&d("inactive"),t.setState("hover"),t.visible&&s.addClass(b),k||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(M(t.visible?e.itemStyle:e.itemHiddenStyle)),d(""),s.removeClass(b),t.setState()}).on("click",function(z){var L="legendItemClick",D=function(){t.setVisible&&t.setVisible(),d(t.visible?"inactive":"")};s.removeClass(b),z={browserEvent:z},t.firePointEvent?t.firePointEvent(L,z,D):v(t,L,z,D)})}},l.prototype.createCheckboxForItem=function(t){t.checkbox=y("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),P(t.checkbox,"click",function(i){var o=i.target;v(t.series||t,"checkboxClick",{checked:o.checked,item:t},function(){t.select()})})},l}()}),et(_,"Core/Series/SeriesRegistry.js",[_["Core/Globals.js"],_["Core/Defaults.js"],_["Core/Series/Point.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=B.defaultOptions,V=U.extendClass,F=U.merge;return function(I){function E(A,P){var y=Z.plotOptions||{},c=P.defaultOptions,g=P.prototype;g.type=A,g.pointClass||(g.pointClass=H),c&&(y[A]=c),I.seriesTypes[A]=P}I.seriesTypes=G.seriesTypes,I.registerSeriesType=E,I.seriesType=function(A,P,y,c,g){var m=Z.plotOptions||{};return P=P||"",m[A]=F(m[P],y),E(A,V(I.seriesTypes[P]||function(){},c)),I.seriesTypes[A].prototype.type=A,g&&(I.seriesTypes[A].prototype.pointClass=V(H,g)),I.seriesTypes[A]}}($||($={})),$}),et(_,"Core/Chart/Chart.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/FormatUtilities.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Legend/Legend.js"],_["Core/MSPointer.js"],_["Core/Pointer.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Time.js"],_["Core/Utilities.js"],_["Core/Renderer/HTML/AST.js"]],function(G,B,H,U,$,Z,V,F,I,E,A,P,y,c,g){var m=G.animate,u=G.animObject,v=G.setAnimation,w=H.defaultOptions,M=H.defaultTime,C=U.numberFormat,p=$.registerEventOptions,f=Z.charts,r=Z.doc,l=Z.marginNames,t=Z.svg,i=Z.win,o=A.seriesTypes,e=c.addEvent,a=c.attr,s=c.cleanRecursively,h=c.createElement,b=c.css,k=c.defined,O=c.discardElement,d=c.erase,x=c.error,T=c.extend,N=c.find,z=c.fireEvent,L=c.getStyle,D=c.isArray,j=c.isNumber,Y=c.isObject,X=c.isString,W=c.merge,q=c.objectEach,tt=c.pick,Q=c.pInt,nt=c.relativeLength,lt=c.removeEvent,gt=c.splat,mt=c.syncTimeout,bt=c.uniqueKey,yt=function(){function dt(ot,at,ut){this.axes=void 0,this.axisOffset=void 0,this.bounds=void 0,this.chartHeight=void 0,this.chartWidth=void 0,this.clipBox=void 0,this.colorCounter=void 0,this.container=void 0,this.eventOptions=void 0,this.index=void 0,this.isResizing=void 0,this.labelCollectors=void 0,this.legend=void 0,this.margin=void 0,this.numberFormatter=void 0,this.options=void 0,this.plotBox=void 0,this.plotHeight=void 0,this.plotLeft=void 0,this.plotTop=void 0,this.plotWidth=void 0,this.pointCount=void 0,this.pointer=void 0,this.renderer=void 0,this.renderTo=void 0,this.series=void 0,this.sharedClips={},this.spacing=void 0,this.spacingBox=void 0,this.symbolCounter=void 0,this.time=void 0,this.titleOffset=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.getArgs(ot,at,ut)}return dt.chart=function(ot,at,ut){return new dt(ot,at,ut)},dt.prototype.getArgs=function(ot,at,ut){X(ot)||ot.nodeName?(this.renderTo=ot,this.init(at,ut)):this.init(ot,at)},dt.prototype.init=function(ot,at){var ut=ot.plotOptions||{};z(this,"init",{args:arguments},function(){var vt=W(w,ot),Ct=vt.chart;q(vt.plotOptions,function(Mt,At){Y(Mt)&&(Mt.tooltip=ut[At]&&W(ut[At].tooltip)||void 0)}),vt.tooltip.userOptions=ot.chart&&ot.chart.forExport&&ot.tooltip.userOptions||ot.tooltip,this.userOptions=ot,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=at,this.isResizing=0;var xt=Ct.zooming=Ct.zooming||{};ot.chart&&!ot.chart.zooming&&(xt.resetButton=Ct.resetZoomButton),xt.key=tt(xt.key,Ct.zoomKey),xt.pinchType=tt(xt.pinchType,Ct.pinchType),xt.singleTouch=tt(xt.singleTouch,Ct.zoomBySingleTouch),xt.type=tt(xt.type,Ct.zoomType),this.options=vt,this.axes=[],this.series=[],this.time=ot.time&&Object.keys(ot.time).length?new y(ot.time):Z.time,this.numberFormatter=Ct.numberFormatter||C,this.styledMode=Ct.styledMode,this.hasCartesianSeries=Ct.showAxes;var wt=this;wt.index=f.length,f.push(wt),Z.chartCount++,p(this,Ct),wt.xAxis=[],wt.yAxis=[],wt.pointCount=wt.colorCounter=wt.symbolCounter=0,z(wt,"afterInit"),wt.firstRender()})},dt.prototype.initSeries=function(ot){var at=this,ut=at.options.chart,vt=ot.type||ut.type||ut.defaultSeriesType,Ct=o[vt];Ct||x(17,!0,at,{missingModuleFor:vt});var xt=new Ct;return typeof xt.init=="function"&&xt.init(at,ot),xt},dt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(ot){ot.points||ot.data||!ot.enabledDataSorting||ot.setData(ot.options.data,!1)})},dt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(ot,at){return ot.linkedSeries.length||at.linkedSeries.length?at.linkedSeries.length-ot.linkedSeries.length:0})},dt.prototype.orderSeries=function(ot){for(var at=this.series,ut=ot||0,vt=at.length;ut<vt;++ut)at[ut]&&(at[ut].index=ut,at[ut].name=at[ut].getName())},dt.prototype.isInsidePlot=function(ot,at,ut){var vt;ut===void 0&&(ut={});var Ct=this,xt=Ct.inverted,wt=Ct.plotBox,Mt=Ct.plotLeft,At=Ct.plotTop,Tt=Ct.scrollablePlotBox,Et=0,Pt=0;ut.visiblePlotOnly&&this.scrollingContainer&&(Et=(vt=this.scrollingContainer).scrollLeft,Pt=vt.scrollTop);var Dt=ut.series,It=ut.visiblePlotOnly&&Tt||wt,jt=ut.inverted?at:ot,_t=ut.inverted?ot:at,Rt={x:jt,y:_t,isInsidePlot:!0,options:ut};if(!ut.ignoreX){var Jt=Dt&&(xt&&!this.polar?Dt.yAxis:Dt.xAxis)||{pos:Mt,len:1/0},zt=ut.paneCoordinates?Jt.pos+jt:Mt+jt;zt>=Math.max(Et+Mt,Jt.pos)&&zt<=Math.min(Et+Mt+It.width,Jt.pos+Jt.len)||(Rt.isInsidePlot=!1)}if(!ut.ignoreY&&Rt.isInsidePlot){var Vt=ut.axis&&!ut.axis.isXAxis&&ut.axis||Dt&&(xt?Dt.xAxis:Dt.yAxis)||{pos:At,len:1/0},te=ut.paneCoordinates?Vt.pos+_t:At+_t;te>=Math.max(Pt+At,Vt.pos)&&te<=Math.min(Pt+At+It.height,Vt.pos+Vt.len)||(Rt.isInsidePlot=!1)}return z(this,"afterIsInsidePlot",Rt),Rt.isInsidePlot},dt.prototype.redraw=function(ot){z(this,"beforeRedraw");var at,ut,vt,Ct,xt=this,wt=xt.hasCartesianSeries?xt.axes:xt.colorAxis||[],Mt=xt.series,At=xt.pointer,Tt=xt.legend,Et=xt.userOptions.legend,Pt=xt.renderer,Dt=Pt.isHidden(),It=[],jt=xt.isDirtyBox,_t=xt.isDirtyLegend;for(xt.setResponsive&&xt.setResponsive(!1),v(!!xt.hasRendered&&ot,xt),Dt&&xt.temporaryDisplay(),xt.layOutTitles(),vt=Mt.length;vt--;)if(((Ct=Mt[vt]).options.stacking||Ct.options.centerInCategory)&&(ut=!0,Ct.isDirty)){at=!0;break}if(at)for(vt=Mt.length;vt--;)(Ct=Mt[vt]).options.stacking&&(Ct.isDirty=!0);Mt.forEach(function(Rt){Rt.isDirty&&(Rt.options.legendType==="point"?(typeof Rt.updateTotals=="function"&&Rt.updateTotals(),_t=!0):Et&&(Et.labelFormatter||Et.labelFormat)&&(_t=!0)),Rt.isDirtyData&&z(Rt,"updatedData")}),_t&&Tt&&Tt.options.enabled&&(Tt.render(),xt.isDirtyLegend=!1),ut&&xt.getStacks(),wt.forEach(function(Rt){Rt.updateNames(),Rt.setScale()}),xt.getMargins(),wt.forEach(function(Rt){Rt.isDirty&&(jt=!0)}),wt.forEach(function(Rt){var Jt=Rt.min+","+Rt.max;Rt.extKey!==Jt&&(Rt.extKey=Jt,It.push(function(){z(Rt,"afterSetExtremes",T(Rt.eventArgs,Rt.getExtremes())),delete Rt.eventArgs})),(jt||ut)&&Rt.redraw()}),jt&&xt.drawChartBox(),z(xt,"predraw"),Mt.forEach(function(Rt){(jt||Rt.isDirty)&&Rt.visible&&Rt.redraw(),Rt.isDirtyData=!1}),At&&At.reset(!0),Pt.draw(),z(xt,"redraw"),z(xt,"render"),Dt&&xt.temporaryDisplay(!0),It.forEach(function(Rt){Rt.call()})},dt.prototype.get=function(ot){var at=this.series;function ut(xt){return xt.id===ot||xt.options&&xt.options.id===ot}for(var vt=N(this.axes,ut)||N(this.series,ut),Ct=0;!vt&&Ct<at.length;Ct++)vt=N(at[Ct].points||[],ut);return vt},dt.prototype.getAxes=function(){var ot=this,at=this.options,ut=at.xAxis=gt(at.xAxis||{}),vt=at.yAxis=gt(at.yAxis||{});z(this,"getAxes"),ut.forEach(function(Ct,xt){Ct.index=xt,Ct.isX=!0}),vt.forEach(function(Ct,xt){Ct.index=xt}),ut.concat(vt).forEach(function(Ct){new B(ot,Ct)}),z(this,"afterGetAxes")},dt.prototype.getSelectedPoints=function(){return this.series.reduce(function(ot,at){return at.getPointsCollection().forEach(function(ut){tt(ut.selectedStaging,ut.selected)&&ot.push(ut)}),ot},[])},dt.prototype.getSelectedSeries=function(){return this.series.filter(function(ot){return ot.selected})},dt.prototype.setTitle=function(ot,at,ut){this.applyDescription("title",ot),this.applyDescription("subtitle",at),this.applyDescription("caption",void 0),this.layOutTitles(ut)},dt.prototype.applyDescription=function(ot,at){var ut=this,vt=ot==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"},Ct=this.options[ot]=W(!this.styledMode&&{style:vt},this.options[ot],at),xt=this[ot];xt&&at&&(this[ot]=xt=xt.destroy()),Ct&&!xt&&((xt=this.renderer.text(Ct.text,0,0,Ct.useHTML).attr({align:Ct.align,class:"highcharts-"+ot,zIndex:Ct.zIndex||4}).add()).update=function(wt){ut[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[ot]](wt)},this.styledMode||xt.css(Ct.style),this[ot]=xt)},dt.prototype.layOutTitles=function(ot){var at=[0,0,0],ut=this.renderer,vt=this.spacingBox;["title","subtitle","caption"].forEach(function(xt){var wt,Mt,At=this[xt],Tt=this.options[xt],Et=Tt.verticalAlign||"top",Pt=xt==="title"?Et==="top"?-3:0:Et==="top"?at[0]+2:0;At&&(this.styledMode||(wt=Tt.style&&Tt.style.fontSize),wt=ut.fontMetrics(wt,At).b,At.css({width:(Tt.width||vt.width+(Tt.widthAdjust||0))+"px"}),Mt=Math.round(At.getBBox(Tt.useHTML).height),At.align(T({y:Et==="bottom"?wt:Pt+wt,height:Mt},Tt),!1,"spacingBox"),Tt.floating||(Et==="top"?at[0]=Math.ceil(at[0]+Mt):Et==="bottom"&&(at[2]=Math.ceil(at[2]+Mt))))},this),at[0]&&(this.options.title.verticalAlign||"top")==="top"&&(at[0]+=this.options.title.margin),at[2]&&this.options.caption.verticalAlign==="bottom"&&(at[2]+=this.options.caption.margin);var Ct=!this.titleOffset||this.titleOffset.join(",")!==at.join(",");this.titleOffset=at,z(this,"afterLayOutTitles"),!this.isDirtyBox&&Ct&&(this.isDirtyBox=this.isDirtyLegend=Ct,this.hasRendered&&tt(ot,!0)&&this.isDirtyBox&&this.redraw())},dt.prototype.getChartSize=function(){var ot=this,at=ot.options.chart,ut=at.width,vt=at.height,Ct=ot.renderTo;k(ut)||(ot.containerWidth=L(Ct,"width")),k(vt)||(ot.containerHeight=L(Ct,"height")),ot.chartWidth=Math.max(0,ut||ot.containerWidth||600),ot.chartHeight=Math.max(0,nt(vt,ot.chartWidth)||(ot.containerHeight>1?ot.containerHeight:400))},dt.prototype.temporaryDisplay=function(ot){var at,ut=this.renderTo;if(ot)for(;ut&&ut.style;)ut.hcOrigStyle&&(b(ut,ut.hcOrigStyle),delete ut.hcOrigStyle),ut.hcOrigDetached&&(r.body.removeChild(ut),ut.hcOrigDetached=!1),ut=ut.parentNode;else for(;ut&&ut.style&&(r.body.contains(ut)||ut.parentNode||(ut.hcOrigDetached=!0,r.body.appendChild(ut)),(L(ut,"display",!1)==="none"||ut.hcOricDetached)&&(ut.hcOrigStyle={display:ut.style.display,height:ut.style.height,overflow:ut.style.overflow},at={display:"block",overflow:"hidden"},ut!==this.renderTo&&(at.height=0),b(ut,at),ut.offsetWidth||ut.style.setProperty("display","block","important")),(ut=ut.parentNode)!==r.body););},dt.prototype.setClassName=function(ot){this.container.className="highcharts-container "+(ot||"")},dt.prototype.getContainer=function(){var ot,at=this,ut=at.options,vt=ut.chart,Ct="data-highcharts-chart",xt=bt(),wt=at.renderTo;wt||(at.renderTo=wt=vt.renderTo),X(wt)&&(at.renderTo=wt=r.getElementById(wt)),wt||x(13,!0,at);var Mt=Q(a(wt,Ct));j(Mt)&&f[Mt]&&f[Mt].hasRendered&&f[Mt].destroy(),a(wt,Ct,at.index),wt.innerHTML=g.emptyHTML,vt.skipClone||wt.offsetWidth||at.temporaryDisplay(),at.getChartSize();var At=at.chartWidth,Tt=at.chartHeight;b(wt,{overflow:"hidden"}),at.styledMode||(ot=T({position:"relative",overflow:"hidden",width:At+"px",height:Tt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},vt.style||{}));var Et=h("div",{id:xt},ot,wt);at.container=Et,at._cursor=Et.style.cursor;var Pt=vt.renderer||!t?E.getRendererType(vt.renderer):P;if(at.renderer=new Pt(Et,At,Tt,void 0,vt.forExport,ut.exporting&&ut.exporting.allowHTML,at.styledMode),v(void 0,at),at.setClassName(vt.className),at.styledMode)for(var Dt in ut.defs)this.renderer.definition(ut.defs[Dt]);else at.renderer.setStyle(vt.style);at.renderer.chartIndex=at.index,z(this,"afterGetContainer")},dt.prototype.getMargins=function(ot){var at=this,ut=at.spacing,vt=at.margin,Ct=at.titleOffset;this.resetMargins(),Ct[0]&&!k(vt[0])&&(this.plotTop=Math.max(this.plotTop,Ct[0]+ut[0])),Ct[2]&&!k(vt[2])&&(this.marginBottom=Math.max(this.marginBottom,Ct[2]+ut[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(vt,ut),z(this,"getMargins"),ot||this.getAxisMargins()},dt.prototype.getAxisMargins=function(){var ot=this,at=ot.axisOffset=[0,0,0,0],ut=ot.colorAxis,vt=ot.margin,Ct=function(xt){xt.forEach(function(wt){wt.visible&&wt.getOffset()})};ot.hasCartesianSeries?Ct(ot.axes):ut&&ut.length&&Ct(ut),l.forEach(function(xt,wt){k(vt[wt])||(ot[xt]+=at[wt])}),ot.setChartSize()},dt.prototype.reflow=function(ot){var at=this,ut=at.options.chart,vt=at.renderTo,Ct=k(ut.width)&&k(ut.height),xt=ut.width||L(vt,"width"),wt=ut.height||L(vt,"height"),Mt=ot?ot.target:i;delete at.pointer.chartPosition,Ct||at.isPrinting||!xt||!wt||Mt!==i&&Mt!==r||(xt===at.containerWidth&&wt===at.containerHeight||(c.clearTimeout(at.reflowTimeout),at.reflowTimeout=mt(function(){at.container&&at.setSize(void 0,void 0,!1)},ot?100:0)),at.containerWidth=xt,at.containerHeight=wt)},dt.prototype.setReflow=function(ot){var at=this;ot===!1||this.unbindReflow?ot===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(ut){at.options&&at.reflow(ut)}),e(this,"destroy",this.unbindReflow))},dt.prototype.setSize=function(ot,at,ut){var vt=this,Ct=vt.renderer;vt.isResizing+=1,v(ut,vt);var xt=Ct.globalAnimation;vt.oldChartHeight=vt.chartHeight,vt.oldChartWidth=vt.chartWidth,ot!==void 0&&(vt.options.chart.width=ot),at!==void 0&&(vt.options.chart.height=at),vt.getChartSize(),vt.styledMode||(xt?m:b)(vt.container,{width:vt.chartWidth+"px",height:vt.chartHeight+"px"},xt),vt.setChartSize(!0),Ct.setSize(vt.chartWidth,vt.chartHeight,xt),vt.axes.forEach(function(wt){wt.isDirty=!0,wt.setScale()}),vt.isDirtyLegend=!0,vt.isDirtyBox=!0,vt.layOutTitles(),vt.getMargins(),vt.redraw(xt),vt.oldChartHeight=null,z(vt,"resize"),mt(function(){vt&&z(vt,"endResize",null,function(){vt.isResizing-=1})},u(xt).duration)},dt.prototype.setChartSize=function(ot){var at,ut,vt,Ct,xt=this,wt=xt.inverted,Mt=xt.renderer,At=xt.chartWidth,Tt=xt.chartHeight,Et=xt.options.chart,Pt=xt.spacing,Dt=xt.clipOffset;xt.plotLeft=at=Math.round(xt.plotLeft),xt.plotTop=ut=Math.round(xt.plotTop),xt.plotWidth=vt=Math.max(0,Math.round(At-at-xt.marginRight)),xt.plotHeight=Ct=Math.max(0,Math.round(Tt-ut-xt.marginBottom)),xt.plotSizeX=wt?Ct:vt,xt.plotSizeY=wt?vt:Ct,xt.plotBorderWidth=Et.plotBorderWidth||0,xt.spacingBox=Mt.spacingBox={x:Pt[3],y:Pt[0],width:At-Pt[3]-Pt[1],height:Tt-Pt[0]-Pt[2]},xt.plotBox=Mt.plotBox={x:at,y:ut,width:vt,height:Ct};var It=2*Math.floor(xt.plotBorderWidth/2),jt=Math.ceil(Math.max(It,Dt[3])/2),_t=Math.ceil(Math.max(It,Dt[0])/2);xt.clipBox={x:jt,y:_t,width:Math.floor(xt.plotSizeX-Math.max(It,Dt[1])/2-jt),height:Math.max(0,Math.floor(xt.plotSizeY-Math.max(It,Dt[2])/2-_t))},ot||(xt.axes.forEach(function(Rt){Rt.setAxisSize(),Rt.setAxisTranslation()}),Mt.alignElements()),z(xt,"afterSetChartSize",{skipAxes:ot})},dt.prototype.resetMargins=function(){z(this,"resetMargins");var ot=this,at=ot.options.chart;["margin","spacing"].forEach(function(ut){var vt=at[ut],Ct=Y(vt)?vt:[vt,vt,vt,vt];["Top","Right","Bottom","Left"].forEach(function(xt,wt){ot[ut][wt]=tt(at[ut+xt],Ct[wt])})}),l.forEach(function(ut,vt){ot[ut]=tt(ot.margin[vt],ot.spacing[vt])}),ot.axisOffset=[0,0,0,0],ot.clipOffset=[0,0,0,0]},dt.prototype.drawChartBox=function(){var ot,at,ut,vt=this,Ct=vt.options.chart,xt=vt.renderer,wt=vt.chartWidth,Mt=vt.chartHeight,At=vt.styledMode,Tt=vt.plotBGImage,Et=Ct.backgroundColor,Pt=Ct.plotBackgroundColor,Dt=Ct.plotBackgroundImage,It=vt.plotLeft,jt=vt.plotTop,_t=vt.plotWidth,Rt=vt.plotHeight,Jt=vt.plotBox,zt=vt.clipRect,Vt=vt.clipBox,te=vt.chartBackground,be=vt.plotBackground,$t=vt.plotBorder,ie="animate";te||(vt.chartBackground=te=xt.rect().addClass("highcharts-background").add(),ie="attr"),At?ot=at=te.strokeWidth():(at=(ot=Ct.borderWidth||0)+(Ct.shadow?8:0),ut={fill:Et||"none"},(ot||te["stroke-width"])&&(ut.stroke=Ct.borderColor,ut["stroke-width"]=ot),te.attr(ut).shadow(Ct.shadow)),te[ie]({x:at/2,y:at/2,width:wt-at-ot%2,height:Mt-at-ot%2,r:Ct.borderRadius}),ie="animate",be||(ie="attr",vt.plotBackground=be=xt.rect().addClass("highcharts-plot-background").add()),be[ie](Jt),At||(be.attr({fill:Pt||"none"}).shadow(Ct.plotShadow),Dt&&(Tt?(Dt!==Tt.attr("href")&&Tt.attr("href",Dt),Tt.animate(Jt)):vt.plotBGImage=xt.image(Dt,It,jt,_t,Rt).add())),zt?zt.animate({width:Vt.width,height:Vt.height}):vt.clipRect=xt.clipRect(Vt),ie="animate",$t||(ie="attr",vt.plotBorder=$t=xt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),At||$t.attr({stroke:Ct.plotBorderColor,"stroke-width":Ct.plotBorderWidth||0,fill:"none"}),$t[ie]($t.crisp({x:It,y:jt,width:_t,height:Rt},-$t.strokeWidth())),vt.isDirtyBox=!1,z(this,"afterDrawChartBox")},dt.prototype.propFromSeries=function(){var ot,at,ut,vt=this,Ct=vt.options.chart,xt=vt.options.series;["inverted","angular","polar"].forEach(function(wt){for(at=o[Ct.type||Ct.defaultSeriesType],ut=Ct[wt]||at&&at.prototype[wt],ot=xt&&xt.length;!ut&&ot--;)(at=o[xt[ot].type])&&at.prototype[wt]&&(ut=!0);vt[wt]=ut})},dt.prototype.linkSeries=function(){var ot=this,at=ot.series;at.forEach(function(ut){ut.linkedSeries.length=0}),at.forEach(function(ut){var vt=ut.options.linkedTo;X(vt)&&(vt=vt===":previous"?ot.series[ut.index-1]:ot.get(vt))&&vt.linkedParent!==ut&&(vt.linkedSeries.push(ut),ut.linkedParent=vt,vt.enabledDataSorting&&ut.setDataSortingOptions(),ut.visible=tt(ut.options.visible,vt.options.visible,ut.visible))}),z(this,"afterLinkSeries")},dt.prototype.renderSeries=function(){this.series.forEach(function(ot){ot.translate(),ot.render()})},dt.prototype.renderLabels=function(){var ot=this,at=ot.options.labels;at.items&&at.items.forEach(function(ut){var vt=T(at.style,ut.style),Ct=Q(vt.left)+ot.plotLeft,xt=Q(vt.top)+ot.plotTop+12;delete vt.left,delete vt.top,ot.renderer.text(ut.html,Ct,xt).attr({zIndex:2}).css(vt).add()})},dt.prototype.render=function(){var ot=this,at=ot.axes,ut=ot.colorAxis,vt=ot.renderer,Ct=ot.options,xt=function(Pt){Pt.forEach(function(Dt){Dt.visible&&Dt.render()})},wt=0;ot.setTitle(),ot.legend=new V(ot,Ct.legend),ot.getStacks&&ot.getStacks(),ot.getMargins(!0),ot.setChartSize();var Mt=ot.plotWidth;at.some(function(Pt){if(Pt.horiz&&Pt.visible&&Pt.options.labels.enabled&&Pt.series.length)return wt=21,!0}),ot.plotHeight=Math.max(ot.plotHeight-wt,0);var At=ot.plotHeight;at.forEach(function(Pt){Pt.setScale()}),ot.getAxisMargins();var Tt=Mt/ot.plotWidth>1.1,Et=At/ot.plotHeight>1.05;(Tt||Et)&&(at.forEach(function(Pt){(Pt.horiz&&Tt||!Pt.horiz&&Et)&&Pt.setTickInterval(!0)}),ot.getMargins()),ot.drawChartBox(),ot.hasCartesianSeries?xt(at):ut&&ut.length&&xt(ut),ot.seriesGroup||(ot.seriesGroup=vt.g("series-group").attr({zIndex:3}).add()),ot.renderSeries(),ot.renderLabels(),ot.addCredits(),ot.setResponsive&&ot.setResponsive(),ot.hasRendered=!0},dt.prototype.addCredits=function(ot){var at=this,ut=W(!0,this.options.credits,ot);ut.enabled&&!this.credits&&(this.credits=this.renderer.text(ut.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){ut.href&&(i.location.href=ut.href)}).attr({align:ut.position.align,zIndex:8}),at.styledMode||this.credits.css(ut.style),this.credits.add().align(ut.position),this.credits.update=function(vt){at.credits=at.credits.destroy(),at.addCredits(vt)})},dt.prototype.destroy=function(){var ot,at=this,ut=at.axes,vt=at.series,Ct=at.container,xt=Ct&&Ct.parentNode;for(z(at,"destroy"),at.renderer.forExport?d(f,at):f[at.index]=void 0,Z.chartCount--,at.renderTo.removeAttribute("data-highcharts-chart"),lt(at),ot=ut.length;ot--;)ut[ot]=ut[ot].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),ot=vt.length;ot--;)vt[ot]=vt[ot].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(wt){var Mt=at[wt];Mt&&Mt.destroy&&(at[wt]=Mt.destroy())}),Ct&&(Ct.innerHTML=g.emptyHTML,lt(Ct),xt&&O(Ct)),q(at,function(wt,Mt){delete at[Mt]})},dt.prototype.firstRender=function(){var ot=this,at=ot.options;ot.isReadyToRender&&!ot.isReadyToRender()||(ot.getContainer(),ot.resetMargins(),ot.setChartSize(),ot.propFromSeries(),ot.getAxes(),(D(at.series)?at.series:[]).forEach(function(ut){ot.initSeries(ut)}),ot.linkSeries(),ot.setSeriesData(),z(ot,"beforeRender"),I&&(F.isRequired()?ot.pointer=new F(ot,at):ot.pointer=new I(ot,at)),ot.render(),ot.pointer.getChartPosition(),ot.renderer.imgCount||ot.hasLoaded||ot.onload(),ot.temporaryDisplay(!0))},dt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(ot){ot&&this.index!==void 0&&ot.apply(this,[this])},this),z(this,"load"),z(this,"render"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},dt.prototype.warnIfA11yModuleNotLoaded=function(){var ot=this.options,at=this.title;ot&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(at&&at.element.textContent||"").replace(/</g,"<")}),ot.accessibility&&ot.accessibility.enabled===!1||x('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},dt.prototype.addSeries=function(ot,at,ut){var vt,Ct=this;return ot&&(at=tt(at,!0),z(Ct,"addSeries",{options:ot},function(){vt=Ct.initSeries(ot),Ct.isDirtyLegend=!0,Ct.linkSeries(),vt.enabledDataSorting&&vt.setData(ot.data,!1),z(Ct,"afterAddSeries",{series:vt}),at&&Ct.redraw(ut)})),vt},dt.prototype.addAxis=function(ot,at,ut,vt){return this.createAxis(at?"xAxis":"yAxis",{axis:ot,redraw:ut,animation:vt})},dt.prototype.addColorAxis=function(ot,at,ut){return this.createAxis("colorAxis",{axis:ot,redraw:at,animation:ut})},dt.prototype.createAxis=function(ot,at){var ut=new B(this,W(at.axis,{index:this[ot].length,isX:ot==="xAxis"}));return tt(at.redraw,!0)&&this.redraw(at.animation),ut},dt.prototype.showLoading=function(ot){var at=this,ut=at.options,vt=ut.loading,Ct=function(){xt&&b(xt,{left:at.plotLeft+"px",top:at.plotTop+"px",width:at.plotWidth+"px",height:at.plotHeight+"px"})},xt=at.loadingDiv,wt=at.loadingSpan;xt||(at.loadingDiv=xt=h("div",{className:"highcharts-loading highcharts-loading-hidden"},null,at.container)),wt||(at.loadingSpan=wt=h("span",{className:"highcharts-loading-inner"},null,xt),e(at,"redraw",Ct)),xt.className="highcharts-loading",g.setElementHTML(wt,tt(ot,ut.lang.loading,"")),at.styledMode||(b(xt,T(vt.style,{zIndex:10})),b(wt,vt.labelStyle),at.loadingShown||(b(xt,{opacity:0,display:""}),m(xt,{opacity:vt.style.opacity||.5},{duration:vt.showDuration||0}))),at.loadingShown=!0,Ct()},dt.prototype.hideLoading=function(){var ot=this.options,at=this.loadingDiv;at&&(at.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(at,{opacity:0},{duration:ot.loading.hideDuration||100,complete:function(){b(at,{display:"none"})}})),this.loadingShown=!1},dt.prototype.update=function(ot,at,ut,vt){var Ct,xt,wt,Mt=this,At={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Tt=ot.isResponsiveOptions,Et=[];z(Mt,"update",{options:ot}),Tt||Mt.setResponsive(!1,!0),ot=s(ot,Mt.options),Mt.userOptions=W(Mt.userOptions,ot);var Pt=ot.chart;Pt&&(W(!0,Mt.options.chart,Pt),"className"in Pt&&Mt.setClassName(Pt.className),"reflow"in Pt&&Mt.setReflow(Pt.reflow),("inverted"in Pt||"polar"in Pt||"type"in Pt)&&(Mt.propFromSeries(),Ct=!0),"alignTicks"in Pt&&(Ct=!0),"events"in Pt&&p(this,Pt),q(Pt,function(jt,_t){Mt.propsRequireUpdateSeries.indexOf("chart."+_t)!==-1&&(xt=!0),Mt.propsRequireDirtyBox.indexOf(_t)!==-1&&(Mt.isDirtyBox=!0),Mt.propsRequireReflow.indexOf(_t)!==-1&&(Tt?Mt.isDirtyBox=!0:wt=!0)}),!Mt.styledMode&&Pt.style&&Mt.renderer.setStyle(Mt.options.chart.style||{})),!Mt.styledMode&&ot.colors&&(this.options.colors=ot.colors),ot.time&&(this.time===M&&(this.time=new y(ot.time)),W(!0,Mt.options.time,ot.time)),q(ot,function(jt,_t){Mt[_t]&&typeof Mt[_t].update=="function"?Mt[_t].update(jt,!1):typeof Mt[At[_t]]=="function"?Mt[At[_t]](jt):_t!=="colors"&&Mt.collectionsWithUpdate.indexOf(_t)===-1&&W(!0,Mt.options[_t],ot[_t]),_t!=="chart"&&Mt.propsRequireUpdateSeries.indexOf(_t)!==-1&&(xt=!0)}),this.collectionsWithUpdate.forEach(function(jt){var _t;ot[jt]&&(_t=[],Mt[jt].forEach(function(Rt,Jt){Rt.options.isInternal||_t.push(tt(Rt.options.index,Jt))}),gt(ot[jt]).forEach(function(Rt,Jt){var zt,Vt=k(Rt.id);Vt&&(zt=Mt.get(Rt.id)),!zt&&Mt[jt]&&(zt=Mt[jt][_t?_t[Jt]:Jt])&&Vt&&k(zt.options.id)&&(zt=void 0),zt&&zt.coll===jt&&(zt.update(Rt,!1),ut&&(zt.touched=!0)),!zt&&ut&&Mt.collectionsWithInit[jt]&&(Mt.collectionsWithInit[jt][0].apply(Mt,[Rt].concat(Mt.collectionsWithInit[jt][1]||[]).concat([!1])).touched=!0)}),ut&&Mt[jt].forEach(function(Rt){Rt.touched||Rt.options.isInternal?delete Rt.touched:Et.push(Rt)}))}),Et.forEach(function(jt){jt.chart&&jt.remove&&jt.remove(!1)}),Ct&&Mt.axes.forEach(function(jt){jt.update({},!1)}),xt&&Mt.getSeriesOrderByLinks().forEach(function(jt){jt.chart&&jt.update({},!1)},this);var Dt=Pt&&Pt.width,It=Pt&&(X(Pt.height)?nt(Pt.height,Dt||Mt.chartWidth):Pt.height);wt||j(Dt)&&Dt!==Mt.chartWidth||j(It)&&It!==Mt.chartHeight?Mt.setSize(Dt,It,vt):tt(at,!0)&&Mt.redraw(vt),z(Mt,"afterUpdate",{options:ot,redraw:at,animation:vt})},dt.prototype.setSubtitle=function(ot,at){this.applyDescription("subtitle",ot),this.layOutTitles(at)},dt.prototype.setCaption=function(ot,at){this.applyDescription("caption",ot),this.layOutTitles(at)},dt.prototype.showResetZoom=function(){var ot=this,at=w.lang,ut=ot.options.chart.zooming.resetButton,vt=ut.theme,Ct=ut.relativeTo==="chart"||ut.relativeTo==="spacingBox"?null:"scrollablePlotBox";function xt(){ot.zoomOut()}z(this,"beforeShowResetZoom",null,function(){ot.resetZoomButton=ot.renderer.button(at.resetZoom,null,null,xt,vt).attr({align:ut.position.align,title:at.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(ut.position,!1,Ct)}),z(this,"afterShowResetZoom")},dt.prototype.zoomOut=function(){z(this,"selection",{resetSelection:!0},this.zoom)},dt.prototype.zoom=function(ot){var at,ut=this,vt=ut.pointer,Ct=!1;!ot||ot.resetSelection?(ut.axes.forEach(function(wt){at=wt.zoom()}),vt.initiated=!1):ot.xAxis.concat(ot.yAxis).forEach(function(wt){var Mt=wt.axis,At=Mt.isXAxis;(vt[At?"zoomX":"zoomY"]&&k(vt.mouseDownX)&&k(vt.mouseDownY)&&ut.isInsidePlot(vt.mouseDownX-ut.plotLeft,vt.mouseDownY-ut.plotTop,{axis:Mt})||!k(ut.inverted?vt.mouseDownX:vt.mouseDownY))&&(at=Mt.zoom(wt.min,wt.max),Mt.displayBtn&&(Ct=!0))});var xt=ut.resetZoomButton;Ct&&!xt?ut.showResetZoom():!Ct&&Y(xt)&&(ut.resetZoomButton=xt.destroy()),at&&ut.redraw(tt(ut.options.chart.animation,ot&&ot.animation,ut.pointCount<100))},dt.prototype.pan=function(ot,at){var ut=this,vt=ut.hoverPoints,Ct=typeof at=="object"?at:{enabled:at,type:"x"},xt=ut.options.chart;xt&&xt.panning&&(xt.panning=Ct);var wt,Mt=Ct.type;z(this,"pan",{originalEvent:ot},function(){vt&&vt.forEach(function(Et){Et.setState()});var At=ut.xAxis;Mt==="xy"?At=At.concat(ut.yAxis):Mt==="y"&&(At=ut.yAxis);var Tt={};At.forEach(function(Et){if(Et.options.panningEnabled&&!Et.options.isInternal){var Pt,Dt=Et.horiz,It=ot[Dt?"chartX":"chartY"],jt=Dt?"mouseDownX":"mouseDownY",_t=ut[jt],Rt=Et.minPointOffset||0,Jt=Et.reversed&&!ut.inverted||!Et.reversed&&ut.inverted?-1:1,zt=Et.getExtremes(),Vt=Et.toValue(_t-It,!0)+Rt*Jt,te=Et.toValue(_t+Et.len-It,!0)-(Rt*Jt||Et.isXAxis&&Et.pointRangePadding||0),be=te<Vt,$t=Et.hasVerticalPanning(),ie=be?te:Vt,we=be?Vt:te,Ot=Et.panningState;!$t||Et.isXAxis||Ot&&!Ot.isDirty||Et.series.forEach(function(qt){var pe=qt.getProcessedData(!0),de=qt.getExtremes(pe.yData,!0);Ot||(Ot={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(de.dataMin)&&j(de.dataMax)&&(Ot.startMin=Math.min(tt(qt.options.threshold,1/0),de.dataMin,Ot.startMin),Ot.startMax=Math.max(tt(qt.options.threshold,-1/0),de.dataMax,Ot.startMax))});var Ft=Math.min(tt(Ot&&Ot.startMin,zt.dataMin),Rt?zt.min:Et.toValue(Et.toPixels(zt.min)-Et.minPixelPadding)),Zt=Math.max(tt(Ot&&Ot.startMax,zt.dataMax),Rt?zt.max:Et.toValue(Et.toPixels(zt.max)+Et.minPixelPadding));Et.panningState=Ot,Et.isOrdinal||((Pt=Ft-ie)>0&&(we+=Pt,ie=Ft),(Pt=we-Zt)>0&&(we=Zt,ie-=Pt),Et.series.length&&ie!==zt.min&&we!==zt.max&&ie>=Ft&&we<=Zt&&(Et.setExtremes(ie,we,!1,!1,{trigger:"pan"}),!ut.resetZoomButton&&ie!==Ft&&we!==Zt&&Mt.match("y")&&(ut.showResetZoom(),Et.displayBtn=!1),wt=!0),Tt[jt]=It)}}),q(Tt,function(Et,Pt){ut[Pt]=Et}),wt&&ut.redraw(!1),b(ut.container,{cursor:"move"})})},dt}();return T(yt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[yt.prototype.addAxis,[!0]],yAxis:[yt.prototype.addAxis,[!1]],series:[yt.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),yt}),et(_,"Core/Legend/LegendSymbol.js",[_["Core/Utilities.js"]],function(G){var B,H=G.extend,U=G.merge,$=G.pick;return function(Z){Z.drawLineMarker=function(V){var F,I=this.legendItem=this.legendItem||{},E=this.options,A=V.symbolWidth,P=V.symbolHeight,y=P/2,c=this.chart.renderer,g=I.group,m=V.baseline-Math.round(.3*V.fontMetrics.b),u={},v=E.marker,w=0;if(this.chart.styledMode||(u={"stroke-width":Math.min(E.lineWidth||0,24)},E.dashStyle?u.dashstyle=E.dashStyle:E.linecap!=="square"&&(u["stroke-linecap"]="round")),I.line=c.path().addClass("highcharts-graph").attr(u).add(g),u["stroke-linecap"]&&(w=Math.min(I.line.strokeWidth(),A)/2),I.line.attr({d:[["M",w,m],["L",A-w,m]]}),v&&v.enabled!==!1&&A){var M=Math.min($(v.radius,y),y);this.symbol.indexOf("url")===0&&(v=U(v,{width:P,height:P}),M=0),I.symbol=F=c.symbol(this.symbol,A/2-M,m-M,2*M,2*M,H({context:"legend"},v)).addClass("highcharts-point").add(g),F.isMarker=!0}},Z.drawRectangle=function(V,F){var I=F.legendItem||{},E=V.options,A=V.symbolHeight,P=E.squareSymbol,y=P?A:V.symbolWidth;I.symbol=this.chart.renderer.rect(P?(V.symbolWidth-A)/2:0,V.baseline-A+1,y,A,$(V.options.symbolRadius,A/2)).addClass("highcharts-point").attr({zIndex:3}).add(I.group)}}(B||(B={})),B}),et(_,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var G=this.series.chart.numberFormatter;return typeof this.y!="number"?"":G(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),et(_,"Core/Series/Series.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Defaults.js"],_["Core/Foundation.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/Point.js"],_["Core/Series/SeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I,E){var A=G.animObject,P=G.setAnimation,y=B.defaultOptions,c=H.registerEventOptions,g=U.hasTouch,m=U.svg,u=U.win,v=F.seriesTypes,w=E.arrayMax,M=E.arrayMin,C=E.clamp,p=E.cleanRecursively,f=E.correctFloat,r=E.defined,l=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,a=E.getNestedProperty,s=E.isArray,h=E.isNumber,b=E.isString,k=E.merge,O=E.objectEach,d=E.pick,x=E.removeEvent,T=E.splat,N=E.syncTimeout,z=function(){function L(){this._i=void 0,this.chart=void 0,this.data=void 0,this.eventOptions=void 0,this.eventsToUnbind=void 0,this.index=void 0,this.linkedSeries=void 0,this.options=void 0,this.points=void 0,this.processedXData=void 0,this.processedYData=void 0,this.tooltipOptions=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zones=void 0}return L.prototype.init=function(D,j){e(this,"init",{options:j});var Y=this,X=D.series;this.eventsToUnbind=[],Y.chart=D,Y.options=Y.setOptions(j);var W=Y.options;Y.linkedSeries=[],Y.bindAxes(),i(Y,{name:W.name,state:"",visible:W.visible!==!1,selected:W.selected===!0}),c(this,W);var q,tt=W.events;(tt&&tt.click||W.point&&W.point.events&&W.point.events.click||W.allowPointSelect)&&(D.runTrackerClick=!0),Y.getColor(),Y.getSymbol(),Y.parallelArrays.forEach(function(Q){Y[Q+"Data"]||(Y[Q+"Data"]=[])}),Y.isCartesian&&(D.hasCartesianSeries=!0),X.length&&(q=X[X.length-1]),Y._i=d(q&&q._i,-1)+1,Y.opacity=Y.options.opacity,D.orderSeries(this.insert(X)),W.dataSorting&&W.dataSorting.enabled?Y.setDataSortingOptions():Y.points||Y.data||Y.setData(W.data,!1),e(this,"afterInit")},L.prototype.is=function(D){return v[D]&&this instanceof v[D]},L.prototype.insert=function(D){var j,Y=this.options.index;if(h(Y)){for(j=D.length;j--;)if(Y>=d(D[j].options.index,D[j]._i)){D.splice(j+1,0,this);break}j===-1&&D.unshift(this),j+=1}else D.push(this);return d(j,D.length-1)},L.prototype.bindAxes=function(){var D,j=this,Y=j.options,X=j.chart;e(this,"bindAxes",null,function(){(j.axisTypes||[]).forEach(function(W){var q=0;X[W].forEach(function(tt){D=tt.options,(Y[W]===q&&!D.isInternal||Y[W]!==void 0&&Y[W]===D.id||Y[W]===void 0&&D.index===0)&&(j.insert(tt.series),j[W]=tt,tt.isDirty=!0),D.isInternal||q++}),j[W]||j.optionalAxis===W||t(18,!0,X)})}),e(this,"afterBindAxes")},L.prototype.updateParallelArrays=function(D,j){var Y=D.series,X=arguments,W=h(j)?function(q){var tt=q==="y"&&Y.toYData?Y.toYData(D):D[q];Y[q+"Data"][j]=tt}:function(q){Array.prototype[j].apply(Y[q+"Data"],Array.prototype.slice.call(X,2))};Y.parallelArrays.forEach(W)},L.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0},L.prototype.autoIncrement=function(D){var j,Y,X=this.options,W=X.pointIntervalUnit,q=X.relativeXValue,tt=this.chart.time,Q=this.xIncrement;return Q=d(Q,X.pointStart,0),this.pointInterval=Y=d(this.pointInterval,X.pointInterval,1),q&&h(D)&&(Y*=D),W&&(j=new tt.Date(Q),W==="day"?tt.set("Date",j,tt.get("Date",j)+Y):W==="month"?tt.set("Month",j,tt.get("Month",j)+Y):W==="year"&&tt.set("FullYear",j,tt.get("FullYear",j)+Y),Y=j.getTime()-Q),q&&h(D)?Q+Y:(this.xIncrement=Q+Y,Q)},L.prototype.setDataSortingOptions=function(){var D=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(D.pointRange)||(D.pointRange=1)},L.prototype.setOptions=function(D){var j,Y=this.chart,X=Y.options,W=X.plotOptions,q=Y.userOptions||{},tt=k(D),Q=Y.styledMode,nt={plotOptions:W,userOptions:tt};e(this,"setOptions",nt);var lt=nt.plotOptions[this.type],gt=q.plotOptions||{};this.userOptions=nt.userOptions;var mt=k(lt,W.series,q.plotOptions&&q.plotOptions[this.type],tt);this.tooltipOptions=k(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,X.tooltip.userOptions,W.series&&W.series.tooltip,W[this.type].tooltip,tt.tooltip),this.stickyTracking=d(tt.stickyTracking,gt[this.type]&>[this.type].stickyTracking,gt.series&>.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||mt.stickyTracking),lt.marker===null&&delete mt.marker,this.zoneAxis=mt.zoneAxis;var bt=this.zones=(mt.zones||[]).slice();return!mt.negativeColor&&!mt.negativeFillColor||mt.zones||(j={value:mt[this.zoneAxis+"Threshold"]||mt.threshold||0,className:"highcharts-negative"},Q||(j.color=mt.negativeColor,j.fillColor=mt.negativeFillColor),bt.push(j)),bt.length&&r(bt[bt.length-1].value)&&bt.push(Q?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:mt}),mt},L.prototype.getName=function(){return d(this.options.name,"Series "+(this.index+1))},L.prototype.getCyclic=function(D,j,Y){var X,W,q=this.chart,tt=this.userOptions,Q=D+"Index",nt=D+"Counter",lt=Y?Y.length:d(q.options.chart[D+"Count"],q[D+"Count"]);j||(W=d(tt[Q],tt["_"+Q]),r(W)?X=W:(q.series.length||(q[nt]=0),tt["_"+Q]=X=q[nt]%lt,q[nt]+=1),Y&&(j=Y[X])),X!==void 0&&(this[Q]=X),this[D]=j},L.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)},L.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},L.prototype.getSymbol=function(){var D=this.options.marker;this.getCyclic("symbol",D.symbol,this.chart.options.symbols)},L.prototype.findPointIndex=function(D,j){var Y,X,W,q=D.id,tt=D.x,Q=this.points,nt=this.options.dataSorting;if(q){var lt=this.chart.get(q);lt instanceof Z&&(Y=lt)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var gt=function(mt){return!mt.touched&&mt.index===D.index};if(nt&&nt.matchByName?gt=function(mt){return!mt.touched&&mt.name===D.name}:this.options.relativeXValue&&(gt=function(mt){return!mt.touched&&mt.options.x===D.x}),!(Y=o(Q,gt)))return}return Y&&(W=Y&&Y.index)!==void 0&&(X=!0),W===void 0&&h(tt)&&(W=this.xData.indexOf(tt,j)),W!==-1&&W!==void 0&&this.cropped&&(W=W>=this.cropStart?W-this.cropStart:W),!X&&h(W)&&Q[W]&&Q[W].touched&&(W=void 0),W},L.prototype.updateData=function(D,j){var Y,X,W,q,tt=this.options,Q=tt.dataSorting,nt=this.points,lt=[],gt=this.requireSorting,mt=D.length===nt.length,bt=!0;if(this.xIncrement=null,D.forEach(function(yt,dt){var ot,at=r(yt)&&this.pointClass.prototype.optionsToObject.call({series:this},yt)||{},ut=at.x;at.id||h(ut)?((ot=this.findPointIndex(at,q))===-1||ot===void 0?lt.push(yt):nt[ot]&&yt!==tt.data[ot]?(nt[ot].update(yt,!1,null,!1),nt[ot].touched=!0,gt&&(q=ot+1)):nt[ot]&&(nt[ot].touched=!0),(!mt||dt!==ot||Q&&Q.enabled||this.hasDerivedData)&&(Y=!0)):lt.push(yt)},this),Y)for(X=nt.length;X--;)(W=nt[X])&&!W.touched&&W.remove&&W.remove(!1,j);else!mt||Q&&Q.enabled?bt=!1:(D.forEach(function(yt,dt){yt!==nt[dt].y&&nt[dt].update&&nt[dt].update(yt,!1,null,!1)}),lt.length=0);return nt.forEach(function(yt){yt&&(yt.touched=!1)}),!!bt&&(lt.forEach(function(yt){this.addPoint(yt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=w(this.xData),this.autoIncrement()),!0)},L.prototype.setData=function(D,j,Y,X){j===void 0&&(j=!0);var W,q,tt,Q,nt=this,lt=nt.points,gt=lt&<.length||0,mt=nt.options,bt=nt.chart,yt=mt.dataSorting,dt=nt.xAxis,ot=mt.turboThreshold,at=this.xData,ut=this.yData,vt=nt.pointArrayMap,Ct=vt&&vt.length,xt=mt.keys,wt=0,Mt=1,At=null;bt.options.chart.allowMutatingData||(mt.data&&delete nt.options.data,nt.userOptions.data&&delete nt.userOptions.data,Q=k(!0,D));var Tt=(D=Q||D||[]).length;if(yt&&yt.enabled&&(D=this.sortData(D)),bt.options.chart.allowMutatingData&&X!==!1&&Tt&>&&!nt.cropped&&!nt.hasGroupedData&&nt.visible&&!nt.boosted&&(tt=this.updateData(D,Y)),!tt){if(nt.xIncrement=null,nt.colorCounter=0,this.parallelArrays.forEach(function(Et){nt[Et+"Data"].length=0}),ot&&Tt>ot)if(At=nt.getFirstValidPoint(D),h(At))for(W=0;W<Tt;W++)at[W]=this.autoIncrement(),ut[W]=D[W];else if(s(At))if(Ct)if(At.length===Ct)for(W=0;W<Tt;W++)at[W]=this.autoIncrement(),ut[W]=D[W];else for(W=0;W<Tt;W++)q=D[W],at[W]=q[0],ut[W]=q.slice(1,Ct+1);else if(xt&&(wt=(wt=xt.indexOf("x"))>=0?wt:0,Mt=(Mt=xt.indexOf("y"))>=0?Mt:1),At.length===1&&(Mt=0),wt===Mt)for(W=0;W<Tt;W++)at[W]=this.autoIncrement(),ut[W]=D[W][Mt];else for(W=0;W<Tt;W++)q=D[W],at[W]=q[wt],ut[W]=q[Mt];else t(12,!1,bt);else for(W=0;W<Tt;W++)D[W]!==void 0&&(q={series:nt},nt.pointClass.prototype.applyOptions.apply(q,[D[W]]),nt.updateParallelArrays(q,W));for(ut&&b(ut[0])&&t(14,!0,bt),nt.data=[],nt.options.data=nt.userOptions.data=D,W=gt;W--;)lt[W]&<[W].destroy&<[W].destroy();dt&&(dt.minRange=dt.userMinRange),nt.isDirty=bt.isDirtyBox=!0,nt.isDirtyData=!!lt,Y=!1}mt.legendType==="point"&&(this.processData(),this.generatePoints()),j&&bt.redraw(Y)},L.prototype.sortData=function(D){var j=this,Y=j.options.dataSorting.sortKey||"y",X=function(W,q){return r(q)&&W.pointClass.prototype.optionsToObject.call({series:W},q)||{}};return D.forEach(function(W,q){D[q]=X(j,W),D[q].index=q},this),D.concat().sort(function(W,q){var tt=a(Y,W),Q=a(Y,q);return Q<tt?-1:Q>tt?1:0}).forEach(function(W,q){W.x=q},this),j.linkedSeries&&j.linkedSeries.forEach(function(W){var q=W.options,tt=q.data;q.dataSorting&&q.dataSorting.enabled||!tt||(tt.forEach(function(Q,nt){tt[nt]=X(W,Q),D[nt]&&(tt[nt].x=D[nt].x,tt[nt].index=nt)}),W.setData(tt,!1))}),D},L.prototype.getProcessedData=function(D){var j,Y,X,W,q,tt,Q,nt,lt=this,gt=lt.xAxis,mt=lt.options,bt=mt.cropThreshold,yt=D||lt.getExtremesFromAll||mt.getExtremesFromAll,dt=lt.isCartesian,ot=gt&>.val2lin,at=!(!gt||!gt.logarithmic),ut=0,vt=lt.xData,Ct=lt.yData,xt=lt.requireSorting,wt=!1,Mt=vt.length;for(gt&&(Q=(tt=gt.getExtremes()).min,nt=tt.max,wt=!(!gt.categories||gt.names.length)),dt&<.sorted&&!yt&&(!bt||Mt>bt||lt.forceCrop)&&(vt[Mt-1]<Q||vt[0]>nt?(vt=[],Ct=[]):lt.yData&&(vt[0]<Q||vt[Mt-1]>nt)&&(vt=(j=this.cropData(lt.xData,lt.yData,Q,nt)).xData,Ct=j.yData,ut=j.start,Y=!0)),q=vt.length||1;--q;)(X=at?ot(vt[q])-ot(vt[q-1]):vt[q]-vt[q-1])>0&&(W===void 0||X<W)?W=X:X<0&&xt&&!wt&&(t(15,!1,lt.chart),xt=!1);return{xData:vt,yData:Ct,cropped:Y,cropStart:ut,closestPointRange:W}},L.prototype.processData=function(D){var j=this,Y=j.xAxis;if(j.isCartesian&&!j.isDirty&&!Y.isDirty&&!j.yAxis.isDirty&&!D)return!1;var X=j.getProcessedData();j.cropped=X.cropped,j.cropStart=X.cropStart,j.processedXData=X.xData,j.processedYData=X.yData,j.closestPointRange=j.basePointRange=X.closestPointRange,e(j,"afterProcessData")},L.prototype.cropData=function(D,j,Y,X,W){var q,tt,Q=D.length,nt=0,lt=Q;for(W=d(W,this.cropShoulder),q=0;q<Q;q++)if(D[q]>=Y){nt=Math.max(0,q-W);break}for(tt=q;tt<Q;tt++)if(D[tt]>X){lt=tt+W;break}return{xData:D.slice(nt,lt),yData:j.slice(nt,lt),start:nt,end:lt}},L.prototype.generatePoints=function(){var D,j,Y,X,W=this,q=W.options,tt=W.processedData||q.data,Q=W.processedXData,nt=W.processedYData,lt=W.pointClass,gt=Q.length,mt=W.cropStart||0,bt=W.hasGroupedData,yt=q.keys,dt=[],ot=q.dataGrouping&&q.dataGrouping.groupAll?mt:0,at=W.data;if(!at&&!bt){var ut=[];ut.length=tt.length,at=W.data=ut}for(yt&&bt&&(W.options.keys=!1),X=0;X<gt;X++)j=mt+X,bt?((Y=new lt().init(W,[Q[X]].concat(T(nt[X])))).dataGroup=W.groupMap[ot+X],Y.dataGroup.options&&(Y.options=Y.dataGroup.options,i(Y,Y.dataGroup.options),delete Y.dataLabels)):(Y=at[j])||tt[j]===void 0||(at[j]=Y=new lt().init(W,tt[j],Q[X])),Y&&(Y.index=bt?ot+X:j,dt[X]=Y);if(W.options.keys=yt,at&&(gt!==(D=at.length)||bt))for(X=0;X<D;X++)X!==mt||bt||(X+=gt),at[X]&&(at[X].destroyElements(),at[X].plotX=void 0);W.data=at,W.points=dt,e(this,"afterGeneratePoints")},L.prototype.getXExtremes=function(D){return{min:M(D),max:w(D)}},L.prototype.getExtremes=function(D,j){var Y,X,W,q,tt,Q,nt,lt=this.xAxis,gt=this.yAxis,mt=this.processedXData||this.xData,bt=[],yt=this.requireSorting?this.cropShoulder:0,dt=!!gt&>.positiveValuesOnly,ot=0,at=0,ut=0,vt=(D=D||this.stackedYData||this.processedYData||[]).length;for(lt&&(ot=(Y=lt.getExtremes()).min,at=Y.max),Q=0;Q<vt;Q++)if(q=mt[Q],tt=D[Q],X=(h(tt)||s(tt))&&(tt.length||tt>0||!dt),W=j||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!lt||(mt[Q+yt]||q)>=ot&&(mt[Q-yt]||q)<=at,X&&W)if(nt=tt.length)for(;nt--;)h(tt[nt])&&(bt[ut++]=tt[nt]);else bt[ut++]=tt;var Ct={activeYData:bt,dataMin:M(bt),dataMax:w(bt)};return e(this,"afterGetExtremes",{dataExtremes:Ct}),Ct},L.prototype.applyExtremes=function(){var D=this.getExtremes();return this.dataMin=D.dataMin,this.dataMax=D.dataMax,D},L.prototype.getFirstValidPoint=function(D){for(var j=D.length,Y=0,X=null;X===null&&Y<j;)X=D[Y],Y++;return X},L.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var D,j,Y,X,W=this,q=W.options,tt=q.stacking,Q=W.xAxis,nt=Q.categories,lt=W.enabledDataSorting,gt=W.yAxis,mt=W.points,bt=mt.length,yt=W.pointPlacementToXValue(),dt=!!yt,ot=q.threshold,at=q.startFromThreshold?ot:0,ut=this.zoneAxis||"y",vt=Number.MAX_VALUE;function Ct(It){return C(It,-1e5,1e5)}for(D=0;D<bt;D++){var xt=mt[D],wt=xt.x,Mt=void 0,At=void 0,Tt=xt.y,Et=xt.low,Pt=tt&>.stacking&>.stacking.stacks[(W.negStacks&&Tt<(at?0:ot)?"-":"")+W.stackKey];if((gt.positiveValuesOnly&&!gt.validatePositiveValue(Tt)||Q.positiveValuesOnly&&!Q.validatePositiveValue(wt))&&(xt.isNull=!0),xt.plotX=j=f(Ct(Q.translate(wt,0,0,0,1,yt,this.type==="flags"))),tt&&W.visible&&Pt&&Pt[wt]&&(X=W.getStackIndicator(X,wt,W.index),!xt.isNull&&X.key&&(At=(Mt=Pt[wt]).points[X.key]),Mt&&s(At)&&(Et=At[0],Tt=At[1],Et===at&&X.key===Pt[wt].base&&(Et=d(h(ot)?ot:gt.min)),gt.positiveValuesOnly&&r(Et)&&Et<=0&&(Et=void 0),xt.total=xt.stackTotal=d(Mt.total),xt.percentage=r(xt.y)&&Mt.total?xt.y/Mt.total*100:void 0,xt.stackY=Tt,W.irregularWidths||Mt.setOffset(W.pointXOffset||0,W.barW||0,void 0,void 0,void 0,W.xAxis))),xt.yBottom=r(Et)?Ct(gt.translate(Et,0,1,0,1)):void 0,W.dataModify&&(Tt=W.dataModify.modifyValue(Tt,D)),xt.plotY=void 0,h(Tt)){var Dt=gt.translate(Tt,!1,!0,!1,!0);Dt!==void 0&&(xt.plotY=Ct(Dt))}xt.isInside=this.isPointInside(xt),xt.clientX=dt?f(Q.translate(wt,0,0,0,1,yt)):j,xt.negative=xt[ut]<(q[ut+"Threshold"]||ot||0),xt.category=d(nt&&nt[xt.x],xt.x),xt.isNull||xt.visible===!1||(Y!==void 0&&(vt=Math.min(vt,Math.abs(j-Y))),Y=j),xt.zone=this.zones.length?xt.getZone():void 0,!xt.graphic&&W.group&<&&(xt.isNew=!0)}W.closestPointRangePx=vt,e(this,"afterTranslate")},L.prototype.getValidPoints=function(D,j,Y){var X=this.chart;return(D||this.points||[]).filter(function(W){return!(j&&!X.isInsidePlot(W.plotX,W.plotY,{inverted:X.inverted}))&&W.visible!==!1&&(Y||!W.isNull)})},L.prototype.getClipBox=function(){var D=this,j=D.chart,Y=D.xAxis,X=D.yAxis,W=k(j.clipBox);return Y&&Y.len!==j.plotSizeX&&(W.width=Y.len),X&&X.len!==j.plotSizeY&&(W.height=X.len),W},L.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},L.prototype.setClip=function(){var D=this,j=D.chart,Y=D.group,X=D.markerGroup,W=j.sharedClips,q=j.renderer,tt=this.getClipBox(),Q=this.getSharedClipKey(),nt=W[Q];nt?nt.animate(tt):W[Q]=nt=q.clipRect(tt),Y&&Y.clip(this.options.clip===!1?void 0:nt),X&&X.clip()},L.prototype.animate=function(D){var j=this,Y=j.chart,X=j.group,W=j.markerGroup,q=Y.inverted,tt=A(this.options.animation),Q=[this.getSharedClipKey(),tt.duration,tt.easing,tt.defer].join(","),nt=Y.sharedClips[Q],lt=Y.sharedClips[Q+"m"];if(D&&X){var gt=this.getClipBox();if(nt)nt.attr("height",gt.height);else{gt.width=0,q&&(gt.x=Y.plotHeight),nt=Y.renderer.clipRect(gt),Y.sharedClips[Q]=nt;var mt={x:-99,y:-99,width:q?Y.plotWidth+199:99,height:q?99:Y.plotHeight+199};lt=Y.renderer.clipRect(mt),Y.sharedClips[Q+"m"]=lt}X.clip(nt),W&&W.clip(lt)}else if(nt&&!nt.hasClass("highcharts-animating")){var bt=this.getClipBox(),yt=tt.step;W&&W.element.childNodes.length&&(tt.step=function(dt,ot){yt&&yt.apply(ot,arguments),ot.prop==="width"&<&<.element&<.attr(q?"height":"width",dt+99)}),nt.addClass("highcharts-animating").animate(bt,tt)}},L.prototype.afterAnimate=function(){var D=this;this.setClip(),O(this.chart.sharedClips,function(j,Y,X){j&&!D.chart.container.querySelector('[clip-path="url(#'.concat(j.id,')"]'))&&(j.destroy(),delete X[Y])}),this.finishedAnimating=!0,e(this,"afterAnimate")},L.prototype.drawPoints=function(D){D===void 0&&(D=this.points);var j,Y,X,W,q,tt,Q,nt=this,lt=nt.chart,gt=lt.styledMode,mt=nt.colorAxis,bt=nt.options.marker,yt=nt[nt.specialGroup||"markerGroup"],dt=nt.xAxis,ot=d(bt.enabled,!(dt&&!dt.isRadial)||null,nt.closestPointRangePx>=bt.enabledThreshold*bt.radius);if(bt.enabled!==!1||nt._hasPointMarkers)for(j=0;j<D.length;j++)if(W=(X=(Y=D[j]).graphic)?"animate":"attr",q=Y.marker||{},tt=!!Y.marker,(ot&&q.enabled===void 0||q.enabled)&&!Y.isNull&&Y.visible!==!1){var at=d(q.symbol,nt.symbol,"rect");Q=nt.markerAttribs(Y,Y.selected&&"select"),nt.enabledDataSorting&&(Y.startXPos=dt.reversed?-(Q.width||0):dt.width);var ut=Y.isInside!==!1;if(!X&&ut&&((Q.width||0)>0||Y.hasImage)&&(Y.graphic=X=lt.renderer.symbol(at,Q.x,Q.y,Q.width,Q.height,tt?q:bt).add(yt),nt.enabledDataSorting&<.hasRendered&&(X.attr({x:Y.startXPos}),W="animate")),X&&W==="animate"&&X[ut?"show":"hide"](ut).animate(Q),X){var vt=nt.pointAttribs(Y,gt||!Y.selected?void 0:"select");gt?mt&&X.css({fill:vt.fill}):X[W](vt)}X&&X.addClass(Y.getClassName(),!0)}else X&&(Y.graphic=X.destroy())},L.prototype.markerAttribs=function(D,j){var Y,X,W=this.options,q=W.marker,tt=D.marker||{},Q=tt.symbol||q.symbol,nt={},lt=d(tt.radius,q&&q.radius);j&&(Y=q.states[j],X=tt.states&&tt.states[j],lt=d(X&&X.radius,Y&&Y.radius,lt&<+(Y&&Y.radiusPlus||0))),D.hasImage=Q&&Q.indexOf("url")===0,D.hasImage&&(lt=0);var gt=D.pos();return h(lt)&>&&(nt.x=gt[0]-lt,nt.y=gt[1]-lt,W.crisp&&(nt.x=Math.floor(nt.x))),lt&&(nt.width=nt.height=2*lt),nt},L.prototype.pointAttribs=function(D,j){var Y,X,W,q,tt=this.options.marker,Q=D&&D.options,nt=Q&&Q.marker||{},lt=Q&&Q.color,gt=D&&D.color,mt=D&&D.zone&&D.zone.color,bt=this.color,yt=d(nt.lineWidth,tt.lineWidth),dt=1;return bt=lt||mt||gt||bt,W=nt.fillColor||tt.fillColor||bt,q=nt.lineColor||tt.lineColor||bt,(j=j||"normal")&&(Y=tt.states[j]||{},X=nt.states&&nt.states[j]||{},yt=d(X.lineWidth,Y.lineWidth,yt+d(X.lineWidthPlus,Y.lineWidthPlus,0)),W=X.fillColor||Y.fillColor||W,q=X.lineColor||Y.lineColor||q,dt=d(X.opacity,Y.opacity,dt)),{stroke:q,"stroke-width":yt,fill:W,opacity:dt}},L.prototype.destroy=function(D){var j,Y,X,W=this,q=W.chart,tt=/AppleWebKit\/533/.test(u.navigator.userAgent),Q=W.data||[];for(e(W,"destroy",{keepEventsForUpdate:D}),this.removeEvents(D),(W.axisTypes||[]).forEach(function(nt){(X=W[nt])&&X.series&&(l(X.series,W),X.isDirty=X.forceRedraw=!0)}),W.legendItem&&W.chart.legend.destroyItem(W),j=Q.length;j--;)(Y=Q[j])&&Y.destroy&&Y.destroy();W.clips&&W.clips.forEach(function(nt){return nt.destroy()}),E.clearTimeout(W.animationTimeout),O(W,function(nt,lt){nt instanceof I&&!nt.survive&&nt[tt&<==="group"?"hide":"destroy"]()}),q.hoverSeries===W&&(q.hoverSeries=void 0),l(q.series,W),q.orderSeries(),O(W,function(nt,lt){D&<==="hcEvents"||delete W[lt]})},L.prototype.applyZones=function(){var D,j,Y,X,W,q,tt,Q,nt,lt,gt,mt=this,bt=this.chart,yt=bt.renderer,dt=this.zones,ot=this.clips||[],at=this.graph,ut=this.area,vt=Math.max(bt.plotWidth,bt.plotHeight),Ct=this[(this.zoneAxis||"y")+"Axis"],xt=bt.inverted,wt=!1;dt.length&&(at||ut)&&Ct&&Ct.min!==void 0?(W=Ct.reversed,q=Ct.horiz,at&&!this.showLine&&at.hide(),ut&&ut.hide(),X=Ct.getExtremes(),dt.forEach(function(Mt,At){D=W?q?bt.plotWidth:0:q?0:Ct.toPixels(X.min)||0,D=C(d(j,D),0,vt),j=C(Math.round(Ct.toPixels(d(Mt.value,X.max),!0)||0),0,vt),wt&&(D=j=Ct.toPixels(X.max)),tt=Math.abs(D-j),Q=Math.min(D,j),nt=Math.max(D,j),Ct.isXAxis?(Y={x:xt?nt:Q,y:0,width:tt,height:vt},q||(Y.x=bt.plotHeight-Y.x)):(Y={x:0,y:xt?nt:Q,width:vt,height:tt},q&&(Y.y=bt.plotWidth-Y.y)),xt&&yt.isVML&&(Y=Ct.isXAxis?{x:0,y:W?Q:nt,height:Y.width,width:bt.chartWidth}:{x:Y.y-bt.plotLeft-bt.spacingBox.x,y:0,width:Y.height,height:bt.chartHeight}),ot[At]?ot[At].animate(Y):ot[At]=yt.clipRect(Y),lt=mt["zone-area-"+At],gt=mt["zone-graph-"+At],at&>&>.clip(ot[At]),ut&<&<.clip(ot[At]),wt=Mt.value>X.max,mt.resetZones&&j===0&&(j=void 0)}),this.clips=ot):mt.visible&&(at&&at.show(),ut&&ut.show())},L.prototype.plotGroup=function(D,j,Y,X,W){var q=this[D],tt=!q,Q={visibility:Y,zIndex:X||.1};return this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(Q.opacity=this.opacity),tt&&(this[D]=q=this.chart.renderer.g().add(W)),q.addClass("highcharts-"+j+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(q.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),q.attr(Q)[tt?"attr":"animate"](this.getPlotBox(j)),q},L.prototype.getPlotBox=function(D){var j=this.xAxis,Y=this.yAxis,X=this.chart,W=X.inverted&&!X.polar&&j&&this.invertible!==!1&&D==="series";return X.inverted&&(j=Y,Y=this.xAxis),{translateX:j?j.left:X.plotLeft,translateY:Y?Y.top:X.plotTop,rotation:W?90:0,rotationOriginX:W?(j.len-Y.len)/2:0,rotationOriginY:W?(j.len+Y.len)/2:0,scaleX:W?-1:1,scaleY:1}},L.prototype.removeEvents=function(D){var j=this;D||x(j),j.eventsToUnbind.length&&(j.eventsToUnbind.forEach(function(Y){Y()}),j.eventsToUnbind.length=0)},L.prototype.render=function(){var D=this,j=D.chart,Y=D.options,X=A(Y.animation),W=D.visible?"inherit":"hidden",q=Y.zIndex,tt=D.hasRendered,Q=j.seriesGroup,nt=!D.finishedAnimating&&j.renderer.isSVG?X.duration:0;e(this,"render"),D.plotGroup("group","series",W,q,Q),D.markerGroup=D.plotGroup("markerGroup","markers",W,q,Q),Y.clip!==!1&&D.setClip(),D.animate&&nt&&D.animate(!0),D.drawGraph&&(D.drawGraph(),D.applyZones()),D.visible&&D.drawPoints(),D.drawDataLabels&&D.drawDataLabels(),D.redrawPoints&&D.redrawPoints(),D.drawTracker&&D.options.enableMouseTracking!==!1&&D.drawTracker(),D.animate&&nt&&D.animate(),tt||(nt&&X.defer&&(nt+=X.defer),D.animationTimeout=N(function(){D.afterAnimate()},nt||0)),D.isDirty=!1,D.hasRendered=!0,e(D,"afterRender")},L.prototype.redraw=function(){var D=this.isDirty||this.isDirtyData;this.translate(),this.render(),D&&delete this.kdTree},L.prototype.searchPoint=function(D,j){var Y=this,X=Y.xAxis,W=Y.yAxis,q=Y.chart.inverted;return this.searchKDTree({clientX:q?X.len-D.chartY+X.pos:D.chartX-X.pos,plotY:q?W.len-D.chartX+W.pos:D.chartY-W.pos},j,D)},L.prototype.buildKDTree=function(D){this.buildingKdTree=!0;var j=this,Y=j.options.findNearestPointBy.indexOf("y")>-1?2:1;function X(W,q,tt){var Q,nt,lt=W&&W.length;if(lt)return Q=j.kdAxisArray[q%tt],W.sort(function(gt,mt){return gt[Q]-mt[Q]}),{point:W[nt=Math.floor(lt/2)],left:X(W.slice(0,nt),q+1,tt),right:X(W.slice(nt+1),q+1,tt)}}delete j.kdTree,N(function(){j.kdTree=X(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||D&&D.type==="touchstart"?0:1)},L.prototype.searchKDTree=function(D,j,Y){var X=this,W=this.kdAxisArray[0],q=this.kdAxisArray[1],tt=j?"distX":"dist",Q=X.options.findNearestPointBy.indexOf("y")>-1?2:1;if(this.kdTree||this.buildingKdTree||this.buildKDTree(Y),this.kdTree)return function nt(lt,gt,mt,bt){var yt,dt,ot,at,ut,vt,Ct=gt.point,xt=X.kdAxisArray[mt%bt],wt=Ct;at=Ct,vt=((ut=r((ot=lt)[W])&&r(at[W])?Math.pow(ot[W]-at[W],2):null)||0)+((r(ot[q])&&r(at[q])?Math.pow(ot[q]-at[q],2):null)||0),at.dist=r(vt)?Math.sqrt(vt):Number.MAX_VALUE,at.distX=r(ut)?Math.sqrt(ut):Number.MAX_VALUE;var Mt=lt[xt]-Ct[xt],At=Mt<0?"left":"right",Tt=Mt<0?"right":"left";return gt[At]&&(wt=(yt=nt(lt,gt[At],mt+1,bt))[tt]<wt[tt]?yt:Ct),gt[Tt]&&Math.sqrt(Mt*Mt)<wt[tt]&&(wt=(dt=nt(lt,gt[Tt],mt+1,bt))[tt]<wt[tt]?dt:wt),wt}(D,this.kdTree,Q,Q)},L.prototype.pointPlacementToXValue=function(){var D=this.options,j=D.pointPlacement,Y=D.pointRange,X=this.xAxis,W=j;return W==="between"&&(W=X.reversed?-.5:.5),h(W)?W*(Y||X.pointRange):0},L.prototype.isPointInside=function(D){var j=this,Y=j.chart,X=j.xAxis,W=j.yAxis;return D.plotY!==void 0&&D.plotX!==void 0&&D.plotY>=0&&D.plotY<=(W?W.len:Y.plotHeight)&&D.plotX>=0&&D.plotX<=(X?X.len:Y.plotWidth)},L.prototype.drawTracker=function(){var D=this,j=D.options,Y=j.trackByArea,X=[].concat(Y?D.areaPath:D.graphPath),W=D.chart,q=W.pointer,tt=W.renderer,Q=W.options.tooltip.snap,nt=D.tracker,lt=function(mt){W.hoverSeries!==D&&D.onMouseOver()},gt="rgba(192,192,192,"+(m?1e-4:.002)+")";nt?nt.attr({d:X}):D.graph&&(D.tracker=tt.path(X).attr({visibility:D.visible?"inherit":"hidden",zIndex:2}).addClass(Y?"highcharts-tracker-area":"highcharts-tracker-line").add(D.group),W.styledMode||D.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:gt,fill:Y?gt:"none","stroke-width":D.graph.strokeWidth()+(Y?0:2*Q)}),[D.tracker,D.markerGroup,D.dataLabelsGroup].forEach(function(mt){mt&&(mt.addClass("highcharts-tracker").on("mouseover",lt).on("mouseout",function(bt){q.onTrackerMouseOut(bt)}),j.cursor&&!W.styledMode&&mt.css({cursor:j.cursor}),g&&mt.on("touchstart",lt))})),e(this,"afterDrawTracker")},L.prototype.addPoint=function(D,j,Y,X,W){var q,tt,Q=this,nt=Q.options,lt=Q.data,gt=Q.chart,mt=Q.xAxis,bt=mt&&mt.hasNames&&mt.names,yt=nt.data,dt=Q.xData;j=d(j,!0);var ot={series:Q};Q.pointClass.prototype.applyOptions.apply(ot,[D]);var at=ot.x;if(tt=dt.length,Q.requireSorting&&at<dt[tt-1])for(q=!0;tt&&dt[tt-1]>at;)tt--;Q.updateParallelArrays(ot,"splice",tt,0,0),Q.updateParallelArrays(ot,tt),bt&&ot.name&&(bt[at]=ot.name),yt.splice(tt,0,D),(q||Q.processedData)&&(Q.data.splice(tt,0,null),Q.processData()),nt.legendType==="point"&&Q.generatePoints(),Y&&(lt[0]&<[0].remove?lt[0].remove(!1):(lt.shift(),Q.updateParallelArrays(ot,"shift"),yt.shift())),W!==!1&&e(Q,"addPoint",{point:ot}),Q.isDirty=!0,Q.isDirtyData=!0,j&>.redraw(X)},L.prototype.removePoint=function(D,j,Y){var X=this,W=X.data,q=W[D],tt=X.points,Q=X.chart,nt=function(){tt&&tt.length===W.length&&tt.splice(D,1),W.splice(D,1),X.options.data.splice(D,1),X.updateParallelArrays(q||{series:X},"splice",D,1),q&&q.destroy(),X.isDirty=!0,X.isDirtyData=!0,j&&Q.redraw()};P(Y,Q),j=d(j,!0),q?q.firePointEvent("remove",null,nt):nt()},L.prototype.remove=function(D,j,Y,X){var W=this,q=W.chart;function tt(){W.destroy(X),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),d(D,!0)&&q.redraw(j)}Y!==!1?e(W,"remove",null,tt):tt()},L.prototype.update=function(D,j){D=p(D,this.userOptions),e(this,"update",{options:D});var Y,X,W=this,q=W.chart,tt=W.userOptions,Q=W.initialType||W.type,nt=q.options.plotOptions,lt=v[Q].prototype,gt=W.finishedAnimating&&{animation:!1},mt={},bt=["eventOptions","navigatorSeries","baseSeries"],yt=D.type||tt.type||q.options.chart.type,dt=!(this.hasDerivedData||yt&&yt!==this.type||D.pointStart!==void 0||D.pointInterval!==void 0||D.relativeXValue!==void 0||D.joinBy||D.mapData||W.hasOptionChanged("dataGrouping")||W.hasOptionChanged("pointStart")||W.hasOptionChanged("pointInterval")||W.hasOptionChanged("pointIntervalUnit")||W.hasOptionChanged("keys"));yt=yt||Q,dt&&(bt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),D.visible!==!1&&bt.push("area","graph"),W.parallelArrays.forEach(function(At){bt.push(At+"Data")}),D.data&&(D.dataSorting&&i(W.options.dataSorting,D.dataSorting),this.setData(D.data,!1))),D=k(tt,gt,{index:tt.index===void 0?W.index:tt.index,pointStart:d(nt&&nt.series&&nt.series.pointStart,tt.pointStart,W.xData[0])},!dt&&{data:W.options.data},D),dt&&D.data&&(D.data=W.options.data),(bt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(bt)).forEach(function(At){bt[At]=W[At],delete W[At]});var ot=!1;if(v[yt]){if(ot=yt!==W.type,W.remove(!1,!1,!1,!0),ot)if(Object.setPrototypeOf)Object.setPrototypeOf(W,v[yt].prototype);else{var at=Object.hasOwnProperty.call(W,"hcEvents")&&W.hcEvents;for(X in lt)W[X]=void 0;i(W,v[yt].prototype),at?W.hcEvents=at:delete W.hcEvents}}else t(17,!0,q,{missingModuleFor:yt});if(bt.forEach(function(At){W[At]=bt[At]}),W.init(q,D),dt&&this.points){if((Y=W.options).visible===!1)mt.graphic=1,mt.dataLabel=1;else if(!W._hasPointLabels){var ut=Y.marker,vt=Y.dataLabels,Ct=tt.marker||{};!ut||ut.enabled!==!1&&Ct.symbol===ut.symbol&&Ct.height===ut.height&&Ct.width===ut.width||(mt.graphic=1),vt&&vt.enabled===!1&&(mt.dataLabel=1)}for(var xt=0,wt=this.points;xt<wt.length;xt++){var Mt=wt[xt];Mt&&Mt.series&&(Mt.resolveColor(),Object.keys(mt).length&&Mt.destroyElements(mt),Y.showInLegend===!1&&Mt.legendItem&&q.legend.destroyItem(Mt))}}W.initialType=Q,q.linkSeries(),ot&&W.linkedSeries.length&&(W.isDirtyData=!0),e(this,"afterUpdate"),d(j,!0)&&q.redraw(!!dt&&void 0)},L.prototype.setName=function(D){this.name=this.options.name=this.userOptions.name=D,this.chart.isDirtyLegend=!0},L.prototype.hasOptionChanged=function(D){var j=this.chart,Y=this.options[D],X=j.options.plotOptions,W=this.userOptions[D];return W?Y!==W:Y!==d(X&&X[this.type]&&X[this.type][D],X&&X.series&&X.series[D],Y)},L.prototype.onMouseOver=function(){var D=this,j=D.chart,Y=j.hoverSeries;j.pointer.setHoverChartIndex(),Y&&Y!==D&&Y.onMouseOut(),D.options.events.mouseOver&&e(D,"mouseOver"),D.setState("hover"),j.hoverSeries=D},L.prototype.onMouseOut=function(){var D=this,j=D.options,Y=D.chart,X=Y.tooltip,W=Y.hoverPoint;Y.hoverSeries=null,W&&W.onMouseOut(),D&&j.events.mouseOut&&e(D,"mouseOut"),!X||D.stickyTracking||X.shared&&!D.noSharedTooltip||X.hide(),Y.series.forEach(function(q){q.setState("",!0)})},L.prototype.setState=function(D,j){var Y,X=this,W=X.options,q=X.graph,tt=W.inactiveOtherPoints,Q=W.states,nt=d(Q[D||"normal"]&&Q[D||"normal"].animation,X.chart.options.chart.animation),lt=W.lineWidth,gt=0,mt=W.opacity;if(D=D||"",X.state!==D&&([X.group,X.markerGroup,X.dataLabelsGroup].forEach(function(bt){bt&&(X.state&&bt.removeClass("highcharts-series-"+X.state),D&&bt.addClass("highcharts-series-"+D))}),X.state=D,!X.chart.styledMode)){if(Q[D]&&Q[D].enabled===!1)return;if(D&&(lt=Q[D].lineWidth||lt+(Q[D].lineWidthPlus||0),mt=d(Q[D].opacity,mt)),q&&!q.dashstyle&&h(lt))for(Y={"stroke-width":lt},q.animate(Y,nt);X["zone-graph-"+gt];)X["zone-graph-"+gt].animate(Y,nt),gt+=1;tt||[X.group,X.markerGroup,X.dataLabelsGroup,X.labelBySeries].forEach(function(bt){bt&&bt.animate({opacity:mt},nt)})}j&&tt&&X.points&&X.setAllPointsToState(D||void 0)},L.prototype.setAllPointsToState=function(D){this.points.forEach(function(j){j.setState&&j.setState(D)})},L.prototype.setVisible=function(D,j){var Y=this,X=Y.chart,W=X.options.chart.ignoreHiddenSeries,q=Y.visible;Y.visible=D=Y.options.visible=Y.userOptions.visible=D===void 0?!q:D;var tt=D?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(Q){Y[Q]&&Y[Q][tt]()}),X.hoverSeries!==Y&&(X.hoverPoint&&X.hoverPoint.series)!==Y||Y.onMouseOut(),Y.legendItem&&X.legend.colorizeItem(Y,D),Y.isDirty=!0,Y.options.stacking&&X.series.forEach(function(Q){Q.options.stacking&&Q.visible&&(Q.isDirty=!0)}),Y.linkedSeries.forEach(function(Q){Q.setVisible(D,!1)}),W&&(X.isDirtyBox=!0),e(Y,tt),j!==!1&&X.redraw()},L.prototype.show=function(){this.setVisible(!0)},L.prototype.hide=function(){this.setVisible(!1)},L.prototype.select=function(D){var j=this;j.selected=D=this.options.selected=D===void 0?!j.selected:D,j.checkbox&&(j.checkbox.checked=D),e(j,D?"select":"unselect")},L.prototype.shouldShowTooltip=function(D,j,Y){return Y===void 0&&(Y={}),Y.series=this,Y.visiblePlotOnly=!0,this.chart.isInsidePlot(D,j,Y)},L.defaultOptions=V,L.types=F.seriesTypes,L.registerType=F.registerSeriesType,L}();return i(z.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Z,requireSorting:!0,sorted:!0}),F.series=z,z}),et(_,"Extensions/ScrollablePlotArea.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/Series/Series.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V=G.stop,F=Z.addEvent,I=Z.createElement,E=Z.defined,A=Z.merge,P=Z.pick;F(H,"afterSetChartSize",function(y){var c,g,m,u=this.options.chart.scrollablePlotArea,v=u&&u.minWidth,w=u&&u.minHeight;this.renderer.forExport||(v?(this.scrollablePixelsX=c=Math.max(0,v-this.chartWidth),c&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=A(this.plotBox),this.plotBox.width=this.plotWidth+=c,this.inverted?this.clipBox.height+=c:this.clipBox.width+=c,m={1:{name:"right",value:c}})):w&&(this.scrollablePixelsY=g=Math.max(0,w-this.chartHeight),E(g)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=A(this.plotBox),this.plotBox.height=this.plotHeight+=g,this.inverted?this.clipBox.width+=g:this.clipBox.height+=g,m={2:{name:"bottom",value:g}})),m&&!y.skipAxes&&this.axes.forEach(function(M){m[M.side]?M.getPlotLinePath=function(){var C,p=m[M.side].name,f=m[M.side].value,r=this[p];return this[p]=r-f,C=B.prototype.getPlotLinePath.apply(this,arguments),this[p]=r,C}:(M.setAxisSize(),M.setAxisTranslation())}))}),F(H,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),H.prototype.setUpScrolling=function(){var y,c=this,g={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(g.overflowX="auto"),this.scrollablePixelsY&&(g.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},g,this.scrollingParent),F(this.scrollingContainer,"scroll",function(){c.pointer&&(delete c.pointer.chartPosition,c.hoverPoint&&(y=c.hoverPoint),c.pointer.runPointActions(void 0,y,!0))}),this.innerContainer=I("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},H.prototype.moveFixedElements=function(){var y,c=this.container,g=this.fixedRenderer,m=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-credits",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-reset-zoom",".highcharts-drillup-button",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&m.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),m.forEach(function(u){[].forEach.call(c.querySelectorAll(u),function(v){(v.namespaceURI===g.SVG_NS?g.box:g.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},H.prototype.applyFixed=function(){var y,c,g,m=!this.fixedDiv,u=this.options.chart,v=u.scrollablePlotArea,w=$.getRendererType();m?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(u.style&&u.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=y=new w(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=y.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":P(v.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),F(this,"afterShowResetZoom",this.moveFixedElements),F(this,"afterApplyDrilldown",this.moveFixedElements),F(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||m)&&(this.scrollableDirty=!1,this.moveFixedElements()),c=this.chartWidth+(this.scrollablePixelsX||0),g=this.chartHeight+(this.scrollablePixelsY||0),V(this.container),this.container.style.width=c+"px",this.container.style.height=g+"px",this.renderer.boxWrapper.attr({width:c,height:g,viewBox:[0,0,c,g].join(" ")}),this.chartBackground.attr({width:c,height:g}),this.scrollingContainer.style.height=this.chartHeight+"px",m&&(v.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*v.scrollPositionX),v.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*v.scrollPositionY));var M,C=this.axisOffset,p=this.plotTop-C[0]-1,f=this.plotLeft-C[3]-1,r=this.plotTop+this.plotHeight+C[2]+1,l=this.plotLeft+this.plotWidth+C[1]+1,t=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),i=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);M=this.scrollablePixelsX?[["M",0,p],["L",this.plotLeft-1,p],["L",this.plotLeft-1,r],["L",0,r],["Z"],["M",t,p],["L",this.chartWidth,p],["L",this.chartWidth,r],["L",t,r],["Z"]]:this.scrollablePixelsY?[["M",f,0],["L",f,this.plotTop-1],["L",l,this.plotTop-1],["L",l,0],["Z"],["M",f,i],["L",f,this.chartHeight],["L",l,this.chartHeight],["L",l,i],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:M})},F(B,"afterInit",function(){this.chart.scrollableDirty=!0}),F(U,"show",function(){this.chart.scrollableDirty=!0})}),et(_,"Core/Axis/Stacking/StackItem.js",[_["Core/FormatUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U=G.format,$=B.series,Z=H.destroyObjectProperties,V=H.pick,F=H.isNumber;return function(){function I(E,A,P,y,c){var g=E.chart.inverted,m=E.reversed;this.axis=E;var u=this.isNegative=!!P!=!!m;this.options=A=A||{},this.x=y,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=c,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:A.align||(g?u?"left":"right":"center"),verticalAlign:A.verticalAlign||(g?"middle":u?"bottom":"top"),y:A.y,x:A.x},this.textAlign=A.textAlign||(g?u?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var A=this.axis.chart,P=this.options,y=P.format,c=y?U(y,this,A):P.formatter.call(this);if(this.label)this.label.attr({text:c,visibility:"hidden"});else{this.label=A.renderer.label(c,null,void 0,P.shape,void 0,void 0,P.useHTML,!1,"stack-labels");var g={r:P.borderRadius||0,text:c,padding:V(P.padding,5),visibility:"hidden"};A.styledMode||(g.fill=P.backgroundColor,g.stroke=P.borderColor,g["stroke-width"]=P.borderWidth,this.label.css(P.style||{})),this.label.attr(g),this.label.added||this.label.add(E)}this.label.labelrank=A.plotSizeY},I.prototype.setOffset=function(E,A,P,y,c,g){var m=this,u=m.alignOptions,v=m.axis,w=m.label,M=m.options,C=m.textAlign,p=v.chart,f=this.getStackBox({xOffset:E,width:A,boxBottom:P,boxTop:y,defaultX:c,xAxis:g}),r=u.verticalAlign;if(w&&f){var l=w.getBBox(),t=w.padding,i=V(M.overflow,"justify")==="justify",o=void 0;u.x=M.x||0,u.y=M.y||0;var e=this.adjustStackPosition({labelBox:l,verticalAlign:r,textAlign:C}),a=e.x,s=e.y;f.x-=a,f.y-=s,w.align(u,!1,f),(o=p.isInsidePlot(w.alignAttr.x+u.x+a,w.alignAttr.y+u.y+s))||(i=!1),i&&$.prototype.justifyDataLabel.call(v,w,u,w.alignAttr,l,f),w.attr({x:w.alignAttr.x,y:w.alignAttr.y,rotation:M.rotation,rotationOriginX:l.width/2,rotationOriginY:l.height/2}),V(!i&&M.crop,!0)&&(o=F(w.x)&&F(w.y)&&p.isInsidePlot(w.x-t+w.width,w.y)&&p.isInsidePlot(w.x+t,w.y)),w[o?"show":"hide"]()}},I.prototype.adjustStackPosition=function(E){var A=E.labelBox,P=E.verticalAlign,y=E.textAlign,c={bottom:0,middle:1,top:2,right:1,center:0,left:-1},g=c[P],m=c[y];return{x:A.width/2+A.width/2*m,y:A.height/2*g}},I.prototype.getStackBox=function(E){var A=this.axis,P=A.chart,y=E.boxTop,c=E.defaultX,g=E.xOffset,m=E.width,u=E.boxBottom,v=A.stacking.usePercentage?100:V(y,this.total,0),w=A.toPixels(v),M=E.xAxis||P.xAxis[0],C=V(c,M.toPixels(this.x))+g,p=A.toPixels(u||0),f=Math.abs(w-p),r=P.inverted,l=this.isNegative;return r?{x:(l?w:w-f)-P.plotLeft,y:C-P.plotTop,width:f,height:m}:{x:C-P.plotLeft,y:(l?w-f:w)-P.plotTop,width:m,height:f}},I}()}),et(_,"Core/Axis/Stacking/StackingAxis.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Axis/Axis.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=G.getDeferredAnimation,V=H.series.prototype,F=$.addEvent,I=$.correctFloat,E=$.defined,A=$.destroyObjectProperties,P=$.fireEvent,y=$.isArray,c=$.isNumber,g=$.objectEach,m=$.pick;function u(){var i=this,o=i.inverted;i.yAxis.forEach(function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),i.series.forEach(function(e){var a=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,m(e.options.stack,""),o?a.top:a.left,o?a.height:a.width].join(","))})}function v(){var i=this.stacking;if(i){var o=i.stacks;g(o,function(e,a){A(e),o[a]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function w(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function M(i,o,e,a){return!E(i)||i.x!==o||a&&i.stackKey!==a?i={x:o,index:0,key:a,stackKey:a}:i.index++,i.key=[e,o,i.index].join(","),i}function C(){var i,o=this,e=o.yAxis,a=o.stackKey,s=e.stacking.stacks,h=o.processedXData,b=o.options.stacking,k=o[b+"Stacker"];k&&[a,"-"+a].forEach(function(O){for(var d,x,T,N=h.length;N--;)d=h[N],i=o.getStackIndicator(i,d,o.index,O),(T=(x=s[O]&&s[O][d])&&x.points[i.key])&&k.call(o,T,x,N)})}function p(i,o,e){var a=o.total?100/o.total:0;i[0]=I(i[0]*a),i[1]=I(i[1]*a),this.stackedYData[e]=i[1]}function f(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&this.chart.series.length>1?V.setStackedPoints.call(this,"group"):i&&g(i.stacks,function(o,e){e.slice(-5)==="group"&&(g(o,function(a){return a.destroy()}),delete i.stacks[e])})}function r(i){var o=this.chart,e=i||this.options.stacking;if(e&&(this.visible===!0||o.options.chart.ignoreHiddenSeries===!1)){var a,s,h,b,k,O,d,x,T,N=this,z=N.processedXData,L=N.processedYData,D=[],j=L.length,Y=N.options,X=Y.threshold,W=m(Y.startFromThreshold&&X,0),q=Y.stack,tt=i?""+N.type+",".concat(e):N.stackKey,Q="-"+tt,nt=N.negStacks,lt=e==="group"?o.yAxis[0]:N.yAxis,gt=lt.stacking.stacks,mt=lt.stacking.oldStacks;for(lt.stacking.stacksTouched+=1,d=0;d<j;d++)x=z[d],T=L[d],O=(a=N.getStackIndicator(a,x,N.index)).key,gt[k=(s=nt&&T<(W?0:X))?Q:tt]||(gt[k]={}),gt[k][x]||(mt[k]&&mt[k][x]?(gt[k][x]=mt[k][x],gt[k][x].total=null):gt[k][x]=new U(lt,lt.options.stackLabels,!!s,x,q)),h=gt[k][x],T!==null?(h.points[O]=h.points[N.index]=[m(h.cumulative,W)],E(h.cumulative)||(h.base=O),h.touched=lt.stacking.stacksTouched,a.index>0&&N.singleStacks===!1&&(h.points[O][0]=h.points[N.index+","+x+",0"][0])):h.points[O]=h.points[N.index]=null,e==="percent"?(b=s?tt:Q,nt&>[b]&>[b][x]?(b=gt[b][x],h.total=b.total=Math.max(b.total,h.total)+Math.abs(T)||0):h.total=I(h.total+(Math.abs(T)||0))):e==="group"?(y(T)&&(T=T[0]),T!==null&&(h.total=(h.total||0)+1)):h.total=I(h.total+(T||0)),h.cumulative=e==="group"?(h.total||1)-1:m(h.cumulative,W)+(T||0),T!==null&&(h.points[O].push(h.cumulative),D[d]=h.cumulative,h.hasValidPoints=!0);e==="percent"&&(lt.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=D),lt.stacking.oldStacks={}}}var l,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e,a=this.axis,s=a.series,h=a.options.reversedStacks,b=s.length;for(this.usePercentage=!1,e=b;e--;)(o=s[h?e:b-e-1]).setStackedPoints(),o.setGroupedPoints();for(e=0;e<b;e++)s[e].modifyStacks();P(a,"afterBuildStacks")},i.prototype.cleanStacks=function(){var o,e=this;e.oldStacks&&(o=e.stacks=e.oldStacks),g(o,function(a){g(a,function(s){s.cumulative=s.total})})},i.prototype.resetStacks=function(){var o=this;g(this.stacks,function(e){g(e,function(a,s){c(a.touched)&&a.touched<o.stacksTouched?(a.destroy(),delete e[s]):(a.total=null,a.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this,e=o.axis,a=e.chart,s=a.renderer,h=o.stacks,b=e.options.stackLabels&&e.options.stackLabels.animation,k=Z(a,b||!1),O=o.stackTotalGroup=o.stackTotalGroup||s.g("stack-labels").attr({zIndex:6,opacity:0}).add();O.translate(a.plotLeft,a.plotTop),g(h,function(d){g(d,function(x){x.render(O)})}),O.animate({opacity:1},k)},i}();return function(i){var o=[];i.compose=function(e,a,s){if(o.indexOf(e)===-1&&(o.push(e),F(e,"init",w),F(e,"destroy",v)),o.indexOf(a)===-1&&(o.push(a),a.prototype.getStacks=u),o.indexOf(s)===-1){o.push(s);var h=s.prototype;h.getStackIndicator=M,h.modifyStacks=C,h.percentStacker=p,h.setGroupedPoints=f,h.setStackedPoints=r}}}(l||(l={})),l}),et(_,"Series/Line/LineSeries.js",[_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},U(I,E)},function(I,E){function A(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),Z=H.defined,V=H.merge,F=function(I){function E(){var A=I!==null&&I.apply(this,arguments)||this;return A.data=void 0,A.options=void 0,A.points=void 0,A}return $(E,I),E.prototype.drawGraph=function(){var A=this,P=this.options,y=(this.gappedPath||this.getGraphPath).call(this),c=this.chart.styledMode,g=[["graph","highcharts-graph"]];c||g[0].push(P.lineColor||this.color||"#cccccc",P.dashStyle),(g=A.getZonesGraphs(g)).forEach(function(m,u){var v,w=m[0],M=A[w],C=M?"animate":"attr";M?(M.endX=A.preventGraphAnimation?null:y.xMap,M.animate({d:y})):y.length&&(A[w]=M=A.chart.renderer.path(y).addClass(m[1]).attr({zIndex:1}).add(A.group)),M&&!c&&(v={stroke:m[2],"stroke-width":P.lineWidth||0,fill:A.fillGraph&&A.color||"none"},m[3]?v.dashstyle=m[3]:P.linecap!=="square"&&(v["stroke-linecap"]=v["stroke-linejoin"]="round"),M[C](v).shadow(u<2&&P.shadow)),M&&(M.startX=y.xMap,M.isArea=y.isArea)})},E.prototype.getGraphPath=function(A,P,y){var c,g=this,m=g.options,u=[],v=[],w=m.step,M=(A=A||g.points).reversed;return M&&A.reverse(),(w={right:1,center:2}[w]||w&&3)&&M&&(w=4-w),(A=this.getValidPoints(A,!1,!(m.connectNulls&&!P&&!y))).forEach(function(C,p){var f,r=C.plotX,l=C.plotY,t=A[p-1];(C.leftCliff||t&&t.rightCliff)&&!y&&(c=!0),C.isNull&&!Z(P)&&p>0?c=!m.connectNulls:C.isNull&&!P?c=!0:(p===0||c?f=[["M",C.plotX,C.plotY]]:g.getPointSpline?f=[g.getPointSpline(A,C,p)]:w?(f=w===1?[["L",t.plotX,l]]:w===2?[["L",(t.plotX+r)/2,t.plotY],["L",(t.plotX+r)/2,l]]:[["L",r,t.plotY]]).push(["L",r,l]):f=[["L",r,l]],v.push(C.x),w&&(v.push(C.x),w===2&&v.push(C.x)),u.push.apply(u,f),c=!1)}),u.xMap=v,g.graphPath=u,u},E.prototype.getZonesGraphs=function(A){return this.zones.forEach(function(P,y){var c=["zone-graph-"+y,"highcharts-graph highcharts-zone-graph-"+y+" "+(P.className||"")];this.chart.styledMode||c.push(P.color||this.color,P.dashStyle||this.options.dashStyle),A.push(c)},this),A},E.defaultOptions=V(G.defaultOptions,{}),E}(G);return B.registerSeriesType("line",F),F}),et(_,"Series/Area/AreaSeries.js",[_["Core/Color/Color.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(c,g){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},$(c,g)},function(c,g){function m(){this.constructor=c}$(c,g),c.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}),V=G.parse,F=H.seriesTypes.line,I=U.extend,E=U.merge,A=U.objectEach,P=U.pick,y=function(c){function g(){var m=c!==null&&c.apply(this,arguments)||this;return m.data=void 0,m.options=void 0,m.points=void 0,m}return Z(g,c),g.prototype.drawGraph=function(){this.areaPath=[],c.prototype.drawGraph.apply(this);var m=this,u=this.areaPath,v=this.options,w=this.zones,M=[["area","highcharts-area",this.color,v.fillColor]];w.forEach(function(C,p){M.push(["zone-area-"+p,"highcharts-area highcharts-zone-area-"+p+" "+C.className,C.color||m.color,C.fillColor||v.fillColor])}),M.forEach(function(C){var p=C[0],f={},r=m[p],l=r?"animate":"attr";r?(r.endX=m.preventGraphAnimation?null:u.xMap,r.animate({d:u})):(f.zIndex=0,(r=m[p]=m.chart.renderer.path(u).addClass(C[1]).add(m.group)).isArea=!0),m.chart.styledMode||(f.fill=P(C[3],V(C[2]).setOpacity(P(v.fillOpacity,.75)).get())),r[l](f),r.startX=u.xMap,r.shiftUnit=v.step?2:1})},g.prototype.getGraphPath=function(m){var u,v,w,M=F.prototype.getGraphPath,C=this.options,p=C.stacking,f=this.yAxis,r=[],l=[],t=this.index,i=f.stacking.stacks[this.stackKey],o=C.threshold,e=Math.round(f.getThreshold(C.threshold)),a=P(C.connectNulls,p==="percent"),s=function(N,z,L){var D,j,Y=m[N],X=p&&i[Y.x].points[t],W=Y[L+"Null"]||0,q=Y[L+"Cliff"]||0,tt=!0;q||W?(D=(W?X[0]:X[1])+q,j=X[0]+q,tt=!!W):!p&&m[z]&&m[z].isNull&&(D=j=o),D!==void 0&&(l.push({plotX:u,plotY:D===null?e:f.getThreshold(D),isNull:tt,isCliff:!0}),r.push({plotX:u,plotY:j===null?e:f.getThreshold(j),doCurve:!1}))};m=m||this.points,p&&(m=this.getStackPoints(m));for(var h=0,b=m.length;h<b;++h)p||(m[h].leftCliff=m[h].rightCliff=m[h].leftNull=m[h].rightNull=void 0),v=m[h].isNull,u=P(m[h].rectPlotX,m[h].plotX),w=p?P(m[h].yBottom,e):e,v&&!a||(a||s(h,h-1,"left"),v&&!p&&a||(l.push(m[h]),r.push({x:h,plotX:u,plotY:w})),a||s(h,h+1,"right"));var k=M.call(this,l,!0,!0);r.reversed=!0;var O=M.call(this,r,!0,!0),d=O[0];d&&d[0]==="M"&&(O[0]=["L",d[1],d[2]]);var x=k.concat(O);x.length&&x.push(["Z"]);var T=M.call(this,l,!1,a);return x.xMap=k.xMap,this.areaPath=x,T},g.prototype.getStackPoints=function(m){var u=this,v=[],w=[],M=this.xAxis,C=this.yAxis,p=C.stacking.stacks[this.stackKey],f={},r=C.series,l=r.length,t=C.options.reversedStacks?1:-1,i=r.indexOf(u);if(m=m||this.points,this.options.stacking){for(var o=0;o<m.length;o++)m[o].leftNull=m[o].rightNull=void 0,f[m[o].x]=m[o];A(p,function(a,s){a.total!==null&&w.push(s)}),w.sort(function(a,s){return a-s});var e=r.map(function(a){return a.visible});w.forEach(function(a,s){var h,b,k=0;if(f[a]&&!f[a].isNull)v.push(f[a]),[-1,1].forEach(function(x){var T=x===1?"rightNull":"leftNull",N=x===1?"rightCliff":"leftCliff",z=p[w[s+x]],L=0;if(z)for(var D=i;D>=0&&D<l;){var j=r[D].index;(h=z.points[j])||(j===u.index?f[a][T]=!0:e[D]&&(b=p[a].points[j])&&(L-=b[1]-b[0])),D+=t}f[a][N]=L});else{for(var O=i;O>=0&&O<l;){var d=r[O].index;if(h=p[a].points[d]){k=h[1];break}O+=t}k=P(k,0),k=C.translate(k,0,1,0,1),v.push({isNull:!0,plotX:M.translate(a,0,0,0,1),x:a,plotY:k,yBottom:k})}})}return v},g.defaultOptions=E(F.defaultOptions,{threshold:0}),g}(F);return I(y.prototype,{singleStacks:!1,drawLegendSymbol:B.drawRectangle}),H.registerSeriesType("area",y),y}),et(_,"Series/Spline/SplineSeries.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H,U=this&&this.__extends||(H=function(I,E){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},H(I,E)},function(I,E){function A(){this.constructor=I}H(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),$=G.seriesTypes.line,Z=B.merge,V=B.pick,F=function(I){function E(){var A=I!==null&&I.apply(this,arguments)||this;return A.data=void 0,A.options=void 0,A.points=void 0,A}return U(E,I),E.prototype.getPointSpline=function(A,P,y){var c,g,m,u,v=1.5,w=2.5,M=P.plotX||0,C=P.plotY||0,p=A[y-1],f=A[y+1];function r(s){return s&&!s.isNull&&s.doCurve!==!1&&!P.isCliff}if(r(p)&&r(f)){var l=p.plotX||0,t=p.plotY||0,i=f.plotX||0,o=f.plotY||0,e=0;g=(v*C+t)/w,u=(v*C+o)/w,(m=(v*M+i)/w)!==(c=(v*M+l)/w)&&(e=(u-g)*(m-M)/(m-c)+C-u),u+=e,(g+=e)>t&&g>C?u=2*C-(g=Math.max(t,C)):g<t&&g<C&&(u=2*C-(g=Math.min(t,C))),u>o&&u>C?g=2*C-(u=Math.max(o,C)):u<o&&u<C&&(g=2*C-(u=Math.min(o,C))),P.rightContX=m,P.rightContY=u}var a=["C",V(p.rightContX,p.plotX,0),V(p.rightContY,p.plotY,0),V(c,M,0),V(g,C,0),M,C];return p.rightContX=p.rightContY=void 0,a},E.defaultOptions=Z($.defaultOptions),E}($);return G.registerSeriesType("spline",F),F}),et(_,"Series/AreaSpline/AreaSplineSeries.js",[_["Series/Spline/SplineSeries.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},$(y,c)},function(y,c){function g(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),V=H.seriesTypes,F=V.area,I=V.area.prototype,E=U.extend,A=U.merge,P=function(y){function c(){var g=y!==null&&y.apply(this,arguments)||this;return g.data=void 0,g.points=void 0,g.options=void 0,g}return Z(c,y),c.defaultOptions=A(G.defaultOptions,F.defaultOptions),c}(G);return E(P.prototype,{getGraphPath:I.getGraphPath,getStackPoints:I.getStackPoints,drawGraph:I.drawGraph,drawLegendSymbol:B.drawRectangle}),H.registerSeriesType("areaspline",P),P}),et(_,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),et(_,"Series/Column/ColumnSeries.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Color/Color.js"],_["Series/Column/ColumnSeriesDefaults.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F){var I,E=this&&this.__extends||(I=function(l,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var e in o)o.hasOwnProperty(e)&&(i[e]=o[e])},I(l,t)},function(l,t){function i(){this.constructor=l}I(l,t),l.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),A=G.animObject,P=B.parse,y=U.hasTouch,c=U.noop,g=F.clamp,m=F.defined,u=F.extend,v=F.fireEvent,w=F.isArray,M=F.isNumber,C=F.merge,p=F.pick,f=F.objectEach,r=function(l){function t(){var i=l!==null&&l.apply(this,arguments)||this;return i.borderWidth=void 0,i.data=void 0,i.group=void 0,i.options=void 0,i.points=void 0,i}return E(t,l),t.prototype.animate=function(i){var o,e,a=this,s=this.yAxis,h=a.options,b=this.chart.inverted,k={},O=b?"translateX":"translateY";i?(k.scaleY=.001,e=g(s.toPixels(h.threshold),s.pos,s.pos+s.len),b?k.translateX=e-s.len:k.translateY=e,a.clipBox&&a.setClip(),a.group.attr(k)):(o=Number(a.group.attr(O)),a.group.animate({scaleY:1},u(A(a.options.animation),{step:function(d,x){a.group&&(k[O]=o+x.pos*(s.pos-o),a.group.attr(k))}})))},t.prototype.init=function(i,o){l.prototype.init.apply(this,arguments);var e=this;(i=e.chart).hasRendered&&i.series.forEach(function(a){a.type===e.type&&(a.isDirty=!0)})},t.prototype.getColumnMetrics=function(){var i,o=this,e=o.options,a=o.xAxis,s=o.yAxis,h=a.options.reversedStacks,b=a.reversed&&!h||!a.reversed&&h,k={},O=0;e.grouping===!1?O=1:o.chart.series.forEach(function(L){var D,j=L.yAxis,Y=L.options;L.type!==o.type||!L.visible&&o.chart.options.chart.ignoreHiddenSeries||s.len!==j.len||s.pos!==j.pos||(Y.stacking&&Y.stacking!=="group"?(i=L.stackKey,k[i]===void 0&&(k[i]=O++),D=k[i]):Y.grouping!==!1&&(D=O++),L.columnIndex=D)});var d=Math.min(Math.abs(a.transA)*(a.ordinal&&a.ordinal.slope||e.pointRange||a.closestPointRange||a.tickInterval||1),a.len),x=d*e.groupPadding,T=(d-2*x)/(O||1),N=Math.min(e.maxPointWidth||a.len,p(e.pointWidth,T*(1-2*e.pointPadding))),z=(T-N)/2+(x+((o.columnIndex||0)+(b?1:0))*T-d/2)*(b?-1:1);return o.columnMetrics={width:N,offset:z,paddedWidth:T,columnCount:O},o.columnMetrics},t.prototype.crispCol=function(i,o,e,a){var s=this.chart,h=this.borderWidth,b=-(h%2?.5:0),k=h%2?.5:1;s.inverted&&s.renderer.isVML&&(k+=1),this.options.crisp&&(e=Math.round(i+e)+b-(i=Math.round(i)+b));var O=Math.round(o+a)+k,d=Math.abs(o)<=.5&&O>.5;return a=O-(o=Math.round(o)+k),d&&a&&(o-=1,a+=1),{x:i,y:o,width:e,height:a}},t.prototype.adjustForMissingColumns=function(i,o,e,a){var s=this,h=this.options.stacking;if(!e.isNull&&a.columnCount>1){var b=this.yAxis.options.reversedStacks,k=0,O=b?0:-a.columnCount;f(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(x){if(typeof e.x=="number"){var T=x[e.x.toString()];if(T){var N=T.points[s.index];if(h)N&&(k=O),T.hasValidPoints&&(b?O++:O--);else if(w(N)){var z=Object.keys(T.points).filter(function(L){return!L.match(",")&&T.points[L]&&T.points[L].length>1}).map(parseFloat).sort(function(L,D){return D-L});k=z.indexOf(s.index),O=z.length}}}});var d=(O-1)*a.paddedWidth+o;i=(e.plotX||0)+d/2-o-k*a.paddedWidth}return i},t.prototype.translate=function(){var i=this,o=i.chart,e=i.options,a=i.dense=i.closestPointRange*i.xAxis.transA<2,s=i.borderWidth=p(e.borderWidth,a?0:1),h=i.xAxis,b=i.yAxis,k=e.threshold,O=i.translatedThreshold=b.getThreshold(k),d=p(e.minPointLength,5),x=i.getColumnMetrics(),T=x.width,N=i.pointXOffset=x.offset,z=i.dataMin,L=i.dataMax,D=i.barW=Math.max(T,1+2*s);o.inverted&&(O-=.5),e.pointPadding&&(D=Math.ceil(D)),Z.prototype.translate.apply(i),i.points.forEach(function(j){var Y,X=p(j.yBottom,O),W=999+Math.abs(X),q=j.plotX||0,tt=g(j.plotY,-W,b.len+W),Q=Math.min(tt,X),nt=Math.max(tt,X)-Q,lt=T,gt=q+N,mt=D;d&&Math.abs(nt)<d&&(nt=d,Y=!b.reversed&&!j.negative||b.reversed&&j.negative,M(k)&&M(L)&&j.y===k&&L<=k&&(b.min||0)<k&&(z!==L||(b.max||0)<=k)&&(Y=!Y),Q=Math.abs(Q-O)>d?X-d:O-(Y?d:0)),m(j.options.pointWidth)&&(lt=mt=Math.ceil(j.options.pointWidth),gt-=Math.round((lt-T)/2)),e.centerInCategory&&(gt=i.adjustForMissingColumns(gt,lt,j,x)),j.barX=gt,j.pointWidth=lt,j.tooltipPos=o.inverted?[g(b.len+b.pos-o.plotLeft-tt,b.pos-o.plotLeft,b.len+b.pos-o.plotLeft),h.len+h.pos-o.plotTop-gt-mt/2,nt]:[h.left-o.plotLeft+gt+mt/2,g(tt+b.pos-o.plotTop,b.pos-o.plotTop,b.len+b.pos-o.plotTop),nt],j.shapeType=i.pointClass.prototype.shapeType||"rect",j.shapeArgs=i.crispCol.apply(i,j.isNull?[gt,O,mt,0]:[gt,Q,mt,nt])})},t.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},t.prototype.pointAttribs=function(i,o){var e,a,s,h=this.options,b=this.pointAttrToOptions||{},k=b.stroke||"borderColor",O=b["stroke-width"]||"borderWidth",d=i&&i.color||this.color,x=i&&i[k]||h[k]||d,T=i&&i.options.dashStyle||h.dashStyle,N=i&&i[O]||h[O]||this[O]||0,z=p(i&&i.opacity,h.opacity,1);i&&this.zones.length&&(a=i.getZone(),d=i.options.color||a&&(a.color||i.nonZonedColor)||this.color,a&&(x=a.borderColor||x,T=a.dashStyle||T,N=a.borderWidth||N)),o&&i&&(s=(e=C(h.states[o],i.options.states&&i.options.states[o]||{})).brightness,d=e.color||s!==void 0&&P(d).brighten(e.brightness).get()||d,x=e[k]||x,N=e[O]||N,T=e.dashStyle||T,z=p(e.opacity,z));var L={fill:d,stroke:x,"stroke-width":N,opacity:z};return T&&(L.dashstyle=T),L},t.prototype.drawPoints=function(i){i===void 0&&(i=this.points);var o,e=this,a=this.chart,s=e.options,h=a.renderer,b=s.animationLimit||250;i.forEach(function(k){var O=k.plotY,d=k.graphic,x=!!d,T=d&&a.pointCount<b?"animate":"attr";M(O)&&k.y!==null?(o=k.shapeArgs,d&&k.hasNewShapeType()&&(d=d.destroy()),e.enabledDataSorting&&(k.startXPos=e.xAxis.reversed?-(o&&o.width||0):e.xAxis.width),d||(k.graphic=d=h[k.shapeType](o).add(k.group||e.group),d&&e.enabledDataSorting&&a.hasRendered&&a.pointCount<b&&(d.attr({x:k.startXPos}),x=!0,T="animate")),d&&x&&d[T](C(o)),s.borderRadius&&d[T]({r:s.borderRadius}),a.styledMode||d[T](e.pointAttribs(k,k.selected&&"select")).shadow(k.allowShadow!==!1&&s.shadow,null,s.stacking&&!s.borderRadius),d&&(d.addClass(k.getClassName(),!0),d.attr({visibility:k.visible?"inherit":"hidden"}))):d&&(k.graphic=d.destroy())})},t.prototype.drawTracker=function(i){i===void 0&&(i=this.points);var o,e=this,a=e.chart,s=a.pointer,h=function(b){var k=s.getPointFromEvent(b);k!==void 0&&(s.isDirectTouch=!0,k.onMouseOver(b))};i.forEach(function(b){o=w(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[],b.graphic&&(b.graphic.element.point=b),o.forEach(function(k){k.div?k.div.point=b:k.element.point=b})}),e._hasTracking||(e.trackerGroups.forEach(function(b){e[b]&&(e[b].addClass("highcharts-tracker").on("mouseover",h).on("mouseout",function(k){s.onTrackerMouseOut(k)}),y&&e[b].on("touchstart",h),!a.styledMode&&e.options.cursor&&e[b].css({cursor:e.options.cursor}))}),e._hasTracking=!0),v(this,"afterDrawTracker")},t.prototype.remove=function(){var i=this,o=i.chart;o.hasRendered&&o.series.forEach(function(e){e.type===i.type&&(e.isDirty=!0)}),Z.prototype.remove.apply(i,arguments)},t.defaultOptions=C(Z.defaultOptions,H),t}(Z);return u(r.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:c,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),V.registerSeriesType("column",r),r}),et(_,"Core/Series/DataLabel.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=G.getDeferredAnimation,Z=B.format,V=H.defined,F=H.extend,I=H.fireEvent,E=H.isArray,A=H.isString,P=H.merge,y=H.objectEach,c=H.pick,g=H.splat;return function(m){var u=[];function v(f,r,l,t,i){var o,e,a,s=this,h=this.chart,b=this.isCartesian&&h.inverted,k=this.enabledDataSorting,O=f.plotX,d=f.plotY,x=l.rotation,T=l.align,N=V(O)&&V(d)&&h.isInsidePlot(O,Math.round(d),{inverted:b,paneCoordinates:!0,series:s}),z=function(tt){k&&s.xAxis&&!L&&s.setDataLabelStartPos(f,r,i,N,tt)},L=c(l.overflow,k?"none":"justify")==="justify",D=this.visible&&f.visible!==!1&&V(O)&&(f.series.forceDL||k&&!L||N||c(l.inside,!!this.options.stacking)&&t&&h.isInsidePlot(O,b?t.x+1:t.y+t.height-1,{inverted:b,paneCoordinates:!0,series:s})),j=f.pos();if(D&&j){x&&r.attr({align:T});var Y=r.getBBox(!0),X=[0,0];if(o=h.renderer.fontMetrics(h.styledMode?void 0:l.style.fontSize,r).b,t=F({x:j[0],y:Math.round(j[1]),width:0,height:0},t),F(l,{width:Y.width,height:Y.height}),x?(L=!1,e=h.renderer.rotCorr(o,x),a={x:t.x+(l.x||0)+t.width/2+e.x,y:t.y+(l.y||0)+{top:0,middle:.5,bottom:1}[l.verticalAlign]*t.height},X=[Y.x-Number(r.attr("x")),Y.y-Number(r.attr("y"))],z(a),r[i?"attr":"animate"](a)):(z(t),r.align(l,void 0,t),a=r.alignAttr),L&&t.height>=0)this.justifyDataLabel(r,l,a,Y,t,i);else if(c(l.crop,!0)){var W=a.x,q=a.y;W+=X[0],q+=X[1],D=h.isInsidePlot(W,q,{paneCoordinates:!0,series:s})&&h.isInsidePlot(W+Y.width,q+Y.height,{paneCoordinates:!0,series:s})}l.shape&&!x&&r[i?"attr":"animate"]({anchorX:j[0],anchorY:j[1]})}i&&k&&(r.placed=!1),D||k&&!L?r.show():(r.hide(),r.placed=!1)}function w(f){f===void 0&&(f=this.points);var r,l=this,t=l.chart,i=l.options,o=l.hasRendered||0,e=t.renderer,a=t.options.chart,s=a.backgroundColor,h=a.plotBackgroundColor,b=e.getContrast(A(h)&&h||A(s)&&s||"#000000"),k=i.dataLabels,O=k.animation,d=k.defer?$(t,O,l):{defer:0,duration:0};if(k=C(C(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[l.type]&&t.options.plotOptions[l.type].dataLabels),k),I(this,"drawDataLabels"),E(k)||k.enabled||l._hasPointLabels){if((r=l.plotGroup("dataLabelsGroup","data-labels",o?"inherit":"hidden",k.zIndex||6)).attr({opacity:+o}),!o){var x=l.dataLabelsGroup;x&&(l.visible&&r.show(),x[i.animation?"animate":"attr"]({opacity:1},d))}f.forEach(function(T){g(C(k,T.dlOptions||T.options&&T.options.dataLabels)).forEach(function(N,z){var L,D,j,Y,X,W,q=N.enabled&&(!T.isNull||T.dataLabelOnNull)&&function(yt,dt){var ot=dt.filter;if(ot){var at=ot.operator,ut=yt[ot.property],vt=ot.value;return at===">"&&ut>vt||at==="<"&&ut<vt||at===">="&&ut>=vt||at==="<="&&ut<=vt||at==="=="&&ut==vt||at==="==="&&ut===vt}return!0}(T,N),tt=T.connectors?T.connectors[z]:T.connector,Q=T.dataLabels?T.dataLabels[z]:T.dataLabel,nt=!Q,lt=c(N.distance,T.labelDistance);if(q){if(L=T.getLabelConfig(),D=c(N[T.formatPrefix+"Format"],N.format),j=V(D)?Z(D,L,t):(N[T.formatPrefix+"Formatter"]||N.formatter).call(L,N),Y=N.style,X=N.rotation,t.styledMode||(Y.color=c(N.color,Y.color,l.color,"#000000"),Y.color==="contrast"?(T.contrastColor=e.getContrast(T.color||l.color),Y.color=!V(lt)&&N.inside||lt<0||i.stacking?T.contrastColor:b):delete T.contrastColor,i.cursor&&(Y.cursor=i.cursor)),W={r:N.borderRadius||0,rotation:X,padding:N.padding,zIndex:1},!t.styledMode){var gt=N.backgroundColor,mt=N.borderColor;W.fill=gt==="auto"?T.color:gt,W.stroke=mt==="auto"?T.color:mt,W["stroke-width"]=N.borderWidth}y(W,function(yt,dt){yt===void 0&&delete W[dt]})}if(!Q||q&&V(j)&&!!Q.div==!!N.useHTML&&(Q.rotation&&N.rotation||Q.rotation===N.rotation)||(nt=!0,T.dataLabel=Q=T.dataLabel&&T.dataLabel.destroy(),T.dataLabels&&(T.dataLabels.length===1?delete T.dataLabels:delete T.dataLabels[z]),z||delete T.dataLabel,tt&&(T.connector=T.connector.destroy(),T.connectors&&(T.connectors.length===1?delete T.connectors:delete T.connectors[z]))),q&&V(j)){Q?W.text=j:(T.dataLabels=T.dataLabels||[],Q=T.dataLabels[z]=X?e.text(j,0,0,N.useHTML).addClass("highcharts-data-label"):e.label(j,0,0,N.shape,null,null,N.useHTML,null,"data-label"),z||(T.dataLabel=Q),Q.addClass(" highcharts-data-label-color-"+T.colorIndex+" "+(N.className||"")+(N.useHTML?" highcharts-tracker":""))),Q.options=N,Q.attr(W),t.styledMode||Q.css(Y).shadow(N.shadow);var bt=N[T.formatPrefix+"TextPath"]||N.textPath;bt&&!N.useHTML&&(Q.setTextPath(T.getDataLabelPath&&T.getDataLabelPath(Q)||T.graphic,bt),T.dataLabelPath&&!bt.enabled&&(T.dataLabelPath=T.dataLabelPath.destroy())),Q.added||Q.add(r),l.alignDataLabel(T,Q,N,null,nt)}else Q&&Q.hide()})})}I(this,"afterDrawDataLabels")}function M(f,r,l,t,i,o){var e,a,s=this.chart,h=r.align,b=r.verticalAlign,k=f.box?0:f.padding||0,O=r.x,d=O===void 0?0:O,x=r.y,T=x===void 0?0:x;return(e=(l.x||0)+k)<0&&(h==="right"&&d>=0?(r.align="left",r.inside=!0):d-=e,a=!0),(e=(l.x||0)+t.width-k)>s.plotWidth&&(h==="left"&&d<=0?(r.align="right",r.inside=!0):d+=s.plotWidth-e,a=!0),(e=l.y+k)<0&&(b==="bottom"&&T>=0?(r.verticalAlign="top",r.inside=!0):T-=e,a=!0),(e=(l.y||0)+t.height-k)>s.plotHeight&&(b==="top"&&T<=0?(r.verticalAlign="bottom",r.inside=!0):T+=s.plotHeight-e,a=!0),a&&(r.x=d,r.y=T,f.placed=!o,f.align(r,void 0,i)),a}function C(f,r){var l,t=[];if(E(f)&&!E(r))t=f.map(function(i){return P(i,r)});else if(E(r)&&!E(f))t=r.map(function(i){return P(f,i)});else if(E(f)||E(r))for(l=Math.max(f.length,r.length);l--;)t[l]=P(f[l],r[l]);else t=P(f,r);return t}function p(f,r,l,t,i){var o=this.chart,e=o.inverted,a=this.xAxis,s=a.reversed,h=e?r.height/2:r.width/2,b=f.pointWidth,k=b?b/2:0;r.startXPos=e?i.x:s?-h-k:a.width-h+k,r.startYPos=e?s?this.yAxis.height-h+k:-h-k:i.y,t?r.visibility==="hidden"&&(r.show(),r.attr({opacity:0}).animate({opacity:1})):r.attr({opacity:1}).animate({opacity:0},void 0,r.hide),o.hasRendered&&(l&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}m.compose=function(f){if(u.indexOf(f)===-1){var r=f.prototype;u.push(f),r.alignDataLabel=v,r.drawDataLabels=w,r.justifyDataLabel=M,r.setDataLabelStartPos=p}}}(U||(U={})),U}),et(_,"Series/Column/ColumnDataLabel.js",[_["Core/Series/DataLabel.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=B.series,Z=H.merge,V=H.pick;return function(F){var I=[];function E(A,P,y,c,g){var m,u=this.chart.inverted,v=A.series,w=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0,M=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0,C=A.dlBox||A.shapeArgs,p=V(A.below,A.plotY>V(this.translatedThreshold,M)),f=V(y.inside,!!this.options.stacking);C&&((c=Z(C)).y<0&&(c.height+=c.y,c.y=0),(m=c.y+c.height-M)>0&&m<c.height&&(c.height-=m),u&&(c={x:M-c.y-c.height,y:w-c.x-c.width,width:c.height,height:c.width}),f||(u?(c.x+=p?0:c.width,c.width=0):(c.y+=p?c.height:0,c.height=0))),y.align=V(y.align,!u||f?"center":p?"right":"left"),y.verticalAlign=V(y.verticalAlign,u||f?"middle":p?"top":"bottom"),$.prototype.alignDataLabel.call(this,A,P,y,c,g),y.inside&&A.contrastColor&&P.css({color:A.contrastColor})}F.compose=function(A){G.compose($),I.indexOf(A)===-1&&(I.push(A),A.prototype.alignDataLabel=E)}}(U||(U={})),U}),et(_,"Series/Bar/BarSeries.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},U(I,E)},function(I,E){function A(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),Z=H.extend,V=H.merge,F=function(I){function E(){var A=I!==null&&I.apply(this,arguments)||this;return A.data=void 0,A.options=void 0,A.points=void 0,A}return $(E,I),E.defaultOptions=V(G.defaultOptions,{}),E}(G);return Z(F.prototype,{inverted:!0}),B.registerSeriesType("bar",F),F}),et(_,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),et(_,"Series/Scatter/ScatterSeries.js",[_["Series/Scatter/ScatterSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(y,c){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},U(y,c)},function(y,c){function g(){this.constructor=y}U(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),Z=B.seriesTypes,V=Z.column,F=Z.line,I=H.addEvent,E=H.extend,A=H.merge,P=function(y){function c(){var g=y!==null&&y.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return $(c,y),c.prototype.applyJitter=function(){var g=this,m=this.options.jitter,u=this.points.length;m&&this.points.forEach(function(v,w){["x","y"].forEach(function(M,C){var p,f,r,l,t,i,o="plot"+M.toUpperCase();m[M]&&!v.isNull&&(p=g[M+"Axis"],l=m[M]*p.transA,p&&!p.isLog&&(f=Math.max(0,v[o]-l),r=Math.min(p.len,v[o]+l),v[o]=f+(r-f)*(t=w+C*u,(i=1e4*Math.sin(t))-Math.floor(i)),M==="x"&&(v.clientX=v.plotX)))})})},c.prototype.drawGraph=function(){this.options.lineWidth?y.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},c.defaultOptions=A(F.defaultOptions,G),c}(F);return E(P.prototype,{drawTracker:V.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),I(P,"afterTranslate",function(){this.applyJitter()}),B.registerSeriesType("scatter",P),P}),et(_,"Series/CenteredUtilities.js",[_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=G.deg2rad,Z=H.fireEvent,V=H.isNumber,F=H.pick,I=H.relativeLength;return function(E){E.getCenter=function(){var A,P,y,c=this.options,g=this.chart,m=2*(c.slicedOffset||0),u=g.plotWidth-2*m,v=g.plotHeight-2*m,w=c.center,M=Math.min(u,v),C=c.thickness,p=c.size,f=c.innerSize||0;typeof p=="string"&&(p=parseFloat(p)),typeof f=="string"&&(f=parseFloat(f));var r=[F(w[0],"50%"),F(w[1],"50%"),F(p&&p<0?void 0:c.size,"100%"),F(f&&f<0?void 0:c.innerSize||0,"0%")];for(!g.angular||this instanceof B||(r[3]=0),P=0;P<4;++P)y=r[P],A=P<2||P===2&&/%$/.test(y),r[P]=I(y,[u,v,M,r[2]][P])+(A?m:0);return r[3]>r[2]&&(r[3]=r[2]),V(C)&&2*C<r[2]&&C>0&&(r[3]=r[2]-2*C),Z(this,"afterGetCenter",{positions:r}),r},E.getStartAndEndRadians=function(A,P){var y=V(A)?A:0,c=V(P)&&P>y&&P-y<360?P:y+360;return{start:$*(y+-90),end:$*(c+-90)}}}(U||(U={})),U}),et(_,"Series/Pie/PiePoint.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Series/Point.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(c,g){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},U(c,g)},function(c,g){function m(){this.constructor=c}U(c,g),c.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}),Z=G.setAnimation,V=H.addEvent,F=H.defined,I=H.extend,E=H.isNumber,A=H.pick,P=H.relativeLength,y=function(c){function g(){var m=c!==null&&c.apply(this,arguments)||this;return m.labelDistance=void 0,m.options=void 0,m.series=void 0,m}return $(g,c),g.prototype.getConnectorPath=function(){var m=this.labelPosition,u=this.series.options.dataLabels,v=this.connectorShapes,w=u.connectorShape;return v[w]&&(w=v[w]),w.call(this,{x:m.final.x,y:m.final.y,alignment:m.alignment},m.connectorPosition,u)},g.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},g.prototype.haloPath=function(m){var u=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(u.x,u.y,u.r+m,u.r+m,{innerR:u.r-1,start:u.start,end:u.end})},g.prototype.init=function(){var m=this;c.prototype.init.apply(this,arguments),this.name=A(this.name,"Slice");var u=function(v){m.slice(v.type==="select")};return V(this,"select",u),V(this,"unselect",u),this},g.prototype.isValid=function(){return E(this.y)&&this.y>=0},g.prototype.setVisible=function(m,u){var v=this,w=this.series,M=w.chart,C=w.options.ignoreHiddenPoint;u=A(u,C),m!==this.visible&&(this.visible=this.options.visible=m=m===void 0?!this.visible:m,w.options.data[w.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(p){v[p]&&v[p][m?"show":"hide"](m)}),this.legendItem&&M.legend.colorizeItem(this,m),m||this.state!=="hover"||this.setState(""),C&&(w.isDirty=!0),u&&M.redraw())},g.prototype.slice=function(m,u,v){var w=this.series,M=w.chart;Z(v,M),u=A(u,!0),this.sliced=this.options.sliced=m=F(m)?m:!this.sliced,w.options.data[w.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},g}(B);return I(y.prototype,{connectorShapes:{fixedOffset:function(c,g,m){var u=g.breakAt,v=g.touchingSliceAt,w=m.softConnector?["C",c.x+(c.alignment==="left"?-5:5),c.y,2*u.x-v.x,2*u.y-v.y,u.x,u.y]:["L",u.x,u.y];return[["M",c.x,c.y],w,["L",v.x,v.y]]},straight:function(c,g){var m=g.touchingSliceAt;return[["M",c.x,c.y],["L",m.x,m.y]]},crookedLine:function(c,g,m){var u=g.touchingSliceAt,v=this.series,w=v.center[0],M=v.chart.plotWidth,C=v.chart.plotLeft,p=c.alignment,f=this.shapeArgs.r,r=P(m.crookDistance,1),l=p==="left"?w+f+(M+C-w-f)*(1-r):C+(w-f)*r,t=["L",l,c.y],i=!0;(p==="left"?l>c.x||l<u.x:l<c.x||l>u.x)&&(i=!1);var o=[["M",c.x,c.y]];return i&&o.push(t),o.push(["L",u.x,u.y]),o}}}),y}),et(_,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),et(_,"Series/Pie/PieSeries.js",[_["Series/CenteredUtilities.js"],_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Series/Pie/PiePoint.js"],_["Series/Pie/PieSeriesDefaults.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/Symbols.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I,E){var A,P=this&&this.__extends||(A=function(p,f){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var t in l)l.hasOwnProperty(t)&&(r[t]=l[t])},A(p,f)},function(p,f){function r(){this.constructor=p}A(p,f),p.prototype=f===null?Object.create(f):(r.prototype=f.prototype,new r)}),y=G.getStartAndEndRadians,c=H.noop,g=E.clamp,m=E.extend,u=E.fireEvent,v=E.merge,w=E.pick,M=E.relativeLength,C=function(p){function f(){var r=p!==null&&p.apply(this,arguments)||this;return r.center=void 0,r.data=void 0,r.maxLabelDistance=void 0,r.options=void 0,r.points=void 0,r}return P(f,p),f.prototype.animate=function(r){var l=this,t=l.points,i=l.startAngleRad;r||t.forEach(function(o){var e=o.graphic,a=o.shapeArgs;e&&a&&(e.attr({r:w(o.startR,l.center&&l.center[3]/2),start:i,end:i}),e.animate({r:a.r,start:a.start,end:a.end},l.options.animation))})},f.prototype.drawEmpty=function(){var r,l,t=this.startAngleRad,i=this.endAngleRad,o=this.options;this.total===0&&this.center?(r=this.center[0],l=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(r,l,this.center[1]/2,0,t,i).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,l,this.center[2]/2,0,{start:t,end:i,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())},f.prototype.drawPoints=function(){var r=this.chart.renderer;this.points.forEach(function(l){l.graphic&&l.hasNewShapeType()&&(l.graphic=l.graphic.destroy()),l.graphic||(l.graphic=r[l.shapeType](l.shapeArgs).add(l.series.group),l.delayedRendering=!0)})},f.prototype.generatePoints=function(){p.prototype.generatePoints.call(this),this.updateTotals()},f.prototype.getX=function(r,l,t){var i=this.center,o=this.radii?this.radii[t.index]||0:i[2]/2,e=Math.asin(g((r-i[1])/(o+t.labelDistance),-1,1));return i[0]+(l?-1:1)*(Math.cos(e)*(o+t.labelDistance))+(t.labelDistance>0?(l?-1:1)*this.options.dataLabels.padding:0)},f.prototype.hasData=function(){return!!this.processedXData.length},f.prototype.redrawPoints=function(){var r,l,t,i,o=this,e=o.chart,a=e.renderer,s=o.options.shadow;this.drawEmpty(),!s||o.shadowGroup||e.styledMode||(o.shadowGroup=a.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach(function(h){var b={};if(l=h.graphic,!h.isNull&&l){var k=void 0;i=h.shapeArgs,r=h.getTranslate(),e.styledMode||(k=h.shadowGroup,s&&!k&&(k=h.shadowGroup=a.g("shadow").add(o.shadowGroup)),k&&k.attr(r),t=o.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(l.setRadialReference(o.center).attr(i).attr(r),e.styledMode||l.attr(t).attr({"stroke-linejoin":"round"}).shadow(s,k),h.delayedRendering=!1):(l.setRadialReference(o.center),e.styledMode||v(!0,b,t),v(!0,b,i,r),l.animate(b)),l.attr({visibility:h.visible?"inherit":"hidden"}),l.addClass(h.getClassName(),!0)}else l&&(h.graphic=l.destroy())})},f.prototype.sortByAngle=function(r,l){r.sort(function(t,i){return t.angle!==void 0&&(i.angle-t.angle)*l})},f.prototype.translate=function(r){u(this,"translate"),this.generatePoints();var l,t,i,o,e,a,s,h,b=this,k=1e3,O=b.options,d=O.slicedOffset,x=d+(O.borderWidth||0),T=y(O.startAngle,O.endAngle),N=b.startAngleRad=T.start,z=(b.endAngleRad=T.end)-N,L=b.points,D=O.dataLabels.distance,j=O.ignoreHiddenPoint,Y=L.length,X=0;for(r||(b.center=r=b.getCenter()),s=0;s<Y;s++){t=N+X*z,!(h=L[s]).isValid()||j&&!h.visible||(X+=h.percentage/100),i=N+X*z;var W={x:r[0],y:r[1],r:r[2]/2,innerR:r[3]/2,start:Math.round(t*k)/k,end:Math.round(i*k)/k};h.shapeType="arc",h.shapeArgs=W,h.labelDistance=w(h.options.dataLabels&&h.options.dataLabels.distance,D),h.labelDistance=M(h.labelDistance,W.r),b.maxLabelDistance=Math.max(b.maxLabelDistance||0,h.labelDistance),(o=(i+t)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),h.slicedTranslation={translateX:Math.round(Math.cos(o)*d),translateY:Math.round(Math.sin(o)*d)},e=Math.cos(o)*r[2]/2,a=Math.sin(o)*r[2]/2,h.tooltipPos=[r[0]+.7*e,r[1]+.7*a],h.half=o<-Math.PI/2||o>Math.PI/2?1:0,h.angle=o,l=Math.min(x,h.labelDistance/5),h.labelPosition={natural:{x:r[0]+e+Math.cos(o)*h.labelDistance,y:r[1]+a+Math.sin(o)*h.labelDistance},final:{},alignment:h.labelDistance<0?"center":h.half?"right":"left",connectorPosition:{breakAt:{x:r[0]+e+Math.cos(o)*l,y:r[1]+a+Math.sin(o)*l},touchingSliceAt:{x:r[0]+e,y:r[1]+a}}}}u(b,"afterTranslate")},f.prototype.updateTotals=function(){var r,l,t=this.points,i=t.length,o=this.options.ignoreHiddenPoint,e=0;for(r=0;r<i;r++)!(l=t[r]).isValid()||o&&!l.visible||(e+=l.y);for(this.total=e,r=0;r<i;r++)(l=t[r]).percentage=e>0&&(l.visible||!o)?l.y/e*100:0,l.total=e},f.defaultOptions=v(V.defaultOptions,Z),f}(V);return m(C.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:U.drawRectangle,drawTracker:B.prototype.drawTracker,getCenter:G.getCenter,getSymbol:c,isCartesian:!1,noSharedTooltip:!0,pointAttribs:B.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:c,trackerGroups:["group","dataLabelsGroup"]}),F.registerSeriesType("pie",C),C}),et(_,"Series/Pie/PieDataLabel.js",[_["Core/Series/DataLabel.js"],_["Core/Globals.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z,V=B.noop,F=H.distribute,I=U.series,E=$.arrayMax,A=$.clamp,P=$.defined,y=$.merge,c=$.pick,g=$.relativeLength;return function(m){var u=[],v={radialDistributionY:function(p){return p.top+p.distributeBox.pos},radialDistributionX:function(p,f,r,l){return p.getX(r<f.top+2||r>f.bottom-2?l:r,f.half,f)},justify:function(p,f,r){return r[0]+(p.half?-1:1)*(f+p.labelDistance)},alignToPlotEdges:function(p,f,r,l){var t=p.getBBox().width;return f?t+l:r-t-l},alignToConnectors:function(p,f,r,l){var t,i=0;return p.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),f?i+l:r-i-l}};function w(){var p,f,r,l,t,i,o,e,a,s,h,b,k=this,O=k.data,d=k.chart,x=k.options.dataLabels||{},T=x.connectorPadding,N=d.plotWidth,z=d.plotHeight,L=d.plotLeft,D=Math.round(d.chartWidth/3),j=k.center,Y=j[2]/2,X=j[1],W=[[],[]],q=[0,0,0,0],tt=k.dataLabelPositioners;k.visible&&(x.enabled||k._hasPointLabels)&&(O.forEach(function(Q){Q.dataLabel&&Q.visible&&Q.dataLabel.shortened&&(Q.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),Q.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(k),O.forEach(function(Q){Q.dataLabel&&(Q.visible?(W[Q.half].push(Q),Q.dataLabel._pos=null,P(x.style.width)||P(Q.options.dataLabels&&Q.options.dataLabels.style&&Q.options.dataLabels.style.width)||Q.dataLabel.getBBox().width>D&&(Q.dataLabel.css({width:Math.round(.7*D)+"px"}),Q.dataLabel.shortened=!0)):(Q.dataLabel=Q.dataLabel.destroy(),Q.dataLabels&&Q.dataLabels.length===1&&delete Q.dataLabels))}),W.forEach(function(Q,nt){var lt,gt,mt,bt,yt,dt,ot=Q.length,at=[];if(ot)for(k.sortByAngle(Q,nt-.5),k.maxLabelDistance>0&&(lt=Math.max(0,X-Y-k.maxLabelDistance),gt=Math.min(X+Y+k.maxLabelDistance,d.plotHeight),Q.forEach(function(ut){ut.labelDistance>0&&ut.dataLabel&&(ut.top=Math.max(0,X-Y-ut.labelDistance),ut.bottom=Math.min(X+Y+ut.labelDistance,d.plotHeight),yt=ut.dataLabel.getBBox().height||21,ut.distributeBox={target:ut.labelPosition.natural.y-ut.top+yt/2,size:yt,rank:ut.y},at.push(ut.distributeBox))}),F(at,dt=gt+yt-lt,dt/5)),h=0;h<ot;h++){if(p=Q[h],i=p.labelPosition,l=p.dataLabel,s=p.visible===!1?"hidden":"inherit",mt=i.natural.y,a=mt,at&&P(p.distributeBox)&&(p.distributeBox.pos===void 0?s="hidden":(o=p.distributeBox.size,a=tt.radialDistributionY(p))),delete p.positionIndex,x.justify)e=tt.justify(p,Y,j);else switch(x.alignTo){case"connectors":e=tt.alignToConnectors(Q,nt,N,L);break;case"plotEdges":e=tt.alignToPlotEdges(l,nt,N,L);break;default:e=tt.radialDistributionX(k,p,a,mt)}l._attr={visibility:s,align:i.alignment},b=p.options.dataLabels||{},l._pos={x:e+c(b.x,x.x)+({left:T,right:-T}[i.alignment]||0),y:a+c(b.y,x.y)-10},i.final.x=e,i.final.y=a,c(x.crop,!0)&&(t=l.getBBox().width,bt=null,e-t<T&&nt===1?(bt=Math.round(t-e+T),q[3]=Math.max(bt,q[3])):e+t>N-T&&nt===0&&(bt=Math.round(e+t-N+T),q[1]=Math.max(bt,q[1])),a-o/2<0?q[0]=Math.max(Math.round(o/2-a),q[0]):a+o/2>z&&(q[2]=Math.max(Math.round(a+o/2-z),q[2])),l.sideOverflow=bt)}}),(E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(Q){if(b=y(x,Q.options.dataLabels),f=c(b.connectorWidth,1)){var nt=void 0;r=Q.connector,(l=Q.dataLabel)&&l._pos&&Q.visible&&Q.labelDistance>0?(s=l._attr.visibility,(nt=!r)&&(Q.connector=r=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+Q.colorIndex+(Q.className?" "+Q.className:"")).add(k.dataLabelsGroup),d.styledMode||r.attr({"stroke-width":f,stroke:b.connectorColor||Q.color||"#666666"})),r[nt?"attr":"animate"]({d:Q.getConnectorPath()}),r.attr("visibility",s)):r&&(Q.connector=r.destroy())}})))}function M(){this.points.forEach(function(p){var f,r=p.dataLabel;r&&p.visible&&((f=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](f),r.moved=!0):r&&r.attr({y:-9999})),delete p.distributeBox},this)}function C(p){var f=this.center,r=this.options,l=r.center,t=r.minSize||80,i=t,o=r.size!==null;return o||(l[0]!==null?i=Math.max(f[2]-Math.max(p[1],p[3]),t):(i=Math.max(f[2]-p[1]-p[3],t),f[0]+=(p[3]-p[1])/2),l[1]!==null?i=A(i,t,f[2]-Math.max(p[0],p[2])):(i=A(i,t,f[2]-p[0]-p[2]),f[1]+=(p[0]-p[2])/2),i<f[2]?(f[2]=i,f[3]=Math.min(r.thickness?Math.max(0,i-2*r.thickness):Math.max(0,g(r.innerSize||0,i)),i),this.translate(f),this.drawDataLabels&&this.drawDataLabels()):o=!0),o}m.compose=function(p){if(G.compose(I),u.indexOf(p)===-1){u.push(p);var f=p.prototype;f.dataLabelPositioners=v,f.alignDataLabel=V,f.drawDataLabels=w,f.placeDataLabels=M,f.verifyDataLabelOverflow=C}}}(Z||(Z={})),Z}),et(_,"Extensions/OverlappingDataLabels.js",[_["Core/Chart/Chart.js"],_["Core/Utilities.js"]],function(G,B){var H=B.addEvent,U=B.fireEvent,$=B.isArray,Z=B.isNumber,V=B.objectEach,F=B.pick;function I(E,A){var P,y,c=!1;return E&&(y=E.newOpacity,E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=function(){A.styledMode||E.css({pointerEvents:y?"auto":"none"})},c=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,P),U(A,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0),c}H(G,"render",function(){var E=this,A=[];(this.labelCollectors||[]).forEach(function(P){A=A.concat(P())}),(this.yAxis||[]).forEach(function(P){P.stacking&&P.options.stackLabels&&!P.options.stackLabels.allowOverlap&&V(P.stacking.stacks,function(y){V(y,function(c){c.label&&A.push(c.label)})})}),(this.series||[]).forEach(function(P){var y=P.options.dataLabels;if(P.visible&&(y.enabled!==!1||P._hasPointLabels)){var c=function(g){return g.forEach(function(m){m.visible&&($(m.dataLabels)?m.dataLabels:m.dataLabel?[m.dataLabel]:[]).forEach(function(u){var v=u.options;u.labelrank=F(v.labelrank,m.labelrank,m.shapeArgs&&m.shapeArgs.height),v.allowOverlap?(u.oldOpacity=u.opacity,u.newOpacity=1,I(u,E)):A.push(u)})})};c(P.nodes||[]),c(P.points)}}),this.hideOverlappingLabels(A)}),G.prototype.hideOverlappingLabels=function(E){var A,P,y,c,g,m,u,v=this,w=E.length,M=v.renderer,C=!1,p=function(r,l){return!(l.x>=r.x+r.width||l.x+l.width<=r.x||l.y>=r.y+r.height||l.y+l.height<=r.y)},f=function(r){var l,t,i,o,e,a=r.box?0:r.padding||0,s=0,h=0;if(r&&(!r.alignAttr||r.placed))return l=r.alignAttr||{x:r.attr("x"),y:r.attr("y")},t=r.parentGroup,r.width||(i=r.getBBox(),r.width=i.width,r.height=i.height,s=M.fontMetrics(null,r.element).h),o=r.width-2*a,(e={left:"0",center:"0.5",right:"1"}[r.alignValue])?h=+e*o:Z(r.x)&&Math.round(r.x)!==r.translateX&&(h=r.x-r.translateX),{x:l.x+(t.translateX||0)+a-(h||0),y:l.y+(t.translateY||0)+a-s,width:r.width-2*a,height:r.height-2*a}};for(P=0;P<w;P++)(A=E[P])&&(A.oldOpacity=A.opacity,A.newOpacity=1,A.absoluteBox=f(A));for(E.sort(function(r,l){return(l.labelrank||0)-(r.labelrank||0)}),P=0;P<w;P++)for(m=(c=E[P])&&c.absoluteBox,y=P+1;y<w;++y)u=(g=E[y])&&g.absoluteBox,m&&u&&c!==g&&c.newOpacity!==0&&g.newOpacity!==0&&c.visibility!=="hidden"&&g.visibility!=="hidden"&&p(m,u)&&((c.labelrank<g.labelrank?c:g).newOpacity=0);E.forEach(function(r){I(r,v)&&(C=!0)}),C&&U(v,"afterHideAllOverlappingLabels")}}),et(_,"Core/Responsive.js",[_["Core/Utilities.js"]],function(G){var B,H=G.extend,U=G.find,$=G.isArray,Z=G.isObject,V=G.merge,F=G.objectEach,I=G.pick,E=G.splat,A=G.uniqueKey;return function(P){var y=[];P.compose=function(g){return y.indexOf(g)===-1&&(y.push(g),H(g.prototype,c.prototype)),g};var c=function(){function g(){}return g.prototype.currentOptions=function(m){var u=this,v={};return function w(M,C,p,f){var r;F(M,function(l,t){if(!f&&u.collectionsWithUpdate.indexOf(t)>-1&&C[t])for(l=E(l),p[t]=[],r=0;r<Math.max(l.length,C[t].length);r++)C[t][r]&&(l[r]===void 0?p[t][r]=C[t][r]:(p[t][r]={},w(l[r],C[t][r],p[t][r],f+1)));else Z(l)?(p[t]=$(l)?[]:{},w(l,C[t]||{},p[t],f+1)):C[t]===void 0?p[t]=null:p[t]=C[t]})}(m,this.options,v,0),v},g.prototype.matchResponsiveRule=function(m,u){var v=m.condition;(v.callback||function(){return this.chartWidth<=I(v.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=I(v.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=I(v.minWidth,0)&&this.chartHeight>=I(v.minHeight,0)}).call(this)&&u.push(m._id)},g.prototype.setResponsive=function(m,u){var v,w=this,M=this.options.responsive,C=this.currentResponsive,p=[];!u&&M&&M.rules&&M.rules.forEach(function(l){l._id===void 0&&(l._id=A()),w.matchResponsiveRule(l,p)},this);var f=V.apply(void 0,p.map(function(l){return U((M||{}).rules||[],function(t){return t._id===l})}).map(function(l){return l&&l.chartOptions}));f.isResponsiveOptions=!0,p=p.toString()||void 0;var r=C&&C.ruleIds;p!==r&&(C&&this.update(C.undoOptions,m,!0),p?((v=this.currentOptions(f)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:p,mergedOptions:f,undoOptions:v},this.update(f,m,!0)):this.currentResponsive=void 0)},g}()}(B||(B={})),B}),et(_,"masters/highcharts.src.js",[_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/Defaults.js"],_["Core/Animation/Fx.js"],_["Core/Animation/AnimationUtilities.js"],_["Core/Renderer/HTML/AST.js"],_["Core/FormatUtilities.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Renderer/HTML/HTMLElement.js"],_["Core/Renderer/HTML/HTMLRenderer.js"],_["Core/Axis/Axis.js"],_["Core/Axis/DateTimeAxis.js"],_["Core/Axis/LogarithmicAxis.js"],_["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],_["Core/Axis/Tick.js"],_["Core/Tooltip.js"],_["Core/Series/Point.js"],_["Core/Pointer.js"],_["Core/MSPointer.js"],_["Core/Legend/Legend.js"],_["Core/Chart/Chart.js"],_["Core/Axis/Stacking/StackingAxis.js"],_["Core/Axis/Stacking/StackItem.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Column/ColumnSeries.js"],_["Series/Column/ColumnDataLabel.js"],_["Series/Pie/PieSeries.js"],_["Series/Pie/PieDataLabel.js"],_["Core/Series/DataLabel.js"],_["Core/Responsive.js"],_["Core/Color/Color.js"],_["Core/Time.js"]],function(G,B,H,U,$,Z,V,F,I,E,A,P,y,c,g,m,u,v,w,M,C,p,f,r,l,t,i,o,e,a,s,h,b,k,O){var d=G;return d.animate=$.animate,d.animObject=$.animObject,d.getDeferredAnimation=$.getDeferredAnimation,d.setAnimation=$.setAnimation,d.stop=$.stop,d.timers=U.timers,d.AST=Z,d.Axis=y,d.Chart=f,d.chart=f.chart,d.Fx=U,d.Legend=p,d.PlotLineOrBand=m,d.Point=w,d.Pointer=C.isRequired()?C:M,d.Series=t,d.StackItem=l,d.SVGElement=I,d.SVGRenderer=E,d.Tick=u,d.Time=O,d.Tooltip=v,d.Color=k,d.color=k.parse,P.compose(E),A.compose(I),d.defaultOptions=H.defaultOptions,d.getOptions=H.getOptions,d.time=H.defaultTime,d.setOptions=H.setOptions,d.dateFormat=V.dateFormat,d.format=V.format,d.numberFormat=V.numberFormat,d.addEvent=B.addEvent,d.arrayMax=B.arrayMax,d.arrayMin=B.arrayMin,d.attr=B.attr,d.clearTimeout=B.clearTimeout,d.correctFloat=B.correctFloat,d.createElement=B.createElement,d.css=B.css,d.defined=B.defined,d.destroyObjectProperties=B.destroyObjectProperties,d.discardElement=B.discardElement,d.distribute=F.distribute,d.erase=B.erase,d.error=B.error,d.extend=B.extend,d.extendClass=B.extendClass,d.find=B.find,d.fireEvent=B.fireEvent,d.getMagnitude=B.getMagnitude,d.getStyle=B.getStyle,d.inArray=B.inArray,d.isArray=B.isArray,d.isClass=B.isClass,d.isDOMElement=B.isDOMElement,d.isFunction=B.isFunction,d.isNumber=B.isNumber,d.isObject=B.isObject,d.isString=B.isString,d.keys=B.keys,d.merge=B.merge,d.normalizeTickInterval=B.normalizeTickInterval,d.objectEach=B.objectEach,d.offset=B.offset,d.pad=B.pad,d.pick=B.pick,d.pInt=B.pInt,d.relativeLength=B.relativeLength,d.removeEvent=B.removeEvent,d.seriesType=i.seriesType,d.splat=B.splat,d.stableSort=B.stableSort,d.syncTimeout=B.syncTimeout,d.timeUnits=B.timeUnits,d.uniqueKey=B.uniqueKey,d.useSerialIds=B.useSerialIds,d.wrap=B.wrap,e.compose(o),h.compose(t),c.compose(y),g.compose(y),s.compose(a),m.compose(y),b.compose(f),r.compose(y,f,t),d}),et(_,"Core/Axis/BrokenAxis.js",[_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B){var H,U=B.addEvent,$=B.find,Z=B.fireEvent,V=B.isArray,F=B.isNumber,I=B.pick;return function(E){var A=[];function P(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function y(){var C=this;C.brokenAxis&&C.brokenAxis.hasBreaks&&(C.options.ordinal=!1)}function c(){var C=this,p=C.brokenAxis;if(p&&p.hasBreaks){for(var f=C.tickPositions,r=C.tickPositions.info,l=[],t=0;t<f.length;t++)p.isInAnyBreak(f[t])||l.push(f[t]);C.tickPositions=l,C.tickPositions.info=r}}function g(){var C=this;C.brokenAxis||(C.brokenAxis=new M(C))}function m(){var C=this,p=C.isDirty,f=C.options.connectNulls,r=C.points,l=C.xAxis,t=C.yAxis;if(p)for(var i=r.length;i--;){var o=r[i],e=!(o.y===null&&f===!1)&&(l&&l.brokenAxis&&l.brokenAxis.isInAnyBreak(o.x,!0)||t&&t.brokenAxis&&t.brokenAxis.isInAnyBreak(o.y,!0));o.visible=!e&&o.options.visible!==!1}}function u(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,I(this.pointArrayMap,["y"]))}function v(C,p){var f,r,l,t,i=this,o=i.points;if(C&&C.brokenAxis&&C.brokenAxis.hasBreaks){var e=C.brokenAxis;p.forEach(function(a){f=e&&e.breakArray||[],r=C.isXAxis?C.min:I(i.options.threshold,C.min),o.forEach(function(s){t=I(s["stack"+a.toUpperCase()],s[a]),f.forEach(function(h){F(r)&&F(t)&&(l=!1,r<h.from&&t>h.to||r>h.from&&t<h.from?l="pointBreak":(r<h.from&&t>h.from&&t<h.to||r>h.from&&t>h.to&&t<h.from)&&(l="pointInBreak"),l&&Z(C,l,{point:s,brk:h}))})})})}}function w(){var C=this.currentDataGrouping,p=C&&C.gapSize,f=this.points.slice(),r=this.yAxis,l=this.options.gapSize,t=f.length-1;if(l&&t>0){this.options.gapUnit!=="value"&&(l*=this.basePointRange),p&&p>l&&p>=this.basePointRange&&(l=p);for(var i=void 0,o=void 0;t--;)if(o&&o.visible!==!1||(o=f[t+1]),i=f[t],o.visible!==!1&&i.visible!==!1){if(o.x-i.x>l){var e=(i.x+o.x)/2;f.splice(t+1,0,{isNull:!0,x:e}),r.stacking&&this.options.stacking&&((r.stacking.stacks[this.stackKey][e]=new G(r,r.options.stackLabels,!1,e,this.stack)).total=0)}o=i}}return this.getGraphPath(f)}E.compose=function(C,p){if(A.indexOf(C)===-1&&(A.push(C),C.keepProps.push("brokenAxis"),U(C,"init",g),U(C,"afterInit",P),U(C,"afterSetTickPositions",c),U(C,"afterSetOptions",y)),A.indexOf(p)===-1){A.push(p);var f=p.prototype;f.drawBreaks=v,f.gappedPath=w,U(p,"afterGeneratePoints",m),U(p,"afterRender",u)}return C};var M=function(){function C(p){this.hasBreaks=!1,this.axis=p}return C.isInBreak=function(p,f){var r=p.repeat||1/0,l=p.from,t=p.to-p.from,i=f>=l?(f-l)%r:r-(l-f)%r;return p.inclusive?i<=t:i<t&&i!==0},C.lin2Val=function(p){var f=this.brokenAxis,r=f&&f.breakArray;if(!r||!F(p))return p;var l,t,i=p;for(t=0;t<r.length&&!((l=r[t]).from>=i);t++)(l.to<i||C.isInBreak(l,i))&&(i+=l.len);return i},C.val2Lin=function(p){var f=this.brokenAxis,r=f&&f.breakArray;if(!r||!F(p))return p;var l,t,i=p;for(t=0;t<r.length;t++)if((l=r[t]).to<=p)i-=l.len;else{if(l.from>=p)break;if(C.isInBreak(l,p)){i-=p-l.from;break}}return i},C.prototype.findBreakAt=function(p,f){return $(f,function(r){return r.from<p&&p<r.to})},C.prototype.isInAnyBreak=function(p,f){var r,l,t,i=this.axis,o=i.options.breaks||[],e=o.length;if(e&&F(p)){for(;e--;)C.isInBreak(o[e],p)&&(r=!0,l||(l=I(o[e].showPoints,!i.isXAxis)));t=r&&f?r&&!l:r}return t},C.prototype.setBreaks=function(p,f){var r=this,l=r.axis,t=V(p)&&!!p.length;l.isDirty=r.hasBreaks!==t,r.hasBreaks=t,l.options.breaks=l.userOptions.breaks=p,l.forceRedraw=!0,l.series.forEach(function(i){i.isDirty=!0}),t||l.val2lin!==C.val2Lin||(delete l.val2lin,delete l.lin2val),t&&(l.userOptions.ordinal=!1,l.lin2val=C.lin2Val,l.val2lin=C.val2Lin,l.setExtremes=function(i,o,e,a,s){if(r.hasBreaks){for(var h=this.options.breaks||[],b=void 0;b=r.findBreakAt(i,h);)i=b.to;for(;b=r.findBreakAt(o,h);)o=b.from;o<i&&(o=i)}l.constructor.prototype.setExtremes.call(this,i,o,e,a,s)},l.setAxisTranslation=function(){if(l.constructor.prototype.setAxisTranslation.call(this),r.unitLength=void 0,r.hasBreaks){var i,o,e,a,s=l.options.breaks||[],h=[],b=[],k=I(l.pointRangePadding,0),O=0,d=l.userMin||l.min,x=l.userMax||l.max;s.forEach(function(T){o=T.repeat||1/0,F(d)&&F(x)&&(C.isInBreak(T,d)&&(d+=T.to%o-d%o),C.isInBreak(T,x)&&(x-=x%o-T.from%o))}),s.forEach(function(T){if(e=T.from,o=T.repeat||1/0,F(d)&&F(x)){for(;e-o>d;)e-=o;for(;e<d;)e+=o;for(a=e;a<x;a+=o)h.push({value:a,move:"in"}),h.push({value:a+T.to-T.from,move:"out",size:T.breakSize})}}),h.sort(function(T,N){return T.value===N.value?(T.move==="in"?0:1)-(N.move==="in"?0:1):T.value-N.value}),i=0,e=d,h.forEach(function(T){(i+=T.move==="in"?1:-1)===1&&T.move==="in"&&(e=T.value),i===0&&F(e)&&(b.push({from:e,to:T.value,len:T.value-e-(T.size||0)}),O+=T.value-e-(T.size||0))}),r.breakArray=b,F(d)&&F(x)&&F(l.min)&&(r.unitLength=x-d-O+k,Z(l,"afterBreaks"),l.staticScale?l.transA=l.staticScale:r.unitLength&&(l.transA*=(x-l.min+k)/r.unitLength),k&&(l.minPixelPadding=l.transA*(l.minPointOffset||0)),l.min=d,l.max=x)}}),I(f,!0)&&l.chart.redraw()},C}();E.Additions=M}(H||(H={})),H}),et(_,"masters/modules/broken-axis.src.js",[_["Core/Globals.js"],_["Core/Axis/BrokenAxis.js"]],function(G,B){var H=G;B.compose(H.Axis,H.Series)}),et(_,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),et(_,"Extensions/DataGrouping/ApproximationDefaults.js",[_["Extensions/DataGrouping/ApproximationRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H=B.arrayMax,U=B.arrayMin,$=B.correctFloat,Z=B.extend,V=B.isNumber;function F(A){var P=A.length,y=I(A);return V(y)&&P&&(y=$(y/P)),y}function I(A){var P,y=A.length;if(!y&&A.hasNulls)P=null;else if(y)for(P=0;y--;)P+=A[y];return P}var E={average:F,averages:function(){var A=[];return[].forEach.call(arguments,function(P){A.push(F(P))}),A[0]===void 0?void 0:A},close:function(A){return A.length?A[A.length-1]:A.hasNulls?null:void 0},high:function(A){return A.length?H(A):A.hasNulls?null:void 0},hlc:function(A,P,y){if(A=G.high(A),P=G.low(P),y=G.close(y),V(A)||V(P)||V(y))return[A,P,y]},low:function(A){return A.length?U(A):A.hasNulls?null:void 0},ohlc:function(A,P,y,c){if(A=G.open(A),P=G.high(P),y=G.low(y),c=G.close(c),V(A)||V(P)||V(y)||V(c))return[A,P,y,c]},open:function(A){return A.length?A[0]:A.hasNulls?null:void 0},range:function(A,P){return A=G.low(A),P=G.high(P),V(A)||V(P)?[A,P]:A===null&&P===null?null:void 0},sum:I};return Z(G,E),E}),et(_,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}}),et(_,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[_["Extensions/DataGrouping/DataGroupingDefaults.js"],_["Core/Utilities.js"]],function(G,B){var H,U=B.addEvent,$=B.extend,Z=B.merge,V=B.pick,F=[];function I(y){var c=this,g=c.series;g.forEach(function(m){m.groupPixelWidth=void 0}),g.forEach(function(m){m.groupPixelWidth=c.getGroupPixelWidth&&c.getGroupPixelWidth(),m.groupPixelWidth&&(m.hasProcessed=!0),m.applyGrouping(!!y.hasExtremesChanged)})}function E(){for(var y,c,g=this.series,m=g.length,u=0,v=!1;m--;)(c=g[m].options.dataGrouping)&&(u=Math.max(u,V(c.groupPixelWidth,G.common.groupPixelWidth)),y=(g[m].processedXData||g[m].data).length,(g[m].groupPixelWidth||y>this.chart.plotSizeX/u||y&&c.forced)&&(v=!0));return v?u:0}function A(){this.series.forEach(function(y){y.hasProcessed=!1})}function P(y,c){var g;if(c=V(c,!0),y||(y={forced:!1,units:null}),this instanceof H)for(g=this.series.length;g--;)this.series[g].update({dataGrouping:y},!1);else this.chart.options.series.forEach(function(m){m.dataGrouping=typeof y=="boolean"?y:Z(y,m.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),c&&this.chart.redraw()}return{compose:function(y){H=y,F.indexOf(y)===-1&&(F.push(y),U(y,"afterSetScale",A),U(y,"postProcessData",I),$(y.prototype,{applyGrouping:I,getGroupPixelWidth:E,setDataGrouping:P}))}}}),et(_,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[_["Extensions/DataGrouping/ApproximationRegistry.js"],_["Extensions/DataGrouping/DataGroupingDefaults.js"],_["Core/Axis/DateTimeAxis.js"],_["Core/Defaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V=$.series.prototype,F=Z.addEvent,I=Z.defined,E=Z.error,A=Z.extend,P=Z.isNumber,y=Z.merge,c=Z.pick,g=V.generatePoints,m=[];function u(f){var r,l,t=this,i=t.chart,o=t.options.dataGrouping,e=t.allowDG!==!1&&o&&c(o.enabled,i.options.isStock),a=t.visible||!i.options.chart.ignoreHiddenSeries,s=this.currentDataGrouping,h=!1;e&&!t.requireSorting&&(t.requireSorting=h=!0);var b=function(lt,gt){return!(lt.isCartesian&&!lt.isDirty&&!lt.xAxis.isDirty&&!lt.yAxis.isDirty&&!gt)}(t,f)===!1||!e;if(h&&(t.requireSorting=!1),!b){t.destroyGroupedData();var k=o.groupAll?t.xData:t.processedXData,O=o.groupAll?t.yData:t.processedYData,d=i.plotSizeX,x=t.xAxis,T=x.options.ordinal,N=t.groupPixelWidth,z=void 0,L=void 0;if(N&&k&&k.length&&d){L=!0,t.isDirty=!0,t.points=null;var D=x.getExtremes(),j=D.min,Y=D.max,X=N*(Y-j)/d*(T&&x.ordinal&&x.ordinal.getGroupIntervalFactor(j,Y,t)||1),W=x.getTimeTicks(H.Additions.prototype.normalizeTimeTickInterval(X,o.units||B.units),Math.min(j,k[0]),Math.max(Y,k[k.length-1]),x.options.startOfWeek,k,t.closestPointRange),q=V.groupData.apply(t,[k,O,W,o.approximation]),tt=q.groupedXData,Q=q.groupedYData,nt=0;for(o&&o.smoothed&&tt.length&&(o.firstAnchor="firstPoint",o.anchor="middle",o.lastAnchor="lastPoint",E(32,!1,i,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),function(lt,gt,mt){var bt,yt=lt.options.dataGrouping,dt=lt.currentDataGrouping&<.currentDataGrouping.gapSize;if(yt&<.xData&&dt&<.groupMap){var ot=gt.length-1,at=yt.anchor,ut=c(yt.firstAnchor,at),vt=c(yt.lastAnchor,at);if(at&&at!=="start"){var Ct=dt*{middle:.5,end:1}[at];for(bt=gt.length-1;bt--&&bt>0;)gt[bt]+=Ct}if(ut&&ut!=="start"&<.xData[0]>=gt[0]){var xt=lt.groupMap[0].start,wt=lt.groupMap[0].length,Mt=void 0;P(xt)&&P(wt)&&(Mt=xt+(wt-1)),gt[0]={middle:gt[0]+.5*dt,end:gt[0]+dt,firstPoint:lt.xData[0],lastPoint:Mt&<.xData[Mt]}[ut]}if(vt&&vt!=="start"&&dt&>[ot]>=mt-dt){var At=lt.groupMap[lt.groupMap.length-1].start;gt[ot]={middle:gt[ot]+.5*dt,end:gt[ot]+dt,firstPoint:At&<.xData[At],lastPoint:lt.xData[lt.xData.length-1]}[vt]}}}(t,tt,Y),z=1;z<W.length;z++)W.info.segmentStarts&&W.info.segmentStarts.indexOf(z)!==-1||(nt=Math.max(W[z]-W[z-1],nt));(r=W.info).gapSize=nt,t.closestPointRange=W.info.totalRange,t.groupMap=q.groupMap,a&&function(lt,gt){I(gt[0])&&P(lt.min)&&P(lt.dataMin)&>[0]<lt.min&&((!I(lt.options.min)&<.min<=lt.dataMin||lt.min===lt.dataMin)&&(lt.min=Math.min(gt[0],lt.min)),lt.dataMin=Math.min(gt[0],lt.dataMin)),I(gt[gt.length-1])&&P(lt.max)&&P(lt.dataMax)&>[gt.length-1]>lt.max&&((!I(lt.options.max)&&P(lt.dataMax)&<.max>=lt.dataMax||lt.max===lt.dataMax)&&(lt.max=Math.max(gt[gt.length-1],lt.max)),lt.dataMax=Math.max(gt[gt.length-1],lt.dataMax))}(x,tt),o.groupAll&&(t.allGroupedData=Q,tt=(l=t.cropData(tt,Q,x.min,x.max,1)).xData,Q=l.yData,t.cropStart=l.start),t.processedXData=tt,t.processedYData=Q}else t.groupMap=null;t.hasGroupedData=L,t.currentDataGrouping=r,t.preventGraphAnimation=(s&&s.totalRange)!==(r&&r.totalRange)}}function v(){this.groupedData&&(this.groupedData.forEach(function(f,r){f&&(this.groupedData[r]=f.destroy?f.destroy():null)},this),this.groupedData.length=0)}function w(){g.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function M(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function C(f,r,l,t){var i,o,e,a=this,s=a.data,h=a.options&&a.options.data,b=[],k=[],O=[],d=f.length,x=!!r,T=[],N=a.pointArrayMap,z=N&&N.length,L=["x"].concat(N||["y"]),D=this.options.dataGrouping&&this.options.dataGrouping.groupAll,j=0,Y=0,X=typeof t=="function"?t:t&&G[t]?G[t]:G[a.getDGApproximation&&a.getDGApproximation()||"average"];if(z)for(var W=N.length;W--;)T.push([]);else T.push([]);for(var q=z||1,tt=0;tt<=d;tt++)if(!(f[tt]<l[0])){for(;l[j+1]!==void 0&&f[tt]>=l[j+1]||tt===d;){i=l[j],a.dataGroupInfo={start:D?Y:a.cropStart+Y,length:T[0].length},e=X.apply(a,T),a.pointClass&&!I(a.dataGroupInfo.options)&&(a.dataGroupInfo.options=y(a.pointClass.prototype.optionsToObject.call({series:a},a.options.data[a.cropStart+Y])),L.forEach(function(mt){delete a.dataGroupInfo.options[mt]})),e!==void 0&&(b.push(i),k.push(e),O.push(a.dataGroupInfo)),Y=tt;for(var Q=0;Q<q;Q++)T[Q].length=0,T[Q].hasNulls=!1;if(j+=1,tt===d)break}if(tt===d)break;if(N){var nt=a.options.dataGrouping&&a.options.dataGrouping.groupAll?tt:a.cropStart+tt,lt=s&&s[nt]||a.pointClass.prototype.applyOptions.apply({series:a},[h[nt]]),gt=void 0;for(Q=0;Q<z;Q++)gt=lt[N[Q]],P(gt)?T[Q].push(gt):gt===null&&(T[Q].hasNulls=!0)}else o=x?r[tt]:null,P(o)?T[0].push(o):o===null&&(T[0].hasNulls=!0)}return{groupedXData:b,groupedYData:k,groupMap:O}}function p(f){var r=f.options,l=this.type,t=this.chart.options.plotOptions,i=this.useCommonDataGrouping&&B.common,o=B.seriesSpecific,e=U.defaultOptions.plotOptions[l].dataGrouping;if(t&&(o[l]||i)){var a=this.chart.rangeSelector;e||(e=y(B.common,o[l])),r.dataGrouping=y(i,e,t.series&&t.series.dataGrouping,t[l].dataGrouping,this.userOptions.dataGrouping,!r.isInternal&&a&&P(a.selected)&&a.buttonOptions[a.selected].dataGrouping)}}return{compose:function(f){var r=f.prototype.pointClass;m.indexOf(r)===-1&&(m.push(r),F(r,"update",function(){if(this.dataGroup)return E(24,!1,this.series.chart),!1})),m.indexOf(f)===-1&&(m.push(f),F(f,"afterSetOptions",p),F(f,"destroy",v),A(f.prototype,{applyGrouping:u,destroyGroupedData:v,generatePoints:w,getDGApproximation:M,groupData:C}))},groupData:C}}),et(_,"Extensions/DataGrouping/DataGrouping.js",[_["Extensions/DataGrouping/DataGroupingAxisComposition.js"],_["Extensions/DataGrouping/DataGroupingDefaults.js"],_["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],_["Core/FormatUtilities.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=U.format,V=$.addEvent,F=$.extend,I=$.isNumber,E=[];function A(P){var y,c,g,m,u,v=this.chart,w=v.time,M=P.labelConfig,C=M.series,p=C.options,f=C.tooltipOptions,r=p.dataGrouping,l=C.xAxis,t=f.xDateFormat,i=f[P.isFooter?"footerFormat":"headerFormat"];l&&l.options.type==="datetime"&&r&&I(M.key)&&(c=C.currentDataGrouping,g=r.dateTimeLabelFormats||B.common.dateTimeLabelFormats,c?(m=g[c.unitName],c.count===1?t=m[0]:(t=m[1],y=m[2])):!t&&g&&l.dateTime&&(t=l.dateTime.getXDateFormat(M.x,f.dateTimeLabelFormats)),u=w.dateFormat(t,M.key),y&&(u+=w.dateFormat(y,M.key+c.totalRange-1)),C.chart.styledMode&&(i=this.styledModeFormat(i)),P.text=Z(i,{point:F(M.point,{key:u}),series:C},v),P.preventDefault())}return{compose:function(P,y,c){G.compose(P),H.compose(y),E.indexOf(c)===-1&&(E.push(c),V(c,"headerFormatter",A))},groupData:H.groupData}}),et(_,"masters/modules/datagrouping.src.js",[_["Core/Globals.js"],_["Extensions/DataGrouping/ApproximationDefaults.js"],_["Extensions/DataGrouping/ApproximationRegistry.js"],_["Extensions/DataGrouping/DataGrouping.js"]],function(G,B,H,U){var $=G;$.dataGrouping={approximationDefaults:B,approximations:H},U.compose($.Axis,$.Series,$.Tooltip)}),et(_,"Series/DataModifyComposition.js",[_["Core/Axis/Axis.js"],_["Core/Series/Point.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=B.prototype.tooltipFormatter,V=U.addEvent,F=U.arrayMax,I=U.arrayMin,E=U.correctFloat,A=U.defined,P=U.isArray,y=U.isNumber,c=U.isString,g=U.pick;return function(m){var u=[];function v(o,e,a){this.isXAxis||(this.series.forEach(function(s){o==="compare"&&typeof e!="boolean"?s.setCompare(e,!1):o!=="cumulative"||c(e)||s.setCumulative(e,!1)}),g(a,!0)&&this.chart.redraw())}function w(o){var e=this,a=e.series.chart.numberFormatter,s=function(h){o=o.replace("{point."+h+"}",(e[h]>0&&h==="change"?"+":"")+a(e[h],g(e.series.tooltipOptions.changeDecimals,2)))};return A(e.change)&&s("change"),A(e.cumulativeSum)&&s("cumulativeSum"),Z.apply(this,[o])}function M(){var o,e=this.options.compare;(e==="percent"||e==="value"||this.options.cumulative)&&(o=new i(this),e==="percent"||e==="value"?o.initCompare(e):o.initCumulative()),this.dataModify=o}function C(o){var e=o.dataExtremes,a=e.activeYData;if(this.dataModify&&e){var s=void 0;this.options.compare?s=[this.dataModify.modifyValue(e.dataMin),this.dataModify.modifyValue(e.dataMax)]:this.options.cumulative&&P(a)&&a.length>=2&&(s=i.getCumulativeExtremes(a)),s&&(e.dataMin=I(s),e.dataMax=F(s))}}function p(o,e){this.options.compare=this.userOptions.compare=o,this.update({},g(e,!0)),!this.dataModify||o!=="value"&&o!=="percent"?this.points.forEach(function(a){delete a.change}):this.dataModify.initCompare(o)}function f(){var o=this;if(o.xAxis&&o.processedYData&&o.dataModify){var e=o.processedXData,a=o.processedYData,s=a.length,h=o.options.compareStart===!0?0:1,b=-1,k=void 0;for(o.pointArrayMap&&(b=o.pointArrayMap.indexOf(o.options.pointValKey||o.pointValKey||"y")),k=0;k<s-h;k++){var O=a[k]&&b>-1?a[k][b]:a[k];if(y(O)&&O!==0&&e[k+h]>=(o.xAxis.min||0)){o.dataModify.compareValue=O;break}}}}function r(o,e){this.setModifier("compare",o,e)}function l(o,e){o=g(o,!1),this.options.cumulative=this.userOptions.cumulative=o,this.update({},g(e,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(a){delete a.cumulativeSum})}function t(o,e){this.setModifier("cumulative",o,e)}m.compose=function(o,e,a){if(u.indexOf(o)===-1){u.push(o);var s=o.prototype;s.setCompare=p,s.setCumulative=l,V(o,"afterInit",M),V(o,"afterGetExtremes",C),V(o,"afterProcessData",f)}if(u.indexOf(e)===-1){u.push(e);var h=e.prototype;h.setCompare=r,h.setModifier=v,h.setCumulative=t}return u.indexOf(a)===-1&&(u.push(a),a.prototype.tooltipFormatter=w),o};var i=function(){function o(e){this.series=e}return o.prototype.modifyValue=function(){return 0},o.getCumulativeExtremes=function(e){var a=1/0,s=-1/0;return e.reduce(function(h,b){var k=h+b;return a=Math.min(a,k,h),s=Math.max(s,k,h),k}),[a,s]},o.prototype.initCompare=function(e){this.modifyValue=function(a,s){a===null&&(a=0);var h=this.compareValue;if(a!==void 0&&h!==void 0){if(e==="value"?a-=h:a=a/h*100-(this.series.options.compareBase===100?0:100),s!==void 0){var b=this.series.points[s];b&&(b.change=a)}return a}return 0}},o.prototype.initCumulative=function(){this.modifyValue=function(e,a){if(e===null&&(e=0),e!==void 0&&a!==void 0){var s=a>0?this.series.points[a-1]:null;s&&s.cumulativeSum&&(e=E(s.cumulativeSum+e));var h=this.series.points[a];return h&&(h.cumulativeSum=e),e}return 0}},o}();m.Additions=i}($||($={})),$}),et(_,"Core/Axis/NavigatorAxisComposition.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var H=G.isTouchDevice,U=B.addEvent,$=B.correctFloat,Z=B.defined,V=B.isNumber,F=B.pick,I=[];function E(){var y=this;y.navigatorAxis||(y.navigatorAxis=new P(y))}function A(y){var c=this,g=c.chart.options,m=g.navigator,u=c.navigatorAxis,v=g.chart.zooming.pinchType,w=g.rangeSelector,M=g.chart.zooming.type;if(c.isXAxis&&(m&&m.enabled||w&&w.enabled)){if(M==="y")y.zoomed=!1;else if((!H&&M==="xy"||H&&v==="xy")&&c.options.range){var C=u.previousZoom;Z(y.newMin)?u.previousZoom=[c.min,c.max]:C&&(y.newMin=C[0],y.newMax=C[1],u.previousZoom=void 0)}}y.zoomed!==void 0&&y.preventDefault()}var P=function(){function y(c){this.axis=c}return y.compose=function(c){I.indexOf(c)===-1&&(I.push(c),c.keepProps.push("navigatorAxis"),U(c,"init",E),U(c,"zoom",A))},y.prototype.destroy=function(){this.axis=void 0},y.prototype.toFixedRange=function(c,g,m,u){var v=this.axis,w=v.chart,M=F(m,v.translate(c,!0,!v.horiz)),C=F(u,v.translate(g,!0,!v.horiz)),p=w&&w.fixedRange,f=(v.pointRange||0)/2,r=p&&(C-M)/p;return Z(m)||(M=$(M+f)),Z(u)||(C=$(C-f)),r>.7&&r<1.3&&(u?M=C-p:C=M+p),V(M)&&V(C)||(M=C=void 0),{min:M,max:C}},y}();return P}),et(_,"Stock/Navigator/NavigatorDefaults.js",[_["Core/Color/Color.js"],_["Core/Series/SeriesRegistry.js"]],function(G,B){var H=G.parse,U=B.seriesTypes;return{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:H("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:U.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),et(_,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(G,B,H,U,$){$===void 0&&($={});var Z=$.width?$.width/2:H,V=Math.round(Z/3)+.5;return[["M",-Z-1,.5],["L",Z,.5],["L",Z,(U=$.height||U)+.5],["L",-Z-1,U+.5],["L",-Z-1,.5],["M",-V,4],["L",-V,U-3],["M",V-1,4],["L",V-1,U-3]]}}}),et(_,"Stock/Navigator/NavigatorComposition.js",[_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Axis/NavigatorAxisComposition.js"],_["Stock/Navigator/NavigatorDefaults.js"],_["Stock/Navigator/NavigatorSymbols.js"],_["Core/Renderer/RendererRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V){var F,I=G.defaultOptions,E=G.setOptions,A=B.isTouchDevice,P=Z.getRendererType,y=V.addEvent,c=V.extend,g=V.merge,m=V.pick,u=[];function v(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function w(){var t,i,o,e,a=this.legend,s=this.navigator;s&&(i=a&&a.options,o=s.xAxis,e=s.yAxis,t=s.scrollbarHeight,this.inverted?(s.left=s.opposite?this.chartWidth-t-s.height:this.spacing[3]+t,s.top=this.plotTop+t):(s.left=m(o.left,this.plotLeft+t),s.top=s.navigatorOptions.top||this.chartHeight-s.height-t-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&i.verticalAlign==="bottom"&&i.layout!=="proximate"&&i.enabled&&!i.floating?a.legendHeight+m(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&e&&(this.inverted?o.options.left=e.options.left=s.left:o.options.top=e.options.top=s.top,o.setAxisSize(),e.setAxisSize()))}function M(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new F(this),m(t.redraw,!0)&&this.redraw(t.animation))}function C(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new F(this))}function p(){var t=this.options,i=t.navigator,o=t.rangeSelector;if((i&&i.enabled||o&&o.enabled)&&(!A&&t.chart.zooming.type==="x"||A&&t.chart.zooming.pinchType==="x"))return!1}function f(t){var i=t.navigator;if(i&&t.xAxis[0]){var o=t.xAxis[0].getExtremes();i.render(o.min,o.max)}}function r(t){var i=t.options.navigator||{},o=t.options.scrollbar||{};this.navigator||this.scroller||!i.enabled&&!o.enabled||(g(!0,this.options.navigator,i),g(!0,this.options.scrollbar,o),delete t.options.navigator,delete t.options.scrollbar)}function l(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(t,i,o,e){H.compose(t),F=o,u.indexOf(i)===-1&&(u.push(i),i.prototype.callbacks.push(f),y(i,"afterAddSeries",v),y(i,"afterSetChartSize",w),y(i,"afterUpdate",M),y(i,"beforeRender",C),y(i,"beforeShowResetZoom",p),y(i,"update",r)),u.indexOf(e)===-1&&(u.push(e),y(e,"afterUpdate",l)),u.indexOf(P)===-1&&(u.push(P),c(P().prototype.symbols,$)),u.indexOf(E)===-1&&(u.push(E),c(I,{navigator:U}))}}}),et(_,"Core/Axis/ScrollbarAxis.js",[_["Core/Utilities.js"]],function(G){var B=G.addEvent,H=G.defined,U=G.pick;return function(){function $(){}return $.compose=function(Z,V){if($.composed.indexOf(Z)!==-1)return Z;$.composed.push(Z);var F=function(I){var E=U(I.options&&I.options.min,I.min),A=U(I.options&&I.options.max,I.max);return{axisMin:E,axisMax:A,scrollMin:H(I.dataMin)?Math.min(E,I.min,I.dataMin,U(I.threshold,1/0)):E,scrollMax:H(I.dataMax)?Math.max(A,I.max,I.dataMax,U(I.threshold,-1/0)):A}};return B(Z,"afterInit",function(){var I=this;I.options&&I.options.scrollbar&&I.options.scrollbar.enabled&&(I.options.scrollbar.vertical=!I.horiz,I.options.startOnTick=I.options.endOnTick=!1,I.scrollbar=new V(I.chart.renderer,I.options.scrollbar,I.chart),B(I.scrollbar,"changed",function(E){var A,P,y=F(I),c=y.axisMin,g=y.axisMax,m=y.scrollMin,u=y.scrollMax-m;H(c)&&H(g)&&(I.horiz&&!I.reversed||!I.horiz&&I.reversed?(A=m+u*this.to,P=m+u*this.from):(A=m+u*(1-this.from),P=m+u*(1-this.to)),this.shouldUpdateExtremes(E.DOMType)?I.setExtremes(P,A,!0,E.DOMType!=="mousemove"&&E.DOMType!=="touchmove",E):this.setRange(this.from,this.to))}))}),B(Z,"afterRender",function(){var I,E,A,P=this,y=F(P),c=y.scrollMin,g=y.scrollMax,m=P.scrollbar,u=P.axisTitleMargin+(P.titleOffset||0),v=P.chart.scrollbarsOffsets,w=P.options.margin||0;if(m){if(P.horiz)P.opposite||(v[1]+=u),m.position(P.left,P.top+P.height+2+v[1]-(P.opposite?w:0),P.width,P.height),P.opposite||(v[1]+=w),I=1;else{P.opposite&&(v[0]+=u);var M;M=m.options.opposite?P.left+P.width+2+v[0]-(P.opposite?0:w):P.opposite?0:w,m.position(M,P.top,P.width,P.height),P.opposite&&(v[0]+=w),I=0}v[I]+=m.size+m.options.margin,isNaN(c)||isNaN(g)||!H(P.min)||!H(P.max)||P.min===P.max?m.setRange(0,1):(E=(P.min-c)/(g-c),A=(P.max-c)/(g-c),P.horiz&&!P.reversed||!P.horiz&&P.reversed?m.setRange(E,A):m.setRange(1-A,1-E))}}),B(Z,"afterGetOffset",function(){var I=this,E=I.scrollbar&&!I.scrollbar.options.opposite,A=I.horiz?2:E?3:1,P=I.scrollbar;P&&(I.chart.scrollbarsOffsets=[0,0],I.chart.axisOffset[A]+=P.size+P.options.margin)}),Z},$.composed=[],$}()}),et(_,"Stock/Scrollbar/ScrollbarDefaults.js",[_["Core/Globals.js"]],function(G){return{height:G.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}}),et(_,"Stock/Scrollbar/Scrollbar.js",[_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Axis/ScrollbarAxis.js"],_["Stock/Scrollbar/ScrollbarDefaults.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=G.defaultOptions,V=$.addEvent,F=$.correctFloat,I=$.defined,E=$.destroyObjectProperties,A=$.fireEvent,P=$.merge,y=$.pick,c=$.removeEvent,g=function(){function m(u,v,w){this._events=[],this.chart=void 0,this.chartX=0,this.chartY=0,this.from=0,this.group=void 0,this.options=void 0,this.renderer=void 0,this.scrollbar=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.x=0,this.y=0,this.init(u,v,w)}return m.compose=function(u){H.compose(u,m)},m.swapXY=function(u,v){return v&&u.forEach(function(w){for(var M,C=w.length,p=0;p<C;p+=2)typeof(M=w[p+1])=="number"&&(w[p+1]=w[p+2],w[p+2]=M)}),u},m.prototype.addEvents=function(){var u=this.options.inverted?[1,0]:[0,1],v=this.scrollbarButtons,w=this.scrollbarGroup.element,M=this.track.element,C=this.mouseDownHandler.bind(this),p=this.mouseMoveHandler.bind(this),f=this.mouseUpHandler.bind(this),r=[[v[u[0]].element,"click",this.buttonToMinClick.bind(this)],[v[u[1]].element,"click",this.buttonToMaxClick.bind(this)],[M,"click",this.trackClick.bind(this)],[w,"mousedown",C],[w.ownerDocument,"mousemove",p],[w.ownerDocument,"mouseup",f]];B.hasTouch&&r.push([w,"touchstart",C],[w.ownerDocument,"touchmove",p],[w.ownerDocument,"touchend",f]),r.forEach(function(l){V.apply(null,l)}),this._events=r},m.prototype.buttonToMaxClick=function(u){var v=this,w=(v.to-v.from)*y(v.options.step,.2);v.updatePosition(v.from+w,v.to+w),A(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.buttonToMinClick=function(u){var v=this,w=F(v.to-v.from)*y(v.options.step,.2);v.updatePosition(F(v.from-w),F(v.to-w)),A(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.cursorToScrollbarPosition=function(u){var v=this,w=v.options,M=w.minWidth>v.calculatedWidth?w.minWidth:0;return{chartX:(u.chartX-v.x-v.xOffset)/(v.barWidth-M),chartY:(u.chartY-v.y-v.yOffset)/(v.barWidth-M)}},m.prototype.destroy=function(){var u=this,v=u.chart.scroller;u.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(w){u[w]&&u[w].destroy&&(u[w]=u[w].destroy())}),v&&u===v.scrollbar&&(v.scrollbar=null,E(v.scrollbarButtons))},m.prototype.drawScrollbarButton=function(u){var v,w=this,M=w.renderer,C=w.scrollbarButtons,p=w.options,f=w.size,r=M.g().add(w.group);C.push(r),v=M.rect().addClass("highcharts-scrollbar-button").add(r),w.chart.styledMode||v.attr({stroke:p.buttonBorderColor,"stroke-width":p.buttonBorderWidth,fill:p.buttonBackgroundColor}),v.attr(v.crisp({x:-.5,y:-.5,width:f+1,height:f+1,r:p.buttonBorderRadius},v.strokeWidth())),v=M.path(m.swapXY([["M",f/2+(u?-1:1),f/2-3],["L",f/2+(u?-1:1),f/2+3],["L",f/2+(u?2:-2),f/2]],p.vertical)).addClass("highcharts-scrollbar-arrow").add(C[u]),w.chart.styledMode||v.attr({fill:p.buttonArrowColor})},m.prototype.init=function(u,v,w){var M=this;M.scrollbarButtons=[],M.renderer=u,M.userOptions=v,M.options=P(U,Z.scrollbar,v),M.chart=w,M.size=y(M.options.size,M.options.height),v.enabled&&(M.render(),M.addEvents())},m.prototype.mouseDownHandler=function(u){var v=this,w=v.chart.pointer.normalize(u),M=v.cursorToScrollbarPosition(w);v.chartX=M.chartX,v.chartY=M.chartY,v.initPositions=[v.from,v.to],v.grabbedCenter=!0},m.prototype.mouseMoveHandler=function(u){var v,w=this,M=w.chart.pointer.normalize(u),C=w.options.vertical?"chartY":"chartX",p=w.initPositions||[];!w.grabbedCenter||u.touches&&u.touches[0][C]===0||(v=w.cursorToScrollbarPosition(M)[C]-w[C],w.hasDragged=!0,w.updatePosition(p[0]+v,p[1]+v),w.hasDragged&&A(w,"changed",{from:w.from,to:w.to,trigger:"scrollbar",DOMType:u.type,DOMEvent:u}))},m.prototype.mouseUpHandler=function(u){var v=this;v.hasDragged&&A(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMType:u.type,DOMEvent:u}),v.grabbedCenter=v.hasDragged=v.chartX=v.chartY=null},m.prototype.position=function(u,v,w,M){var C=this,p=C.options.vertical,f=C.rendered?"animate":"attr",r=M,l=0;C.group.show(),C.x=u,C.y=v+this.trackBorderWidth,C.width=w,C.height=M,C.xOffset=r,C.yOffset=l,p?(C.width=C.yOffset=w=l=C.size,C.xOffset=r=0,C.barWidth=M-2*w,C.x=u+=C.options.margin):(C.height=C.xOffset=M=r=C.size,C.barWidth=w-2*M,C.y=C.y+C.options.margin),C.group[f]({translateX:u,translateY:C.y}),C.track[f]({width:w,height:M}),C.scrollbarButtons[1][f]({translateX:p?0:w-r,translateY:p?M-l:0})},m.prototype.removeEvents=function(){this._events.forEach(function(u){c.apply(null,u)}),this._events.length=0},m.prototype.render=function(){var u=this,v=u.renderer,w=u.options,M=u.size,C=u.chart.styledMode,p=v.g("scrollbar").attr({zIndex:w.zIndex}).hide().add();u.group=p,u.track=v.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:w.trackBorderRadius||0,height:M,width:M}).add(p),C||u.track.attr({fill:w.trackBackgroundColor,stroke:w.trackBorderColor,"stroke-width":w.trackBorderWidth}),u.trackBorderWidth=u.track.strokeWidth(),u.track.attr({y:-this.trackBorderWidth%2/2}),u.scrollbarGroup=v.g().add(p),u.scrollbar=v.rect().addClass("highcharts-scrollbar-thumb").attr({height:M,width:M,r:w.barBorderRadius||0}).add(u.scrollbarGroup),u.scrollbarRifles=v.path(m.swapXY([["M",-3,M/4],["L",-3,2*M/3],["M",0,M/4],["L",0,2*M/3],["M",3,M/4],["L",3,2*M/3]],w.vertical)).addClass("highcharts-scrollbar-rifles").add(u.scrollbarGroup),C||(u.scrollbar.attr({fill:w.barBackgroundColor,stroke:w.barBorderColor,"stroke-width":w.barBorderWidth}),u.scrollbarRifles.attr({stroke:w.rifleColor,"stroke-width":1})),u.scrollbarStrokeWidth=u.scrollbar.strokeWidth(),u.scrollbarGroup.translate(-u.scrollbarStrokeWidth%2/2,-u.scrollbarStrokeWidth%2/2),u.drawScrollbarButton(0),u.drawScrollbarButton(1)},m.prototype.setRange=function(u,v){var w=this,M=w.options,C=M.vertical,p=M.minWidth,f=w.barWidth,r=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(I(f)){var l,t,i=f*Math.min(v,1);u=Math.max(u,0),l=Math.ceil(f*u),w.calculatedWidth=t=F(i-l),t<p&&(l=(f-p+t)*u,t=p);var o=Math.floor(l+w.xOffset+w.yOffset),e=t/2-.5;w.from=u,w.to=v,C?(w.scrollbarGroup[r]({translateY:o}),w.scrollbar[r]({height:t}),w.scrollbarRifles[r]({translateY:e}),w.scrollbarTop=o,w.scrollbarLeft=0):(w.scrollbarGroup[r]({translateX:o}),w.scrollbar[r]({width:t}),w.scrollbarRifles[r]({translateX:e}),w.scrollbarLeft=o,w.scrollbarTop=0),t<=12?w.scrollbarRifles.hide():w.scrollbarRifles.show(),M.showFull===!1&&(u<=0&&v>=1?w.group.hide():w.group.show()),w.rendered=!0}},m.prototype.shouldUpdateExtremes=function(u){return y(this.options.liveRedraw,B.svg&&!B.isTouchDevice&&!this.chart.boosted)||u==="mouseup"||u==="touchend"||!I(u)},m.prototype.trackClick=function(u){var v=this,w=v.chart.pointer.normalize(u),M=v.to-v.from,C=v.y+v.scrollbarTop,p=v.x+v.scrollbarLeft;v.options.vertical&&w.chartY>C||!v.options.vertical&&w.chartX>p?v.updatePosition(v.from+M,v.to+M):v.updatePosition(v.from-M,v.to-M),A(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:u})},m.prototype.update=function(u){this.destroy(),this.init(this.chart.renderer,P(!0,this.options,u),this.chart)},m.prototype.updatePosition=function(u,v){v>1&&(u=F(1-F(v-u)),v=1),u<0&&(v=F(v-u),u=0),this.from=u,this.to=v},m.defaultOptions=U,m}();return Z.scrollbar=P(!0,g.defaultOptions,Z.scrollbar),g}),et(_,"Stock/Navigator/Navigator.js",[_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Axis/NavigatorAxisComposition.js"],_["Stock/Navigator/NavigatorComposition.js"],_["Stock/Scrollbar/Scrollbar.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V){var F=B.defaultOptions,I=H.hasTouch,E=H.isTouchDevice,A=V.addEvent,P=V.clamp,y=V.correctFloat,c=V.defined,g=V.destroyObjectProperties,m=V.erase,u=V.extend,v=V.find,w=V.isArray,M=V.isNumber,C=V.merge,p=V.pick,f=V.removeEvent,r=V.splat;function l(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var e=[].filter.call(i,M);if(e.length)return Math[t].apply(0,e)}return function(){function t(i){this.baseSeries=void 0,this.chart=void 0,this.handles=void 0,this.height=void 0,this.left=void 0,this.navigatorEnabled=void 0,this.navigatorGroup=void 0,this.navigatorOptions=void 0,this.navigatorSeries=void 0,this.navigatorSize=void 0,this.opposite=void 0,this.outline=void 0,this.outlineHeight=void 0,this.range=void 0,this.rendered=void 0,this.shades=void 0,this.size=void 0,this.top=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zoomedMax=void 0,this.zoomedMin=void 0,this.init(i)}return t.compose=function(i,o,e){$.compose(i,o,t,e)},t.prototype.drawHandle=function(i,o,e,a){var s=this,h=s.navigatorOptions.handles.height;s.handles[o][a](e?{translateX:Math.round(s.left+s.height/2),translateY:Math.round(s.top+parseInt(i,10)+.5-h)}:{translateX:Math.round(s.left+parseInt(i,10)),translateY:Math.round(s.top+s.height/2-h/2-1)})},t.prototype.drawOutline=function(i,o,e,a){var s,h,b=this,k=b.navigatorOptions.maskInside,O=b.outline.strokeWidth(),d=O/2,x=O%2/2,T=b.outlineHeight,N=b.scrollbarHeight||0,z=b.size,L=b.left-N,D=b.top;e?(h=[["M",(L-=d)+T,D-N-x],["L",L+T,s=D+o+x],["L",L,s],["L",L,o=D+i+x],["L",L+T,o],["L",L+T,D+z+N]],k&&h.push(["M",L+T,s-d],["L",L+T,o+d])):(h=[["M",L,D+=d],["L",i+=L+N-x,D],["L",i,D+T],["L",o+=L+N-x,D+T],["L",o,D],["L",L+z+2*N,D]],k&&h.push(["M",i-d,D],["L",o+d,D])),b.outline[a]({d:h})},t.prototype.drawMasks=function(i,o,e,a){var s,h,b,k,O=this,d=O.left,x=O.top,T=O.height;e?(b=[d,d,d],k=[x,x+i,x+o],h=[T,T,T],s=[i,o-i,O.size-o]):(b=[d,d+i,d+o],k=[x,x,x],h=[i,o-i,O.size-o],s=[T,T,T]),O.shades.forEach(function(N,z){N[a]({x:b[z],y:k[z],width:h[z],height:s[z]})})},t.prototype.renderElements=function(){var i=this,o=i.navigatorOptions,e=o.maskInside,a=i.chart,s=a.inverted,h=a.renderer,b={cursor:s?"ns-resize":"ew-resize"},k=i.navigatorGroup=h.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!e,e,!e].forEach(function(T,N){var z=h.rect().addClass("highcharts-navigator-mask"+(N===1?"-inside":"-outside")).add(k);a.styledMode||(z.attr({fill:T?o.maskFill:"rgba(0,0,0,0)"}),N===1&&z.css(b)),i.shades[N]=z}),i.outline=h.path().addClass("highcharts-navigator-outline").add(k),a.styledMode||i.outline.attr({"stroke-width":o.outlineWidth,stroke:o.outlineColor}),o.handles&&o.handles.enabled){var O=o.handles,d=O.height,x=O.width;[0,1].forEach(function(T){i.handles[T]=h.symbol(O.symbols[T],-x/2-1,0,x,d,O),a.inverted&&i.handles[T].attr({rotation:90,rotationOriginX:Math.floor(-x/2),rotationOriginY:(d+x)/2}),i.handles[T].attr({zIndex:7-T}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][T]).add(k),a.styledMode||i.handles[T].attr({fill:O.backgroundColor,stroke:O.borderColor,"stroke-width":O.lineWidth}).css(b)})}},t.prototype.update=function(i){(this.series||[]).forEach(function(e){e.baseSeries&&delete e.baseSeries.navigatorSeries}),this.destroy();var o=this.chart.options;C(!0,o.navigator,i),this.init(this.chart)},t.prototype.render=function(i,o,e,a){var s,h,b,k,O,d=this,x=d.chart,T=d.xAxis,N=T.pointRange||0,z=T.navigatorAxis.fake?x.xAxis[0]:T,L=d.navigatorEnabled,D=d.rendered,j=x.inverted,Y=x.xAxis[0].minRange,X=x.xAxis[0].options.maxRange,W=d.scrollbarHeight;if(!this.hasDragged||c(e)){if(i=y(i-N/2),o=y(o+N/2),!M(i)||!M(o)){if(!D)return;e=0,a=p(T.width,z.width)}d.left=p(T.left,x.plotLeft+W+(j?x.plotWidth:0));var q=d.size=k=p(T.len,(j?x.plotHeight:x.plotWidth)-2*W);s=j?W:k+2*W,e=p(e,T.toPixels(i,!0)),a=p(a,T.toPixels(o,!0)),M(e)&&Math.abs(e)!==1/0||(e=0,a=s);var tt=T.toValue(e,!0),Q=T.toValue(a,!0),nt=Math.abs(y(Q-tt));nt<Y?this.grabbedLeft?e=T.toPixels(Q-Y-N,!0):this.grabbedRight&&(a=T.toPixels(tt+Y+N,!0)):c(X)&&y(nt-N)>X&&(this.grabbedLeft?e=T.toPixels(Q-X-N,!0):this.grabbedRight&&(a=T.toPixels(tt+X+N,!0))),d.zoomedMax=P(Math.max(e,a),0,q),d.zoomedMin=P(d.fixedWidth?d.zoomedMax-d.fixedWidth:Math.min(e,a),0,q),d.range=d.zoomedMax-d.zoomedMin,q=Math.round(d.zoomedMax);var lt=Math.round(d.zoomedMin);L&&(d.navigatorGroup.attr({visibility:"inherit"}),O=D&&!d.hasDragged?"animate":"attr",d.drawMasks(lt,q,j,O),d.drawOutline(lt,q,j,O),d.navigatorOptions.handles.enabled&&(d.drawHandle(lt,0,j,O),d.drawHandle(q,1,j,O))),d.scrollbar&&(j?(b=d.top-W,h=d.left-W+(L||!z.opposite?0:(z.titleOffset||0)+z.axisTitleMargin),W=k+2*W):(b=d.top+(L?d.height:-W),h=d.left-W),d.scrollbar.position(h,b,s,W),d.scrollbar.setRange(d.zoomedMin/(k||1),d.zoomedMax/(k||1))),d.rendered=!0}},t.prototype.addMouseEvents=function(){var i,o,e=this,a=e.chart,s=a.container,h=[];e.mouseMoveHandler=i=function(b){e.onMouseMove(b)},e.mouseUpHandler=o=function(b){e.onMouseUp(b)},(h=e.getPartsEvents("mousedown")).push(A(a.renderTo,"mousemove",i),A(s.ownerDocument,"mouseup",o)),I&&(h.push(A(a.renderTo,"touchmove",i),A(s.ownerDocument,"touchend",o)),h.concat(e.getPartsEvents("touchstart"))),e.eventsToUnbind=h,e.series&&e.series[0]&&h.push(A(e.series[0].xAxis,"foundExtremes",function(){a.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(i){var o=this,e=[];return["shades","handles"].forEach(function(a){o[a].forEach(function(s,h){e.push(A(s.element,i,function(b){o[a+"Mousedown"](b,h)}))})}),e},t.prototype.shadesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e,a,s,h,b=this,k=b.chart,O=b.xAxis,d=b.zoomedMin,x=b.size,T=b.range,N=b.left,z=i.chartX;k.inverted&&(z=i.chartY,N=b.top),o===1?(b.grabbedCenter=z,b.fixedWidth=T,b.dragOffset=z-d):(h=z-N-T/2,o===0?h=Math.max(0,h):o===2&&h+T>=x&&(h=x-T,b.reversedExtremes?(h-=T,a=b.getUnionExtremes().dataMin):e=b.getUnionExtremes().dataMax),h!==d&&(b.fixedWidth=T,s=O.navigatorAxis.toFixedRange(h,h+T,a,e),c(s.min)&&k.xAxis[0].setExtremes(Math.min(s.min,s.max),Math.max(s.min,s.max),!0,null,{trigger:"navigator"})))},t.prototype.handlesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e=this,a=e.chart,s=a.xAxis[0],h=e.reversedExtremes;o===0?(e.grabbedLeft=!0,e.otherHandlePos=e.zoomedMax,e.fixedExtreme=h?s.min:s.max):(e.grabbedRight=!0,e.otherHandlePos=e.zoomedMin,e.fixedExtreme=h?s.max:s.min),a.fixedRange=null},t.prototype.onMouseMove=function(i){var o,e=this,a=e.chart,s=e.navigatorSize,h=e.range,b=e.dragOffset,k=a.inverted,O=e.left;i.touches&&i.touches[0].pageX===0||(o=(i=a.pointer.normalize(i)).chartX,k&&(O=e.top,o=i.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,o-O,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,o-O)):e.grabbedCenter&&(e.hasDragged=!0,o<b?o=b:o>s+b-h&&(o=s+b-h),e.render(0,0,o-b,o-b+h)),e.hasDragged&&e.scrollbar&&p(e.scrollbar.options.liveRedraw,H.svg&&!E&&!this.chart.boosted)&&(i.DOMType=i.type,setTimeout(function(){e.onMouseUp(i)},0)))},t.prototype.onMouseUp=function(i){var o,e,a,s,h,b,k=this,O=k.chart,d=k.xAxis,x=k.scrollbar,T=i.DOMEvent||i,N=O.inverted,z=k.rendered&&!k.hasDragged?"animate":"attr";(!k.hasDragged||x&&x.hasDragged)&&i.trigger!=="scrollbar"||(a=k.getUnionExtremes(),k.zoomedMin===k.otherHandlePos?s=k.fixedExtreme:k.zoomedMax===k.otherHandlePos&&(h=k.fixedExtreme),k.zoomedMax===k.size&&(h=k.reversedExtremes?a.dataMin:a.dataMax),k.zoomedMin===0&&(s=k.reversedExtremes?a.dataMax:a.dataMin),b=d.navigatorAxis.toFixedRange(k.zoomedMin,k.zoomedMax,s,h),c(b.min)&&O.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,!k.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:T})),i.DOMType!=="mousemove"&&i.DOMType!=="touchmove"&&(k.grabbedLeft=k.grabbedRight=k.grabbedCenter=k.fixedWidth=k.fixedExtreme=k.otherHandlePos=k.hasDragged=k.dragOffset=null),k.navigatorEnabled&&M(k.zoomedMin)&&M(k.zoomedMax)&&(e=Math.round(k.zoomedMin),o=Math.round(k.zoomedMax),k.shades&&k.drawMasks(e,o,N,z),k.outline&&k.drawOutline(e,o,N,z),k.navigatorOptions.handles.enabled&&Object.keys(k.handles).length===k.handles.length&&(k.drawHandle(e,0,N,z),k.drawHandle(o,1,N,z)))},t.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(i){i()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var i=this.baseSeries||[];this.navigatorEnabled&&i[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&i.forEach(function(o){f(o,"updatedData",this.updatedDataHandler)},this),i[0].xAxis&&f(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.init=function(i){var o=i.options,e=o.navigator||{},a=e.enabled,s=o.scrollbar||{},h=s.enabled,b=a&&e.height||0,k=h&&s.height||0;this.handles=[],this.shades=[],this.chart=i,this.setBaseSeries(),this.height=b,this.scrollbarHeight=k,this.scrollbarEnabled=h,this.navigatorEnabled=a,this.navigatorOptions=e,this.scrollbarOptions=s,this.outlineHeight=b+k,this.opposite=p(e.opposite,!!(!a&&i.inverted));var O=this,d=O.baseSeries,x=i.xAxis.length,T=i.yAxis.length,N=d&&d[0]&&d[0].xAxis||i.xAxis[0]||{options:{}};i.isDirtyBox=!0,O.navigatorEnabled?(O.xAxis=new G(i,C({breaks:N.options.breaks,ordinal:N.options.ordinal},e.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:x,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},i.inverted?{offsets:[k,0,-k,0],width:b}:{offsets:[0,-k,0,k],height:b})),O.yAxis=new G(i,C(e.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:T,isInternal:!0,reversed:p(e.yAxis&&e.yAxis.reversed,i.yAxis[0]&&i.yAxis[0].reversed,!1),zoomEnabled:!1},i.inverted?{width:b}:{height:b})),d||e.series.data?O.updateNavigatorSeries(!1):i.series.length===0&&(O.unbindRedraw=A(i,"beforeRedraw",function(){i.series.length>0&&!O.series&&(O.setBaseSeries(),O.unbindRedraw())})),O.reversedExtremes=i.inverted&&!O.xAxis.reversed||!i.inverted&&O.xAxis.reversed,O.renderElements(),O.addMouseEvents()):(O.xAxis={chart:i,navigatorAxis:{fake:!0},translate:function(z,L){var D=i.xAxis[0],j=D.getExtremes(),Y=D.len-2*k,X=l("min",D.options.min,j.dataMin),W=l("max",D.options.max,j.dataMax)-X;return L?z*W/Y+X:Y*(z-X)/W},toPixels:function(z){return this.translate(z)},toValue:function(z){return this.translate(z,!0)}},O.xAxis.navigatorAxis.axis=O.xAxis,O.xAxis.navigatorAxis.toFixedRange=U.prototype.toFixedRange.bind(O.xAxis.navigatorAxis)),i.options.scrollbar.enabled&&(i.scrollbar=O.scrollbar=new Z(i.renderer,C(i.options.scrollbar,{margin:O.navigatorEnabled?0:10,vertical:i.inverted}),i),A(O.scrollbar,"changed",function(z){var L=O.size,D=L*this.to,j=L*this.from;O.hasDragged=O.scrollbar.hasDragged,O.render(0,0,j,D),this.shouldUpdateExtremes(z.DOMType)&&setTimeout(function(){O.onMouseUp(z)})})),O.addBaseSeriesEvents(),O.addChartEvents()},t.prototype.getUnionExtremes=function(i){var o,e=this.chart.xAxis[0],a=this.xAxis,s=a.options,h=e.options;return i&&e.dataMin===null||(o={dataMin:p(s&&s.min,l("min",h.min,e.dataMin,a.dataMin,a.min)),dataMax:p(s&&s.max,l("max",h.max,e.dataMax,a.dataMax,a.max))}),o},t.prototype.setBaseSeries=function(i,o){var e=this.chart,a=this.baseSeries=[];i=i||e.options&&e.options.navigator.baseSeries||(e.series.length?v(e.series,function(s){return!s.options.isInternal}).index:0),(e.series||[]).forEach(function(s,h){s.options.isInternal||!s.options.showInNavigator&&(h!==i&&s.options.id!==i||s.options.showInNavigator===!1)||a.push(s)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,o)},t.prototype.updateNavigatorSeries=function(i,o){var e,a,s,h=this,b=h.chart,k=h.baseSeries,O={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},d=h.series=(h.series||[]).filter(function(T){var N=T.baseSeries;return!(k.indexOf(N)<0&&(N&&(f(N,"updatedData",h.updatedDataHandler),delete N.navigatorSeries),T.chart&&T.destroy(),1))}),x=h.navigatorOptions.series;k&&k.length&&k.forEach(function(T){var N=T.navigatorSeries,z=u({color:T.color,visible:T.visible},w(x)?F.navigator.series:x);if(!N||h.navigatorOptions.adaptToUpdatedData!==!1){O.name="Navigator "+k.length,e=T.options||{},s=e.navigatorOptions||{},z.dataLabels=r(z.dataLabels),(a=C(e,O,z,s)).pointRange=p(z.pointRange,s.pointRange,F.plotOptions[a.type||"line"].pointRange);var L=s.data||z.data;h.hasNavigatorData=h.hasNavigatorData||!!L,a.data=L||e.data&&e.data.slice(0),N&&N.options?N.update(a,o):(T.navigatorSeries=b.initSeries(a),T.navigatorSeries.baseSeries=T,d.push(T.navigatorSeries))}}),(!x.data||k&&k.length)&&!w(x)||(h.hasNavigatorData=!1,(x=r(x)).forEach(function(T,N){O.name="Navigator "+(d.length+1),(a=C(F.navigator.series,{color:b.series[N]&&!b.series[N].options.isInternal&&b.series[N].color||b.options.colors[N]||b.options.colors[0]},O,T)).data=T.data,a.data&&(h.hasNavigatorData=!0,d.push(b.initSeries(a)))})),i&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var i=this,o=this,e=o.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(A(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(a){a.eventsToUnbind.push(A(a,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),a.eventsToUnbind.push(A(a,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),i.navigatorOptions.adaptToUpdatedData!==!1&&a.xAxis&&a.eventsToUnbind.push(A(a,"updatedData",i.updatedDataHandler)),a.eventsToUnbind.push(A(a,"remove",function(){this.navigatorSeries&&(m(o.series,this.navigatorSeries),c(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(i){return this.baseSeries.reduce(function(o,e){return Math.min(o,e.xData&&e.xData.length?e.xData[0]:o)},i)},t.prototype.modifyNavigatorAxisExtremes=function(){var i=this.xAxis;if(i.getExtremes!==void 0){var o=this.getUnionExtremes(!0);!o||o.dataMin===i.min&&o.dataMax===i.max||(i.min=o.dataMin,i.max=o.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var i,o,e=this,a=e.chart.navigator,s=e.getExtremes(),h=s.min,b=s.max,k=s.dataMin,O=s.dataMax,d=b-h,x=a.stickToMin,T=a.stickToMax,N=p(e.options.overscroll,0),z=a.series&&a.series[0],L=!!e.setExtremes;e.eventArgs&&e.eventArgs.trigger==="rangeSelectorButton"||(x&&(i=(o=k)+d),T&&(i=O+N,x||(o=Math.max(k,i-d,a.getBaseSeriesMin(z&&z.xData?z.xData[0]:-Number.MAX_VALUE)))),L&&(x||T)&&M(o)&&(e.min=e.userMin=o,e.max=e.userMax=i)),a.stickToMin=a.stickToMax=null},t.prototype.updatedDataHandler=function(){var i=this.chart.navigator,o=this,e=this.navigatorSeries,a=i.reversedExtremes?Math.round(i.zoomedMin)===0:Math.round(i.zoomedMax)>=Math.round(i.size);i.stickToMax=p(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,a),i.stickToMin=i.shouldStickToMin(o,i),e&&!i.hasNavigatorData&&(e.options.pointStart=o.xData[0],e.setData(o.options.data,!1,null,!1))},t.prototype.shouldStickToMin=function(i,o){var e=o.getBaseSeriesMin(i.xData[0]),a=i.xAxis,s=a.max,h=a.min,b=a.options.range;return!(!M(s)||!M(h))&&(b&&s-e>0?s-e<b:h<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(A(this.chart,"redraw",function(){var i=this.navigator,o=i&&(i.baseSeries&&i.baseSeries[0]&&i.baseSeries[0].xAxis||this.xAxis[0]);o&&i.render(o.min,o.max)}),A(this.chart,"getMargins",function(){var i=this,o=i.navigator,e=o.opposite?"plotTop":"marginBottom";i.inverted&&(e=o.opposite?"marginRight":"plotLeft"),i[e]=(i[e]||0)+(o.navigatorEnabled||!i.inverted?o.outlineHeight:0)+o.navigatorOptions.margin}))},t.prototype.destroy=function(){var i=this;this.removeEvents(),this.xAxis&&(m(this.chart.xAxis,this.xAxis),m(this.chart.axes,this.xAxis)),this.yAxis&&(m(this.chart.yAxis,this.yAxis),m(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(o){o.destroy&&o.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(o){i[o]&&i[o].destroy&&i[o].destroy(),i[o]=null}),[this.handles].forEach(function(o){g(o)})},t}()}),et(_,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}),et(_,"Stock/RangeSelector/RangeSelectorComposition.js",[_["Core/Defaults.js"],_["Stock/RangeSelector/RangeSelectorDefaults.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=G.defaultOptions,Z=G.setOptions,V=H.addEvent,F=H.defined,I=H.extend,E=H.find,A=H.isNumber,P=H.merge,y=H.pick,c=[],g=[];function m(){var r,l,t=this.range,i=t.type,o=this.max,e=this.chart.time,a=function(h,b){var k=i==="year"?"FullYear":"Month",O=new e.Date(h),d=e.get(k,O);return e.set(k,O,d+b),d===e.get(k,O)&&e.set("Date",O,0),O.getTime()-h};A(t)?(r=o-t,l=t):t&&(r=o+a(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var s=y(this.dataMin,Number.MIN_VALUE);return A(r)||(r=s),r<=s&&(r=s,l===void 0&&(l=a(r,t.count)),this.newMax=Math.min(r+l,y(this.dataMax,Number.MAX_VALUE))),A(o)?!A(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function u(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new U(this))}function v(){var r=this,l=r.axes,t=r.rangeSelector;if(t){A(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),l.forEach(function(o){o.updateNames(),o.setScale()}),r.getAxisMargins(),t.render();var i=t.options.verticalAlign;t.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0))}}function w(r){var l,t,i,o,e=r.rangeSelector,a=function(){e&&(l=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,A(l.min)&&e.render(l.min,l.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=P(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(c,function(s){return s[0]===r})||c.push([r,[V(r.xAxis[0],"afterSetExtremes",function(s){e&&e.render(s.min,s.max)}),V(r,"redraw",a)]]),a())}function M(){for(var r=0,l=c.length;r<l;++r){var t=c[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void c.splice(r,1)}}function C(){var r=this.rangeSelector;if(r){var l=r.getHeight();this.extraTopMargin&&(this.plotTop+=l),this.extraBottomMargin&&(this.marginBottom+=l)}}function p(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var l=r.options.verticalAlign;l==="bottom"?this.extraBottomMargin=!0:l!=="middle"&&(this.extraTopMargin=!0)}}function f(r){var l=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(l&&l.enabled&&!F(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new U(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){w(this);var e=l&&l.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||(e==="bottom"?this.extraBottomMargin=!0:e!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===t&&this.extraTopMargin===i||(this.isDirtyBox=!0)}}return{compose:function(r,l,t){U=t,g.indexOf(r)===-1&&(g.push(r),r.prototype.minFromRange=m),g.indexOf(l)===-1&&(g.push(l),V(l,"afterGetContainer",u),V(l,"beforeRender",v),V(l,"destroy",M),V(l,"getMargins",C),V(l,"render",p),V(l,"update",f),l.prototype.callbacks.push(w)),g.indexOf(Z)===-1&&(I($,{rangeSelector:B.rangeSelector}),I($.lang,B.lang))}}}),et(_,"Stock/RangeSelector/RangeSelector.js",[_["Core/Axis/Axis.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Stock/RangeSelector/RangeSelectorComposition.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V=B.defaultOptions,F=Z.addEvent,I=Z.createElement,E=Z.css,A=Z.defined,P=Z.destroyObjectProperties,y=Z.discardElement,c=Z.extend,g=Z.fireEvent,m=Z.isNumber,u=Z.merge,v=Z.objectEach,w=Z.pad,M=Z.pick,C=Z.pInt,p=Z.splat,f=function(){function r(l){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=l,this.init(l)}return r.compose=function(l,t){U.compose(l,t,r)},r.prototype.clickButton=function(l,t){var i,o,e,a,s,h,b,k=this,O=k.chart,d=k.buttonOptions[l],x=O.xAxis[0],T=O.scroller&&O.scroller.getUnionExtremes()||x||{},N=d.type,z=d.dataGrouping,L=T.dataMin,D=T.dataMax,j=x&&Math.round(Math.min(x.max,M(D,x.max))),Y=d._range,X=!0;if(L!==null&&D!==null){if(O.fixedRange=Y,k.setSelected(l),z&&(this.forcedDataGrouping=!0,G.prototype.setDataGrouping.call(x||{chart:this.chart},z,!1),this.frozenStates=d.preserveDataGrouping),N==="month"||N==="year")x?(h={range:d,max:j,chart:O,dataMin:L,dataMax:D},i=x.minFromRange.call(h),m(h.newMax)&&(j=h.newMax),X=!1):Y=d;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,D),X=!1;else if(N==="ytd"){if(!x)return void(k.deferredYTDClick=l);D!==void 0&&L!==void 0||(L=Number.MAX_VALUE,D=Number.MIN_VALUE,O.series.forEach(function(W){var q=W.xData;q&&(L=Math.min(q[0],L),D=Math.max(q[q.length-1],D))}),t=!1),i=e=(b=k.getYTDExtremes(D,L,O.time.useUTC)).min,j=b.max}else N==="all"&&x&&(O.navigator&&O.navigator.baseSeries[0]&&(O.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=D);X&&d._offsetMin&&A(i)&&(i+=d._offsetMin),d._offsetMax&&A(j)&&(j+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=l+1),x?x.setExtremes(i,j,M(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}):(o=p(O.options.xAxis)[0],s=o.range,o.range=Y,a=o.min,o.min=e,F(O,"load",function(){o.range=s,o.min=a})),g(this,"afterBtnClick")}},r.prototype.setSelected=function(l){this.selected=this.options.selected=l},r.prototype.init=function(l){var t=this,i=l.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,a=function(){var s=t.minInput,h=t.maxInput;s&&s.blur&&g(s,"blur"),h&&h.blur&&g(h,"blur")};t.chart=l,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(F(l.container,"mousedown",a)),this.eventsToUnbind.push(F(l,"resize",a)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(F(l,"load",function(){l.xAxis&&l.xAxis[0]&&F(l.xAxis[0],"setExtremes",function(s){this.max-this.min!==l.fixedRange&&s.trigger!=="rangeSelectorButton"&&s.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var l=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),a=!o.hasVisibleSeries,s=864e5,h=t.scroller&&t.scroller.getUnionExtremes()||o,b=h.dataMin,k=h.dataMax,O=l.getYTDExtremes(k,b,t.time.useUTC),d=O.min,x=O.max,T=l.selected,N=l.options.allButtonsEnabled,z=l.buttons,L=m(T);l.buttonOptions.forEach(function(D,j){var Y=D._range,X=D.type,W=D.count||1,q=z[j],tt=D._offsetMax-D._offsetMin,Q=j===T,nt=Y>k-b,lt=Y<o.minRange,gt=0,mt=!1,bt=!1,yt=Y===e;(X==="month"||X==="year")&&e+36e5>={month:28,year:365}[X]*s*W-tt&&e-36e5<={month:31,year:366}[X]*s*W+tt?yt=!0:X==="ytd"?(yt=x-d+tt===e,mt=!Q):X==="all"&&(yt=o.max-o.min>=k-b,bt=!Q&&L&&yt);var dt=!N&&(nt||lt||bt||a),ot=Q&&yt||yt&&!L&&!mt||Q&&l.frozenStates;dt?gt=3:ot&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=dt,gt===2&&(i.selectedIndex=j+1)),gt===0&&T===j&&l.setSelected())})},r.prototype.computeButtonRange=function(l){var t=l.type,i=l.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?l._range=o[t]*i:t!=="month"&&t!=="year"||(l._range=24*{month:30,year:365}[t]*36e5*i),l._offsetMin=M(l.offsetMin,0),l._offsetMax=M(l.offsetMax,0),l._range+=l._offsetMax-l._offsetMin},r.prototype.getInputValue=function(l){var t=l==="min"?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return t?(t.type==="text"&&i.inputDateParser||this.defaultInputDateParser)(t.value,o.useUTC,o):0},r.prototype.setInputValue=function(l,t){var i=this.options,o=this.chart.time,e=l==="min"?this.minInput:this.maxInput,a=l==="min"?this.minDateBox:this.maxDateBox;if(e){var s=e.getAttribute("data-hc-time"),h=A(s)?Number(s):void 0;if(A(t)){var b=h;A(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),h=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,h),a&&a.attr({text:o.dateFormat(i.inputDateFormat,h)})}},r.prototype.setInputExtremes=function(l,t,i){var o=l==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],a=this.chart.time;if(e){var s=a.dateFormat(e,t);o.min!==s&&(o.min=s);var h=a.dateFormat(e,i);o.max!==h&&(o.max=h)}}},r.prototype.showInput=function(l){var t=l==="min"?this.minDateBox:this.maxDateBox,i=l==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,a=e.translateX,s=e.translateY,h=this.options.inputBoxWidth;E(i,{width:o?t.width+(h?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&h?{left:a+t.x+"px",top:s+"px"}:{left:Math.min(Math.round(t.x+a-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:s-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(l){var t=l==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(l,t,i){var o,e=l.split("/").join("-").split(" ").join("T");if(e.indexOf("T")===-1&&(e+="T00:00"),t)e+="Z";else if(H.isSafari&&(!((o=e).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){var a=new Date(e).getTimezoneOffset()/60;e+=a<=0?"+".concat(w(-a),":00"):"-".concat(w(a),":00")}var s=Date.parse(e);if(!m(s)){var h=l.split("-");s=Date.UTC(C(h[0]),C(h[1])-1,C(h[2]))}return i&&t&&m(s)&&(s+=i.getTimezoneOffset(s)),s},r.prototype.drawInput=function(l){var t=this,i=t.chart,o=t.div,e=t.inputGroup,a=this,s=i.renderer.style||{},h=i.renderer,b=i.options.rangeSelector,k=V.lang,O=l==="min";function d(){var D=a.maxInput,j=a.minInput,Y=i.xAxis[0],X=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,W=X.dataMin,q=X.dataMax,tt=a.getInputValue(l);tt!==Number(z.getAttribute("data-hc-time-previous"))&&m(tt)&&(z.setAttribute("data-hc-time-previous",tt),O&&D&&m(W)?tt>Number(D.getAttribute("data-hc-time"))?tt=void 0:tt<W&&(tt=W):j&&m(q)&&(tt<Number(j.getAttribute("data-hc-time"))?tt=void 0:tt>q&&(tt=q)),tt!==void 0&&Y.setExtremes(O?tt:Y.min,O?Y.max:tt,void 0,void 0,{trigger:"rangeSelectorInput"}))}var x=k[O?"rangeSelectorFrom":"rangeSelectorTo"]||"",T=h.label(x,0).addClass("highcharts-range-label").attr({padding:x?2:0,height:x?b.inputBoxHeight:0}).add(e),N=h.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){a.showInput(l),a[l+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var z=I("input",{name:l,className:"highcharts-range-selector"},void 0,o);z.setAttribute("type",function(D){if(D.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(X){return D.indexOf("%"+X)!==-1}),Y=["H","k","I","l","M","S"].some(function(X){return D.indexOf("%"+X)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(T.css(u(s,b.labelStyle)),N.css(u({color:"#333333"},s,b.inputStyle)),E(z,c({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:s.fontSize,fontFamily:s.fontFamily,top:"-9999em"},b.inputStyle))),z.onfocus=function(){a.showInput(l)},z.onblur=function(){z===H.doc.activeElement&&d(),a.hideInput(l),a.setInputValue(l),z.blur()};var L=!1;return z.onchange=function(){L||(d(),a.hideInput(l),z.blur())},z.onkeypress=function(D){D.keyCode===13&&d()},z.onkeydown=function(D){L=!0,D.keyCode!==38&&D.keyCode!==40||d()},z.onkeyup=function(){L=!1},{dateBox:N,input:z,label:T}},r.prototype.getPosition=function(){var l=this.chart,t=l.options.rangeSelector,i=t.verticalAlign==="top"?l.plotTop-l.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(l,t,i){var o=this.chart.time,e=new o.Date(l),a=o.get("FullYear",e),s=i?o.Date.UTC(a,0,1):+new o.Date(a,0,1),h=Math.max(t,s),b=e.getTime();return{max:Math.min(l||b,b),min:h}},r.prototype.render=function(l,t){var i=this.chart,o=i.renderer,e=i.container,a=i.options,s=a.rangeSelector,h=M(a.chart.style&&a.chart.style.zIndex,0)+1,b=s.inputEnabled,k=this.rendered;if(s.enabled!==!1){if(!k&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:h}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var O=this.drawInput("min");this.minDateBox=O.dateBox,this.minLabel=O.label,this.minInput=O.input;var d=this.drawInput("max");this.maxDateBox=d.dateBox,this.maxLabel=d.label,this.maxInput=d.input}if(b){this.setInputValue("min",l),this.setInputValue("max",t);var x=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(A(x.dataMin)&&A(x.dataMax)){var T=i.xAxis[0].minRange||0;this.setInputExtremes("min",x.dataMin,Math.min(x.dataMax,this.getInputValue("max"))-T),this.setInputExtremes("max",Math.max(x.dataMin,this.getInputValue("min"))+T,x.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(z){if(z){var L=z.getBBox().width;L&&(z.attr({x:N}),N+=L+s.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var l=this,t=this,i=t.buttons,o=t.chart,e=t.options,a=V.lang,s=o.renderer,h=u(e.buttonTheme),b=h&&h.states,k=h.width||28;delete h.width,delete h.states,this.buttonGroup=s.g("range-selector-buttons").add(this.group);var O=this.dropdown=I("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);F(O,"touchstart",function(){O.style.fontSize="16px"}),[[H.isMS?"mouseover":"mouseenter"],[H.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(d){var x=d[0],T=d[1];F(O,x,function(){var N=i[l.currentButtonIndex()];N&&g(N.element,T||x)})}),this.zoomText=s.label(a&&a.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(e.labelStyle),h["stroke-width"]=M(h["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,O),this.buttonOptions.forEach(function(d,x){I("option",{textContent:d.title||d.text},void 0,O),i[x]=s.button(d.text,0,0,function(T){var N,z=d.events&&d.events.click;z&&(N=z.call(d,T)),N!==!1&&l.clickButton(x),l.isActive=!0},h,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:k}).add(l.buttonGroup),d.title&&i[x].attr("title",d.title)})},r.prototype.alignElements=function(){var l=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,a=t.group,s=t.inputGroup,h=t.options,b=t.zoomText,k=e.options,O=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,d=h.buttonPosition,x=h.inputPosition,T=h.verticalAlign,N=function(mt,bt){return O&&l.titleCollision(e)&&T==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(O.y||0)+(O.height||0)+e.spacing[0]?-40:0},z=e.plotLeft;if(a&&d&&x){var L=d.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var D=0;b&&(D+=b.getBBox().width+5),o.forEach(function(mt,bt){D+=mt.width,bt!==o.length-1&&(D+=h.buttonSpacing)}),this.initialButtonGroupWidth=D}z-=e.spacing[3],this.updateButtonStates();var j=N(i,d);this.alignButtonGroup(j),a.placed=i.placed=e.hasLoaded}var Y=0;s&&(Y=N(s,x),x.align==="left"?L=z:x.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),s.align({y:x.y,width:s.getBBox().width,align:x.align,x:x.x+L-2},!0,e.spacingBox),s.placed=e.hasLoaded),this.handleCollision(Y),a.align({verticalAlign:T},!0,e.spacingBox);var X=a.alignAttr.translateY,W=a.getBBox().height+20,q=0;if(T==="bottom"){var tt=e.legend&&e.legend.options;q=X-(W=W+(tt&&tt.verticalAlign==="bottom"&&tt.enabled&&!tt.floating?e.legend.legendHeight+M(tt.margin,10):0)-20)-(h.floating?0:h.y)-(e.titleOffset?e.titleOffset[2]:0)-10}T==="top"?(h.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):T==="middle"&&(x.y===d.y?q=X:(x.y||d.y)&&(x.y<0||d.y<0?q-=Math.min(x.y,d.y):q=X-W)),a.translate(h.x,h.y+Math.floor(q));var Q=this,nt=Q.minInput,lt=Q.maxInput,gt=Q.dropdown;h.inputEnabled&&nt&<&&(nt.style.marginTop=a.translateY+"px",lt.style.marginTop=a.translateY+"px"),gt&&(gt.style.marginTop=a.translateY+"px")}},r.prototype.alignButtonGroup=function(l,t){var i=this,o=i.chart,e=i.options,a=i.buttonGroup,s=e.buttonPosition,h=o.plotLeft-o.spacing[3],b=s.x-o.spacing[3];s.align==="right"?b+=l-h:s.align==="center"&&(b-=h/2),a&&a.align({y:s.y,width:M(t,this.initialButtonGroupWidth),align:s.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var l=this,t=l.buttons,i=l.chart,o=l.options,e=l.zoomText,a=i.hasLoaded?"animate":"attr",s=o.buttonPosition,h=i.plotLeft,b=h;e&&e.visibility!=="hidden"&&(e[a]({x:M(h+s.x,h)}),b+=s.x+e.getBBox().width+5);for(var k=0,O=this.buttonOptions.length;k<O;++k)t[k].visibility!=="hidden"?(t[k][a]({x:b}),b+=t[k].width+o.buttonSpacing):t[k][a]({x:h})},r.prototype.handleCollision=function(l){var t=this,i=this,o=i.chart,e=i.buttonGroup,a=i.inputGroup,s=this.options,h=s.buttonPosition,b=s.dropdown,k=s.inputPosition,O=function(){var T=0;return t.buttons.forEach(function(N){var z=N.getBBox();z.width>T&&(T=z.width)}),T},d=function(T){if(a&&e){var N=a.alignAttr.translateX+a.alignOptions.x-l+a.getBBox().x+2,z=a.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+T>N&&N+z>L&&h.y<k.y+a.getBBox().height}return!1},x=function(){a&&e&&a.attr({translateX:a.alignAttr.translateX+(o.axisOffset[1]>=-l?0:-l),translateY:a.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(l),void(d(O())&&x());b==="never"&&this.expandButtons()}a&&e?k.align===h.align||d(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(l),d(O())&&x()):x():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(l):this.expandButtons())},r.prototype.collapseButtons=function(l){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,a=t.dropdown,s=t.options,h=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},k=function(x){return{text:x?x+" ▾":"▾",width:"auto",paddingLeft:M(s.buttonTheme.paddingLeft,b.padding,8),paddingRight:M(s.buttonTheme.paddingRight,b.padding,8)}};h&&h.hide();var O=!1;o.forEach(function(x,T){var N=i[T];N.state!==2?N.hide():(N.show(),N.attr(k(x.text)),O=!0)}),O||(a&&(a.selectedIndex=0),i[0].show(),i[0].attr(k(this.zoomText&&this.zoomText.textStr)));var d=s.buttonPosition.align;this.positionButtons(),d!=="right"&&d!=="center"||this.alignButtonGroup(l,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var l=this,t=l.buttons,i=l.buttonOptions,o=l.options,e=l.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(a,s){var h=t[s];h.show(),h.attr({text:a.text,width:o.buttonTheme.width||28,paddingLeft:M(o.buttonTheme.paddingLeft,"unset"),paddingRight:M(o.buttonTheme.paddingRight,"unset")}),h.state<2&&h.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var l=this.dropdown;return l&&l.selectedIndex>0?l.selectedIndex-1:0},r.prototype.showDropdown=function(){var l=this,t=l.buttonGroup,i=l.buttons,o=l.chart,e=l.dropdown;if(t&&e){var a=t.translateX,s=t.translateY,h=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+a+"px",top:s+.5+"px",width:h.width+"px",height:h.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var l=this.dropdown;l&&(E(l,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var l=this.options,t=this.group,i=l.inputPosition,o=l.buttonPosition,e=l.y,a=o.y,s=i.y,h=0;if(l.height)return l.height;this.alignElements(),h=t?t.getBBox(!0).height+13+e:0;var b=Math.min(s,a);return(s<0&&a<0||s>0&&a>0)&&(h+=Math.abs(b)),h},r.prototype.titleCollision=function(l){return!(l.options.title.text||l.options.subtitle.text)},r.prototype.update=function(l){var t=this.chart;u(!0,t.options.rangeSelector,l),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var l=this,t=l.minInput,i=l.maxInput;l.eventsToUnbind&&(l.eventsToUnbind.forEach(function(o){return o()}),l.eventsToUnbind=void 0),P(l.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(l,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof ft.HTMLElement&&y(o)),o!==r.prototype[e]&&(l[e]=null)},this)},r}();return c(f.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),f}),et(_,"Core/Axis/OrdinalAxis.js",[_["Core/Axis/Axis.js"],_["Core/Globals.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=U.addEvent,V=U.correctFloat,F=U.css,I=U.defined,E=U.error,A=U.pick,P=U.timeUnits,y=[];return function(c){function g(i,o,e,a,s,h,b){s===void 0&&(s=[]),h===void 0&&(h=0);var k,O,d,x,T,N={},z=this.options.tickPixelInterval,L=this.chart.time,D=[],j=0,Y=[],X=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!s||s.length<3||o===void 0)return L.getTimeTicks.apply(L,arguments);var W=s.length;for(k=0;k<W;k++){if(T=k&&s[k-1]>e,s[k]<o&&(j=k),k===W-1||s[k+1]-s[k]>5*h||T){if(s[k]>X){for(O=L.getTimeTicks(i,s[j],s[k],a);O.length&&O[0]<=X;)O.shift();O.length&&(X=O[O.length-1]),D.push(Y.length),Y=Y.concat(O)}j=k+1}if(T)break}if(O){if(x=O.info,b&&x.unitRange<=P.hour){for(k=Y.length-1,j=1;j<k;j++)L.dateFormat("%d",Y[j])!==L.dateFormat("%d",Y[j-1])&&(N[Y[j]]="day",d=!0);d&&(N[Y[0]]="day"),x.higherRanks=N}x.segmentStarts=D,Y.info=x}else E(12,!1,this.chart);if(b&&I(z)){for(var q=Y.length,tt=[],Q=[],nt=void 0,lt=void 0,gt=void 0,mt=void 0,bt=void 0,yt=q;yt--;)lt=this.translate(Y[yt]),gt&&(Q[yt]=gt-lt),tt[yt]=gt=lt;for(Q.sort(),(mt=Q[Math.floor(Q.length/2)])<.6*z&&(mt=null),yt=Y[q-1]>e?q-1:q,gt=void 0;yt--;)lt=tt[yt],bt=Math.abs(gt-lt),gt&&bt<.8*z&&(mt===null||bt<.8*mt)?(N[Y[yt]]&&!N[Y[yt+1]]?(nt=yt+1,gt=lt):nt=yt,Y.splice(nt,1)):gt=lt}return Y}function m(i){var o=this.ordinal.positions;if(!o)return i;var e,a=o.length-1;return i<0?i=o[0]:i>a?i=o[a]:e=i-(a=Math.floor(i)),e!==void 0&&o[a]!==void 0?o[a]+(e?e*(o[a+1]-o[a]):0):i}function u(i){var o=this,e=o.ordinal,a=o.old?o.old.min:o.min,s=o.old?o.old.transA:o.transA,h=e.positions;if(!h)return i;var b=(i-a)*s+o.minPixelPadding;if(b>0&&b<o.left+o.len||(e.extendedOrdinalPositions||(e.extendedOrdinalPositions=e.getExtendedPositions()),h=e.extendedOrdinalPositions),h&&h.length){var k=e.getIndexOfPoint(b,h),O=V(k%1);if(k>=0&&k<h.length-1){var d=h[Math.floor(k)],x=h[Math.ceil(k)]-d;return h[Math.floor(k)]+O*x}var T=h.length,N=h[0],z=h[T-1],L=(z-N)/(T-1);return k<0?N+L*k:z+L*(k-T)}return i}function v(i,o){var e=c.Additions.findIndexOf(i,o,!0);return i[e]===o?e:e+(o-i[e])/(i[e+1]-i[e])}function w(){var i=this;i.ordinal||(i.ordinal=new c.Additions(i))}function M(){var i=this;i.isXAxis&&I(i.options.overscroll)&&i.max===i.dataMax&&(!i.chart.mouseIsDown||i.isInternal)&&(!i.eventArgs||i.eventArgs&&i.eventArgs.trigger!=="navigator")&&(i.max+=i.options.overscroll,!i.isInternal&&I(i.userMin)&&(i.min+=i.options.overscroll))}function C(){var i=this;i.horiz&&!i.isDirty&&(i.isDirty=i.isOrdinal&&i.chart.navigator&&!i.chart.navigator.adaptToUpdatedData)}function p(){var i=this;i.ordinal&&(i.ordinal.beforeSetTickPositions(),i.tickInterval=i.ordinal.postProcessTickInterval(i.tickInterval))}function f(i){var o=this,e=o.xAxis[0],a=e.options.overscroll,s=i.originalEvent.chartX,h=o.options.chart.panning,b=!1;if(h&&h.type!=="y"&&e.options.ordinal&&e.series.length){var k=o.mouseDownX,O=e.getExtremes(),d=O.dataMax,x=O.min,T=O.max,N=o.hoverPoints,z=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange,L=(k-s)/(e.translationSlope*(e.ordinal.slope||z)),D=e.ordinal.getExtendedPositions(),j={ordinal:{positions:D,extendedOrdinalPositions:D}},Y=e.index2val,X=e.val2lin,W=void 0,q=void 0,tt=void 0,Q=void 0;j.ordinal.positions?Math.abs(L)>1&&(N&&N.forEach(function(nt){nt.setState()}),L<0?(tt=j,Q=e.ordinal.positions?e:j):(tt=e.ordinal.positions?e:j,Q=j),d>(q=Q.ordinal.positions)[q.length-1]&&q.push(d),o.fixedRange=T-x,(W=e.navigatorAxis.toFixedRange(void 0,void 0,Y.apply(tt,[X.apply(tt,[x,!0])+L]),Y.apply(Q,[X.apply(Q,[T,!0])+L]))).min>=Math.min(O.dataMin,x)&&W.max<=Math.max(d,T)+a&&e.setExtremes(W.min,W.max,!0,!1,{trigger:"pan"}),o.mouseDownX=s,F(o.container,{cursor:"move"})):b=!0}else b=!0;b||h&&/y/.test(h.type)?a&&(e.max=e.dataMax+a):i.preventDefault()}function r(){var i=this.xAxis;i&&i.options.ordinal&&(delete i.ordinal.index,delete i.ordinal.extendedOrdinalPositions)}function l(i,o){var e=this.ordinal,a=e.positions,s=e.slope,h=e.extendedOrdinalPositions;if(!a)return i;var b,k=a.length;if(a[0]<=i&&a[k-1]>=i)b=v(a,i);else{if(h||(h=e.getExtendedPositions&&e.getExtendedPositions(),e.extendedOrdinalPositions=h),!h||!h.length)return i;var O=h.length;s||(s=(h[O-1]-h[0])/O);var d=v(h,a[0]);b=i>=h[0]&&i<=h[O-1]?v(h,i)-d:i<h[0]?-d-(h[0]-i)/s:(i-h[O-1])/s+O-d}return o?b:s*(b||0)+e.offset}c.compose=function(i,o,e){if(y.indexOf(i)===-1){y.push(i);var a=i.prototype;a.getTimeTicks=g,a.index2val=m,a.lin2val=u,a.val2lin=l,a.ordinal2lin=a.val2lin,Z(i,"afterInit",w),Z(i,"foundExtremes",M),Z(i,"afterSetScale",C),Z(i,"initialAxisTranslation",p)}return y.indexOf(e)===-1&&(y.push(e),Z(e,"pan",f)),y.indexOf(o)===-1&&(y.push(o),Z(o,"updatedData",r)),i};var t=function(){function i(o){this.index={},this.axis=o}return i.prototype.beforeSetTickPositions=function(){var o,e,a,s,h,b,k,O=this.axis,d=O.ordinal,x=O.getExtremes(),T=x.min,N=x.max,z=O.isXAxis&&!!O.options.breaks,L=O.options.ordinal,D=O.chart.options.chart.ignoreHiddenSeries,j=[],Y=Number.MAX_VALUE,X=!1,W=!1,q=!1;if(L||z){var tt=0;if(O.series.forEach(function(Q,nt){if(e=[],nt>0&&Q.options.id!=="highcharts-navigator-series"&&Q.processedXData.length>1&&(W=tt!==Q.processedXData[1]-Q.processedXData[0]),tt=Q.processedXData[1]-Q.processedXData[0],Q.boosted&&(q=Q.boosted),(!D||Q.visible!==!1)&&(Q.takeOrdinalPosition!==!1||z)&&(j=j.concat(Q.processedXData),o=j.length,j.sort(function(lt,gt){return lt-gt}),Y=Math.min(Y,A(Q.closestPointRange,Y)),o)){for(nt=0;nt<o-1;)j[nt]!==j[nt+1]&&e.push(j[nt+1]),nt++;e[0]!==j[0]&&e.unshift(j[0]),j=e}}),W&&q&&(j.pop(),j.shift()),(o=j.length)>2){for(a=j[1]-j[0],k=o-1;k--&&!X;)j[k+1]-j[k]!==a&&(X=!0);!O.options.keepOrdinalPadding&&(j[0]-T>a||N-j[j.length-1]>a)&&(X=!0)}else O.options.overscroll&&(o===2?Y=j[1]-j[0]:o===1?(Y=O.options.overscroll,j=[j[0],j[0]+Y]):Y=d.overscrollPointsRange);X||O.forceOrdinal?(O.options.overscroll&&(d.overscrollPointsRange=Y,j=j.concat(d.getOverscrollPositions())),d.positions=j,s=O.ordinal2lin(Math.max(T,j[0]),!0),h=Math.max(O.ordinal2lin(Math.min(N,j[j.length-1]),!0),1),d.slope=b=(N-T)/(h-s),d.offset=T-s*b):(d.overscrollPointsRange=A(O.closestPointRange,d.overscrollPointsRange),d.positions=O.ordinal.slope=d.offset=void 0)}O.isOrdinal=L&&X,d.groupIntervalFactor=null},i.findIndexOf=function(o,e,a){for(var s,h=0,b=o.length-1;h<b;)o[s=Math.ceil((h+b)/2)]<=e?h=s:b=s-1;return o[h]===e||a?h:-1},i.prototype.getExtendedPositions=function(){var o,e=this,a=e.axis,s=a.constructor.prototype,h=a.chart,b=a.series[0].currentDataGrouping,k=b?b.count+b.unitName:"raw",O=a.options.overscroll,d=a.getExtremes(),x=void 0,T=e.index;return T||(T=e.index={}),T[k]||((o={series:[],chart:h,forceOrdinal:!1,getExtremes:function(){return{min:d.dataMin,max:d.dataMax+O}},getGroupPixelWidth:s.getGroupPixelWidth,getTimeTicks:s.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:s.ordinal2lin,getIndexOfPoint:s.getIndexOfPoint,val2lin:s.val2lin}).ordinal.axis=o,a.series.forEach(function(N){(x={xAxis:o,xData:N.xData.slice(),chart:h,destroyGroupedData:B.noop,getProcessedData:H.prototype.getProcessedData,applyGrouping:H.prototype.applyGrouping}).xData=x.xData.concat(e.getOverscrollPositions()),x.options={dataGrouping:b?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[b.unitName,[b.count]]]}:{enabled:!1}},o.series.push(x),N.processData.apply(x)}),x.closestPointRange!==x.basePointRange&&x.currentDataGrouping&&(o.forceOrdinal=!0),a.ordinal.beforeSetTickPositions.apply({axis:o}),T[k]=o.ordinal.positions),T[k]},i.prototype.getGroupIntervalFactor=function(o,e,a){var s,h,b=this,k=a.processedXData,O=k.length,d=[],x=b.groupIntervalFactor;if(!x){for(h=0;h<O-1;h++)d[h]=k[h+1]-k[h];d.sort(function(T,N){return T-N}),s=d[Math.floor(O/2)],o=Math.max(o,k[0]),e=Math.min(e,k[O-1]),b.groupIntervalFactor=x=O*s/(e-o)}return x},i.prototype.getIndexOfPoint=function(o,e){var a=this,s=a.axis,h=a.positions?a.positions[0]:0,b=s.series[0].points&&s.series[0].points[0]&&s.series[0].points[0].plotX||s.minPixelPadding;s.series.length>1&&s.series.forEach(function(d){d.points&&I(d.points[0])&&I(d.points[0].plotX)&&d.points[0].plotX<b&&d.points[0].plotX>=A(s.min,-1/0)&&(b=d.points[0].plotX)});var k=s.translationSlope*(a.slope||s.closestPointRange||a.overscrollPointsRange),O=(o-b)/k;return i.findIndexOf(e,h)+O},i.prototype.getOverscrollPositions=function(){var o=this.axis,e=o.options.overscroll,a=this.overscrollPointsRange,s=[],h=o.dataMax;if(I(a))for(;h<=o.dataMax+e;)h+=a,s.push(h);return s},i.prototype.postProcessTickInterval=function(o){var e=this.axis,a=this.slope;return a?e.options.breaks?e.closestPointRange||o:o/(a/e.closestPointRange):o},i}();c.Additions=t}($||($={})),$}),et(_,"Series/HLC/HLCPoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,H=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,F){V.__proto__=F}||function(V,F){for(var I in F)F.hasOwnProperty(I)&&(V[I]=F[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.close=void 0,V.high=void 0,V.low=void 0,V.options=void 0,V.plotClose=void 0,V.series=void 0,V}return H(Z,$),Z}(G.seriesTypes.column.prototype.pointClass);return U}),et(_,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),et(_,"Series/HLC/HLCSeries.js",[_["Series/HLC/HLCPoint.js"],_["Series/HLC/HLCSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(A,P){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},$(A,P)},function(A,P){function y(){this.constructor=A}$(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),V=H.seriesTypes.column,F=U.extend,I=U.merge,E=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y.yData=void 0,y}return Z(P,A),P.prototype.extendStem=function(y,c,g){var m=y[0],u=y[1];typeof m[2]=="number"&&(m[2]=Math.max(g+c,m[2])),typeof u[2]=="number"&&(u[2]=Math.min(g-c,u[2]))},P.prototype.getPointPath=function(y,c){var g=c.strokeWidth(),m=y.series,u=g%2/2,v=Math.round(y.plotX)-u,w=Math.round(y.shapeArgs.width/2),M=y.plotClose,C=[["M",v,Math.round(y.yBottom)],["L",v,Math.round(y.plotHigh)]];return y.close!==null&&(M=Math.round(y.plotClose)+u,C.push(["M",v,M],["L",v+w,M]),m.extendStem(C,g/2,M)),C},P.prototype.drawSinglePoint=function(y){var c,g=y.series,m=g.chart,u=y.graphic;y.plotY!==void 0&&(u||(y.graphic=u=m.renderer.path().add(g.group)),m.styledMode||u.attr(g.pointAttribs(y,y.selected&&"select")),c=g.getPointPath(y,u),u[u?"animate":"attr"]({d:c}).addClass(y.getClassName(),!0))},P.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},P.prototype.init=function(){A.prototype.init.apply(this,arguments),this.options.stacking=void 0},P.prototype.pointAttribs=function(y,c){var g=A.prototype.pointAttribs.call(this,y,c);return delete g.fill,g},P.prototype.toYData=function(y){return[y.high,y.low,y.close]},P.prototype.translate=function(){var y=this,c=y.yAxis,g=this.pointArrayMap&&this.pointArrayMap.slice()||[],m=g.map(function(u){return"plot".concat(u.charAt(0).toUpperCase()+u.slice(1))});m.push("yBottom"),g.push("low"),A.prototype.translate.apply(y),y.points.forEach(function(u){g.forEach(function(v,w){var M=u[v];M!==null&&(y.dataModify&&(M=y.dataModify.modifyValue(M)),u[m[w]]=c.toPixels(M,!0))}),u.tooltipPos[1]=u.plotHigh+c.pos-y.chart.plotTop})},P.defaultOptions=I(V.defaultOptions,B),P}(V);return F(E.prototype,{pointClass:G,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),H.registerSeriesType("hlc",E),E}),et(_,"Series/OHLC/OHLCPoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,H=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,F){V.__proto__=F}||function(V,F){for(var I in F)F.hasOwnProperty(I)&&(V[I]=F[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.open=void 0,V.options=void 0,V.plotOpen=void 0,V.series=void 0,V}return H(Z,$),Z.prototype.getClassName=function(){return $.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")},Z.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)},Z.prototype.resolveColor=function(){$.prototype.resolveColor.call(this),this.resolveUpColor()},Z.prototype.getZone=function(){var V=$.prototype.getZone.call(this);return this.resolveUpColor(),V},Z.prototype.applyOptions=function(){return $.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},Z}(G.seriesTypes.hlc.prototype.pointClass);return U}),et(_,"Series/OHLC/OHLCSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}}),et(_,"Series/OHLC/OHLCSeries.js",[_["Series/OHLC/OHLCPoint.js"],_["Series/OHLC/OHLCSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(g,m){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var w in v)v.hasOwnProperty(w)&&(u[w]=v[w])},$(g,m)},function(g,m){function u(){this.constructor=g}$(g,m),g.prototype=m===null?Object.create(m):(u.prototype=m.prototype,new u)}),V=H.seriesTypes.hlc,F=U.addEvent,I=U.extend,E=U.merge,A=[];function P(g){var m=g.options,u=m.dataGrouping;u&&m.useOhlcData&&m.id!=="highcharts-navigator-series"&&(u.approximation="ohlc")}function y(g){var m=g.options;m.useOhlcData&&m.id!=="highcharts-navigator-series"&&I(this,{pointValKey:c.prototype.pointValKey,pointArrayMap:c.prototype.pointArrayMap,toYData:c.prototype.toYData})}var c=function(g){function m(){var u=g!==null&&g.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return Z(m,g),m.compose=function(u){for(var v=[],w=1;w<arguments.length;w++)v[w-1]=arguments[w];A.indexOf(u)===-1&&(A.push(u),F(u,"afterSetOptions",P),F(u,"init",y))},m.prototype.getPointPath=function(u,v){var w=g.prototype.getPointPath.call(this,u,v),M=v.strokeWidth(),C=M%2/2,p=Math.round(u.plotX)-C,f=Math.round(u.shapeArgs.width/2),r=u.plotOpen;return u.open!==null&&(r=Math.round(u.plotOpen)+C,w.push(["M",p,r],["L",p-f,r]),g.prototype.extendStem.call(this,w,M/2,r)),w},m.prototype.pointAttribs=function(u,v){var w=g.prototype.pointAttribs.call(this,u,v),M=this.options;return delete w.fill,!u.options.color&&M.upColor&&u.open<u.close&&(w.stroke=M.upColor),w},m.prototype.toYData=function(u){return[u.open,u.high,u.low,u.close]},m.defaultOptions=E(V.defaultOptions,B),m}(V);return I(c.prototype,{pointClass:G,pointArrayMap:["open","high","low","close"]}),H.registerSeriesType("ohlc",c),c}),et(_,"Series/Candlestick/CandlestickSeriesDefaults.js",[_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),et(_,"Series/Candlestick/CandlestickSeries.js",[_["Series/Candlestick/CandlestickSeriesDefaults.js"],_["Core/Defaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},$(y,c)},function(y,c){function g(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),V=B.defaultOptions,F=H.seriesTypes,I=F.column,E=F.ohlc,A=U.merge,P=function(y){function c(){var g=y!==null&&y.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return Z(c,y),c.prototype.pointAttribs=function(g,m){var u=I.prototype.pointAttribs.call(this,g,m),v=this.options,w=g.open<g.close,M=v.lineColor||this.color,C=g.color||this.color;if(u["stroke-width"]=v.lineWidth,u.fill=g.options.color||w&&v.upColor||C,u.stroke=g.options.lineColor||w&&v.upLineColor||M,m){var p=v.states[m];u.fill=p.color||u.fill,u.stroke=p.lineColor||u.stroke,u["stroke-width"]=p.lineWidth||u["stroke-width"]}return u},c.prototype.drawPoints=function(){for(var g=this,m=g.points,u=g.chart,v=g.yAxis.reversed,w=0,M=m;w<M.length;w++){var C=M[w],p=C.graphic,f=void 0,r=void 0,l=void 0,t=void 0,i=void 0,o=void 0,e=void 0,a=void 0,s=void 0,h=void 0,b=!p;C.plotY!==void 0&&(p||(C.graphic=p=u.renderer.path().add(g.group)),g.chart.styledMode||p.attr(g.pointAttribs(C,C.selected&&"select")).shadow(g.options.shadow),e=p.strokeWidth()%2/2,a=Math.round(C.plotX)-e,f=C.plotOpen,r=C.plotClose,l=Math.min(f,r),t=Math.max(f,r),h=Math.round(C.shapeArgs.width/2),i=v?t!==C.yBottom:Math.round(l)!==Math.round(C.plotHigh),o=v?Math.round(l)!==Math.round(C.plotHigh):t!==C.yBottom,l=Math.round(l)+e,t=Math.round(t)+e,(s=[]).push(["M",a-h,t],["L",a-h,l],["L",a+h,l],["L",a+h,t],["Z"],["M",a,l],["L",a,i?Math.round(v?C.yBottom:C.plotHigh):l],["M",a,t],["L",a,o?Math.round(v?C.plotHigh:C.yBottom):t]),p[b?"attr":"animate"]({d:s}).addClass(C.getClassName(),!0))}},c.defaultOptions=A(E.defaultOptions,V.plotOptions,{tooltip:E.defaultOptions.tooltip},G),c}(E);return H.registerSeriesType("candlestick",P),P}),et(_,"Series/Flags/FlagsPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H,U=this&&this.__extends||(H=function(F,I){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])},H(F,I)},function(F,I){function E(){this.constructor=F}H(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=G.seriesTypes.column.prototype.pointClass,Z=B.isNumber,V=function(F){function I(){var E=F!==null&&F.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E.ttBelow=!1,E}return U(I,F),I.prototype.isValid=function(){return Z(this.y)||this.y===void 0},I.prototype.hasNewShapeType=function(){var E=this.options.shape||this.series.options.shape;return this.graphic&&E&&E!==this.graphic.symbolKey},I}($);return V}),et(_,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}}}),et(_,"Series/Flags/FlagsSymbols.js",[_["Core/Renderer/RendererRegistry.js"]],function(G){var B;return function(H){var U=[];function $(V,F,I,E,A){var P=A&&A.anchorX||V,y=A&&A.anchorY||F,c=this.circle(P-1,y-1,2,2);return c.push(["M",P,y],["L",V,F+E],["L",V,F],["L",V+I,F],["L",V+I,F+E],["L",V,F+E],["Z"]),c}function Z(V,F){V[F+"pin"]=function(I,E,A,P,y){var c,g=y&&y.anchorX,m=y&&y.anchorY;if(F==="circle"&&P>A&&(I-=Math.round((P-A)/2),A=P),c=V[F](I,E,A,P),g&&m){var u=g;if(F==="circle")u=I+A/2;else{var v=c[0],w=c[1];v[0]==="M"&&w[0]==="L"&&(u=(v[1]+w[1])/2)}var M=E>m?E:E+P;c.push(["M",u,M],["L",g,m]),c=c.concat(V.circle(g-1,m-1,2,2))}return c}}H.compose=function(V){U.indexOf(V)===-1&&(U.push(V),(I=V.prototype.symbols).flag=$,Z(I,"circle"),Z(I,"square"));var F=G.getRendererType();if(U.indexOf(F)){U.push(F);var I=V.prototype.symbols,E=F.prototype.symbols;E.circlepin=I.circlepin,E.flag=I.flag.bind(I),E.squarepin=I.squarepin}}}(B||(B={})),B}),et(_,"Series/OnSeriesComposition.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/Series.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=G.prototype,Z=B.prototype,V=H.defined,F=H.stableSort;return function(I){var E=[];function A(y){return Z.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,y)}function P(){$.translate.apply(this);var y,c,g,m,u,v,w,M=this,C=M.options,p=M.chart,f=M.points,r=C.onSeries,l=r&&p.get(r),t=l&&l.options.step,i=l&&l.points,o=p.inverted,e=M.xAxis,a=M.yAxis,s=f.length-1,h=C.onKey||"y",b=i&&i.length,k=0;if(l&&l.visible&&b)for(k=(l.pointXOffset||0)+(l.barW||0)/2,v=l.currentDataGrouping,m=i[b-1].x+(v?v.totalRange:0),F(f,function(O,d){return O.x-d.x}),h="plot"+h[0].toUpperCase()+h.substr(1);b--&&f[s]&&(g=i[b],(y=f[s]).y=g.y,!(g.x<=y.x&&g[h]!==void 0&&(y.x<=m&&(y.plotY=g[h],g.x<y.x&&!t&&(u=i[b+1])&&u[h]!==void 0&&(w=(y.x-g.x)/(u.x-g.x),y.plotY+=w*(u[h]-g[h]),y.y+=w*(u.y-g.y))),b++,--s<0))););f.forEach(function(O,d){var x;O.plotX+=k,(O.plotY===void 0||o)&&(O.plotX>=0&&O.plotX<=e.len?o?(O.plotY=e.translate(O.x,0,1,0,1),O.plotX=V(O.y)?a.translate(O.y,0,0,0,1):0):O.plotY=(e.opposite?0:M.yAxis.len)+e.offset:O.shapeArgs={}),(c=f[d-1])&&c.plotX===O.plotX&&(c.stackIndex===void 0&&(c.stackIndex=0),x=c.stackIndex+1),O.stackIndex=x}),this.onSeries=l}I.compose=function(y){if(E.indexOf(y)===-1){E.push(y);var c=y.prototype;c.getPlotBox=A,c.translate=P}return y},I.getPlotBox=A,I.translate=P}(U||(U={})),U}),et(_,"Series/Flags/FlagsSeries.js",[_["Series/Flags/FlagsPoint.js"],_["Series/Flags/FlagsSeriesDefaults.js"],_["Series/Flags/FlagsSymbols.js"],_["Core/Globals.js"],_["Series/OnSeriesComposition.js"],_["Core/Renderer/RendererUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGElement.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I){var E,A=this&&this.__extends||(E=function(f,r){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,t){l.__proto__=t}||function(l,t){for(var i in t)t.hasOwnProperty(i)&&(l[i]=t[i])},E(f,r)},function(f,r){function l(){this.constructor=f}E(f,r),f.prototype=r===null?Object.create(r):(l.prototype=r.prototype,new l)}),P=U.noop,y=Z.distribute,c=V.series,g=V.seriesTypes.column,m=I.addEvent,u=I.defined,v=I.extend,w=I.merge,M=I.objectEach,C=I.wrap,p=function(f){function r(){var l=f!==null&&f.apply(this,arguments)||this;return l.data=void 0,l.options=void 0,l.points=void 0,l}return A(r,f),r.prototype.animate=function(l){l&&this.setClip()},r.prototype.drawPoints=function(){var l,t,i,o,e,a,s,h,b,k,O,d=this,x=d.points,T=d.chart,N=T.renderer,z=T.inverted,L=d.options,D=L.y,j=d.yAxis,Y={},X=[];for(o=x.length;o--;)e=x[o],k=(z?e.plotY:e.plotX)>d.xAxis.len,l=e.plotX,s=e.stackIndex,i=e.options.shape||L.shape,(t=e.plotY)!==void 0&&(t=e.plotY+D-(s!==void 0&&s*L.stackDistance)),e.anchorX=s?void 0:e.plotX,h=s?void 0:e.plotY,O=i!=="flag",a=e.graphic,t!==void 0&&l>=0&&!k?(a&&e.hasNewShapeType()&&(a=a.destroy()),a||(a=e.graphic=N.label("",null,null,i,null,null,L.useHTML).addClass("highcharts-point").add(d.markerGroup),e.graphic.div&&(e.graphic.div.point=e),a.isNew=!0),a.attr({align:O?"center":"left",width:L.width,height:L.height,"text-align":L.textAlign}),T.styledMode||a.attr(d.pointAttribs(e)).css(w(L.style,e.style)).shadow(L.shadow),l>0&&(l-=a.strokeWidth()%2),b={y:t,anchorY:h},L.allowOverlapX&&(b.x=l,b.anchorX=e.anchorX),a.attr({text:e.options.title||L.title||"A"})[a.isNew?"attr":"animate"](b),L.allowOverlapX||(Y[e.plotX]?Y[e.plotX].size=Math.max(Y[e.plotX].size,a.width):Y[e.plotX]={align:O?.5:0,size:a.width,target:l,anchorX:l}),e.tooltipPos=[l,t+j.pos-T.plotTop]):a&&(e.graphic=a.destroy());if(!L.allowOverlapX){var W=100;M(Y,function(mt){mt.plotX=mt.anchorX,X.push(mt),W=Math.max(mt.size,W)}),y(X,z?j.len:this.xAxis.len,W);for(var q=0,tt=x;q<tt.length;q++){var Q=tt[q],nt=Q.plotX,lt=Q.graphic,gt=lt&&Y[nt];gt&<&&(u(gt.pos)?lt[lt.isNew?"attr":"animate"]({x:gt.pos+(gt.align||0)*gt.size,anchorX:Q.anchorX}).show().isNew=!1:lt.hide().isNew=!0)}}L.useHTML&&d.markerGroup&&C(d.markerGroup,"on",function(mt){return F.prototype.on.apply(mt.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},r.prototype.drawTracker=function(){var l=this.points;f.prototype.drawTracker.call(this);for(var t=function(e){var a=e.graphic;a&&(e.unbindMouseOver&&e.unbindMouseOver(),e.unbindMouseOver=m(a.element,"mouseover",function(){e.stackIndex>0&&!e.raised&&(e._y=a.y,a.attr({y:e._y-8}),e.raised=!0);for(var s=0,h=l;s<h.length;s++){var b=h[s];b!==e&&b.raised&&b.graphic&&(b.graphic.attr({y:b._y}),b.raised=!1)}}))},i=0,o=l;i<o.length;i++)t(o[i])},r.prototype.pointAttribs=function(l,t){var i=this.options,o=l&&l.color||this.color,e=i.lineColor,a=l&&l.lineWidth,s=l&&l.fillColor||i.fillColor;return t&&(s=i.states[t].fillColor,e=i.states[t].lineColor,a=i.states[t].lineWidth),{fill:s||o,stroke:e||o,"stroke-width":a||i.lineWidth||0}},r.prototype.setClip=function(){c.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},r.compose=H.compose,r.defaultOptions=w(g.defaultOptions,B),r}(g);return $.compose(p),v(p.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:G,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:P,init:c.prototype.init}),V.registerSeriesType("flags",p),p}),et(_,"Core/Chart/StockChart.js",[_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/FormatUtilities.js"],_["Core/Defaults.js"],_["Stock/Navigator/NavigatorDefaults.js"],_["Stock/RangeSelector/RangeSelectorDefaults.js"],_["Stock/Scrollbar/ScrollbarDefaults.js"],_["Core/Series/Series.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I,E){var A,P=this&&this.__extends||(A=function(o,e){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var h in s)s.hasOwnProperty(h)&&(a[h]=s[h])},A(o,e)},function(o,e){function a(){this.constructor=o}A(o,e),o.prototype=e===null?Object.create(e):(a.prototype=e.prototype,new a)}),y=H.format,c=U.getOptions,g=E.addEvent,m=E.clamp,u=E.defined,v=E.extend,w=E.find,M=E.isNumber,C=E.isString,p=E.merge,f=E.pick,r=E.splat,l=function(o){function e(){return o!==null&&o.apply(this,arguments)||this}return P(e,o),e.prototype.init=function(a,s){var h=c(),b=a.xAxis,k=a.yAxis,O=f(a.navigator&&a.navigator.enabled,$.enabled,!0);a.xAxis=a.yAxis=void 0;var d=p({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:O},scrollbar:{enabled:f(V.enabled,!0)},rangeSelector:{enabled:f(Z.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(h.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},a,{isStock:!0});a.xAxis=b,a.yAxis=k,d.xAxis=r(a.xAxis||{}).map(function(x,T){return p(t("xAxis",x),h.xAxis,h.xAxis&&h.xAxis[T],x,i("xAxis",a))}),d.yAxis=r(a.yAxis||{}).map(function(x,T){return p(t("yAxis",x),h.yAxis,h.yAxis&&h.yAxis[T],x)}),o.prototype.init.call(this,d,s)},e.prototype.createAxis=function(a,s){return s.axis=p(t(a,s.axis),s.axis,i(a,this.userOptions)),o.prototype.createAxis.call(this,a,s)},e}(B);function t(o,e){return o==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:o==="yAxis"?{labels:{y:-2},opposite:f(e.opposite,!0),showLastLabel:!(!e.categories&&e.type!=="category"),title:{text:null}}:{}}function i(o,e){if(o==="xAxis"){var a={type:"datetime",categories:void 0};return f(e.navigator&&e.navigator.enabled,$.enabled,!0)&&(a.startOnTick=!1,a.endOnTick=!1),a}return{}}return function(o){o.stockChart=function(e,a,s){return new o(e,a,s)}}(l||(l={})),g(F,"setOptions",function(o){var e;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?e={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(e={marker:{enabled:!1,radius:2}}),e&&(o.plotOptions[this.type]=p(o.plotOptions[this.type],e)))}),g(G,"autoLabelAlign",function(o){var e,a=this.chart,s=this.options,h=a._labelPanes=a._labelPanes||{},b=this.options.labels;this.chart.options.isStock&&this.coll==="yAxis"&&!h[e=s.top+","+s.height]&&b.enabled&&(b.x===15&&(b.x=0),b.align===void 0&&(b.align="right"),h[e]=this,o.align="right",o.preventDefault())}),g(G,"destroy",function(){var o=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&o._labelPanes&&o._labelPanes[e]===this&&delete o._labelPanes[e]}),g(G,"getPlotLinePath",function(o){var e,a,s,h,b,k,O,d,x,T=this,N=this.isLinked&&!this.series?this.linkedParent.series:this.series,z=T.chart,L=z.renderer,D=T.left,j=T.top,Y=[],X=[],W=o.translatedValue,q=o.value,tt=o.force;(z.options.isStock&&o.acrossPanes!==!1&&T.coll==="xAxis"||T.coll==="yAxis")&&(o.preventDefault(),O=T.coll,d=O==="xAxis"?"yAxis":"xAxis",x=T.options[d],X=M(x)?[z[d][x]]:C(x)?[z.get(x)]:N.map(function(Q){return Q[d]}),(T.isXAxis?z.yAxis:z.xAxis).forEach(function(Q){if(!u(Q.options.id)||Q.options.id.indexOf("navigator")===-1){var nt=Q.isXAxis?"yAxis":"xAxis",lt=u(Q.options[nt])?z[nt][Q.options[nt]]:z[nt][0];T===lt&&X.push(Q)}}),b=X.length?[]:[T.isXAxis?z.yAxis[0]:z.xAxis[0]],X.forEach(function(Q){b.indexOf(Q)!==-1||w(b,function(nt){return nt.pos===Q.pos&&nt.len===Q.len})||b.push(Q)}),k=f(W,T.translate(q,void 0,void 0,o.old)),M(k)&&(T.horiz?b.forEach(function(Q){var nt;a=Q.pos,h=a+Q.len,e=s=Math.round(k+T.transB),tt!=="pass"&&(e<D||e>D+T.width)&&(tt?e=s=m(e,D,D+T.width):nt=!0),nt||Y.push(["M",e,a],["L",s,h])}):b.forEach(function(Q){var nt;e=Q.pos,s=e+Q.len,a=h=Math.round(j+T.height-k),tt!=="pass"&&(a<j||a>j+T.height)&&(tt?a=h=m(a,j,j+T.height):nt=!0),nt||Y.push(["M",e,a],["L",s,h])})),o.path=Y.length>0?L.crispPolyLine(Y,o.lineWidth||1):null)}),I.prototype.crispPolyLine=function(o,e){for(var a=0;a<o.length;a+=2){var s=o[a],h=o[a+1];s[1]===h[1]&&(s[1]=h[1]=Math.round(s[1])-e%2/2),s[2]===h[2]&&(s[2]=h[2]=Math.round(s[2])+e%2/2)}return o},g(G,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),g(G,"afterDrawCrosshair",function(o){if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&M(this.min)&&M(this.max)){var e,a,s,h,b,k=this.chart,O=this.logarithmic,d=this.crosshair.label,x=this.horiz,T=this.opposite,N=this.left,z=this.top,L=this.crossLabel,D=d.format,j="",Y=this.options.tickPosition==="inside",X=this.crosshair.snap!==!1,W=0,q=o.e||this.cross&&this.cross.e,tt=o.point,Q=this.min,nt=this.max;O&&(Q=O.lin2log(Q),nt=O.lin2log(nt)),b=x?"center":T?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center",L||(L=this.crossLabel=k.renderer.label("",0,void 0,d.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(tt&&tt.series?tt.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:d.align||b,padding:f(d.padding,8),r:f(d.borderRadius,3),zIndex:2}).add(this.labelGroup),k.styledMode||L.attr({fill:d.backgroundColor||tt&&tt.series&&tt.series.color||"#666666",stroke:d.borderColor||"","stroke-width":d.borderWidth||0}).css(v({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},d.style||{}))),x?(e=X?(tt.plotX||0)+N:q.chartX,a=z+(T?0:this.height)):(e=T?this.width+N:0,a=X?(tt.plotY||0)+z:q.chartY),D||d.formatter||(this.dateTime&&(j="%b %d, %Y"),D="{value"+(j?":"+j:"")+"}");var lt=X?this.isXAxis?tt.x:tt.y:this.toValue(x?q.chartX:q.chartY),gt=tt&&tt.series?tt.series.isPointInside(tt):M(lt)&<>Q&<<nt,mt="";D?mt=y(D,{value:lt},k):d.formatter&&M(lt)&&(mt=d.formatter.call(this,lt)),L.attr({text:mt,x:e,y:a,visibility:gt?"inherit":"hidden"}),s=L.getBBox(),M(L.y)&&(x?(Y&&!T||!Y&&T)&&(a=L.y-s.height):a=L.y-s.height/2),h=x?{left:N-s.x,right:N+this.width-s.x}:{left:this.labelAlign==="left"?N:0,right:this.labelAlign==="right"?N+this.width:k.chartWidth},L.translateX<h.left&&(W=h.left-L.translateX),L.translateX+s.width>=h.right&&(W=-(L.translateX+s.width-h.right)),L.attr({x:e+W,y:a,anchorX:x?e:this.opposite?0:k.chartWidth,anchorY:x?this.opposite?k.chartHeight:0:a+s.height/2})}}),F.prototype.forceCropping=function(){var o=this.chart,e=this.options.dataGrouping;return this.allowDG!==!1&&e&&f(e.enabled,o.options.isStock)},g(B,"update",function(o){var e=o.options;"scrollbar"in e&&this.navigator&&(p(!0,this.options.scrollbar,e.scrollbar),this.navigator.update({}),delete e.scrollbar)}),l}),et(_,"masters/modules/stock.src.js",[_["Core/Globals.js"],_["Series/DataModifyComposition.js"],_["Stock/Navigator/Navigator.js"],_["Stock/RangeSelector/RangeSelector.js"],_["Stock/Scrollbar/Scrollbar.js"],_["Core/Axis/OrdinalAxis.js"],_["Series/OHLC/OHLCSeries.js"],_["Series/Flags/FlagsSeries.js"],_["Core/Chart/StockChart.js"]],function(G,B,H,U,$,Z,V,F,I){var E=G;E.Navigator=H,E.RangeSelector=U,E.Scrollbar=$,E.StockChart=E.stockChart=I.stockChart,B.compose(E.Series,E.Axis,E.Point),F.compose(E.Renderer),H.compose(E.Axis,E.Chart,E.Series),V.compose(E.Series),Z.compose(E.Axis,E.Series,E.Chart),U.compose(E.Axis,E.Chart),$.compose(E.Axis)}),et(_,"masters/highstock.src.js",[_["masters/highcharts.src.js"]],function(G){return G.product="Highstock",G}),_["masters/highstock.src.js"]._modules=_,_["masters/highstock.src.js"]},it.exports?(pt.default=pt,it.exports=ct.document?pt(ct):pt):(ht=function(){return pt(ct)}.call(rt,st,rt,it))===void 0||(it.exports=ht)},5322:(it,rt)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=function(st){var ht=st.defaultOptions,ct=ht.plotOptions,pt={fillOpacity:.2,color:null,borderColor:null},ft={fillColor:null,lineColor:null,lineWidth:2};ht.plotOptions.column.states.select=pt,ht.plotOptions.area.states.select=pt,ht.plotOptions.bar.states.select=pt,ht.plotOptions.line.states.select=pt,ht.plotOptions.spline.states.select=pt,ht.plotOptions.scatter.marker={enabled:!0,radius:4,fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1,states:{select:{fillOpacity:.85,fillColor:null,lineColor:null},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1}}},ht.plotOptions.series={states:{select:pt}},ct.area.marker.states.select=ft,ct.line.marker.states.select=ft,ct.spline.marker.states.select=ft,ct.bubble.marker.states.select={fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1},st.timeUnits.month=26784e5,st.timeUnits.year=31556952e3}},5378:(it,rt,st)=>{st.d(rt,{A:()=>ct});var ht=/^(?:0|[1-9]\d*)$/;const ct=function(pt,ft){var _=typeof pt;return!!(ft=ft==null?9007199254740991:ft)&&(_=="number"||_!="symbol"&&ht.test(pt))&&pt>-1&&pt%1==0&&pt<ft}},5436:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(123),ct=st(9600);const pt=(0,ht.A)(ct.A,"Map")},5860:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>ft});var ht=st(4044),ct=st(6956),pt=st(7313);const ft=function(_){return typeof _=="string"||!(0,ct.A)(_)&&(0,pt.A)(_)&&(0,ht.A)(_)=="[object String]"}},6096:(it,rt,st)=>{st.d(rt,{A:()=>_});var ht=st(6979);const ct=function(et,G){for(var B=et.length;B--;)if((0,ht.A)(et[B][0],G))return B;return-1};var pt=Array.prototype.splice;function ft(et){var G=-1,B=et==null?0:et.length;for(this.clear();++G<B;){var H=et[G];this.set(H[0],H[1])}}ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(et){var G=this.__data__,B=ct(G,et);return!(B<0||(B==G.length-1?G.pop():pt.call(G,B,1),--this.size,0))},ft.prototype.get=function(et){var G=this.__data__,B=ct(G,et);return B<0?void 0:G[B][1]},ft.prototype.has=function(et){return ct(this.__data__,et)>-1},ft.prototype.set=function(et,G){var B=this.__data__,H=ct(B,et);return H<0?(++this.size,B.push([et,G])):B[H][1]=G,this};const _=ft},6124:(it,rt,st)=>{st.d(rt,{A:()=>ft});var ht=st(9465),ct=st(6979),pt=Object.prototype.hasOwnProperty;const ft=function(_,et,G){var B=_[et];pt.call(_,et)&&(0,ct.A)(B,G)&&(G!==void 0||et in _)||(0,ht.A)(_,et,G)}},6236:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Core/Axis/Color/ColorAxisComposition.js",[_["Core/Color/Color.js"],_["Core/Utilities.js"]],function(G,B){var H,U=G.parse,$=B.addEvent,Z=B.extend,V=B.merge,F=B.pick,I=B.splat;return function(E){var A,P=[];function y(){var f=this,r=this.options;this.colorAxis=[],r.colorAxis&&(r.colorAxis=I(r.colorAxis),r.colorAxis.forEach(function(l,t){l.index=t,new A(f,l)}))}function c(f){var r,l,t=this,i=this.chart.colorAxis||[],o=function(a){var s=f.allItems.indexOf(a);s!==-1&&(t.destroyItem(f.allItems[s]),f.allItems.splice(s,1))},e=[];for(i.forEach(function(a){(r=a.options)&&r.showInLegend&&(r.dataClasses&&r.visible?e=e.concat(a.getDataClassLegendSymbols()):r.visible&&e.push(a),a.series.forEach(function(s){s.options.showInLegend&&!r.dataClasses||(s.options.legendType==="point"?s.points.forEach(function(h){o(h)}):o(s))}))}),l=e.length;l--;)f.allItems.unshift(e[l])}function g(f){f.visible&&f.item.legendColor&&f.item.legendItem.symbol.attr({fill:f.item.legendColor})}function m(){var f=this.chart.colorAxis;f&&f.forEach(function(r){r.update({},arguments[2])})}function u(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function v(){var f=this.axisTypes;f?f.indexOf("colorAxis")===-1&&f.push("colorAxis"):this.axisTypes=["colorAxis"]}function w(f){var r=this,l=f?"show":"hide";r.visible=r.options.visible=!!f,["graphic","dataLabel"].forEach(function(t){r[t]&&r[t][l]()}),this.series.buildKDTree()}function M(){var f=this,r=this.data.length?this.data:this.points,l=this.options.nullColor,t=this.colorAxis,i=this.colorKey;r.forEach(function(o){var e=o.getNestedProperty(i),a=o.options.color||(o.isNull||o.value===null?l:t&&e!==void 0?t.toColor(e,o):o.color||f.color);a&&o.color!==a&&(o.color=a,f.options.legendType==="point"&&o.legendItem&&o.legendItem.label&&f.chart.legend.colorizeItem(o,o.visible))})}function C(){this.elem.attr("fill",U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)}function p(){this.elem.attr("stroke",U(this.start).tweenTo(U(this.end),this.pos),void 0,!0)}E.compose=function(f,r,l,t,i){if(A||(A=f),P.indexOf(r)===-1){P.push(r);var o=r.prototype;o.collectionsWithUpdate.push("colorAxis"),o.collectionsWithInit.colorAxis=[o.addColorAxis],$(r,"afterGetAxes",y),function(a){var s=a.prototype.createAxis;a.prototype.createAxis=function(h,b){if(h!=="colorAxis")return s.apply(this,arguments);var k=new A(this,V(b.axis,{index:this[h].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(O){O.series=[]}),this.series.forEach(function(O){O.bindAxes(),O.isDirtyData=!0}),F(b.redraw,!0)&&this.redraw(b.animation),k}}(r)}if(P.indexOf(l)===-1){P.push(l);var e=l.prototype;e.fillSetter=C,e.strokeSetter=p}P.indexOf(t)===-1&&(P.push(t),$(t,"afterGetAllItems",c),$(t,"afterColorizeItem",g),$(t,"afterUpdate",m)),P.indexOf(i)===-1&&(P.push(i),Z(i.prototype,{optionalAxis:"colorAxis",translateColors:M}),Z(i.prototype.pointClass.prototype,{setVisible:w}),$(i,"afterTranslate",u,{order:1}),$(i,"bindAxes",v))},E.pointSetVisible=w}(H||(H={})),H}),et(_,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}}),et(_,"Core/Axis/Color/ColorAxis.js",[_["Core/Axis/Axis.js"],_["Core/Color/Color.js"],_["Core/Axis/Color/ColorAxisComposition.js"],_["Core/Axis/Color/ColorAxisDefaults.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F){var I,E=this&&this.__extends||(I=function(v,w){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,C){M.__proto__=C}||function(M,C){for(var p in C)C.hasOwnProperty(p)&&(M[p]=C[p])},I(v,w)},function(v,w){function M(){this.constructor=v}I(v,w),v.prototype=w===null?Object.create(w):(M.prototype=w.prototype,new M)}),A=B.parse,P=V.series,y=F.extend,c=F.isNumber,g=F.merge,m=F.pick,u=function(v){function w(M,C){var p=v.call(this,M,C)||this;return p.beforePadding=!1,p.chart=void 0,p.coll="colorAxis",p.dataClasses=void 0,p.name="",p.options=void 0,p.stops=void 0,p.visible=!0,p.init(M,C),p}return E(w,v),w.compose=function(M,C,p,f){H.compose(w,M,C,p,f)},w.prototype.init=function(M,C){var p=this,f=M.options.legend||{},r=C.layout?C.layout!=="vertical":f.layout!=="vertical",l=C.visible,t=g(w.defaultColorAxisOptions,C,{showEmpty:!1,title:null,visible:f.enabled&&l!==!1});p.coll="colorAxis",p.side=C.side||r?2:1,p.reversed=C.reversed||!r,p.opposite=!r,v.prototype.init.call(this,M,t),p.userOptions.visible=l,C.dataClasses&&p.initDataClasses(C),p.initStops(),p.horiz=r,p.zoomEnabled=!1},w.prototype.initDataClasses=function(M){var C,p=this,f=p.chart,r=p.legendItem=p.legendItem||{},l=M.dataClasses.length,t=p.options,i=0,o=f.options.chart.colorCount;p.dataClasses=C=[],r.labels=[],(M.dataClasses||[]).forEach(function(e,a){var s;e=g(e),C.push(e),!f.styledMode&&e.color||(t.dataClassColor==="category"?(f.styledMode||(s=f.options.colors,o=s.length,e.color=s[i]),e.colorIndex=i,++i===o&&(i=0)):e.color=A(t.minColor).tweenTo(A(t.maxColor),l<2?.5:a/(l-1)))})},w.prototype.hasData=function(){return!!(this.tickPositions||[]).length},w.prototype.setTickPositions=function(){if(!this.dataClasses)return v.prototype.setTickPositions.call(this)},w.prototype.initStops=function(){var M=this;M.stops=M.options.stops||[[0,M.options.minColor],[1,M.options.maxColor]],M.stops.forEach(function(C){C.color=A(C[1])})},w.prototype.setOptions=function(M){v.prototype.setOptions.call(this,M),this.options.crosshair=this.options.marker},w.prototype.setAxisSize=function(){var M,C,p,f,r=this,l=r.legendItem&&r.legendItem.symbol,t=r.chart,i=t.options.legend||{};l?(this.left=M=l.attr("x"),this.top=C=l.attr("y"),this.width=p=l.attr("width"),this.height=f=l.attr("height"),this.right=t.chartWidth-M-p,this.bottom=t.chartHeight-C-f,this.len=this.horiz?p:f,this.pos=this.horiz?M:C):this.len=(this.horiz?i.symbolWidth:i.symbolHeight)||w.defaultLegendLength},w.prototype.normalizedValue=function(M){var C=this;return C.logarithmic&&(M=C.logarithmic.log2lin(M)),1-(C.max-M)/(C.max-C.min||1)},w.prototype.toColor=function(M,C){var p,f,r,l,t,i,o=this,e=o.dataClasses,a=o.stops;if(e){for(i=e.length;i--;)if(f=(t=e[i]).from,r=t.to,(f===void 0||M>=f)&&(r===void 0||M<=r)){l=t.color,C&&(C.dataClass=i,C.colorIndex=t.colorIndex);break}}else{for(p=o.normalizedValue(M),i=a.length;i--&&!(p>a[i][0]););f=a[i]||a[i+1],p=1-((r=a[i+1]||f)[0]-p)/(r[0]-f[0]||1),l=f.color.tweenTo(r.color,p)}return l},w.prototype.getOffset=function(){var M=this,C=M.legendItem&&M.legendItem.group,p=M.chart.axisOffset[M.side];if(C){M.axisParent=C,v.prototype.getOffset.call(this);var f=this.chart.legend;f.allItems.forEach(function(r){r instanceof w&&r.drawLegendSymbol(f,r)}),f.render(),this.chart.getMargins(!0),M.added||(M.added=!0,M.labelLeft=0,M.labelRight=M.width),M.chart.axisOffset[M.side]=p}},w.prototype.setLegendColor=function(){var M=this,C=M.horiz,p=M.reversed,f=p?1:0,r=p?0:1,l=C?[f,0,r,0]:[0,r,0,f];M.legendColor={linearGradient:{x1:l[0],y1:l[1],x2:l[2],y2:l[3]},stops:M.stops}},w.prototype.drawLegendSymbol=function(M,C){var p=C.legendItem||{},f=M.padding,r=M.options,l=m(r.itemDistance,10),t=this.horiz,i=m(r.symbolWidth,t?w.defaultLegendLength:12),o=m(r.symbolHeight,t?12:w.defaultLegendLength),e=m(r.labelPadding,t?16:30);this.setLegendColor(),p.symbol||(p.symbol=this.chart.renderer.rect(0,M.baseline-11,i,o).attr({zIndex:1}).add(p.group)),p.labelWidth=i+f+(t?l:this.options.labels.x+this.maxLabelLength),p.labelHeight=o+f+(t?e:0)},w.prototype.setState=function(M){this.series.forEach(function(C){C.setState(M)})},w.prototype.setVisible=function(){},w.prototype.getSeriesExtremes=function(){var M,C,p,f,r,l,t,i,o=this.series,e=o.length;for(this.dataMin=1/0,this.dataMax=-1/0;e--;){if(C=(l=o[e]).colorKey=m(l.options.colorKey,l.colorKey,l.pointValKey,l.zoneAxis,"y"),f=l.pointArrayMap,r=l[C+"Min"]&&l[C+"Max"],l[C+"Data"])M=l[C+"Data"];else if(f){if(M=[],p=f.indexOf(C),t=l.yData,p>=0&&t)for(i=0;i<t.length;i++)M.push(m(t[i][p],t[i]))}else M=l.yData;if(r)l.minColorValue=l[C+"Min"],l.maxColorValue=l[C+"Max"];else{var a=P.prototype.getExtremes.call(l,M);l.minColorValue=a.dataMin,l.maxColorValue=a.dataMax}l.minColorValue!==void 0&&(this.dataMin=Math.min(this.dataMin,l.minColorValue),this.dataMax=Math.max(this.dataMax,l.maxColorValue)),r||P.prototype.applyExtremes.call(l)}},w.prototype.drawCrosshair=function(M,C){var p,f=this,r=f.legendItem||{},l=C&&C.plotX,t=C&&C.plotY,i=f.pos,o=f.len;C&&((p=f.toPixels(C.getNestedProperty(C.series.colorKey)))<i?p=i-2:p>i+o&&(p=i+o+2),C.plotX=p,C.plotY=f.len-p,v.prototype.drawCrosshair.call(this,M,C),C.plotX=l,C.plotY=t,f.cross&&!f.cross.addedToColorAxis&&r.group&&(f.cross.addClass("highcharts-coloraxis-marker").add(r.group),f.cross.addedToColorAxis=!0,f.chart.styledMode||typeof f.crosshair!="object"||f.cross.attr({fill:f.crosshair.color})))},w.prototype.getPlotLinePath=function(M){var C=this,p=C.left,f=M.translatedValue,r=C.top;return c(f)?C.horiz?[["M",f-4,r-6],["L",f+4,r-6],["L",f,r],["Z"]]:[["M",p,f],["L",p-6,f+6],["L",p-6,f-6],["Z"]]:v.prototype.getPlotLinePath.call(this,M)},w.prototype.update=function(M,C){var p=this,f=p.chart.legend;this.series.forEach(function(r){r.isDirtyData=!0}),(M.dataClasses&&f.allItems||p.dataClasses)&&p.destroyItems(),v.prototype.update.call(this,M,C),p.legendItem&&p.legendItem.label&&(p.setLegendColor(),f.colorizeItem(this,!0))},w.prototype.destroyItems=function(){var M=this,C=M.chart,p=M.legendItem||{};if(p.label)C.legend.destroyItem(M);else if(p.labels)for(var f=0,r=p.labels;f<r.length;f++){var l=r[f];C.legend.destroyItem(l)}C.isDirtyLegend=!0},w.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),v.prototype.destroy.apply(this,[].slice.call(arguments))},w.prototype.remove=function(M){this.destroyItems(),v.prototype.remove.call(this,M)},w.prototype.getDataClassLegendSymbols=function(){var M,C=this,p=C.chart,f=C.legendItem&&C.legendItem.labels||[],r=p.options.legend,l=m(r.valueDecimals,-1),t=m(r.valueSuffix,""),i=function(o){return C.series.reduce(function(e,a){return e.push.apply(e,a.points.filter(function(s){return s.dataClass===o})),e},[])};return f.length||C.dataClasses.forEach(function(o,e){var a=o.from,s=o.to,h=p.numberFormatter,b=!0;M="",a===void 0?M="< ":s===void 0&&(M="> "),a!==void 0&&(M+=h(a,l)+t),a!==void 0&&s!==void 0&&(M+=" - "),s!==void 0&&(M+=h(s,l)+t),f.push(y({chart:p,name:M,options:{},drawLegendSymbol:Z.drawRectangle,visible:!0,isDataClass:!0,setState:function(k){for(var O=0,d=i(e);O<d.length;O++)d[O].setState(k)},setVisible:function(){this.visible=b=C.visible=!b;for(var k=0,O=i(e);k<O.length;k++)O[k].setVisible(b);p.legend.colorizeItem(this,b)}},o))}),f},w.defaultColorAxisOptions=U,w.defaultLegendLength=200,w.keepProps=["legendItem"],w}(G);return Array.prototype.push.apply(G.keepProps,u.keepProps),u}),et(_,"Maps/MapNavigationDefaults.js",[_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B){var H={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};return(0,B.extend)(G.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"}),G.defaultOptions.mapNavigation=H,H}),et(_,"Maps/MapNavigation.js",[_["Core/Chart/Chart.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,H){var U=B.doc,$=H.addEvent,Z=H.extend,V=H.isNumber,F=H.merge,I=H.objectEach,E=H.pick;function A(y){y&&(y.preventDefault&&y.preventDefault(),y.stopPropagation&&y.stopPropagation(),y.cancelBubble=!0)}function P(y){this.navButtons=[],this.init(y)}P.prototype.init=function(y){this.chart=y},P.prototype.update=function(y){var c,g=this,m=this.chart,u=m.options.mapNavigation,v=function(M){this.handler.call(m,M),A(M)},w=g.navButtons;for(y&&(u=m.options.mapNavigation=F(m.options.mapNavigation,y));w.length;)w.pop().destroy();E(u.enableButtons,u.enabled)&&!m.renderer.forExport&&(g.navButtonsGroup||(g.navButtonsGroup=m.renderer.g().attr({zIndex:4}).add()),I(u.buttons,function(M,C){M=F(u.buttonOptions,M),!m.styledMode&&M.theme&&((c=M.theme).style=F(M.theme.style,M.style));var p=m.renderer.button(M.text||"",0,0,v,c,void 0,void 0,void 0,C==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[C]).attr({width:M.width,height:M.height,title:m.options.lang[C],padding:M.padding,zIndex:5}).add(g.navButtonsGroup);if(p.handler=M.onclick,$(p.element,"dblclick",A),w.push(p),Z(M,{width:p.width,height:2*p.height}),m.hasLoaded)p.align(M,!1,M.alignTo);else var f=$(m,"load",function(){p.element&&p.align(M,!1,M.alignTo),f()})}),m.hasLoaded||$(m,"render",function(){var M,C,p=m.exportingGroup&&m.exportingGroup.getBBox();if(p){var f=g.navButtonsGroup.getBBox();if(M=p,!((C=f).x>=M.x+M.width||C.x+C.width<=M.x||C.y>=M.y+M.height||C.y+C.height<=M.y)){var r=-f.y-f.height+p.y-5,l=p.y+p.height-f.y+5,t=u.buttonOptions&&u.buttonOptions.verticalAlign;g.navButtonsGroup.attr({translateY:t==="bottom"?r:l})}}})),this.updateEvents(u)},P.prototype.updateEvents=function(y){var c=this.chart;E(y.enableDoubleClickZoom,y.enabled)||y.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||$(c.container,"dblclick",function(g){c.pointer.onContainerDblClick(g)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),E(y.enableMouseWheelZoom,y.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||$(c.container,U.onwheel!==void 0?"wheel":U.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",function(g){return c.pointer.inClass(g.target,"highcharts-no-mousewheel")||(c.pointer.onContainerMouseWheel(g),A(g)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},Z(G.prototype,{fitToBox:function(y,c){return[["x","width"],["y","height"]].forEach(function(g){var m=g[0],u=g[1];y[m]+y[u]>c[m]+c[u]&&(y[u]>c[u]?(y[u]=c[u],y[m]=c[m]):y[m]=c[m]+c[u]-y[u]),y[u]>c[u]&&(y[u]=c[u]),y[m]<c[m]&&(y[m]=c[m])}),y},mapZoom:function(y,c,g,m,u){this.mapView&&(V(y)&&(y=Math.log(y)/Math.log(.5)),this.mapView.zoomBy(y,V(c)&&V(g)?this.mapView.projection.inverse([c,g]):void 0,V(m)&&V(u)?[m,u]:void 0))}}),$(G,"beforeRender",function(){this.mapNavigation=new P(this),this.mapNavigation.update()}),B.MapNavigation=P}),et(_,"Maps/MapPointer.js",[_["Core/Pointer.js"],_["Core/Utilities.js"]],function(G,B){var H,U=B.defined,$=B.extend,Z=B.pick,V=B.wrap,F=G.prototype.normalize,I=0;$(G.prototype,{normalize:function(E,A){var P=this.chart;if(E=F.call(this,E,A),P&&P.mapView){var y=P.mapView.pixelsToLonLat({x:E.chartX-P.plotLeft,y:E.chartY-P.plotTop});y&&$(E,y)}return E},onContainerDblClick:function(E){var A=this.chart;E=this.normalize(E),A.options.mapNavigation.enableDoubleClickZoomTo?A.pointer.inClass(E.target,"highcharts-tracker")&&A.hoverPoint&&A.hoverPoint.zoomTo():A.isInsidePlot(E.chartX-A.plotLeft,E.chartY-A.plotTop)&&A.mapZoom(.5,void 0,void 0,E.chartX,E.chartY)},onContainerMouseWheel:function(E){var A=this.chart;E=this.normalize(E);var P=U(E.wheelDelta)&&-E.wheelDelta/120||E.deltaY||E.detail;Math.abs(P)>=1&&(I+=Math.abs(P),H&&clearTimeout(H),H=setTimeout(function(){I=0},50)),I<10&&A.isInsidePlot(E.chartX-A.plotLeft,E.chartY-A.plotTop)&&A.mapView&&A.mapView.zoomBy((A.options.mapNavigation.mouseWheelSensitivity-1)*-P,void 0,[E.chartX,E.chartY],!(Math.abs(P)<1)&&void 0)}}),V(G.prototype,"zoomOption",function(E){var A=this.chart.options.mapNavigation;Z(A.enableTouchZoom,A.enabled)&&(this.chart.options.chart.zooming.pinchType="xy"),E.apply(this,[].slice.call(arguments,1))}),V(G.prototype,"pinchTranslate",function(E,A,P,y,c,g,m){var u;E.call(this,A,P,y,c,g,m),this.chart.options.chart.type==="map"&&this.hasZoom&&(u=y.scaleX>y.scaleY,this.pinchTranslateDirection(!u,A,P,y,c,g,m,u?y.scaleX:y.scaleY))})}),et(_,"Series/ColorMapComposition.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H,U=G.seriesTypes.column.prototype,$=B.addEvent,Z=B.defined;return function(V){var F=[];function I(E){var A=this;A.moveToTopOnHover&&A.graphic&&A.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}V.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},V.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var A={};return!Z(E.color)||E.state&&E.state!=="normal"||(A[this.colorProp||"fill"]=E.color),A},pointAttribs:U.pointAttribs},V.compose=function(E){var A=E.prototype.pointClass;return F.indexOf(A)===-1&&(F.push(A),$(A,"afterSetState",I)),E}}(H||(H={})),H}),et(_,"Maps/MapSymbols.js",[_["Core/Renderer/SVG/SVGRenderer.js"]],function(G){var B=G.prototype.symbols;function H(U,$,Z,V,F,I,E,A){return[["M",U+F,$],["L",U+Z-I,$],["C",U+Z-I/2,$,U+Z,$+I/2,U+Z,$+I],["L",U+Z,$+V-E],["C",U+Z,$+V-E/2,U+Z-E/2,$+V,U+Z-E,$+V],["L",U+A,$+V],["C",U+A/2,$+V,U,$+V-A/2,U,$+V-A],["L",U,$+F],["C",U,$+F/2,U+F/2,$,U+F,$],["Z"]]}return B.bottombutton=function(U,$,Z,V,F){var I=F&&F.r||0;return H(U-1,$-1,Z,V,0,0,I,I)},B.topbutton=function(U,$,Z,V,F){var I=F&&F.r||0;return H(U-1,$-1,Z,V,I,I,0,0)},B}),et(_,"Core/Chart/MapChart.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(A,P){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},$(A,P)},function(A,P){function y(){this.constructor=A}$(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),V=B.getOptions,F=U.merge,I=U.pick,E=function(A){function P(){return A!==null&&A.apply(this,arguments)||this}return Z(P,A),P.prototype.init=function(y,c){var g=V().credits,m=F({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:I(g.mapText,' © <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:I(g.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},y);A.prototype.init.call(this,m,c)},P}(G);return function(A){A.maps={},A.mapChart=function(P,y,c){return new A(P,y,c)},A.splitPath=function(P){var y;return y=typeof P=="string"?(P=P.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(c){return/[A-za-z]/.test(c)?c:parseFloat(c)}):P,H.prototype.pathToSegments(y)}}(E||(E={})),E}),et(_,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(G){var B,H=-Number.MAX_VALUE,U=Number.MAX_VALUE,$=-Number.MAX_VALUE,Z=Number.MAX_VALUE;if(G.forEach(function(V){var F=V[V.length-2],I=V[V.length-1];typeof F=="number"&&typeof I=="number"&&(U=Math.min(U,F),H=Math.max(H,F),Z=Math.min(Z,I),$=Math.max($,I),B=!0)}),B)return{x1:U,y1:Z,x2:H,y2:$}},pointInPolygon:function(G,B){var H,U,$=!1,Z=G.x,V=G.y;for(H=0,U=B.length-1;H<B.length;U=H++)B[H][1]>V!=B[U][1]>V&&Z<(B[U][0]-B[H][0])*(V-B[H][1])/(B[U][1]-B[H][1])+B[H][0]&&($=!$);return $}}}),et(_,"Series/Map/MapPoint.js",[_["Series/ColorMapComposition.js"],_["Maps/MapUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},$(y,c)},function(y,c){function g(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),V=B.boundsFromPath,F=H.seriesTypes.scatter,I=U.extend,E=U.isNumber,A=U.pick,P=function(y){function c(){var g=y!==null&&y.apply(this,arguments)||this;return g.options=void 0,g.path=void 0,g.series=void 0,g}return Z(c,y),c.getProjectedPath=function(g,m){return g.projectedPath||(m&&g.geometry?(m.hasCoordinates=!0,g.projectedPath=m.path(g.geometry)):g.projectedPath=g.path),g.projectedPath||[]},c.prototype.applyOptions=function(g,m){var u=this.series,v=y.prototype.applyOptions.call(this,g,m),w=u.joinBy;if(u.mapData&&u.mapMap){var M=w[1],C=y.prototype.getNestedProperty.call(v,M),p=C!==void 0&&u.mapMap[C];p?I(v,p):u.pointArrayMap.indexOf("value")!==-1&&(v.value=v.value||null)}return v},c.prototype.getProjectedBounds=function(g){var m=c.getProjectedPath(this,g),u=V(m),v=this.properties;if(u){var w=v&&v["hc-middle-x"],M=v&&v["hc-middle-y"];u.midX=u.x1+(u.x2-u.x1)*A(this.middleX,E(w)?w:.5);var C=A(this.middleY,E(M)?M:.5);return this.geometry||(C=1-C),u.midY=u.y2-(u.y2-u.y1)*C,u}},c.prototype.onMouseOver=function(g){U.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?y.prototype.onMouseOver.call(this,g):this.series.onMouseOut(g)},c.prototype.setVisible=function(g){var m=g?"show":"hide";this.visible=this.options.visible=!!g,this.dataLabel&&this.dataLabel[m](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},c.prototype.zoomTo=function(){var g=this,m=g.series.chart,u=m.mapView,v=g.bounds;if(u&&v){var w=E(g.insetIndex)&&u.insets[g.insetIndex];if(w){var M=w.projectedUnitsToPixels({x:v.x1,y:v.y1}),C=w.projectedUnitsToPixels({x:v.x2,y:v.y2}),p=u.pixelsToProjectedUnits({x:M.x,y:M.y}),f=u.pixelsToProjectedUnits({x:C.x,y:C.y});v={x1:p.x,y1:p.y,x2:f.x,y2:f.y}}u.fitToBounds(v,void 0,!1),g.series.isDirty=!0,m.redraw()}},c}(F.prototype.pointClass);return I(P.prototype,{dataLabelOnNull:G.pointMembers.dataLabelOnNull,moveToTopOnHover:G.pointMembers.moveToTopOnHover,isValid:G.pointMembers.isValid}),P}),et(_,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}}),et(_,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}),et(_,"Extensions/GeoJSON.js",[_["Core/Chart/Chart.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $=B.format,Z=H.win,V=U.error,F=U.extend,I=U.merge,E=U.wrap;function A(y,c){c||(c=Object.keys(y.objects)[0]);var g=y.objects[c];if(g["hc-decoded-geojson"])return g["hc-decoded-geojson"];var m=y.arcs;if(y.transform){var u=y.transform,v=u.scale,w=u.translate;m=y.arcs.map(function(f){var r=0,l=0;return f.map(function(t){return(t=t.slice())[0]=(r+=t[0])*v[0]+w[0],t[1]=(l+=t[1])*v[1]+w[1],t})})}var M=function(f){return typeof f[0]=="number"?f.reduce(function(r,l,t){var i=l<0?m[~l]:m[l];return l<0?(i=i.slice(0,t===0?i.length:i.length-1)).reverse():t&&(i=i.slice(1)),r.concat(i)},[]):f.map(M)},C=g.geometries.map(function(f){return{type:"Feature",properties:f.properties,geometry:{type:f.type,coordinates:f.coordinates||M(f.arcs)}}}),p={type:"FeatureCollection",copyright:y.copyright,copyrightShort:y.copyrightShort,copyrightUrl:y.copyrightUrl,features:C,"hc-recommended-mapview":g["hc-recommended-mapview"],bbox:y.bbox,title:y.title};return g["hc-decoded-geojson"]=p,p}function P(y,c,g){c===void 0&&(c="map");var m=[],u=y.type==="Topology"?A(y):y;return u.features.forEach(function(v){var w,M=v.geometry||{},C=M.type,p=M.coordinates,f=v.properties;if((c!=="map"&&c!=="mapbubble"||C!=="Polygon"&&C!=="MultiPolygon")&&(c!=="mapline"||C!=="LineString"&&C!=="MultiLineString")?c==="mappoint"&&C==="Point"&&p.length&&(w={geometry:{coordinates:p,type:C}}):p.length&&(w={geometry:{coordinates:p,type:C}}),w){var r=f&&(f.name||f.NAME),l=f&&f.lon,t=f&&f.lat;m.push(F(w,{lat:typeof t=="number"?t:void 0,lon:typeof l=="number"?l:void 0,name:typeof r=="string"?r:void 0,properties:f}))}}),g&&u.copyrightShort&&(g.chart.mapCredits=$(g.chart.options.credits.mapText,{geojson:u}),g.chart.mapCreditsFull=$(g.chart.options.credits.mapTextFull,{geojson:u})),m}return G.prototype.transformFromLatLon=function(y,c){var g=this.options.chart.proj4||Z.proj4;if(g){var m=c.jsonmarginX,u=m===void 0?0:m,v=c.jsonmarginY,w=v===void 0?0:v,M=c.jsonres,C=M===void 0?1:M,p=c.scale,f=p===void 0?1:p,r=c.xoffset,l=r===void 0?0:r,t=c.xpan,i=t===void 0?0:t,o=c.yoffset,e=o===void 0?0:o,a=c.ypan,s=a===void 0?0:a,h=g(c.crs,[y.lon,y.lat]),b=c.cosAngle||c.rotation&&Math.cos(c.rotation),k=c.sinAngle||c.rotation&&Math.sin(c.rotation),O=c.rotation?[h[0]*b+h[1]*k,-h[0]*k+h[1]*b]:h;return{x:((O[0]-l)*f+i)*C+u,y:-(((e-O[1])*f+s)*C-w)}}V(21,!1,this)},G.prototype.transformToLatLon=function(y,c){var g=this.options.chart.proj4||Z.proj4;if(g){if(y.y!==null){var m=c.jsonmarginX,u=m===void 0?0:m,v=c.jsonmarginY,w=v===void 0?0:v,M=c.jsonres,C=M===void 0?1:M,p=c.scale,f=p===void 0?1:p,r=c.xoffset,l=r===void 0?0:r,t=c.xpan,i=t===void 0?0:t,o=c.yoffset,e=o===void 0?0:o,a=c.ypan,s=a===void 0?0:a,h={x:((y.x-u)/C-i)/f+l,y:((y.y-w)/C+s)/f+e},b=c.cosAngle||c.rotation&&Math.cos(c.rotation),k=c.sinAngle||c.rotation&&Math.sin(c.rotation),O=g(c.crs,"WGS84",c.rotation?{x:h.x*b+h.y*-k,y:h.x*k+h.y*b}:h);return{lat:O.y,lon:O.x}}}else V(21,!1,this)},G.prototype.fromPointToLatLon=function(y){return this.mapView&&this.mapView.projectedUnitsToLonLat(y)},G.prototype.fromLatLonToPoint=function(y){return this.mapView&&this.mapView.lonLatToProjectedUnits(y)},E(G.prototype,"addCredits",function(y,c){c=I(!0,this.options.credits,c),this.mapCredits&&(c.href=null),y.call(this,c),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}),H.geojson=P,H.topo2geo=A,{geojson:P,topo2geo:A}}),et(_,"Core/Geometry/PolygonClip.js",[],function(){var G,B=function(U,$,Z){return($[0]-U[0])*(Z[1]-U[1])>($[1]-U[1])*(Z[0]-U[0])},H=function(U,$,Z,V){var F=[U[0]-$[0],U[1]-$[1]],I=[Z[0]-V[0],Z[1]-V[1]],E=U[0]*$[1]-U[1]*$[0],A=Z[0]*V[1]-Z[1]*V[0],P=1/(F[0]*I[1]-F[1]*I[0]),y=[(E*I[0]-A*F[0])*P,(E*I[1]-A*F[1])*P];return y.isIntersection=!0,y};return function(U){U.clipLineString=function($,Z){for(var V=[],F=U.clipPolygon($,Z,!1),I=1;I<F.length;I++)F[I].isIntersection&&F[I-1].isIntersection&&(V.push(F.splice(0,I)),I=0),I===F.length-1&&V.push(F);return V},U.clipPolygon=function($,Z,V){V===void 0&&(V=!0);for(var F,I,E,A=Z[Z.length-1],P=$,y=0;y<Z.length;y++){var c=P;F=Z[y],P=[],I=V?c[c.length-1]:c[0];for(var g=0;g<c.length;g++)E=c[g],B(A,F,E)?(B(A,F,I)||P.push(H(A,F,I,E)),P.push(E)):B(A,F,I)&&P.push(H(A,F,I,E)),I=E;A=F}return P}}(G||(G={})),G}),et(_,"Maps/Projections/LambertConformalConic.js",[],function(){var G=Math.sign||function(V){return V===0?0:V>0?1:-1},B=63.78137,H=Math.PI/180,U=Math.PI/2,$=1e-6,Z=function(V){return Math.tan((U+V)/2)};return function(){function V(F){var I,E=(F.parallels||[]).map(function(g){return g*H}),A=E[0]||0,P=(I=E[1])!==null&&I!==void 0?I:A,y=Math.cos(A);typeof F.projectedBounds=="object"&&(this.projectedBounds=F.projectedBounds);var c=A===P?Math.sin(A):Math.log(y/Math.cos(P))/Math.log(Z(P)/Z(A));Math.abs(c)<1e-10&&(c=1e-10*(G(c)||1)),this.n=c,this.c=y*Math.pow(Z(A),c)/c}return V.prototype.forward=function(F){var I=F[0]*H,E=this,A=E.c,P=E.n,y=E.projectedBounds,c=F[1]*H;A>0?c<-U+$&&(c=-U+$):c>U-$&&(c=U-$);var g=A/Math.pow(Z(c),P),m=g*Math.sin(P*I)*B,u=(A-g*Math.cos(P*I))*B,v=[m,u];return y&&(m<y.x1||m>y.x2||u<y.y1||u>y.y2)&&(v.outside=!0),v},V.prototype.inverse=function(F){var I=F[0]/B,E=F[1]/B,A=this.c,P=this.n,y=A-E,c=G(P)*Math.sqrt(I*I+y*y),g=Math.atan2(I,Math.abs(y))*G(y);return y*P<0&&(g-=Math.PI*G(I)*G(y)),[g/P/H,(2*Math.atan(Math.pow(A/c,1/P))-U)/H]},V}()}),et(_,"Maps/Projections/EqualEarth.js",[],function(){var G=1.340264,B=-.081106,H=893e-6,U=.003796,$=Math.sqrt(3)/2,Z=74.03120656864502;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return V.prototype.forward=function(F){var I=Math.PI/180,E=Math.asin($*Math.sin(F[1]*I)),A=E*E,P=A*A*A;return[F[0]*I*Math.cos(E)*Z/($*(G+3*B*A+P*(7*H+9*U*A))),E*Z*(G+B*A+P*(H+U*A))]},V.prototype.inverse=function(F){var I,E,A,P,y=F[0]/Z,c=F[1]/Z,g=180/Math.PI,m=c;for(P=0;P<12&&(m-=A=(m*(G+B*(I=m*m)+(E=I*I*I)*(H+U*I))-c)/(G+3*B*I+E*(7*H+9*U*I)),!(Math.abs(A)<1e-9));++P);return[g*$*y*(G+3*B*(I=m*m)+(E=I*I*I)*(7*H+9*U*I))/Math.cos(m),g*Math.asin(Math.sin(m)/$)]},V}()}),et(_,"Maps/Projections/Miller.js",[],function(){var G=Math.PI/4,B=Math.PI/180,H=63.78137;return function(){function U(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return U.prototype.forward=function($){return[$[0]*B*H,79.7267125*Math.log(Math.tan(G+.4*$[1]*B))]},U.prototype.inverse=function($){return[$[0]/H/B,2.5*(Math.atan(Math.exp($[1]/H*.8))-G)/B]},U}()}),et(_,"Maps/Projections/Orthographic.js",[],function(){var G=Math.PI/180,B=63.78460826781007;return function(){function H(){this.antimeridianCutting=!1,this.bounds={x1:-B,x2:B,y1:-B,y2:B}}return H.prototype.forward=function(U){var $=U[0],Z=U[1]*G,V=[Math.cos(Z)*Math.sin($*G)*B,Math.sin(Z)*B];return($<-90||$>90)&&(V.outside=!0),V},H.prototype.inverse=function(U){var $=U[0]/B,Z=U[1]/B,V=Math.sqrt($*$+Z*Z),F=Math.asin(V),I=Math.sin(F),E=Math.cos(F);return[Math.atan2($*I,V*E)/G,Math.asin(V&&Z*I/V)/G]},H}()}),et(_,"Maps/Projections/WebMercator.js",[],function(){var G=85.0511287798,B=63.78137,H=Math.PI/180;return function(){function U(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=G}return U.prototype.forward=function($){var Z=Math.sin($[1]*H),V=[B*$[0]*H,B*Math.log((1+Z)/(1-Z))/2];return Math.abs($[1])>G&&(V.outside=!0),V},U.prototype.inverse=function($){return[$[0]/(B*H),(2*Math.atan(Math.exp($[1]/B))-Math.PI/2)/H]},U}()}),et(_,"Maps/Projections/ProjectionRegistry.js",[_["Maps/Projections/LambertConformalConic.js"],_["Maps/Projections/EqualEarth.js"],_["Maps/Projections/Miller.js"],_["Maps/Projections/Orthographic.js"],_["Maps/Projections/WebMercator.js"]],function(G,B,H,U,$){return{EqualEarth:B,LambertConformalConic:G,Miller:H,Orthographic:U,WebMercator:$}}),et(_,"Maps/Projection.js",[_["Core/Geometry/PolygonClip.js"],_["Maps/Projections/ProjectionRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U=this&&this.__spreadArray||function(P,y,c){if(c||arguments.length===2)for(var g,m=0,u=y.length;m<u;m++)!g&&m in y||(g||(g=Array.prototype.slice.call(y,0,m)),g[m]=y[m]);return P.concat(g||Array.prototype.slice.call(y))},$=G.clipLineString,Z=G.clipPolygon,V=H.clamp,F=H.erase,I=2*Math.PI/360,E=1e-6,A=function(P){return P<-180&&(P+=360),P>180&&(P-=360),P};return function(){function P(y){y===void 0&&(y={}),this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=y;var c=y.name,g=y.projectedBounds,m=y.rotation;this.rotator=m?this.getRotator(m):void 0;var u=c?P.registry[c]:void 0;u&&(this.def=new u(y));var v=this.def,w=this.rotator;v&&(this.maxLatitude=v.maxLatitude||90,this.hasGeoProjection=!0),w&&v?(this.forward=function(M){return v.forward(w.forward(M))},this.inverse=function(M){return w.inverse(v.inverse(M))}):v?(this.forward=function(M){return v.forward(M)},this.inverse=function(M){return v.inverse(M)}):w&&(this.forward=w.forward,this.inverse=w.inverse),this.bounds=g==="world"?v&&v.bounds:g}return P.add=function(y,c){P.registry[y]=c},P.greatCircle=function(y,c,g){var m=Math.atan2,u=Math.cos,v=Math.sin,w=Math.sqrt,M=y[1]*I,C=y[0]*I,p=c[1]*I,f=c[0]*I,r=p-M,l=f-C,t=v(r/2)*v(r/2)+u(M)*u(p)*v(l/2)*v(l/2),i=2*m(w(t),w(1-t)),o=6371e3*i,e=Math.round(o/5e5),a=[];if(g&&a.push(y),e>1)for(var s=1/e,h=s;h<.999;h+=s){var b=v((1-h)*i)/v(i),k=v(h*i)/v(i),O=b*u(M)*u(C)+k*u(p)*u(f),d=b*u(M)*v(C)+k*u(p)*v(f),x=m(b*v(M)+k*v(p),w(O*O+d*d)),T=m(d,O);a.push([T/I,x/I])}return g&&a.push(c),a},P.insertGreatCircles=function(y){for(var c=y.length-1;c--;)if(Math.max(Math.abs(y[c][0]-y[c+1][0]),Math.abs(y[c][1]-y[c+1][1]))>10){var g=P.greatCircle(y[c],y[c+1]);g.length&&y.splice.apply(y,U([c+1,0],g,!1))}},P.toString=function(y){var c=y||{},g=c.name,m=c.rotation;return[g,m&&m.join(",")].join(";")},P.prototype.lineIntersectsBounds=function(y){var c,g=this.bounds||{},m=g.x1,u=g.x2,v=g.y1,w=g.y2,M=function(p,f,r){var l=p[0],t=p[1],i=f?0:1;if(typeof r=="number"&&l[f]>=r!=t[f]>=r){var o=(r-l[f])/(t[f]-l[f]),e=l[i]+o*(t[i]-l[i]);return f?[e,r]:[r,e]}},C=y[0];return((c=M(y,0,m))||(c=M(y,0,u)))&&(C=c,y[1]=c),((c=M(y,1,v))||(c=M(y,1,w)))&&(C=c),C},P.prototype.getRotator=function(y){var c=y[0]*I,g=(y[1]||0)*I,m=(y[2]||0)*I,u=Math.cos(g),v=Math.sin(g),w=Math.cos(m),M=Math.sin(m);if(c!==0||g!==0||m!==0)return{forward:function(C){var p=C[0]*I+c,f=C[1]*I,r=Math.cos(f),l=Math.cos(p)*r,t=Math.sin(p)*r,i=Math.sin(f),o=i*u+l*v;return[Math.atan2(t*w-o*M,l*u-i*v)/I,Math.asin(o*w+t*M)/I]},inverse:function(C){var p=C[0]*I,f=C[1]*I,r=Math.cos(f),l=Math.cos(p)*r,t=Math.sin(p)*r,i=Math.sin(f),o=i*w-t*M;return[(Math.atan2(t*w+i*M,l*u+o*v)-c)/I,Math.asin(o*u-l*v)/I]}}},P.prototype.forward=function(y){return y},P.prototype.inverse=function(y){return y},P.prototype.cutOnAntimeridian=function(y,c){var g,m=180,u=[],v=[y];if(y.forEach(function(k,O){var d=y[O-1];if(!O){if(!c)return;d=y[y.length-1]}var x=d[0],T=k[0];if((x<-90||x>90)&&(T<-90||T>90)&&x>0!=T>0){var N=V((m-(x+360)%360)/((T+360)%360-(x+360)%360),0,1),z=d[1]+N*(k[1]-d[1]);u.push({i:O,lat:z,direction:x<0?1:-1,previousLonLat:d,lonLat:k})}}),u.length)if(c){u.length%2==1&&(g=u.slice().sort(function(k,O){return Math.abs(O.lat)-Math.abs(k.lat)})[0],F(u,g));for(var w=u.length-2;w>=0;){var M=u[w].i,C=A(m+u[w].direction*E),p=A(m-u[w].direction*E);(b=y.splice.apply(y,U([M,u[w+1].i-M],P.greatCircle([C,u[w].lat],[C,u[w+1].lat],!0),!1))).push.apply(b,P.greatCircle([p,u[w+1].lat],[p,u[w].lat],!0)),v.push(b),w-=2}if(g)for(var f=0;f<v.length;f++){var r=g.direction,l=g.lat,t=v[f],i=t.indexOf(g.lonLat);if(i>-1){for(var o=(l<0?-1:1)*this.maxLatitude,e=A(m+r*E),a=A(m-r*E),s=P.greatCircle([e,l],[e,o],!0),h=e+120*r;h>-180&&h<180;h+=120*r)s.push([h,o]);s.push.apply(s,P.greatCircle([a,o],[a,g.lat],!0)),t.splice.apply(t,U([i,0],s,!1));break}}}else for(w=u.length;w--;){var b;M=u[w].i,(b=y.splice(M,y.length,[A(m+u[w].direction*E),u[w].lat])).unshift([A(m-u[w].direction*E),u[w].lat]),v.push(b)}return v},P.prototype.path=function(y){var c,g=this,m=this,u=m.bounds,v=m.def,w=m.rotator,M=[],C=y.type==="Polygon"||y.type==="MultiPolygon",p=this.hasGeoProjection,f=!v||v.antimeridianCutting!==!1,r=f?w:void 0,l=f&&v||this;u&&(c=[[u.x1,u.y1],[u.x2,u.y1],[u.x2,u.y2],[u.x1,u.y2]]);var t=function(i){var o=i.map(function(a){if(f){r&&(a=r.forward(a));var s=a[0];Math.abs(s-180)<E&&(s=s<180?179.999999:180.000001),a=[s,a[1]]}return a}),e=[o];p&&(P.insertGreatCircles(o),f&&(e=g.cutOnAntimeridian(o,C))),e.forEach(function(a){if(!(a.length<2)){var s,h,b=!1,k=!1,O=function(D){b?M.push(["L",D[0],D[1]]):(M.push(["M",D[0],D[1]]),b=!0)},d=!1,x=!1,T=a.map(function(D){var j=l.forward(D);return j.outside?d=!0:x=!0,j[1]===1/0?j[1]=1e10:j[1]===-1/0&&(j[1]=-1e10),j});if(f){if(C&&T.push(T[0]),d){if(!x)return;if(c){if(C)T=Z(T,c);else if(u)return void $(T,c).forEach(function(D){b=!1,D.forEach(O)})}}T.forEach(O)}else for(var N=0;N<T.length;N++){var z=a[N],L=T[N];L.outside?k=!0:(C&&!s&&(s=z,a.push(z),T.push(L)),k&&h&&(C&&p?P.greatCircle(h,z).forEach(function(D){return O(l.forward(D))}):b=!1),O(L),h=z,k=!1)}}})};return y.type==="LineString"?t(y.coordinates):y.type==="MultiLineString"?y.coordinates.forEach(function(i){return t(i)}):y.type==="Polygon"?(y.coordinates.forEach(function(i){return t(i)}),M.length&&M.push(["Z"])):y.type==="MultiPolygon"&&(y.coordinates.forEach(function(i){i.forEach(function(o){return t(o)})}),M.length&&M.push(["Z"])),M},P.registry=B,P}()}),et(_,"Maps/MapView.js",[_["Maps/MapViewOptionsDefault.js"],_["Maps/MapViewInsetsOptionsDefault.js"],_["Extensions/GeoJSON.js"],_["Core/Chart/MapChart.js"],_["Maps/MapUtilities.js"],_["Maps/Projection.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V){var F,I=this&&this.__extends||(F=function(e,a){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,h){s.__proto__=h}||function(s,h){for(var b in h)h.hasOwnProperty(b)&&(s[b]=h[b])},F(e,a)},function(e,a){function s(){this.constructor=e}F(e,a),e.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}),E=this&&this.__spreadArray||function(e,a,s){if(s||arguments.length===2)for(var h,b=0,k=a.length;b<k;b++)!h&&b in a||(h||(h=Array.prototype.slice.call(a,0,b)),h[b]=a[b]);return e.concat(h||Array.prototype.slice.call(a))},A=H.topo2geo,P=U.maps,y=$.boundsFromPath,c=$.pointInPolygon,g=V.addEvent,m=V.clamp,u=V.fireEvent,v=V.isArray,w=V.isNumber,M=V.isObject,C=V.isString,p=V.merge,f=V.pick,r=V.relativeLength,l=400.979322,t=function(e,a){var s=a.width,h=a.height,b=Math.max((e.x2-e.x1)/(s/256),(e.y2-e.y1)/(h/256));return Math.log(l/b)/Math.log(2)},i=function(){function e(a,s){var h,b,k=this;if(this.insets=[],this.padding=[0,0,0,0],this.eventsToUnbind=[],!(this instanceof o)){var O=E([a.options.chart.map],(a.options.series||[]).map(function(X){return X.mapData}),!0).map(function(X){return k.getGeoMap(X)}),d=[];O.forEach(function(X){if(X&&(h||(h=X["hc-recommended-mapview"]),X.bbox)){var W=X.bbox,q=W[0],tt=W[1],Q=W[2],nt=W[3];d.push({x1:q,y1:tt,x2:Q,y2:nt})}});var x=d.length&&e.compositeBounds(d);if(x){var T=x.x1,N=x.y1,z=x.x2,L=x.y2;b=z-T>180&&L-N>90?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[N,L],rotation:[-(T+z)/2]}}this.geoMap=O[0]}this.userOptions=s||{};var D=p(G,{projection:b},h,s),j=h&&h.insets,Y=s&&s.insets;j&&Y&&(D.insets=e.mergeInsets(j,Y)),this.chart=a,this.center=D.center,this.options=D,this.projection=new Z(D.projection),this.playingField=a.plotBox,this.zoom=D.zoom||0,this.createInsets(),this.eventsToUnbind.push(g(a,"afterSetChartSize",function(){k.playingField=k.getField(),k.minZoom!==void 0&&k.minZoom!==k.zoom||(k.fitToBounds(void 0,void 0,!1),!k.chart.hasRendered&&w(k.userOptions.zoom)&&(k.zoom=k.userOptions.zoom),k.userOptions.center&&p(!0,k.center,k.userOptions.center))})),this.setUpEvents()}return e.mergeInsets=function(a,s){var h=function(k){var O={};return k.forEach(function(d,x){O[d&&d.id||"i".concat(x)]=d}),O},b=p(h(a),h(s));return Object.keys(b).map(function(k){return b[k]})},e.prototype.createInsets=function(){var a=this,s=this.options,h=s.insets;h&&h.forEach(function(b){var k=new o(a,p(s.insetOptions,b));a.insets.push(k)})},e.prototype.fitToBounds=function(a,s,h,b){h===void 0&&(h=!0);var k=a||this.getProjectedBounds();if(k){var O=f(s,a?0:this.options.padding),d=this.getField(!1),x=v(O)?O:[O,O,O,O];this.padding=[r(x[0],d.height),r(x[1],d.width),r(x[2],d.height),r(x[3],d.width)],this.playingField=this.getField();var T=t(k,this.playingField);a||(this.minZoom=T);var N=this.projection.inverse([(k.x2+k.x1)/2,(k.y2+k.y1)/2]);this.setView(N,T,h,b)}},e.prototype.getField=function(a){a===void 0&&(a=!0);var s=a?this.padding:[0,0,0,0];return{x:s[3],y:s[0],width:this.chart.plotWidth-s[1]-s[3],height:this.chart.plotHeight-s[0]-s[2]}},e.prototype.getGeoMap=function(a){if(C(a))return P[a];if(M(a,!0)){if(a.type==="FeatureCollection")return a;if(a.type==="Topology")return A(a)}},e.prototype.getMapBBox=function(){var a=this.getProjectedBounds(),s=this.getScale();if(a){var h=this.padding,b=this.projectedUnitsToPixels({x:a.x1,y:a.y2});return{width:(a.x2-a.x1)*s+h[1]+h[3],height:(a.y2-a.y1)*s+h[0]+h[2],x:b.x-h[3],y:b.y-h[0]}}},e.prototype.getProjectedBounds=function(){var a=this.projection,s=this.chart.series.reduce(function(d,x){var T=x.getProjectedBounds&&x.getProjectedBounds();return T&&x.options.affectsMapView!==!1&&d.push(T),d},[]),h=this.options.fitToGeometry;if(h){if(!this.fitToGeometryCache)if(h.type==="MultiPoint"){var b=h.coordinates.map(function(d){return a.forward(d)}),k=b.map(function(d){return d[0]}),O=b.map(function(d){return d[1]});this.fitToGeometryCache={x1:Math.min.apply(0,k),x2:Math.max.apply(0,k),y1:Math.min.apply(0,O),y2:Math.max.apply(0,O)}}else this.fitToGeometryCache=y(a.path(h));return this.fitToGeometryCache}return this.projection.bounds||e.compositeBounds(s)},e.prototype.getScale=function(){return 256/l*Math.pow(2,this.zoom)},e.prototype.getSVGTransform=function(){var a=this.playingField,s=a.x,h=a.y,b=a.width,k=a.height,O=this.projection.forward(this.center),d=this.projection.hasCoordinates?-1:1,x=this.getScale(),T=x*d;return{scaleX:x,scaleY:T,translateX:s+b/2-O[0]*x,translateY:h+k/2-O[1]*T}},e.prototype.lonLatToPixels=function(a){var s=this.lonLatToProjectedUnits(a);if(s)return this.projectedUnitsToPixels(s)},e.prototype.lonLatToProjectedUnits=function(a){var s=this.chart,h=s.mapTransforms;if(h){for(var b in h)if(Object.hasOwnProperty.call(h,b)&&h[b].hitZone){var k=s.transformFromLatLon(a,h[b]);if(k&&c(k,h[b].hitZone.coordinates[0]))return k}return s.transformFromLatLon(a,h.default)}for(var O=0,d=this.insets;O<d.length;O++){var x=d[O];if(x.options.geoBounds&&c({x:a.lon,y:a.lat},x.options.geoBounds.coordinates[0])){var T=x.projection.forward([a.lon,a.lat]),N=x.projectedUnitsToPixels({x:T[0],y:T[1]});return this.pixelsToProjectedUnits(N)}}var z=this.projection.forward([a.lon,a.lat]);if(!z.outside)return{x:z[0],y:z[1]}},e.prototype.projectedUnitsToLonLat=function(a){var s=this.chart,h=s.mapTransforms;if(h){for(var b in h)if(Object.hasOwnProperty.call(h,b)&&h[b].hitZone&&c(a,h[b].hitZone.coordinates[0]))return s.transformToLatLon(a,h[b]);return s.transformToLatLon(a,h.default)}for(var k=this.projectedUnitsToPixels(a),O=0,d=this.insets;O<d.length;O++){var x=d[O];if(x.hitZone&&c(k,x.hitZone.coordinates[0])){var T=x.pixelsToProjectedUnits(k),N=x.projection.inverse([T.x,T.y]);return{lon:N[0],lat:N[1]}}}var z=this.projection.inverse([a.x,a.y]);return{lon:z[0],lat:z[1]}},e.prototype.redraw=function(a){this.chart.series.forEach(function(s){s.useMapGeometry&&(s.isDirty=!0)}),this.chart.redraw(a)},e.prototype.setView=function(a,s,h,b){h===void 0&&(h=!0),a&&(this.center=a),typeof s=="number"&&(typeof this.minZoom=="number"&&(s=Math.max(s,this.minZoom)),typeof this.options.maxZoom=="number"&&(s=Math.min(s,this.options.maxZoom)),w(s)&&(this.zoom=s));var k=this.getProjectedBounds();if(k){var O=this.projection.forward(this.center),d=this.playingField,x=d.x,T=d.y,N=d.width,z=d.height,L=this.getScale(),D=this.projectedUnitsToPixels({x:k.x1,y:k.y1}),j=this.projectedUnitsToPixels({x:k.x2,y:k.y2}),Y=[(k.x1+k.x2)/2,(k.y1+k.y2)/2],X=D.x,W=j.y,q=j.x,tt=D.y;q-X<N?O[0]=Y[0]:X<x&&q<x+N?O[0]+=Math.max(X-x,q-N-x)/L:q>x+N&&X>x&&(O[0]+=Math.min(q-N-x,X-x)/L),tt-W<z?O[1]=Y[1]:W<T&&tt<T+z?O[1]-=Math.max(W-T,tt-z-T)/L:tt>T+z&&W>T&&(O[1]-=Math.min(tt-z-T,W-T)/L),this.center=this.projection.inverse(O),this.insets.forEach(function(Q){Q.options.field&&(Q.hitZone=Q.getHitZone(),Q.playingField=Q.getField())}),this.render()}u(this,"afterSetView"),h&&this.redraw(b)},e.prototype.projectedUnitsToPixels=function(a){var s=this.getScale(),h=this.projection.forward(this.center),b=this.playingField,k=b.x+b.width/2,O=b.y+b.height/2;return{x:k-s*(h[0]-a.x),y:O+s*(h[1]-a.y)}},e.prototype.pixelsToLonLat=function(a){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(a))},e.prototype.pixelsToProjectedUnits=function(a){var s=a.x,h=a.y,b=this.getScale(),k=this.projection.forward(this.center),O=this.playingField,d=O.x+O.width/2,x=O.y+O.height/2;return{x:k[0]+(s-d)/b,y:k[1]-(h-x)/b}},e.prototype.setUpEvents=function(){var a,s,h,b=this,k=this.chart,O=function(d){var x=k.pointer.pinchDown,T=b.projection,N=k.mouseDownX,z=k.mouseDownY;if(x.length===1&&(N=x[0].chartX,z=x[0].chartY),typeof N=="number"&&typeof z=="number"){var L=""+N+",".concat(z),D=d.originalEvent,j=D.chartX,Y=D.chartY;L!==s&&(s=L,a=b.projection.forward(b.center),h=(b.projection.options.rotation||[0,0]).slice());var X=T.def&&T.def.bounds,W=X&&t(X,b.playingField)||-1/0;if(T.options.name==="Orthographic"&&(b.minZoom||1/0)<1.1*W){var q=440/(b.getScale()*Math.min(k.plotWidth,k.plotHeight));if(h){var tt=(N-j)*q-h[0],Q=m(-h[1]-(z-Y)*q,-80,80),nt=b.zoom;b.update({projection:{rotation:[-tt,-Q]}},!1),b.zoom=nt,k.redraw(!1)}}else if(w(j)&&w(Y)){var lt=b.getScale(),gt=b.projection.hasCoordinates?1:-1,mt=b.projection.inverse([a[0]+(N-j)/lt,a[1]-(z-Y)/lt*gt]);b.setView(mt,void 0,!0,!1)}d.preventDefault()}};g(k,"pan",O),g(k,"touchpan",O),g(k,"selection",function(d){if(d.resetSelection)b.zoomBy();else{var x=d.x-k.plotLeft,T=d.y-k.plotTop,N=b.pixelsToProjectedUnits({x,y:T}),z=N.y,L=N.x,D=b.pixelsToProjectedUnits({x:x+d.width,y:T+d.height}),j=D.y,Y=D.x;b.fitToBounds({x1:L,y1:z,x2:Y,y2:j},void 0,!0,!d.originalEvent.touches&&void 0),/^touch/.test(d.originalEvent.type)||k.showResetZoom(),d.preventDefault()}})},e.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},e.prototype.update=function(a,s,h){s===void 0&&(s=!0);var b=a.projection,k=b&&Z.toString(b)!==Z.toString(this.options.projection),O=!1;p(!0,this.userOptions,a),p(!0,this.options,a),"insets"in a&&(this.insets.forEach(function(d){return d.destroy()}),this.insets.length=0,O=!0),(k||"fitToGeometry"in a)&&delete this.fitToGeometryCache,(k||O)&&(this.chart.series.forEach(function(d){var x=d.transformGroups;if(d.clearBounds&&d.clearBounds(),d.isDirty=!0,d.isDirtyData=!0,O&&x)for(;x.length>1;){var T=x.pop();T&&T.destroy()}}),k&&(this.projection=new Z(this.options.projection)),O&&this.createInsets(),a.center||w(a.zoom)||this.fitToBounds(void 0,void 0,!1)),a.center||w(a.zoom)?this.setView(this.options.center,a.zoom,!1):"fitToGeometry"in a&&this.fitToBounds(void 0,void 0,!1),s&&this.chart.redraw(h)},e.prototype.zoomBy=function(a,s,h,b){var k=this.chart,O=this.projection.forward(this.center),d=s?this.projection.forward(s):[],x=d[0],T=d[1];if(typeof a=="number"){var N=this.zoom+a,z=void 0;if(h){var L=h[0],D=h[1],j=this.getScale(),Y=L-k.plotLeft-k.plotWidth/2,X=D-k.plotTop-k.plotHeight/2;x=O[0]+Y/j,T=O[1]+X/j}typeof x=="number"&&typeof T=="number"&&(j=1-Math.pow(2,this.zoom)/Math.pow(2,N),Y=O[0]-x,X=O[1]-T,O[0]-=Y*j,O[1]+=X*j,z=this.projection.inverse(O)),this.setView(z,N,void 0,b)}else this.fitToBounds(void 0,void 0,void 0,b)},e.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(s,h){return s.x1=Math.min(s.x1,h.x1),s.y1=Math.min(s.y1,h.y1),s.x2=Math.max(s.x2,h.x2),s.y2=Math.max(s.y2,h.y2),s},p(a[0]))},e}(),o=function(e){function a(s,h){var b=e.call(this,s.chart,h)||this;if(b.id=h.id,b.mapView=s,b.options=p(B,h),b.allBounds=[],b.options.geoBounds){var k=s.projection.path(b.options.geoBounds);b.geoBoundsProjectedBox=y(k),b.geoBoundsProjectedPolygon=k.map(function(O){return[O[1]||0,O[2]||0]})}return b}return I(a,e),a.prototype.getField=function(s){s===void 0&&(s=!0);var h=this.hitZone;if(h){var b=s?this.padding:[0,0,0,0],k=h.coordinates[0],O=k.map(function(L){return L[0]}),d=k.map(function(L){return L[1]}),x=Math.min.apply(0,O)+b[3],T=Math.max.apply(0,O)-b[1],N=Math.min.apply(0,d)+b[0],z=Math.max.apply(0,d)-b[2];if(w(x)&&w(N))return{x,y:N,width:T-x,height:z-N}}return e.prototype.getField.call(this,s)},a.prototype.getHitZone=function(){var s=this,h=s.chart,b=s.mapView,k=s.options,O=(k.field||{}).coordinates;if(O){var d=O[0];if(k.units==="percent"){var x=k.relativeTo==="mapBoundingBox"&&b.getMapBBox()||p(h.plotBox,{x:0,y:0});d=d.map(function(T){return[r(T[0]+"%",x.width,x.x),r(T[1]+"%",x.height,x.y)]})}return{type:"Polygon",coordinates:[d]}}},a.prototype.getProjectedBounds=function(){return i.compositeBounds(this.allBounds)},a.prototype.isInside=function(s){var h=this.geoBoundsProjectedBox,b=this.geoBoundsProjectedPolygon;return!!(h&&s.x>=h.x1&&s.x<=h.x2&&s.y>=h.y1&&s.y<=h.y2&&b&&c(s,b))},a.prototype.render=function(){var s=this,h=s.chart,b=s.mapView,k=s.options,O=k.borderPath||k.field;if(O&&b.group){var d=!0;this.border||(this.border=h.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),d=!1),h.styledMode||this.border.attr({stroke:k.borderColor,"stroke-width":k.borderWidth});var x=Math.round(this.border.strokeWidth())%2/2,T=k.relativeTo==="mapBoundingBox"&&b.getMapBBox()||b.playingField,N=(O.coordinates||[]).reduce(function(z,L){return L.reduce(function(D,j,Y){var X=j[0],W=j[1];return k.units==="percent"&&(X=h.plotLeft+r(X+"%",T.width,T.x),W=h.plotTop+r(W+"%",T.height,T.y)),X=Math.floor(X)+x,W=Math.floor(W)+x,D.push(Y===0?["M",X,W]:["L",X,W]),D},z)},[]);this.border[d?"animate":"attr"]({d:N})}},a.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(s){return s()})},a.prototype.setUpEvents=function(){},a}(i);return g(U,"afterInit",function(){this.mapView=new i(this,this.options.mapView)}),i}),et(_,"Series/Map/MapSeries.js",[_["Core/Animation/AnimationUtilities.js"],_["Series/ColorMapComposition.js"],_["Series/CenteredUtilities.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Chart/MapChart.js"],_["Series/Map/MapPoint.js"],_["Maps/MapView.js"],_["Core/Series/Series.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I,E,A,P){var y,c=this&&this.__extends||(y=function(k,O){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,x){d.__proto__=x}||function(d,x){for(var T in x)x.hasOwnProperty(T)&&(d[T]=x[T])},y(k,O)},function(k,O){function d(){this.constructor=k}y(k,O),k.prototype=O===null?Object.create(O):(d.prototype=O.prototype,new d)}),g=G.animObject,m=U.noop,u=Z.splitPath,v=E.seriesTypes,w=v.column,M=v.scatter,C=P.extend,p=P.find,f=P.fireEvent,r=P.getNestedProperty,l=P.isArray,t=P.defined,i=P.isNumber,o=P.isObject,e=P.merge,a=P.objectEach,s=P.pick,h=P.splat,b=function(k){function O(){var d=k!==null&&k.apply(this,arguments)||this;return d.chart=void 0,d.data=void 0,d.group=void 0,d.joinBy=void 0,d.options=void 0,d.points=void 0,d.processedData=[],d}return c(O,k),O.prototype.animate=function(d){var x=this.chart,T=this.group,N=g(this.options.animation);x.renderer.isSVG&&(d?T.attr({translateX:x.plotLeft+x.plotWidth/2,translateY:x.plotTop+x.plotHeight/2,scaleX:.001,scaleY:.001}):T.animate({translateX:x.plotLeft,translateY:x.plotTop,scaleX:1,scaleY:1},N))},O.prototype.animateDrilldown=function(d){var x=this.chart,T=this.group;x.renderer.isSVG&&(d?T.attr({translateX:x.plotLeft+x.plotWidth/2,translateY:x.plotTop+x.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(T.animate({translateX:x.plotLeft,translateY:x.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),x.drilldown&&x.drilldown.fadeInGroup(this.dataLabelsGroup)))},O.prototype.animateDrillupFrom=function(){var d=this.chart;d.renderer.isSVG&&this.group.animate({translateX:d.plotLeft+d.plotWidth/2,translateY:d.plotTop+d.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})},O.prototype.animateDrillupTo=function(d){w.prototype.animateDrillupTo.call(this,d)},O.prototype.clearBounds=function(){this.points.forEach(function(d){delete d.bounds,delete d.insetIndex,delete d.projectedPath}),delete this.bounds},O.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.hasRendered)},O.prototype.drawMapDataLabels=function(){I.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},O.prototype.drawPoints=function(){var d=this,x=this,T=this,N=T.chart,z=T.group,L=T.transformGroups,D=L===void 0?[]:L,j=N.mapView,Y=N.renderer;j&&(this.transformGroups=D,D[0]||(D[0]=Y.g().add(z)),j.insets.forEach(function(X,W){D[W+1]||D.push(Y.g().add(z))}),this.doFullTranslate()&&(this.points.forEach(function(X){var W=X.graphic,q=X.shapeArgs;X.group=D[typeof X.insetIndex=="number"?X.insetIndex+1:0],W&&W.parentGroup!==X.group&&W.add(X.group),q&&N.hasRendered&&!N.styledMode&&(q.fill=d.pointAttribs(X,X.state).fill)}),w.prototype.drawPoints.apply(this),this.points.forEach(function(X){var W=X.graphic;if(W){var q=W.animate,tt="";X.name&&(tt+="highcharts-name-"+X.name.replace(/ /g,"-").toLowerCase()),X.properties&&X.properties["hc-key"]&&(tt+=" highcharts-key-"+X.properties["hc-key"].toString().toLowerCase()),tt&&W.addClass(tt),N.styledMode&&W.css(d.pointAttribs(X,X.selected?"select":void 0)),W.animate=function(Q,nt,lt){var gt=i(Q["stroke-width"])&&!i(W["stroke-width"]),mt=i(W["stroke-width"])&&!i(Q["stroke-width"]);if(gt||mt){var bt=s(x.getStrokeWidth(x.options),1)/(N.mapView&&N.mapView.getScale()||1);gt&&(W["stroke-width"]=bt),mt&&(Q["stroke-width"]=bt)}var yt=q.call(W,Q,nt,mt?function(){W.element.removeAttribute("stroke-width"),delete W["stroke-width"],lt&<.apply(this,arguments)}:lt);return yt}}})),D.forEach(function(X,W){var q=(W===0?j:j.insets[W-1]).getSVGTransform(),tt=s(d.getStrokeWidth(d.options),1),Q=q.scaleX,nt=q.scaleY>0?1:-1,lt=function(yt){(x.points||[]).forEach(function(dt){var ot,at=dt.graphic;at&&at["stroke-width"]&&(ot=d.getStrokeWidth(dt.options))&&at.attr({"stroke-width":ot/yt})})};if(Y.globalAnimation&&N.hasRendered){var gt=Number(X.attr("translateX")),mt=Number(X.attr("translateY")),bt=Number(X.attr("scaleX"));X.attr({animator:0}).animate({animator:1},{step:function(yt,dt){var ot=bt+(Q-bt)*dt.pos;X.attr({translateX:gt+(q.translateX-gt)*dt.pos,translateY:mt+(q.translateY-mt)*dt.pos,scaleX:ot,scaleY:ot*nt,"stroke-width":tt/ot}),lt(ot)}})}else X.attr(e(q,{"stroke-width":tt/Q})),lt(Q)}),this.drawMapDataLabels())},O.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var d=this.chart.mapView,x=d.insets,T=d.projection,N=[];(this.points||[]).forEach(function(z){if(z.path||z.geometry){if(typeof z.path=="string"?z.path=u(z.path):l(z.path)&&z.path[0]==="M"&&(z.path=A.prototype.pathToSegments(z.path)),!z.bounds){var L=z.getProjectedBounds(T);if(L){z.labelrank=s(z.labelrank,(L.x2-L.x1)*(L.y2-L.y1));var D=L.midX,j=L.midY;if(x&&i(D)&&i(j)){var Y=p(x,function(X){return X.isInside({x:D,y:j})});Y&&(delete z.projectedPath,(L=z.getProjectedBounds(Y.projection))&&Y.allBounds.push(L),z.insetIndex=x.indexOf(Y))}z.bounds=L}}z.bounds&&z.insetIndex===void 0&&N.push(z.bounds)}}),this.bounds=F.compositeBounds(N)}return this.bounds},O.prototype.getStrokeWidth=function(d){var x=this.pointAttrToOptions;return d[x&&x["stroke-width"]||"borderWidth"]},O.prototype.hasData=function(){return!!this.processedXData.length},O.prototype.pointAttribs=function(d,x){var T=d.series.chart,N=T.mapView,z=T.styledMode?this.colorAttribs(d):w.prototype.pointAttribs.call(this,d,x),L=this.getStrokeWidth(d.options);if(x){var D=e(this.options.states[x],d.options.states&&d.options.states[x]||{}),j=this.getStrokeWidth(D);t(j)&&(L=j)}L&&N&&(L/=N.getScale());var Y=this.getStrokeWidth(this.options);return z.dashstyle&&N&&i(Y)&&(L=Y/N.getScale()),d.visible||(z.fill=this.options.nullColor),t(L)?z["stroke-width"]=L:delete z["stroke-width"],z["stroke-linecap"]=z["stroke-linejoin"]=this.options.linecap,z},O.prototype.updateData=function(){return!this.processedData&&k.prototype.updateData.apply(this,arguments)},O.prototype.setData=function(d,x,T,N){x===void 0&&(x=!0),delete this.bounds,k.prototype.setData.call(this,d,!1,void 0,N),this.processData(),this.generatePoints(),x&&this.chart.redraw(T)},O.prototype.processData=function(){var d,x,T,N,z=this.options,L=z.data,D=this.chart.options.chart,j=this.joinBy,Y=z.keys||this.pointArrayMap,X=[],W={},q=this.chart.mapView,tt=q&&(o(z.mapData,!0)?q.getGeoMap(z.mapData):q.geoMap),Q=this.chart.mapTransforms;this.chart.mapTransforms=Q=D.mapTransforms||tt&&tt["hc-transform"]||Q,Q&&a(Q,function(bt){bt.rotation&&(bt.cosAngle=Math.cos(bt.rotation),bt.sinAngle=Math.sin(bt.rotation))}),l(z.mapData)?N=z.mapData:tt&&tt.type==="FeatureCollection"&&(this.mapTitle=tt.title,N=U.geojson(tt,this.type,this)),this.processedData=[];var nt=this.processedData;if(L&&L.forEach(function(bt,yt){var dt=0;if(i(bt))nt[yt]={value:bt};else if(l(bt)){nt[yt]={},!z.keys&&bt.length>Y.length&&typeof bt[0]=="string"&&(nt[yt]["hc-key"]=bt[0],++dt);for(var ot=0;ot<Y.length;++ot,++dt)Y[ot]&&bt[dt]!==void 0&&(Y[ot].indexOf(".")>0?V.prototype.setNestedProperty(nt[yt],bt[dt],Y[ot]):nt[yt][Y[ot]]=bt[dt])}else nt[yt]=L[yt];j&&j[0]==="_i"&&(nt[yt]._i=yt)}),N){for(this.mapData=N,this.mapMap={},T=0;T<N.length;T++)x=(d=N[T]).properties,d._i=T,j[0]&&x&&x[j[0]]&&(d[j[0]]=x[j[0]]),W[d[j[0]]]=d;if(this.mapMap=W,j[1]){var lt=j[1];nt.forEach(function(bt){var yt=r(lt,bt);W[yt]&&X.push(W[yt])})}if(z.allAreas){if(j[1]){var gt=j[1];nt.forEach(function(bt){X.push(r(gt,bt))})}var mt="|"+X.map(function(bt){return bt&&bt[j[0]]}).join("|")+"|";N.forEach(function(bt){j[0]&&mt.indexOf("|"+bt[j[0]]+"|")!==-1||nt.push(e(bt,{value:null}))})}}this.processedXData=new Array(nt.length)},O.prototype.setOptions=function(d){var x=I.prototype.setOptions.call(this,d),T=x.joinBy;return T===null&&(T="_i"),(T=this.joinBy=h(T))[1]||(T[1]=T[0]),x},O.prototype.translate=function(){var d=this,x=d.doFullTranslate(),T=this.chart.mapView,N=T&&T.projection;if(!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!T||T.userOptions.center||i(T.userOptions.zoom)?this.getProjectedBounds():T.fitToBounds(void 0,void 0,!1)),T){var z=T.getSVGTransform();d.points.forEach(function(L){var D=i(L.insetIndex)&&T.insets[L.insetIndex].getSVGTransform()||z;D&&L.bounds&&i(L.bounds.midX)&&i(L.bounds.midY)&&(L.plotX=L.bounds.midX*D.scaleX+D.translateX,L.plotY=L.bounds.midY*D.scaleY+D.translateY),x&&(L.shapeType="path",L.shapeArgs={d:V.getProjectedPath(L,N)})})}f(d,"afterTranslate")},O.defaultOptions=e(M.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var d=this.series.chart.numberFormatter,x=this.point.value;return i(x)?d(x,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"butt",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"}}}),O}(M);return C(b.prototype,{type:"map",axisTypes:B.seriesMembers.axisTypes,colorAttribs:B.seriesMembers.colorAttribs,colorKey:B.seriesMembers.colorKey,directTouch:!0,drawDataLabels:m,drawGraph:m,drawLegendSymbol:$.drawRectangle,forceDL:!0,getCenter:H.getCenter,getExtremesFromAll:!0,getSymbol:m,isCartesian:!1,parallelArrays:B.seriesMembers.parallelArrays,pointArrayMap:B.seriesMembers.pointArrayMap,pointClass:V,preserveAspectRatio:!0,searchPoint:m,trackerGroups:B.seriesMembers.trackerGroups,useMapGeometry:!0}),B.compose(b),E.registerSeriesType("map",b),b}),et(_,"Series/MapLine/MapLineSeries.js",[_["Series/Map/MapSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(E,A){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var c in y)y.hasOwnProperty(c)&&(P[c]=y[c])},U(E,A)},function(E,A){function P(){this.constructor=E}U(E,A),E.prototype=A===null?Object.create(A):(P.prototype=A.prototype,new P)}),Z=B.series,V=H.extend,F=H.merge,I=function(E){function A(){var P=E!==null&&E.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return $(A,E),A.prototype.pointAttribs=function(P,y){var c=G.prototype.pointAttribs.call(this,P,y);return c.fill=this.options.fillColor,c},A.defaultOptions=F(G.defaultOptions,{lineWidth:1,fillColor:"none"}),A}(G);return V(I.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:Z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),B.registerSeriesType("mapline",I),I}),et(_,"Series/MapPoint/MapPointPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H,U=this&&this.__extends||(H=function(F,I){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])},H(F,I)},function(F,I){function E(){this.constructor=F}H(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=G.seriesTypes.scatter,Z=B.isNumber,V=function(F){function I(){var E=F!==null&&F.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return U(I,F),I.prototype.isValid=function(){return!!(this.options.geometry||Z(this.x)&&Z(this.y)||Z(this.options.lon)&&Z(this.options.lat))},I}($.prototype.pointClass);return V}),et(_,"Series/MapPoint/MapPointSeries.js",[_["Core/Globals.js"],_["Series/MapPoint/MapPointPoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z,V=this&&this.__extends||(Z=function(u,v){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,M){w.__proto__=M}||function(w,M){for(var C in M)M.hasOwnProperty(C)&&(w[C]=M[C])},Z(u,v)},function(u,v){function w(){this.constructor=u}Z(u,v),u.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),F=G.noop,I=H.seriesTypes,E=I.map,A=I.scatter,P=$.extend,y=$.fireEvent,c=$.isNumber,g=$.merge,m=function(u){function v(){var w=u!==null&&u.apply(this,arguments)||this;return w.chart=void 0,w.data=void 0,w.options=void 0,w.points=void 0,w.clearBounds=E.prototype.clearBounds,w}return V(v,u),v.prototype.drawDataLabels=function(){u.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},v.prototype.projectPoint=function(w){var M=this.chart.mapView;if(M){var C=w.geometry,p=w.lon,f=w.lat,r=C&&C.type==="Point"&&C.coordinates;if(c(p)&&c(f)&&(r=[p,f]),r)return M.lonLatToProjectedUnits({lon:r[0],lat:r[1]})}},v.prototype.translate=function(){var w=this,M=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),M){var C=M.getSVGTransform(),p=M.projection.hasCoordinates;this.points.forEach(function(f){var r,l=f.x,t=l===void 0?void 0:l,i=f.y,o=i===void 0?void 0:i,e=c(f.insetIndex)&&M.insets[f.insetIndex].getSVGTransform()||C,a=w.projectPoint(f.options)||f.properties&&w.projectPoint(f.properties);if(a?(t=a.x,o=a.y):f.bounds&&(t=f.bounds.midX,o=f.bounds.midY,e&&c(t)&&c(o)&&(f.plotX=t*e.scaleX+e.translateX,f.plotY=o*e.scaleY+e.translateY,r=!0)),c(t)&&c(o)){if(!r){var s=M.projectedUnitsToPixels({x:t,y:o});f.plotX=s.x,f.plotY=p?s.y:w.chart.plotHeight-s.y}}else f.y=f.plotX=f.plotY=void 0;f.isInside=w.isPointInside(f),f.zone=w.zones.length?f.getZone():void 0})}y(this,"afterTranslate")},v.defaultOptions=g(A.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}}),v}(A);return U.prototype.symbols.mapmarker=function(u,v,w,M,C){var p,f,r=C&&C.context==="legend";r?(p=u+w/2,f=v+M):C&&typeof C.anchorX=="number"&&typeof C.anchorY=="number"?(p=C.anchorX,f=C.anchorY):(p=u+w/2,f=v+M/2,v-=M);var l=r?M/3:M/2;return[["M",p,f],["C",p,f,p-l,v+1.5*l,p-l,v+l],["A",l,l,1,1,1,p+l,v+l],["C",p+l,v+1.5*l,p,f,p,f],["Z"]]},P(m.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:B,searchPoint:F,useMapGeometry:!0}),H.registerSeriesType("mappoint",m),m}),et(_,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),et(_,"Series/Bubble/BubbleLegendItem.js",[_["Core/Color/Color.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $=G.parse,Z=H.noop,V=U.arrayMax,F=U.arrayMin,I=U.isNumber,E=U.merge,A=U.pick,P=U.stableSort;return function(){function y(c,g){this.chart=void 0,this.fontMetrics=void 0,this.legend=void 0,this.maxLabel=void 0,this.movementX=void 0,this.ranges=void 0,this.selected=void 0,this.visible=void 0,this.symbols=void 0,this.options=void 0,this.setState=Z,this.init(c,g)}return y.prototype.init=function(c,g){this.options=c,this.visible=!0,this.chart=g.chart,this.legend=g},y.prototype.addToLegend=function(c){c.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(c){var g,m=this.chart,u=A(c.options.itemDistance,20),v=this.legendItem||{},w=this.options,M=w.ranges,C=w.connectorDistance;if(this.fontMetrics=m.renderer.fontMetrics(w.labels.style.fontSize),M&&M.length&&I(M[0].value)){P(M,function(l,t){return t.value-l.value}),this.ranges=M,this.setOptions(),this.render();var p=this.getMaxLabelSize(),f=this.ranges[0].radius,r=2*f;g=(g=C-f+p.width)>0?g:0,this.maxLabel=p,this.movementX=w.labels.align==="left"?g:0,v.labelWidth=r+g+u,v.labelHeight=r+this.fontMetrics.h/2}else c.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var c=this.ranges,g=this.options,m=this.chart.series[g.seriesIndex],u=this.legend.baseline,v={zIndex:g.zIndex,"stroke-width":g.borderWidth},w={zIndex:g.zIndex,"stroke-width":g.connectorWidth},M={align:this.legend.options.rtl||g.labels.align==="left"?"right":"left",zIndex:g.zIndex},C=m.options.marker.fillOpacity,p=this.chart.styledMode;c.forEach(function(f,r){p||(v.stroke=A(f.borderColor,g.borderColor,m.color),v.fill=A(f.color,g.color,C!==1?$(m.color).setOpacity(C).get("rgba"):m.color),w.stroke=A(f.connectorColor,g.connectorColor,m.color)),c[r].radius=this.getRangeRadius(f.value),c[r]=E(c[r],{center:c[0].radius-c[r].radius+u}),p||E(!0,c[r],{bubbleAttribs:E(v),connectorAttribs:E(w),labelAttribs:M})},this)},y.prototype.getRangeRadius=function(c){var g=this.options,m=this.options.seriesIndex,u=this.chart.series[m],v=g.ranges[0].value,w=g.ranges[g.ranges.length-1].value,M=g.minSize,C=g.maxSize;return u.getRadius.call(this,w,v,M,C,c)},y.prototype.render=function(){var c=this.legendItem||{},g=this.chart.renderer,m=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),c.symbol=g.g("bubble-legend"),c.label=g.g("bubble-legend-item"),c.symbol.translateX=0,c.symbol.translateY=0;for(var u=0,v=this.ranges;u<v.length;u++){var w=v[u];w.value>=m&&this.renderRange(w)}c.symbol.add(c.label),c.label.add(c.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(c){var g=this.ranges[0],m=this.legend,u=this.options,v=u.labels,w=this.chart,M=w.series[u.seriesIndex],C=w.renderer,p=this.symbols,f=p.labels,r=c.center,l=Math.abs(c.radius),t=u.connectorDistance||0,i=v.align,o=m.options.rtl,e=u.borderWidth,a=u.connectorWidth,s=g.radius||0,h=r-l-e/2+a/2,b=this.fontMetrics,k=b.f/2-(b.h-b.f)/2,O=(h%1?1:.5)-(a%2?0:.5),d=C.styledMode,x=o||i==="left"?-t:t;i==="center"&&(x=0,u.connectorDistance=0,c.labelAttribs.align="center");var T=h+u.labels.y,N=s+x+u.labels.x;p.bubbleItems.push(C.circle(s,r+O,l).attr(d?{}:c.bubbleAttribs).addClass((d?"highcharts-color-"+M.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(u.className||"")).add(this.legendItem.symbol)),p.connectors.push(C.path(C.crispLine([["M",s,h],["L",s+x,h]],u.connectorWidth)).attr(d?{}:c.connectorAttribs).addClass((d?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(u.connectorClassName||"")).add(this.legendItem.symbol));var z=C.text(this.formatLabel(c),N,T+k).attr(d?{}:c.labelAttribs).css(d?{}:v.style).addClass("highcharts-bubble-legend-labels "+(u.labels.className||"")).add(this.legendItem.symbol);f.push(z),z.placed=!0,z.alignAttr={x:N,y:T+k}},y.prototype.getMaxLabelSize=function(){var c,g;return this.symbols.labels.forEach(function(m){g=m.getBBox(!0),c=c?g.width>c.width?g:c:g}),c||{}},y.prototype.formatLabel=function(c){var g=this.options,m=g.labels.formatter,u=g.labels.format,v=this.chart.numberFormatter;return u?B.format(u,c):m?m.call(c):v(c.value,1)},y.prototype.hideOverlappingLabels=function(){var c=this.chart,g=this.options.labels.allowOverlap,m=this.symbols;!g&&m&&(c.hideOverlappingLabels(m.labels),m.labels.forEach(function(u,v){u.newOpacity?u.newOpacity!==u.oldOpacity&&m.connectors[v].show():m.connectors[v].hide()}))},y.prototype.getRanges=function(){var c,g,m=this.legend.bubbleLegend,u=m.chart.series,v=m.options.ranges,w=Number.MAX_VALUE,M=-Number.MAX_VALUE;return u.forEach(function(C){C.isBubble&&!C.ignoreSeries&&(g=C.zData.filter(I)).length&&(w=A(C.options.zMin,Math.min(w,Math.max(F(g),C.options.displayNegative===!1?C.options.zThreshold:-Number.MAX_VALUE))),M=A(C.options.zMax,Math.max(M,V(g))))}),c=w===M?[{value:M}]:[{value:w},{value:(w+M)/2},{value:M,autoRanges:!0}],v.length&&v[0].radius&&c.reverse(),c.forEach(function(C,p){v&&v[p]&&(c[p]=E(v[p],C))}),c},y.prototype.predictBubbleSizes=function(){var c,g=this.chart,m=this.fontMetrics,u=g.legend.options,v=u.floating,w=u.layout==="horizontal",M=w?g.legend.lastLineHeight:0,C=g.plotSizeX,p=g.plotSizeY,f=g.series[this.options.seriesIndex],r=f.getPxExtremes(),l=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(p,C),o=f.options.maxSize;return v||!/%$/.test(o)?c=t:(o=parseFloat(o),c=(i+M-m.h/2)*o/100/(o/100+1),(w&&p-c>=C||!w&&C-c>=p)&&(c=t)),[l,Math.ceil(c)]},y.prototype.updateRanges=function(c,g){var m=this.legend.options.bubbleLegend;m.minSize=c,m.maxSize=g,m.ranges=this.getRanges()},y.prototype.correctSizes=function(){var c=this.legend,g=this.chart.series[this.options.seriesIndex].getPxExtremes(),m=g.maxPxSize,u=this.options.maxSize;Math.abs(Math.ceil(m)-u)>1&&(this.updateRanges(this.options.minSize,g.maxPxSize),c.render())},y}()}),et(_,"Series/Bubble/BubbleLegendComposition.js",[_["Series/Bubble/BubbleLegendDefaults.js"],_["Series/Bubble/BubbleLegendItem.js"],_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $=H.setOptions,Z=U.addEvent,V=U.objectEach,F=U.wrap,I=[];function E(m,u,v){var w,M,C,p=this,f=p.legend,r=A(p)>=0;f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&r?(w=f.bubbleLegend.options,M=f.bubbleLegend.predictBubbleSizes(),f.bubbleLegend.updateRanges(M[0],M[1]),w.placed||(f.group.placed=!1,f.allItems.forEach(function(l){(C=l.legendItem||{}).group&&(C.group.translateY=null)})),f.render(),p.getMargins(),p.axes.forEach(function(l){l.visible&&l.render(),w.placed||(l.setScale(),l.updateNames(),V(l.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),w.placed=!0,p.getMargins(),m.call(p,u,v),f.bubbleLegend.correctSizes(),g(f,P(f))):(m.call(p,u,v),f&&f.options.enabled&&f.bubbleLegend&&(f.render(),g(f,P(f))))}function A(m){for(var u=m.series,v=0;v<u.length;){if(u[v]&&u[v].isBubble&&u[v].visible&&u[v].zData.length)return v;v++}return-1}function P(m){var u,v,w,M=m.allItems,C=[],p=M.length,f=0,r=0;for(f=0;f<p;f++)if(v=M[f].legendItem||{},w=(M[f+1]||{}).legendItem||{},v.labelHeight&&(M[f].itemHeight=v.labelHeight),M[f]===M[p-1]||v.y!==w.y){for(C.push({height:0}),u=C[C.length-1];r<=f;r++)M[r].itemHeight>u.height&&(u.height=M[r].itemHeight);u.step=f}return C}function y(m){var u=this,v=u.bubbleLegend,w=u.options,M=w.bubbleLegend,C=A(u.chart);v&&v.ranges&&v.ranges.length&&(M.ranges.length&&(M.autoRanges=!!M.ranges[0].autoRanges),u.destroyItem(v)),C>=0&&w.enabled&&M.enabled&&(M.seriesIndex=C,u.bubbleLegend=new B(M,u),u.bubbleLegend.addToLegend(m.allItems))}function c(){var m,u=this,v=u.chart,w=u.visible,M=u.chart.legend;M&&M.bubbleLegend&&(u.visible=!w,u.ignoreSeries=w,m=A(v)>=0,M.bubbleLegend.visible!==m&&(M.update({bubbleLegend:{enabled:m}}),M.bubbleLegend.visible=m),u.visible=w)}function g(m,u){var v,w,M,C,p=m.allItems,f=m.options.rtl,r=0;p.forEach(function(l,t){(C=l.legendItem||{}).group&&(v=C.group.translateX||0,w=C.y||0,((M=l.movementX)||f&&l.ranges)&&(M=f?v-l.options.maxSize/2:v+M,C.group.attr({translateX:M})),t>u[r].step&&r++,C.group.attr({translateY:Math.round(w+u[r].height/2)}),C.y=w+u[r].height/2)})}return{compose:function(m,u,v){I.indexOf(m)===-1&&(I.push(m),$({legend:{bubbleLegend:G}}),F(m.prototype,"drawChartBox",E)),I.indexOf(u)===-1&&(I.push(u),Z(u,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",c))}}}),et(_,"Series/Bubble/BubblePoint.js",[_["Core/Series/Point.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},U(I,E)},function(I,E){function A(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),Z=B.seriesTypes.scatter.prototype.pointClass,V=H.extend,F=function(I){function E(){var A=I!==null&&I.apply(this,arguments)||this;return A.options=void 0,A.series=void 0,A}return $(E,I),E.prototype.haloPath=function(A){return G.prototype.haloPath.call(this,A===0?0:(this.marker&&this.marker.radius||0)+A)},E}(Z);return V(F.prototype,{ttBelow:!1}),F}),et(_,"Series/Bubble/BubbleSeries.js",[_["Series/Bubble/BubbleLegendComposition.js"],_["Series/Bubble/BubblePoint.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V,F=this&&this.__extends||(V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var a in e)e.hasOwnProperty(a)&&(o[a]=e[a])},V(t,i)},function(t,i){function o(){this.constructor=t}V(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=H.parse,E=U.noop,A=$.series,P=$.seriesTypes,y=P.column.prototype,c=P.scatter,g=Z.addEvent,m=Z.arrayMax,u=Z.arrayMin,v=Z.clamp,w=Z.extend,M=Z.isNumber,C=Z.merge,p=Z.pick,f=[];function r(){var t,i=this,o=this.len,e=this.chart,a=this.isXAxis,s=a?"xData":"yData",h=this.min,b=this.max-h,k=0,O=o,d=o/b;this.series.forEach(function(x){if(x.bubblePadding&&(x.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var T=x[s];if(a&&((x.onPoint||x).getRadii(0,0,x),x.onPoint&&(x.radii=x.onPoint.radii)),b>0){for(var N=T.length;N--;)if(M(T[N])&&i.dataMin<=T[N]&&T[N]<=i.max){var z=x.radii&&x.radii[N]||0;k=Math.min((T[N]-h)*d-z,k),O=Math.max((T[N]-h)*d+z,O)}}}}),t&&b>0&&!this.logarithmic&&(O-=o,d*=(o+Math.max(0,k)-Math.min(O,o))/o,[["min","userMin",k],["max","userMax",O]].forEach(function(x){p(i.options[x[0]],i[x[1]])===void 0&&(i[x[0]]+=x[2]/d)}))}var l=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.data=void 0,o.maxPxSize=void 0,o.minPxSize=void 0,o.options=void 0,o.points=void 0,o.radii=void 0,o.yData=void 0,o.zData=void 0,o}return F(i,t),i.compose=function(o,e,a,s){G.compose(e,a,s),f.indexOf(o)===-1&&(f.push(o),o.prototype.beforePadding=r)},i.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(e){var a=e.graphic;a&&a.width&&(this.hasRendered||a.attr({x:e.plotX,y:e.plotY,width:1,height:1}),a.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,a,s=this,h=this.zData,b=this.yData,k=[],O=this.chart.bubbleZExtremes,d=this.getPxExtremes(),x=d.minPxSize,T=d.maxPxSize;if(!O){var N,z=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(D){if(D.bubblePadding&&(D.visible||!s.chart.options.chart.ignoreHiddenSeries)){var j=(D.onPoint||D).getZExtremes();j&&(z=Math.min(z||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(O={zMin:z,zMax:L},this.chart.bubbleZExtremes=O):O={zMin:0,zMax:0}}for(e=0,o=h.length;e<o;e++)a=h[e],k.push(this.getRadius(O.zMin,O.zMax,x,T,a,b&&b[e]));this.radii=k},i.prototype.getRadius=function(o,e,a,s,h,b){var k=this.options,O=k.sizeBy!=="width",d=k.zThreshold,x=e-o,T=.5;if(b===null||h===null)return null;if(M(h)){if(k.sizeByAbsoluteValue&&(h=Math.abs(h-d),e=x=Math.max(e-d,Math.abs(o-d)),o=0),h<o)return a/2-1;x>0&&(T=(h-o)/x)}return O&&T>=0&&(T=Math.sqrt(T)),Math.ceil(a+T*(s-a))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var a=this.options.marker.fillOpacity,s=A.prototype.pointAttribs.call(this,o,e);return a!==1&&(s.fill=I(s.fill).setOpacity(a).get("rgba")),s},i.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var o=this.data,e=this.radii,a=this.getPxExtremes().minPxSize,s=o.length;s--;){var h=o[s],b=e?e[s]:0;M(b)&&b>=a/2?(h.marker=w(h.marker,{radius:b,width:2*b,height:2*b}),h.dlBox={x:h.plotX-b,y:h.plotY-b,width:2*b,height:2*b}):(h.shapeArgs=h.plotY=h.dlBox=void 0,h.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(s){var h;return typeof s=="string"&&(h=/%$/.test(s),s=parseInt(s,10)),h?o*s/100:s},a=e(p(this.options.minSize,8));return{minPxSize:a,maxPxSize:Math.max(e(p(this.options.maxSize,"20%")),a)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(M);if(e.length){var a=p(o.zMin,v(u(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),s=p(o.zMax,m(e));if(M(a)&&M(s))return{zMin:a,zMax:s}}},i.defaultOptions=C(c.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return M(e)?o(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),i}(c);return w(l.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:B,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),g(l,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),g(l,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",l),l}),et(_,"Series/MapBubble/MapBubblePoint.js",[_["Series/Bubble/BubblePoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},U(I,E)},function(I,E){function A(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),Z=B.seriesTypes.map.prototype.pointClass.prototype,V=H.extend,F=function(I){function E(){return I!==null&&I.apply(this,arguments)||this}return $(E,I),E.prototype.isValid=function(){return typeof this.z=="number"},E}(G);return V(F.prototype,{applyOptions:Z.applyOptions,getProjectedBounds:Z.getProjectedBounds}),F}),et(_,"Series/MapBubble/MapBubbleSeries.js",[_["Series/Bubble/BubbleSeries.js"],_["Series/MapBubble/MapBubblePoint.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},$(y,c)},function(y,c){function g(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),V=H.seriesTypes,F=V.map.prototype,I=V.mappoint.prototype,E=U.extend,A=U.merge,P=function(y){function c(){var g=y!==null&&y.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g.clearBounds=F.clearBounds,g}return Z(c,y),c.prototype.searchPoint=function(g,m){return this.searchKDTree({clientX:g.chartX-this.chart.plotLeft,plotY:g.chartY-this.chart.plotTop},m,g)},c.prototype.translate=function(){I.translate.call(this),this.getRadii(),this.translateBubble()},c.defaultOptions=A(G.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),c}(G);return E(P.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:F.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:B,processData:F.processData,projectPoint:I.projectPoint,setData:F.setData,setOptions:F.setOptions,updateData:F.updateData,useMapGeometry:!0,xyFromShape:!0}),H.registerSeriesType("mapbubble",P),P}),et(_,"Series/Heatmap/HeatmapPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H,U=this&&this.__extends||(H=function(A,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},H(A,P)},function(A,P){function y(){this.constructor=A}H(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=G.seriesTypes.scatter.prototype.pointClass,Z=B.clamp,V=B.defined,F=B.extend,I=B.pick,E=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.options=void 0,y.series=void 0,y.value=void 0,y.x=void 0,y.y=void 0,y}return U(P,A),P.prototype.applyOptions=function(y,c){return(this.isNull||this.value===null)&&delete this.color,A.prototype.applyOptions.call(this,y,c),this.formatPrefix=this.isNull||this.value===null?"null":"point",this},P.prototype.getCellAttributes=function(){var y=this,c=y.series,g=c.options,m=(g.colsize||1)/2,u=(g.rowsize||1)/2,v=c.xAxis,w=c.yAxis,M=y.options.marker||c.options.marker,C=c.pointPlacementToXValue(),p=I(y.pointPadding,g.pointPadding,0),f={x1:Z(Math.round(v.len-v.translate(y.x-m,!1,!0,!1,!0,-C)),-v.len,2*v.len),x2:Z(Math.round(v.len-v.translate(y.x+m,!1,!0,!1,!0,-C)),-v.len,2*v.len),y1:Z(Math.round(w.translate(y.y-u,!1,!0,!1,!0)),-w.len,2*w.len),y2:Z(Math.round(w.translate(y.y+u,!1,!0,!1,!0)),-w.len,2*w.len)};return[["width","x"],["height","y"]].forEach(function(r){var l=r[0],t=r[1],i=t+"1",o=t+"2",e=Math.abs(f[i]-f[o]),a=M&&M.lineWidth||0,s=Math.abs(f[i]+f[o])/2,h=M&&M[l];if(V(h)&&h<e){var b=h/2+a/2;f[i]=s-b,f[o]=s+b}p&&(t==="y"&&(i=o,o=t+"1"),f[i]+=p,f[o]-=p)}),f},P.prototype.haloPath=function(y){if(!y)return[];var c=this.shapeArgs||{},g=c.x,m=g===void 0?0:g,u=c.y,v=u===void 0?0:u,w=c.width,M=w===void 0?0:w,C=c.height,p=C===void 0?0:C;return[["M",m-y,v-y],["L",m-y,v+p+y],["L",m+M+y,v+p+y],["L",m+M+y,v-y],["Z"]]},P.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},P}($);return F(E.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1}),E}),et(_,"Series/Heatmap/HeatmapSeries.js",[_["Core/Color/Color.js"],_["Series/ColorMapComposition.js"],_["Series/Heatmap/HeatmapPoint.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Renderer/SVG/SVGRenderer.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V){var F,I=this&&this.__extends||(F=function(C,p){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,r){f.__proto__=r}||function(f,r){for(var l in r)r.hasOwnProperty(l)&&(f[l]=r[l])},F(C,p)},function(C,p){function f(){this.constructor=C}F(C,p),C.prototype=p===null?Object.create(p):(f.prototype=p.prototype,new f)}),E=$.series,A=$.seriesTypes,P=A.column,y=A.scatter,c=Z.prototype.symbols,g=V.extend,m=V.fireEvent,u=V.isNumber,v=V.merge,w=V.pick,M=function(C){function p(){var f=C!==null&&C.apply(this,arguments)||this;return f.colorAxis=void 0,f.data=void 0,f.options=void 0,f.points=void 0,f.valueMax=NaN,f.valueMin=NaN,f}return I(p,C),p.prototype.drawPoints=function(){var f=this;((this.options.marker||{}).enabled||this._hasPointMarkers)&&(E.prototype.drawPoints.call(this),this.points.forEach(function(r){r.graphic&&(r.graphic[f.chart.styledMode?"css":"animate"](f.colorAttribs(r)),r.value===null&&r.graphic.addClass("highcharts-null-point"))}))},p.prototype.getExtremes=function(){var f=E.prototype.getExtremes.call(this,this.valueData),r=f.dataMin,l=f.dataMax;return u(r)&&(this.valueMin=r),u(l)&&(this.valueMax=l),E.prototype.getExtremes.call(this)},p.prototype.getValidPoints=function(f,r){return E.prototype.getValidPoints.call(this,f,r,!0)},p.prototype.hasData=function(){return!!this.processedXData.length},p.prototype.init=function(){C.prototype.init.apply(this,arguments);var f=this.options;f.pointRange=w(f.pointRange,f.colsize||1),this.yAxis.axisPointRange=f.rowsize||1,c.ellipse=c.circle,f.marker&&(f.marker.r=f.borderRadius)},p.prototype.markerAttribs=function(f,r){var l=f.shapeArgs||{};if(f.hasImage)return{x:f.plotX,y:f.plotY};if(r&&r!=="normal"){var t=f.options.marker||{},i=this.options.marker||{},o=i.states&&i.states[r]||{},e=t.states&&t.states[r]||{},a=(e.width||o.width||l.width||0)+(e.widthPlus||o.widthPlus||0),s=(e.height||o.height||l.height||0)+(e.heightPlus||o.heightPlus||0);return{x:(l.x||0)+((l.width||0)-a)/2,y:(l.y||0)+((l.height||0)-s)/2,width:a,height:s}}return l},p.prototype.pointAttribs=function(f,r){var l=this,t=E.prototype.pointAttribs.call(l,f,r),i=l.options||{},o=l.chart.options.plotOptions||{},e=o.series||{},a=o.heatmap||{},s=f&&f.options.borderColor||i.borderColor||a.borderColor||e.borderColor,h=f&&f.options.borderWidth||i.borderWidth||a.borderWidth||e.borderWidth||t["stroke-width"];if(t.stroke=f&&f.marker&&f.marker.lineColor||i.marker&&i.marker.lineColor||s||this.color,t["stroke-width"]=h,r&&r!=="normal"){var b=v(i.states&&i.states[r],i.marker&&i.marker.states&&i.marker.states[r],f&&f.options.states&&f.options.states[r]||{});t.fill=b.color||G.parse(t.fill).brighten(b.brightness||0).get(),t.stroke=b.lineColor||t.stroke}return t},p.prototype.translate=function(){var f=this,r=f.options,l=r.marker&&r.marker.symbol||"rect",t=c[l]?l:"rect",i=["circle","square"].indexOf(t)!==-1;f.generatePoints(),f.points.forEach(function(o){var e=o.getCellAttributes(),a=Math.min(e.x1,e.x2),s=Math.min(e.y1,e.y2),h=Math.max(Math.abs(e.x2-e.x1),0),b=Math.max(Math.abs(e.y2-e.y1),0);if(o.hasImage=(o.marker&&o.marker.symbol||l||"").indexOf("url")===0,i){var k=Math.abs(h-b);a=Math.min(e.x1,e.x2)+(h<b?0:k/2),s=Math.min(e.y1,e.y2)+(h<b?k/2:0),h=b=Math.min(h,b)}o.hasImage&&(o.marker={width:h,height:b}),o.plotX=o.clientX=(e.x1+e.x2)/2,o.plotY=(e.y1+e.y2)/2,o.shapeType="path",o.shapeArgs=v(!0,{x:a,y:s,width:h,height:b},{d:c[t](a,s,h,b,{r:r.borderRadius})})}),m(f,"afterTranslate")},p.defaultOptions=v(y.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var f=this.series.chart.numberFormatter,r=this.point.value;return u(r)?f(r,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}}),p}(y);return g(M.prototype,{axisTypes:B.seriesMembers.axisTypes,colorKey:B.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:B.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:H,specialGroup:"group",trackerGroups:B.seriesMembers.trackerGroups,alignDataLabel:P.prototype.alignDataLabel,colorAttribs:B.seriesMembers.colorAttribs,drawLegendSymbol:U.drawRectangle,getSymbol:E.prototype.getSymbol}),B.compose(M),$.registerSeriesType("heatmap",M),M}),et(_,"masters/modules/map.src.js",[_["Core/Globals.js"],_["Core/Axis/Color/ColorAxis.js"],_["Series/MapBubble/MapBubbleSeries.js"],_["Core/Chart/MapChart.js"],_["Maps/MapView.js"],_["Maps/Projection.js"]],function(G,B,H,U,$,Z){var V=G;V.ColorAxis=B,V.MapChart=U,V.mapChart=V.Map=U.mapChart,V.MapView=$,V.maps=U.maps,V.Projection=Z,B.compose(V.Chart,V.Fx,V.Legend,V.Series),H.compose(V.Axis,V.Chart,V.Legend,V.Series)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},6512:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Series/ColorMapComposition.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H,U=G.seriesTypes.column.prototype,$=B.addEvent,Z=B.defined;return function(V){var F=[];function I(E){var A=this;A.moveToTopOnHover&&A.graphic&&A.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}V.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},V.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var A={};return!Z(E.color)||E.state&&E.state!=="normal"||(A[this.colorProp||"fill"]=E.color),A},pointAttribs:U.pointAttribs},V.compose=function(E){var A=E.prototype.pointClass;return F.indexOf(A)===-1&&(F.push(A),$(A,"afterSetState",I)),E}}(H||(H={})),H}),et(_,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function G(B,H,U,$){this.height=B,this.width=H,this.plot=$,this.direction=U,this.startDirection=U,this.total=0,this.nW=0,this.lW=0,this.nH=0,this.lH=0,this.elArr=[],this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(Z,V){return Math.max(Z/V,V/Z)}}}return G.prototype.addElement=function(B){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+B,this.direction===0?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH)),this.elArr.push(B)},G.prototype.reset=function(){this.nW=0,this.lW=0,this.elArr=[],this.total=0},G}()}),et(_,"Series/DrawPointUtilities.js",[_["Core/Utilities.js"]],function(G){return{draw:function(B,H){var U=H.animatableAttribs,$=H.onComplete,Z=H.css,V=H.renderer,F=B.series&&B.series.chart.hasRendered?void 0:B.series&&B.series.options.animation,I=B.graphic;if(H.attribs=H.attribs||{},H.attribs.class=B.getClassName(),B.shouldDraw())I||(B.graphic=I=H.shapeType==="text"?V.text():V[H.shapeType](H.shapeArgs||{}),I.add(H.group)),Z&&I.css(Z),I.attr(H.attribs).animate(U,!H.isNew&&F,$);else if(I){var E=function(){B.graphic=I=I&&I.destroy(),typeof $=="function"&&$()};Object.keys(U).length?I.animate(U,void 0,function(){return E()}):E()}}}}),et(_,"Series/Treemap/TreemapPoint.js",[_["Series/DrawPointUtilities.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(c,g){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,u){m.__proto__=u}||function(m,u){for(var v in u)u.hasOwnProperty(v)&&(m[v]=u[v])},U(c,g)},function(c,g){function m(){this.constructor=c}U(c,g),c.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}),Z=B.series.prototype.pointClass,V=B.seriesTypes,F=V.pie.prototype.pointClass,I=V.scatter.prototype.pointClass,E=H.extend,A=H.isNumber,P=H.pick,y=function(c){function g(){var m=c!==null&&c.apply(this,arguments)||this;return m.name=void 0,m.node=void 0,m.options=void 0,m.series=void 0,m.shapeType="rect",m.value=void 0,m}return $(g,c),g.prototype.draw=function(m){G.draw(this,m)},g.prototype.getClassName=function(){var m=Z.prototype.getClassName.call(this),u=this.series,v=u.options;return this.node.level<=u.nodeMap[u.rootNode].level?m+=" highcharts-above-level":this.node.isLeaf||P(v.interactByLeaf,!v.allowTraversingTree)?this.node.isLeaf||(m+=" highcharts-internal-node"):m+=" highcharts-internal-node-interactive",m},g.prototype.isValid=function(){return!!(this.id||A(this.value))},g.prototype.setState=function(m){Z.prototype.setState.call(this,m),this.graphic&&this.graphic.attr({zIndex:m==="hover"?1:0})},g.prototype.shouldDraw=function(){return A(this.plotY)&&this.y!==null},g}(I);return E(y.prototype,{setVisible:F.prototype.setVisible}),y}),et(_,"Series/Treemap/TreemapUtilities.js",[_["Core/Utilities.js"]],function(G){var B,H=G.objectEach;return function(U){U.AXIS_MAX=100,U.isBoolean=function($){return typeof $=="boolean"},U.eachObject=function($,Z,V){V=V||this,H($,function(F,I){Z.call(V,F,I,$)})},U.recursive=function $(Z,V,F){var I;F===void 0&&(F=this),(I=V.call(F,Z))!==!1&&$(I,V,F)}}(B||(B={})),B}),et(_,"Series/TreeUtilities.js",[_["Core/Color/Color.js"],_["Core/Utilities.js"]],function(G,B){var H=B.extend,U=B.isArray,$=B.isNumber,Z=B.isObject,V=B.merge,F=B.pick;return{getColor:function(I,E){var A,P,y,c,g,m,u=E.index,v=E.mapOptionsToLevel,w=E.parentColor,M=E.parentColorIndex,C=E.series,p=E.colors,f=E.siblings,r=C.points,l=C.chart.options.chart;return I&&(A=r[I.i],P=v[I.level]||{},A&&P.colorByPoint&&(c=A.index%(p?p.length:l.colorCount),y=p&&p[c]),C.chart.styledMode||(g=F(A&&A.options.color,P&&P.color,y,w&&function(t){var i=P&&P.colorVariation;return i&&i.key==="brightness"&&u&&f?G.parse(t).brighten(i.to*(u/f)).get():t}(w),C.color)),m=F(A&&A.options.colorIndex,P&&P.colorIndex,c,M,E.colorIndex)),{color:g,colorIndex:m}},getLevelOptions:function(I){var E,A,P,y,c,g,m={};if(Z(I))for(y=$(I.from)?I.from:1,g=I.levels,A={},E=Z(I.defaults)?I.defaults:{},U(g)&&(A=g.reduce(function(u,v){var w,M,C;return Z(v)&&$(v.level)&&(C=V({},v),M=F(C.levelIsConstant,E.levelIsConstant),delete C.levelIsConstant,delete C.level,w=v.level+(M?0:y-1),Z(u[w])?V(!0,u[w],C):u[w]=C),u},{})),c=$(I.to)?I.to:1,P=0;P<=c;P++)m[P]=V({},E,Z(A[P])?A[P]:{});return m},setTreeValues:function I(E,A){var P=A.before,y=A.idRoot,c=A.mapIdToNode[y],g=A.levelIsConstant!==!1,m=A.points[E.i],u=m&&m.options||{},v=[],w=0;E.levelDynamic=E.level-(g?0:c.level),E.name=F(m&&m.name,""),E.visible=y===E.id||A.visible===!0,typeof P=="function"&&(E=P(E,A)),E.children.forEach(function(C,p){var f=H({},A);H(f,{index:p,siblings:E.children.length,visible:E.visible}),C=I(C,f),v.push(C),C.visible&&(w+=C.val)});var M=F(u.value,w);return E.visible=M>=0&&(w>0||E.visible),E.children=v,E.childrenTotal=w,E.isLeaf=E.visible&&!w,E.val=M,E},updateRootId:function(I){var E,A;return Z(I)&&(A=Z(I.options)?I.options:{},E=F(I.rootNode,A.rootId,""),Z(I.userOptions)&&(I.userOptions.rootId=E),I.rootNode=E),E}}}),et(_,"Extensions/Breadcrumbs.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"],_["Core/FormatUtilities.js"]],function(G,B,H,U,$){var Z=B.defaultOptions,V=$.format,F=U.addEvent,I=U.objectEach,E=U.extend,A=U.fireEvent,P=U.merge,y=U.pick,c=U.defined,g=U.isString;E(Z.lang,{mainBreadcrumb:"Main"});var m=function(){function u(v,w){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var M=P(v.options.drilldown&&v.options.drilldown.drillUpButton,u.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,w);this.chart=v,this.options=M||{}}return u.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},u.prototype.setList=function(v){this.list=v},u.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},u.prototype.getLevel=function(){return this.level},u.prototype.getButtonText=function(v){var w=this.chart,M=this.options,C=w.options.lang,p=y(M.format,M.showFullPath?"{level.name}":"← {level.name}"),f=C&&y(C.drillUpText,C.mainBreadcrumb),r=M.formatter&&M.formatter(v)||V(p,{level:v.levelOptions},w)||"";return(g(r)&&!r.length||r==="← ")&&c(f)&&(r=M.showFullPath?f:"← "+f),r},u.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},u.prototype.render=function(){var v=this,w=v.chart,M=v.options;!v.group&&M&&(v.group=w.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:M.zIndex}).add()),M.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},u.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},u.prototype.renderSingleButton=function(){var v=this,w=v.chart,M=v.list,C=v.options.buttonSpacing;this.destroyListElements();var p=v.group?v.group.getBBox().width:C,f=C,r=M[M.length-2];!w.drillUpButton&&this.level>0?w.drillUpButton=v.renderButton(r,p,f):w.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},u.prototype.alignBreadcrumbsGroup=function(v){var w=this;if(w.group){var M=w.options,C=M.buttonTheme,p=M.position,f=M.relativeTo==="chart"||M.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=w.group.getBBox(),l=2*(C.padding||0)+M.buttonSpacing;p.width=r.width+l,p.height=r.height+l;var t=P(p);v&&(t.x+=v),w.options.rtl&&(t.x+=p.width),t.y=y(t.y,this.yOffset,0),w.group.align(t,!0,f)}},u.prototype.renderButton=function(v,w,M){var C=this,p=this.chart,f=C.options,r=P(f.buttonTheme),l=p.renderer.button(C.getButtonText(v),w,M,function(t){var i,o=f.events&&f.events.click;o&&(i=o.call(C,t,v)),i!==!1&&(f.showFullPath?t.newLevel=v.level:t.newLevel=C.level-1,A(C,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(C.group);return p.styledMode||l.attr(f.style),l},u.prototype.renderSeparator=function(v,w){var M=this.chart,C=this.options.separator,p=M.renderer.label(C.text,v,w,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return M.styledMode||p.css(C.style),p},u.prototype.update=function(v){P(!0,this.options,v),this.destroy(),this.isDirty=!0},u.prototype.updateSingleButton=function(){var v=this.chart,w=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(w)})},u.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},u.prototype.destroyListElements=function(v){var w=this.elementList;I(w,function(M,C){!v&&w[C].updated||((M=w[C]).button&&M.button.destroy(),M.separator&&M.separator.destroy(),delete M.button,delete M.separator,delete w[C])}),v&&(this.elementList={})},u.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},u.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},u.prototype.updateListElements=function(){var v,w=this,M=w.elementList,C=w.options.buttonSpacing,p=w.list,f=w.options.rtl,r=f?-1:1,l=function(e,a){return r*e.getBBox().width+r*a},t=function(e,a,s){e.translate(a-e.getBBox().width,s)},i=w.group?l(w.group,C):C,o=C;p.forEach(function(e,a){var s,h,b=a===p.length-1;M[e.level]?(s=(v=M[e.level]).button,v.separator||b?v.separator&&b&&(v.separator.destroy(),delete v.separator):(i+=r*C,v.separator=w.renderSeparator(i,o),f&&t(v.separator,i,o),i+=l(v.separator,C)),M[e.level].updated=!0):(s=w.renderButton(e,i,o),f&&t(s,i,o),i+=l(s,C),b||(h=w.renderSeparator(i,o),f&&t(h,i,o),i+=l(h,C)),M[e.level]={button:s,separator:h,updated:!0}),s&&s.setState(b?2:0)})},u.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7},u}();return H.Breadcrumbs||(H.Breadcrumbs=m,F(G,"getMargins",function(){var u=this.breadcrumbs;if(u&&!u.options.floating&&u.level){var v=u.options,w=v.buttonTheme,M=(w.height||0)+2*(w.padding||0)+v.buttonSpacing,C=v.position.verticalAlign;C==="bottom"?(this.marginBottom=(this.marginBottom||0)+M,u.yOffset=M):C!=="middle"?(this.plotTop+=M,u.yOffset=-M):u.yOffset=void 0}}),F(G,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),F(G,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),F(G,"afterShowResetZoom",function(){var u=this;if(u.breadcrumbs){var v=u.resetZoomButton&&u.resetZoomButton.getBBox(),w=u.breadcrumbs.options;v&&w.position.align==="right"&&w.relativeTo==="plotBox"&&u.breadcrumbs.alignBreadcrumbsGroup(-v.width-w.buttonSpacing)}}),F(G,"selection",function(u){u.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),m}),et(_,"Series/Treemap/TreemapComposition.js",[_["Core/Series/SeriesRegistry.js"],_["Series/Treemap/TreemapUtilities.js"],_["Core/Utilities.js"]],function(G,B,H){var U=G.series,$=H.addEvent,Z=H.extend,V=!1;$(U,"afterBindAxes",function(){var F,I=this,E=I.xAxis,A=I.yAxis;E&&A&&(I.is("treemap")?(F={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:B.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},Z(A.options,F),Z(E.options,F),V=!0):V&&(A.setOptions(A.userOptions),E.setOptions(E.userOptions),V=!1))})}),et(_,"Series/Treemap/TreemapNode.js",[],function(){return function(){function G(){this.childrenTotal=0,this.visible=!1}return G.prototype.init=function(B,H,U,$,Z,V,F){return this.id=B,this.i=H,this.children=U,this.height=$,this.level=Z,this.series=V,this.parent=F,this},G}()}),et(_,"Series/Treemap/TreemapSeries.js",[_["Core/Color/Color.js"],_["Series/ColorMapComposition.js"],_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Treemap/TreemapAlgorithmGroup.js"],_["Series/Treemap/TreemapPoint.js"],_["Series/Treemap/TreemapUtilities.js"],_["Series/TreeUtilities.js"],_["Extensions/Breadcrumbs.js"],_["Core/Utilities.js"],_["Series/Treemap/TreemapNode.js"]],function(G,B,H,U,$,Z,V,F,I,E,A,P){var y,c=this&&this.__extends||(y=function(T,N){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,L){z.__proto__=L}||function(z,L){for(var D in L)L.hasOwnProperty(D)&&(z[D]=L[D])},y(T,N)},function(T,N){function z(){this.constructor=T}y(T,N),T.prototype=N===null?Object.create(N):(z.prototype=N.prototype,new z)}),g=G.parse,m=H.noop,u=$.series,v=$.seriesTypes,w=v.column,M=v.heatmap,C=v.scatter,p=I.getColor,f=I.getLevelOptions,r=I.updateRootId,l=A.addEvent,t=A.correctFloat,i=A.defined,o=A.error,e=A.extend,a=A.fireEvent,s=A.isArray,h=A.isObject,b=A.isString,k=A.merge,O=A.pick,d=A.stableSort,x=function(T){function N(){var z=T!==null&&T.apply(this,arguments)||this;return z.axisRatio=void 0,z.data=void 0,z.mapOptionsToLevel=void 0,z.nodeMap=void 0,z.nodeList=void 0,z.options=void 0,z.points=void 0,z.rootNode=void 0,z.tree=void 0,z.level=void 0,z}return c(N,T),N.prototype.algorithmCalcPoints=function(z,L,D,j){var Y,X,W,q,tt,Q=D.lW,nt=D.lH,lt=D.plot,gt=0,mt=D.elArr.length-1;L?(Q=D.nW,nt=D.nH):tt=D.elArr[D.elArr.length-1],D.elArr.forEach(function(bt){(L||gt<mt)&&(D.direction===0?(Y=lt.x,X=lt.y,q=bt/(W=Q)):(Y=lt.x,X=lt.y,W=bt/(q=nt)),j.push({x:Y,y:X,width:W,height:t(q)}),D.direction===0?lt.y=lt.y+q:lt.x=lt.x+W),gt+=1}),D.reset(),D.direction===0?D.width=D.width-Q:D.height=D.height-nt,lt.y=lt.parent.y+(lt.parent.height-D.height),lt.x=lt.parent.x+(lt.parent.width-D.width),z&&(D.direction=1-D.direction),L||D.addElement(tt)},N.prototype.algorithmFill=function(z,L,D){var j,Y,X,W,q,tt=[],Q=L.direction,nt=L.x,lt=L.y,gt=L.width,mt=L.height;return D.forEach(function(bt){j=L.width*L.height*(bt.val/L.val),Y=nt,X=lt,Q===0?(gt-=W=j/(q=mt),nt+=W):(mt-=q=j/(W=gt),lt+=q),tt.push({x:Y,y:X,width:W,height:q}),z&&(Q=1-Q)}),tt},N.prototype.algorithmLowAspectRatio=function(z,L,D){var j,Y=[],X=this,W={x:L.x,y:L.y,parent:L},q=L.direction,tt=0,Q=D.length-1,nt=new Z(L.height,L.width,q,W);return D.forEach(function(lt){j=L.width*L.height*(lt.val/L.val),nt.addElement(j),nt.lP.nR>nt.lP.lR&&X.algorithmCalcPoints(z,!1,nt,Y,W),tt===Q&&X.algorithmCalcPoints(z,!0,nt,Y,W),tt+=1}),Y},N.prototype.alignDataLabel=function(z,L,D){var j=D.style;j&&!i(j.textOverflow)&&L.text&&L.getBBox().width>L.text.textWidth&&L.css({textOverflow:"ellipsis",width:j.width+="px"}),w.prototype.alignDataLabel.apply(this,arguments),z.dataLabel&&z.dataLabel.attr({zIndex:(z.node.zIndex||0)+1})},N.prototype.calculateChildrenAreas=function(z,L){var D,j,Y=this,X=Y.options,W=Y.mapOptionsToLevel[z.level+1],q=O(Y[W&&W.layoutAlgorithm]&&W.layoutAlgorithm,X.layoutAlgorithm),tt=X.alternateStartingDirection;j=z.children.filter(function(Q){return!Q.ignore}),W&&W.layoutStartingDirection&&(L.direction=W.layoutStartingDirection==="vertical"?0:1),D=Y[q](L,j),j.forEach(function(Q,nt){var lt=D[nt];Q.values=k(lt,{val:Q.childrenTotal,direction:tt?1-L.direction:L.direction}),Q.pointValues=k(lt,{x:lt.x/Y.axisRatio,y:F.AXIS_MAX-lt.y-lt.height,width:lt.width/Y.axisRatio}),Q.children.length&&Y.calculateChildrenAreas(Q,Q.values)})},N.prototype.createList=function(z){var L=this.chart,D=L.breadcrumbs,j=[];if(D){var Y=0;j.push({level:Y,levelOptions:L.series[0]});for(var X=z.target.nodeMap[z.newRootId],W=[];X.parent||X.parent==="";)W.push(X),X=z.target.nodeMap[X.parent];W.reverse().forEach(function(q){j.push({level:++Y,levelOptions:q})}),j.length<=1&&(j.length=0)}return j},N.prototype.drawDataLabels=function(){var z,L,D=this,j=D.mapOptionsToLevel;D.points.filter(function(Y){return Y.node.visible}).forEach(function(Y){L=j[Y.node.level],z={style:{}},Y.node.isLeaf||(z.enabled=!1),L&&L.dataLabels&&(z=k(z,L.dataLabels),D._hasPointLabels=!0),Y.shapeArgs&&(z.style.width=Y.shapeArgs.width,Y.dataLabel&&Y.dataLabel.css({width:Y.shapeArgs.width+"px"})),Y.dlOptions=k(z,Y.options.dataLabels)}),u.prototype.drawDataLabels.call(this)},N.prototype.drawPoints=function(z){z===void 0&&(z=this.points);var L=this,D=L.chart,j=D.renderer,Y=D.styledMode,X=L.options,W=Y?{}:X.shadow,q=X.borderRadius,tt=D.pointCount<X.animationLimit,Q=X.allowTraversingTree;z.forEach(function(nt){var lt=nt.node.levelDynamic,gt={},mt={},bt={},yt="level-group-"+nt.node.level,dt=!!nt.graphic,ot=tt&&dt,at=nt.shapeArgs;nt.shouldDraw()&&(nt.isInside=!0,q&&(mt.r=q),k(!0,ot?gt:mt,dt?at:{},Y?{}:L.pointAttribs(nt,nt.selected?"select":void 0)),L.colorAttribs&&Y&&e(bt,L.colorAttribs(nt)),L[yt]||(L[yt]=j.g(yt).attr({zIndex:1e3-(lt||0)}).add(L.group),L[yt].survive=!0)),nt.draw({animatableAttribs:gt,attribs:mt,css:bt,group:L[yt],renderer:j,shadow:W,shapeArgs:at,shapeType:nt.shapeType}),Q&&nt.graphic&&(nt.drillId=X.interactByLeaf?L.drillToByLeaf(nt):L.drillToByGroup(nt))})},N.prototype.drillToByGroup=function(z){var L=!1;return z.node.level-this.nodeMap[this.rootNode].level!==1||z.node.isLeaf||(L=z.id),L},N.prototype.drillToByLeaf=function(z){var L,D=this,j=!1;if(z.node.parent!==D.rootNode&&z.node.isLeaf)for(L=z.node;!j;)(L=D.nodeMap[L.parent]).parent===D.rootNode&&(j=L.id);return j},N.prototype.drillToNode=function(z,L){o(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(z,L)},N.prototype.drillUp=function(){var z=this,L=z.nodeMap[z.rootNode];L&&b(L.parent)&&z.setRootNode(L.parent,!0,{trigger:"traverseUpButton"})},N.prototype.getExtremes=function(){var z=u.prototype.getExtremes.call(this,this.colorValueData),L=z.dataMin,D=z.dataMax;return this.valueMin=L,this.valueMax=D,u.prototype.getExtremes.call(this)},N.prototype.getListOfParents=function(z,L){var D=s(z)?z:[],j=s(L)?L:[],Y=D.reduce(function(X,W,q){var tt=O(W.parent,"");return X[tt]===void 0&&(X[tt]=[]),X[tt].push(q),X},{"":[]});return F.eachObject(Y,function(X,W,q){W!==""&&j.indexOf(W)===-1&&(X.forEach(function(tt){q[""].push(tt)}),delete q[W])}),Y},N.prototype.getTree=function(){var z=this,L=this.data.map(function(j){return j.id}),D=z.getListOfParents(this.data,L);return z.nodeMap={},z.nodeList=[],z.buildTree("",-1,0,D)},N.prototype.buildTree=function(z,L,D,j,Y){var X,W,q=this,tt=[],Q=q.points[L],nt=0;return(j[z]||[]).forEach(function(lt){W=q.buildTree(q.points[lt].id,lt,D+1,j,z),nt=Math.max(W.height+1,nt),tt.push(W)}),X=new q.NodeClass().init(z,L,tt,nt,D,q,Y),tt.forEach(function(lt){lt.parentNode=X}),q.nodeMap[X.id]=X,q.nodeList.push(X),Q&&(Q.node=X,X.point=Q),X},N.prototype.hasData=function(){return!!this.processedXData.length},N.prototype.init=function(z,L){var D,j=this,Y=k(L.drillUpButton,L.breadcrumbs);D=l(j,"setOptions",function(X){var W=X.userOptions;i(W.allowDrillToNode)&&!i(W.allowTraversingTree)&&(W.allowTraversingTree=W.allowDrillToNode,delete W.allowDrillToNode),i(W.drillUpButton)&&!i(W.traverseUpButton)&&(W.traverseUpButton=W.drillUpButton,delete W.drillUpButton)}),u.prototype.init.call(j,z,L),delete j.opacity,j.eventsToUnbind.push(D),j.options.allowTraversingTree&&(j.eventsToUnbind.push(l(j,"click",j.onClickDrillToNode)),j.eventsToUnbind.push(l(j,"setRootNode",function(X){var W=j.chart;W.breadcrumbs&&W.breadcrumbs.updateProperties(j.createList(X))})),j.eventsToUnbind.push(l(j,"update",function(X,W){var q=this.chart.breadcrumbs;q&&X.options.breadcrumbs&&q.update(X.options.breadcrumbs)})),j.eventsToUnbind.push(l(j,"destroy",function(X){var W=this.chart;W.breadcrumbs&&(W.breadcrumbs.destroy(),X.keepEventsForUpdate||(W.breadcrumbs=void 0))}))),z.breadcrumbs||(z.breadcrumbs=new E(z,Y)),j.eventsToUnbind.push(l(z.breadcrumbs,"up",function(X){for(var W=this.level-X.newLevel,q=0;q<W;q++)j.drillUp()}))},N.prototype.onClickDrillToNode=function(z){var L=z.point,D=L&&L.drillId;b(D)&&(L.setState(""),this.setRootNode(D,!0,{trigger:"click"}))},N.prototype.pointAttribs=function(z,L){var D,j,Y=h(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},X=z&&Y[z.node.level]||{},W=this.options,q=L&&W.states&&W.states[L]||{},tt=z&&z.getClassName()||"";return D={stroke:z&&z.borderColor||X.borderColor||q.borderColor||W.borderColor,"stroke-width":O(z&&z.borderWidth,X.borderWidth,q.borderWidth,W.borderWidth),dashstyle:z&&z.borderDashStyle||X.borderDashStyle||q.borderDashStyle||W.borderDashStyle,fill:z&&z.color||this.color},tt.indexOf("highcharts-above-level")!==-1?(D.fill="none",D["stroke-width"]=0):tt.indexOf("highcharts-internal-node-interactive")!==-1?(j=O(q.opacity,W.opacity),D.fill=g(D.fill).setOpacity(j).get(),D.cursor="pointer"):tt.indexOf("highcharts-internal-node")!==-1?D.fill="none":L&&(D.fill=g(D.fill).brighten(q.brightness).get()),D},N.prototype.setColorRecursive=function(z,L,D,j,Y){var X,W,q=this,tt=q&&q.chart,Q=tt&&tt.options&&tt.options.colors;z&&(X=p(z,{colors:Q,index:j,mapOptionsToLevel:q.mapOptionsToLevel,parentColor:L,parentColorIndex:D,series:q,siblings:Y}),(W=q.points[z.i])&&(W.color=X.color,W.colorIndex=X.colorIndex),(z.children||[]).forEach(function(nt,lt){q.setColorRecursive(nt,X.color,X.colorIndex,lt,z.children.length)}))},N.prototype.setPointValues=function(){var z=this,L=z.points,D=z.xAxis,j=z.yAxis,Y=z.chart.styledMode;L.forEach(function(X){var W=X.node,q=W.pointValues,tt=W.visible;if(q&&tt){var Q=q.height,nt=q.width,lt=q.x,gt=q.y,mt=function(ut){return Y?0:(z.pointAttribs(ut)["stroke-width"]||0)%2/2}(X),bt=Math.round(D.toPixels(lt,!0))-mt,yt=Math.round(D.toPixels(lt+nt,!0))-mt,dt=Math.round(j.toPixels(gt,!0))-mt,ot=Math.round(j.toPixels(gt+Q,!0))-mt,at={x:Math.min(bt,yt),y:Math.min(dt,ot),width:Math.abs(yt-bt),height:Math.abs(ot-dt)};X.plotX=at.x+at.width/2,X.plotY=at.y+at.height/2,X.shapeArgs=at}else delete X.plotX,delete X.plotY})},N.prototype.setRootNode=function(z,L,D){var j=this,Y=e({newRootId:z,previousRootId:j.rootNode,redraw:O(L,!0),series:j},D);a(j,"setRootNode",Y,function(X){var W=X.series;W.idPreviousRoot=X.previousRootId,W.rootNode=X.newRootId,W.isDirty=!0,X.redraw&&W.chart.redraw()})},N.prototype.setState=function(z){this.options.inactiveOtherPoints=!0,u.prototype.setState.call(this,z,!1),this.options.inactiveOtherPoints=!1},N.prototype.setTreeValues=function(z){var L,D=this,j=D.options,Y=D.rootNode,X=D.nodeMap[Y],W=!F.isBoolean(j.levelIsConstant)||j.levelIsConstant,q=0,tt=[],Q=D.points[z.i];return z.children.forEach(function(nt){nt=D.setTreeValues(nt),tt.push(nt),nt.ignore||(q+=nt.val)}),d(tt,function(nt,lt){return(nt.sortIndex||0)-(lt.sortIndex||0)}),L=O(Q&&Q.options.value,q),Q&&(Q.value=L),e(z,{children:tt,childrenTotal:q,ignore:!(O(Q&&Q.visible,!0)&&L>0),isLeaf:z.visible&&!q,levelDynamic:z.level-(W?0:X.level),name:O(Q&&Q.name,""),sortIndex:O(Q&&Q.sortIndex,-L),val:L}),z},N.prototype.sliceAndDice=function(z,L){return this.algorithmFill(!0,z,L)},N.prototype.squarified=function(z,L){return this.algorithmLowAspectRatio(!0,z,L)},N.prototype.strip=function(z,L){return this.algorithmLowAspectRatio(!1,z,L)},N.prototype.stripes=function(z,L){return this.algorithmFill(!1,z,L)},N.prototype.translate=function(){var z,L,D,j,Y,X=this,W=X.options,q=r(X);u.prototype.translate.call(X),j=X.tree=X.getTree(),z=X.nodeMap[q],q===""||z&&z.children.length||(X.setRootNode("",!1),q=X.rootNode,z=X.nodeMap[q]),X.mapOptionsToLevel=f({from:z.level+1,levels:W.levels,to:j.height,defaults:{levelIsConstant:X.options.levelIsConstant,colorByPoint:W.colorByPoint}}),F.recursive(X.nodeMap[X.rootNode],function(tt){var Q=!1,nt=tt.parent;return tt.visible=!0,(nt||nt==="")&&(Q=X.nodeMap[nt]),Q}),F.recursive(X.nodeMap[X.rootNode].children,function(tt){var Q=!1;return tt.forEach(function(nt){nt.visible=!0,nt.children.length&&(Q=(Q||[]).concat(nt.children))}),Q}),X.setTreeValues(j),X.axisRatio=X.xAxis.len/X.yAxis.len,X.nodeMap[""].pointValues=L={x:0,y:0,width:F.AXIS_MAX,height:F.AXIS_MAX},X.nodeMap[""].values=D=k(L,{width:L.width*X.axisRatio,direction:W.layoutStartingDirection==="vertical"?0:1,val:j.val}),X.calculateChildrenAreas(j,D),X.colorAxis||W.colorByPoint||X.setColorRecursive(X.tree),W.allowTraversingTree&&(Y=z.pointValues,X.xAxis.setExtremes(Y.x,Y.x+Y.width,!1),X.yAxis.setExtremes(Y.y,Y.y+Y.height,!1),X.xAxis.setScale(),X.yAxis.setScale()),X.setPointValues()},N.defaultOptions=k(C.defaultOptions,{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var z=this&&this.point?this.point:{};return b(z.name)?z.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:M?0:.1,halo:!1,opacity:.75,shadow:!1}}}),N}(C);return e(x.prototype,{buildKDTree:m,colorAttribs:B.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:U.drawRectangle,getExtremesFromAll:!0,getSymbol:m,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:V,NodeClass:P,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:F.recursive}}),B.compose(x),$.registerSeriesType("treemap",x),x}),et(_,"Series/Sunburst/SunburstPoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H,U=this&&this.__extends||(H=function(E,A){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var c in y)y.hasOwnProperty(c)&&(P[c]=y[c])},H(E,A)},function(E,A){function P(){this.constructor=E}H(E,A),E.prototype=A===null?Object.create(A):(P.prototype=A.prototype,new P)}),$=G.series.prototype.pointClass,Z=G.seriesTypes.treemap.prototype.pointClass,V=B.correctFloat,F=B.extend,I=function(E){function A(){var P=E!==null&&E.apply(this,arguments)||this;return P.node=void 0,P.options=void 0,P.series=void 0,P.shapeExisting=void 0,P.shapeType=void 0,P}return U(A,E),A.prototype.getDataLabelPath=function(P){var y,c=this.series.chart.renderer,g=this.shapeExisting,m=g.start,u=g.end,v=m+(u-m)/2,w=v<0&&v>-Math.PI||v>Math.PI,M=g.r+(P.options.distance||0);return m===-Math.PI/2&&V(u)===V(1.5*Math.PI)&&(m=-Math.PI+Math.PI/360,u=-Math.PI/360,w=!0),u-m>Math.PI&&(w=!1,y=!0),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=c.arc({open:!0,longArc:y?1:0}).attr({start:w?m:u,end:w?u:m,clockwise:+w,x:g.x,y:g.y,r:(M+g.innerR)/2}).add(c.defs),this.dataLabelPath},A.prototype.isValid=function(){return!0},A}(Z);return F(I.prototype,{getClassName:$.prototype.getClassName,haloPath:$.prototype.haloPath,setState:$.prototype.setState}),I}),et(_,"Series/Sunburst/SunburstUtilities.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H,U=G.seriesTypes.treemap,$=B.isNumber,Z=B.isObject,V=B.merge;return function(F){function I(E,A){var P,y=[];if($(E)&&$(A)&&E<=A)for(P=E;P<=A;P++)y.push(P);return y}F.recursive=U.prototype.utils.recursive,F.calculateLevelSizes=function(E,A){var P,y,c,g,m,u,v,w=Z(A)?A:{},M=0;return Z(E)&&(P=V({},E),u=$(w.from)?w.from:0,v=$(w.to)?w.to:0,c=I(u,v),g=Object.keys(P).filter(function(C){return c.indexOf(+C)===-1}),y=m=$(w.diffRadius)?w.diffRadius:0,c.forEach(function(C){var p=P[C],f=p.levelSize.unit,r=p.levelSize.value;f==="weight"?M+=r:f==="percentage"?(p.levelSize={unit:"pixels",value:r/100*y},m-=p.levelSize.value):f==="pixels"&&(m-=r)}),c.forEach(function(C){var p,f=P[C];f.levelSize.unit==="weight"&&(p=f.levelSize.value,P[C].levelSize={unit:"pixels",value:p/M*m})}),g.forEach(function(C){P[C].levelSize={value:0,unit:"pixels"}})),P},F.getLevelFromAndTo=function(E){var A=E.level;return{from:A>0?A:1,to:A+E.height}},F.range=I}(H||(H={})),H}),et(_,"Series/Sunburst/SunburstNode.js",[_["Series/Treemap/TreemapNode.js"]],function(G){var B,H=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,F){V.__proto__=F}||function(V,F){for(var I in F)F.hasOwnProperty(I)&&(V[I]=F[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){return $!==null&&$.apply(this,arguments)||this}return H(Z,$),Z}(G);return U}),et(_,"Series/Sunburst/SunburstSeries.js",[_["Series/CenteredUtilities.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Sunburst/SunburstPoint.js"],_["Series/Sunburst/SunburstUtilities.js"],_["Series/TreeUtilities.js"],_["Core/Utilities.js"],_["Series/Sunburst/SunburstNode.js"]],function(G,B,H,U,$,Z,V,F){var I,E=this&&this.__extends||(I=function(O,d){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var N in T)T.hasOwnProperty(N)&&(x[N]=T[N])},I(O,d)},function(O,d){function x(){this.constructor=O}I(O,d),O.prototype=d===null?Object.create(d):(x.prototype=d.prototype,new x)}),A=G.getCenter,P=G.getStartAndEndRadians,y=B.noop,c=H.series,g=H.seriesTypes,m=g.column,u=g.treemap,v=Z.getColor,w=Z.getLevelOptions,M=Z.setTreeValues,C=Z.updateRootId,p=V.defined,f=V.error,r=V.extend,l=V.isNumber,t=V.isObject,i=V.isString,o=V.merge,e=V.splat,a=180/Math.PI,s=function(O,d,x,T){return{x:O+Math.cos(x)*T,y:d+Math.sin(x)*T}};function h(O,d,x){var T;return O.node.isLeaf||(T=d===O.id?x[d].parent:O.id),T}function b(O,d){var x=d.mapIdToNode,T=O.parent,N=T?x[T]:void 0,z=d.series,L=z.chart,D=z.points[O.i],j=z.options.colors||L&&L.options.colors,Y=v(O,{colors:j,colorIndex:z.colorIndex,index:d.index,mapOptionsToLevel:d.mapOptionsToLevel,parentColor:N&&N.color,parentColorIndex:N&&N.colorIndex,series:d.series,siblings:d.siblings});return O.color=Y.color,O.colorIndex=Y.colorIndex,D&&(D.color=O.color,D.colorIndex=O.colorIndex,O.sliced=O.id!==d.idRoot&&D.sliced),O}var k=function(O){function d(){var x=O!==null&&O.apply(this,arguments)||this;return x.center=void 0,x.data=void 0,x.mapOptionsToLevel=void 0,x.nodeMap=void 0,x.options=void 0,x.points=void 0,x.shapeRoot=void 0,x.startAndEndRadians=void 0,x.tree=void 0,x}return E(d,O),d.prototype.alignDataLabel=function(x,T,N){if(!N.textPath||!N.textPath.enabled)return O.prototype.alignDataLabel.apply(this,arguments)},d.prototype.animate=function(x){var T,N=this.chart,z=[N.plotWidth/2,N.plotHeight/2],L=N.plotLeft,D=N.plotTop,j=this.group;x?(T={translateX:z[0]+L,translateY:z[1]+D,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},j.attr(T)):(T={translateX:L,translateY:D,scaleX:1,scaleY:1,rotation:0,opacity:1},j.animate(T,this.options.animation))},d.prototype.drawPoints=function(){var x,T=this,N=T.mapOptionsToLevel,z=T.shapeRoot,L=T.group,D=T.hasRendered,j=T.rootNode,Y=T.idPreviousRoot,X=T.nodeMap,W=X[Y],q=W&&W.shapeArgs,tt=T.points,Q=T.startAndEndRadians,nt=T.chart,lt=nt&&nt.options&&nt.options.chart||{},gt=typeof lt.animation!="boolean"||lt.animation,mt=T.center,bt={x:mt[0],y:mt[1]},yt=mt[3]/2,dt=T.chart.renderer,ot=!1,at=!1,ut=!!(gt&&D&&j!==Y&&T.dataLabelsGroup);ut&&(T.dataLabelsGroup.attr({opacity:0}),x=function(){var vt=T;ot=!0,vt.dataLabelsGroup&&vt.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),tt.forEach(function(vt){var Ct,xt,wt=vt.node,Mt=N[wt.level],At=vt.shapeExisting||{},Tt=wt.shapeArgs||{},Et=!(!wt.visible||!wt.shapeArgs);Ct=D&>?function(Pt,Dt){var It=Dt.point,jt=Dt.radians,_t=Dt.innerR,Rt=Dt.idRoot,Jt=Dt.idPreviousRoot,zt=Dt.shapeExisting,Vt=Dt.shapeRoot,te=Dt.shapePreviousRoot,be=Dt.visible,$t={},ie={end:Pt.end,start:Pt.start,innerR:Pt.innerR,r:Pt.r,x:Pt.x,y:Pt.y};return be?!It.graphic&&te&&(($t=Rt===It.id?{start:jt.start,end:jt.end}:te.end<=Pt.start?{start:jt.end,end:jt.end}:{start:jt.start,end:jt.start}).innerR=$t.r=_t):It.graphic&&(Jt===It.id?ie={innerR:_t,r:_t}:Vt&&(ie=Vt.end<=zt.start?{innerR:_t,r:_t,start:jt.end,end:jt.end}:{innerR:_t,r:_t,start:jt.start,end:jt.start})),{from:$t,to:ie}}(Tt,{center:bt,point:vt,radians:Q,innerR:yt,idRoot:j,idPreviousRoot:Y,shapeExisting:At,shapeRoot:z,shapePreviousRoot:q,visible:Et}):{to:Tt,from:{}},r(vt,{shapeExisting:Tt,tooltipPos:[Tt.plotX,Tt.plotY],drillId:h(vt,j,X),name:""+(vt.name||vt.id||vt.index),plotX:Tt.plotX,plotY:Tt.plotY,value:wt.val,isInside:Et,isNull:!Et}),vt.dlOptions=function(Pt){var Dt,It,jt=Pt.point,_t=t(Pt.shapeArgs)?Pt.shapeArgs:{},Rt=t(Pt.optionsPoint)?Pt.optionsPoint.dataLabels:{},Jt=e(t(Pt.level)?Pt.level.dataLabels:{})[0],zt=o({style:{}},Jt,Rt),Vt=zt.rotationMode;return l(zt.rotation)||(Vt!=="auto"&&Vt!=="circular"||(jt.innerArcLength<1&&jt.outerArcLength>_t.radius?(Dt=0,jt.dataLabelPath&&Vt==="circular"&&(zt.textPath={enabled:!0})):jt.innerArcLength>1&&jt.outerArcLength>1.5*_t.radius?Vt==="circular"?zt.textPath={enabled:!0,attributes:{dy:5}}:Vt="parallel":(jt.dataLabel&&jt.dataLabel.textPath&&Vt==="circular"&&(zt.textPath={enabled:!1}),Vt="perpendicular")),Vt!=="auto"&&Vt!=="circular"&&(Dt=_t.end-(_t.end-_t.start)/2),Vt==="parallel"?zt.style.width=Math.min(2.5*_t.radius,(jt.outerArcLength+jt.innerArcLength)/2):!p(zt.style.width)&&_t.radius&&(zt.style.width=jt.node.level===1?2*_t.radius:_t.radius),Vt==="perpendicular"&&jt.series.chart.renderer.fontMetrics(zt.style.fontSize).h>jt.outerArcLength&&(zt.style.width=1),zt.style.width=Math.max(zt.style.width-2*(zt.padding||0),1),It=Dt*a%180,Vt==="parallel"&&(It-=90),It>90?It-=180:It<-90&&(It+=180),zt.rotation=It),zt.textPath&&(jt.shapeExisting.innerR===0&&zt.textPath.enabled?(zt.rotation=0,zt.textPath.enabled=!1,zt.style.width=Math.max(2*jt.shapeExisting.r-2*(zt.padding||0),1)):jt.dlOptions&&jt.dlOptions.textPath&&!jt.dlOptions.textPath.enabled&&Vt==="circular"&&(zt.textPath.enabled=!0),zt.textPath.enabled&&(zt.rotation=0,zt.style.width=Math.max((jt.outerArcLength+jt.innerArcLength)/2-2*(zt.padding||0),1))),zt.rotation===0&&(zt.rotation=.001),zt}({point:vt,level:Mt,optionsPoint:vt.options,shapeArgs:Tt}),!at&&Et&&(at=!0,xt=x),vt.draw({animatableAttribs:Ct.to,attribs:r(Ct.from,!nt.styledMode&&T.pointAttribs(vt,vt.selected&&"select")),onComplete:xt,group:L,renderer:dt,shapeType:"arc",shapeArgs:Tt})}),ut&&at?(T.hasRendered=!1,T.options.dataLabels.defer=!0,c.prototype.drawDataLabels.call(T),T.hasRendered=!0,ot&&x()):c.prototype.drawDataLabels.call(T)},d.prototype.layoutAlgorithm=function(x,T,N){var z=x.start,L=x.end-z,D=x.val,j=x.x,Y=x.y,X=N&&t(N.levelSize)&&l(N.levelSize.value)?N.levelSize.value:0,W=x.r,q=W+X,tt=N&&l(N.slicedOffset)?N.slicedOffset:0;return(T||[]).reduce(function(Q,nt){var lt=1/D*nt.val*L,gt=s(j,Y,z+lt/2,tt),mt={x:nt.sliced?gt.x:j,y:nt.sliced?gt.y:Y,innerR:W,r:q,radius:X,start:z,end:z+lt};return Q.push(mt),z=mt.end,Q},[])},d.prototype.setShapeArgs=function(x,T,N){var z,L=x.level+1,D=N[L],j=x.children.filter(function(Y){return Y.visible});z=this.layoutAlgorithm(T,j,D),j.forEach(function(Y,X){var W=z[X],q=W.start+(W.end-W.start)/2,tt=W.innerR+(W.r-W.innerR)/2,Q=W.end-W.start,nt=W.innerR===0&&Q>6.28?{x:W.x,y:W.y}:s(W.x,W.y,q,tt),lt=Y.val?Y.childrenTotal>Y.val?Y.childrenTotal:Y.val:Y.childrenTotal;this.points[Y.i]&&(this.points[Y.i].innerArcLength=Q*W.innerR,this.points[Y.i].outerArcLength=Q*W.r),Y.shapeArgs=o(W,{plotX:nt.x,plotY:nt.y+4*Math.abs(Math.cos(q))}),Y.values=o(W,{val:lt}),Y.children.length&&this.setShapeArgs(Y,Y.values,N)},this)},d.prototype.translate=function(){var x,T,N,z,L=this,D=L.options,j=L.center=L.getCenter(),Y=L.startAndEndRadians=P(D.startAngle,D.endAngle),X=j[3]/2,W=j[2]/2-X,q=C(L),tt=L.nodeMap,Q=tt&&tt[q],nt={};L.shapeRoot=Q&&Q.shapeArgs,c.prototype.translate.call(L),N=L.tree=L.getTree(),Q=(tt=L.nodeMap)[q],T=tt[i(Q.parent)?Q.parent:""];var lt=$.getLevelFromAndTo(Q),gt=lt.from,mt=lt.to;x=w({from:gt,levels:L.options.levels,to:mt,defaults:{colorByPoint:D.colorByPoint,dataLabels:D.dataLabels,levelIsConstant:D.levelIsConstant,levelSize:D.levelSize,slicedOffset:D.slicedOffset}}),x=$.calculateLevelSizes(x,{diffRadius:W,from:gt,to:mt}),M(N,{before:b,idRoot:q,levelIsConstant:D.levelIsConstant,mapOptionsToLevel:x,mapIdToNode:tt,points:L.points,series:L}),z=tt[""].shapeArgs={end:Y.end,r:X,start:Y.start,val:Q.val,x:j[0],y:j[1]},this.setShapeArgs(T,z,x),L.mapOptionsToLevel=x,L.data.forEach(function(bt){nt[bt.id]&&f(31,!1,L.chart),nt[bt.id]=!0}),nt={}},d.defaultOptions=o(u.defaultOptions,{center:["50%","50%"],colorByPoint:!1,opacity:1,dataLabels:{allowOverlap:!0,defer:!0,rotationMode:"auto",style:{textOverflow:"ellipsis"}},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10}),d}(u);return r(k.prototype,{drawDataLabels:y,getCenter:A,onPointSupported:!0,pointAttribs:m.prototype.pointAttribs,pointClass:U,NodeClass:F,utils:$}),H.registerSeriesType("sunburst",k),k}),et(_,"masters/modules/sunburst.src.js",[],function(){})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},6545:function(it,rt,st){var ht=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(605)),pt={xAxis:{labels:{style:{color:ct.default.labelColor,fontFamily:ct.default.fontFamily}},title:{style:{color:ct.default.textColor,fontFamily:ct.default.fontFamily}},crosshair:!1},yAxis:{labels:{style:{color:ct.default.labelColor,fontFamily:ct.default.fontFamily}},title:{style:{color:ct.default.textColor,fontFamily:ct.default.fontFamily}},crosshair:!1},zAxis:{labels:{style:{color:ct.default.labelColor,fontFamily:ct.default.fontFamily}},title:{style:{color:ct.default.textColor,fontFamily:ct.default.fontFamily}}}};rt.default=pt},6660:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Core/HttpUtilities.js",[_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B){var H=G.doc,U=B.createElement,$=B.discardElement,Z=B.merge,V=B.objectEach,F={ajax:function(I){var E={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},A=new XMLHttpRequest;function P(y,c){I.error&&I.error(y,c)}if(!I.url)return!1;A.open((I.type||"get").toUpperCase(),I.url,!0),I.headers&&I.headers["Content-Type"]||A.setRequestHeader("Content-Type",E[I.dataType||"json"]||E.text),V(I.headers,function(y,c){A.setRequestHeader(c,y)}),I.responseType&&(A.responseType=I.responseType),A.onreadystatechange=function(){var y;if(A.readyState===4){if(A.status===200){if(I.responseType!=="blob"&&(y=A.responseText,I.dataType==="json"))try{y=JSON.parse(y)}catch(c){if(c instanceof Error)return P(A,c)}return I.success&&I.success(y,A)}P(A,A.responseText)}},I.data&&typeof I.data!="string"&&(I.data=JSON.stringify(I.data)),A.send(I.data)},getJSON:function(I,E){F.ajax({url:I,success:E,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(I,E,A){var P=U("form",Z({method:"post",action:I,enctype:"multipart/form-data"},A),{display:"none"},H.body);V(E,function(y,c){U("input",{type:"hidden",name:c,value:y},void 0,P)}),P.submit(),$(P)}};return F}),et(_,"Extensions/Data.js",[_["Core/Chart/Chart.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/HttpUtilities.js"],_["Core/Series/Point.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V){var F=B.getOptions,I=H.doc,E=U.ajax,A=Z.seriesTypes,P=V.addEvent,y=V.defined,c=V.extend,g=V.fireEvent,m=V.isNumber,u=V.merge,v=V.objectEach,w=V.pick,M=V.splat;function C(r){return!!(r&&(r.rowsURL||r.csvURL||r.columnsURL))}var p=function(){function r(l,t,i){t===void 0&&(t={}),this.rowsToColumns=r.rowsToColumns,this.dateFormats={"YYYY/mm/dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{1,2})$/,parser:function(o){return o?Date.UTC(+o[1],o[2]-1,+o[3]):NaN}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(o){return o?Date.UTC(+o[3],o[2]-1,+o[1]):NaN},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(o){return o?Date.UTC(+o[3],o[1]-1,+o[2]):NaN}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(o){if(!o)return NaN;var e=new Date,a=+o[3];return a>e.getFullYear()-2e3?a+=1900:a+=2e3,Date.UTC(a,o[2]-1,+o[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(o){return o?Date.UTC(+o[3]+2e3,o[1]-1,+o[2]):NaN}}},this.chart=i,this.chartOptions=t,this.options=l,this.rawColumns=[],this.init(l,t,i)}return r.data=function(l,t,i){return t===void 0&&(t={}),new r(l,t,i)},r.rowsToColumns=function(l){var t,i,o,e,a;if(l)for(a=[],i=l.length,t=0;t<i;t++)for(e=l[t].length,o=0;o<e;o++)a[o]||(a[o]=[]),a[o][t]=l[t][o];return a},r.prototype.init=function(l,t,i){var o,e=l.decimalPoint;t&&(this.chartOptions=t),i&&(this.chart=i),e!=="."&&e!==","&&(e=void 0),this.options=l,this.columns=l.columns||this.rowsToColumns(l.rows)||[],this.firstRowAsNames=w(l.firstRowAsNames,this.firstRowAsNames,!0),this.decimalRegex=e&&new RegExp("^(-?[0-9]+)"+e+"([0-9]+)$"),this.liveDataTimeout!==void 0&&clearTimeout(this.liveDataTimeout),this.rawColumns=[],this.columns.length&&(this.dataFound(),o=!C(l)),o||(o=this.fetchLiveData()),o||(o=!!this.parseCSV().length),o||(o=!!this.parseTable().length),o||(o=this.parseGoogleSpreadsheet()),!o&&l.afterComplete&&l.afterComplete()},r.prototype.getColumnDistribution=function(){var l,t=this.chartOptions,i=this.options,o=[],e=function(x){return(A[x||"line"].prototype.pointArrayMap||[0]).length},a=function(x){return A[x||"line"].prototype.pointArrayMap},s=t&&t.chart&&t.chart.type,h=[],b=[],k=i&&i.seriesMapping||t&&t.series&&t.series.map(function(){return{x:0}})||[],O=0;(t&&t.series||[]).forEach(function(x){h.push(e(x.type||s))}),k.forEach(function(x){o.push(x.x||0)}),o.length===0&&o.push(0),k.forEach(function(x){var T=new f,N=h[O]||e(s),z=(t&&t.series||[])[O]||{},L=a(z.type||s),D=L||["y"];for((y(x.x)||z.isCartesian||!L)&&T.addColumnReader(x.x,"x"),v(x,function(j,Y){Y!=="x"&&T.addColumnReader(j,Y)}),l=0;l<N;l++)T.hasReader(D[l])||T.addColumnReader(void 0,D[l]);b.push(T),O++});var d=a(s);d===void 0&&(d=["y"]),this.valueCount={global:e(s),xColumns:o,individual:h,seriesBuilders:b,globalPointArrayMap:d}},r.prototype.dataFound=function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns)),this.getColumnDistribution(),this.parseTypes(),this.parsed()!==!1&&this.complete()},r.prototype.parseCSV=function(l){var t,i,o=this,e=this.columns=[],a=l||this.options,s=a.startColumn!==void 0&&a.startColumn?a.startColumn:0,h=a.endColumn||Number.MAX_VALUE,b=[],k={",":0,";":0," ":0},O=a.csv,d=a.startRow!==void 0&&a.startRow?a.startRow:0,x=a.endRow||Number.MAX_VALUE,T=0;function N(L,D,j,Y){var X=0,W="",q="",tt="",Q="",nt=0,lt=0;function gt(yt){W=L[yt],q=L[yt-1],tt=L[yt+1]}function mt(yt){b.length<lt+1&&b.push([yt]),b[lt][b[lt].length-1]!==yt&&b[lt].push(yt)}function bt(){if(s>nt||nt>h)return++nt,void(Q="");!isNaN(parseFloat(Q))&&isFinite(Q)?(Q=parseFloat(Q),mt("number")):isNaN(Date.parse(Q))?mt("string"):(Q=Q.replace(/\//g,"-"),mt("date")),e.length<lt+1&&e.push([]),e[lt][D]=Q,Q="",++lt,++nt}if(L.trim().length&&L.trim()[0]!=="#"){for(;X<L.length;X++)if(gt(X),W==='"')for(gt(++X);X<L.length&&(W!=='"'||q==='"'||tt==='"');)(W!=='"'||W==='"'&&q!=='"')&&(Q+=W),gt(++X);else W===t?bt():Q+=W;bt()}}if(O&&a.beforeParse&&(O=a.beforeParse.call(this,O)),O){i=O.replace(/\r\n/g,`
|
|
6
|
+
`).replace(/\r/g,`
|
|
7
|
+
`).split(a.lineDelimiter||`
|
|
8
|
+
`),(!d||d<0)&&(d=0),(!x||x>=i.length)&&(x=i.length-1),a.itemDelimiter?t=a.itemDelimiter:(t=null,t=function(L){var D,j=0,Y=0;return L.some(function(X,W){var q,tt,Q,nt=!1,lt="";if(W>13)return!0;for(var gt=0;gt<X.length;gt++){if(q=X[gt],tt=X[gt+1],Q=X[gt-1],q==="#")return;if(q==='"')if(nt){if(Q!=='"'&&tt!=='"'){for(;tt===" "&><X.length;)tt=X[++gt];k[tt]!==void 0&&k[tt]++,nt=!1}}else nt=!0;else k[q]!==void 0?(lt=lt.trim(),isNaN(Date.parse(lt))&&!isNaN(lt)&&isFinite(lt)||k[q]++,lt=""):lt+=q;q===","&&Y++,q==="."&&j++}}),D=k[";"]>k[","]?";":",",a.decimalPoint||(a.decimalPoint=j>Y?".":",",o.decimalRegex=new RegExp("^(-?[0-9]+)"+a.decimalPoint+"([0-9]+)$")),D}(i));var z=0;for(T=d;T<=x;T++)i[T][0]==="#"?z++:N(i[T],T-d-z);a.columnTypes&&a.columnTypes.length!==0||!b.length||!b[0].length||b[0][1]!=="date"||a.dateFormat||(a.dateFormat=function(L,D){var j,Y,X,W="YYYY/mm/dd",q=[],tt=[],Q=[],nt=0,lt=!1;for((!D||D>L.length)&&(D=L.length);nt<D;nt++)if(L[nt]!==void 0&&L[nt]&&L[nt].length)for(j=L[nt].trim().replace(/\//g," ").replace(/\-/g," ").replace(/\./g," ").split(" "),Q=["","",""],X=0;X<j.length;X++)X<Q.length&&(j[X]=parseInt(j[X],10),j[X]&&(tt[X]=!tt[X]||tt[X]<j[X]?j[X]:tt[X],q[X]!==void 0?q[X]!==j[X]&&(q[X]=!1):q[X]=j[X],j[X]>31?j[X]<100?Q[X]="YY":Q[X]="YYYY":j[X]>12&&j[X]<=31?(Q[X]="dd",lt=!0):Q[X].length||(Q[X]="mm")));if(lt){for(X=0;X<q.length;X++)q[X]!==!1?tt[X]>12&&Q[X]!=="YY"&&Q[X]!=="YYYY"&&(Q[X]="YY"):tt[X]>12&&Q[X]==="mm"&&(Q[X]="dd");return Q.length===3&&Q[1]==="dd"&&Q[2]==="dd"&&(Q[2]="YY"),Y=Q.join("/"),(a.dateFormats||o.dateFormats)[Y]?Y:(g("deduceDateFailed"),W)}return W}(e[0])),this.dataFound()}return e},r.prototype.parseTable=function(){var l=this.options,t=this.columns||[],i=l.startRow||0,o=l.endRow||Number.MAX_VALUE,e=l.startColumn||0,a=l.endColumn||Number.MAX_VALUE;if(l.table){var s=l.table;typeof s=="string"&&(s=I.getElementById(s)),[].forEach.call(s.getElementsByTagName("tr"),function(h,b){b>=i&&b<=o&&[].forEach.call(h.children,function(k,O){var d=t[O-e],x=1;if((k.tagName==="TD"||k.tagName==="TH")&&O>=e&&O<=a)for(t[O-e]||(t[O-e]=[]),t[O-e][b-i]=k.innerHTML;b-i>=x&&d[b-i-x]===void 0;)d[b-i-x]=null,x++})}),this.dataFound()}return t},r.prototype.fetchLiveData=function(){var l=this,t=this.chart,i=this.options,o=i.enablePolling,e=u(i),a=0,s=1e3*(i.dataRefreshRate||2);return!!C(i)&&(s<1e3&&(s=1e3),delete i.csvURL,delete i.rowsURL,delete i.columnsURL,function h(b){function k(O,d,x){if(!O||!/^(http|\/|\.\/|\.\.\/)/.test(O))return O&&i.error&&i.error("Invalid URL"),!1;function T(){o&&t.liveDataURL===O&&(l.liveDataTimeout=setTimeout(h,s))}return b&&(clearTimeout(l.liveDataTimeout),t.liveDataURL=O),E({url:O,dataType:x||"json",success:function(N){t&&t.series&&d(N),T()},error:function(N,z){return++a<3&&T(),i.error&&i.error(z,N)}}),!0}k(e.csvURL,function(O){t.update({data:{csv:O}})},"text")||k(e.rowsURL,function(O){t.update({data:{rows:O}})})||k(e.columnsURL,function(O){t.update({data:{columns:O}})})}(!0),C(i))},r.prototype.parseGoogleSpreadsheet=function(){var l=this,t=this.options,i=t.googleSpreadsheetKey,o=this.chart,e=Math.max(1e3*(t.dataRefreshRate||2),4e3),a=function(){if(t.googleSpreadsheetRange)return t.googleSpreadsheetRange;var s="ABCDEFGHIJKLMNOPQRSTUVWXYZ",h=(s.charAt(t.startColumn||0)||"A")+((t.startRow||0)+1),b=s.charAt(w(t.endColumn,-1))||"ZZ";return y(t.endRow)&&(b+=t.endRow+1),""+h+":".concat(b)};return i&&(delete t.googleSpreadsheetKey,function s(h){var b=["https://sheets.googleapis.com/v4/spreadsheets",i,"values",a(),"?alt=json&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE&dateTimeRenderOption=FORMATTED_STRING&key="+t.googleAPIKey].join("/");E({url:b,dataType:"json",success:function(k){h(k),t.enablePolling&&(l.liveDataTimeout=setTimeout(function(){s(h)},e))},error:function(k,O){return t.error&&t.error(O,k)}})}(function(s){var h=s.values;if(!h||h.length===0)return!1;var b=h.reduce(function(k,O){return Math.max(k,O.length)},0);h.forEach(function(k){for(var O=0;O<b;O++)k[O]===void 0&&(k[O]=null)}),o&&o.series?o.update({data:{columns:h}}):(l.columns=h,l.dataFound())})),!1},r.prototype.trim=function(l,t){return typeof l=="string"&&(l=l.replace(/^\s+|\s+$/g,""),t&&/^[0-9\s]+$/.test(l)&&(l=l.replace(/\s/g,"")),this.decimalRegex&&(l=l.replace(this.decimalRegex,"$1.$2"))),l},r.prototype.parseTypes=function(){for(var l=this.columns||[],t=l.length;t--;)this.parseColumn(l[t],t)},r.prototype.parseColumn=function(l,t){var i,o,e,a,s,h,b,k=this.rawColumns,O=this.columns,d=this.firstRowAsNames,x=this.valueCount.xColumns.indexOf(t)!==-1,T=[],N=this.chartOptions,z=(this.options.columnTypes||[])[t],L=x&&(N&&N.xAxis&&M(N.xAxis)[0].type==="category"||z==="string"),D=y(l.name),j=l.length;for(k[t]||(k[t]=[]);j--;)i=T[j]||l[j],e=this.trim(i),a=this.trim(i,!0),o=parseFloat(a),k[t][j]===void 0&&(k[t][j]=e),L||j===0&&d&&!D?l[j]=""+e:+a===o?(l[j]=o,o>31536e6&&z!=="float"?l.isDatetime=!0:l.isNumeric=!0,l[j+1]!==void 0&&(b=o>l[j+1])):(e&&e.length&&(s=this.parseDate(i)),x&&m(s)&&z!=="float"?(T[j]=i,l[j]=s,l.isDatetime=!0,l[j+1]!==void 0&&((h=s>l[j+1])!==b&&b!==void 0&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,j=l.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):l.unsorted=!0),b=h)):(l[j]=e===""?null:e,j!==0&&(l.isDatetime||l.isNumeric)&&(l.mixed=!0)));if(x&&l.mixed&&(O[t]=k[t]),x&&b&&this.options.sort)for(t=0;t<O.length;t++)O[t].reverse(),d&&O[t].unshift(O[t].pop())},r.prototype.parseDate=function(l){var t,i,o,e,a=this.options.parseDate,s=this.options.dateFormat||this.dateFormat;if(a)t=a(l);else if(typeof l=="string"){if(s)(o=this.dateFormats[s])||(o=this.dateFormats["YYYY/mm/dd"]),(e=l.match(o.regex))&&(t=o.parser(e));else for(i in this.dateFormats)if(o=this.dateFormats[i],e=l.match(o.regex)){this.dateFormat=s=i,this.alternativeFormat=o.alternative,t=o.parser(e);break}e||(l.match(/:.+(GMT|UTC|[Z+-])/)&&(l=l.replace(/\s*(?:GMT|UTC)?([+-])(\d\d)(\d\d)$/,"$1$2:$3").replace(/(?:\s+|GMT|UTC)([+-])/,"$1").replace(/(\d)\s*(?:GMT|UTC|Z)$/,"$1+00:00")),typeof(e=Date.parse(l))=="object"&&e!==null&&e.getTime?t=e.getTime()-6e4*e.getTimezoneOffset():m(e)&&(t=e-6e4*new Date(e).getTimezoneOffset()))}return t},r.prototype.getData=function(){if(this.columns)return this.rowsToColumns(this.columns).slice(1)},r.prototype.parsed=function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)},r.prototype.complete=function(){var l,t,i,o,e,a,s,h,b,k,O,d,x=this.columns,T=this.options,N=[];if(T.complete||T.afterComplete){if(this.firstRowAsNames)for(o=0;o<x.length;o++){var z=x[o];y(z.name)||(z.name=w(z.shift(),"").toString())}for(t=[],k=function(L,D){var j,Y,X,W=[],q=[];for(Y=0;Y<L;Y+=1)W.push(!0);for(j=0;j<D.length;j+=1)for(X=D[j].getReferencedColumnIndexes(),Y=0;Y<X.length;Y+=1)W[X[Y]]=!1;for(Y=0;Y<W.length;Y+=1)W[Y]&&q.push(Y);return q}(x.length,this.valueCount.seriesBuilders),s=0;s<this.valueCount.seriesBuilders.length;s++)(b=this.valueCount.seriesBuilders[s]).populateColumns(k)&&N.push(b);for(;k.length>0;){for((b=new f).addColumnReader(0,"x"),(d=k.indexOf(0))!==-1&&k.splice(d,1),o=0;o<this.valueCount.global;o++)b.addColumnReader(void 0,this.valueCount.globalPointArrayMap[o]);b.populateColumns(k)&&N.push(b)}if(N.length>0&&N[0].readers.length>0&&(O=x[N[0].readers[0].columnIndex])!==void 0&&(O.isDatetime?l="datetime":O.isNumeric||(l="category")),l==="category")for(s=0;s<N.length;s++)for(b=N[s],a=0;a<b.readers.length;a++)b.readers[a].configName==="x"&&(b.readers[a].configName="name");for(s=0;s<N.length;s++){for(b=N[s],i=[],e=0;e<x[0].length;e++)i[e]=b.read(x,e);t[s]={data:i},b.name&&(t[s].name=b.name),l==="category"&&(t[s].turboThreshold=0)}h={series:t},l&&(h.xAxis={type:l},l==="category"&&(h.xAxis.uniqueNames=!1)),T.complete&&T.complete(h),T.afterComplete&&T.afterComplete(h)}},r.prototype.update=function(l,t){var i=this.chart,o=i.options;l&&(l.afterComplete=function(e){e&&(e.xAxis&&i.xAxis[0]&&e.xAxis.type===i.xAxis[0].options.type&&delete e.xAxis,i.update(e,t,!0))},u(!0,o.data,l),o.data&&o.data.googleSpreadsheetKey&&!l.columns&&delete o.data.columns,this.init(o.data))},r}();P(G,"init",function(r){var l=this,t=r.args[1],i=F().data,o=r.args[0]||{};if((i||o&&o.data)&&!l.hasDataDef){l.hasDataDef=!0;var e=u(i,o.data);l.data=new p(c(e,{afterComplete:function(a){var s,h;if(Object.hasOwnProperty.call(o,"series"))if(typeof o.series=="object")for(s=Math.max(o.series.length,a&&a.series?a.series.length:0);s--;)h=o.series[s]||{},o.series[s]=u(h,a&&a.series?a.series[s]:{});else delete o.series;o=u(a,o),l.init(o,t)}}),o,l),r.preventDefault()}});var f=function(){function r(){this.readers=[],this.pointIsArray=!0}return r.prototype.populateColumns=function(l){var t=!0;return this.readers.forEach(function(i){i.columnIndex===void 0&&(i.columnIndex=l.shift())}),this.readers.forEach(function(i){i.columnIndex===void 0&&(t=!1)}),t},r.prototype.read=function(l,t){var i,o=this,e=o.pointIsArray,a=e?[]:{};return o.readers.forEach(function(s){var h=l[s.columnIndex][t];e?a.push(h):s.configName.indexOf(".")>0?$.prototype.setNestedProperty(a,h,s.configName):a[s.configName]=h}),this.name===void 0&&o.readers.length>=2&&(i=o.getReferencedColumnIndexes()).length>=2&&(i.shift(),i.sort(function(s,h){return s-h}),this.name=l[i.shift()].name),a},r.prototype.addColumnReader=function(l,t){this.readers.push({columnIndex:l,configName:t}),t!=="x"&&t!=="y"&&t!==void 0&&(this.pointIsArray=!1)},r.prototype.getReferencedColumnIndexes=function(){var l,t,i=[];for(l=0;l<this.readers.length;l+=1)(t=this.readers[l]).columnIndex!==void 0&&i.push(t.columnIndex);return i},r.prototype.hasReader=function(l){var t;for(t=0;t<this.readers.length;t+=1)if(this.readers[t].configName===l)return!0},r}();return p}),et(_,"masters/modules/data.src.js",[_["Core/Globals.js"],_["Core/HttpUtilities.js"],_["Extensions/Data.js"]],function(G,B,H){var U=G;U.ajax=B.ajax,U.data=H.data,U.getJSON=B.getJSON,U.post=B.post,U.Data=H,U.HttpUtilities=B})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},6681:(it,rt,st)=>{Object.defineProperty(rt,"__esModule",{value:!0}),rt.getCalculatedPercentageLabelPosition=void 0;var ht=st(5035),ct=st(9223);rt.getCalculatedPercentageLabelPosition=function(pt,ft){var _,et,G,B,H,U,$=(0,ct.getCircleCenter)(pt),Z=$.circleCenterX,V=$.circleCenterY,F=pt.shapeArgs,I=F.start+Math.PI/2,E=F.end+Math.PI/2,A=(0,ht.calculateInscribedCircle)({innerArcRadius:F.innerR||0,outerArcRadius:F.r,phi1:I,phi2:E}),P=(_={angle:A.angle,radialDistance:A.radialDistance},et={x:Z,y:V},G=_.angle,B=_.radialDistance,H=et.x,U=et.y,{x:B*Math.sin(G)+H,y:-B*Math.cos(G)+U}),y=P.x,c=P.y;return{fontSize:(0,ct.calculateFontSize)(A.radius),slicePercentage:(0,ct.getSlicePercentage)(pt),circleCenterX:Z,circleCenterY:V,newCenterX:y,newCenterY:c}}},6713:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=typeof yo=="object"&&yo&&yo.Object===Object&&yo},6725:(it,rt,st)=>{var ht,ct,pt;pt=function(ft){var _=ft?ft._modules:{};function et(G,B,H,U){G.hasOwnProperty(B)||(G[B]=U.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:B,module:G[B]}})))}et(_,"Extensions/Pane.js",[_["Core/Chart/Chart.js"],_["Series/CenteredUtilities.js"],_["Core/Globals.js"],_["Core/Pointer.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=$.addEvent,V=$.correctFloat,F=$.defined,I=$.extend,E=$.merge,A=$.pick,P=$.splat;G.prototype.collectionsWithUpdate.push("pane");var y=function(){function g(m,u){this.background=void 0,this.center=void 0,this.chart=void 0,this.options=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(m,u)}return g.prototype.init=function(m,u){this.chart=u,this.background=[],u.pane.push(this),this.setOptions(m)},g.prototype.setOptions=function(m){this.options=m=E(this.defaultOptions,this.chart.angular?{background:{}}:void 0,m)},g.prototype.render=function(){var m,u,v=this.options,w=this.options.background,M=this.chart.renderer;if(this.group||(this.group=M.g("pane-group").attr({zIndex:v.zIndex||0}).add()),this.updateCenter(),w)for(w=P(w),m=Math.max(w.length,this.background.length||0),u=0;u<m;u++)w[u]&&this.axis?this.renderBackground(E(this.defaultBackgroundOptions,w[u]),u):this.background[u]&&(this.background[u]=this.background[u].destroy(),this.background.splice(u,1))},g.prototype.renderBackground=function(m,u){var v="animate",w={class:"highcharts-pane "+(m.className||"")};this.chart.styledMode||I(w,{fill:m.backgroundColor,stroke:m.borderColor,"stroke-width":m.borderWidth}),this.background[u]||(this.background[u]=this.chart.renderer.path().add(this.group),v="attr"),this.background[u][v]({d:this.axis.getPlotBandPath(m.from,m.to,m)}).attr(w)},g.prototype.updateCenter=function(m){this.center=(m||this.axis||{}).center=B.getCenter.call(this)},g.prototype.update=function(m,u){E(!0,this.options,m),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(v){v.pane===this&&(v.pane=null,v.update({},u))},this)},g}();function c(g,m,u,v,w){var M=!0,C=u[0],p=u[1],f=Math.sqrt(Math.pow(g-C,2)+Math.pow(m-p,2));if(F(v)&&F(w)){var r=Math.atan2(V(m-p,8),V(g-C,8));w!==v&&(M=v>w?r>=v&&r<=Math.PI||r<=w&&r>=-Math.PI:r>=v&&r<=V(w,8))}return f<=Math.ceil(u[2]/2)&&M}return G.prototype.getHoverPane=function(g){var m,u=this;return g&&u.pane.forEach(function(v){c(g.chartX-u.plotLeft,g.chartY-u.plotTop,v.center)&&(m=v)}),m},Z(G,"afterIsInsidePlot",function(g){var m;this.polar&&(g.options.inverted&&(m=[g.y,g.x],g.x=m[0],g.y=m[1]),g.isInsidePlot=this.pane.some(function(u){return c(g.x,g.y,u.center,u.axis&&u.axis.normalizedStartAngleRad,u.axis&&u.axis.normalizedEndAngleRad)}))}),Z(U,"beforeGetHoverData",function(g){var m=this.chart;m.polar?(m.hoverPane=m.getHoverPane(g),g.filter=function(u){return u.visible&&!(!g.shared&&u.directTouch)&&A(u.options.enableMouseTracking,!0)&&(!m.hoverPane||u.xAxis.pane===m.hoverPane)}):m.hoverPane=void 0}),Z(U,"afterGetHoverData",function(g){var m=this.chart;g.hoverPoint&&g.hoverPoint.plotX&&g.hoverPoint.plotY&&m.hoverPane&&!c(g.hoverPoint.plotX,g.hoverPoint.plotY,m.hoverPane.center)&&(g.hoverPoint=void 0)}),H.Pane=y,H.Pane}),et(_,"Series/AreaRange/AreaRangePoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H,U=this&&this.__extends||(H=function(A,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},H(A,P)},function(A,P){function y(){this.constructor=A}H(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=G.seriesTypes.area.prototype,Z=$.pointClass,V=$.pointClass.prototype,F=B.defined,I=B.isNumber,E=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.high=void 0,y.low=void 0,y.options=void 0,y.plotX=void 0,y.series=void 0,y}return U(P,A),P.prototype.setState=function(){var y=this.state,c=this.series,g=c.chart.polar;F(this.plotHigh)||(this.plotHigh=c.yAxis.toPixels(this.high,!0)),F(this.plotLow)||(this.plotLow=this.plotY=c.yAxis.toPixels(this.low,!0)),c.stateMarkerGraphic&&(c.lowerStateMarkerGraphic=c.stateMarkerGraphic,c.stateMarkerGraphic=c.upperStateMarkerGraphic),this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,g&&I(this.plotHighX)&&(this.plotX=this.plotHighX),V.setState.apply(this,arguments),this.state=y,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],g&&I(this.plotLowX)&&(this.plotX=this.plotLowX),c.stateMarkerGraphic&&(c.upperStateMarkerGraphic=c.stateMarkerGraphic,c.stateMarkerGraphic=c.lowerStateMarkerGraphic,c.lowerStateMarkerGraphic=void 0),V.setState.apply(this,arguments)},P.prototype.haloPath=function(){var y=this.series.chart.polar,c=[];return this.plotY=this.plotLow,y&&I(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(c=V.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,y&&I(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(c=c.concat(V.haloPath.apply(this,arguments))),c},P.prototype.isValid=function(){return I(this.low)&&I(this.high)},P}(Z);return E}),et(_,"Series/AreaRange/AreaRangeSeries.js",[_["Series/AreaRange/AreaRangePoint.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(C,p){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,r){f.__proto__=r}||function(f,r){for(var l in r)r.hasOwnProperty(l)&&(f[l]=r[l])},$(C,p)},function(C,p){function f(){this.constructor=C}$(C,p),C.prototype=p===null?Object.create(p):(f.prototype=p.prototype,new f)}),V=B.noop,F=H.seriesTypes,I=F.area,E=F.area.prototype,A=F.column.prototype,P=U.addEvent,y=U.defined,c=U.extend,g=U.isArray,m=U.isNumber,u=U.pick,v=U.merge,w={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}},M=function(C){function p(){var f=C!==null&&C.apply(this,arguments)||this;return f.data=void 0,f.options=void 0,f.points=void 0,f.lowerStateMarkerGraphic=void 0,f.xAxis=void 0,f}return Z(p,C),p.prototype.toYData=function(f){return[f.low,f.high]},p.prototype.highToXY=function(f){var r=this.chart,l=this.xAxis.postTranslate(f.rectPlotX||0,this.yAxis.len-(f.plotHigh||0));f.plotHighX=l.x-r.plotLeft,f.plotHigh=l.y-r.plotTop,f.plotLowX=f.plotX},p.prototype.getGraphPath=function(f){var r,l,t,i=[],o=[],e=E.getGraphPath,a=this.options,s=this.chart.polar,h=s&&a.connectEnds!==!1,b=a.connectNulls,k=a.step;for(r=(f=f||this.points).length;r--;){l=f[r];var O=s?{plotX:l.rectPlotX,plotY:l.yBottom,doCurve:!1}:{plotX:l.plotX,plotY:l.plotY,doCurve:!1};l.isNull||h||b||f[r+1]&&!f[r+1].isNull||o.push(O),t={polarPlotY:l.polarPlotY,rectPlotX:l.rectPlotX,yBottom:l.yBottom,plotX:u(l.plotHighX,l.plotX),plotY:l.plotHigh,isNull:l.isNull},o.push(t),i.push(t),l.isNull||h||b||f[r-1]&&!f[r-1].isNull||o.push(O)}var d=e.call(this,f);k&&(k===!0&&(k="left"),a.step={left:"right",center:"center",right:"left"}[k]);var x=e.call(this,i),T=e.call(this,o);a.step=k;var N=[].concat(d,x);return!this.chart.polar&&T[0]&&T[0][0]==="M"&&(T[0]=["L",T[0][1],T[0][2]]),this.graphPath=N,this.areaPath=d.concat(T),N.isArea=!0,N.xMap=d.xMap,this.areaPath.xMap=d.xMap,N},p.prototype.drawDataLabels=function(){var f,r,l,t,i,o=this.points,e=o.length,a=[],s=this.options.dataLabels,h=this.chart.inverted;if(s){if(g(s)?(t=s[0]||{enabled:!1},i=s[1]||{enabled:!1}):((t=c({},s)).x=s.xHigh,t.y=s.yHigh,(i=c({},s)).x=s.xLow,i.y=s.yLow),t.enabled||this._hasPointLabels){for(f=e;f--;)if(r=o[f]){var b=r.plotHigh,k=b===void 0?0:b,O=r.plotLow,d=O===void 0?0:O;l=t.inside?k<d:k>d,r.y=r.high,r._plotY=r.plotY,r.plotY=k,a[f]=r.dataLabel,r.dataLabel=r.dataLabelUpper,r.below=l,h?t.align||(t.align=l?"right":"left"):t.verticalAlign||(t.verticalAlign=l?"top":"bottom")}for(this.options.dataLabels=t,E.drawDataLabels&&E.drawDataLabels.apply(this,arguments),f=e;f--;)(r=o[f])&&(r.dataLabelUpper=r.dataLabel,r.dataLabel=a[f],delete r.dataLabels,r.y=r.low,r.plotY=r._plotY)}if(i.enabled||this._hasPointLabels){for(f=e;f--;)if(r=o[f]){var x=r.plotHigh,T=(k=x===void 0?0:x,r.plotLow);d=T===void 0?0:T,l=i.inside?k<d:k>d,r.below=!l,h?i.align||(i.align=l?"left":"right"):i.verticalAlign||(i.verticalAlign=l?"bottom":"top")}this.options.dataLabels=i,E.drawDataLabels&&E.drawDataLabels.apply(this,arguments)}if(t.enabled)for(f=e;f--;)(r=o[f])&&(r.dataLabels=[r.dataLabelUpper,r.dataLabel].filter(function(N){return!!N}));this.options.dataLabels=s}},p.prototype.alignDataLabel=function(){A.alignDataLabel.apply(this,arguments)},p.prototype.drawPoints=function(){var f,r,l=this,t=l.points.length;for(E.drawPoints.apply(l,arguments),f=0;f<t;)(r=l.points[f]).graphics=r.graphics||[],r.origProps={plotY:r.plotY,plotX:r.plotX,isInside:r.isInside,negative:r.negative,zone:r.zone,y:r.y},(r.graphic||r.graphics[0])&&(r.graphics[0]=r.graphic),r.graphic=r.graphics[1],r.plotY=r.plotHigh,y(r.plotHighX)&&(r.plotX=r.plotHighX),r.y=u(r.high,r.origProps.y),r.negative=r.y<(l.options.threshold||0),l.zones.length&&(r.zone=r.getZone()),l.chart.polar||(r.isInside=r.isTopInside=r.plotY!==void 0&&r.plotY>=0&&r.plotY<=l.yAxis.len&&r.plotX>=0&&r.plotX<=l.xAxis.len),f++;for(E.drawPoints.apply(l,arguments),f=0;f<t;)(r=l.points[f]).graphics=r.graphics||[],(r.graphic||r.graphics[1])&&(r.graphics[1]=r.graphic),r.graphic=r.graphics[0],r.origProps&&(c(r,r.origProps),delete r.origProps),f++},p.defaultOptions=v(I.defaultOptions,w),p}(I);return P(M,"afterTranslate",function(){var C=this;this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(function(p){var f=p.high,r=p.plotY;p.isNull?p.plotY=void 0:(p.plotLow=r,p.plotHigh=m(f)?C.yAxis.translate(C.dataModify?C.dataModify.modifyValue(f):f,!1,!0,void 0,!0):void 0,C.dataModify&&(p.yBottom=p.plotHigh))})},{order:0}),P(M,"afterTranslate",function(){var C=this;this.points.forEach(function(p){if(C.chart.polar)C.highToXY(p),p.plotLow=p.plotY,p.tooltipPos=[((p.plotHighX||0)+(p.plotLowX||0))/2,((p.plotHigh||0)+(p.plotLow||0))/2];else{var f=p.pos(!1,p.plotLow),r=p.pos(!1,p.plotHigh);f&&r&&(f[0]=(f[0]+r[0])/2,f[1]=(f[1]+r[1])/2),p.tooltipPos=f}})},{order:3}),c(M.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:G,pointValKey:"low",setStackedPoints:V}),H.registerSeriesType("arearange",M),M}),et(_,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[_["Series/AreaRange/AreaRangeSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(E,A){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,y){P.__proto__=y}||function(P,y){for(var c in y)y.hasOwnProperty(c)&&(P[c]=y[c])},U(E,A)},function(E,A){function P(){this.constructor=E}U(E,A),E.prototype=A===null?Object.create(A):(P.prototype=A.prototype,new P)}),Z=B.seriesTypes.spline.prototype,V=H.merge,F=H.extend,I=function(E){function A(){var P=E!==null&&E.apply(this,arguments)||this;return P.options=void 0,P.data=void 0,P.points=void 0,P}return $(A,E),A.defaultOptions=V(G.defaultOptions),A}(G);return F(I.prototype,{getPointSpline:Z.getPointSpline}),B.registerSeriesType("areasplinerange",I),I}),et(_,"Series/BoxPlot/BoxPlotSeries.js",[_["Series/Column/ColumnSeries.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(P,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var m in g)g.hasOwnProperty(m)&&(c[m]=g[m])},$(P,y)},function(P,y){function c(){this.constructor=P}$(P,y),P.prototype=y===null?Object.create(y):(c.prototype=y.prototype,new c)}),V=B.noop,F=U.extend,I=U.merge,E=U.pick,A=function(P){function y(){var c=P!==null&&P.apply(this,arguments)||this;return c.data=void 0,c.options=void 0,c.points=void 0,c}return Z(y,P),y.prototype.pointAttribs=function(){return{}},y.prototype.translate=function(){var c=this,g=c.yAxis,m=c.pointArrayMap;P.prototype.translate.apply(c),c.points.forEach(function(u){m.forEach(function(v){u[v]!==null&&(u[v+"Plot"]=g.translate(u[v],0,1,0,1))}),u.plotHigh=u.highPlot})},y.prototype.drawPoints=function(){var c,g,m,u,v,w,M,C,p,f,r,l=this,t=l.points,i=l.options,o=l.chart,e=o.renderer,a=0,s=l.doQuartiles!==!1,h=l.options.whiskerLength;t.forEach(function(b){var k=b.graphic,O=k?"animate":"attr",d=b.shapeArgs,x={},T={},N={},z={},L=b.color||l.color;if(b.plotY!==void 0){M=Math.round(d.width),C=Math.floor(d.x),p=C+M,f=Math.round(M/2),c=Math.floor(s?b.q1Plot:b.lowPlot),g=Math.floor(s?b.q3Plot:b.lowPlot),m=Math.floor(b.highPlot),u=Math.floor(b.lowPlot),k||(b.graphic=k=e.g("point").add(l.group),b.stem=e.path().addClass("highcharts-boxplot-stem").add(k),h&&(b.whiskers=e.path().addClass("highcharts-boxplot-whisker").add(k)),s&&(b.box=e.path(void 0).addClass("highcharts-boxplot-box").add(k)),b.medianShape=e.path(void 0).addClass("highcharts-boxplot-median").add(k)),o.styledMode||(T.stroke=b.stemColor||i.stemColor||L,T["stroke-width"]=E(b.stemWidth,i.stemWidth,i.lineWidth),T.dashstyle=b.stemDashStyle||i.stemDashStyle||i.dashStyle,b.stem.attr(T),h&&(N.stroke=b.whiskerColor||i.whiskerColor||L,N["stroke-width"]=E(b.whiskerWidth,i.whiskerWidth,i.lineWidth),N.dashstyle=b.whiskerDashStyle||i.whiskerDashStyle||i.dashStyle,b.whiskers.attr(N)),s&&(x.fill=b.fillColor||i.fillColor||L,x.stroke=i.lineColor||L,x["stroke-width"]=i.lineWidth||0,x.dashstyle=b.boxDashStyle||i.boxDashStyle||i.dashStyle,b.box.attr(x)),z.stroke=b.medianColor||i.medianColor||L,z["stroke-width"]=E(b.medianWidth,i.medianWidth,i.lineWidth),z.dashstyle=b.medianDashStyle||i.medianDashStyle||i.dashStyle,b.medianShape.attr(z));var D=void 0;w=b.stem.strokeWidth()%2/2,D=[["M",a=C+f+w,g],["L",a,m],["M",a,c],["L",a,u]],b.stem[O]({d:D}),s&&(w=b.box.strokeWidth()%2/2,c=Math.floor(c)+w,g=Math.floor(g)+w,D=[["M",C+=w,g],["L",C,c],["L",p+=w,c],["L",p,g],["L",C,g],["Z"]],b.box[O]({d:D})),h&&(w=b.whiskers.strokeWidth()%2/2,m+=w,u+=w,r=/%$/.test(h)?f*parseFloat(h)/100:h/2,D=[["M",a-r,m],["L",a+r,m],["M",a-r,u],["L",a+r,u]],b.whiskers[O]({d:D})),v=Math.round(b.medianPlot),w=b.medianShape.strokeWidth()%2/2,D=[["M",C,v+=w],["L",p,v]],b.medianShape[O]({d:D})}})},y.prototype.toYData=function(c){return[c.low,c.q1,c.median,c.q3,c.high]},y.defaultOptions=I(G.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),y}(G);return F(A.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:V,setStackedPoints:V}),H.registerSeriesType("boxplot",A),A}),et(_,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),et(_,"Series/Bubble/BubbleLegendItem.js",[_["Core/Color/Color.js"],_["Core/FormatUtilities.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $=G.parse,Z=H.noop,V=U.arrayMax,F=U.arrayMin,I=U.isNumber,E=U.merge,A=U.pick,P=U.stableSort;return function(){function y(c,g){this.chart=void 0,this.fontMetrics=void 0,this.legend=void 0,this.maxLabel=void 0,this.movementX=void 0,this.ranges=void 0,this.selected=void 0,this.visible=void 0,this.symbols=void 0,this.options=void 0,this.setState=Z,this.init(c,g)}return y.prototype.init=function(c,g){this.options=c,this.visible=!0,this.chart=g.chart,this.legend=g},y.prototype.addToLegend=function(c){c.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(c){var g,m=this.chart,u=A(c.options.itemDistance,20),v=this.legendItem||{},w=this.options,M=w.ranges,C=w.connectorDistance;if(this.fontMetrics=m.renderer.fontMetrics(w.labels.style.fontSize),M&&M.length&&I(M[0].value)){P(M,function(l,t){return t.value-l.value}),this.ranges=M,this.setOptions(),this.render();var p=this.getMaxLabelSize(),f=this.ranges[0].radius,r=2*f;g=(g=C-f+p.width)>0?g:0,this.maxLabel=p,this.movementX=w.labels.align==="left"?g:0,v.labelWidth=r+g+u,v.labelHeight=r+this.fontMetrics.h/2}else c.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var c=this.ranges,g=this.options,m=this.chart.series[g.seriesIndex],u=this.legend.baseline,v={zIndex:g.zIndex,"stroke-width":g.borderWidth},w={zIndex:g.zIndex,"stroke-width":g.connectorWidth},M={align:this.legend.options.rtl||g.labels.align==="left"?"right":"left",zIndex:g.zIndex},C=m.options.marker.fillOpacity,p=this.chart.styledMode;c.forEach(function(f,r){p||(v.stroke=A(f.borderColor,g.borderColor,m.color),v.fill=A(f.color,g.color,C!==1?$(m.color).setOpacity(C).get("rgba"):m.color),w.stroke=A(f.connectorColor,g.connectorColor,m.color)),c[r].radius=this.getRangeRadius(f.value),c[r]=E(c[r],{center:c[0].radius-c[r].radius+u}),p||E(!0,c[r],{bubbleAttribs:E(v),connectorAttribs:E(w),labelAttribs:M})},this)},y.prototype.getRangeRadius=function(c){var g=this.options,m=this.options.seriesIndex,u=this.chart.series[m],v=g.ranges[0].value,w=g.ranges[g.ranges.length-1].value,M=g.minSize,C=g.maxSize;return u.getRadius.call(this,w,v,M,C,c)},y.prototype.render=function(){var c=this.legendItem||{},g=this.chart.renderer,m=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),c.symbol=g.g("bubble-legend"),c.label=g.g("bubble-legend-item"),c.symbol.translateX=0,c.symbol.translateY=0;for(var u=0,v=this.ranges;u<v.length;u++){var w=v[u];w.value>=m&&this.renderRange(w)}c.symbol.add(c.label),c.label.add(c.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(c){var g=this.ranges[0],m=this.legend,u=this.options,v=u.labels,w=this.chart,M=w.series[u.seriesIndex],C=w.renderer,p=this.symbols,f=p.labels,r=c.center,l=Math.abs(c.radius),t=u.connectorDistance||0,i=v.align,o=m.options.rtl,e=u.borderWidth,a=u.connectorWidth,s=g.radius||0,h=r-l-e/2+a/2,b=this.fontMetrics,k=b.f/2-(b.h-b.f)/2,O=(h%1?1:.5)-(a%2?0:.5),d=C.styledMode,x=o||i==="left"?-t:t;i==="center"&&(x=0,u.connectorDistance=0,c.labelAttribs.align="center");var T=h+u.labels.y,N=s+x+u.labels.x;p.bubbleItems.push(C.circle(s,r+O,l).attr(d?{}:c.bubbleAttribs).addClass((d?"highcharts-color-"+M.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(u.className||"")).add(this.legendItem.symbol)),p.connectors.push(C.path(C.crispLine([["M",s,h],["L",s+x,h]],u.connectorWidth)).attr(d?{}:c.connectorAttribs).addClass((d?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(u.connectorClassName||"")).add(this.legendItem.symbol));var z=C.text(this.formatLabel(c),N,T+k).attr(d?{}:c.labelAttribs).css(d?{}:v.style).addClass("highcharts-bubble-legend-labels "+(u.labels.className||"")).add(this.legendItem.symbol);f.push(z),z.placed=!0,z.alignAttr={x:N,y:T+k}},y.prototype.getMaxLabelSize=function(){var c,g;return this.symbols.labels.forEach(function(m){g=m.getBBox(!0),c=c?g.width>c.width?g:c:g}),c||{}},y.prototype.formatLabel=function(c){var g=this.options,m=g.labels.formatter,u=g.labels.format,v=this.chart.numberFormatter;return u?B.format(u,c):m?m.call(c):v(c.value,1)},y.prototype.hideOverlappingLabels=function(){var c=this.chart,g=this.options.labels.allowOverlap,m=this.symbols;!g&&m&&(c.hideOverlappingLabels(m.labels),m.labels.forEach(function(u,v){u.newOpacity?u.newOpacity!==u.oldOpacity&&m.connectors[v].show():m.connectors[v].hide()}))},y.prototype.getRanges=function(){var c,g,m=this.legend.bubbleLegend,u=m.chart.series,v=m.options.ranges,w=Number.MAX_VALUE,M=-Number.MAX_VALUE;return u.forEach(function(C){C.isBubble&&!C.ignoreSeries&&(g=C.zData.filter(I)).length&&(w=A(C.options.zMin,Math.min(w,Math.max(F(g),C.options.displayNegative===!1?C.options.zThreshold:-Number.MAX_VALUE))),M=A(C.options.zMax,Math.max(M,V(g))))}),c=w===M?[{value:M}]:[{value:w},{value:(w+M)/2},{value:M,autoRanges:!0}],v.length&&v[0].radius&&c.reverse(),c.forEach(function(C,p){v&&v[p]&&(c[p]=E(v[p],C))}),c},y.prototype.predictBubbleSizes=function(){var c,g=this.chart,m=this.fontMetrics,u=g.legend.options,v=u.floating,w=u.layout==="horizontal",M=w?g.legend.lastLineHeight:0,C=g.plotSizeX,p=g.plotSizeY,f=g.series[this.options.seriesIndex],r=f.getPxExtremes(),l=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(p,C),o=f.options.maxSize;return v||!/%$/.test(o)?c=t:(o=parseFloat(o),c=(i+M-m.h/2)*o/100/(o/100+1),(w&&p-c>=C||!w&&C-c>=p)&&(c=t)),[l,Math.ceil(c)]},y.prototype.updateRanges=function(c,g){var m=this.legend.options.bubbleLegend;m.minSize=c,m.maxSize=g,m.ranges=this.getRanges()},y.prototype.correctSizes=function(){var c=this.legend,g=this.chart.series[this.options.seriesIndex].getPxExtremes(),m=g.maxPxSize,u=this.options.maxSize;Math.abs(Math.ceil(m)-u)>1&&(this.updateRanges(this.options.minSize,g.maxPxSize),c.render())},y}()}),et(_,"Series/Bubble/BubbleLegendComposition.js",[_["Series/Bubble/BubbleLegendDefaults.js"],_["Series/Bubble/BubbleLegendItem.js"],_["Core/Defaults.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $=H.setOptions,Z=U.addEvent,V=U.objectEach,F=U.wrap,I=[];function E(m,u,v){var w,M,C,p=this,f=p.legend,r=A(p)>=0;f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&r?(w=f.bubbleLegend.options,M=f.bubbleLegend.predictBubbleSizes(),f.bubbleLegend.updateRanges(M[0],M[1]),w.placed||(f.group.placed=!1,f.allItems.forEach(function(l){(C=l.legendItem||{}).group&&(C.group.translateY=null)})),f.render(),p.getMargins(),p.axes.forEach(function(l){l.visible&&l.render(),w.placed||(l.setScale(),l.updateNames(),V(l.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),w.placed=!0,p.getMargins(),m.call(p,u,v),f.bubbleLegend.correctSizes(),g(f,P(f))):(m.call(p,u,v),f&&f.options.enabled&&f.bubbleLegend&&(f.render(),g(f,P(f))))}function A(m){for(var u=m.series,v=0;v<u.length;){if(u[v]&&u[v].isBubble&&u[v].visible&&u[v].zData.length)return v;v++}return-1}function P(m){var u,v,w,M=m.allItems,C=[],p=M.length,f=0,r=0;for(f=0;f<p;f++)if(v=M[f].legendItem||{},w=(M[f+1]||{}).legendItem||{},v.labelHeight&&(M[f].itemHeight=v.labelHeight),M[f]===M[p-1]||v.y!==w.y){for(C.push({height:0}),u=C[C.length-1];r<=f;r++)M[r].itemHeight>u.height&&(u.height=M[r].itemHeight);u.step=f}return C}function y(m){var u=this,v=u.bubbleLegend,w=u.options,M=w.bubbleLegend,C=A(u.chart);v&&v.ranges&&v.ranges.length&&(M.ranges.length&&(M.autoRanges=!!M.ranges[0].autoRanges),u.destroyItem(v)),C>=0&&w.enabled&&M.enabled&&(M.seriesIndex=C,u.bubbleLegend=new B(M,u),u.bubbleLegend.addToLegend(m.allItems))}function c(){var m,u=this,v=u.chart,w=u.visible,M=u.chart.legend;M&&M.bubbleLegend&&(u.visible=!w,u.ignoreSeries=w,m=A(v)>=0,M.bubbleLegend.visible!==m&&(M.update({bubbleLegend:{enabled:m}}),M.bubbleLegend.visible=m),u.visible=w)}function g(m,u){var v,w,M,C,p=m.allItems,f=m.options.rtl,r=0;p.forEach(function(l,t){(C=l.legendItem||{}).group&&(v=C.group.translateX||0,w=C.y||0,((M=l.movementX)||f&&l.ranges)&&(M=f?v-l.options.maxSize/2:v+M,C.group.attr({translateX:M})),t>u[r].step&&r++,C.group.attr({translateY:Math.round(w+u[r].height/2)}),C.y=w+u[r].height/2)})}return{compose:function(m,u,v){I.indexOf(m)===-1&&(I.push(m),$({legend:{bubbleLegend:G}}),F(m.prototype,"drawChartBox",E)),I.indexOf(u)===-1&&(I.push(u),Z(u,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",c))}}}),et(_,"Series/Bubble/BubblePoint.js",[_["Core/Series/Point.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(I,E){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,P){A.__proto__=P}||function(A,P){for(var y in P)P.hasOwnProperty(y)&&(A[y]=P[y])},U(I,E)},function(I,E){function A(){this.constructor=I}U(I,E),I.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),Z=B.seriesTypes.scatter.prototype.pointClass,V=H.extend,F=function(I){function E(){var A=I!==null&&I.apply(this,arguments)||this;return A.options=void 0,A.series=void 0,A}return $(E,I),E.prototype.haloPath=function(A){return G.prototype.haloPath.call(this,A===0?0:(this.marker&&this.marker.radius||0)+A)},E}(Z);return V(F.prototype,{ttBelow:!1}),F}),et(_,"Series/Bubble/BubbleSeries.js",[_["Series/Bubble/BubbleLegendComposition.js"],_["Series/Bubble/BubblePoint.js"],_["Core/Color/Color.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z){var V,F=this&&this.__extends||(V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var a in e)e.hasOwnProperty(a)&&(o[a]=e[a])},V(t,i)},function(t,i){function o(){this.constructor=t}V(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=H.parse,E=U.noop,A=$.series,P=$.seriesTypes,y=P.column.prototype,c=P.scatter,g=Z.addEvent,m=Z.arrayMax,u=Z.arrayMin,v=Z.clamp,w=Z.extend,M=Z.isNumber,C=Z.merge,p=Z.pick,f=[];function r(){var t,i=this,o=this.len,e=this.chart,a=this.isXAxis,s=a?"xData":"yData",h=this.min,b=this.max-h,k=0,O=o,d=o/b;this.series.forEach(function(x){if(x.bubblePadding&&(x.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var T=x[s];if(a&&((x.onPoint||x).getRadii(0,0,x),x.onPoint&&(x.radii=x.onPoint.radii)),b>0){for(var N=T.length;N--;)if(M(T[N])&&i.dataMin<=T[N]&&T[N]<=i.max){var z=x.radii&&x.radii[N]||0;k=Math.min((T[N]-h)*d-z,k),O=Math.max((T[N]-h)*d+z,O)}}}}),t&&b>0&&!this.logarithmic&&(O-=o,d*=(o+Math.max(0,k)-Math.min(O,o))/o,[["min","userMin",k],["max","userMax",O]].forEach(function(x){p(i.options[x[0]],i[x[1]])===void 0&&(i[x[0]]+=x[2]/d)}))}var l=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.data=void 0,o.maxPxSize=void 0,o.minPxSize=void 0,o.options=void 0,o.points=void 0,o.radii=void 0,o.yData=void 0,o.zData=void 0,o}return F(i,t),i.compose=function(o,e,a,s){G.compose(e,a,s),f.indexOf(o)===-1&&(f.push(o),o.prototype.beforePadding=r)},i.prototype.animate=function(o){!o&&this.points.length<this.options.animationLimit&&this.points.forEach(function(e){var a=e.graphic;a&&a.width&&(this.hasRendered||a.attr({x:e.plotX,y:e.plotY,width:1,height:1}),a.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,a,s=this,h=this.zData,b=this.yData,k=[],O=this.chart.bubbleZExtremes,d=this.getPxExtremes(),x=d.minPxSize,T=d.maxPxSize;if(!O){var N,z=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(D){if(D.bubblePadding&&(D.visible||!s.chart.options.chart.ignoreHiddenSeries)){var j=(D.onPoint||D).getZExtremes();j&&(z=Math.min(z||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(O={zMin:z,zMax:L},this.chart.bubbleZExtremes=O):O={zMin:0,zMax:0}}for(e=0,o=h.length;e<o;e++)a=h[e],k.push(this.getRadius(O.zMin,O.zMax,x,T,a,b&&b[e]));this.radii=k},i.prototype.getRadius=function(o,e,a,s,h,b){var k=this.options,O=k.sizeBy!=="width",d=k.zThreshold,x=e-o,T=.5;if(b===null||h===null)return null;if(M(h)){if(k.sizeByAbsoluteValue&&(h=Math.abs(h-d),e=x=Math.max(e-d,Math.abs(o-d)),o=0),h<o)return a/2-1;x>0&&(T=(h-o)/x)}return O&&T>=0&&(T=Math.sqrt(T)),Math.ceil(a+T*(s-a))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var a=this.options.marker.fillOpacity,s=A.prototype.pointAttribs.call(this,o,e);return a!==1&&(s.fill=I(s.fill).setOpacity(a).get("rgba")),s},i.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var o=this.data,e=this.radii,a=this.getPxExtremes().minPxSize,s=o.length;s--;){var h=o[s],b=e?e[s]:0;M(b)&&b>=a/2?(h.marker=w(h.marker,{radius:b,width:2*b,height:2*b}),h.dlBox={x:h.plotX-b,y:h.plotY-b,width:2*b,height:2*b}):(h.shapeArgs=h.plotY=h.dlBox=void 0,h.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(s){var h;return typeof s=="string"&&(h=/%$/.test(s),s=parseInt(s,10)),h?o*s/100:s},a=e(p(this.options.minSize,8));return{minPxSize:a,maxPxSize:Math.max(e(p(this.options.maxSize,"20%")),a)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(M);if(e.length){var a=p(o.zMin,v(u(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),s=p(o.zMax,m(e));if(M(a)&&M(s))return{zMin:a,zMax:s}}},i.defaultOptions=C(c.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return M(e)?o(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),i}(c);return w(l.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:B,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),g(l,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),g(l,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",l),l}),et(_,"Series/ColumnRange/ColumnRangePoint.js",[_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B){var H,U=this&&this.__extends||(H=function(A,P){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},H(A,P)},function(A,P){function y(){this.constructor=A}H(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),$=G.seriesTypes,Z=$.column.prototype.pointClass.prototype,V=$.arearange.prototype.pointClass,F=B.extend,I=B.isNumber,E=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.options=void 0,y.series=void 0,y}return U(P,A),P.prototype.isValid=function(){return I(this.low)},P}(V);return F(E.prototype,{setState:Z.setState}),E}),et(_,"Series/ColumnRange/ColumnRangeSeries.js",[_["Series/ColumnRange/ColumnRangePoint.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(w,M){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,p){C.__proto__=p}||function(C,p){for(var f in p)p.hasOwnProperty(f)&&(C[f]=p[f])},$(w,M)},function(w,M){function C(){this.constructor=w}$(w,M),w.prototype=M===null?Object.create(M):(C.prototype=M.prototype,new C)}),V=B.noop,F=H.seriesTypes,I=F.arearange,E=F.column,A=F.column.prototype,P=U.clamp,y=U.extend,c=U.isNumber,g=U.merge,m=U.pick,u={pointRange:null,marker:null,states:{hover:{halo:!1}}},v=function(w){function M(){return w!==null&&w.apply(this,arguments)||this}return Z(M,w),M.prototype.setOptions=function(){return g(!0,arguments[0],{stacking:void 0}),I.prototype.setOptions.apply(this,arguments)},M.prototype.translate=function(){var C,p,f,r,l=this,t=this.yAxis,i=this.xAxis,o=i.startAngleRad,e=this.chart,a=this.xAxis.isRadial,s=Math.max(e.chartWidth,e.chartHeight)+999;function h(b){return P(b,-s,s)}A.translate.apply(this),this.points.forEach(function(b){var k=b.shapeArgs||{},O=l.options.minPointLength,d=b.plotY,x=t.translate(b.high,0,1,0,1);if(c(x)&&c(d))if(b.plotHigh=h(x),b.plotLow=h(d),r=b.plotHigh,C=m(b.rectPlotY,b.plotY)-b.plotHigh,Math.abs(C)<O?(C+=p=O-C,r-=p/2):C<0&&(r-=C*=-1),a&&l.polar)f=b.barX+o,b.shapeType="arc",b.shapeArgs=l.polar.arc(r+C,r,f,f+b.pointWidth);else{k.height=C,k.y=r;var T=k.x,N=T===void 0?0:T,z=k.width,L=z===void 0?0:z;b.tooltipPos=e.inverted?[t.len+t.pos-e.plotLeft-r-C/2,i.len+i.pos-e.plotTop-N-L/2,C]:[i.left-e.plotLeft+N+L/2,t.pos-e.plotTop+r+C/2,C]}})},M.prototype.pointAttribs=function(){return A.pointAttribs.apply(this,arguments)},M.prototype.translate3dPoints=function(){return A.translate3dPoints.apply(this,arguments)},M.prototype.translate3dShapes=function(){return A.translate3dShapes.apply(this,arguments)},M.defaultOptions=g(E.defaultOptions,I.defaultOptions,u),M}(I);return y(v.prototype,{directTouch:!0,pointClass:G,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:A.adjustForMissingColumns,animate:A.animate,crispCol:A.crispCol,drawGraph:V,drawPoints:A.drawPoints,getSymbol:V,drawTracker:A.drawTracker,getColumnMetrics:A.getColumnMetrics}),H.registerSeriesType("columnrange",v),v}),et(_,"Series/ColumnPyramid/ColumnPyramidSeries.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(A,P){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var g in c)c.hasOwnProperty(g)&&(y[g]=c[g])},U(A,P)},function(A,P){function y(){this.constructor=A}U(A,P),A.prototype=P===null?Object.create(P):(y.prototype=P.prototype,new y)}),Z=G.prototype,V=H.clamp,F=H.merge,I=H.pick,E=function(A){function P(){var y=A!==null&&A.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(P,A),P.prototype.translate=function(){var y=this,c=y.chart,g=y.options,m=y.dense=y.closestPointRange*y.xAxis.transA<2,u=y.borderWidth=I(g.borderWidth,m?0:1),v=y.yAxis,w=g.threshold,M=y.translatedThreshold=v.getThreshold(w),C=I(g.minPointLength,5),p=y.getColumnMetrics(),f=p.width,r=y.barW=Math.max(f,1+2*u),l=y.pointXOffset=p.offset;c.inverted&&(M-=.5),g.pointPadding&&(r=Math.ceil(r)),Z.translate.apply(y),y.points.forEach(function(t){var i,o,e,a,s,h,b,k,O,d,x,T,N=I(t.yBottom,M),z=999+Math.abs(N),L=V(t.plotY,-z,v.len+z),D=t.plotX+l,j=r/2,Y=Math.min(L,N),X=Math.max(L,N)-Y;t.barX=D,t.pointWidth=f,t.tooltipPos=c.inverted?[v.len+v.pos-c.plotLeft-L,y.xAxis.len-D-j,X]:[D+j,L+v.pos-c.plotTop,X],i=w+(t.total||t.y),g.stacking==="percent"&&(i=w+(t.y<0)?-100:100),e=v.toPixels(i,!0),b=D-(a=(o=c.plotHeight-e-(c.plotHeight-M))?j*(Y-e)/o:0)+j,k=D+a+j,O=D+(s=o?j*(Y+X-e)/o:0)+j,d=D-s+j,x=Y-C,T=Y+X,t.y<0&&(x=Y,T=Y+X+C),c.inverted&&(k=(b=D+j+(a=j*(e-(h=v.width-Y))/(o=e-(v.width-M))))-2*a,O=D-(s=j*(e-(h-X))/o)+j,d=D+s+j,x=Y,T=Y+X-C,t.y<0&&(T=Y+X+C)),t.shapeType="path",t.shapeArgs={x:b,y:x,width:k-b,height:X,d:[["M",b,x],["L",k,x],["L",O,T],["L",d,T],["Z"]]}})},P.defaultOptions=F(G.defaultOptions,{}),P}(G);return B.registerSeriesType("columnpyramid",E),E}),et(_,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}}),et(_,"Series/ErrorBar/ErrorBarSeries.js",[_["Series/BoxPlot/BoxPlotSeries.js"],_["Series/Column/ColumnSeries.js"],_["Series/ErrorBar/ErrorBarSeriesDefaults.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z,V=this&&this.__extends||(Z=function(y,c){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},Z(y,c)},function(y,c){function g(){this.constructor=y}Z(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),F=U.seriesTypes.arearange,I=$.addEvent,E=$.merge,A=$.extend,P=function(y){function c(){var g=y!==null&&y.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return V(c,y),c.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||B.prototype.getColumnMetrics.call(this)},c.prototype.drawDataLabels=function(){var g=this.pointValKey;F&&(F.prototype.drawDataLabels.call(this),this.data.forEach(function(m){m.y=m[g]}))},c.prototype.toYData=function(g){return[g.low,g.high]},c.defaultOptions=E(G.defaultOptions,H),c}(G);return I(P,"afterTranslate",function(){this.points.forEach(function(y){y.plotLow=y.plotY})},{order:0}),A(P.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),U.registerSeriesType("errorbar",P),P}),et(_,"Series/Gauge/GaugePoint.js",[_["Core/Series/SeriesRegistry.js"]],function(G){var B,H=this&&this.__extends||(B=function($,Z){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,F){V.__proto__=F}||function(V,F){for(var I in F)F.hasOwnProperty(I)&&(V[I]=F[I])},B($,Z)},function($,Z){function V(){this.constructor=$}B($,Z),$.prototype=Z===null?Object.create(Z):(V.prototype=Z.prototype,new V)}),U=function($){function Z(){var V=$!==null&&$.apply(this,arguments)||this;return V.options=void 0,V.series=void 0,V.shapeArgs=void 0,V}return H(Z,$),Z.prototype.setState=function(V){this.state=V},Z}(G.series.prototype.pointClass);return U}),et(_,"Series/Gauge/GaugeSeries.js",[_["Series/Gauge/GaugePoint.js"],_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(u,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,M){w.__proto__=M}||function(w,M){for(var C in M)M.hasOwnProperty(C)&&(w[C]=M[C])},$(u,v)},function(u,v){function w(){this.constructor=u}$(u,v),u.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),V=B.noop,F=H.series,I=H.seriesTypes.column,E=U.clamp,A=U.isNumber,P=U.extend,y=U.merge,c=U.pick,g=U.pInt,m=function(u){function v(){var w=u!==null&&u.apply(this,arguments)||this;return w.data=void 0,w.points=void 0,w.options=void 0,w.yAxis=void 0,w}return Z(v,u),v.prototype.translate=function(){var w=this,M=w.yAxis,C=w.options,p=M.center;w.generatePoints(),w.points.forEach(function(f){var r=y(C.dial,f.dial),l=g(r.radius)*p[2]/200,t=g(r.baseLength)*l/100,i=g(r.rearLength)*l/100,o=r.baseWidth,e=r.topWidth,a=C.overshoot,s=M.startAngleRad+M.translate(f.y,void 0,void 0,void 0,!0);(A(a)||C.wrap===!1)&&(a=A(a)?a/180*Math.PI:0,s=E(s,M.startAngleRad-a,M.endAngleRad+a)),s=180*s/Math.PI,f.shapeType="path";var h=r.path||[["M",-i,-o/2],["L",t,-o/2],["L",l,-e/2],["L",l,e/2],["L",t,o/2],["L",-i,o/2],["Z"]];f.shapeArgs={d:h,translateX:p[0],translateY:p[1],rotation:s},f.plotX=p[0],f.plotY=p[1]})},v.prototype.drawPoints=function(){var w=this,M=w.chart,C=w.yAxis.center,p=w.pivot,f=w.options,r=f.pivot,l=M.renderer;w.points.forEach(function(t){var i=t.graphic,o=t.shapeArgs,e=o.d,a=y(f.dial,t.dial);i?(i.animate(o),o.d=e):t.graphic=l[t.shapeType](o).attr({rotation:o.rotation,zIndex:1}).addClass("highcharts-dial").add(w.group),M.styledMode||t.graphic[i?"animate":"attr"]({stroke:a.borderColor,"stroke-width":a.borderWidth,fill:a.backgroundColor})}),p?p.animate({translateX:C[0],translateY:C[1]}):r&&(w.pivot=l.circle(0,0,r.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(C[0],C[1]).add(w.group),M.styledMode||w.pivot.attr({fill:r.backgroundColor,stroke:r.borderColor,"stroke-width":r.borderWidth}))},v.prototype.animate=function(w){var M=this;w||M.points.forEach(function(C){var p=C.graphic;p&&(p.attr({rotation:180*M.yAxis.startAngleRad/Math.PI}),p.animate({rotation:C.shapeArgs.rotation},M.options.animation))})},v.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),F.prototype.render.call(this),this.group.clip(this.chart.clipRect)},v.prototype.setData=function(w,M){F.prototype.setData.call(this,w,!1),this.processData(),this.generatePoints(),c(M,!0)&&this.chart.redraw()},v.prototype.hasData=function(){return!!this.points.length},v.defaultOptions=y(F.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),v}(F);return P(m.prototype,{angular:!0,directTouch:!0,drawGraph:V,drawTracker:I.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:G,trackerGroups:["group","dataLabelsGroup"]}),H.registerSeriesType("gauge",m),m}),et(_,"Series/DragNodesComposition.js",[_["Core/Utilities.js"]],function(G){var B=G.addEvent,H=[];function U(){var $,Z,V,F=this;F.container&&($=B(F.container,"mousedown",function(I){var E=F.hoverPoint;E&&E.series&&E.series.hasDraggableNodes&&E.series.options.draggable&&(E.series.onMouseDown(E,I),Z=B(F.container,"mousemove",function(A){return E&&E.series&&E.series.onMouseMove(E,A)}),V=B(F.container.ownerDocument,"mouseup",function(A){return Z(),V(),E&&E.series&&E.series.onMouseUp(E,A)}))})),B(F,"destroy",function(){$()})}return{compose:function($){H.indexOf($)===-1&&(H.push($),B($,"load",U))},onMouseDown:function($,Z){var V=this.chart.pointer.normalize(Z);$.fixedPosition={chartX:V.chartX,chartY:V.chartY,plotX:$.plotX,plotY:$.plotY},$.inDragMode=!0},onMouseMove:function($,Z){if($.fixedPosition&&$.inDragMode){var V=this.chart,F=V.pointer.normalize(Z),I=$.fixedPosition.chartX-F.chartX,E=$.fixedPosition.chartY-F.chartY,A=V.graphLayoutsLookup,P=void 0,y=void 0;(Math.abs(I)>5||Math.abs(E)>5)&&(P=$.fixedPosition.plotX-I,y=$.fixedPosition.plotY-E,V.isInsidePlot(P,y)&&($.plotX=P,$.plotY=y,$.hasDragged=!0,this.redrawHalo($),A.forEach(function(c){c.restartSimulation()})))}},onMouseUp:function($,Z){$.fixedPosition&&($.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),$.inDragMode=$.hasDragged=!1,this.options.fixedDraggable||delete $.fixedPosition)},redrawHalo:function($){$&&this.halo&&this.halo.attr({d:$.haloPath(this.options.states.hover.halo.size)})}}}),et(_,"Series/GraphLayoutComposition.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Utilities.js"]],function(G,B){var H=G.setAnimation,U=B.addEvent,$=[];function Z(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation()}),this.redraw())}function V(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation(!1)}),this.redraw())}function F(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(E){E.stop()})}function I(){var E,A=!1,P=function(y){y.maxIterations--&&isFinite(y.temperature)&&!y.isStable()&&!y.enableSimulation&&(y.beforeStep&&y.beforeStep(),y.step(),E=!1,A=!0)};if(this.graphLayoutsLookup){for(H(!1,this),this.graphLayoutsLookup.forEach(function(y){return y.start()});!E;)E=!0,this.graphLayoutsLookup.forEach(P);A&&this.series.forEach(function(y){y&&y.layout&&y.render()})}}return{compose:function(E){$.indexOf(E)&&($.push(E),U(E,"afterPrint",Z),U(E,"beforePrint",V),U(E,"predraw",F),U(E,"render",I))},integrations:{},layouts:{}}}),et(_,"Series/PackedBubble/PackedBubblePoint.js",[_["Core/Chart/Chart.js"],_["Core/Series/Point.js"],_["Core/Series/SeriesRegistry.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(V,F){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var A in E)E.hasOwnProperty(A)&&(I[A]=E[A])},U(V,F)},function(V,F){function I(){this.constructor=V}U(V,F),V.prototype=F===null?Object.create(F):(I.prototype=F.prototype,new I)}),Z=function(V){function F(){var I=V!==null&&V.apply(this,arguments)||this;return I.degree=NaN,I.mass=NaN,I.radius=NaN,I.options=void 0,I.series=void 0,I.value=null,I}return $(F,V),F.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),B.prototype.destroy.apply(this,arguments)},F.prototype.firePointEvent=function(){var I=this.series.options;if(this.isParentNode&&I.parentNode){var E=I.allowPointSelect;I.allowPointSelect=I.parentNode.allowPointSelect,B.prototype.firePointEvent.apply(this,arguments),I.allowPointSelect=E}else B.prototype.firePointEvent.apply(this,arguments)},F.prototype.select=function(){var I=this.series.chart;this.isParentNode?(I.getSelectedPoints=I.getSelectedParentNodes,B.prototype.select.apply(this,arguments),I.getSelectedPoints=G.prototype.getSelectedPoints):B.prototype.select.apply(this,arguments)},F}(H.seriesTypes.bubble.prototype.pointClass);return Z}),et(_,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[_["Core/Utilities.js"]],function(G){var B=G.isNumber;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){var H=this.series.chart.numberFormatter,U=this.point.value;return B(U)?H(U,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),et(_,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(G,B,H){var U=G.getMass(),$=-H.x*B*this.diffTemperature,Z=-H.y*B*this.diffTemperature;G.fromNode.fixedPosition||(G.fromNode.plotX-=$*U.fromNode/G.fromNode.degree,G.fromNode.plotY-=Z*U.fromNode/G.fromNode.degree),G.toNode.fixedPosition||(G.toNode.plotX+=$*U.toNode/G.toNode.degree,G.toNode.plotY+=Z*U.toNode/G.toNode.degree)},attractiveForceFunction:function(G,B){return(B-G)/G},barycenter:function(){var G=this.options.gravitationalConstant,B=this.barycenter.xFactor,H=this.barycenter.yFactor;B=(B-(this.box.left+this.box.width)/2)*G,H=(H-(this.box.top+this.box.height)/2)*G,this.nodes.forEach(function(U){U.fixedPosition||(U.plotX-=B/U.mass/U.degree,U.plotY-=H/U.mass/U.degree)})},getK:function(G){return Math.pow(G.box.width*G.box.height/G.nodes.length,.5)},integrate:function(G,B){var H=-G.options.friction,U=G.options.maxSpeed,$=B.prevX,Z=B.prevY,V=(B.plotX+B.dispX-$)*H,F=(B.plotY+B.dispY-Z)*H,I=Math.abs,E=I(V)/(V||1),A=I(F)/(F||1);V=E*Math.min(U,Math.abs(V)),F=A*Math.min(U,Math.abs(F)),B.prevX=B.plotX+B.dispX,B.prevY=B.plotY+B.dispY,B.plotX+=V,B.plotY+=F,B.temperature=G.vectorLength({x:V,y:F})},repulsive:function(G,B,H){var U=B*this.diffTemperature/G.mass/G.degree;G.fixedPosition||(G.plotX+=H.x*U,G.plotY+=H.y*U)},repulsiveForceFunction:function(G,B){return(B-G)/G*(B>G?1:0)}}}),et(_,"Series/PackedBubble/PackedBubbleIntegration.js",[_["Core/Globals.js"],_["Series/Networkgraph/VerletIntegration.js"]],function(G,B){return{barycenter:function(){for(var H,U,$=this,Z=$.options.gravitationalConstant,V=$.box,F=$.nodes,I=0,E=F;I<E.length;I++){var A=E[I];$.options.splitSeries&&!A.isParentNode?(H=A.series.parentNode.plotX,U=A.series.parentNode.plotY):(H=V.width/2,U=V.height/2),A.fixedPosition||(A.plotX-=(A.plotX-H)*Z/(A.mass*Math.sqrt(F.length)),A.plotY-=(A.plotY-U)*Z/(A.mass*Math.sqrt(F.length)))}},getK:G.noop,integrate:B.integrate,repulsive:function(H,U,$,Z){var V=U*this.diffTemperature/H.mass/H.degree,F=$.x*V,I=$.y*V;H.fixedPosition||(H.plotX+=F,H.plotY+=I),Z.fixedPosition||(Z.plotX-=F,Z.plotY-=I)},repulsiveForceFunction:function(H,U,$,Z){return Math.min(H,($.marker.radius+Z.marker.radius)/2)}}}),et(_,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(G,B,H,U){var $=G.getMass(),Z=H.x/U*B,V=H.y/U*B;G.fromNode.fixedPosition||(G.fromNode.dispX-=Z*$.fromNode/G.fromNode.degree,G.fromNode.dispY-=V*$.fromNode/G.fromNode.degree),G.toNode.fixedPosition||(G.toNode.dispX+=Z*$.toNode/G.toNode.degree,G.toNode.dispY+=V*$.toNode/G.toNode.degree)},attractiveForceFunction:function(G,B){return G*G/B},barycenter:function(){var G=this.options.gravitationalConstant,B=this.barycenter.xFactor,H=this.barycenter.yFactor;this.nodes.forEach(function(U){if(!U.fixedPosition){var $=U.getDegree(),Z=$*(1+$/2);U.dispX+=(B-U.plotX)*G*Z/U.degree,U.dispY+=(H-U.plotY)*G*Z/U.degree}})},getK:function(G){return Math.pow(G.box.width*G.box.height/G.nodes.length,.3)},integrate:function(G,B){var H;B.dispX+=B.dispX*G.options.friction,B.dispY+=B.dispY*G.options.friction,(H=B.temperature=G.vectorLength({x:B.dispX,y:B.dispY}))!==0&&(B.plotX+=B.dispX/H*Math.min(Math.abs(B.dispX),G.temperature),B.plotY+=B.dispY/H*Math.min(Math.abs(B.dispY),G.temperature))},repulsive:function(G,B,H,U){G.dispX+=H.x/U*B/G.degree,G.dispY+=H.y/U*B/G.degree},repulsiveForceFunction:function(G,B){return B*B/G}}}),et(_,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function G(B){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=B,this.boxSize=Math.min(B.width,B.height)}return G.prototype.divideBox=function(){var B=this.box.width/2,H=this.box.height/2;this.nodes[0]=new G({left:this.box.left,top:this.box.top,width:B,height:H}),this.nodes[1]=new G({left:this.box.left+B,top:this.box.top,width:B,height:H}),this.nodes[2]=new G({left:this.box.left+B,top:this.box.top+H,width:B,height:H}),this.nodes[3]=new G({left:this.box.left,top:this.box.top+H,width:B,height:H})},G.prototype.getBoxPosition=function(B){var H=B.plotX<this.box.left+this.box.width/2,U=B.plotY<this.box.top+this.box.height/2;return H?U?0:3:U?1:2},G.prototype.insert=function(B,H){var U;this.isInternal?this.nodes[this.getBoxPosition(B)].insert(B,H-1):(this.isEmpty=!1,this.body?H?(this.isInternal=!0,this.divideBox(),this.body!==!0&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,H-1),this.body=!0),this.nodes[this.getBoxPosition(B)].insert(B,H-1)):((U=new G({top:B.plotX||NaN,left:B.plotY||NaN,width:.1,height:.1})).body=B,U.isInternal=!1,this.nodes.push(U)):(this.isInternal=!1,this.body=B))},G.prototype.updateMassAndCenter=function(){var B=0,H=0,U=0;if(this.isInternal){for(var $=0,Z=this.nodes;$<Z.length;$++){var V=Z[$];V.isEmpty||(B+=V.mass,H+=V.plotX*V.mass,U+=V.plotY*V.mass)}H/=B,U/=B}else this.body&&(B=this.body.mass,H=this.body.plotX,U=this.body.plotY);this.mass=B,this.plotX=H,this.plotY=U},G}()}),et(_,"Series/Networkgraph/QuadTree.js",[_["Series/Networkgraph/QuadTreeNode.js"]],function(G){return function(){function B(H,U,$,Z){this.box={left:H,top:U,width:$,height:Z},this.maxDepth=25,this.root=new G(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return B.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(H){H.updateMassAndCenter()})},B.prototype.insertNodes=function(H){for(var U=0,$=H;U<$.length;U++){var Z=$[U];this.root.insert(Z,this.maxDepth)}},B.prototype.visitNodeRecursive=function(H,U,$){var Z;if(H||(H=this.root),H===this.root&&U&&(Z=U(H)),Z!==!1){for(var V=0,F=H.nodes;V<F.length;V++){var I=F[V];if(I.isInternal){if(U&&(Z=U(I)),Z===!1)continue;this.visitNodeRecursive(I,U,$)}else I.body&&U&&U(I.body);$&&$(I)}H===this.root&&$&&$(H)}},B}()}),et(_,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[_["Series/Networkgraph/EulerIntegration.js"],_["Core/Globals.js"],_["Series/GraphLayoutComposition.js"],_["Series/Networkgraph/QuadTree.js"],_["Core/Utilities.js"],_["Series/Networkgraph/VerletIntegration.js"]],function(G,B,H,U,$,Z){var V=B.win,F=$.clamp,I=$.defined,E=$.isFunction,A=$.pick,P=function(){function y(){this.attractiveForce=void 0,this.box={},this.currentStep=0,this.initialRendering=!0,this.integration=void 0,this.links=[],this.nodes=[],this.options=void 0,this.quadTree=void 0,this.repulsiveForce=void 0,this.series=[],this.simulation=!1}return y.compose=function(c){H.compose(c),H.integrations.euler=G,H.integrations.verlet=Z,H.layouts["reingold-fruchterman"]=y},y.prototype.init=function(c){this.options=c,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=H.integrations[c.integration],this.enableSimulation=c.enableSimulation,this.attractiveForce=A(c.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=A(c.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=c.approximation},y.prototype.updateSimulation=function(c){this.enableSimulation=A(c,this.options.enableSimulation)},y.prototype.start=function(){var c=this,g=this.series,m=this.options;c.currentStep=0,c.forces=g[0]&&g[0].forces||[],c.chart=g[0]&&g[0].chart,c.initialRendering&&(c.initPositions(),g.forEach(function(u){u.finishedAnimating=!0,u.render()})),c.setK(),c.resetSimulation(m),c.enableSimulation&&c.step()},y.prototype.step=function(){var c=this,g=this.series;this.currentStep++,this.approximation==="barnes-hut"&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var m=0,u=this.forces||[];m<u.length;m++)this[u[m]+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(var v=0,w=g;v<w.length;v++){var M=w[v];M.chart&&M.render()}this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&V.cancelAnimationFrame(this.simulation),this.simulation=V.requestAnimationFrame(function(){return c.step()})):this.simulation=!1}},y.prototype.stop=function(){this.simulation&&V.cancelAnimationFrame(this.simulation)},y.prototype.setArea=function(c,g,m,u){this.box={left:c,top:g,width:m,height:u}},y.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},y.prototype.addElementsToCollection=function(c,g){for(var m=0,u=c;m<u.length;m++){var v=u[m];g.indexOf(v)===-1&&g.push(v)}},y.prototype.removeElementFromCollection=function(c,g){var m=g.indexOf(c);m!==-1&&g.splice(m,1)},y.prototype.clear=function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},y.prototype.resetSimulation=function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},y.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))},y.prototype.setMaxIterations=function(c){this.maxIterations=A(c,this.options.maxIterations)},y.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},y.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},y.prototype.setInitialRendering=function(c){this.initialRendering=c},y.prototype.createQuadTree=function(){this.quadTree=new U(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},y.prototype.initPositions=function(){var c=this.options.initialPositions;if(E(c)){c.call(this);for(var g=0,m=this.nodes;g<m.length;g++){var u=m[g];I(u.prevX)||(u.prevX=u.plotX),I(u.prevY)||(u.prevY=u.plotY),u.dispX=0,u.dispY=0}}else c==="circle"?this.setCircularPositions():this.setRandomPositions()},y.prototype.setCircularPositions=function(){for(var c,g=this.box,m=this.nodes,u=m.length+1,v=2*Math.PI/u,w=m.filter(function(h){return h.linksTo.length===0}),M={},C=this.options.initialPositionRadius,p=function(h){for(var b=0,k=h.linksFrom||[];b<k.length;b++){var O=k[b];M[O.toNode.id]||(M[O.toNode.id]=!0,f.push(O.toNode),p(O.toNode))}},f=[],r=0,l=w;r<l.length;r++){var t=l[r];f.push(t),p(t)}if(f.length)for(var i=0,o=m;i<o.length;i++){var e=o[i];f.indexOf(e)===-1&&f.push(e)}else f=m;for(var a=0,s=f.length;a<s;++a)(c=f[a]).plotX=c.prevX=A(c.plotX,g.width/2+C*Math.cos(a*v)),c.plotY=c.prevY=A(c.plotY,g.height/2+C*Math.sin(a*v)),c.dispX=0,c.dispY=0},y.prototype.setRandomPositions=function(){for(var c,g=this.box,m=this.nodes,u=m.length+1,v=function(C){var p=C*C/Math.PI;return p-Math.floor(p)},w=0,M=m.length;w<M;++w)(c=m[w]).plotX=c.prevX=A(c.plotX,g.width*v(w)),c.plotY=c.prevY=A(c.plotY,g.height*v(u+w)),c.dispX=0,c.dispY=0},y.prototype.force=function(c){for(var g=[],m=1;m<arguments.length;m++)g[m-1]=arguments[m];this.integration[c].apply(this,g)},y.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},y.prototype.getBarycenter=function(){for(var c=0,g=0,m=0,u=0,v=this.nodes;u<v.length;u++){var w=v[u];g+=w.plotX*w.mass,m+=w.plotY*w.mass,c+=w.mass}return this.barycenter={x:g,y:m,xFactor:g/c,yFactor:m/c},this.barycenter},y.prototype.barnesHutApproximation=function(c,g){var m,u,v=this.getDistXY(c,g),w=this.vectorLength(v);return c!==g&&w!==0&&(g.isInternal?g.boxSize/w<this.options.theta&&w!==0?(u=this.repulsiveForce(w,this.k),this.force("repulsive",c,u*g.mass,v,w),m=!1):m=!0:(u=this.repulsiveForce(w,this.k),this.force("repulsive",c,u*g.mass,v,w))),m},y.prototype.repulsiveForces=function(){var c=this;if(this.approximation==="barnes-hut")for(var g=function(o){m.quadTree.visitNodeRecursive(null,function(e){return c.barnesHutApproximation(o,e)})},m=this,u=0,v=this.nodes;u<v.length;u++)g(r=v[u]);else for(var w=void 0,M=void 0,C=void 0,p=0,f=this.nodes;p<f.length;p++)for(var r=f[p],l=0,t=this.nodes;l<t.length;l++){var i=t[l];r===i||r.fixedPosition||(C=this.getDistXY(r,i),(M=this.vectorLength(C))!==0&&(w=this.repulsiveForce(M,this.k),this.force("repulsive",r,w*i.mass,C,M)))}},y.prototype.attractiveForces=function(){for(var c,g,m,u=0,v=this.links;u<v.length;u++){var w=v[u];w.fromNode&&w.toNode&&(c=this.getDistXY(w.fromNode,w.toNode),(g=this.vectorLength(c))!==0&&(m=this.attractiveForce(g,this.k),this.force("attractive",w,m,c,g)))}},y.prototype.applyLimits=function(){for(var c=0,g=this.nodes;c<g.length;c++){var m=g[c];if(m.fixedPosition)return;this.integration.integrate(this,m),this.applyLimitBox(m,this.box),m.dispX=0,m.dispY=0}},y.prototype.applyLimitBox=function(c,g){var m=c.radius;c.plotX=F(c.plotX,g.left+m,g.width-m),c.plotY=F(c.plotY,g.top+m,g.height-m)},y.prototype.coolDown=function(c,g,m){return c-g*m},y.prototype.isStable=function(){return Math.abs(this.systemTemperature-this.prevSystemTemperature)<1e-5||this.temperature<=0},y.prototype.getSystemTemperature=function(){for(var c=0,g=0,m=this.nodes;g<m.length;g++)c+=m[g].temperature;return c},y.prototype.vectorLength=function(c){return Math.sqrt(c.x*c.x+c.y*c.y)},y.prototype.getDistR=function(c,g){var m=this.getDistXY(c,g);return this.vectorLength(m)},y.prototype.getDistXY=function(c,g){var m=c.plotX-g.plotX,u=c.plotY-g.plotY;return{x:m,y:u,absX:Math.abs(m),absY:Math.abs(u)}},y}();return P}),et(_,"Series/PackedBubble/PackedBubbleLayout.js",[_["Series/GraphLayoutComposition.js"],_["Series/PackedBubble/PackedBubbleIntegration.js"],_["Series/Networkgraph/ReingoldFruchtermanLayout.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(y,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var u in m)m.hasOwnProperty(u)&&(g[u]=m[u])},$(y,c)},function(y,c){function g(){this.constructor=y}$(y,c),y.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),V=U.addEvent,F=U.pick,I=[];function E(){var y=this.series,c=[];return y.forEach(function(g){g.parentNode&&g.parentNode.selected&&c.push(g.parentNode)}),c}function A(){this.allDataPoints&&delete this.allDataPoints}var P=function(y){function c(){var g=y!==null&&y.apply(this,arguments)||this;return g.index=NaN,g.nodes=[],g.options=void 0,g.series=[],g}return Z(c,y),c.compose=function(g){H.compose(g),G.integrations.packedbubble=B,G.layouts.packedbubble=c,I.indexOf(g)===-1&&(I.push(g),V(g,"beforeRedraw",A),g.prototype.getSelectedParentNodes=E)},c.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(g){g&&g.calculateParentRadius()})},c.prototype.isStable=function(){var g=Math.abs(this.prevSystemTemperature-this.systemTemperature),m=10*this.systemTemperature/Math.sqrt(this.nodes.length);return Math.abs(m)<1&&g<1e-5||this.temperature<=0},c.prototype.setCircularPositions=function(){for(var g,m,u=this,v=u.box,w=u.nodes,M=w.length+1,C=2*Math.PI/M,p=u.options.initialPositionRadius,f=0,r=0,l=w;r<l.length;r++){var t=l[r];u.options.splitSeries&&!t.isParentNode?(g=t.series.parentNode.plotX,m=t.series.parentNode.plotY):(g=v.width/2,m=v.height/2),t.plotX=t.prevX=F(t.plotX,g+p*Math.cos(t.index||f*C)),t.plotY=t.prevY=F(t.plotY,m+p*Math.sin(t.index||f*C)),t.dispX=0,t.dispY=0,f++}},c.prototype.repulsiveForces=function(){var g,m,u,v=this,w=v.options.bubblePadding;v.nodes.forEach(function(M){M.degree=M.mass,M.neighbours=0,v.nodes.forEach(function(C){g=0,M===C||M.fixedPosition||!v.options.seriesInteraction&&M.series!==C.series||(u=v.getDistXY(M,C),(m=v.vectorLength(u)-(M.marker.radius+C.marker.radius+w))<0&&(M.degree+=.01,M.neighbours++,g=v.repulsiveForce(-m/Math.sqrt(M.neighbours),v.k,M,C)),v.force("repulsive",M,g*C.mass,u,C,m))})})},c.prototype.applyLimitBox=function(g,m){var u,v,w=this;w.options.splitSeries&&!g.isParentNode&&w.options.parentNodeLimit&&(u=w.getDistXY(g,g.series.parentNode),(v=g.series.parentNodeRadius-g.marker.radius-w.vectorLength(u))<0&&v>-2*g.marker.radius&&(g.plotX-=.01*u.x,g.plotY-=.01*u.y)),y.prototype.applyLimitBox.call(this,g,m)},c}(H);return G.layouts.packedbubble=P,P}),et(_,"Series/PackedBubble/PackedBubbleSeries.js",[_["Core/Color/Color.js"],_["Series/DragNodesComposition.js"],_["Series/GraphLayoutComposition.js"],_["Core/Globals.js"],_["Series/PackedBubble/PackedBubblePoint.js"],_["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],_["Series/PackedBubble/PackedBubbleLayout.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U,$,Z,V,F,I){var E,A=this&&this.__extends||(E=function(t,i){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var a in e)e.hasOwnProperty(a)&&(o[a]=e[a])},E(t,i)},function(t,i){function o(){this.constructor=t}E(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),P=G.parse,y=U.noop,c=F.series.prototype,g=F.seriesTypes.bubble,m=I.addEvent,u=I.clamp,v=I.defined,w=I.extend,M=I.fireEvent,C=I.isArray,p=I.isNumber,f=I.merge,r=I.pick,l=function(t){function i(){var o=t!==null&&t.apply(this,arguments)||this;return o.chart=void 0,o.data=void 0,o.layout=void 0,o.options=void 0,o.parentNodeMass=0,o.points=void 0,o.xData=void 0,o}return A(i,t),i.compose=function(o,e,a,s){g.compose(o,e,a,s),B.compose(e),V.compose(e)},i.prototype.accumulateAllPoints=function(){for(var o,e=this.chart,a=[],s=0,h=e.series;s<h.length;s++){var b=h[s];if(b.is("packedbubble")&&b.visible||!e.options.chart.ignoreHiddenSeries){o=b.yData||[];for(var k=0;k<o.length;k++)a.push([null,null,o[k],b.index,k,{id:k,marker:{radius:0}}])}}return a},i.prototype.addLayout=function(){var o,e=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},a=e.type||"packedbubble",s=this.chart.options.chart,h=this.chart.graphLayoutsStorage,b=this.chart.graphLayoutsLookup;h||(this.chart.graphLayoutsStorage=h={},this.chart.graphLayoutsLookup=b=[]),(o=h[a])||(e.enableSimulation=v(s.forExport)?!s.forExport:e.enableSimulation,h[a]=o=new H.layouts[a],o.init(e),b.splice(o.index,0,o)),this.layout=o,this.points.forEach(function(k){k.mass=2,k.degree=1,k.collisionNmb=1}),o.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),o.addElementsToCollection([this],o.series),o.addElementsToCollection(this.points,o.nodes)},i.prototype.addSeriesLayout=function(){var o=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=o.type||"packedbubble",a=this.chart.graphLayoutsStorage,s=this.chart.graphLayoutsLookup,h=f(o,o.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),b=a[e+"-series"];b||(a[e+"-series"]=b=new H.layouts[e],b.init(h),s.splice(b.index,0,b)),this.parentNodeLayout=b,this.createParentNodes()},i.prototype.calculateParentRadius=function(){var o=this.seriesBox();this.parentNodeRadius=u(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,o?Math.max(Math.sqrt(Math.pow(o.width,2)+Math.pow(o.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},i.prototype.calculateZExtremes=function(){var o=this.chart.series,e=this.options.zMin,a=this.options.zMax,s=1/0,h=-1/0;return e&&a?[e,a]:(o.forEach(function(b){b.yData.forEach(function(k){v(k)&&(k>h&&(h=k),k<s&&(s=k))})}),[e=r(e,s),a=r(a,h)])},i.prototype.checkOverlap=function(o,e){var a=o[0]-e[0],s=o[1]-e[1],h=o[2]+e[2];return Math.sqrt(a*a+s*s)-Math.abs(h)<-.001},i.prototype.createParentNodes=function(){var o,e=this,a=this.pointClass,s=this.chart,h=this.parentNodeLayout,b=this.layout.options,k=this.parentNode,O={radius:this.parentNodeRadius,lineColor:this.color,fillColor:P(this.color).brighten(.4).get()};b.parentNodeOptions&&(O=f(b.parentNodeOptions.marker||{},O)),this.parentNodeMass=0,this.points.forEach(function(d){e.parentNodeMass+=Math.PI*Math.pow(d.marker.radius,2)}),this.calculateParentRadius(),h.nodes.forEach(function(d){d.seriesIndex===e.index&&(o=!0)}),h.setArea(0,0,s.plotWidth,s.plotHeight),o||(k||(k=new a().init(this,{mass:this.parentNodeRadius/2,marker:O,dataLabels:{inside:!1},states:{normal:{marker:O},hover:{marker:O}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(k.plotX=this.parentNode.plotX,k.plotY=this.parentNode.plotY),this.parentNode=k,h.addElementsToCollection([this],h.series),h.addElementsToCollection([k],h.nodes))},i.prototype.deferLayout=function(){var o=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),o.splitSeries&&this.addSeriesLayout())},i.prototype.destroy=function(){var o=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(e){e.removeElementFromCollection(o,e.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),c.destroy.apply(this,arguments)},i.prototype.drawDataLabels=function(){c.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",c.drawDataLabels.call(this,[this.parentNode]))},i.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var o,e=this.chart,a=this.layout.options.parentNodeOptions.marker,s={fill:a.fillColor||P(this.color).brighten(.4).get(),opacity:a.fillOpacity,stroke:a.lineColor||this.color,"stroke-width":r(a.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,e.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius(),o=f({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},s),this.parentNode.graphic||(this.graph=this.parentNode.graphic=e.renderer.symbol(s.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(o)}},i.prototype.drawTracker=function(){var o,e=this.parentNode;t.prototype.drawTracker.call(this),e&&(o=C(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),o.forEach(function(a){a.div?a.div.point=e:a.element.point=e}))},i.prototype.getPointRadius=function(){var o,e,a,s,h=this,b=this.chart,k=b.plotWidth,O=b.plotHeight,d=this.options,x=d.useSimulation,T=Math.min(k,O),N={},z=[],L=b.allDataPoints||[],D=L.length;["minSize","maxSize"].forEach(function(Y){var X=parseInt(d[Y],10),W=/%$/.test(d[Y]);N[Y]=W?T*X/100:X*Math.sqrt(D)}),b.minRadius=o=N.minSize/Math.sqrt(D),b.maxRadius=e=N.maxSize/Math.sqrt(D);var j=x?this.calculateZExtremes():[o,e];L.forEach(function(Y,X){a=x?u(Y[2],j[0],j[1]):Y[2],(s=h.getRadius(j[0],j[1],o,e,a))===0&&(s=null),L[X][2]=s,z.push(s)}),this.radii=z},i.prototype.init=function(){return c.init.apply(this,arguments),this.eventsToUnbind.push(m(this,"updatedData",function(){var o=this;this.chart.series.forEach(function(e){e.type===o.type&&(e.isDirty=!0)},this)})),this},i.prototype.onMouseUp=function(o){var e=o;if(e.fixedPosition&&!e.removed){var a,s=this.layout,h=this.parentNodeLayout;h&&s.options.dragBetweenSeries&&h.nodes.forEach(function(b){e&&e.marker&&b!==e.series.parentNode&&(a=s.getDistXY(e,b),s.vectorLength(a)-b.marker.radius-e.marker.radius<0&&(b.series.addPoint(f(e.options,{plotX:e.plotX,plotY:e.plotY}),!1),s.removeElementFromCollection(e,s.nodes),e.remove()))}),B.onMouseUp.apply(this,arguments)}},i.prototype.placeBubbles=function(o){var e,a,s=this.checkOverlap,h=this.positionBubble,b=[],k=1,O=0,d=0,x=[],T=o.sort(function(N,z){return z[2]-N[2]});if(T.length){if(b.push([[0,0,T[0][2],T[0][3],T[0][4]]]),T.length>1)for(b.push([[0,0-T[1][2]-T[0][2],T[1][2],T[1][3],T[1][4]]]),a=2;a<T.length;a++)T[a][2]=T[a][2]||1,s(e=h(b[k][O],b[k-1][d],T[a]),b[k][0])?(b.push([]),d=0,b[k+1].push(h(b[k][O],b[k][0],T[a])),k++,O=0):k>1&&b[k-1][d+1]&&s(e,b[k-1][d+1])?(d++,b[k].push(h(b[k][O],b[k-1][d],T[a])),O++):(O++,b[k].push(e));this.chart.stages=b,this.chart.rawPositions=[].concat.apply([],b),this.resizeRadius(),x=this.chart.rawPositions}return x},i.prototype.pointAttribs=function(o,e){var a=this.options,s=o&&o.isParentNode,h=a.marker;s&&a.layoutAlgorithm&&a.layoutAlgorithm.parentNodeOptions&&(h=a.layoutAlgorithm.parentNodeOptions.marker);var b=h.fillOpacity,k=c.pointAttribs.call(this,o,e);return b!==1&&(k["fill-opacity"]=b),k},i.prototype.positionBubble=function(o,e,a){var s=Math.sqrt,h=Math.asin,b=Math.acos,k=Math.pow,O=Math.abs,d=s(k(o[0]-e[0],2)+k(o[1]-e[1],2)),x=b((k(d,2)+k(a[2]+e[2],2)-k(a[2]+o[2],2))/(2*(a[2]+e[2])*d)),T=h(O(o[0]-e[0])/d),N=(o[1]-e[1]<0?0:Math.PI)+x+T*((o[0]-e[0])*(o[1]-e[1])<0?1:-1),z=Math.cos(N),L=Math.sin(N);return[e[0]+(e[2]+a[2])*L,e[1]-(e[2]+a[2])*z,a[2],a[3],a[4]]},i.prototype.render=function(){var o=[];c.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(e){C(e.dataLabels)&&e.dataLabels.forEach(function(a){o.push(a)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(o))},i.prototype.resizeRadius=function(){var o,e,a,s,h,b=this.chart,k=b.rawPositions,O=Math.min,d=Math.max,x=b.plotLeft,T=b.plotTop,N=b.plotHeight,z=b.plotWidth;o=a=Number.POSITIVE_INFINITY,e=s=Number.NEGATIVE_INFINITY;for(var L=0,D=k;L<D.length;L++)h=(tt=D[L])[2],o=O(o,tt[0]-h),e=d(e,tt[0]+h),a=O(a,tt[1]-h),s=d(s,tt[1]+h);var j=[e-o,s-a],Y=[(z-x)/j[0],(N-T)/j[1]],X=O.apply([],Y);if(Math.abs(X-1)>1e-10){for(var W=0,q=k;W<q.length;W++){var tt;(tt=q[W])[2]*=X}this.placeBubbles(k)}else b.diffY=N/2+T-a-(s-a)/2,b.diffX=z/2+x-o-(e-o)/2},i.prototype.seriesBox=function(){var o,e=this.chart,a=this.data,s=Math.max,h=Math.min,b=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return a.forEach(function(k){v(k.plotX)&&v(k.plotY)&&k.marker.radius&&(o=k.marker.radius,b[0]=h(b[0],k.plotX-o),b[1]=s(b[1],k.plotX+o),b[2]=h(b[2],k.plotY-o),b[3]=s(b[3],k.plotY+o))}),p(b.width/b.height)?b:null},i.prototype.setVisible=function(){var o=this;c.setVisible.apply(o,arguments),o.parentNodeLayout&&o.graph?o.visible?(o.graph.show(),o.parentNode.dataLabel&&o.parentNode.dataLabel.show()):(o.graph.hide(),o.parentNodeLayout.removeElementFromCollection(o.parentNode,o.parentNodeLayout.nodes),o.parentNode.dataLabel&&o.parentNode.dataLabel.hide()):o.layout&&(o.visible?o.layout.addElementsToCollection(o.points,o.layout.nodes):o.points.forEach(function(e){o.layout.removeElementFromCollection(e,o.layout.nodes)}))},i.prototype.translate=function(){var o,e,a,s=this.chart,h=this.data,b=this.index,k=this.options.useSimulation;this.processedXData=this.xData,this.generatePoints(),v(s.allDataPoints)||(s.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),k?a=s.allDataPoints:(a=this.placeBubbles(s.allDataPoints),this.options.draggable=!1);for(var O=0,d=a;O<d.length;O++){var x=d[O];x[3]===b&&(o=h[x[4]],e=r(x[2],void 0),k||(o.plotX=x[0]-s.plotLeft+s.diffX,o.plotY=x[1]-s.plotTop+s.diffY),p(e)&&(o.marker=w(o.marker,{radius:e,width:2*e,height:2*e}),o.radius=e))}k&&this.deferLayout(),M(this,"afterTranslate")},i.defaultOptions=f(g.defaultOptions,Z),i}(g);return w(l.prototype,{pointClass:$,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:c.alignDataLabel,indexateNodes:y,onMouseDown:B.onMouseDown,onMouseMove:B.onMouseMove,redrawHalo:B.redrawHalo,searchPoint:y}),F.registerSeriesType("packedbubble",l),l}),et(_,"Series/Polygon/PolygonSeries.js",[_["Core/Globals.js"],_["Core/Legend/LegendSymbol.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=this&&this.__extends||($=function(m,u){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var M in w)w.hasOwnProperty(M)&&(v[M]=w[M])},$(m,u)},function(m,u){function v(){this.constructor=m}$(m,u),m.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}),V=G.noop,F=H.series,I=H.seriesTypes,E=I.area,A=I.line,P=I.scatter,y=U.extend,c=U.merge,g=function(m){function u(){var v=m!==null&&m.apply(this,arguments)||this;return v.data=void 0,v.options=void 0,v.points=void 0,v}return Z(u,m),u.prototype.getGraphPath=function(){for(var v=A.prototype.getGraphPath.call(this),w=v.length+1;w--;)(w===v.length||v[w][0]==="M")&&w>0&&v.splice(w,0,["Z"]);return this.areaPath=v,v},u.prototype.drawGraph=function(){this.options.fillColor=this.color,E.prototype.drawGraph.call(this)},u.defaultOptions=c(P.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),u}(P);return y(g.prototype,{type:"polygon",drawLegendSymbol:B.drawRectangle,drawTracker:F.prototype.drawTracker,setStackedPoints:V}),H.registerSeriesType("polygon",g),g}),et(_,"Core/Axis/WaterfallAxis.js",[_["Core/Axis/Stacking/StackItem.js"],_["Core/Utilities.js"]],function(G,B){var H,U=B.addEvent,$=B.objectEach;return function(Z){var V=function(){function P(y){this.axis=y,this.stacks={changed:!1}}return P.prototype.renderStackTotals=function(){var y=this.axis,c=y.waterfall.stacks,g=y.stacking&&y.stacking.stackTotalGroup,m=new G(y,y.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=m,g&&$(c,function(u){$(u,function(v,w){m.total=v.stackTotal,m.x=+w,v.label&&(m.label=v.label),G.prototype.render.call(m,g),v.label=m.label,delete m.label})}),m.total=null},P}();function F(){var P=this.waterfall.stacks;P&&(P.changed=!1,delete P.alreadyChanged)}function I(){var P=this,y=P.options.stackLabels;y&&y.enabled&&P.waterfall.stacks&&P.waterfall.renderStackTotals()}function E(){for(var P=this.axes,y=this.series,c=y.length;c--;)y[c].options.stacking&&(P.forEach(function(g){g.isXAxis||(g.waterfall.stacks.changed=!0)}),c=0)}function A(){var P=this;P.waterfall||(P.waterfall=new V(P))}Z.Composition=V,Z.compose=function(P,y){U(P,"init",A),U(P,"afterBuildStacks",F),U(P,"afterRender",I),U(y,"beforeRedraw",E)}}(H||(H={})),H}),et(_,"Series/Waterfall/WaterfallPoint.js",[_["Series/Column/ColumnSeries.js"],_["Core/Series/Point.js"],_["Core/Utilities.js"]],function(G,B,H){var U,$=this&&this.__extends||(U=function(F,I){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var P in A)A.hasOwnProperty(P)&&(E[P]=A[P])},U(F,I)},function(F,I){function E(){this.constructor=F}U(F,I),F.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=H.isNumber,V=function(F){function I(){var E=F!==null&&F.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return $(I,F),I.prototype.getClassName=function(){var E=B.prototype.getClassName.call(this);return this.isSum?E+=" highcharts-sum":this.isIntermediateSum&&(E+=" highcharts-intermediate-sum"),E},I.prototype.isValid=function(){return Z(this.y)||this.isSum||!!this.isIntermediateSum},I}(G.prototype.pointClass);return V}),et(_,"Series/Waterfall/WaterfallSeries.js",[_["Core/Axis/Axis.js"],_["Core/Chart/Chart.js"],_["Core/Series/SeriesRegistry.js"],_["Core/Utilities.js"],_["Core/Axis/WaterfallAxis.js"],_["Series/Waterfall/WaterfallPoint.js"]],function(G,B,H,U,$,Z){var V,F=this&&this.__extends||(V=function(p,f){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var t in l)l.hasOwnProperty(t)&&(r[t]=l[t])},V(p,f)},function(p,f){function r(){this.constructor=p}V(p,f),p.prototype=f===null?Object.create(f):(r.prototype=f.prototype,new r)}),I=H.seriesTypes,E=I.column,A=I.line,P=U.arrayMax,y=U.arrayMin,c=U.correctFloat,g=U.extend,m=U.isNumber,u=U.merge,v=U.objectEach,w=U.pick;function M(p,f){return Object.hasOwnProperty.call(p,f)}var C=function(p){function f(){var r=p!==null&&p.apply(this,arguments)||this;return r.chart=void 0,r.data=void 0,r.options=void 0,r.points=void 0,r.stackedYNeg=void 0,r.stackedYPos=void 0,r.stackKey=void 0,r.xData=void 0,r.yAxis=void 0,r.yData=void 0,r}return F(f,p),f.prototype.generatePoints=function(){E.prototype.generatePoints.apply(this);for(var r=0,l=this.points.length;r<l;r++){var t=this.points[r],i=this.processedYData[r];m(i)&&(t.isIntermediateSum||t.isSum)&&(t.y=c(i))}},f.prototype.translate=function(){var r,l,t,i,o=this,e=o.options,a=o.yAxis,s=w(e.minPointLength,5),h=s/2,b=e.threshold||0,k=e.stacking,O=a.waterfall.stacks[o.stackKey],d=b,x=b;E.prototype.translate.apply(o);for(var T=o.points,N=0;N<T.length;N++){var z=T[N],L=o.processedYData[N],D=z.shapeArgs;if(D&&m(L)){var j=[0,L],Y=z.y;if(k){if(O){var X=O[N];k==="overlap"?(l=X.stackState[X.stateIndex--],r=Y>=0?l:l-Y,M(X,"absolutePos")&&delete X.absolutePos,M(X,"absoluteNeg")&&delete X.absoluteNeg):(Y>=0?(l=X.threshold+X.posTotal,X.posTotal-=Y,r=l):(l=X.threshold+X.negTotal,X.negTotal-=Y,r=l-Y),X.posTotal||m(X.absolutePos)&&M(X,"absolutePos")&&(X.posTotal=X.absolutePos,delete X.absolutePos),X.negTotal||m(X.absoluteNeg)&&M(X,"absoluteNeg")&&(X.negTotal=X.absoluteNeg,delete X.absoluteNeg)),z.isSum||(X.connectorThreshold=X.threshold+X.stackTotal),a.reversed?(t=Y>=0?r-Y:r+Y,i=r):(t=r,i=r-Y),z.below=t<=b,D.y=a.translate(t,!1,!0,!1,!0),D.height=Math.abs(D.y-a.translate(i,!1,!0,!1,!0));var W=a.waterfall.dummyStackItem;W&&(W.x=N,W.label=O[N].label,W.setOffset(o.pointXOffset||0,o.barW||0,o.stackedYNeg[N],o.stackedYPos[N],void 0,this.xAxis))}}else r=Math.max(x,x+Y)+j[0],D.y=a.translate(r,!1,!0,!1,!0),z.isSum?(D.y=a.translate(j[1],!1,!0,!1,!0),D.height=Math.min(a.translate(j[0],!1,!0,!1,!0),a.len)-D.y,z.below=j[1]<=b):z.isIntermediateSum?(Y>=0?(t=j[1]+d,i=d):(t=d,i=j[1]+d),a.reversed&&(t^=i,t^=i^=t),D.y=a.translate(t,!1,!0,!1,!0),D.height=Math.abs(D.y-Math.min(a.translate(i,!1,!0,!1,!0),a.len)),d+=j[1],z.below=t<=b):(D.height=L>0?a.translate(x,!1,!0,!1,!0)-D.y:a.translate(x,!1,!0,!1,!0)-a.translate(x-L,!1,!0,!1,!0),x+=L,z.below=x<b),D.height<0&&(D.y+=D.height,D.height*=-1);z.plotY=D.y=Math.round(D.y||0)-o.borderWidth%2/2,D.height=Math.max(Math.round(D.height||0),.001),z.yBottom=D.y+D.height,D.height<=s&&!z.isNull?(D.height=s,D.y-=h,z.plotY=D.y,z.y<0?z.minPointLengthOffset=-h:z.minPointLengthOffset=h):(z.isNull&&(D.width=0),z.minPointLengthOffset=0);var q=z.plotY+(z.negative?D.height:0);z.below&&(z.plotY+=D.height),z.tooltipPos&&(o.chart.inverted?z.tooltipPos[0]=a.len-q:z.tooltipPos[1]=q),z.isInside=this.isPointInside(z)}}},f.prototype.processData=function(r){var l,t,i,o,e,a,s,h=this,b=h.options,k=h.yData,O=b.data,d=k.length,x=b.threshold||0;for(i=t=o=e=0,s=0;s<d;s++)a=k[s],l=O&&O[s]?O[s]:{},a==="sum"||l.isSum?k[s]=c(i):a==="intermediateSum"||l.isIntermediateSum?(k[s]=c(t),t=0):(i+=a,t+=a),o=Math.min(i,o),e=Math.max(i,e);p.prototype.processData.call(this,r),b.stacking||(h.dataMin=o+x,h.dataMax=e)},f.prototype.toYData=function(r){return r.isSum?"sum":r.isIntermediateSum?"intermediateSum":r.y},f.prototype.updateParallelArrays=function(r,l){p.prototype.updateParallelArrays.call(this,r,l),this.yData[0]!=="sum"&&this.yData[0]!=="intermediateSum"||(this.yData[0]=null)},f.prototype.pointAttribs=function(r,l){var t=this.options.upColor;t&&!r.options.color&&(r.color=r.y>0?t:void 0);var i=E.prototype.pointAttribs.call(this,r,l);return delete i.dashstyle,i},f.prototype.getGraphPath=function(){return[["M",0,0]]},f.prototype.getCrispPath=function(){var r,l,t,i,o,e,a,s,h,b=this.data,k=this.yAxis,O=b.length,d=Math.round(this.graph.strokeWidth())%2/2,x=Math.round(this.borderWidth)%2/2,T=this.xAxis.reversed,N=this.yAxis.reversed,z=this.options.stacking,L=[];for(h=1;h<O;h++)if(s=b[h].shapeArgs,i=b[h-1],a=b[h-1].shapeArgs,l=k.waterfall.stacks[this.stackKey],e=i.y>0?-a.height:0,l&&a&&s&&(t=l[h-1],z?(r=t.connectorThreshold,o=Math.round(k.translate(r,!1,!0,!1,!0)+(N?e:0))-d):o=a.y+i.minPointLengthOffset+x-d,L.push(["M",(a.x||0)+(T?0:a.width||0),o],["L",(s.x||0)+(T&&s.width||0),o])),a&&L.length&&(!z&&i.y<0&&!N||i.y>0&&N)){var D=L[L.length-2];D&&typeof D[2]=="number"&&(D[2]+=a.height||0);var j=L[L.length-1];j&&typeof j[2]=="number"&&(j[2]+=a.height||0)}return L},f.prototype.drawGraph=function(){A.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},f.prototype.setStackedPoints=function(){var r,l,t,i,o,e,a,s,h,b,k,O,d=this,x=d.options,T=d.yAxis.waterfall.stacks,N=x.threshold||0,z=N,L=z,D=d.stackKey,j=d.xData,Y=j.length;function X(tt,Q,nt,lt){if(r){if(o)for(;nt<o;nt++)r.stackState[nt]+=lt;else r.stackState[0]=tt,o=r.stackState.length;r.stackState.push(r.stackState[o-1]+Q)}}if(d.yAxis.stacking.usePercentage=!1,l=t=i=z,d.visible||!d.chart.options.chart.ignoreHiddenSeries){O=T.changed,(k=T.alreadyChanged)&&k.indexOf(D)<0&&(O=!0),T[D]||(T[D]={});var W=T[D];if(W)for(var q=0;q<Y;q++)W[b=j[q]]&&!O||(W[b]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:O&&W[b]?W[b].label:void 0}),r=W[b],(h=d.yData[q])>=0?r.posTotal+=h:r.negTotal+=h,s=x.data[q],e=r.absolutePos=r.posTotal,a=r.absoluteNeg=r.negTotal,r.stackTotal=e+a,o=r.stackState.length,s&&s.isIntermediateSum?(X(i,t,0,i),i=t,t=N,z^=L,z^=L^=z):s&&s.isSum?(X(N,l,o,0),z=N):(X(z,h,0,l),s&&(l+=h,t+=h)),r.stateIndex++,r.threshold=z,z+=r.stackTotal;T.changed=!1,T.alreadyChanged||(T.alreadyChanged=[]),T.alreadyChanged.push(D)}},f.prototype.getExtremes=function(){var r,l,t,i=this.options.stacking;return i?(r=this.yAxis.waterfall.stacks,l=this.stackedYNeg=[],t=this.stackedYPos=[],v(r[this.stackKey],i==="overlap"?function(o){l.push(y(o.stackState)),t.push(P(o.stackState))}:function(o){l.push(o.negTotal+o.threshold),t.push(o.posTotal+o.threshold)}),{dataMin:y(l),dataMax:P(t)}):{dataMin:this.dataMin,dataMax:this.dataMax}},f.defaultOptions=u(E.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),f}(E);return g(C.prototype,{getZonesGraphs:A.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:Z}),H.registerSeriesType("waterfall",C),$.compose(G,B),C}),et(_,"Core/Axis/RadialAxis.js",[_["Core/Axis/AxisDefaults.js"],_["Core/Defaults.js"],_["Core/Globals.js"],_["Core/Utilities.js"]],function(G,B,H,U){var $,Z=B.defaultOptions,V=H.noop,F=U.addEvent,I=U.correctFloat,E=U.defined,A=U.extend,P=U.fireEvent,y=U.merge,c=U.pick,g=U.relativeLength,m=U.wrap;return function(u){var v=[],w={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},M={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},C={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};function p(){this.autoConnect=this.isCircular&&c(this.userMax,this.options.max)===void 0&&I(this.endAngleRad-this.startAngleRad)===I(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function f(){var W=this;return function(){if(W.isRadial&&W.tickPositions&&W.options.labels&&W.options.labels.allowOverlap!==!0)return W.tickPositions.map(function(q){return W.ticks[q]&&W.ticks[q].label}).filter(function(q){return!!q})}}function r(){return V}function l(W,q,tt){var Q,nt,lt,gt=this.pane.center,mt=W.value;return this.isCircular?(E(mt)?W.point&&(W.point.shapeArgs||{}).start&&(mt=this.chart.inverted?this.translate(W.point.rectPlotY,!0):W.point.x):(nt=W.chartX||0,lt=W.chartY||0,mt=this.translate(Math.atan2(lt-tt,nt-q)-this.startAngleRad,!0)),nt=(Q=this.getPosition(mt)).x,lt=Q.y):(E(mt)||(nt=W.chartX,lt=W.chartY),E(nt)&&E(lt)&&(tt=gt[1]+this.chart.plotTop,mt=this.translate(Math.min(Math.sqrt(Math.pow(nt-q,2)+Math.pow(lt-tt,2)),gt[2]/2)-gt[3]/2,!0))),[mt,nt||0,lt||0]}function t(W,q,tt){var Q,nt,lt=this.pane.center,gt=this.chart,mt=this.left||0,bt=this.top||0,yt=c(q,lt[2]/2-this.offset);return tt===void 0&&(tt=this.horiz?0:this.center&&-this.center[3]/2),tt&&(yt+=tt),this.isCircular||q!==void 0?((nt=this.chart.renderer.symbols.arc(mt+lt[0],bt+lt[1],yt,yt,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[mt+lt[0]],nt.yBounds=[bt+lt[1]-yt]):(Q=this.postTranslate(this.angleRad,yt),nt=[["M",this.center[0]+gt.plotLeft,this.center[1]+gt.plotTop],["L",Q.x,Q.y]]),nt}function i(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function o(W,q,tt){var Q,nt,lt,gt,mt,bt,yt=this.chart,dt=function(It){if(typeof It=="string"){var jt=parseInt(It,10);return wt.test(It)&&(jt=jt*ut/100),jt}return It},ot=this.center,at=this.startAngleRad,ut=ot[2]/2,vt=Math.min(this.offset,0),Ct=this.left||0,xt=this.top||0,wt=/%$/,Mt=this.isCircular,At=c(dt(tt.outerRadius),ut),Tt=dt(tt.innerRadius),Et=c(dt(tt.thickness),10);if(this.options.gridLineInterpolation==="polygon")bt=this.getPlotLinePath({value:W}).concat(this.getPlotLinePath({value:q,reverse:!0}));else{W=Math.max(W,this.min),q=Math.min(q,this.max);var Pt=this.translate(W),Dt=this.translate(q);Mt||(At=Pt||0,Tt=Dt||0),tt.shape!=="circle"&&Mt?(Q=at+(Pt||0),nt=at+(Dt||0)):(Q=-Math.PI/2,nt=1.5*Math.PI,mt=!0),At-=vt,Et-=vt,bt=yt.renderer.symbols.arc(Ct+ot[0],xt+ot[1],At,At,{start:Math.min(Q,nt),end:Math.max(Q,nt),innerR:c(Tt,At-Et),open:mt}),Mt&&(lt=(nt+Q)/2,gt=Ct+ot[0]+ot[2]/2*Math.cos(lt),bt.xBounds=lt>-Math.PI/2&<<Math.PI/2?[gt,yt.plotWidth]:[0,gt],bt.yBounds=[xt+ot[1]+ot[2]/2*Math.sin(lt)],bt.yBounds[0]+=lt>-Math.PI&<<0||lt>Math.PI?-10:10)}return bt}function e(W){var q,tt,Q,nt,lt,gt,mt,bt,yt,dt=this,ot=this.pane.center,at=this.chart,ut=at.inverted,vt=W.reverse,Ct=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},xt=Ct.innerRadius||"0%",wt=Ct.outerRadius||"100%",Mt=ot[0]+at.plotLeft,At=ot[1]+at.plotTop,Tt=this.height,Et=W.isCrosshair,Pt=ot[3]/2,Dt=W.value,It=this.getPosition(Dt),jt=It.x,_t=It.y;if(Et&&(Dt=(bt=this.getCrosshairPosition(W,Mt,At))[0],jt=bt[1],_t=bt[2]),this.isCircular)tt=Math.sqrt(Math.pow(jt-Mt,2)+Math.pow(_t-At,2)),Q=typeof xt=="string"?g(xt,1):xt/tt,nt=typeof wt=="string"?g(wt,1):wt/tt,ot&&Pt&&(Q<(q=Pt/tt)&&(Q=q),nt<q&&(nt=q)),yt=[["M",Mt+Q*(jt-Mt),At-Q*(At-_t)],["L",jt-(1-nt)*(jt-Mt),_t+(1-nt)*(At-_t)]];else if((Dt=this.translate(Dt))&&(Dt<0||Dt>Tt)&&(Dt=0),this.options.gridLineInterpolation==="circle")yt=this.getLinePath(0,Dt,Pt);else if(yt=[],at[ut?"yAxis":"xAxis"].forEach(function(Jt){Jt.pane===dt.pane&&(lt=Jt)}),lt){mt=lt.tickPositions,lt.autoConnect&&(mt=mt.concat([mt[0]])),vt&&(mt=mt.slice().reverse()),Dt&&(Dt+=Pt);for(var Rt=0;Rt<mt.length;Rt++)gt=lt.getPosition(mt[Rt],Dt),yt.push(Rt?["L",gt.x,gt.y]:["M",gt.x,gt.y])}return yt}function a(W,q){var tt=this.translate(W);return this.postTranslate(this.isCircular?tt:this.angleRad,c(this.isCircular?q:tt<0?0:tt,this.center[2]/2)-this.offset)}function s(){var W=this.center,q=this.chart,tt=this.options.title;return{x:q.plotLeft+W[0]+(tt.x||0),y:q.plotTop+W[1]-{high:.5,middle:.25,low:0}[tt.align]*W[2]+(tt.y||0)}}function h(W){W.beforeSetTickPositions=p,W.createLabelCollector=f,W.getCrosshairPosition=l,W.getLinePath=t,W.getOffset=i,W.getPlotBandPath=o,W.getPlotLinePath=e,W.getPosition=a,W.getTitlePosition=s,W.postTranslate=z,W.setAxisSize=D,W.setAxisTranslation=j,W.setOptions=Y}function b(){var W=this.chart,q=this.options,tt=W.angular&&this.isXAxis,Q=this.pane,nt=Q&&Q.options;if(!tt&&Q&&(W.angular||W.polar)){var lt=2*Math.PI,gt=(c(nt.startAngle,0)-90)*Math.PI/180,mt=(c(nt.endAngle,c(nt.startAngle,0)+360)-90)*Math.PI/180;this.angleRad=(q.angle||0)*Math.PI/180,this.startAngleRad=gt,this.endAngleRad=mt,this.offset=q.offset||0;var bt=(gt%lt+lt)%lt,yt=(mt%lt+lt)%lt;bt>Math.PI&&(bt-=lt),yt>Math.PI&&(yt-=lt),this.normalizedStartAngleRad=bt,this.normalizedEndAngleRad=yt}}function k(W){this.isRadial&&(W.align=void 0,W.preventDefault())}function O(){if(this.chart&&this.chart.labelCollectors){var W=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;W>=0&&this.chart.labelCollectors.splice(W,1)}}function d(W){var q,tt,Q=this.chart,nt=Q.inverted,lt=Q.angular,gt=Q.polar,mt=this.isXAxis,bt=this.coll,yt=lt&&mt,dt=W.userOptions.pane||0,ot=this.pane=Q.pane&&Q.pane[dt];bt!=="colorAxis"?(lt?(yt?((tt=this).isHidden=!0,tt.createLabelCollector=r,tt.getOffset=V,tt.redraw=L,tt.render=L,tt.setScale=V,tt.setCategories=V,tt.setTitle=V):h(this),(q=!mt)&&(this.defaultPolarOptions=M)):gt&&(h(this),q=this.horiz,this.defaultPolarOptions=q?w:y(bt==="xAxis"?G.defaultXAxisOptions:G.defaultYAxisOptions,C),nt&&bt==="yAxis"&&(this.defaultPolarOptions.stackLabels=G.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),lt||gt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&Q.labelCollectors.push(this.labelCollector)):this.isRadial=!1,ot&&q&&(ot.axis=this),this.isCircular=q):this.isRadial=!1}function x(){this.isRadial&&this.beforeSetTickPositions()}function T(W){var q=this.label;if(q){var tt,Q=this.axis,nt=q.getBBox(),lt=Q.options.labels,gt=(Q.translate(this.pos)+Q.startAngleRad+Math.PI/2)/Math.PI*180%360,mt=Math.round(gt),bt=E(lt.y)?0:.3*-nt.height,yt=lt.y,dt=20,ot=lt.align,at="end",ut=mt<0?mt+360:mt,vt=ut,Ct=0,xt=0;Q.isRadial&&(tt=Q.getPosition(this.pos,Q.center[2]/2+g(c(lt.distance,-25),Q.center[2]/2,-Q.center[2]/2)),lt.rotation==="auto"?q.attr({rotation:gt}):E(yt)||(yt=Q.chart.renderer.fontMetrics(q.styles&&q.styles.fontSize).b-nt.height/2),E(ot)||(Q.isCircular?(nt.width>Q.len*Q.tickInterval/(Q.max-Q.min)&&(dt=0),ot=gt>dt&><180-dt?"left":gt>180+dt&><360-dt?"right":"center"):ot="center",q.attr({align:ot})),ot==="auto"&&Q.tickPositions.length===2&&Q.isCircular&&(ut>90&&ut<180?ut=180-ut:ut>270&&ut<=360&&(ut=540-ut),vt>180&&vt<=360&&(vt=360-vt),Q.pane.options.startAngle!==mt&&Q.pane.options.startAngle!==mt+360&&Q.pane.options.startAngle!==mt-360||(at="start"),ot=mt>=-90&&mt<=90||mt>=-360&&mt<=-270||mt>=270&&mt<=360?at==="start"?"right":"left":at==="start"?"left":"right",vt>70&&vt<110&&(ot="center"),ut<15||ut>=180&&ut<195?Ct=.3*nt.height:ut>=15&&ut<=35?Ct=at==="start"?0:.75*nt.height:ut>=195&&ut<=215?Ct=at==="start"?.75*nt.height:0:ut>35&&ut<=90?Ct=at==="start"?.25*-nt.height:nt.height:ut>215&&ut<=270&&(Ct=at==="start"?nt.height:.25*-nt.height),vt<15?xt=at==="start"?.15*-nt.height:.15*nt.height:vt>165&&vt<=180&&(xt=at==="start"?.15*nt.height:.15*-nt.height),q.attr({align:ot}),q.translate(xt,Ct+bt)),W.pos.x=tt.x+(lt.x||0),W.pos.y=tt.y+(yt||0))}}function N(W){this.axis.getPosition&&A(W.pos,this.axis.getPosition(this.pos))}function z(W,q){var tt=this.chart,Q=this.center;return W=this.startAngleRad+W,{x:tt.plotLeft+Q[0]+Math.cos(W)*q,y:tt.plotTop+Q[1]+Math.sin(W)*q}}function L(){this.isDirty=!1}function D(){var W,q;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),W=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(q=this.postTranslate(this.angleRad,W[3]/2),W[0]=q.x-this.chart.plotLeft,W[1]=q.y-this.chart.plotTop),this.len=this.width=this.height=(W[2]-W[3])*c(this.sector,1)/2)}function j(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function Y(W){var q=this.options=y(this.constructor.defaultOptions,this.defaultPolarOptions,Z[this.coll],W);q.plotBands||(q.plotBands=[]),P(this,"afterSetOptions")}function X(W,q,tt,Q,nt,lt,gt){var mt,bt=this.axis;return bt.isRadial?["M",q,tt,"L",(mt=bt.getPosition(this.pos,bt.center[2]/2+Q)).x,mt.y]:W.call(this,q,tt,Q,nt,lt,gt)}u.compose=function(W,q){return v.indexOf(W)===-1&&(v.push(W),F(W,"afterInit",b),F(W,"autoLabelAlign",k),F(W,"destroy",O),F(W,"init",d),F(W,"initialAxisTranslation",x)),v.indexOf(q)===-1&&(v.push(q),F(q,"afterGetLabelPosition",T),F(q,"afterGetPosition",N),m(q.prototype,"getMarkPath",X)),W}}($||($={})),$}),et(_,"Series/PolarComposition.js",[_["Core/Animation/AnimationUtilities.js"],_["Core/Globals.js"],_["Extensions/Pane.js"],_["Core/Axis/RadialAxis.js"],_["Core/Utilities.js"]],function(G,B,H,U,$){var Z=this&&this.__spreadArray||function(d,x,T){if(T||arguments.length===2)for(var N,z=0,L=x.length;z<L;z++)!N&&z in x||(N||(N=Array.prototype.slice.call(x,0,z)),N[z]=x[z]);return d.concat(N||Array.prototype.slice.call(x))},V=G.animObject,F=$.addEvent,I=$.defined,E=$.find,A=$.isNumber,P=$.pick,y=$.splat,c=$.uniqueKey,g=$.wrap,m=[];function u(d,x,T,N){var z,L,D,j,Y,X,W=1.5,q=2.5,tt=N?1:0,Q=(z=x>=0&&x<=d.length-1?x:x<0?d.length-1+x:0)-1<0?d.length-(1+tt):z-1,nt=z+1>d.length-1?tt:z+1,lt=d[Q],gt=d[nt],mt=lt.plotX,bt=lt.plotY,yt=gt.plotX,dt=gt.plotY,ot=d[z].plotX,at=d[z].plotY;L=(W*ot+mt)/q,D=(W*at+bt)/q,j=(W*ot+yt)/q,Y=(W*at+dt)/q;var ut=Math.sqrt(Math.pow(L-ot,2)+Math.pow(D-at,2)),vt=Math.sqrt(Math.pow(j-ot,2)+Math.pow(Y-at,2)),Ct=Math.atan2(D-at,L-ot),xt=Math.atan2(Y-at,j-ot);X=Math.PI/2+(Ct+xt)/2,Math.abs(Ct-X)>Math.PI/2&&(X-=Math.PI),L=ot+Math.cos(X)*ut,D=at+Math.sin(X)*ut;var wt={rightContX:j=ot+Math.cos(Math.PI+X)*vt,rightContY:Y=at+Math.sin(Math.PI+X)*vt,leftContX:L,leftContY:D,plotX:ot,plotY:at};return T&&(wt.prevPointCont=u(d,Q,!1,N)),wt}function v(){(this.pane||[]).forEach(function(d){d.render()})}function w(d){var x=d.args[0].xAxis,T=d.args[0].yAxis,N=d.args[0].chart;x&&T&&(T.gridLineInterpolation==="polygon"?(x.startOnTick=!0,x.endOnTick=!0):x.gridLineInterpolation==="polygon"&&N.inverted&&(T.startOnTick=!0,T.endOnTick=!0))}function M(){var d=this;this.pane||(this.pane=[]),this.options.pane=y(this.options.pane),this.options.pane.forEach(function(x){new H(x,d)},this)}function C(d){var x=d.args.marker,T=this.chart.xAxis[0],N=this.chart.yAxis[0],z=this.chart.inverted,L=z?N:T,D=z?T:N;if(this.chart.polar){d.preventDefault();var j=(x.attr?x.attr("start"):x.start)-L.startAngleRad,Y=x.attr?x.attr("r"):x.r,X=(x.attr?x.attr("end"):x.end)-L.startAngleRad,W=x.attr?x.attr("innerR"):x.innerR;d.result.x=j+L.pos,d.result.width=X-j,d.result.y=D.len+D.pos-W,d.result.height=W-Y}}function p(d){var x=this.chart;if(x.polar&&x.hoverPane&&x.hoverPane.axis){d.preventDefault();var T=x.hoverPane.center,N=this.mouseDownX||0,z=this.mouseDownY||0,L=d.args.chartY,D=d.args.chartX,j=2*Math.PI,Y=x.hoverPane.axis.startAngleRad,X=x.hoverPane.axis.endAngleRad,W=x.inverted?x.xAxis[0]:x.yAxis[0],q={},tt="arc";if(q.x=T[0]+x.plotLeft,q.y=T[1]+x.plotTop,this.zoomHor){var Q=Y>0?X-Y:Math.abs(Y)+Math.abs(X),nt=Math.atan2(z-x.plotTop-T[1],N-x.plotLeft-T[0])-Y,lt=Math.atan2(L-x.plotTop-T[1],D-x.plotLeft-T[0])-Y;q.r=T[2]/2,q.innerR=T[3]/2,nt<=0&&(nt+=j),lt<=0&&(lt+=j),lt<nt&&(lt=[nt,nt=lt][0]),Q<j&&Y+lt>X+(j-Q)/2&&(lt=nt,nt=Y<=0?Y:0);var gt=q.start=Math.max(nt+Y,Y),mt=q.end=Math.min(lt+Y,X);if(W.options.gridLineInterpolation==="polygon"){(Tt=x.hoverPane.axis).tickInterval;var bt=gt-Tt.startAngleRad+Tt.pos,yt=mt-gt,dt=W.getPlotLinePath({value:W.max}),ot=Tt.toValue(bt),at=Tt.toValue(bt+yt);if(ot<Tt.getExtremes().min){var ut=Tt.getExtremes(),vt=ut.min;ot=ut.max-(vt-ot)}if(at<Tt.getExtremes().min){var Ct=Tt.getExtremes(),xt=Ct.min;at=Ct.max-(xt-at)}at<ot&&(at=[ot,ot=at][0]),(dt=t(dt,ot,at,Tt)).push(["L",T[0]+x.plotLeft,x.plotTop+T[1]]),q.d=dt,tt="path"}}if(this.zoomVert){var wt=x.inverted?x.xAxis[0]:x.yAxis[0],Mt=Math.sqrt(Math.pow(N-x.plotLeft-T[0],2)+Math.pow(z-x.plotTop-T[1],2)),At=Math.sqrt(Math.pow(D-x.plotLeft-T[0],2)+Math.pow(L-x.plotTop-T[1],2));At<Mt&&(Mt=[At,At=Mt][0]),At>T[2]/2&&(At=T[2]/2),Mt<T[3]/2&&(Mt=T[3]/2),this.zoomHor||(q.start=Y,q.end=X),q.r=At,q.innerR=Mt,wt.options.gridLineInterpolation==="polygon"&&(mt=wt.toValue(wt.len+wt.pos-Mt),gt=wt.toValue(wt.len+wt.pos-At),dt=wt.getPlotLinePath({value:gt}).concat(wt.getPlotLinePath({value:mt,reverse:!0})),q.d=dt,tt="path")}if(this.zoomHor&&this.zoomVert&&W.options.gridLineInterpolation==="polygon"){var Tt=x.hoverPane.axis;if(gt=q.start||0,mt=q.end||0,bt=gt-Tt.startAngleRad+Tt.pos,yt=mt-gt,ot=Tt.toValue(bt),at=Tt.toValue(bt+yt),q.d instanceof Array){var Et=q.d.slice(0,q.d.length/2),Pt=q.d.slice(q.d.length/2,q.d.length);Pt=Z([],Pt,!0).reverse();var Dt=x.hoverPane.axis;Et=t(Et,ot,at,Dt),(Pt=t(Pt,ot,at,Dt))&&(Pt[0][0]="L"),Pt=Z([],Pt,!0).reverse(),q.d=Et.concat(Pt),tt="path"}}d.attrs=q,d.shapeType=tt}}function f(){var d=this.chart;d.polar&&(this.polar=new O(this),d.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function r(){if(this.chart.polar&&this.xAxis){var d=this,x=d.chart;d.kdByAngle=x.tooltip&&x.tooltip.shared,d.kdByAngle?d.searchPoint=l:d.options.findNearestPointBy="xy";for(var T=d.points,N=T.length;N--;)d.preventPostTranslate||d.polar.toXY(T[N]),x.hasParallelCoordinates||d.yAxis.reversed||(P(T[N].y,Number.MIN_VALUE)<d.yAxis.min||T[N].x<d.xAxis.min||T[N].x>d.xAxis.max?(T[N].isNull=!0,T[N].plotY=NaN):T[N].isNull=T[N].isValid&&!T[N].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!d.eventsToUnbind.push(F(d,"afterRender",function(){var z,L,D,j,Y,X,W,q,tt;x.polar&&(z=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:z[0],y:z[1],r:z[2]/2,innerR:z[3]/2}):this.clipCircle=(L=x.renderer,D=z[0],j=z[1],Y=z[2]/2,X=z[3]/2,W=c(),q=L.createElement("clipPath").attr({id:W}).add(L.defs),(tt=X?L.arc(D,j,Y,X,0,2*Math.PI).add(q):L.circle(D,j,Y).add(q)).id=W,tt.clipPath=q,tt),this.group.clip(this.clipCircle),this.setClip=B.noop)})))}}function l(d){var x=this,T=x.chart,N=x.xAxis,z=N.pane&&N.pane.center,L=d.chartX-(z&&z[0]||0)-T.plotLeft,D=d.chartY-(z&&z[1]||0)-T.plotTop;return x.searchKDTree({clientX:180+Math.atan2(L,D)*(-180/Math.PI)})}function t(d,x,T,N){var z=N.tickInterval,L=N.tickPositions,D=E(L,function(Y){return Y>=T}),j=E(Z([],L,!0).reverse(),function(Y){return Y<=x});return I(D)||(D=L[L.length-1]),I(j)||(j=L[0],D+=z,d[0][0]="L",d.unshift(d[d.length-3])),(d=d.slice(L.indexOf(j),L.indexOf(D)+1))[0][0]="M",d}function i(d,x){return E(this.pane||[],function(T){return T.options.id===x})||d.call(this,x)}function o(d,x,T,N,z,L){var D,j,Y,X=this.chart,W=P(N.inside,!!this.options.stacking);X.polar?(D=x.rectPlotX/Math.PI*180,X.inverted?(this.forceDL=X.isInsidePlot(x.plotX,x.plotY),W&&x.shapeArgs?(j=x.shapeArgs,z={x:(Y=this.yAxis.postTranslate(((j.start||0)+(j.end||0))/2-this.xAxis.startAngleRad,x.barX+x.pointWidth/2)).x-X.plotLeft,y:Y.y-X.plotTop}):x.tooltipPos&&(z={x:x.tooltipPos[0],y:x.tooltipPos[1]}),N.align=P(N.align,"center"),N.verticalAlign=P(N.verticalAlign,"middle")):N=function(q,tt){var Q,nt;return tt.align===null&&(Q=q>20&&q<160?"left":q>200&&q<340?"right":"center",tt.align=Q),tt.verticalAlign===null&&(nt=q<45||q>315?"bottom":q>135&&q<225?"top":"middle",tt.verticalAlign=nt),tt}(D,N),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,x,T,N,z,L),this.isRadialBar&&x.shapeArgs&&x.shapeArgs.start===x.shapeArgs.end?T.hide():T.show()):d.call(this,x,T,N,z,L)}function e(d){var x,T,N,z,L,D,j,Y,X,W,q,tt,Q,nt=this,lt=nt.options,gt=lt.stacking,mt=nt.chart,bt=nt.xAxis,yt=nt.yAxis,dt=yt.reversed,ot=yt.center,at=bt.startAngleRad,ut=bt.endAngleRad-at,vt=lt.threshold,Ct=0,xt=0,wt=0;if(nt.preventPostTranslate=!0,d.call(nt),bt.isRadial)for(N=(x=nt.points).length,z=yt.translate(yt.min),L=yt.translate(yt.max),vt=lt.threshold||0,mt.inverted&&A(vt)&&(Ct=yt.translate(vt),I(Ct)&&(Ct<0?Ct=0:Ct>ut&&(Ct=ut),nt.translatedThreshold=Ct+at));N--;)q=(T=x[N]).barX,j=T.x,Y=T.y,T.shapeType="arc",mt.inverted?(T.plotY=yt.translate(Y),gt&&yt.stacking?(W=yt.stacking.stacks[(Y<0?"-":"")+nt.stackKey],nt.visible&&W&&W[j]&&(T.isNull||(X=W[j].points[nt.getStackIndicator(void 0,j,nt.index).key],xt=yt.translate(X[0]),wt=yt.translate(X[1]),I(xt)&&(xt=$.clamp(xt,0,ut))))):(xt=Ct,wt=T.plotY),xt>wt&&(wt=[xt,xt=wt][0]),dt?wt>z?wt=z:xt<L?xt=L:(xt>z||wt<L)&&(xt=wt=ut):xt<z?xt=z:wt>L?wt=L:(wt<z||xt>L)&&(xt=wt=0),yt.min>yt.max&&(xt=wt=dt?ut:0),xt+=at,wt+=at,ot&&(T.barX=q+=ot[3]/2),tt=Math.max(q,0),Q=Math.max(q+T.pointWidth,0),T.shapeArgs={x:ot&&ot[0],y:ot&&ot[1],r:Q,innerR:tt,start:xt,end:wt},T.opacity=xt===wt?0:void 0,T.plotY=(I(nt.translatedThreshold)&&(xt<nt.translatedThreshold?xt:wt))-at):(xt=q+at,T.shapeArgs=nt.polar.arc(T.yBottom,T.plotY,xt,xt+T.pointWidth)),nt.polar.toXY(T),mt.inverted?(D=yt.postTranslate(T.rectPlotY,q+T.pointWidth/2),T.tooltipPos=[D.x-mt.plotLeft,D.y-mt.plotTop]):T.tooltipPos=[T.plotX,T.plotY],ot&&(T.ttBelow=T.plotY>ot[1])}function a(d,x){var T,N,z=this;if(this.chart.polar){x=x||this.points;for(var L=0;L<x.length;L++)if(!x[L].isNull){T=L;break}this.options.connectEnds!==!1&&T!==void 0&&(this.connectEnds=!0,x.splice(x.length,0,x[T]),N=!0),x.forEach(function(j){j.polarPlotY===void 0&&z.polar.toXY(j)})}var D=d.apply(this,[].slice.call(arguments,1));return N&&x.pop(),D}function s(d,x){var T=this.chart,N={xAxis:[],yAxis:[]};return T.polar?T.axes.forEach(function(z){if(z.coll!=="colorAxis"){var L=z.isXAxis,D=z.center,j=x.chartX-D[0]-T.plotLeft,Y=x.chartY-D[1]-T.plotTop;N[L?"xAxis":"yAxis"].push({axis:z,value:z.translate(L?Math.PI-Math.atan2(j,Y):Math.sqrt(Math.pow(j,2)+Math.pow(Y,2)),!0)})}}):N=d.call(this,x),N}function h(d,x){this.chart.polar||d.call(this,x)}function b(d,x){var T,N,z,L,D,j,Y=this,X=this.chart,W=this.group,q=this.markerGroup,tt=this.xAxis&&this.xAxis.center,Q=X.plotLeft,nt=X.plotTop,lt=this.options.animation;X.polar?Y.isRadialBar?x||(Y.startAngleRad=P(Y.translatedThreshold,Y.xAxis.startAngleRad),B.seriesTypes.pie.prototype.animate.call(Y,x)):X.renderer.isSVG&&(lt=V(lt),Y.is("column")?x||(N=tt[3]/2,Y.points.forEach(function(gt){z=gt.graphic,L=gt.shapeArgs,D=L&&L.r,j=L&&L.innerR,z&&L&&(z.attr({r:N,innerR:N}),z.animate({r:D,innerR:j},Y.options.animation))})):x?(T={translateX:tt[0]+Q,translateY:tt[1]+nt,scaleX:.001,scaleY:.001},W.attr(T),q&&q.attr(T)):(T={translateX:Q,translateY:nt,scaleX:1,scaleY:1},W.animate(T,lt),q&&q.animate(T,lt))):d.call(this,x)}function k(d,x,T,N){var z,L;if(this.chart.polar)if(N){var D=(L=u(x,N,!0,this.connectEnds)).prevPointCont&&L.prevPointCont.rightContX,j=L.prevPointCont&&L.prevPointCont.rightContY;z=["C",A(D)?D:L.plotX,A(j)?j:L.plotY,A(L.leftContX)?L.leftContX:L.plotX,A(L.leftContY)?L.leftContY:L.plotY,L.plotX,L.plotY]}else z=["M",T.plotX,T.plotY];else z=d.call(this,x,T,N);return z}var O=function(){function d(x){this.series=x}return d.compose=function(x,T,N,z,L,D,j,Y,X){if(U.compose(x,L),m.indexOf(T)===-1){m.push(T),F(T,"afterDrawChartBox",v),F(T,"getAxes",M),F(T,"init",w);var W=T.prototype;g(W,"get",i)}if(m.indexOf(N)===-1){m.push(N);var q=N.prototype;g(q,"getCoordinates",s),g(q,"pinch",h),F(N,"getSelectionMarkerAttrs",p),F(N,"getSelectionBox",C)}if(m.indexOf(z)===-1){m.push(z),F(z,"afterInit",f),F(z,"afterTranslate",r,{order:2});var tt=z.prototype;g(tt,"animate",b)}if(j&&m.indexOf(j)===-1){m.push(j);var Q=j.prototype;g(Q,"alignDataLabel",o),g(Q,"animate",b),g(Q,"translate",e)}if(Y&&m.indexOf(Y)===-1){m.push(Y);var nt=Y.prototype;g(nt,"getGraphPath",a)}if(X&&m.indexOf(X)===-1){m.push(X);var lt=X.prototype;g(lt,"getPointSpline",k),D&&m.indexOf(D)===-1&&(m.push(D),D.prototype.getPointSpline=lt.getPointSpline)}},d.prototype.arc=function(x,T,N,z){var L=this.series,D=L.xAxis.center,j=L.yAxis.len,Y=D[3]/2,X=j-T+Y,W=j-P(x,j)+Y;return L.yAxis.reversed&&(X<0&&(X=Y),W<0&&(W=Y)),{x:D[0],y:D[1],r:X,innerR:W,start:N,end:z}},d.prototype.toXY=function(x){var T,N=this.series,z=N.chart,L=N.xAxis,D=N.yAxis,j=x.plotX,Y=z.inverted,X=x.y,W=x.plotY,q=Y?j:D.len-W;if(Y&&N&&!N.isRadialBar&&(x.plotY=W=A(X)?D.translate(X):0),x.rectPlotX=j,x.rectPlotY=W,D.center&&(q+=D.center[3]/2),A(W)){var tt=Y?D.postTranslate(W,q):L.postTranslate(j,q);x.plotX=x.polarPlotX=tt.x-z.plotLeft,x.plotY=x.polarPlotY=tt.y-z.plotTop}N.kdByAngle?((T=(j/Math.PI*180+L.pane.options.startAngle)%360)<0&&(T+=360),x.clientX=T):x.clientX=x.plotX},d}();return O}),et(_,"masters/highcharts-more.src.js",[_["Core/Globals.js"],_["Core/Series/SeriesRegistry.js"],_["Series/Bubble/BubbleSeries.js"],_["Series/PackedBubble/PackedBubbleSeries.js"],_["Series/PolarComposition.js"]],function(G,B,H,U,$){var Z=G;H.compose(Z.Axis,Z.Chart,Z.Legend,Z.Series),U.compose(Z.Axis,Z.Chart,Z.Legend,Z.Series),$.compose(Z.Axis,Z.Chart,Z.Pointer,Z.Series,Z.Tick,B.seriesTypes.areasplinerange,B.seriesTypes.column,B.seriesTypes.line,B.seriesTypes.spline)})},it.exports?(pt.default=pt,it.exports=pt):(ht=[st(4783)],(ct=function(ft){return pt(ft),pt.Highcharts=ft,pt}.apply(rt,ht))===void 0||(it.exports=ct))},6956:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=Array.isArray},6979:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=function(ct,pt){return ct===pt||ct!=ct&&pt!=pt}},7313:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=function(ct){return ct!=null&&typeof ct=="object"}},7783:function(it,rt,st){var ht=this&&this.__createBinding||(Object.create?function(_,et,G,B){B===void 0&&(B=G);var H=Object.getOwnPropertyDescriptor(et,G);H&&!("get"in H?!et.__esModule:H.writable||H.configurable)||(H={enumerable:!0,get:function(){return et[G]}}),Object.defineProperty(_,B,H)}:function(_,et,G,B){B===void 0&&(B=G),_[B]=et[G]}),ct=this&&this.__exportStar||function(_,et){for(var G in _)G==="default"||Object.prototype.hasOwnProperty.call(et,G)||ht(et,_,G)},pt=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(rt,"__esModule",{value:!0});var ft=pt(st(4608));rt.default=ft.default,ct(st(4783),rt)},7942:(it,rt,st)=>{st.d(rt,{A:()=>ht});const ht=function(ct){var pt=typeof ct;return ct!=null&&(pt=="object"||pt=="function")}},8552:(it,rt,st)=>{st.r(rt),st.d(rt,{default:()=>pt});var ht=st(5118),ct=st(9322);const pt=function(ft,_,et){var G=ft==null?void 0:function(B,H){for(var U=0,$=(H=(0,ht.A)(H,B)).length;B!=null&&U<$;)B=B[(0,ct.A)(H[U++])];return U&&U==$?B:void 0}(ft,_);return G===void 0?et:G}},9170:function(it,rt,st){var ht=this&&this.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(5134)),pt=ht(st(605)),ft={enabled:!0,overflow:"justify",style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily,fontSize:"13px",fontWeight:"normal",cursor:"default",lineHeight:"14px"}},_={series:{turboThreshold:1e3,dataLabels:ct.default.merge(ft,{align:"center"}),states:{inactive:{enabled:!1}}},line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},connectNulls:!1,cursor:"default",clip:!0,dashStyle:null,enableMouseTracking:!0,events:{},legendIndex:0,linecap:"round",lineWidth:2,shadow:!1,stacking:null,label:{style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily}},marker:{enabled:!0,symbol:null,lineWidth:0,radius:4,lineColor:"#FFFFFF",fillColor:null,states:{hover:{enabled:!0},select:{fillColor:"transparent",lineColor:"transparent"}}},point:{events:{}},dataLabels:ct.default.merge(ft,{align:"center",enabled:!1}),cropThreshold:300,pointRange:0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0},column:{maxPointWidth:82,dataLabels:ct.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"bottom",overflow:"justify"})},bar:{maxPointWidth:82,dataLabels:ct.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"middle",overflow:"justify"})},pie:{dataLabels:{overflow:"ellipsis"}}};rt.default=_},9223:function(it,rt,st){var ht=this&&this.__importDefault||function(pt){return pt&&pt.__esModule?pt:{default:pt}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.getCircleCenter=rt.getSlicePercentage=rt.calculateFontSize=void 0;var ct=ht(st(8552));rt.calculateFontSize=function(pt){return pt/1.5},rt.getSlicePercentage=function(pt){return(0,ct.default)(pt,"series.chart.options.plotOptions.pie.dataLabels.showDecimals")===!0?pt.percentage.toFixed(1).replace(".0",""):Math.round(pt.percentage)},rt.getCircleCenter=function(pt){return{circleCenterX:(0,ct.default)(pt,"shapeArgs.x")+pt.series.chart.plotBox.x,circleCenterY:(0,ct.default)(pt,"shapeArgs.y")+pt.series.chart.plotBox.y}}},9322:(it,rt,st)=>{st.d(rt,{A:()=>ct});var ht=st(4089);const ct=function(pt){if(typeof pt=="string"||(0,ht.A)(pt))return pt;var ft=pt+"";return ft=="0"&&1/pt==-1/0?"-0":ft}},9465:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(123);const ct=function(){try{var ft=(0,ht.A)(Object,"defineProperty");return ft({},"",{}),ft}catch(_){}}(),pt=function(ft,_,et){_=="__proto__"&&ct?ct(ft,_,{configurable:!0,enumerable:!0,value:et,writable:!0}):ft[_]=et}},9600:(it,rt,st)=>{st.d(rt,{A:()=>pt});var ht=st(6713),ct=typeof self=="object"&&self&&self.Object===Object&&self;const pt=ht.A||ct||Function("return this")()},9681:function(it,rt,st){var ht=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(rt,"__esModule",{value:!0});var ct=ht(st(605)),pt={align:"center",itemHoverStyle:{color:ct.default.legendColor},itemStyle:{color:ct.default.legendColor,fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis",fontFamily:ct.default.fontFamily},navigation:{style:{color:ct.default.legendNavigationColor,fontFamily:ct.default.fontFamily},activeColor:ct.default.legendNavigationColor,inactiveColor:ct.default.legendNavigationSecondaryColor},alignColumns:!1};rt.default=pt}},K={};function J(it){var rt=K[it];if(rt!==void 0)return rt.exports;var st=K[it]={exports:{}};return R[it].call(st.exports,st,st.exports,J),st.exports}return J.d=(it,rt)=>{for(var st in rt)J.o(rt,st)&&!J.o(it,st)&&Object.defineProperty(it,st,{enumerable:!0,get:rt[st]})},J.o=(it,rt)=>Object.prototype.hasOwnProperty.call(it,rt),J.r=it=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(it,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(it,"__esModule",{value:!0})},J(938)})())})(In,In.exports);var Um=In.exports;const Kh=Gn(Um),Vm=n=>n?mi(n)||n.column.type&&Bt.isNumber(n.column.type):!1,$m=(n,S,R)=>{if(!n||S===void 0||isNaN(S))return R;const K=ve(n.numberFormatConfig);return Br(K,S)},he=(n,S,R)=>Vm(n)?$m(n,parseFloat(`${S}`),R):R,Zm=["auto","column","area","areaspline","bar","scatter","arearange"];function qh(n){return n!=null&&n.chartType?Zm.includes(n.chartType):!0}const Ee=(n,S)=>n!==""?`<span style="color:${S!=null?S:"currentColor"}; font-size: 15px; line-height: 18px">${n}</span>`:"",go=(n,S)=>`${S||""}${S&&n?"<br />":""}${n||""}`,Vi=n=>$h.sanitize(`<div style="min-width: 100px; color: #5B6372; font-size: 13px; line-height: 18px; margin: 4px 6px">
|
|
9
|
+
${n}
|
|
10
|
+
</div>`),wi=()=>'<hr class="csdk-border-t" style="margin: 7px 0px" />',Km=n=>{const S=n.map((R,K)=>R&&K>0?wi()+R:R).join("");return Vi(S)},qm=(n,S)=>{const{maskedX:R,maskedY:K,maskedBreakByPoint:J,maskedSize:it,maskedBreakByColor:rt}=n.point.custom,st=he(S.x,n.point.x,R),ht=he(S.y,n.point.y,K),ct=he(S.size,n.point.z,it||""),pt=Ee(st,n.point.color),ft=Ee(ht,n.point.color),_=Ee(J||"",n.point.color),et=Ee(rt||"",n.point.color),G=Ee(ct,n.point.color);return{x:pt,y:ft,breakByPoint:_,breakByColor:et,size:G}},Jm=(n,S)=>{const R=go(n.x,S.x&&Ae(S.x)),K=go(n.y,S.y&&Ae(S.y)),J=go(n.breakByPoint,S.breakByPoint&&Ae(S.breakByPoint)),it=go(n.breakByColor,S.breakByColor&&Ae(S.breakByColor)),rt=go(n.size,S.size&&Ae(S.size));return{x:R,y:K,breakByPoint:J,breakByColor:it,size:rt}},Qm=(n,S)=>{const R=qm(n,S),{x:K,y:J,breakByPoint:it,breakByColor:rt,size:st}=Jm(R,S);return Km([K,J,it,rt,st])},ty=n=>({enabled:!0,useHTML:!0,formatter(){return Qm(this,n)}}),$i=(n,S)=>`Maximum number of series (${S}) exceeded (${n})`,Ar=(n,S,R)=>`'${n.toUpperCase()}-Axis:' Maximum number of categories (${R}) exceeded (${S})`,Go="$forecast",Hr="$trend",Hi=n=>n.startsWith(Go),us=n=>n.startsWith(Hr),Tr=n=>`${n} $range`,ey=(n,S,R)=>{if(!(n!=null&&n.data))return-1;const K=R[Tr(n.name)],J=S[Tr(n.name)],it=n.name.substring(Go.length+1),rt=S[it],st=n.data.findIndex(ht=>!isNaN((ht==null?void 0:ht.y)||NaN));return st===-1?(console.debug("Forecast data has no valid data points",n.name,n.data),-1):(n.type="line",n.showInLegend=!1,n.data[st-1].y=rt.data[st-1].y,n.dashStyle="ShortDash",n.color=rt.color,n.statisticalSeriesRelatesToSeries=it,n.data.forEach((ht,ct)=>{ht.high=K.data[ct].y,ht.low=J.data[ct].y}),st)},iy=(n,S)=>{n.showInLegend=!1,n.enableMouseTracking=!1;const R=n.name.substring(Go.length+1,n.name.length-7),K=S[R];n.statisticalSeriesRelatesToSeries=R,n.color=K.color,n.fillOpacity=.15,n.lineWidth=0},oy=(n,S)=>{if(!n.data)return;const R=n.name.substring(10,n.name.length-7),K=S[R],J=n.data.findIndex(it=>!isNaN((it==null?void 0:it.low)||NaN));if(J===-1){console.debug("Forecast range data has no valid data points",n.name,n.data);return}n.data[J-1].low=K.data[J-1].y,n.data[J-1].high=K.data[J-1].y,n.statisticalSeriesRelatesToSeries=R},ry=(n,S,R)=>{n.forEach(K=>K.plotBands=[{color:"#F7F7FA",borderWidth:0,from:S-1,to:R}])},ny=(n,S)=>{n.type="line";const R=n.name.substring(Hr.length+1),K=S[R];n.statisticalSeriesRelatesToSeries=R,n.showInLegend=!1,n.dashStyle="ShortDot",n.color=K.color;let J=0,it=Number.MAX_VALUE;const rt=K.data.filter(G=>G.y).map(G=>(J=Math.max(J,G.y||0),it=Math.min(it,G.y||0),G.y)),st=it,ht=J,ct=rt.reduce((G,B)=>G+B,0)/rt.length,pt=[...rt].sort((G,B)=>G-B),ft=Math.floor(pt.length/2),_=pt.length%2!==0?pt[ft]:(pt[ft-1]+pt[ft])/2,et={min:st,max:ht,median:_,average:ct};n.data.forEach(G=>{G.trend=et})},sy=n=>{const S={};n.forEach(R=>{S[R.name]=R}),n.forEach(R=>{us(R.name)&&ny(R,S)})},Jh=n=>{const{breakBy:S}=n;if(S.length>0)return!1;const R=n.category.filter(it=>!("enabled"in it)||it.enabled);if(R.length!==1)return!1;const[K]=R;let J=!1;return ts(K)?J=K.column.type==="datelevel":Pd(K)&&(J=K.type==="datelevel"),J},ay=n=>Jh(n)?n.value.filter(S=>(S==null?void 0:S.trend)!==void 0).map(S=>({column:Bt.trend(S.column,`${Hr}_${S.column.name}`,S.trend),numberFormatConfig:S.numberFormatConfig})):[],ly=n=>Jh(n)?n.value.filter(S=>(S==null?void 0:S.forecast)!==void 0).map(S=>({column:Bt.forecast(S.column,`${Go}_${S.column.name}`,S.forecast),numberFormatConfig:S.numberFormatConfig})):[],Qh=(n,S)=>{const R=()=>Nt(kt({},n),{y:[]}),K=R(),J=R(),it=1,rt=0;n.seriesValues.forEach(ct=>{K.y.push(ct),J.y.push(ct)}),n.rangeValues.forEach(ct=>{const pt=ct[it],ft=ct[rt];K.y.push(pt),J.y.push(ft)});const st=kn(K,S),ht=kn(J,S);return Nt(kt({},st),{type:"range",seriesOther:ht})},tc=n=>n.rangeValues?!1:n.y.some(R=>Hi(Ae(R))),ec=n=>{const S=n.y.filter(it=>Hi(Ae(it))).map(it=>{const rt=Nt(kt({},it),{column:gr(it.column,{title:it.column.title&&Tr(it.column.title),name:`${it.column.name}_upper`})});return[Nt(kt({},it),{column:gr(it.column,{title:it.column.title&&Tr(it.column.title),name:`${it.column.name}_lower`})}),rt]}),K=S.concat(n.y).flat(),J=n.y;return Nt(kt({},n),{rangeValues:S,seriesValues:J,y:K})},hy=(n,S)=>{const R=ec(n);return Nt(kt({},Qh(R,S)),{type:"cartesian"})};var cy="[object Number]";function _n(n){return typeof n=="number"||Bt.isObjectLike(n)&&Bt.baseGetTag(n)==cy}const di="#d1d1d7",py=n=>n.series[0].data.reduce((S,{low:R,high:K})=>({min:Math.min(S.min,R),max:Math.max(S.max,K)}),{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY}),dy=(n,S,R)=>[{labels:{overflow:"none",enabled:n.enabled&&n.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:Pe,formatter(){const{value:K}=this;if(R&&!mi(R)&&!Bt.isNumber(R.column.type))return`${K}`;const J=typeof K=="number"?K:parseFloat(K);return isNaN(J)?`${K}`:ke(ve(R==null?void 0:R.numberFormatConfig),J)}},categories:S,title:{text:n.enabled&&n.titleEnabled&&n.title||null,margin:25},tickmarkPlacement:"on",gridLineWidth:n.enabled&&n.gridLine?1:0,minorTickLength:0,tickLength:0,startOnTick:!0,endOnTick:!0,lineColor:di,tickColor:di,minorTickColor:di,gridLineColor:di,gridLineDashStyle:"Dot",minorGridLineColor:di,minorGridLineDashStyle:"Dot",min:n.enabled?n.min:null,max:n.enabled?n.max:null}],uy=(n,S,R)=>{const K=py(S);return[{labels:{enabled:n.enabled&&n.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:Pe,formatter(){return ke(ve(R==null?void 0:R.numberFormatConfig),this.value)}},tickmarkPlacement:"on",title:{text:n.enabled&&n.titleEnabled&&n.title||null,margin:25,style:Pe},minorGridLineWidth:0,lineColor:di,lineWidth:1,tickColor:di,minorTickColor:di,gridLineColor:di,gridLineDashStyle:"Dot",gridLineWidth:n.enabled&&n.gridLine?1:0,minorGridLineColor:di,minorGridLineDashStyle:"Dot",min:n.enabled&&_n(n.min)?n.min:K.min,max:n.enabled&&_n(n.max)?n.max:K.max,tickInterval:n.enabled?n.tickInterval:null}]},Ba=n=>function(S,R){var J,it;const K=R?this.point[R]:void 0;return K===void 0||isNaN(K)?"":`${(J=n==null?void 0:n.prefix)!=null?J:""}${ke(ve(),K)}${(it=n==null?void 0:n.suffix)!=null?it:""}`},fy=n=>{var R,K;const S=_e(n);return{series:{dataLabels:Nt(kt({rotation:(R=n==null?void 0:n.rotation)!=null?R:0,align:"center"},S),{style:kt({fontSize:"13px",fontWeight:"normal"},S.style),formatter:Ba(n)}),grouping:!1,stickyTracking:!1,turboThreshold:0,boostThreshold:0,softThreshold:!1},boxplot:{dataLabels:Nt(kt({rotation:(K=n==null?void 0:n.rotation)!=null?K:0,align:"center"},S),{style:kt({fontSize:"13px",fontWeight:"normal"},S.style),formatter:Ba(n)})},scatter:{dataLabels:{enabled:!1}}}},gy=(n,S,R)=>{const K=[],[J,it]=n.series,{boxplotType:rt}=S,st=.15,ht=ni(R,0),ct=ht,pt=Oo(ht,-1*st),ft=Oo(ht,-2*st),_=Ch(ft,2*st),et=[Nt(kt({},J),{data:J.data.map((G,B)=>{var H;return Nt(kt({},G),{color:ft,fillColor:rt==="hollow"?"transparent":ct,innerBoxColor:rt==="hollow"?"transparent":pt,selected:(H=G.blur)!=null?H:!1,custom:{xValue:n.xValues[B].rawValues}})}),medianWidth:1,maxPointWidth:42,minPointWidth:20,whiskerWidth:1,whiskerLength:"100%",fillOpacity:.8,strokeOpacity:.8,showInLegend:!0,legendIndex:0,yAxis:0,color:ft})];return it&&et.push(Nt(kt({},it),{data:it.data.map(G=>Nt(kt({},G),{marker:{lineColor:G.blur?_:ft},custom:{xValue:n.xValues[G.x].rawValues}})),type:"scatter",legendIndex:1,showInLegend:!1,marker:{enabled:!0,fillColor:"transparent",lineWidth:1,lineColor:ft},color:ft})),{series:et,alerts:K}},my=(n,S)=>({animation:!1,backgroundColor:Ai,borderColor:Mi,borderRadius:10,borderWidth:1,useHTML:!0,formatter(){const{x:R,y:K}=this,{high:J,low:it,q3:rt,q1:st,median:ht}=this.point,ct=Qn(J),pt=he(n.category,R,`${R}`);if(ct){const H=he(n.outliers,K,`${K}`);return Vi(`
|
|
11
|
+
<div>${this.series.name}</div>
|
|
12
|
+
<div>${Ee(H,this.point.color)}</div>
|
|
13
|
+
${n.category?`${wi()}<div>${pt}</div>`:""}
|
|
14
|
+
`)}const ft=he(n.whiskerMax,J,`${J}`),_=he(n.whiskerMin,it,`${it}`),et=he(n.boxMax,rt,`${rt}`),G=he(n.boxMin,st,`${st}`),B=he(n.boxMedian,ht,`${ht}`);return Vi(`
|
|
15
|
+
<div>${S("boxplot.tooltip.whiskers")}</div>
|
|
16
|
+
<div class="csdk-boxplot-tooltip-row">
|
|
17
|
+
<span>${S("boxplot.tooltip.max")}</span>
|
|
18
|
+
${Ee(ft,this.point.color)}
|
|
19
|
+
</div>
|
|
20
|
+
<div class="csdk-boxplot-tooltip-row">
|
|
21
|
+
<span>${S("boxplot.tooltip.min")}</span>
|
|
22
|
+
${Ee(_,this.point.color)}
|
|
23
|
+
</div>
|
|
24
|
+
${wi()}
|
|
25
|
+
<div>${S("boxplot.tooltip.box")}</div>
|
|
26
|
+
<div class="csdk-boxplot-tooltip-row">
|
|
27
|
+
<span>${S("boxplot.tooltip.max")}</span>
|
|
28
|
+
${Ee(et,this.point.color)}
|
|
29
|
+
</div>
|
|
30
|
+
<div class="csdk-boxplot-tooltip-row">
|
|
31
|
+
<span>${S("boxplot.tooltip.min")}</span>
|
|
32
|
+
${Ee(G,this.point.color)}
|
|
33
|
+
</div>
|
|
34
|
+
<div class="csdk-boxplot-tooltip-row">
|
|
35
|
+
<span>${S("boxplot.tooltip.median")}</span>
|
|
36
|
+
${Ee(B,this.point.color)}
|
|
37
|
+
</div>
|
|
38
|
+
${wi()}
|
|
39
|
+
<div>${n.category?pt:this.series.name}</div>
|
|
40
|
+
`)}}),ic=(n,S,R,K,J=!1)=>{const ht=K<(J?200:400),pt=R*20,ft=K>pt;return!S||ht||ft?{enabled:!1}:{series:{type:n,dataGrouping:{enabled:!1}},tooltipFormatter:()=>({left:"",right:""}),enabled:!0,margin:30,height:40,xAxis:{labels:{enabled:!1}},handles:{symbols:["navigator-handle","navigator-handle"],backgroundColor:Mi,borderColor:Ai},maskInside:!0,maskFill:"rgba(91,99,114, 0.15)",outlineColor:Mi,outlineWidth:1}};function oc(n,S,R){n.xAxis[0].setExtremes(S,R,!1)}function Ra(n){return"polarType"in n}const lo=(n,S)=>n==="line"&&S.lineType==="smooth"?"spline":n==="area"&&S.lineType==="smooth"?"areaspline":n==="polar"?S.polarType:n==="scatter"?"bubble":n,rc=(n,S)=>{var K,J;const R={totalLabels:{enabled:!1}};if(n!=="area"&&n!=="bar"&&n!=="column"&&n!=="polar")return R;if(n==="polar"){if(Ra(S))return{stacking:S.polarType==="column"||S.polarType==="area"?"normal":void 0,totalLabels:{enabled:!1}};throw new Bt.TranslatableError("errors.polarChartDesignOptionsExpected")}if(Ra(S))throw new Bt.TranslatableError("errors.polarChartDesignOptionsNotExpected");switch(S.stackType){case"stacked":return{stacking:"normal",totalLabels:(K=S.totalLabels)!=null?K:R.totalLabels};case"stack100":return{stacking:"percent",totalLabels:(J=S.totalLabels)!=null?J:R.totalLabels};default:return R}},yy=(n,S)=>n.map((R,K)=>S===K?0:-1),vy=(n,S,R,K,J,it,rt,st)=>{const ht=sc(n,R),ft=n,{title:ct}=ft,pt=je(ft,["title"]);return Nt(kt({},pt),{name:ct!=null?ct:n.name,data:xy(ht,S,K,J,R,it,rt,st)})},by=(n,S)=>{!S.minClipped&&(n!=null&&n.min)&&(n==null?void 0:n.min)>0&&(n.min=0),!S.maxClipped&&(n!=null&&n.max)&&(n==null?void 0:n.max)<0&&(n.max=0)},xy=(n,S,R,K,J,it,rt,st)=>{const ht=S.map((et,G)=>{if(et<0)return{y:null};const{value:B,blur:H,color:U,rawValue:$,xValue:Z,xDisplayValue:V,xCompareValue:F}=n[et],I=nc(n,S,et,G),E=I||H,A={enabled:!H,isIsolatedPoint:I},P=F?F[0]:NaN;return Nt(kt(kt({x:P,y:B,selected:!!H},E&&{marker:A}),U&&{color:U}),{custom:{rawValue:$,xValue:Z,xDisplayValue:V||Z}})}),ct=[];let pt=-1;const ft=R/2;let _=0;return ht.forEach(et=>{if(et.x&&pt===-1&&(pt=et.x+ft),et.x&&et.x>pt){let G=Math.round((et.x-(pt-ft))/R);for(;G>0&&(_++,!(_>K));){const B=et.x-R*G;ct.push({custom:{xDisplayValue:it(B)},x:B,y:J?0:null}),J&&(rt!=null&&rt.min)&&(rt==null?void 0:rt.min)>0&&by(rt,st),G--,pt+=R}}ct.push(et),et.x?pt=et.x+R+ft:pt+=R}),Ly(ct)},no=(n,S,R,K,J,it)=>{const rt=sc(n,R,it),ct=n,{title:st}=ct,ht=je(ct,["title"]);return Nt(kt({},ht),{name:st!=null?st:n.name,data:Cy(rt,S,K,J)})},nc=(n,S,R,K)=>{const J=K===0||S[K-1]<0||isNaN(n[S[K-1]].value),it=K+1===S.length||S[K+1]<0||isNaN(n[S[K+1]].value);return J&&it},sc=(n,S,R)=>n.data.map(it=>{var rt=it,{value:K}=rt,J=je(rt,["value"]);return kt({value:S&&Number.isNaN(K)?0:R?Math.abs(K):K},J)}),Cy=(n,S,R,K)=>{const J=n.some(it=>it.blur!==void 0);return S.map((it,rt)=>{if(it<0)return{y:null};const{value:st,blur:ht,color:ct,rawValue:pt,xValue:ft,xDisplayValue:_}=n[it];if(R)return Nt(kt({name:R[it],y:st,color:ct!=null?ct:K==null?void 0:K[it]},J&&!ht&&{selected:!0}),{custom:{rawValue:pt,xValue:ft,xDisplayValue:_||ft}});{const et=nc(n,S,it,rt),G=et||J,B={enabled:!ht,isIsolatedPoint:et};return Nt(kt(kt({y:isNaN(+st)?st:+st,selected:!!ht},G&&{marker:B}),ct&&{color:ct}),{custom:{rawValue:pt,xValue:ft,xDisplayValue:_||ft}})}})},Sy=(n,S,R=.1)=>{const J=Math.abs(S-n)*R/2;return{min:n<0?n-J:n,max:S>=0?S+J:S}},za=(n,S)=>{const R=kt({},S);return n.min&&n.min>=R.max&&(R.max=n.min*(n.min>=0?2:.5)),n.max&&n.max<=R.min&&(R.min=n.max*(n.max>=0?.5:2)),R},Fa=(n,S)=>{const R=kt({},S);return R.min<=0||(n==="column"||n==="bar")&&(R.min=0),R},wy=(n,S,R,K,J,it)=>{const rt=S.series.map((ft,_)=>Nt(kt({},ft),{data:ft.data.map(B=>{var H=B,{value:et}=H,G=je(H,["value"]);return kt({value:isNaN(et)&&J[_]?0:et},G)})})).filter((ft,_)=>K[_]===it),{stacking:st}=rc(n,R),ht=it===0?R.yAxis:R.y2Axis||{min:void 0,max:void 0},ct=Bt.isPolar(n)&&R.polarType!=="line";if(st==="percent")return{min:0,max:100};if(st==="normal"||ct){const ft=Array.from(Array(S.xValues.length),()=>({plus:0,minus:0}));let et=rt.reduce((G,B)=>(B.data.forEach(({value:H},U)=>{H<0?G[U].minus+=H||0:G[U].plus+=H||0}),G),ft).reduce((G,B)=>({min:Math.min(G.min,B.minus),max:Math.max(G.max,B.plus)}),{min:Number.MAX_VALUE,max:Number.MIN_VALUE});return et=za(ht,et),et=Fa(n,et),R.seriesLabels&&(et=Sy(ht.min||et.min,ht.max||et.max)),et}let pt=rt.reduce((ft,_)=>{const et=_.data.map(({value:G})=>G).filter(G=>!isNaN(G));return{min:Math.min(ft.min,...et),max:Math.max(ft.max,...et)}},{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY});return pt=za(ht,pt),pt=Fa(n,pt),pt},My=n=>n.length<=1?!0:n.filter(({enabled:R})=>R).length<=1,Ay=(n,S)=>{if(!(!n.chartType||n.chartType==="auto"||S))return n.chartType},ac=n=>n?1:0,kr=n=>!!n,sr=(n,S)=>Array(S).fill(n),Ty=n=>{if(n.length===0)return[[0],[void 0],[!1],[!1]];const S=My(n),R=n.map(({showOnRightAxis:rt})=>ac(rt)),K=n.map(rt=>Ay(rt,S)),J=n.map(({treatNullDataAsZeros:rt})=>kr(rt)),it=n.map(({connectNulls:rt})=>kr(rt));return[R,K,J,it]},ky=(n,S)=>{const R=n[0],K=ac(R==null?void 0:R.showOnRightAxis),J=R?kr(R.treatNullDataAsZeros):void 0,it=R?kr(R.connectNulls):void 0;return[sr(K,S),sr(void 0,S),sr(J,S),sr(it,S)]},Py=(n,S)=>{if(n.type!=="cartesian")return[[],[],[],[]];const R=S,{y:K,breakBy:J}=R;return J.length>0?ky(K,n.series.length):Ty(K)},Xr=(n,S)=>{var R,K;if(n.breakBy.length===0){if(n.y.length===0)return Mi;const J=(R=n.y.find(it=>it.column.name===S))==null?void 0:R.color;return Xl(J)}else return(K=n.seriesToColorMap)==null?void 0:K[S]};function Ly(n){return n.map((S,R)=>{const K=n[R-1],J=n[R+1];return(K===void 0||K.y===null)&&(J===void 0||J.y===null)?Nt(kt({},S),{marker:{enabled:!0,isIsolatedPoint:!0}}):S})}const Ey=(n,S,R,K,J)=>{var _;const it=lo("boxplot",S),{series:rt,alerts:st}=gy(n,S,J==null?void 0:J.palette.variantColors),ht=n.xValues.map(et=>et.key),ct=dy(S.xAxis,ht,R.category),pt=ps((_=S.autoZoom)==null?void 0:_.onScrollerChange)(ct);return{options:{title:{text:null},chart:{type:it,spacing:[25,20,20,20],polar:!1,zooming:{type:"x"},events:{load:function(){var H;const et=this,G=et.chartWidth,B=ic(it,S.autoZoom.enabled,n.xValues.length,G);if(B.enabled&&((H=S.autoZoom)!=null&&H.scrollerLocation)){const{min:U,max:$}=S.autoZoom.scrollerLocation;U>=0&&$>=U&&$<n.xValues.length&&oc(et,U,$)}et.update({navigator:B},!0)},selection:et=>{et.preventDefault()}}},legend:zi(S.legend),xAxis:pt,yAxis:uy(S.yAxis,n,R.whiskerMax),series:rt,plotOptions:fy(S.seriesLabels),tooltip:my(R,K)},alerts:st}},lc=n=>Nt(kt({enabled:n.enabled,radius:!n.enabled||n.size==="small"?4:7,fillColor:!n.enabled||n.fill==="full"?null:Ai,lineColor:null,lineWidth:2,symbol:"circle",fillOpacity:.3},!n.enabled&&{symbol:"circle"}),{states:{hover:{fillColor:Ai,radius:n.size==="small"?6:9,lineWidth:3}}});function hc(n){const{x1Value:S,x2Value:R}=n;return ji(Ml,{children:[ue("div",{style:{fontSize:"10px",color:"#666",marginTop:"6px"},children:R||S?ue("hr",{className:"csdk-border-t",style:{margin:"7px 0px"}}):""}),R||"",R&&S?", ":"",S||""]})}function Wi(n){const{name:S,value:R}=n;return ue("div",{style:{display:"table-row-group"},children:ji("div",{style:{display:"table-row",height:"18px"},children:[ue("div",{style:{display:"table-cell",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:S}),ue("div",{style:{display:"table-cell",paddingLeft:"15px",fontWeight:"600"},children:R.map((K,J)=>ue("div",{children:K},J))})]})})}function cc(n){const{prefix:S,title:R}=n;return ji("div",{style:{display:"flex",marginBottom:"5px"},children:[ue("div",{style:{flexShrink:0},children:S}),ue("div",{style:{marginLeft:"5px",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:R})]})}function Oy(n){const{t:S}=Wn(),R=n.translate||S,{confidenceValue:K,lowerValue:J,forecastValue:it,upperValue:rt,title:st,x1Value:ht,x2Value:ct}=n;return ji("div",{style:{color:Vn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[ue(cc,{prefix:R("advanced.tooltip.forecast"),title:st}),ji("div",{style:{display:"table"},children:[ue(Wi,{name:R("advanced.tooltip.forecastValue"),value:[it]}),ue(Wi,{name:R("advanced.tooltip.max"),value:[rt]}),ue(Wi,{name:R("advanced.tooltip.min"),value:[J]}),ue(Wi,{name:R("advanced.tooltip.confidenceInterval"),value:[K]})]}),ue(hc,{x1Value:ht,x2Value:ct})]})}const Dy=n=>tl.renderToString(ue(Oy,kt({},n))),jy={smooth:"Advanced Smoothing",linear:"Linear Trend",local:"Local Estimates",logarithmic:"Logarithmic Trend"};function Iy(n){const{t:S}=Wn(),R=n.translate||S,{localValue:K,trendData:J,modelType:it,title:rt,x1Value:st,x2Value:ht}=n,ct=[`${R("advanced.tooltip.trendData.min")} ${J.min}`,`${R("advanced.tooltip.trendData.max")} ${J.max}`,`${R("advanced.tooltip.trendData.median")} ${J.median}`,`${R("advanced.tooltip.trendData.average")} ${J.average}`];return ji("div",{style:{color:Vn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[ue(cc,{prefix:R("advanced.tooltip.trend"),title:rt}),ji("div",{style:{display:"table"},children:[ue(Wi,{name:R("advanced.tooltip.trendType"),value:[jy[it]]}),ue(Wi,{name:R("advanced.tooltip.trendLocalValue"),value:[K]}),ue(Wi,{name:R("advanced.tooltip.trendDataKey"),value:ct})]}),ue(hc,{x1Value:st,x2Value:ht})]})}const _y=n=>tl.renderToString(ue(Iy,kt({},n))),Ny=/modelType=([^"]+)/,By=/confidenceInterval=([^"]+)/,Ry=", ";function zy(n){return n!==void 0?`${Math.round(n)}`:void 0}function Fy(n,S){var R,K;return n.breakBy.length>0?(R=n.y)==null?void 0:R.find(J=>J.enabled):(K=n.y)==null?void 0:K.find(J=>J.column.title===S)}function Gy(n,S){var st,ht,ct,pt;const R=(st=n.point)==null?void 0:st.custom,K=R==null?void 0:R.xDisplayValue,J=R==null?void 0:R.xValue;if(((ht=S.x)==null?void 0:ht.length)===2&&J){const ft=Array.isArray(K)&&K[0]!=null?String(K[0]):String((ct=J[0])!=null?ct:""),_=Array.isArray(K)&&K[1]!=null?String(K[1]):n.x;return{x1Value:String(he(S.x[1],n.x,_)),x2Value:String(he(S.x[0],J[0],ft))}}const it=Array.isArray(K)?(pt=K[0])!=null?pt:n.x:K!=null?K:n.x,rt=S.x?he(S.x[0],n.x,typeof it=="string"?it:String(it)):it;return{x1Value:String(rt),x2Value:void 0}}function Wy(n,S,R){const K=qh(n);return he(n,S,"")+(K&&R?` / ${R}%`:"")}function Hy(n,S){const R=n.point.name||n.series.name;return S&&Hi(R)?n.series.name.substring(10):S&&us(R)?n.series.name.substring(7):n.series.name}function Xy(n,S){return{low:S!=null&&S.low?he(n,S.low,""):"",high:S!=null&&S.high?he(n,S.high,""):""}}function Yy(n){var S,R;return(R=(S=n==null?void 0:n.match(Ny))==null?void 0:S[1])!=null?R:null}function Uy(n){const S=n==null?void 0:n.match(By),R=S?S[1]:"0.8";return`${(parseFloat(R)*100).toFixed(0)}%`}function dn(n,S,R,K,J,it){return!n||n===""?"":!K||!J&&!it||!S?`<br />${Ee(n,R)}`:`<br /><span>${K(S)} </span>${Ee(n,R)}`}function Vy(n,S,R){var pt,ft;const K=(pt=S==null?void 0:S.column)==null?void 0:pt.expression,J=(ft=Yy(K))!=null?ft:"",it=n.point.trend;if(!it)return"";const{min:rt,max:st,median:ht,average:ct}=it;return _y({title:R.yName,modelType:J,trendData:{min:he(S,rt,""),max:he(S,st,""),median:he(S,ht,""),average:he(S,ct,"")},localValue:R.value,x1Value:R.x1Value,x2Value:R.x2Value,translate:R.translate})}function $y(n,S){var J;const R=(J=n==null?void 0:n.column)==null?void 0:J.expression,K=Uy(R);return Dy({title:S.yName,confidenceValue:K,forecastValue:S.value,x1Value:S.x1Value,x2Value:S.x2Value,translate:S.translate,upperValue:S.upperValue,lowerValue:S.lowerValue})}function Zy(n){const{yName:S,trendMarkerSuffix:R,labelPrefix:K,value:J,high:it,low:rt,x1Value:st,x2Value:ht,color:ct,translate:pt,isForecastSeriesPoint:ft,isTrendSeriesPoint:_}=n,et=dn(J,K,ct,pt,ft,_),G=dn(it,"advanced.tooltip.max",ct,pt,ft,_),B=dn(rt,"advanced.tooltip.min",ct,pt,ft,_),H=ht||st?`${wi()}${ht!=null?ht:""}${ht&&st?Ry:""}${st!=null?st:""}`:"";return Vi(`
|
|
41
|
+
${S.replace(R,"")}
|
|
42
|
+
${et}
|
|
43
|
+
${G}
|
|
44
|
+
${B}
|
|
45
|
+
${H}
|
|
46
|
+
`)}const pc=function(n,S,R){const K=S,J=zy(n.percentage),it=Fy(K,n.series.name),{x1Value:rt,x2Value:st}=Gy(n,K),ht=Wy(it,n.point.y,J),ct=n.point.color||n.series.color,pt=n.point.name||n.series.name,ft=Hi(pt),_=us(pt),et=Hy(n,R),{low:G,high:B}=Xy(it,n.point),H=R?`(+${R("advanced.tooltip.trend")})`:"",U=ft?"advanced.tooltip.forecastValue":"";return _?Vy(n,it,{yName:et,value:ht,x1Value:rt,x2Value:st,translate:R}):ft?$y(it,{yName:et,value:ht,x1Value:rt,x2Value:st,translate:R,upperValue:B,lowerValue:G}):Zy({yName:et,trendMarkerSuffix:H,labelPrefix:U,value:ht,high:B,low:G,x1Value:rt,x2Value:st,color:ct,translate:R,isForecastSeriesPoint:ft,isTrendSeriesPoint:_})},dc=(n,S)=>({animation:!1,backgroundColor:Ai,borderColor:Mi,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return pc(this,n,S)}}),Nn={enabled:!0,types:{count:!1,relative:!0,totals:!0}},Ky=(n,S)=>function(){var it,rt,st;const R=this.y===0&&this.x===" ";if(this.y===void 0||isNaN(this.y)||R)return"";let K="";const J=(it=S==null?void 0:S.showValue)!=null?it:!0;return J&&(K+=ke(ve(n),this.y)),J&&(S!=null&&S.showPercentage)&&this.percentage!==void 0&&(K+=" / "),S!=null&&S.showPercentage&&this.percentage!==void 0&&(K+=`${Math.round(this.percentage)}%`),`${(rt=S==null?void 0:S.prefix)!=null?rt:""}${K}${(st=S==null?void 0:S.suffix)!=null?st:""}`},fs=n=>{const S=Math.abs(n)%180;return S<20?"horizontal":S<60?"diagonal":S<120?"vertical":S<160?"diagonal":"horizontal"},qy=(n,S,R)=>{var it;if(!(S!=null&&S.enabled))return{enabled:!1};const K=kt(Nt(kt({},Nn),{align:"center",verticalAlign:"middle",rotation:(it=S.rotation)!=null?it:0}),_e(S));if(R)return K;const J=fs(K.rotation);if(n==="vertical")return kt(Nt(kt({},K),{align:J==="horizontal"?"left":"center"}),_e(S));switch(J){case"horizontal":return kt(Nt(kt({},K),{verticalAlign:"bottom",padding:5}),_e(S));case"diagonal":return kt(Nt(kt({},K),{align:"left",y:-10,x:-2}),_e(S));case"vertical":return kt(Nt(kt({},K),{align:"left",y:-10}),_e(S))}},Jy=(n,S)=>{var J,it;if(!n)return{enabled:!1};const R=(J=n.rotation)!=null?J:0,K=(it=n.enabled)!=null?it:Nn.enabled;return kt(Nt(kt({},Nn),{verticalAlign:S==="line"?"bottom":"middle",rotation:R,align:fs(R)==="vertical"?"left":"center",padding:5}),_e(Nt(kt({},n),{enabled:K})))};function Qy(n){if(n==null)return;if(typeof n=="number"){const R=new Date(n);return Number.isNaN(R.getTime())?void 0:R}const S=String(n);if(/^\d+$/.test(S)){const R=new Date(Number(S));return Number.isNaN(R.getTime())?void 0:R}if(/^\d{4}-\d{2}-\d{2}/.test(S)||S.includes("T")){const R=_r(S);return Number.isNaN(R.getTime())?void 0:R}}function un(n,S,R,K){if(!K||!n||!Bt.isDatetime(n.column.type))return S;const J=n.dateFormat||Wr(Nr(n));if(!J)return S;const it=Qy(R);return it?K(it,J):S}const t0=(n,S)=>{const R=n;if(R.x.length!==2)return S;const{categories:K,indexMap:J,plotBands:it}=S,rt=R.x[1],st=R.x[0],ht=ve(rt==null?void 0:rt.numberFormatConfig),ct=ve(st==null?void 0:st.numberFormatConfig);let pt=K;rt&&Bt.isNumber(rt.column.type)&&(pt=K.map(_=>ke(ht,parseFloat(_))));let ft=it;return st&&Bt.isNumber(st.column.type)&&(ft=it.map(_=>{const et=ke(ct,parseFloat(_.text));return Nt(kt({},_),{text:et})})),{categories:pt,indexMap:J,plotBands:ft}},e0=(n,S)=>{const{stackType:R}=S;return R==="classic"&&(Mh(n)||Yf(n))},i0=n=>{const{xValues:S,xAxisCount:R}=n;return R!==2||S.length===0},fn=(n,S)=>({plotBands:[],indexMap:n.map((R,K)=>K),categories:S}),o0=(n,S,R,K,J)=>{var H;const{xValues:st}=n,{y:ht}=S;if(e0(S,R))return fn(st,ht.map(U=>Ae(U)));if(K)return fn(st,st.map(Zh).map(U=>`${U}`));if(i0(n))return fn(st,st.map(U=>U.xValues[0]));const ct=[],pt=[],ft=[];let _=st[0].xValues[0],et=-.5;st.map((U,$)=>{var F,I,E;const Z=un(S.x[1],U.xValues[1],(F=U.rawValues)==null?void 0:F[1],J),V=U.xValues[0];if(V!==_){ct.push(-1);const A=ct.length-1;ft.push(" "),pt.push({text:un(S.x[0],_,(E=(I=st[$-1])==null?void 0:I.rawValues)==null?void 0:E[0],J),from:et,to:A}),et=A,_=V}return ct.push($),ft.push(Z),U.xValues[1]});const G=st.length-1,B=st[G].xValues[0];return pt.push({text:un(S.x[0],B,(H=st[G].rawValues)==null?void 0:H[0],J),from:et,to:ct.length-.5}),{categories:ft,indexMap:ct,plotBands:pt}},r0=n=>{switch(n){case Bt.DateLevels.Years:return 31536e6;case Bt.DateLevels.Quarters:return 7884e6;case Bt.DateLevels.Months:return 2592e6;case Bt.DateLevels.Weeks:return 6048e5;case Bt.DateLevels.Days:return 864e5;case Bt.DateLevels.AggHours:case Bt.DateLevels.Hours:return 36e5;case Bt.DateLevels.AggMinutesRoundTo30:case Bt.DateLevels.MinutesRoundTo30:return 18e5;case Bt.DateLevels.AggMinutesRoundTo15:case Bt.DateLevels.MinutesRoundTo15:return 9e5;case Bt.DateLevels.AggMinutesRoundTo1:return 6e4}return console.warn("Unsupported level"),0},n0=(n,S)=>{const R=Nr(n),K=(n==null?void 0:n.dateFormat)||Wr(R);return!S||!K?J=>`${J}`:function(J){return S(new Date(J),K)}},s0=(n,S,R,K)=>{const J=Nr(S),it=(_,et)=>_.lastValue?{minInterval:Math.min(et-_.lastValue,_.minInterval),lastValue:et}:Nt(kt({},_),{lastValue:et}),rt=R[0],st=R[R.length-1];let ht=J?r0(J):R.reduce(it,{minInterval:(st-rt)/(R.length-1),lastValue:void 0}).minInterval;if(ht<30*864e5&&ht>25*864e5&&(ht=2592e6),R.length>1&&(isNaN(ht)||ht===0))throw new Bt.TranslatableError("errors.tickIntervalCalculationFailed");let ct;const pt=(S==null?void 0:S.dateFormat)||Wr(J);K&&pt&&(ct=function(){const _=this;return K(new Date(_.value),pt)});const ft={millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"};return[Ke(On,{type:"datetime",title:{enabled:n.enabled&&n.titleEnabled,text:n.title},dateTimeLabelFormats:ft,gridLineDashStyle:"Dot",gridLineWidth:n.enabled&&n.gridLine?1:0,gridLineColor:Oe,tickWidth:0,lineColor:Oe,lineWidth:1,labels:Nt(kt({},ct&&{formatter:ct}),{overflow:"none",enabled:n.enabled&&n.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:Pe}),min:rt,max:st,tickInterval:ht,minTickInterval:ht,tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,startOfWeek:4,showFirstLabel:!0,showLastLabel:!0,minRange:ht,isDate:!0})]},a0=(n,S,R,K,J,it)=>{const rt=(K||[]).map(ft=>({isPlotBand:!0,from:ft.from,to:ft.to,label:kt({text:ft.text,y:-5,style:Nt(kt({},Pe),{width:"70px",textOverflow:"ellipsis"})},J==="vertical"&&{align:"right",x:5,textAlign:"left",y:0})})),st=(K||[]).filter(ft=>ft.from>0).map(ft=>({color:"#C0D0E0",dashStyle:"shortDot",width:1,value:ft.from})),ht=it,ct=ht.x[ht.x.length-1];let pt=[Ke(On,{type:n.type,title:{enabled:n.enabled&&n.titleEnabled,text:n.title},gridLineDashStyle:"Dot",gridLineWidth:n.enabled&&n.gridLine?1:0,gridLineColor:Oe,tickWidth:0,lineColor:Oe,lineWidth:1,labels:{enabled:n.enabled&&n.labels,style:Pe,formatter:function(){const ft=this;return!ct||!Bt.isNumber(ct==null?void 0:ct.column.type)||isNaN(parseFloat(ft.value))?ft.value:ke(ve(ct==null?void 0:ct.numberFormatConfig),parseFloat(ft.value))}},min:n.min,max:n.max,tickInterval:n.tickInterval,categories:R,plotBands:rt,plotLines:st,tickmarkPlacement:"on"})];return S&&(pt=pt.concat(Ke(On,{title:{enabled:S.enabled&&S.titleEnabled,text:S.title},categories:R,opposite:!0,gridLineWidth:0,tickWidth:0,lineWidth:0}))),pt},l0=(n,S,R)=>{const K=[{minClipped:!!(n.enabled&&n.min),maxClipped:!!(n.enabled&&n.max)}];return R&&K.push({minClipped:!!(S!=null&&S.enabled&&S.min),maxClipped:!!(S!=null&&S.enabled&&S.max)}),K},uc=(n,S,R,K,J,it)=>{var ft,_,et,G;const rt=J,st=ve((ft=rt.y.find(({showOnRightAxis:B})=>!B))==null?void 0:ft.numberFormatConfig),ht=ve((_=rt.y.find(({showOnRightAxis:B})=>B))==null?void 0:_.numberFormatConfig);function ct(B){return function(){return ke(B,this.value)}}const pt=[Ke(Ca,Nt(kt(kt({type:n.type,title:{enabled:n.enabled&&n.titleEnabled,text:n.title},gridLineDashStyle:"Dot",gridLineWidth:n.enabled&&n.gridLine?1:0,gridLineColor:Oe,tickWidth:0,lineColor:Oe,lineWidth:1,labels:{enabled:n.enabled&&n.labels,style:Pe,formatter:ct(st)},startOnTick:!(n.enabled&&n.min)},n.min&&{minPadding:0}),n.max&&{maxPadding:0}),{min:n.enabled?(et=n.min)!=null?et:R.min:null,max:n.enabled?(G=n.max)!=null?G:R.max:null,tickInterval:n.enabled?n.tickInterval:null,stackLabels:{enabled:!1,formatter:ct(st),style:kt(kt({},jo),it?{color:it.typography.primaryTextColor}:null),rotation:0}}))];if(K){const B={startOnTick:!(S!=null&&S.enabled&&S.min),min:S!=null&&S.enabled?S.min||K.min:null,max:S!=null&&S.enabled?S.max||K.max:null},H=S!=null&&S.enabled?{opposite:!0,gridLineWidth:0,title:{enabled:S.enabled&&S.titleEnabled,text:S.title},labels:{enabled:S.enabled&&S.labels,style:Pe,formatter:ct(ht)},tickInterval:S.enabled?S.tickInterval:null,stackLabels:{enabled:!1,formatter:ct(ht),style:kt(kt({},jo),it?{color:it.typography.primaryTextColor}:null),rotation:0}}:{visible:!1};pt.push(Ke(Ca,kt(kt({},B),H)))}return pt},fc=n=>{const{enabled:S,rotation:R,align:K,verticalAlign:J,delay:it,backgroundColor:rt,borderColor:st,borderRadius:ht,borderWidth:ct,textStyle:pt,xOffset:ft,yOffset:_}=n!=null?n:{},B=pt!=null?pt:{},{align:et}=B,G=je(B,["align"]);return Ui({enabled:S!=null?S:!1,rotation:R,align:K,textAlign:et,verticalAlign:J,animation:it!==void 0?{defer:it}:void 0,backgroundColor:Yi(rt),borderColor:Yi(st),borderRadius:ht,borderWidth:ct,style:G,x:ft,y:_})},h0=n=>n.map(S=>Nt(kt({},S),{title:Nt(kt({},S.title),{textAlign:"center",align:"high",y:-25})})),c0=n=>n.map(S=>Nt(kt({},S),{labels:Nt(kt({},S.labels),{rotation:0})})),gc=Gr(h0,c0),p0=n=>S=>{var pt,ft;const{stacking:R,totalLabels:K={enabled:!1},dataOptions:J,themeSettings:it}=n;if(!K.enabled&&!R)return S;const rt=J,st=ve((pt=rt.y.find(({showOnRightAxis:_})=>!_))==null?void 0:pt.numberFormatConfig),ht=ve((ft=rt.y.find(({showOnRightAxis:_})=>_))==null?void 0:ft.numberFormatConfig);function ct(_,et,G=!1){return function(){const B=typeof this.value=="number"?this.value:parseFloat(this.value),H=G&&this.total||B,U=ke(_,H);return et==="percent"?`${U}%`:U}}return S.map((_,et)=>{const B=et===1?ht:st;return Nt(kt({},_),{labels:R?Nt(kt({},_.labels),{formatter:ct(B,R)}):_.labels,stackLabels:K.enabled?Nt(kt(kt({},_.stackLabels),fc(K)),{formatter:ct(B,"normal",!0),style:kt(kt({},jo),it?{color:it.typography.primaryTextColor}:null),crop:!0,allowOverlap:!1,labelrank:99999}):_.stackLabels})})},d0=n=>S=>Bt.isPolar(n)?gc(S):S,mc=n=>n.length===1&&!!n[0].continuous&&Bt.isDatetime(n[0].column.type),u0=n=>n.every(S=>Bt.isDatetime(S.column.type)),yc=(n,S)=>{const[R,K,J,it]=Py(n,S);return{side:R,chartType:K,treatNullAsZero:J,connectNulls:it}},f0=(n,S)=>n==="bar"||S.includes("bar")?"vertical":"horizontal",vc=(n,S,R,K,J)=>{const{categoriesCapacity:it}=R.dataLimits,rt=Nt(kt({},n),{xValues:n.xValues.slice(0,it)}),{categories:st,indexMap:ht,plotBands:ct}=t0(S,o0(rt,S,R,K,J));return{categories:st,indexMap:ht,plotBands:ct}},bc=({designOptions:n,dataOptions:S,chartData:R,categoriesMeta:K,orientation:J,isContinuous:it,dateFormatter:rt})=>it?s0(n.xAxis,S.x[0],R.xValues.map(Zh),rt):a0(n.xAxis,n.x2Axis,K.categories,K.plotBands,J,S),Bn=(n,S,R,K,J,it)=>wy(S,R,K,J,it,n),g0=(n,S)=>rc(n,S),m0=n=>Nt(kt({},n),{yAxis:Nt(kt({},n.yAxis),{titleEnabled:!1,title:null})}),y0=(n,S,R,K,J,it,rt)=>{const st=uc(n,S,R,K,it,rt);return{settings:p0({stacking:J.stacking,totalLabels:J.totalLabels,dataOptions:it,themeSettings:rt})(st),clipped:l0(n,S,K)}},xc=n=>n.some(S=>S===1),v0=(n,S)=>R=>{var K,J;return R.stackLabels?Nt(kt({},R),{stackLabels:Nt(kt({},R.stackLabels),{x:((K=R.stackLabels.x)!=null?K:0)+n,y:((J=R.stackLabels.y)!=null?J:0)+S})}):R},b0=(n,S)=>R=>{var it;if(!((it=R.plotBands)!=null&&it.length))return R;const K=15,J=R.plotBands.map(rt=>{var ft,_;if(!rt.label)return rt;const st=(ft=rt.label.x)!=null?ft:0,ht=(_=rt.label.y)!=null?_:0,ct=n?n+K:0,pt=S?S+K:0;return Nt(kt({},rt),{label:Nt(kt({},rt.label),{x:st+ct,y:ht-pt})})});return Nt(kt({},R),{plotBands:J})};function Cc(n){return S=>S.map(v0(n.rightShift,n.topShift))}function Sc(n){return S=>S.map(b0(n.totalLabelRightSpacing,n.totalLabelTopSpacing))}function x0(n,S,R){const K=n==="area"&&R!==void 0,J="polarType"in S?S.polarType:void 0;return{treatNullDataAsZeros:K,isPolarChart:!!J,polarType:J}}const Ga=20,Pi={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},Wa={X_AXIS_VERTICAL_RIGHT:70,X_AXIS_HORIZONTAL_TOP:20},Ha={TOP_DIVISOR:2,RIGHT_SHIFT:.1},C0={RIGHT_MARGIN:80},S0={FULL_ROTATION:180};function gs(n,S){var J;let R=0,K=0;if((J=S.totalLabels)!=null&&J.enabled&&S.stackType==="stack100"){const it=Math.abs(S.totalLabels.rotation||0)%S0.FULL_ROTATION;n==="bar"&&(it<Pi.HORIZONTAL?R=40:it<Pi.DIAGONAL?R=25:it<Pi.VERTICAL?R=15:it<Pi.INVERTED_DIAGONAL?R=25:R=40),(n==="column"||n==="area")&&(it<Pi.HORIZONTAL?K=10:it<Pi.DIAGONAL?K=30:it<Pi.VERTICAL?K=40:it<Pi.INVERTED_DIAGONAL?K=30:K=10)}return{rightSpacing:R,topSpacing:K}}function w0(n,S){const{rightSpacing:R,topSpacing:K}=gs(n,S);let J=0,it=0;return K>0&&(it=-1*(K/Ha.TOP_DIVISOR)),R>0&&(J=Ha.RIGHT_SHIFT),{rightShift:J,topShift:it}}function M0(n){const{chartData:S,chartDesignOptions:R,xAxisOrientation:K}=n,J=!cs(R.legend)&&S.xAxisCount>1&&K==="vertical"?Wa.X_AXIS_VERTICAL_RIGHT:0,it=S.xAxisCount>1&&K==="horizontal"?Wa.X_AXIS_HORIZONTAL_TOP:0;return{rightSpacing:J,topSpacing:it}}function A0(n){const{chartType:S,chartDesignOptions:R}=n;return gs(S,R)}function T0(n){const S=M0(n),R=A0(n),K=w0(n.chartType,n.chartDesignOptions),J=Ga+R.topSpacing+S.topSpacing,it=Ga+R.rightSpacing+S.rightSpacing;return{totalTopSpacing:J,totalRightSpacing:it,rightShift:K.rightShift,topShift:K.topShift}}function k0(n,S,R){var K,J;if(n==="bar"&&S.x.length>1&&cs(R.legend))return{margin:(J=(K=R.legend)==null?void 0:K.margin)!=null?J:C0.RIGHT_MARGIN}}function P0(n){const{chartData:S,chartType:R,chartDesignOptions:K,dataOptions:J,continuousDatetimeXAxis:it,indexMap:rt,categories:st,treatNullDataAsZeros:ht,yTreatNullDataAsZeros:ct,yConnectNulls:pt,yAxisSide:ft,yAxisChartType:_,yAxisSettings:et,axisClipped:G,xAxisSettings:B,stacking:H,themeSettings:U,dateFormatter:$}=n,{seriesCapacity:Z}=K.dataLimits,V=S.series.slice(0,Z).map((F,I)=>{var c,g,m,u,v,w,M,C,p;const E=L0(J,F.name),A=E==null?void 0:E.column.name,P=E0(K,A),y=D0({seriesValue:F,continuousDatetimeXAxis:it,indexMap:rt,categories:st,treatNullDataAsZeros:ht,yTreatNullDataAsZeros:ct,index:I,stacking:H,dataOptions:J,chartDesignOptions:K,xAxisSettings:B,yAxisSettings:et,axisClipped:G,dateFormatter:$});return kt(kt(kt(kt(kt(kt(kt(Nt(kt(Nt(kt({},y),{showInNavigator:!0,stickyTracking:!1,boostThreshold:0,turboThreshold:0,color:O0(J,F.name,U,I),yAxis:ft[I]}),_[I]&&{type:_[I]}),{dataLabels:Nt(kt({},_e(K.seriesLabels)),{formatter:Ky(E==null?void 0:E.numberFormatConfig,K.seriesLabels)}),connectNulls:pt[I],marker:lc(P.marker)}),((c=P.line)==null?void 0:c.width)!==void 0&&{lineWidth:(g=P.line)==null?void 0:g.width}),((m=P.line)==null?void 0:m.dashStyle)!==void 0&&{dashStyle:(u=P.line)==null?void 0:u.dashStyle}),((v=P.line)==null?void 0:v.endCap)!==void 0&&{linecap:(M=(w=P.line)==null?void 0:w.endCap)==null?void 0:M.toLowerCase()}),((C=P.line)==null?void 0:C.shadow)!==void 0&&{shadow:(p=P.line)==null?void 0:p.shadow}),"itemPadding"in K&&K.itemPadding!==void 0&&{pointPadding:K.itemPadding}),"groupPadding"in K&&K.groupPadding!==void 0&&{groupPadding:K.groupPadding}),"borderRadius"in K&&K.borderRadius!==void 0&&{borderRadius:K.borderRadius})});return R==="line"?j0(V,R,K):V}function L0(n,S){return n.breakBy.length?n.y[0]:n.y.find(({column:{name:R}})=>R===S)}function E0(n,S){var J;return(S?(J=n.designPerSeries)==null?void 0:J[S]:void 0)||n}function O0(n,S,R,K){var J,it;return(it=Xr(n,S))!=null?it:ni((J=R==null?void 0:R.palette)==null?void 0:J.variantColors,K||0)}function D0(n){const{seriesValue:S,continuousDatetimeXAxis:R,indexMap:K,categories:J,treatNullDataAsZeros:it,yTreatNullDataAsZeros:rt,index:st,stacking:ht,dataOptions:ct,chartDesignOptions:pt,xAxisSettings:ft,yAxisSettings:_,axisClipped:et,dateFormatter:G}=n;return R?vy(S,K,it||rt[st],ft[0].tickInterval,pt.dataLimits.categoriesCapacity,n0(ct.x[0],G),_[st],et[st]):Mh(ct)&&!ht?no(S,yy(J,st),it||rt[st]):no(S,K,it||rt[st])}function j0(n,S,R){return n.map(K=>{var it;const J={};return S==="line"&&(J.step=(it=R.step)!=null?it:!1),kt(kt({},K),J)})}const Xa=20,Pr=(n,S,R,K,J,it,rt)=>{var m,u,v;const st=[];if(n.type!=="cartesian")throw new Bt.TranslatableError("errors.unexpectedChartType",{chartType:n.type});const ht=lo(S,R),{seriesCapacity:ct,categoriesCapacity:pt}=R.dataLimits;n.xValues.length>pt&&st.push(Ar("x",n.xValues.length,pt)),n.series.length>ct&&st.push($i(n.series.length,ct));const ft=mc(K.x),_=yc(n,K),et=f0(S,_.chartType),G=vc(n,K,R,ft,rt),B=bc({designOptions:R,dataOptions:K,chartData:n,categoriesMeta:G,orientation:et,isContinuous:ft,dateFormatter:rt}),H=Bn(0,S,n,R,_.side,_.treatNullAsZero),U=xc(_.side)?Bn(1,S,n,R,_.side,_.treatNullAsZero):void 0,$=g0(S,R),Z=y0(R.yAxis,R.y2Axis,H,U,$,K,it),V=T0({chartType:S,chartData:n,chartDesignOptions:R,xAxisOrientation:et}),F=x0(S,R,$.stacking),I=R,{rightSpacing:E,topSpacing:A}=(m=I.totalLabels)!=null&&m.enabled&&I.stackType==="stack100"?gs(S,I):{rightSpacing:0,topSpacing:0},P=Gr(d0(S),Sc({totalLabelRightSpacing:E,totalLabelTopSpacing:A}),ps((u=R.autoZoom)==null?void 0:u.onScrollerChange))(B),y=Cc({rightShift:V.rightShift,topShift:V.topShift})(Z.settings),c=P0({chartData:n,chartType:S,chartDesignOptions:R,dataOptions:K,continuousDatetimeXAxis:ft,indexMap:G.indexMap,categories:G.categories,treatNullDataAsZeros:F.treatNullDataAsZeros,yTreatNullDataAsZeros:_.treatNullAsZero,yConnectNulls:_.connectNulls,yAxisSide:_.side,yAxisChartType:_.chartType,yAxisSettings:y,axisClipped:Z.clipped,xAxisSettings:P,stacking:$.stacking,themeSettings:it,dateFormatter:rt});return{options:Ke(Bg(S,F.polarType,$.stacking),{title:{text:null},chart:{type:ht,spacing:[V.totalTopSpacing,V.totalRightSpacing,Xa,Xa],alignTicks:!1,polar:F.isPolarChart,events:{load:function(){var f;if(K.x.length===2&&!u0(K.x))return;const w=this,M=w.chartWidth,C=w.chartHeight,p=ic(ht,R.autoZoom.enabled,n.xValues.length,S==="bar"?C:M,S==="bar");if(p.enabled&&((f=R.autoZoom)!=null&&f.scrollerLocation)){const{min:r,max:l}=R.autoZoom.scrollerLocation;r>=0&&l>=r&&l<n.xValues.length&&oc(w,r,l)}w.update({navigator:p},!0)}}},xAxis:P,yAxis:y,legend:kt(kt({},zi(R.legend)),k0(S,K,R)),series:c,plotOptions:{series:Nt(kt({dataLabels:F.isPolarChart?Jy(R.seriesLabels,F.polarType):qy(et,R.seriesLabels,!!($.stacking&&S!=="area")),marker:lc(R.marker),stacking:$.stacking||void 0,connectNulls:!1},S==="line"&&{step:(v=R.step)!=null?v:!1}),{label:{enabled:!1}})},tooltip:dc(K,J)}),alerts:st}},I0=(n,S,R,K=!0)=>{var H,U,$;const J=n.percentage?S?n.percentage.toFixed(1):`${Math.round(n.percentage)}`:void 0,it=R,st=(()=>{var V,F,I;const Z=(V=it.y)==null?void 0:V.find(E=>E.column.name===n.series.name);if(Z!=null&&Z.numberFormatConfig)return Z.numberFormatConfig;if(it.breakBy.length>0)return(I=(F=it.y)==null?void 0:F.find(E=>E.enabled))==null?void 0:I.numberFormatConfig})(),ht=($=(U=(H=n.point)==null?void 0:H.custom)==null?void 0:U.xDisplayValue)!=null?$:n.x,ct=Array.isArray(ht)?ht.join(", "):ht,pt=n.y,ft=(pt!=null?Xi(pt,st,K):"")+(J?` / ${J}%`:""),_=n.point.color||n.series.color,et=n.series.name||"",G=n.point.name||"";return Vi(`
|
|
47
|
+
${et}
|
|
48
|
+
${et&&G?" - ":""}
|
|
49
|
+
${G}
|
|
50
|
+
<br />
|
|
51
|
+
${Ee(ft,_)}
|
|
52
|
+
${ct?wi()+ct:""}
|
|
53
|
+
`)},ms=(n,S,R=!0)=>({animation:!1,backgroundColor:Ai,borderColor:Mi,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return I0(this,n,S,R)}}),wc=(n,S,R,K)=>{let J;const it=Mc(n,R),{seriesCapacity:rt}=R.dataLimits;if(n.xAxisCount===0){const st=n.series.slice(0,rt),ht=st.map(ct=>{var pt;return(pt=ct.title)!=null?pt:ct.name});J=[{name:"",data:st.map(ct=>no(ct,[0],!1,ht).data).flat().map((ct,pt)=>{var ft;return Nt(kt({},ct),{name:ht[pt],color:(ft=Xr(S,st[pt].name))!=null?ft:ni(K==null?void 0:K.palette.variantColors,pt)})}),boostThreshold:0,turboThreshold:0}],Ya(J[0])}else{const st=n.xValues.slice(0,rt).map(pt=>pt.xValues.join(",")),ht=st.map((pt,ft)=>ft),ct=st.map((pt,ft)=>{var _,et,G;return(G=(_=S.seriesToColorMap)==null?void 0:_[pt])!=null?G:ni((et=K==null?void 0:K.palette)==null?void 0:et.variantColors,ft)});J=n.series.map(pt=>Nt(kt({},Ya(no(pt,ht,!1,st,ct))),{boostThreshold:0,turboThreshold:0}))}return{series:J,alerts:it}};function Mc(n,S){const R=[],{seriesCapacity:K}=S.dataLimits;return n.xAxisCount===0?n.series.length>K&&R.push($i(n.series.length,K)):n.xValues.length>K&&R.push($i(n.xValues.length,K)),R}function Ya(n){let S=0;const R=n.data.map((K,J)=>{const it=K.y;return J===0&&(S=it),K.custom=Nt(kt({},K.custom),{number1:Vf(S,it)}),K});return Nt(kt({},n),{data:R})}const _0=(n,S,R,K)=>{var ct;const J=[],it=lo("funnel",S),{series:rt,alerts:st}=wc(n,R,S,K);return J.push(...st),{options:{title:{text:null},chart:{type:it,spacing:[30,30,30,30],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:zi(S.legend),series:rt,plotOptions:Wh(S,R),tooltip:ms((ct=S.seriesLabels)==null?void 0:ct.showPercentDecimals,R)},alerts:J}},Ac="Other",Tc="Others",N0="#525A6B",kc=(n,S)=>{var R;return n+((R=S.y)!=null?R:0)},Ua=(n,S,R)=>{var K;return((K=n.y)!=null?K:0)/S>=R},Pc=n=>[{name:Ac,id:Tc,data:[...n],type:"pie"}],Lc=n=>({y:n.reduce(kc,0),name:Ac,color:N0,sliced:!1,drilldown:Tc}),Ec=({convolution:n})=>({series:S,convolutionSeries:R})=>{if((n==null?void 0:n.minimalIndependentSlicePercentage)===void 0||S.length===0)return{series:S,convolutionSeries:R};const K=n.minimalIndependentSlicePercentage/100,J=S[0].data.reduce(kc,0),it=S[0].data.filter(ht=>Ua(ht,J,K)),rt=S[0].data.filter(ht=>!Ua(ht,J,K));return rt.length===0?{series:S,convolutionSeries:R}:{series:[Nt(kt({},S[0]),{data:[...it,Lc(rt)]}),...S.slice(1)],convolutionSeries:Pc(rt)}},Oc=({convolution:n})=>({series:S,convolutionSeries:R})=>{if((n==null?void 0:n.independentSlicesCount)===void 0||S.length===0)return{series:S,convolutionSeries:R};const K=n.independentSlicesCount,J=S[0].data.map((ft,_)=>Nt(kt({},ft),{index:_})).sort((ft,_)=>{var et,G;return((et=_.y)!=null?et:0)-((G=ft.y)!=null?G:0)}),it=J.slice(0,K);if(J.slice(K).length===0)return{series:S,convolutionSeries:R};const st=new Set(it.map(ft=>ft.index)),ht=S[0].data.filter((ft,_)=>st.has(_)),ct=S[0].data.filter((ft,_)=>!st.has(_));return{series:[Nt(kt({},S[0]),{data:[...ht,Lc(ct)]}),...S.slice(1)],convolutionSeries:Pc(ct)}},Dc=(n,S)=>{const R=[];return n.xAxisCount===0?n.series.length>S&&R.push($i(n.series.length,S)):n.xValues.length>S&&R.push($i(n.xValues.length,S)),R},jc=(n,S,R,K)=>{if(n.xAxisCount===0){const J=n.series.slice(0,R),it=J.map(rt=>{var st;return(st=rt.title)!=null?st:rt.name});return[{name:"",data:J.map(rt=>no(rt,[0],!1,it,void 0,!0).data).flat().map((rt,st)=>{var ht,ct;return Nt(kt({},rt),{sliced:(ht=rt.selected)!=null?ht:!1,name:it[st],color:(ct=Xr(S,J[st].name))!=null?ct:ni(K==null?void 0:K.palette.variantColors,st)})}),boostThreshold:0,turboThreshold:0}]}else{const J=n.xValues.slice(0,R).map(st=>st.xValues.join(",")),it=J.map((st,ht)=>ht),rt=J.map((st,ht)=>{var ct,pt,ft;return(ft=(ct=S.seriesToColorMap)==null?void 0:ct[st])!=null?ft:ni((pt=K==null?void 0:K.palette)==null?void 0:pt.variantColors,ht)});return n.series.map(st=>{const pt=no(st,it,!1,J,rt,!0),{data:ht}=pt,ct=je(pt,["data"]);return Nt(kt({},ct),{data:ht.map(ft=>{var _;return Nt(kt({},ft),{sliced:(_=ft.selected)!=null?_:!1})}),boostThreshold:0,turboThreshold:0})})}},Ic=({chartData:n,dataOptions:S,seriesCapacity:R,convolution:K,themeSettings:J})=>{const it=jc(n,S,R,J);if(!(K!=null&&K.enabled))return it;const rt=K.selectedConvolutionType==="byPercentage"?Ec({convolution:K}):K.selectedConvolutionType==="bySlicesCount"?Oc({convolution:K}):ht=>ht,{series:st}=rt({series:it,convolutionSeries:[]});return st},_c=({chartData:n,dataOptions:S,seriesCapacity:R,convolution:K,themeSettings:J})=>{if(!(K!=null&&K.enabled))return[];const it=jc(n,S,R,J),rt=K.selectedConvolutionType==="byPercentage"?Ec({convolution:K}):K.selectedConvolutionType==="bySlicesCount"?Oc({convolution:K}):()=>({series:it,convolutionSeries:[]}),{convolutionSeries:st}=rt({series:it,convolutionSeries:[]});return st},B0=(n,S,R,K)=>{const{seriesCapacity:J}=R.dataLimits,it=R==null?void 0:R.convolution,rt=Dc(n,J),st=Ic({chartData:n,dataOptions:S,seriesCapacity:J,convolution:it,themeSettings:K}),ht=_c({chartData:n,dataOptions:S,seriesCapacity:J,convolution:it,themeSettings:K});return{series:st,alerts:rt,convolutionSeries:ht}},R0=(n,S,R,K)=>{var ft,_;const J=[],it=lo("pie",S),rt=20,{series:st,convolutionSeries:ht,alerts:ct}=B0(n,R,S,K);return J.push(...ct),{options:{title:{text:null},chart:{type:it,spacing:[rt,20,20,20],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:zi(S.legend),series:st,plotOptions:Xh({pieType:S.pieType,seriesLabels:S.seriesLabels,chartDataOptions:R,themeSettings:K,semiCircle:S.semiCircle}),tooltip:ms((_=(ft=S.seriesLabels)==null?void 0:ft.percentageLabels)==null?void 0:_.showDecimals,R),drilldown:{activeDataLabelStyle:{cursor:"pointer",fontWeight:"bold",textDecoration:"none"},series:ht}},alerts:J}},ys=(n,S,R,K,J=!0)=>({animation:!1,backgroundColor:Ai,borderColor:Mi,borderRadius:10,borderWidth:1,padding:1,useHTML:!0,outside:!0,formatter:function(){return G0(this,n,S,R,K,J)}}),z0=`
|
|
54
|
+
<div style="position: absolute; top: 100%; right: 40px; z-index: 1">
|
|
55
|
+
<div style="
|
|
56
|
+
border: solid transparent;
|
|
57
|
+
content: ' ';
|
|
58
|
+
height: 0;
|
|
59
|
+
width: 0;
|
|
60
|
+
position: absolute;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
border-color: rgba(136,136,136,0);
|
|
63
|
+
border-top-color: #ccc;
|
|
64
|
+
border-width: 7px 12px 12px 12px;
|
|
65
|
+
margin-left: -7px;
|
|
66
|
+
"></div>
|
|
67
|
+
<div style="
|
|
68
|
+
border: solid transparent;
|
|
69
|
+
content: ' ';
|
|
70
|
+
height: 0;
|
|
71
|
+
width: 0;
|
|
72
|
+
position: absolute;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
border-color: rgba(255,255,255,0);
|
|
75
|
+
border-top-color: #fff;
|
|
76
|
+
border-width: 6px 11px 11px 11px;
|
|
77
|
+
margin-left: -6px;
|
|
78
|
+
"></div>
|
|
79
|
+
</div>
|
|
80
|
+
`;function F0(n,S){return n/(S/100)}function ar(n,S){return`${F0(n,S).toPrecision(3)}%`}function G0(n,S,R,K,J,it=!0){var G,B,H,U,$,Z,V,F,I;if(J!=null&&J.shouldSkip&&J.shouldSkip(n))return!1;const rt=((G=S.y)==null?void 0:G.length)===0,st=(H=(B=S.y)==null?void 0:B[0])==null?void 0:H.numberFormatConfig,ht=((U=R==null?void 0:R.tooltip)==null?void 0:U.mode)==="contribution",ct=Ae(($=S.y)==null?void 0:$[0]),pt=n.color;let ft=0;const _=[],et=E=>{if(E.parentNode)_.push(E);else{ft=E.val;return}et(E.parentNode)};return et(n.point.node),`
|
|
81
|
+
<div
|
|
82
|
+
class="csdk-treemap-tooltip-wrapper"
|
|
83
|
+
style="padding-bottom: ${rt?"0":"10px"};"
|
|
84
|
+
>
|
|
85
|
+
${[..._].reverse().map((E,A)=>{const P=A===_.length-1;return`
|
|
86
|
+
<div
|
|
87
|
+
class="csdk-treemap-tooltip-level"
|
|
88
|
+
style="background: ${P?"#f2f2f2":"white"};"
|
|
89
|
+
>
|
|
90
|
+
${J!=null&&J.displayColorCircles?W0(E.color):""}
|
|
91
|
+
<span
|
|
92
|
+
style="color: ${P?pt:"currentColor"}"
|
|
93
|
+
>${E.name}</span>
|
|
94
|
+
<span
|
|
95
|
+
style="color: ${P?"#5B6372":"currentColor"}; margin-left: auto;"
|
|
96
|
+
>${ht?ar(E.val,ft):Xi(E.val,st,it)}</span>
|
|
97
|
+
${P?"":z0}
|
|
98
|
+
</div>`}).join("")}
|
|
99
|
+
${rt?"":`<div class="csdk-treemap-tooltip-value">
|
|
100
|
+
<span style="color:${pt}; font-size: 15px">${ht?ar(_[0].val,ft):Xi(_[0].val,st,it)}</span> ${K("treemap.tooltip.of")} ${ct}
|
|
101
|
+
</div>`}
|
|
102
|
+
${_[1]?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
|
|
103
|
+
<span style="color:${pt}; font-size: 15px">${ar((Z=_[0])==null?void 0:Z.val,(V=_[1])==null?void 0:V.val)}
|
|
104
|
+
</span> ${K("treemap.tooltip.of")} ${(F=_[1])==null?void 0:F.name}
|
|
105
|
+
</div>`:""}
|
|
106
|
+
${J!=null&&J.displayTotalContribution&&!ht?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
|
|
107
|
+
<span style="color:${pt}; font-size: 15px">${ar((I=_[0])==null?void 0:I.val,ft)}
|
|
108
|
+
</span> ${K("treemap.tooltip.ofTotal")}
|
|
109
|
+
</div>`:""}
|
|
110
|
+
</div>
|
|
111
|
+
</div>`}function W0(n){return`
|
|
112
|
+
<div style="
|
|
113
|
+
width: 12px;
|
|
114
|
+
height: 12px;
|
|
115
|
+
border-radius: 100%;
|
|
116
|
+
background-color: ${n};
|
|
117
|
+
margin-right: 6px;
|
|
118
|
+
"></div>
|
|
119
|
+
`}const H0=Object.freeze({1:80,2:70,3:60,4:50});function X0(n,S,R,K,J=!0){var ht,ct,pt,ft;const it=(ct=(ht=S.y)==null?void 0:ht[0])==null?void 0:ct.numberFormatConfig,rt={level:1,color:(ft=(pt=K==null?void 0:K.chart)==null?void 0:pt.backgroundColor)!=null?ft:"white",dataLabels:{enabled:!0,useHTML:!0,className:"!csdk-overflow-visible",formatter(){var et,G,B,H;const{value:_}=this.point;return`
|
|
120
|
+
<div style="text-align: center; transform: translateY(calc(-50% + 15px))">
|
|
121
|
+
<div style="color: ${(G=(et=K==null?void 0:K.chart)==null?void 0:et.secondaryTextColor)!=null?G:"#9EA2AB"}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px">${this.point.name}</div>
|
|
122
|
+
${wi()}
|
|
123
|
+
<div style="
|
|
124
|
+
font-weight: 600;
|
|
125
|
+
font-size: 18px;
|
|
126
|
+
color: ${(H=(B=K==null?void 0:K.chart)==null?void 0:B.textColor)!=null?H:"#5B6372"}
|
|
127
|
+
"
|
|
128
|
+
>${Xi(_,it,J)}</div>
|
|
129
|
+
</div>
|
|
130
|
+
`}},levelSize:{unit:"percentage",value:H0[S.breakBy.length]||50}},st=Array.from(new Array(n.xAxisCount)).map((_,et)=>{const G=Array.isArray(R.seriesLabels)?R.seriesLabels[et]:R.seriesLabels,B=_e(G),{prefix:H,suffix:U}=G!=null?G:{};return{level:et+2,dataLabels:Nt(kt({useHTML:!0},B),{formatter(){var V,F,I,E,A,P,y,c,g,m,u,v,w,M,C,p;let Z=Fo(ri(this.color))>.4?"white":"rgb(43, 51, 66)";return(V=B.style)!=null&&V.color&&B.style.color!=="contrast"&&(Z=B.style.color),`<div
|
|
131
|
+
style="
|
|
132
|
+
display: inline;
|
|
133
|
+
color: ${Z};
|
|
134
|
+
background-color: ${(F=B.backgroundColor)!=null?F:""};
|
|
135
|
+
padding: ${(I=B.padding)!=null?I:0}px;
|
|
136
|
+
font-size: ${(A=(E=B.style)==null?void 0:E.fontSize)!=null?A:""}px;
|
|
137
|
+
font-weight: ${(y=(P=B.style)==null?void 0:P.fontWeight)!=null?y:""};
|
|
138
|
+
font-style: ${(g=(c=B.style)==null?void 0:c.fontStyle)!=null?g:""};
|
|
139
|
+
font-family: ${(u=(m=B.style)==null?void 0:m.fontFamily)!=null?u:""};
|
|
140
|
+
border-width: ${(v=B.borderWidth)!=null?v:0}px;
|
|
141
|
+
border-style: solid;
|
|
142
|
+
border-color: ${(w=B.borderColor)!=null?w:""};
|
|
143
|
+
border-radius: ${(M=B.borderRadius)!=null?M:0}px;
|
|
144
|
+
text-overflow: ${(p=(C=B.style)==null?void 0:C.textOverflow)!=null?p:""};"
|
|
145
|
+
>${H!=null?H:""}${this.point.name}${U!=null?U:""}</div>`}})}});return[rt,...st]}function vs(n,S,R){if(!n.series[0])return[];const K=Y0(n),J=n.series[0].data.map(it=>{var rt,st;return{value:it.value,name:(rt=it.xDisplayValue)==null?void 0:rt.slice(-1).toString(),parent:(st=it.xValue)==null?void 0:st.slice(0,-1).join("_"),custom:Nt(kt({},it),{level:n.xAxisCount,levelsCount:n.xAxisCount})}});return U0([...K,...J],S,R)}function Y0(n){const S={};return n.xValues.forEach(R=>{R.rawValues.slice(0,-1).forEach((K,J)=>{var rt;const it=R.rawValues.slice(0,J+1).join("_");S[it]={id:it,name:R.xValues[J],parent:R.rawValues.slice(0,J).join("_"),custom:{xValues:R.xValues.slice(0,J+1),rawValues:(rt=R.rawValues)==null?void 0:rt.slice(0,J+1),level:J+1,levelsCount:n.xAxisCount}}})}),Object.values(S)}function U0(n,S,R){const K=S.breakBy.map(it=>it.isColored).indexOf(!0)+1,J=new Map;return n.map(it=>{var rt;return it.custom.level===K?(J.has(it.name)||J.set(it.name,J.size),Nt(kt({},it),{color:(rt=Xr(S,it.name))!=null?rt:ni(R==null?void 0:R.palette.variantColors,J.get(it.name))})):it})}const Rn="SUNBURST_ROOT_PARENT_ID";function V0(n,S,R){const K={id:Rn,name:Ae(S.y[0]),custom:{level:0,levelsCount:n.xAxisCount}},J=vs(n,S,R).map(st=>st.parent===""?Nt(kt({},st),{parent:Rn}):st),it=K0(J),rt=$0(it,S,R);return[K,...rt]}function $0(n,S,R){const J=Z0(S),it=S.breakBy.map(()=>new Map);n.forEach(ht=>{var pt,ft,_,et;const ct=it[ht.custom.level-1];if(ct){const G=(pt=ct.get(ht.name))!=null?pt:0,B=(et=(_=ht.value)!=null?_:(ft=ht.custom)==null?void 0:ft.subtotalValue)!=null?et:0;ct.set(ht.name,G+B)}});const st=it.map(ht=>Array.from(ht.entries()).sort(([,ct],[,pt])=>ct-pt).map(([ct])=>ct)).map((ht,ct)=>{var G,B;const pt=new Map,ft=ni(R==null?void 0:R.palette.variantColors,ct),_=((B=(G=S.breakBy[ct])==null?void 0:G.color)==null?void 0:B.color)||ft,et=zf(Oo(_,.3),Oo(_,-.3),ht.length);return ht.forEach((H,U)=>{pt.set(H,et[U])}),pt});return n.map(ht=>{var ft,_,et;const ct=(_=J[((ft=ht.custom)==null?void 0:ft.level)||""])==null?void 0:_[(ht==null?void 0:ht.name)||""],pt=(et=st[ht.custom.level-1])==null?void 0:et.get(ht.name);return Nt(kt({},ht),{color:ct||pt})})}function Z0(n){return n.breakBy.reduce((S,{column:R},K)=>{var J;return(J=n==null?void 0:n.seriesToColorMap)!=null&&J[R.name]&&(S[K+1]=n.seriesToColorMap[R.name]),S},{})}function K0(n){const S=new Map,R=new Map;n.forEach(J=>{J.parent&&(S.has(J.parent)||S.set(J.parent,[]),S.get(J.parent).push(J))}),Array.from(S.values()).sort((J,it)=>{var rt,st,ht,ct,pt,ft;return((ht=(st=(rt=it[0])==null?void 0:rt.custom)==null?void 0:st.level)!=null?ht:0)-((ft=(pt=(ct=J[0])==null?void 0:ct.custom)==null?void 0:pt.level)!=null?ft:0)}).forEach(J=>{J.forEach(it=>{var ht,ct;const rt=(ct=(ht=it.value)!=null?ht:R.get(it.id))!=null?ct:0,st=R.get(it.parent)||0;R.set(it.parent,st+rt),it.id&&(it.custom.subtotalValue=R.get(it.id))})});const K=[];return S.forEach(J=>{J.sort((it,rt)=>{var ct,pt,ft,_;const st=(pt=(ct=it.value)!=null?ct:R.get(it.id))!=null?pt:0,ht=(_=(ft=rt.value)!=null?ft:R.get(rt.id))!=null?_:0;return st-ht}),K.push(...J)}),K}const q0={type:"sunburst",borderWidth:0,dataLabels:{style:{textOutline:"none"}}},J0={title:{text:null},chart:{type:"sunburst",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[],plotOptions:{series:{},sunburst:{events:{legendItemClick:function(n){n.preventDefault()}}}}};function Nc(n,S,R,K,J=!0){return[Nt(kt({},q0),{name:"Root",data:V0(n,S,K),levels:X0(n,S,R,K,J),showInLegend:!1,turboThreshold:2e3}),...S.breakBy.map((it,rt)=>{var st;return{name:Ae(it),showInLegend:!0,color:((st=it==null?void 0:it.color)==null?void 0:st.color)||ni(K==null?void 0:K.palette.variantColors,rt),data:[],states:{hover:{enabled:!1}}}})]}function Bc(n,S,R){return ys(n,S,R,{displayTotalContribution:!0,displayColorCircles:!0,shouldSkip:K=>{var J;return((J=K.point.options)==null?void 0:J.id)===Rn}})}function Q0(n,S,R,K,J){return Nt(kt({},J0),{series:Nc(n,S,R,J),tooltip:Bc(S,R,K),legend:zi(R.legend)})}const tv=(n,S,R,K,J)=>{const it=[];return{options:Q0(n,R,S,K,J),alerts:it}},ev="rgb(255, 255, 255)",Va="rgb(43, 51, 66)",Co=20,So=4,iv=2,zn=1,ov=Co*2,rv=26,nv=20,$a=35,sv=Co+So-2,Za={key:"brightness",to:.15},av=Kh.Series.types.treemap.prototype;av.squarifiedWithTopSpacing=function(n,S){const R=pv(n.height,this.chart.plotHeight),K=this.squarified(n,S),J=R(sv);return dv(this.chart)?K.map((it,rt)=>{const st=it.height>=R(ov);return S[rt].point.options.custom.bigLabelSpacing=st,st&&(it.height=it.height-J,it.y=it.y+J),it}):K};function Rc(n,S,R){const K=hv();return n.breakBy.length===1&&(K[0].borderWidth=zn,K[0].borderColor="black",K[0].layoutAlgorithm="strip",K[0].dataLabels=K[1].dataLabels),n.breakBy.length===2&&(K[1].borderWidth=zn,K[1].borderColor="black"),n.breakBy.some(({isColored:J})=>J)&&(K[1].colorVariation=Za,K[2].colorVariation=Za),K.forEach((J,it)=>{var st,ht,ct,pt,ft,_,et;const rt=J.dataLabels;if((st=S==null?void 0:S.labels)!=null&&st.category&&(rt.enabled=(ft=(pt=(ct=(ht=S.labels)==null?void 0:ht.category)==null?void 0:ct[it])==null?void 0:pt.enabled)!=null?ft:!0),(_=R==null?void 0:R.typography)!=null&&_.fontFamily&&(rt.style=Nt(kt({},rt.style),{fontFamily:(et=R==null?void 0:R.typography)==null?void 0:et.fontFamily})),S.seriesLabels){const G=Array.isArray(S.seriesLabels)?S.seriesLabels[it]:S.seriesLabels,B=J.layoutAlgorithm==="squarifiedWithTopSpacing",H=_e(B?{enabled:G==null?void 0:G.enabled}:G);J.dataLabels=Nt(kt(kt({},rt),H),{style:kt(kt({},rt.style),H.style),formatter:lv(it,S.seriesLabels)})}}),K}function lv(n,S){const R=Array.isArray(S)?S[n]:S,{prefix:K="",suffix:J="",backgroundColor:it="#e6e6e6",textStyle:rt,align:st,borderColor:ht,borderWidth:ct,padding:pt,rotation:ft=0,xOffset:_=0,yOffset:et=0}=R!=null?R:{};return function(){var $,Z,V,F;const B=Fo(ri(this.color))>.4&&!((Z=($=this.point.options)==null?void 0:$.custom)!=null&&Z.blur),{width:H}=Fc(this.point);return cv(this.point)?zc(this.point)?`<div
|
|
146
|
+
style="
|
|
147
|
+
box-sizing: border-box;
|
|
148
|
+
position: absolute;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
text-overflow: ellipsis;
|
|
151
|
+
padding: ${pt!=null?pt:3}px;
|
|
152
|
+
width:${H-So}px;
|
|
153
|
+
max-width:${H-So}px;
|
|
154
|
+
max-height: ${Co}px;
|
|
155
|
+
height: ${Co}px;
|
|
156
|
+
background: ${it};
|
|
157
|
+
color: ${(V=rt==null?void 0:rt.color)!=null?V:Va};
|
|
158
|
+
top: ${-Co+et}px;
|
|
159
|
+
left: ${So/2+_}px;
|
|
160
|
+
text-align: ${st!=null?st:"center"};
|
|
161
|
+
transform: rotate(${ft}deg);
|
|
162
|
+
border: ${ht!=null?ht:"none"} ${ct!=null?ct:0}px solid;
|
|
163
|
+
${rt!=null&&rt.fontSize?`font-size: ${rt.fontSize}px;`:""}
|
|
164
|
+
${rt!=null&&rt.fontWeight?`font-weight: ${rt.fontWeight};`:""}
|
|
165
|
+
${rt!=null&&rt.fontFamily?`font-family: ${rt.fontFamily};`:""}
|
|
166
|
+
${rt!=null&&rt.fontStyle?`font-style: ${rt.fontStyle};`:""}
|
|
167
|
+
"
|
|
168
|
+
>${K}${this.key}${J}</div>`:`<div style="fill:${(F=rt==null?void 0:rt.color)!=null?F:B?ev:Va};">${K}${this.key}${J}</div>`:""}}function hv(){return[{level:1,borderWidth:So,borderColor:"white",layoutAlgorithm:"squarifiedWithTopSpacing",dataLabels:{useHTML:!0,enabled:!0,align:"left",verticalAlign:"top",allowOverlap:!0,padding:0,style:{fontSize:"14px"}}},{level:2,borderWidth:iv,borderColor:"white",dataLabels:{enabled:!0,align:"left",verticalAlign:"top",style:{fontSize:"14px"}}},{level:3,borderColor:"black",borderWidth:zn,dataLabels:{enabled:!0,align:"center",verticalAlign:"middle",style:{fontSize:"13px"}}}]}function zc(n){var S,R,K,J;return((R=(S=n.options)==null?void 0:S.custom)==null?void 0:R.levelsCount)!==1&&((J=(K=n.options)==null?void 0:K.custom)==null?void 0:J.level)===1}function cv(n){const{height:S,width:R}=Fc(n),{level:K}=n.options.custom;return zc(n)?!!n.options.custom.bigLabelSpacing:K!==3?S>=rv&&R>=$a:S>=nv&&R>=$a}function pv(n,S){return R=>{const K=S/n;return R/K}}function dv(n){var K,J,it,rt,st,ht;const S=(J=(K=n.options.series)==null?void 0:K[0])!=null?J:{};return(ht=((st=(rt=(it=S==null?void 0:S.levels)==null?void 0:it[0])==null?void 0:rt.dataLabels)!=null?st:{}).enabled)!=null?ht:!0}function Fc(n){var S,R,K,J;return{width:(R=(S=n.shapeArgs)==null?void 0:S.width)!=null?R:0,height:(J=(K=n.shapeArgs)==null?void 0:K.height)!=null?J:0}}const uv="rgb(0, 206, 230)",fv={type:"treemap",layoutAlgorithm:"strip",layoutStartingDirection:"horizontal",clip:!1,color:uv,dataLabels:{style:{textOutline:"none"}}},gv={title:{text:null},chart:{type:"treemap",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[]};function mv(n,S,R,K,J){return Nt(kt({},gv),{series:[Nt(kt({},fv),{name:S.y[0]?Ae(S.y[0]):"",data:vs(n,S,J),levels:Rc(S,R,J)})],tooltip:ys(S,R,K)})}const yv=(n,S,R,K,J)=>{const it=[];return{options:mv(n,R,S,K,J),alerts:it}},vv=(n,S,R,K,J,it)=>{switch(S){case"pie":return R0(n,R,K,it);case"funnel":return _0(n,R,K,it);case"treemap":return yv(n,R,K,J,it);case"sunburst":return tv(n,R,K,J,it);default:throw new Bt.TranslatableError("errors.unexpectedChartType",{chartType:S})}},bv=(n,S,R)=>({animation:!1,crosshairs:!0,backgroundColor:Ai,borderColor:Mi,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){var Z,V,F,I;if(!this.point.low||!this.point.high)return pc(this,S,R);let K;this.percentage&&(K=`${Math.round(this.percentage)}`);const J=S,it=(Z=J.rangeValues)==null?void 0:Z.find(J.breakBy.length>0?E=>E[0].enabled:E=>Ae(E[0])===this.series.name),[rt,st]=it!=null?it:[void 0,void 0],ht=qh(rt),ct=he(rt,this.point.high,""),pt=he(st,this.point.low,""),ft=(F=(V=this.point)==null?void 0:V.custom)==null?void 0:F.xDisplayValue,_=Array.isArray(ft)?String((I=ft[0])!=null?I:this.x):ft!=null?ft:this.x,et=J.x?he(J.x[0],this.x,_):_,G=ct+(ht&&K?` / ${K}%`:""),B=pt+(ht&&K?` / ${K}%`:""),H=this.point.color||this.series.color,{upperPointName:U,lowerPointName:$}=this.point;return Vi(`
|
|
169
|
+
<div>${this.series.name}</div>
|
|
170
|
+
<div class="csdk-range-tooltip-row">
|
|
171
|
+
<span>${U||R("arearange.tooltip.max")}</span>
|
|
172
|
+
${Ee(G,H)}
|
|
173
|
+
</div>
|
|
174
|
+
<div class="csdk-range-tooltip-row">
|
|
175
|
+
<span>${$||R("arearange.tooltip.min")}</span>
|
|
176
|
+
${Ee(B,H)}
|
|
177
|
+
</div>
|
|
178
|
+
${wi()}
|
|
179
|
+
<div>${et||""}</div>
|
|
180
|
+
`)}}),Ka=(n,S,R,K,J,it,rt)=>{var E,A;const st=[],ht=[];K.seriesValues.forEach(P=>{ht.push(P),st.push(P)}),K.rangeValues.forEach(([P,y])=>{ht.push(y),st.push(P)});const ft=Nt(kt({},K),{y:ht,seriesToColorMap:K.seriesToColorMap}),_=Pr(Nt(kt({},n),{type:"cartesian"}),S,R,ft,J,it,rt),et={};_.options.series.forEach(P=>{et[P.name]=P});const G=Nt(kt({},K),{y:st,seriesToColorMap:K.seriesToColorMap}),B=Pr(Nt(kt({},n.seriesOther),{type:"cartesian"}),S,R,G,J,it,rt),H={};B.options.series.forEach(P=>{H[P.name]=P});let U=1/0,$=-1/0,Z=-1,V=0;if(_.options.series.forEach((P,y)=>{if(K.breakBy.length===0&&y<K.seriesValues.length)Hi(P.name)&&(Z=ey(P,H,et)),P.zIndex=1,P.data.forEach(c=>{c.y&&c.y<U&&(U=c.y),c.y&&c.y>$&&($=c.y)});else{const c=H[P.name].data;P.yAxis=0;let g=0;K.breakBy.length===0&&(g=y-K.seriesValues.length);const m=K.rangeValues[g],u=m[0].column.name.indexOf("_")+1,v=m[1].column.name.substring(u),w=m[0].column.name.substring(u);P.type="arearange",Hi(P.name)&&iy(P,H),V=Math.max(P.data.length,V),P.data=P.data.map((M,C)=>{const p=Nt(kt({},M),{low:c[C].y,high:M.y,y:void 0,upperPointName:v,lowerPointName:w});return p.low&&p.low<U&&(U=p.low),p.high&&p.high>$&&($=p.high),p}),Hi(P.name)&&oy(P,H)}}),_.options.xAxis||(_.options.xAxis=[]),Z>0&&ry(_.options.xAxis,Z,V),S==="arearange"&&R.lineType==="smooth"){const P="areasplinerange";_.options.chart.type=P,(E=_.options.navigator)!=null&&E.series&&(_.options.navigator.series.type=P)}S==="arearange"&&(_.options.tooltip=bv(!1,K,J));const[F]=(A=_.options.yAxis)!=null?A:[],I=Nt(kt({},F),{min:U,max:$});return _.options.yAxis=[I],_},xv={displayValue:"0"},mo=(n,S)=>{if(S){for(let R=0;R<n.columns.length;R++)if(n.columns[R].name===S.column.name)return R}return-1},Cv=(n,S)=>({x:mo(S,n.x),y:mo(S,n.y),breakByPoint:mo(S,n.breakByPoint),breakByColor:mo(S,n.breakByColor),size:mo(S,n.size)}),qa=(n,S)=>S[n]||xv,Sv=(n,S)=>{const R=new Set;return n.forEach(K=>{R.add(K[S].displayValue)}),Array.from(R.values())},Ja=(n,S,R)=>{if(R&&!mi(R))return Sv(n,S)},Qa=(n,S)=>[n,S],wv=(n,S)=>{const R=new Map(n==null?void 0:n.map(Qa)),K=new Map(S==null?void 0:S.map(Qa));return{xCategoriesMap:R,yCategoriesMap:K}},Mv=(n,S,R=!0)=>{var ht,ct,pt,ft;const K=Cv(n,S),J=((ht=n.breakByPoint)==null?void 0:ht.numberFormatConfig)!==void 0,it=n!=null&&n.breakByPoint&&Bt.isNumber(n.breakByPoint.column.type)&&(R||J)?ve((ct=n.breakByPoint)==null?void 0:ct.numberFormatConfig):void 0,rt=((pt=n.breakByColor)==null?void 0:pt.numberFormatConfig)!==void 0,st=n!=null&&n.breakByColor&&(mi(n.breakByColor)||Bt.isNumber(n.breakByColor.column.type))&&(R||rt)?ve((ft=n.breakByColor)==null?void 0:ft.numberFormatConfig):void 0;return S.rows.map(_=>{const et=kt({},_[K.breakByPoint]);it&&(et.displayValue=ke(it,et.compareValue?et.compareValue.value:parseFloat(et.displayValue)));const G=kt({},_[K.breakByColor]);return st&&(G.displayValue=ke(st,G.compareValue?G.compareValue.value:parseFloat(G.displayValue))),{xAxis:qa(K.x,_),yAxis:qa(K.y,_),breakByPoint:et,breakByColor:G,size:_[K.size]}})},Av=(n,S,R=!0)=>{const K=Mv(n,S,R),{x:J,y:it}=n,rt=Ja(K,"xAxis",J),st=Ja(K,"yAxis",it);return{type:"scatter",scatterDataTable:K,xCategories:rt,yCategories:st}},ui="#d1d1d7";function Gc(n,S,R){if(R&&R.length&&!R.includes(S))return"";const K=typeof S=="number"?S:parseFloat(S);return isNaN(K)?`${S}`:n&&!mi(n)&&!Bt.isNumber(n.column.type)?`${S}`:ke(ve(n==null?void 0:n.numberFormatConfig),K)}const Tv=(n,S,R)=>[{type:n.type,startOnTick:!1,endOnTick:!(n.max||S),labels:{overflow:"justify",enabled:n.enabled&&n.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:Pe,formatter:function(){return Gc(R==null?void 0:R.x,this.value,this.axis.categories)}},categories:S||void 0,gridLineWidth:n.enabled&&n.gridLine?1:0,gridLineColor:ui,gridLineDashStyle:"Dot",title:{enabled:n.enabled&&n.titleEnabled,margin:25,text:n.title||null},lineColor:ui,lineWidth:1,minorTickColor:ui,minorGridLineColor:ui,minorGridLineDashStyle:"Dot",minorTickLength:0,tickLength:0,tickColor:ui,tickmarkPlacement:"on",tickInterval:n.enabled?n.tickInterval:null,min:n.enabled?n.min:null,max:n.enabled?n.max:null}],kv=(n,S,R)=>[{type:n.type,startOnTick:!1,endOnTick:!(n.max||S),title:{enabled:n.enabled&&n.titleEnabled,text:n.title||null},labels:{enabled:n.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:Pe,formatter:function(){return Gc(R==null?void 0:R.y,this.value,this.axis.categories)}},categories:S||void 0,gridLineColor:ui,gridLineDashStyle:"Dot",gridLineWidth:1,lineColor:ui,lineWidth:1,maxPadding:.025,minPadding:.025,minorGridLineColor:ui,minorGridLineDashStyle:"Dot",minorGridLineWidth:0,minorTickColor:ui,minorTickWidth:0,opposite:!1,tickColor:ui,tickWidth:0,tickmarkPlacement:"on",tickInterval:n.enabled?n.tickInterval:null,min:n.enabled?n.min:null,max:n.enabled?n.max:null}],Wc={scatterDefaultSize:10,scatterBubbleMinSize:12,scatterBubbleMaxSize:48},Pv=(n,S)=>{var it;if(!(n!=null&&n.enabled))return{enabled:!1};const R=_e(n),K=(it=n.rotation)!=null?it:0,J=Nt(kt(kt({align:"center",verticalAlign:"middle",types:{count:!1,relative:!0,totals:!0},rotation:K},fs(K)==="horizontal"?{y:-1}:null),R),{style:kt({fontWeight:"",textOutline:""},R.style)});return J.formatter=function(){var et,G,B,H;const rt=this,st={maskedY:S.y,maskedX:S.x,maskedSize:S.size,maskedBreakByColor:S.breakByColor},ct=[S.y,S.x,S.size,S.breakByColor].find(U=>U&&mi(U)),pt=(et=Object.entries(st).find(([,U])=>U===ct))==null?void 0:et[0],ft=((G=rt.point.custom)==null?void 0:G[pt])||"";if(isNaN(parseFloat(ft)))return ft;const _=ve(ct==null?void 0:ct.numberFormatConfig);return`${(B=n==null?void 0:n.prefix)!=null?B:""}${ke(_,parseFloat(ft))}${(H=n==null?void 0:n.suffix)!=null?H:""}`},J},Lv=(n,S)=>({minSize:S?n.scatterBubbleMinSize:n.scatterDefaultSize,maxSize:S?n.scatterBubbleMaxSize:n.scatterDefaultSize}),Ev=(n,S)=>{var K;const R=!!S.size;return{bubble:kt({animation:!1},Lv((K=n.markerSize)!=null?K:Wc,R)),series:{allowPointSelect:!1,boostThreshold:0,dataLabels:Pv(n.seriesLabels,S),stickyTracking:!1,turboThreshold:0}}},Hc="#00cee6",Fn=n=>{const S=n.rawValue==null?Number(n.displayValue):Number(n.rawValue);return Number.isNaN(S)||S===void 0?null:S},Ov=n=>n?Fn(n):1,Dv=(n,S)=>{const{xAxis:R,yAxis:K,breakByPoint:J,breakByColor:it,size:rt}=n,{xCategoriesMap:st,yCategoriesMap:ht}=S,ct=st.get(R.displayValue),pt=ht.get(K.displayValue),ft=R.blur||K.blur||(J==null?void 0:J.blur);return{x:ct!==void 0?ct:Fn(R),y:pt!==void 0?pt:Fn(K),z:Ov(rt),maskedX:R.displayValue,maskedY:K.displayValue,maskedBreakByPoint:J==null?void 0:J.displayValue,maskedBreakByColor:it==null?void 0:it.displayValue,color:it==null?void 0:it.color,maskedSize:rt==null?void 0:rt.displayValue,selected:ft}},jv=(n,S,R)=>{var rt,st;const K=new Map;n.forEach(ht=>{var ct;if(ht.breakByColor){const{displayValue:pt,color:ft}=ht.breakByColor;if(pt&&!K.has(pt)){const _=ft||((ct=S==null?void 0:S.seriesToColorMap)==null?void 0:ct[pt]);K.set(pt,_)}}});const J=new Map,it=Bt.isNumber((st=(rt=S==null?void 0:S.breakByColor)==null?void 0:rt.column)==null?void 0:st.type)?"number":"string";return Array.from(K).sort(([ht],[ct])=>Ll(ht,ct,Pl.ASC,it)).forEach(([ht,ct],pt)=>{J.set(ht,{color:ct!=null?ct:ni(R==null?void 0:R.palette.variantColors,pt),index:pt})}),J},Iv=(n,S,R)=>{const K={enabled:!0,fillOpacity:.7,lineWidth:1,states:{select:{fillOpacity:.3,lineWidth:1}}};return n.size?Array.from(n).map(([J,{index:it,color:rt}])=>({data:[],index:it,marker:K,name:J,showInLegend:!0,type:"bubble",color:rt})):[{data:[],index:0,marker:K,name:S,showInLegend:!!S,type:"bubble",color:Xl(R)||Hc}]},_v=(n,S)=>{const R=n.get(S);return R?R.index:0},Nv=(n,S)=>{const R=as({getValueFromDataStructure:K=>{var J;return parseFloat(`${(J=K.custom)==null?void 0:J.maskedBreakByColor}`)},applyColorToDataStructure:(K,J)=>Nt(kt({},K),{color:J})});return n.map(K=>Nt(kt({},K),{data:R(K.data,S)}))},Bv=n=>{if(n&&mi(n)&&n.color)return n.color},Rv=(n,S,R,K)=>{for(const J of S){const{x:it,y:rt,z:st,maskedX:ht,maskedY:ct,maskedBreakByPoint:pt,maskedSize:ft,color:_,maskedBreakByColor:et,selected:G}=Dv(J,R);if(it!==null&&rt!==null){const B=n[_v(K,et)],H={color:_||B.color||Hc,x:it,y:rt,z:st,custom:{maskedX:ht,maskedY:ct,maskedBreakByPoint:pt,maskedBreakByColor:et,maskedSize:ft},selected:G};B.data.push(H)}}return n},zv=n=>{const S=n==null?void 0:n.breakByColor,R=n==null?void 0:n.breakByPoint;return S&&Ae(S)||R&&Ae(R)||""},Fv=(n,S,R,K)=>{const J=R==null?void 0:R.breakByColor,it=zv(R),rt=Bv(J),st=J&&!mi(J)?jv(n,R,K):new Map;let ht=Iv(st,it,rt);return ht=Rv(ht,n,S,st),rt&&(ht=Nv(ht,rt)),ht},Gv=(n,S)=>S?n.slice(0,S):n,Wv=(n,S,R,K,J,it)=>{const rt=[],st=Fv(n,S,R,J).map(ht=>Nt(kt({},ht),{dataLabels:_e(K==null?void 0:K.seriesLabels)}));return it&&st.length>it?(rt.push($i(st.length,it)),{series:Gv(st,it),alerts:rt}):{series:st,alerts:rt}},lr=20,Hv=30,Xv=n=>kt({symbolHeight:12,symbolWidth:12,itemMarginBottom:0,itemMarginTop:0},zi(n)),Yv=(n,S,R,K,J)=>{const it=[],rt=lo(S,R),st=K,{scatterDataTable:ht}=n,{seriesCapacity:ct,categoriesCapacity:pt}=R.dataLimits;let{xCategories:ft,yCategories:_}=n;ft&&ft.length>pt&&(it.push(Ar("x",ft.length,pt)),ft=ft.slice(0,pt)),_&&_.length>pt&&(it.push(Ar("y",_.length,pt)),_=_.slice(0,pt));const{series:et,alerts:G}=Wv(ht,wv(ft,_),st,R,J,ct);return it.unshift(...G),{options:{title:{text:null},subtitle:{text:null},chart:{type:rt,spacing:[lr,lr,lr,lr],marginTop:Hv,alignTicks:!1,polar:!1},xAxis:Tv(R.xAxis,ft==null?void 0:ft.slice(0,pt),st),yAxis:kv(R.yAxis,_==null?void 0:_.slice(0,pt),st),legend:Xv(R.legend),series:et,plotOptions:Ev(R,st),tooltip:ty(st)},alerts:it}},Uv=(n,S,R,K,J,it,rt)=>{switch(n.type){case"range":return Ka(n,S,R,K,J,it,rt);case"cartesian":{const st=K,ht=tc(st)?Ka(Nt(kt({},n),{type:"range"}),S,R,ec(st),J,it,rt):Pr(n,S,R,st,J,it,rt);return sy(ht.options.series),ht}case"categorical":return vv(n,S,R,K,J,it);case"scatter":return Yv(n,S,R,K,it);case"boxplot":return Ey(n,R,K,J,it);default:throw new Bt.TranslatableError("errors.unexpectedChartType",{chartType:n.type})}},Vv={legend:{enabled:!0,position:"bottom"},navigator:{enabled:!0},markers:{enabled:!1,fill:"filled",size:"small"},seriesLabels:{enabled:!1,rotation:0},xAxis:{enabled:!0,gridLines:!1,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"X Axis title"}},yAxis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y Axis title"}},y2Axis:{enabled:!0,gridLines:!0,isIntervalEnabled:!1,labels:{enabled:!0},logarithmic:!1,title:{enabled:!1,text:"Y2 Axis title"}},convolution:{enabled:!1,selectedConvolutionType:"byPercentage",minimalIndependentSlicePercentage:3,independentSlicesCount:7},labels:{categories:!0,enabled:!0,percent:!0,decimals:!1,value:!1}},$v=()=>Bt.cloneDeep(Vv),Zv=n=>Bt.isCartesian(n)?"cartesian":Bt.isCategorical(n)?"categorical":Bt.isScatter(n)?"scatter":Bt.isScattermap(n)?"scattermap":Bt.isIndicator(n)?"indicator":Bt.isAreamap(n)?"areamap":Bt.isBoxplot(n)?"boxplot":Bt.isCalendarHeatmap(n)?"calendar-heatmap":Bt.isRange(n)?"range":Bt.isSankey(n)?"sankey":"table";function Kv(n){return Bt.flatRest(function(S){return S=Bt.arrayMap(S,Bt.baseUnary(Bt.baseIteratee)),Bt.baseRest(function(R){var K=this;return n(S,function(J){return Bt.apply(J,K,R)})})})}var Xc=Kv(Bt.arrayMap);function Yr(n,S=!1){const R=n.filter(K=>Bt.isFunction(K));return S?Gr(R):Xc(R)}function qv(...n){return(S,R)=>n.reduce((K,J)=>{var it;return J&&(it=J(S,K))!=null?it:K},R)}function Jv(...n){return S=>n.reduce((R,K)=>{if(!K)return R;const J=K(R);return J!==null?J:R},S)}const Yc={"chart/line":"line","chart/area":"area","chart/bar":"bar","chart/column":"column","chart/polar":"polar","chart/pie":"pie","chart/funnel":"funnel",treemap:"treemap",sunburst:"sunburst","chart/scatter":"scatter",indicator:"indicator","chart/boxplot":"boxplot","map/scatter":"scattermap","map/area":"areamap",tablewidget:"table",tablewidgetagg:"table",heatmap:"calendar-heatmap"},Qv=Object.entries(Yc).reduce((n,[S,R])=>(R!==void 0&&(n[R]=S),n),{});function tb(n){const S=n.jaql;return"agg"in S&&!!S.agg||"formula"in S&&!!S.formula}function eb(n){return Yc[n]}function ib(n){return Qv[n]}function ob(n,S,R){if(n==="chart"){if(!S)throw new Error("chartType is required for chart widget type");return ib(S)}if(n==="pivot")return"pivot2";if(n==="custom")return R&&Uc(R)?lb(R):R!=null?R:"custom";if(n==="text")return"richtexteditor";throw new Bt.TranslatableError("errors.widgetModel.unsupportedWidgetType",{widgetType:n})}function rb(n){if(bs(n))return"pivot";if(gb(n))return"custom";if(xs(n))return"text";if(Vc(n))return"chart";throw new Bt.TranslatableError("errors.widgetModel.unsupportedFusionWidgetType",{fusionWidgetType:n})}function nb(n){return{"area/basic":"area/basic","area/stacked":"area/stacked","area/stacked100":"area/stacked100","area/spline":"area/spline","area/stackedspline":"area/stackedspline","area/stackedspline100":"area/stackedspline100","bar/classic":"bar/classic","bar/stacked":"bar/stacked","bar/stacked100":"bar/stacked100","column/classic":"column/classic","column/stackedcolumn":"column/stackedcolumn","column/stackedcolumn100":"column/stackedcolumn100","line/basic":"line/basic","line/spline":"line/spline","pie/classic":"pie/classic","pie/donut":"pie/donut","pie/ring":"pie/ring","column/polar":"polar/column","area/polar":"polar/area","line/polar":"polar/line","indicator/numeric":"indicator/numeric","indicator/gauge":"indicator/gauge",treemap:"treemap",sunburst:"sunburst","boxplot/full":"boxplot/full","boxplot/hollow":"boxplot/hollow","map/scatter":"scattermap"}[n]}function sb(n){return["chart/line","chart/area","chart/bar","chart/column","chart/polar","chart/pie","chart/funnel","treemap","sunburst","chart/scatter","indicator","tablewidget","tablewidgetagg","pivot","pivot2","chart/boxplot","map/scatter","map/area","richtexteditor","heatmap"].includes(n)}function ab(n){return n==="WidgetsTabber"}function Uc(n){return n==="tabber-buttons"}function lb(n){switch(n){case"tabber-buttons":return"WidgetsTabber";default:throw new Bt.TranslatableError("errors.unsupportedPluginWidgetType",{widgetType:n})}}const hb=["chart/pie","indicator","richtexteditor","chart/column","chart/bar","chart/line","chart/area","pivot","pivot2","chart/scatter","chart/polar"];function cb(n){return hb.includes(n)}function pb(n){return n==="tablewidget"||n==="tablewidgetagg"}function db(n){return xb(n.widgetType)&&n.chartType==="table"}function bs(n){return n==="pivot"||n==="pivot2"}function ub(n){return n==="pivot"}function xs(n){return n==="richtexteditor"}function fb(n){return n==="text"}function gb(n){return n==="custom"}function mb(n){return n==="custom"}function Vc(n){return!bs(n)&&!xs(n)}function yb(n){return n.startsWith("chart")}function vb(n){return n==="chart/pie"}function bb(n){return n==="indicator"}function xb(n){return n==="chart"}function $c(n){return n.widgetType==="text"}function Ur(n){return n.widgetType==="pivot"}function Wo(n){return n.widgetType==="custom"}function Vr(n){return n.widgetType==="chart"}function Cb(n){return Ur(n)?"pivot":Wo(n)?"custom":$c(n)?"text":n.chartType}function Sb(n,S){(Vr(n)||Ur(n)||Wo(n))&&(n.onDataPointClick=Yr([n.onDataPointClick,S]))}function wb(n,S){(Vr(n)||Ur(n)||Wo(n))&&(n.onDataPointContextMenu=Yr([n.onDataPointContextMenu,S]))}function Mb(n,S){(Vr(n)||Wo(n))&&(n.onDataPointsSelected=Yr([n.onDataPointsSelected,S]))}function Ab(n,S){var K;const R=n.styleOptions;n.styleOptions=Nt(kt({},R),{header:Nt(kt({},R==null?void 0:R.header),{renderToolbar:qv((K=R==null?void 0:R.header)==null?void 0:K.renderToolbar,S)})})}function Tb(n,S){var J;const R=n.find(it=>it.name===S);return((J=R==null?void 0:R.items)!=null?J:[]).filter(it=>!it.disabled)}function Zc(n){return n.parent?Zc(n.parent):n}exports.CALENDAR_HEATMAP_COLORS=Bm;exports.CALENDAR_HEATMAP_DATA_TYPE=Fm;exports.CALENDAR_HEATMAP_DEFAULTS=Nm;exports.CALENDAR_HEATMAP_SIZING=Rm;exports.CALENDAR_TYPOGRAPHY=zm;exports.CacheProvider=Zp;exports.Color=Oi;exports.DEFAULT_BACKGROUND_COLOR=td;exports.DEFAULT_COLOR=mr;exports.DEFAULT_TEXT_COLOR=Vn;exports.DefaultFunnelDirection=Fh;exports.DefaultFunnelSeriesLabels=Bh;exports.DefaultFunnelSize=Rh;exports.DefaultFunnelType=zh;exports.DefaultPieType=Hh;exports.ERROR_COLOR=ed;exports.Emotion$1=Un;exports.FORECAST_PREFIX=Go;exports.FULL_MONTH_DATE_FORMAT=Gm;exports.Fragment=Ml;exports.GradientDirections=pg;exports.Highcharts=Kh;exports.I18nContext=ol;exports.KEYFRAMES=Or;exports.MIN_TOUCH_TARGET_SIZE=od;exports.NOT_AVAILABLE_DATA_VALUE=$n;exports.NOT_AVAILABLE_TEXT=id;exports.QUERY_DEFAULT_LIMIT=Jp;exports.REFERENCE_SUNDAY_DATE=Ym;exports.RadialGradientPresets=dg;exports.SHORT_MONTH_DATE_FORMAT=Wm;exports.SINGLE_LETTER_DAY_DATE_FORMAT=Hm;exports.SYSTEM_TENANT_NAME=Qp;exports.THREE_LETTER_DAY_DATE_FORMAT=Xm;exports.TREND_PREFIX=Hr;exports.TRIANGLE_COLOR_ADJUSTMENT=jf;exports.ThemeContext=wl;exports.ViewType=ds;exports.advancedAnalyticsData=hy;exports.applyFormat=Br;exports.applyFormatPlainText=ke;exports.applyOpacity=Ch;exports.baseTrim=Fl;exports.buildCategoriesMeta=vc;exports.buildXAxisSettings=bc;exports.buildYAxisMeta=yc;exports.buildYAxisMinMax=Bn;exports.cartesianData=kn;exports.categoriesSliceWarning=Ar;exports.colorChineseSilver=Mi;exports.colorWhite=Ai;exports.combineHandlers=Yr;exports.commonjsGlobal=yo;exports.composeTitleHandlers=Jv;exports.createCache=fl;exports.createCompareValue=To;exports.createDataColoringFunction=as;exports.createDataTableFromData=Cd;exports.createEmotionProps=Yn;exports.createLinearGradient=ug;exports.createRadialGradient=fg;exports.defaultScatterMarkerSize=Wc;exports.deriveChartFamily=Zv;exports.determineHighchartsChartType=lo;exports.emptyTable=Jn;exports.extractForecastMeasures=ly;exports.extractTrendMeasures=ay;exports.flow=Gr;exports.formatFunnelChartData=wc;exports.formatNumberWithFallback=Xi;exports.formatTooltipValue=he;exports.getAlerts=Mc;exports.getAugmentedNamespace=np;exports.getCartesianChartOptions=Pr;exports.getCartesianTooltipSettings=dc;exports.getCategoryTooltipSettings=ms;exports.getChartSubtype=nb;exports.getChartType=eb;exports.getColoringServiceByColorOptions=wh;exports.getColumnByName=Ei;exports.getColumnsByName=ko;exports.getCompleteNumberFormatConfig=ve;exports.getDarkFactor=Fo;exports.getData=hs;exports.getDataOptionGranularity=Nr;exports.getDataOptionTitle=Ae;exports.getDefaultDateFormat=Wr;exports.getDefaultExportFromCjs=Gn;exports.getDefaultStyleOptions=$v;exports.getEnabledPanelItems=Tb;exports.getFunnelPlotOptions=Wh;exports.getFusionWidgetType=ob;exports.getIndexedRows=qn;exports.getInternalWidgetType=Cb;exports.getInterpolatorFn=Sh;exports.getLegendSettings=zi;exports.getOrderedXValues=Ph;exports.getPaletteColor=ni;exports.getPieAlerts=Dc;exports.getPieConvolutionSeries=_c;exports.getPiePlotOptions=Xh;exports.getPieSeries=Ic;exports.getRegisteredStyles=gl;exports.getRootPanelItem=Zc;exports.getSlightlyDifferentColor=Rf;exports.getTreemapTooltipSettings=ys;exports.getUniformColorOptionsFromString=is;exports.getValue=Nl;exports.getValues=ao;exports.getWidgetType=rb;exports.getYAxisSettings=uc;exports.groupBy=Il;exports.hasOwn=_o;exports.hasSecondaryYAxis=xc;exports.highchartsOptionsService=Uv;exports.insertStyles=ml;exports.isBlurred=Bl;exports.isCell=Ol;exports.isChartFusionWidget=Vc;exports.isChartTypeFusionWidget=yb;exports.isChartWidgetProps=Vr;exports.isContinuousDatetimeXAxis=mc;exports.isCustomWidget=mb;exports.isCustomWidgetProps=Wo;exports.isDataTableEmpty=xd;exports.isForecastChart=tc;exports.isGradient=jh;exports.isIndicatorFusionWidget=bb;exports.isLaziable=En;exports.isLegendOnRight=cs;exports.isLinearGradient=Oh;exports.isMeasureColumn=mi;exports.isMeasurePanelItem=tb;exports.isNumber=_n;exports.isPieChartFusionWidget=vb;exports.isPivotTableFusionWidget=bs;exports.isPivotTableWidgetProps=Ur;exports.isPivotWidget=ub;exports.isRadialGradient=Dh;exports.isStyledColumn=ts;exports.isSupportedPluginCsdkWidget=Uc;exports.isSupportedPluginFusionWidget=ab;exports.isSupportedWidgetType=sb;exports.isTableFusionWidget=pb;exports.isTableWidgetModel=db;exports.isTextFusionWidget=xs;exports.isTextWidget=fb;exports.isTextWidgetProps=$c;exports.isUndefined=Qn;exports.jsx=ue;exports.jsxs=ji;exports.memoize=dl;exports.merge=Ze;exports.merge$1=Ke;exports.metaMap=Ln;exports.noop=Eh;exports.normalizeAnyColumn=Ld;exports.normalizeColumn=Rl;exports.normalizeMeasureColumn=zl;exports.omitUndefinedAndEmpty=Ui;exports.orderBy=jl;exports.over=Xc;exports.parseISOWithTimezoneCheck=_r;exports.prefixer=Ep;exports.prepareStackLabels=fc;exports.prepareSunburstSeries=Nc;exports.prepareSunburstTooltip=Bc;exports.prepareTreemapDataItems=vs;exports.prepareTreemapLevels=Rc;exports.purify=$h;exports.rangeData=Qh;exports.registerDataPointClickHandler=Sb;exports.registerDataPointContextMenuHandler=wb;exports.registerDataPointsSelectedHandler=Mb;exports.registerRenderToolbarHandler=Ab;exports.registerStyles=Xn;exports.rownumColumnName=Zn;exports.safeCombine=Ad;exports.safeMerge=gr;exports.scaleBrightness=Oo;exports.scatterData=Av;exports.selectColumns=_l;exports.serializeStyles=vl;exports.seriesSliceWarning=$i;exports.sortDirection=kh;exports.splitColumn=No;exports.stackTotalFontStyleDefault=jo;exports.toColor=ri;exports.toFinite=Gl;exports.toGray=bh;exports.toInteger=Wl;exports.toNumber=es;exports.tooltipSeparator=wi;exports.tooltipWrapper=Vi;exports.translateColumnToAttribute=Td;exports.translateColumnToMeasure=kd;exports.useInsertionEffectAlwaysWithSyncFallback=xl;exports.useInsertionEffectWithLayoutFallback=Vp;exports.useTranslation=Wn;exports.widgetTypeSupportsJtd=cb;exports.withEmotionCache=Sl;exports.withGradientConversion=Yi;exports.withPolarSpecificAxisSettings=gc;exports.withScrollerEvent=ps;exports.withXAxisLabelPositioning=Sc;exports.withYAxisLabelPositioning=Cc;exports.withYAxisNormalizationForPolar=m0;
|