@sisense/sdk-ui 2.10.0 → 2.12.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 +19 -19
- package/dist/ai.js +828 -819
- package/dist/analytics-composer/node.cjs +1 -3
- package/dist/analytics-composer/node.js +2269 -653
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{derive-chart-family-BllGhqsW.js → derive-chart-family-YIDiS_iY.js} +15508 -15392
- package/dist/derive-chart-family-mugR7Ty1.cjs +170 -0
- package/dist/{dimensions-BYqdB-Q8.cjs → dimensions-CyzZ0dbM.cjs} +1 -1
- package/dist/{dimensions-D-Z9sitz.js → dimensions-DmRfLrT-.js} +1 -1
- package/dist/{execute-query-CGLL9vXX.js → execute-query-BCEeyd9s.js} +858 -829
- package/dist/execute-query-Xt9drS3G.cjs +1 -0
- package/dist/index.cjs +29 -25
- package/dist/index.js +26100 -25487
- package/dist/index.umd.js +472 -469
- package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +8 -2
- package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/chat-frame.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/custom-ai-context-provider.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/messages/text-message.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-chat-session.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-final-nlq-response.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response-from-history.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/code/default-options/data-options.d.ts +4 -0
- package/dist/packages/sdk-ui/src/analytics-composer/code/default-options/style-options.d.ts +89 -0
- package/dist/packages/sdk-ui/src/analytics-composer/code/stringify-props.d.ts +5 -1
- package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/analytics-composer/execute-query/execute-query-composer.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/execute-query/to-execute-query-code.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/index-node.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/common.d.ts +49 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/custom-formula/process-custom-formula.d.ts +14 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/custom-formula/validate-custom-formula.d.ts +54 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/execute-function.d.ts +5 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/factory-function-processors.d.ts +39 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/factory-function-schemas.d.ts +20 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +37 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/process-arg.d.ts +8 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/process-node.d.ts +9 -0
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/translate-dimensions.d.ts +10 -0
- package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-filters.d.ts +19 -7
- package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-measures.d.ts +13 -7
- package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-query.d.ts +7 -9
- package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/types.d.ts +46 -0
- package/dist/packages/sdk-ui/src/analytics-composer/query/query-translator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +71 -10
- package/dist/packages/sdk-ui/src/analytics-composer/widget/chart-options/get-widget-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-code.d.ts +3 -3
- package/dist/packages/sdk-ui/src/analytics-composer/widget/to-widget-props.d.ts +1 -1
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +9 -4
- package/dist/packages/sdk-ui/src/api/types/dashboard-dto.d.ts +2 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +6 -6
- package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +17 -3
- package/dist/packages/sdk-ui/src/chart/helpers/get-load-data-function.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/helpers/use-chart-renderer-props.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/helpers/use-synced-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/areamap-chart/renderer/areamap.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/data-loading.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +69 -36
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +3 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/extras-options.d.ts +1 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +15 -8
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +11 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +3 -5
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +7 -10
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +0 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +6 -17
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +23 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +1 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +8 -8
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-pagination.d.ts +23 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/with-calendar-heatmap-data-coloring.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/axis.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/y-axis.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data/index.d.ts +21 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data-options/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/funnel-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/alerts/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data-options/index.d.ts +11 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/sunburst-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/alerts/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data-options/index.d.ts +11 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/treemap-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +13 -12
- package/dist/packages/sdk-ui/src/chart/restructured-charts/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/advanced-analytics-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/boxplot-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/cartesian-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/indicator-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/range-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/scatter-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/table-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/types.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-data-options/translate-boxplot-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +5 -5
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data-processor/row-comparator.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/advanced-chart-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/apply-event-handlers.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/boxplot-chart-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/cartesian-chart-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +8 -8
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-settings.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis/axis-transformers.d.ts +5 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-spacing-calculator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +21 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/category-chart-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +11 -11
- package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/defaults/cartesian.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/range-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +19 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/stack-labels.d.ts +25 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-style-to-design-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/subtype-to-design-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +17 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/base-design-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-series.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +36 -9
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-series.d.ts +11 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-series.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/range/tooltip-range.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-plot-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-series.d.ts +5 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +81 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-series.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +7 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +7 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-series.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +16 -7
- package/dist/packages/sdk-ui/src/charts/indicator/chart/indicator.d.ts +4 -4
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/default-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/indicator-legacy-chart-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-options/override-with-value-color.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-render-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/hooks/use-tooltip-handler.d.ts +2 -2
- package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/scattermap.d.ts +4 -4
- package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/location.d.ts +2 -2
- package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/map.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/map-charts/scattermap/utils/tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/table/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group-header.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/menu/context-menu/menu.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/menu/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/modal/modal-context.d.ts +1 -2
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/helpers/hooks/use-load-data-from-internal-hook.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/decorators/with-lazy-loading/with-lazy-loading.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/use-tracking.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/icons/arrow-collapse-icon.d.ts +5 -0
- package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common-filters/common-filters-connector.d.ts +6 -4
- package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +2 -1
- package/dist/packages/sdk-ui/src/common-filters/use-common-filters.d.ts +3 -3
- package/dist/packages/sdk-ui/src/common-filters/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/custom-widgets-provider/custom-widgets-provider-adapter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/custom-widgets-provider/use-execute-custom-widget-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +5 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-widget-wrapper.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-columns.d.ts +5 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/components/horizontal-collapse.d.ts +2 -1
- package/dist/packages/sdk-ui/src/dashboard/components/jtd-dashboard.d.ts +5 -4
- package/dist/packages/sdk-ui/src/dashboard/components/toolbar/filter-toggle.d.ts +16 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +110 -1
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/index.d.ts +20 -5
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-config-transformers.d.ts +85 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +3 -2
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +64 -2
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +6 -7
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-menu.d.ts +2 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-types.d.ts +262 -7
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +9 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +3 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd-widget.d.ts +68 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +35 -8
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +15 -2
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +2 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +13 -5
- package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +54 -11
- package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/error-tracker.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/common/basic-input.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/common/date-range-field-button.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-display.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-menu.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-display.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/calendar-select/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +1 -3
- package/dist/packages/sdk-ui/src/filters/components/filter-tile-container.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/filter-relations-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/filter-relations-tooltip.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filter-relations-tile/tooltip-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/icons/arrow-icon.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/icons/double-arrow-icon.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +15 -2
- package/dist/packages/sdk-ui/src/formulas/fetch-formula.d.ts +1 -1
- package/dist/packages/sdk-ui/src/formulas/use-get-shared-formula.d.ts +2 -2
- package/dist/packages/sdk-ui/src/index.d.ts +9 -1
- package/dist/packages/sdk-ui/src/indicator-canvas.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +3 -3
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +9 -3
- package/dist/packages/sdk-ui/src/models/dashboard/get-dashboard-model.d.ts +9 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +27 -4
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +13 -4
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-persistence.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/hierarchy/get-hierarchy-models.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/widget/get-widget-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +4 -4
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/no-results-overlay/images/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/formatter-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/use-apply-pivot-table-cell-events.d.ts +1 -1
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-get-pivot-table-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +2 -2
- package/dist/packages/sdk-ui/src/pivot-table/sorting-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +9 -15
- package/dist/packages/sdk-ui/src/query/execute-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/query/query-result-date-formatting.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/query-params-comparator.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query-by-widget-id.d.ts +2 -2
- package/dist/packages/sdk-ui/src/sisense-chart/sisense-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-context/custom-sisense-context-provider.d.ts +2 -2
- package/dist/packages/sdk-ui/src/sisense-context/sisense-context-provider.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-context/sisense-context.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-context/sisense-query-client-provider.d.ts +1 -1
- package/dist/packages/sdk-ui/src/table/translations/design-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/themes/legacy-design-settings.d.ts +1 -1
- package/dist/packages/sdk-ui/src/themes/theme-loader.d.ts +1 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +2 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/types.d.ts +325 -41
- package/dist/packages/sdk-ui/src/utils/create-level-attribute.d.ts +11 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-dashboard-filters.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widget-by-id/translate-panel-color-format.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-drilldown-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +11 -2
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +51 -74
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +4 -4
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/use-buttons.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/common/use-drilldown-core.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +3 -3
- package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +1 -1
- package/dist/{types-Ds0KtTJF.cjs → types-CevYjGN4.cjs} +1 -1
- package/dist/{types-BRtWk8uC.js → types-DVAfvbpR.js} +1 -1
- package/dist/use-common-filters-BXdnB4GI.cjs +845 -0
- package/dist/{use-common-filters-D8tEa9zb.js → use-common-filters-DIF4c8WP.js} +69183 -68594
- package/dist/widget-composer-BB5Jrgae.js +1430 -0
- package/dist/widget-composer-C0lZpwN6.cjs +428 -0
- package/package.json +13 -18
- package/dist/derive-chart-family-B1on_xkS.cjs +0 -170
- package/dist/execute-query-CABqVn7C.cjs +0 -1
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +0 -40
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/index.d.ts +0 -2
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +0 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +0 -33
- package/dist/packages/sdk-ui/src/index-typedoc.d.ts +0 -31
- package/dist/use-common-filters-hw1WKPCY.cjs +0 -844
- package/dist/widget-composer-B7zeAa_D.cjs +0 -428
- package/dist/widget-composer-DL0xPtlC.js +0 -949
- /package/dist/packages/sdk-ui/src/analytics-composer/{new-nlq-translator → nlq-v3-translator}/translate-query-to-jaql.d.ts +0 -0
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
"use strict";var dc=Object.defineProperty,uc=Object.defineProperties;var fc=Object.getOwnPropertyDescriptors;var lo=Object.getOwnPropertySymbols;var Rn=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,sr=(m,P,F)=>P in m?dc(m,P,{enumerable:!0,configurable:!0,writable:!0,value:F}):m[P]=F,kt=(m,P)=>{for(var F in P||(P={}))Rn.call(P,F)&&sr(m,F,P[F]);if(lo)for(var F of lo(P))zn.call(P,F)&&sr(m,F,P[F]);return m},_t=(m,P)=>uc(m,fc(P));var Pe=(m,P)=>{var F={};for(var K in m)Rn.call(m,K)&&P.indexOf(K)<0&&(F[K]=m[K]);if(m!=null&&lo)for(var K of lo(m))P.indexOf(K)<0&&zn.call(m,K)&&(F[K]=m[K]);return F};var ar=(m,P,F)=>sr(m,typeof P!="symbol"?P+"":P,F);const Rt=require("./execute-query-CABqVn7C.cjs"),gc=require("react/jsx-runtime"),Ne=require("react"),la=require("react-dom/server");function ha(m){const P=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(m){for(const F in m)if(F!=="default"){const K=Object.getOwnPropertyDescriptor(m,F);Object.defineProperty(P,F,K.get?K:{enumerable:!0,get:()=>m[F]})}}return P.default=m,Object.freeze(P)}const Wi=ha(gc),Je=ha(Ne);var zi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Zr(m){return m&&m.__esModule&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m}function mc(m){if(m.__esModule)return m;var P=m.default;if(typeof P=="function"){var F=function K(){return this instanceof K?Reflect.construct(P,arguments,this.constructor):P.apply(this,arguments)};F.prototype=P.prototype}else F={};return Object.defineProperty(F,"__esModule",{value:!0}),Object.keys(m).forEach(function(K){var tt=Object.getOwnPropertyDescriptor(m,K);Object.defineProperty(F,K,tt.get?tt:{enumerable:!0,get:function(){return m[K]}})}),F}function yc(){if(console&&console.warn){for(var m=arguments.length,P=new Array(m),F=0;F<m;F++)P[F]=arguments[F];typeof P[0]=="string"&&(P[0]=`react-i18next:: ${P[0]}`),console.warn(...P)}}const Fn={};function Sr(){for(var m=arguments.length,P=new Array(m),F=0;F<m;F++)P[F]=arguments[F];typeof P[0]=="string"&&Fn[P[0]]||(typeof P[0]=="string"&&(Fn[P[0]]=new Date),yc(...P))}const ca=(m,P)=>()=>{if(m.isInitialized)P();else{const F=()=>{setTimeout(()=>{m.off("initialized",F)},0),P()};m.on("initialized",F)}};function Gn(m,P,F){m.loadNamespaces(P,ca(m,F))}function Wn(m,P,F,K){typeof F=="string"&&(F=[F]),F.forEach(tt=>{m.options.ns.indexOf(tt)<0&&m.options.ns.push(tt)}),m.loadLanguages(P,ca(m,K))}function vc(m,P){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const K=P.languages[0],tt=P.options?P.options.fallbackLng:!1,ot=P.languages[P.languages.length-1];if(K.toLowerCase()==="cimode")return!0;const nt=(at,ct)=>{const pt=P.services.backendConnector.state[`${at}|${ct}`];return pt===-1||pt===2};return F.bindI18n&&F.bindI18n.indexOf("languageChanging")>-1&&P.services.backendConnector.backend&&P.isLanguageChangingTo&&!nt(P.isLanguageChangingTo,m)?!1:!!(P.hasResourceBundle(K,m)||!P.services.backendConnector.backend||P.options.resources&&!P.options.partialBundledLanguages||nt(K,m)&&(!tt||nt(ot,m)))}function bc(m,P){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!P.languages||!P.languages.length?(Sr("i18n.languages were undefined or empty",P.languages),!0):P.options.ignoreJSONStructure!==void 0?P.hasLoadedNamespace(m,{lng:F.lng,precheck:(tt,ot)=>{if(F.bindI18n&&F.bindI18n.indexOf("languageChanging")>-1&&tt.services.backendConnector.backend&&tt.isLanguageChangingTo&&!ot(tt.isLanguageChangingTo,m))return!1}}):vc(m,P,F)}const pa=Ne.createContext();class xc{constructor(){this.usedNamespaces={}}addUsedNamespaces(P){P.forEach(F=>{this.usedNamespaces[F]||(this.usedNamespaces[F]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Cc=(m,P)=>{const F=Ne.useRef();return Ne.useEffect(()=>{F.current=m},[m,P]),F.current};function Kr(m){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:F}=P,{i18n:K,defaultNS:tt}=Ne.useContext(pa)||{},ot=F||K||Rt.getI18n();if(ot&&!ot.reportNamespaces&&(ot.reportNamespaces=new xc),!ot){Sr("You will need to pass in an i18next instance by using initReactI18next");const Z=(z,I)=>typeof I=="string"?I:I&&typeof I=="object"&&typeof I.defaultValue=="string"?I.defaultValue:Array.isArray(z)?z[z.length-1]:z,U=[Z,{},!1];return U.t=Z,U.i18n={},U.ready=!1,U}ot.options.react&&ot.options.react.wait!==void 0&&Sr("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const nt=kt(kt(kt({},Rt.getDefaults()),ot.options.react),P),{useSuspense:at,keyPrefix:ct}=nt;let pt=tt||ot.options&&ot.options.defaultNS;pt=typeof pt=="string"?[pt]:pt||["translation"],ot.reportNamespaces.addUsedNamespaces&&ot.reportNamespaces.addUsedNamespaces(pt);const ut=(ot.isInitialized||ot.initializedStoreOnce)&&pt.every(Z=>bc(Z,ot,nt));function ft(){return ot.getFixedT(P.lng||null,nt.nsMode==="fallback"?pt:pt[0],ct)}const[B,et]=Ne.useState(ft);let W=pt.join();P.lng&&(W=`${P.lng}${W}`);const R=Cc(W),H=Ne.useRef(!0);Ne.useEffect(()=>{const{bindI18n:Z,bindI18nStore:U}=nt;H.current=!0,!ut&&!at&&(P.lng?Wn(ot,P.lng,pt,()=>{H.current&&et(ft)}):Gn(ot,pt,()=>{H.current&&et(ft)})),ut&&R&&R!==W&&H.current&&et(ft);function z(){H.current&&et(ft)}return Z&&ot&&ot.on(Z,z),U&&ot&&ot.store.on(U,z),()=>{H.current=!1,Z&&ot&&Z.split(" ").forEach(I=>ot.off(I,z)),U&&ot&&U.split(" ").forEach(I=>ot.store.off(I,z))}},[ot,W]);const V=Ne.useRef(!0);Ne.useEffect(()=>{H.current&&!V.current&&et(ft),V.current=!1},[ot,ct]);const $=[B,ot,ut];if($.t=B,$.i18n=ot,$.ready=ut,ut||!ut&&!at)return $;throw new Promise(Z=>{P.lng?Wn(ot,P.lng,pt,()=>Z()):Gn(ot,pt,()=>Z())})}var wc=!1;function Sc(m){if(m.sheet)return m.sheet;for(var P=0;P<document.styleSheets.length;P++)if(document.styleSheets[P].ownerNode===m)return document.styleSheets[P]}function Mc(m){var P=document.createElement("style");return P.setAttribute("data-emotion",m.key),m.nonce!==void 0&&P.setAttribute("nonce",m.nonce),P.appendChild(document.createTextNode("")),P.setAttribute("data-s",""),P}var Ac=function(){function m(F){var K=this;this._insertTag=function(tt){var ot;K.tags.length===0?K.insertionPoint?ot=K.insertionPoint.nextSibling:K.prepend?ot=K.container.firstChild:ot=K.before:ot=K.tags[K.tags.length-1].nextSibling,K.container.insertBefore(tt,ot),K.tags.push(tt)},this.isSpeedy=F.speedy===void 0?!wc:F.speedy,this.tags=[],this.ctr=0,this.nonce=F.nonce,this.key=F.key,this.container=F.container,this.prepend=F.prepend,this.insertionPoint=F.insertionPoint,this.before=null}var P=m.prototype;return P.hydrate=function(K){K.forEach(this._insertTag)},P.insert=function(K){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Mc(this));var tt=this.tags[this.tags.length-1];if(this.isSpeedy){var ot=Sc(tt);try{ot.insertRule(K,ot.cssRules.length)}catch(nt){}}else tt.appendChild(document.createTextNode(K));this.ctr++},P.flush=function(){this.tags.forEach(function(K){var tt;return(tt=K.parentNode)==null?void 0:tt.removeChild(K)}),this.tags=[],this.ctr=0},m}(),Se="-ms-",Do="-moz-",ie="-webkit-",da="comm",qr="rule",Jr="decl",Tc="@import",ua="@keyframes",kc="@layer",Pc=Math.abs,Zo=String.fromCharCode,Lc=Object.assign;function Ec(m,P){return be(m,0)^45?(((P<<2^be(m,0))<<2^be(m,1))<<2^be(m,2))<<2^be(m,3):0}function fa(m){return m.trim()}function Oc(m,P){return(m=P.exec(m))?m[0]:m}function oe(m,P,F){return m.replace(P,F)}function Mr(m,P){return m.indexOf(P)}function be(m,P){return m.charCodeAt(P)|0}function Xi(m,P,F){return m.slice(P,F)}function Ye(m){return m.length}function Qr(m){return m.length}function ho(m,P){return P.push(m),m}function Dc(m,P){return m.map(P).join("")}var Ko=1,Si=1,ga=0,Le=0,fe=0,ki="";function qo(m,P,F,K,tt,ot,nt){return{value:m,root:P,parent:F,type:K,props:tt,children:ot,line:Ko,column:Si,length:nt,return:""}}function Ei(m,P){return Lc(qo("",null,null,"",null,null,0),m,{length:-m.length},P)}function jc(){return fe}function Ic(){return fe=Le>0?be(ki,--Le):0,Si--,fe===10&&(Si=1,Ko--),fe}function je(){return fe=Le<ga?be(ki,Le++):0,Si++,fe===10&&(Si=1,Ko++),fe}function Ze(){return be(ki,Le)}function Ao(){return Le}function to(m,P){return Xi(ki,m,P)}function Hi(m){switch(m){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 ma(m){return Ko=Si=1,ga=Ye(ki=m),Le=0,[]}function ya(m){return ki="",m}function To(m){return fa(to(Le-1,Ar(m===91?m+2:m===40?m+1:m)))}function Nc(m){for(;(fe=Ze())&&fe<33;)je();return Hi(m)>2||Hi(fe)>3?"":" "}function Bc(m,P){for(;--P&&je()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return to(m,Ao()+(P<6&&Ze()==32&&je()==32))}function Ar(m){for(;je();)switch(fe){case m:return Le;case 34:case 39:m!==34&&m!==39&&Ar(fe);break;case 40:m===41&&Ar(m);break;case 92:je();break}return Le}function _c(m,P){for(;je()&&m+fe!==57;)if(m+fe===84&&Ze()===47)break;return"/*"+to(P,Le-1)+"*"+Zo(m===47?m:je())}function Rc(m){for(;!Hi(Ze());)je();return to(m,Le)}function zc(m){return ya(ko("",null,null,null,[""],m=ma(m),0,[0],m))}function ko(m,P,F,K,tt,ot,nt,at,ct){for(var pt=0,ut=0,ft=nt,B=0,et=0,W=0,R=1,H=1,V=1,$=0,Z="",U=tt,z=ot,I=K,E=Z;H;)switch(W=$,$=je()){case 40:if(W!=108&&be(E,ft-1)==58){Mr(E+=oe(To($),"&","&\f"),"&\f")!=-1&&(V=-1);break}case 34:case 39:case 91:E+=To($);break;case 9:case 10:case 13:case 32:E+=Nc(W);break;case 92:E+=Bc(Ao()-1,7);continue;case 47:switch(Ze()){case 42:case 47:ho(Fc(_c(je(),Ao()),P,F),ct);break;default:E+="/"}break;case 123*R:at[pt++]=Ye(E)*V;case 125*R:case 59:case 0:switch($){case 0:case 125:H=0;case 59+ut:V==-1&&(E=oe(E,/\f/g,"")),et>0&&Ye(E)-ft&&ho(et>32?Hn(E+";",K,F,ft-1):Hn(oe(E," ","")+";",K,F,ft-2),ct);break;case 59:E+=";";default:if(ho(I=Xn(E,P,F,pt,ut,tt,at,Z,U=[],z=[],ft),ot),$===123)if(ut===0)ko(E,P,I,I,U,ot,ft,at,z);else switch(B===99&&be(E,3)===110?100:B){case 100:case 108:case 109:case 115:ko(m,I,I,K&&ho(Xn(m,I,I,0,0,tt,at,Z,tt,U=[],ft),z),tt,z,ft,at,K?U:z);break;default:ko(E,I,I,I,[""],z,0,at,z)}}pt=ut=et=0,R=V=1,Z=E="",ft=nt;break;case 58:ft=1+Ye(E),et=W;default:if(R<1){if($==123)--R;else if($==125&&R++==0&&Ic()==125)continue}switch(E+=Zo($),$*R){case 38:V=ut>0?1:(E+="\f",-1);break;case 44:at[pt++]=(Ye(E)-1)*V,V=1;break;case 64:Ze()===45&&(E+=To(je())),B=Ze(),ut=ft=Ye(Z=E+=Rc(Ao())),$++;break;case 45:W===45&&Ye(E)==2&&(R=0)}}return ot}function Xn(m,P,F,K,tt,ot,nt,at,ct,pt,ut){for(var ft=tt-1,B=tt===0?ot:[""],et=Qr(B),W=0,R=0,H=0;W<K;++W)for(var V=0,$=Xi(m,ft+1,ft=Pc(R=nt[W])),Z=m;V<et;++V)(Z=fa(R>0?B[V]+" "+$:oe($,/&\f/g,B[V])))&&(ct[H++]=Z);return qo(m,P,F,tt===0?qr:at,ct,pt,ut)}function Fc(m,P,F){return qo(m,P,F,da,Zo(jc()),Xi(m,2,-2),0)}function Hn(m,P,F,K){return qo(m,P,F,Jr,Xi(m,0,K),Xi(m,K+1,-1),K)}function Ci(m,P){for(var F="",K=Qr(m),tt=0;tt<K;tt++)F+=P(m[tt],tt,m,P)||"";return F}function Gc(m,P,F,K){switch(m.type){case kc:if(m.children.length)break;case Tc:case Jr:return m.return=m.return||m.value;case da:return"";case ua:return m.return=m.value+"{"+Ci(m.children,K)+"}";case qr:m.value=m.props.join(",")}return Ye(F=Ci(m.children,K))?m.return=m.value+"{"+F+"}":""}function Wc(m){var P=Qr(m);return function(F,K,tt,ot){for(var nt="",at=0;at<P;at++)nt+=m[at](F,K,tt,ot)||"";return nt}}function Xc(m){return function(P){P.root||(P=P.return)&&m(P)}}function va(m){var P=Object.create(null);return function(F){return P[F]===void 0&&(P[F]=m(F)),P[F]}}var Hc=function(P,F,K){for(var tt=0,ot=0;tt=ot,ot=Ze(),tt===38&&ot===12&&(F[K]=1),!Hi(ot);)je();return to(P,Le)},Yc=function(P,F){var K=-1,tt=44;do switch(Hi(tt)){case 0:tt===38&&Ze()===12&&(F[K]=1),P[K]+=Hc(Le-1,F,K);break;case 2:P[K]+=To(tt);break;case 4:if(tt===44){P[++K]=Ze()===58?"&\f":"",F[K]=P[K].length;break}default:P[K]+=Zo(tt)}while(tt=je());return P},Uc=function(P,F){return ya(Yc(ma(P),F))},Yn=new WeakMap,Vc=function(P){if(!(P.type!=="rule"||!P.parent||P.length<1)){for(var F=P.value,K=P.parent,tt=P.column===K.column&&P.line===K.line;K.type!=="rule";)if(K=K.parent,!K)return;if(!(P.props.length===1&&F.charCodeAt(0)!==58&&!Yn.get(K))&&!tt){Yn.set(P,!0);for(var ot=[],nt=Uc(F,ot),at=K.props,ct=0,pt=0;ct<nt.length;ct++)for(var ut=0;ut<at.length;ut++,pt++)P.props[pt]=ot[ct]?nt[ct].replace(/&\f/g,at[ut]):at[ut]+" "+nt[ct]}}},$c=function(P){if(P.type==="decl"){var F=P.value;F.charCodeAt(0)===108&&F.charCodeAt(2)===98&&(P.return="",P.value="")}};function ba(m,P){switch(Ec(m,P)){case 5103:return ie+"print-"+m+m;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 ie+m+m;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+m+Do+m+Se+m+m;case 6828:case 4268:return ie+m+Se+m+m;case 6165:return ie+m+Se+"flex-"+m+m;case 5187:return ie+m+oe(m,/(\w+).+(:[^]+)/,ie+"box-$1$2"+Se+"flex-$1$2")+m;case 5443:return ie+m+Se+"flex-item-"+oe(m,/flex-|-self/,"")+m;case 4675:return ie+m+Se+"flex-line-pack"+oe(m,/align-content|flex-|-self/,"")+m;case 5548:return ie+m+Se+oe(m,"shrink","negative")+m;case 5292:return ie+m+Se+oe(m,"basis","preferred-size")+m;case 6060:return ie+"box-"+oe(m,"-grow","")+ie+m+Se+oe(m,"grow","positive")+m;case 4554:return ie+oe(m,/([^-])(transform)/g,"$1"+ie+"$2")+m;case 6187:return oe(oe(oe(m,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),m,"")+m;case 5495:case 3959:return oe(m,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return oe(oe(m,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+Se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+m+m;case 4095:case 3583:case 4068:case 2532:return oe(m,/(.+)-inline(.+)/,ie+"$1$2")+m;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(Ye(m)-1-P>6)switch(be(m,P+1)){case 109:if(be(m,P+4)!==45)break;case 102:return oe(m,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+Do+(be(m,P+3)==108?"$3":"$2-$3"))+m;case 115:return~Mr(m,"stretch")?ba(oe(m,"stretch","fill-available"),P)+m:m}break;case 4949:if(be(m,P+1)!==115)break;case 6444:switch(be(m,Ye(m)-3-(~Mr(m,"!important")&&10))){case 107:return oe(m,":",":"+ie)+m;case 101:return oe(m,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(be(m,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+Se+"$2box$3")+m}break;case 5936:switch(be(m,P+11)){case 114:return ie+m+Se+oe(m,/[svh]\w+-[tblr]{2}/,"tb")+m;case 108:return ie+m+Se+oe(m,/[svh]\w+-[tblr]{2}/,"tb-rl")+m;case 45:return ie+m+Se+oe(m,/[svh]\w+-[tblr]{2}/,"lr")+m}return ie+m+Se+m+m}return m}var Zc=function(P,F,K,tt){if(P.length>-1&&!P.return)switch(P.type){case Jr:P.return=ba(P.value,P.length);break;case ua:return Ci([Ei(P,{value:oe(P.value,"@","@"+ie)})],tt);case qr:if(P.length)return Dc(P.props,function(ot){switch(Oc(ot,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ci([Ei(P,{props:[oe(ot,/:(read-\w+)/,":"+Do+"$1")]})],tt);case"::placeholder":return Ci([Ei(P,{props:[oe(ot,/:(plac\w+)/,":"+ie+"input-$1")]}),Ei(P,{props:[oe(ot,/:(plac\w+)/,":"+Do+"$1")]}),Ei(P,{props:[oe(ot,/:(plac\w+)/,Se+"input-$1")]})],tt)}return""})}},Kc=[Zc],xa=function(P){var F=P.key;if(F==="css"){var K=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(K,function(R){var H=R.getAttribute("data-emotion");H.indexOf(" ")!==-1&&(document.head.appendChild(R),R.setAttribute("data-s",""))})}var tt=P.stylisPlugins||Kc,ot={},nt,at=[];nt=P.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+F+' "]'),function(R){for(var H=R.getAttribute("data-emotion").split(" "),V=1;V<H.length;V++)ot[H[V]]=!0;at.push(R)});var ct,pt=[Vc,$c];{var ut,ft=[Gc,Xc(function(R){ut.insert(R)})],B=Wc(pt.concat(tt,ft)),et=function(H){return Ci(zc(H),B)};ct=function(H,V,$,Z){ut=$,et(H?H+"{"+V.styles+"}":V.styles),Z&&(W.inserted[V.name]=!0)}}var W={key:F,sheet:new Ac({key:F,container:nt,nonce:P.nonce,speedy:P.speedy,prepend:P.prepend,insertionPoint:P.insertionPoint}),nonce:P.nonce,inserted:ot,registered:{},insert:ct};return W.sheet.hydrate(at),W},qc=!0;function Ca(m,P,F){var K="";return F.split(" ").forEach(function(tt){m[tt]!==void 0?P.push(m[tt]+";"):tt&&(K+=tt+" ")}),K}var tn=function(P,F,K){var tt=P.key+"-"+F.name;(K===!1||qc===!1)&&P.registered[tt]===void 0&&(P.registered[tt]=F.styles)},wa=function(P,F,K){tn(P,F,K);var tt=P.key+"-"+F.name;if(P.inserted[F.name]===void 0){var ot=F;do P.insert(F===ot?"."+tt:"",ot,P.sheet,!0),ot=ot.next;while(ot!==void 0)}};function Jc(m){for(var P=0,F,K=0,tt=m.length;tt>=4;++K,tt-=4)F=m.charCodeAt(K)&255|(m.charCodeAt(++K)&255)<<8|(m.charCodeAt(++K)&255)<<16|(m.charCodeAt(++K)&255)<<24,F=(F&65535)*1540483477+((F>>>16)*59797<<16),F^=F>>>24,P=(F&65535)*1540483477+((F>>>16)*59797<<16)^(P&65535)*1540483477+((P>>>16)*59797<<16);switch(tt){case 3:P^=(m.charCodeAt(K+2)&255)<<16;case 2:P^=(m.charCodeAt(K+1)&255)<<8;case 1:P^=m.charCodeAt(K)&255,P=(P&65535)*1540483477+((P>>>16)*59797<<16)}return P^=P>>>13,P=(P&65535)*1540483477+((P>>>16)*59797<<16),((P^P>>>15)>>>0).toString(36)}var Qc={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},tp=!1,ep=/[A-Z]|^ms/g,ip=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sa=function(P){return P.charCodeAt(1)===45},Un=function(P){return P!=null&&typeof P!="boolean"},lr=va(function(m){return Sa(m)?m:m.replace(ep,"-$&").toLowerCase()}),Vn=function(P,F){switch(P){case"animation":case"animationName":if(typeof F=="string")return F.replace(ip,function(K,tt,ot){return Ue={name:tt,styles:ot,next:Ue},tt})}return Qc[P]!==1&&!Sa(P)&&typeof F=="number"&&F!==0?F+"px":F},op="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Yi(m,P,F){if(F==null)return"";var K=F;if(K.__emotion_styles!==void 0)return K;switch(typeof F){case"boolean":return"";case"object":{var tt=F;if(tt.anim===1)return Ue={name:tt.name,styles:tt.styles,next:Ue},tt.name;var ot=F;if(ot.styles!==void 0){var nt=ot.next;if(nt!==void 0)for(;nt!==void 0;)Ue={name:nt.name,styles:nt.styles,next:Ue},nt=nt.next;var at=ot.styles+";";return at}return rp(m,P,F)}case"function":{if(m!==void 0){var ct=Ue,pt=F(m);return Ue=ct,Yi(m,P,pt)}break}}var ut=F;if(P==null)return ut;var ft=P[ut];return ft!==void 0?ft:ut}function rp(m,P,F){var K="";if(Array.isArray(F))for(var tt=0;tt<F.length;tt++)K+=Yi(m,P,F[tt])+";";else for(var ot in F){var nt=F[ot];if(typeof nt!="object"){var at=nt;P!=null&&P[at]!==void 0?K+=ot+"{"+P[at]+"}":Un(at)&&(K+=lr(ot)+":"+Vn(ot,at)+";")}else{if(ot==="NO_COMPONENT_SELECTOR"&&tp)throw new Error(op);if(Array.isArray(nt)&&typeof nt[0]=="string"&&(P==null||P[nt[0]]===void 0))for(var ct=0;ct<nt.length;ct++)Un(nt[ct])&&(K+=lr(ot)+":"+Vn(ot,nt[ct])+";");else{var pt=Yi(m,P,nt);switch(ot){case"animation":case"animationName":{K+=lr(ot)+":"+pt+";";break}default:K+=ot+"{"+pt+"}"}}}}return K}var $n=/label:\s*([^\s;{]+)\s*(;|$)/g,Ue;function Ma(m,P,F){if(m.length===1&&typeof m[0]=="object"&&m[0]!==null&&m[0].styles!==void 0)return m[0];var K=!0,tt="";Ue=void 0;var ot=m[0];if(ot==null||ot.raw===void 0)K=!1,tt+=Yi(F,P,ot);else{var nt=ot;tt+=nt[0]}for(var at=1;at<m.length;at++)if(tt+=Yi(F,P,m[at]),K){var ct=ot;tt+=ct[at]}$n.lastIndex=0;for(var pt="",ut;(ut=$n.exec(tt))!==null;)pt+="-"+ut[1];var ft=Jc(tt)+pt;return{name:ft,styles:tt,next:Ue}}function Aa(m){if(m===null||m===!0||m===!1)return NaN;var P=Number(m);return isNaN(P)?P:P<0?Math.ceil(P):Math.floor(P)}function Ta(m,P){if(P.length<m)throw new TypeError(m+" argument"+(m>1?"s":"")+" required, but only "+P.length+" present")}var ka=6e4,Pa=36e5;function np(m,P){var F;Ta(1,arguments);var K=Aa((F=void 0)!==null&&F!==void 0?F:2);if(K!==2&&K!==1&&K!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof m=="string"||Object.prototype.toString.call(m)==="[object String]"))return new Date(NaN);var tt=hp(m),ot;if(tt.date){var nt=cp(tt.date,K);ot=pp(nt.restDateString,nt.year)}if(!ot||isNaN(ot.getTime()))return new Date(NaN);var at=ot.getTime(),ct=0,pt;if(tt.time&&(ct=dp(tt.time),isNaN(ct)))return new Date(NaN);if(tt.timezone){if(pt=up(tt.timezone),isNaN(pt))return new Date(NaN)}else{var ut=new Date(at+ct),ft=new Date(0);return ft.setFullYear(ut.getUTCFullYear(),ut.getUTCMonth(),ut.getUTCDate()),ft.setHours(ut.getUTCHours(),ut.getUTCMinutes(),ut.getUTCSeconds(),ut.getUTCMilliseconds()),ft}return new Date(at+ct+pt)}var co={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},sp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ap=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function hp(m){var P={},F=m.split(co.dateTimeDelimiter),K;if(F.length>2)return P;if(/:/.test(F[0])?K=F[0]:(P.date=F[0],K=F[1],co.timeZoneDelimiter.test(P.date)&&(P.date=m.split(co.timeZoneDelimiter)[0],K=m.substr(P.date.length,m.length))),K){var tt=co.timezone.exec(K);tt?(P.time=K.replace(tt[1],""),P.timezone=tt[1]):P.time=K}return P}function cp(m,P){var F=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+P)+"})|(\\d{2}|[+-]\\d{"+(2+P)+"})$)"),K=m.match(F);if(!K)return{year:NaN,restDateString:""};var tt=K[1]?parseInt(K[1]):null,ot=K[2]?parseInt(K[2]):null;return{year:ot===null?tt:ot*100,restDateString:m.slice((K[1]||K[2]).length)}}function pp(m,P){if(P===null)return new Date(NaN);var F=m.match(sp);if(!F)return new Date(NaN);var K=!!F[4],tt=Oi(F[1]),ot=Oi(F[2])-1,nt=Oi(F[3]),at=Oi(F[4]),ct=Oi(F[5])-1;if(K)return vp(P,at,ct)?fp(P,at,ct):new Date(NaN);var pt=new Date(0);return!mp(P,ot,nt)||!yp(P,tt)?new Date(NaN):(pt.setUTCFullYear(P,ot,Math.max(tt,nt)),pt)}function Oi(m){return m?parseInt(m):1}function dp(m){var P=m.match(ap);if(!P)return NaN;var F=hr(P[1]),K=hr(P[2]),tt=hr(P[3]);return bp(F,K,tt)?F*Pa+K*ka+tt*1e3:NaN}function hr(m){return m&&parseFloat(m.replace(",","."))||0}function up(m){if(m==="Z")return 0;var P=m.match(lp);if(!P)return 0;var F=P[1]==="+"?-1:1,K=parseInt(P[2]),tt=P[3]&&parseInt(P[3])||0;return xp(K,tt)?F*(K*Pa+tt*ka):NaN}function fp(m,P,F){var K=new Date(0);K.setUTCFullYear(m,0,4);var tt=K.getUTCDay()||7,ot=(P-1)*7+F+1-tt;return K.setUTCDate(K.getUTCDate()+ot),K}var gp=[31,null,31,30,31,30,31,31,30,31,30,31];function La(m){return m%400===0||m%4===0&&m%100!==0}function mp(m,P,F){return P>=0&&P<=11&&F>=1&&F<=(gp[P]||(La(m)?29:28))}function yp(m,P){return P>=1&&P<=(La(m)?366:365)}function vp(m,P,F){return P>=1&&P<=53&&F>=0&&F<=6}function bp(m,P,F){return m===24?P===0&&F===0:F>=0&&F<60&&P>=0&&P<60&&m>=0&&m<25}function xp(m,P){return P>=0&&P<=59}var Cp=/\s/;function wp(m){for(var P=m.length;P--&&Cp.test(m.charAt(P)););return P}var Sp=/^\s+/;function Ea(m){return m&&m.slice(0,wp(m)+1).replace(Sp,"")}var Zn=NaN,Mp=/^[-+]0x[0-9a-f]+$/i,Ap=/^0b[01]+$/i,Tp=/^0o[0-7]+$/i,kp=parseInt;function en(m){if(typeof m=="number")return m;if(Rt.isSymbol(m))return Zn;if(Rt.isObject(m)){var P=typeof m.valueOf=="function"?m.valueOf():m;m=Rt.isObject(P)?P+"":P}if(typeof m!="string")return m===0?m:+m;m=Ea(m);var F=Ap.test(m);return F||Tp.test(m)?kp(m.slice(2),F?2:8):Mp.test(m)?Zn:+m}var Kn=1/0,Pp=17976931348623157e292;function Oa(m){if(!m)return m===0?m:0;if(m=en(m),m===Kn||m===-Kn){var P=m<0?-1:1;return P*Pp}return m===m?m:0}function on(m){const P=/([+-]\d{2}:?\d{2}|Z)$/i.test(m);return np(P?m:m+"Z")}const Lp=2e4,Ep="system",rn="#5B6372",Op="#F4F4F8",Dp="#FA5656",nn="N\\A",jp="N/A";var Ip=function(P){return P()},Np=Je[`useInsertionEffect${Math.random()}`.slice(0,18)]?Je[`useInsertionEffect${Math.random()}`.slice(0,18)]:!1,Da=Np||Ip,Bp=!1,ja=Je.createContext(typeof HTMLElement!="undefined"?xa({key:"css"}):null),_p=ja.Provider,Ia=function(P){return Ne.forwardRef(function(F,K){var tt=Ne.useContext(ja);return P(F,tt,K)})},Na=Je.createContext({}),eo={}.hasOwnProperty,Tr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",sn=function(P,F){var K={};for(var tt in F)eo.call(F,tt)&&(K[tt]=F[tt]);return K[Tr]=P,K},Rp=function(P){var F=P.cache,K=P.serialized,tt=P.isStringTag;return tn(F,K,tt),Da(function(){return wa(F,K,tt)}),null},zp=Ia(function(m,P,F){var K=m.css;typeof K=="string"&&P.registered[K]!==void 0&&(K=P.registered[K]);var tt=m[Tr],ot=[K],nt="";typeof m.className=="string"?nt=Ca(P.registered,ot,m.className):m.className!=null&&(nt=m.className+" ");var at=Ma(ot,void 0,Je.useContext(Na));nt+=P.key+"-"+at.name;var ct={};for(var pt in m)eo.call(m,pt)&&pt!=="css"&&pt!==Tr&&!Bp&&(ct[pt]=m[pt]);return ct.className=nt,F&&(ct.ref=F),Je.createElement(Je.Fragment,null,Je.createElement(Rp,{cache:P,serialized:at,isStringTag:typeof tt=="string"}),Je.createElement(tt,ct))}),an=zp,Ba=Wi.Fragment,se=function(P,F,K){return eo.call(F,"css")?Wi.jsx(an,sn(P,F),K):Wi.jsx(P,F,K)},si=function(P,F,K){return eo.call(F,"css")?Wi.jsxs(an,sn(P,F),K):Wi.jsxs(P,F,K)};function ln(){}function ai(m,P){this.__wrapped__=m,this.__actions__=[],this.__chain__=!!P,this.__index__=0,this.__values__=void 0}ai.prototype=Rt.baseCreate(ln.prototype);ai.prototype.constructor=ai;var kr=Rt.WeakMap&&new Rt.WeakMap;function _a(){}var hn=kr?function(m){return kr.get(m)}:_a,qn={},Fp=Object.prototype,Gp=Fp.hasOwnProperty;function Po(m){for(var P=m.name+"",F=qn[P],K=Gp.call(qn,P)?F.length:0;K--;){var tt=F[K],ot=tt.func;if(ot==null||ot==m)return tt.name}return P}var Wp=4294967295;function Mi(m){this.__wrapped__=m,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Wp,this.__views__=[]}Mi.prototype=Rt.baseCreate(ln.prototype);Mi.prototype.constructor=Mi;function Xp(m){if(m instanceof Mi)return m.clone();var P=new ai(m.__wrapped__,m.__chain__);return P.__actions__=Rt.copyArray(m.__actions__),P.__index__=m.__index__,P.__values__=m.__values__,P}var Hp=Object.prototype,Yp=Hp.hasOwnProperty;function jo(m){if(Rt.isObjectLike(m)&&!Rt.isArray(m)&&!(m instanceof Mi)){if(m instanceof ai)return m;if(Yp.call(m,"__wrapped__"))return Xp(m)}return new ai(m)}jo.prototype=ln.prototype;jo.prototype.constructor=jo;function Pr(m){var P=Po(m),F=jo[P];if(typeof F!="function"||!(P in Mi.prototype))return!1;if(m===F)return!0;var K=hn(F);return!!K&&m===K[0]}var Up="Expected a function",Vp=8,$p=32,Zp=128,Kp=256;function qp(m){return Rt.flatRest(function(P){for(var F=P.length,K=F,tt=ai.prototype.thru;K--;){var ot=P[K];if(typeof ot!="function")throw new TypeError(Up);if(tt&&!nt&&Po(ot)=="wrapper")var nt=new ai([],!0)}for(K=nt?K:F;++K<F;){ot=P[K];var at=Po(ot),ct=at=="wrapper"?hn(ot):void 0;ct&&Pr(ct[0])&&ct[1]==(Zp|Vp|$p|Kp)&&!ct[4].length&&ct[9]==1?nt=nt[Po(ct[0])].apply(nt,ct[3]):nt=ot.length==1&&Pr(ot)?nt[at]():nt.thru(ot)}return function(){var pt=arguments,ut=pt[0];if(nt&&pt.length==1&&Rt.isArray(ut))return nt.plant(ut).value();for(var ft=0,B=F?P[ft].apply(this,pt):ut;++ft<F;)B=P[ft].call(this,B);return B}})}var Jo=qp(),Jn;(function(m){m.event="event",m.props="prop"})(Jn||(Jn={}));function Jp(m){switch(m){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 Qp(m,P,F){var K=Jp(F),tt=m.search(/[1-9]/);return tt=tt===-1?m.length:tt,m.substring(0,tt)+m.substring(tt,m.length).replace(K,"$1"+P)}function td(m,P){P===void 0&&(P=!0);var F=m[0]==="-",K=F&&P;m=m.replace("-","");var tt=m.split("."),ot=tt[0],nt=tt[1]||"";return{beforeDecimal:ot,afterDecimal:nt,hasNegation:F,addNegation:K}}function ed(m,P,F){for(var K="",tt=F?"0":"",ot=0;ot<=P-1;ot++)K+=m[ot]||tt;return K}function id(m,P){var F=P.decimalScale,K=P.fixedDecimalScale,tt=P.prefix;tt===void 0&&(tt="");var ot=P.suffix;ot===void 0&&(ot="");var nt=P.allowNegative,at=P.thousandsGroupStyle;if(at===void 0&&(at="thousand"),m===""||m==="-")return m;var ct=od(P),pt=ct.thousandSeparator,ut=ct.decimalSeparator,ft=F!==0&&m.indexOf(".")!==-1||F&&K,B=td(m,nt),et=B.beforeDecimal,W=B.afterDecimal,R=B.addNegation;return F!==void 0&&(W=ed(W,F,!!K)),pt&&(et=Qp(et,pt,at)),tt&&(et=tt+et),ot&&(W=W+ot),R&&(et="-"+et),m=et+(ft&&ut||"")+W,m}function od(m){var P=m.decimalSeparator;P===void 0&&(P=".");var F=m.thousandSeparator,K=m.allowedDecimalSeparators;return F===!0&&(F=","),K||(K=[P,"."]),{decimalSeparator:P,thousandSeparator:F,allowedDecimalSeparators:K}}function Ra(m){var P=Oa(m),F=P%1;return P===P?F?P-F:P:0}var rd=Rt.root.isFinite,nd=Math.min;function sd(m){var P=Math[m];return function(F,K){if(F=en(F),K=K==null?0:nd(Ra(K),292),K&&rd(F)){var tt=(Rt.toString(F)+"e").split("e"),ot=P(tt[0]+"e"+(+tt[1]+K));return tt=(Rt.toString(ot)+"e").split("e"),+(tt[0]+"e"+(+tt[1]-K))}return P(F)}}var ad=sd("round");const Lr=1e3,Er=Lr*1e3,Or=Er*1e3,Qn=Or*1e3,za=1000.1.toLocaleString().replace(/\d/g,""),ld=za[0],hd=za[1],cd={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},he=m=>kt(kt({},cd),m||{}),pd=(m,P)=>isNaN(P)?"":`<span>${mi(m,P)}</span>`,dd=(m,P)=>Math.sign(m)*ad(Math.abs(m),P),mi=(m,P)=>{const{t:F}=Rt.i18nextInstance,K=m.decimalScale!==0&&m.decimalScale!=="auto",tt=m.decimalScale==="auto"?2:m.decimalScale;let ot=!0;m.name==="Numbers"&&!m.thousandSeparator&&(ot=void 0);let nt,at,ct=P;return m.name==="Percent"&&(at="%",ct=P*100),(m.name==="Numbers"||m.name==="Currency")&&(m.trillion&&Math.abs(P)/Qn>=1?(ct=P/Qn,at=F("formatting.number.abbreviations.trillion")):m.billion&&Math.abs(P)/Or>=1?(ct=P/Or,at=F("formatting.number.abbreviations.billion")):m.million&&Math.abs(P)/Er>=1?(ct=P/Er,at=F("formatting.number.abbreviations.million")):m.kilo&&Math.abs(P)/Lr>=1&&(ct=P/Lr,at=F("formatting.number.abbreviations.thousand"))),m.name==="Currency"&&(m.prefix?nt=m.symbol:at?at=`${at}${m.symbol}`:at=m.symbol),id(`${dd(ct,tt)}`,{displayType:"text",thousandSeparator:ot?ld:void 0,fixedDecimalScale:K,decimalScale:tt,decimalSeparator:hd,prefix:nt,suffix:at})},Ce=(m,P)=>{let F=pd(m,P);return F=F.replace("<span>",""),F=F.replace("</span>",""),F};function ud(m){var F;const P=((F=m.conditions)!=null?F:[]).map(K=>({match:fd(K),color:K.color}));return K=>{const tt=P.find(ot=>ot.match(K));return tt?tt.color:m.defaultColor}}function fd(m){const P=Number(m.expression);switch(m.operator){case"<":return F=>F<P;case">":return F=>F>P;case"≤":case"<=":return F=>F<=P;case"≥":case">=":return F=>F>=P;case"=":return F=>F==P;case"≠":case"!=":return F=>F!=P;default:return()=>!0}}function ge(m,P){let F=m.length;Array.isArray(m[0])||(m=[m]),Array.isArray(P[0])||(P=P.map(nt=>[nt]));let K=P[0].length,tt=P[0].map((nt,at)=>P.map(ct=>ct[at])),ot=m.map(nt=>tt.map(at=>{let ct=0;if(!Array.isArray(nt)){for(let pt of at)ct+=nt*pt;return ct}for(let pt=0;pt<nt.length;pt++)ct+=nt[pt]*(at[pt]||0);return ct}));return F===1&&(ot=ot[0]),K===1?ot.map(nt=>nt[0]):ot}function io(m){return ni(m)==="string"}function ni(m){return(Object.prototype.toString.call(m).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Io(m,P){m=+m,P=+P;let F=(Math.floor(m)+"").length;if(P>F)return+m.toFixed(P-F);{let K=Ft(10,F-P);return Math.round(m/K)*K}}function Fa(m){if(!m)return;m=m.trim();const P=/^([a-z]+)\((.+?)\)$/i,F=/^-?[\d.]+$/;let K=m.match(P);if(K){let tt=[];return K[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(ot,nt)=>{/%$/.test(nt)?(nt=new Number(nt.slice(0,-1)/100),nt.type="<percentage>"):/deg$/.test(nt)?(nt=new Number(+nt.slice(0,-3)),nt.type="<angle>",nt.unit="deg"):F.test(nt)&&(nt=new Number(nt),nt.type="<number>"),ot.startsWith("/")&&(nt=nt instanceof Number?nt:new Number(nt),nt.alpha=!0),tt.push(nt)}),{name:K[1].toLowerCase(),rawName:K[1],rawArgs:K[2],args:tt}}}function Ga(m){return m[m.length-1]}function No(m,P,F){return isNaN(m)?P:isNaN(P)?m:m+(P-m)*F}function Wa(m,P,F){return(F-m)/(P-m)}function cn(m,P,F){return No(P[0],P[1],Wa(m[0],m[1],F))}function Xa(m){return m.map(P=>P.split("|").map(F=>{F=F.trim();let K=F.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(K){let tt=new String(K[1]);return tt.range=[+K[2],+K[3]],tt}return F}))}var gd=Object.freeze({__proto__:null,interpolate:No,interpolateInv:Wa,isString:io,last:Ga,mapRange:cn,multiplyMatrices:ge,parseCoordGrammar:Xa,parseFunction:Fa,toPrecision:Io,type:ni});class md{add(P,F,K){if(typeof arguments[0]!="string"){for(var P in arguments[0])this.add(P,arguments[0][P],arguments[1]);return}(Array.isArray(P)?P:[P]).forEach(function(tt){this[tt]=this[tt]||[],F&&this[tt][K?"unshift":"push"](F)},this)}run(P,F){this[P]=this[P]||[],this[P].forEach(function(K){K.call(F&&F.context?F.context:F,F)})}}const li=new md;var Ke={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const We={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function Dr(m){return Array.isArray(m)?m:We[m]}function Bo(m,P,F,K={}){if(m=Dr(m),P=Dr(P),!m||!P)throw new TypeError(`Missing white point to convert ${m?"":"from"}${!m&&!P?"/":""}${P?"":"to"}`);if(m===P)return F;let tt={W1:m,W2:P,XYZ:F,options:K};if(li.run("chromatic-adaptation-start",tt),tt.M||(tt.W1===We.D65&&tt.W2===We.D50?tt.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:tt.W1===We.D50&&tt.W2===We.D65&&(tt.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),li.run("chromatic-adaptation-end",tt),tt.M)return ge(tt.M,tt.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const yd=75e-6,Oe=class Oe{constructor(P){var tt,ot,nt,at,ct,pt,ut;this.id=P.id,this.name=P.name,this.base=P.base?Oe.get(P.base):null,this.aliases=P.aliases,this.base&&(this.fromBase=P.fromBase,this.toBase=P.toBase);let F=(tt=P.coords)!=null?tt:this.base.coords;for(let ft in F)"name"in F[ft]||(F[ft].name=ft);this.coords=F;let K=(nt=(ot=P.white)!=null?ot:this.base.white)!=null?nt:"D65";this.white=Dr(K),this.formats=(at=P.formats)!=null?at:{};for(let ft in this.formats){let B=this.formats[ft];B.type||(B.type="function"),B.name||(B.name=ft)}P.cssId&&!((ct=this.formats.functions)!=null&&ct.color)?(this.formats.color={id:P.cssId},Object.defineProperty(this,"cssId",{value:P.cssId})):(pt=this.formats)!=null&&pt.color&&!((ut=this.formats)!=null&&ut.color.id)&&(this.formats.color.id=this.id),this.referred=P.referred,Object.defineProperty(this,"path",{value:vd(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),li.run("colorspace-init-end",this)}inGamut(P,{epsilon:F=yd}={}){if(this.isPolar)return P=this.toBase(P),this.base.inGamut(P,{epsilon:F});let K=Object.values(this.coords);return P.every((tt,ot)=>{let nt=K[ot];if(nt.type!=="angle"&&nt.range){if(Number.isNaN(tt))return!0;let[at,ct]=nt.range;return(at===void 0||tt>=at-F)&&(ct===void 0||tt<=ct+F)}return!0})}get cssId(){var P,F;return((F=(P=this.formats.functions)==null?void 0:P.color)==null?void 0:F.id)||this.id}get isPolar(){for(let P in this.coords)if(this.coords[P].type==="angle")return!0;return!1}getFormat(P){if(typeof P=="object")return P=ts(P,this),P;let F;return P==="default"?F=Object.values(this.formats)[0]:F=this.formats[P],F?(F=ts(F,this),F):null}equals(P){return P?this===P||this.id===P.id:!1}to(P,F){if(arguments.length===1&&([P,F]=[P.space,P.coords]),P=Oe.get(P),this.equals(P))return F;F=F.map(at=>Number.isNaN(at)?0:at);let K=this.path,tt=P.path,ot,nt;for(let at=0;at<K.length&&K[at].equals(tt[at]);at++)ot=K[at],nt=at;if(!ot)throw new Error(`Cannot convert between color spaces ${this} and ${P}: no connection space was found`);for(let at=K.length-1;at>nt;at--)F=K[at].toBase(F);for(let at=nt+1;at<tt.length;at++)F=tt[at].fromBase(F);return F}from(P,F){return arguments.length===1&&([P,F]=[P.space,P.coords]),P=Oe.get(P),P.to(this,F)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var F;let P=[];for(let K in this.coords){let tt=this.coords[K],ot=tt.range||tt.refRange;P.push((F=ot==null?void 0:ot.min)!=null?F:0)}return P}static get all(){return[...new Set(Object.values(Oe.registry))]}static register(P,F){if(arguments.length===1&&(F=arguments[0],P=F.id),F=this.get(F),this.registry[P]&&this.registry[P]!==F)throw new Error(`Duplicate color space registration: '${P}'`);if(this.registry[P]=F,arguments.length===1&&F.aliases)for(let K of F.aliases)this.register(K,F);return F}static get(P,...F){if(!P||P instanceof Oe)return P;if(ni(P)==="string"){let tt=Oe.registry[P.toLowerCase()];if(!tt)throw new TypeError(`No color space found with id = "${P}"`);return tt}if(F.length)return Oe.get(...F);throw new TypeError(`${P} is not a valid color space`)}static resolveCoord(P,F){var ct;let K=ni(P),tt,ot;if(K==="string"?P.includes(".")?[tt,ot]=P.split("."):[tt,ot]=[,P]:Array.isArray(P)?[tt,ot]=P:(tt=P.space,ot=P.coordId),tt=Oe.get(tt),tt||(tt=F),!tt)throw new TypeError(`Cannot resolve coordinate reference ${P}: No color space specified and relative references are not allowed here`);if(K=ni(ot),K==="number"||K==="string"&&ot>=0){let pt=Object.entries(tt.coords)[ot];if(pt)return kt({space:tt,id:pt[0],index:ot},pt[1])}tt=Oe.get(tt);let nt=ot.toLowerCase(),at=0;for(let pt in tt.coords){let ut=tt.coords[pt];if(pt.toLowerCase()===nt||((ct=ut.name)==null?void 0:ct.toLowerCase())===nt)return kt({space:tt,id:pt,index:at},ut);at++}throw new TypeError(`No "${ot}" coordinate found in ${tt.name}. Its coordinates are: ${Object.keys(tt.coords).join(", ")}`)}};ar(Oe,"registry",{}),ar(Oe,"DEFAULT_FORMAT",{type:"functions",name:"color"});let Vt=Oe;function vd(m){let P=[m];for(let F=m;F=F.base;)P.push(F);return P}function ts(m,{coords:P}={}){if(m.coords&&!m.coordGrammar){m.type||(m.type="function"),m.name||(m.name="color"),m.coordGrammar=Xa(m.coords);let F=Object.entries(P).map(([K,tt],ot)=>{let nt=m.coordGrammar[ot][0],at=tt.range||tt.refRange,ct=nt.range,pt="";return nt=="<percentage>"?(ct=[0,100],pt="%"):nt=="<angle>"&&(pt="deg"),{fromRange:at,toRange:ct,suffix:pt}});m.serializeCoords=(K,tt)=>K.map((ot,nt)=>{let{fromRange:at,toRange:ct,suffix:pt}=F[nt];return at&&ct&&(ot=cn(at,ct,ot)),ot=Io(ot,tt),pt&&(ot+=pt),ot})}return m}var Re=new Vt({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 Ee extends Vt{constructor(P){var F,K,tt;P.coords||(P.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),P.base||(P.base=Re),P.toXYZ_M&&P.fromXYZ_M&&((F=P.toBase)!=null||(P.toBase=ot=>{let nt=ge(P.toXYZ_M,ot);return this.white!==this.base.white&&(nt=Bo(this.white,this.base.white,nt)),nt}),(K=P.fromBase)!=null||(P.fromBase=ot=>(ot=Bo(this.base.white,this.white,ot),ge(P.fromXYZ_M,ot)))),(tt=P.referred)!=null||(P.referred="display"),super(P)}}function Ha(m,{meta:P}={}){var K,tt,ot,nt,at,ct;let F={str:(K=String(m))==null?void 0:K.trim()};if(li.run("parse-start",F),F.color)return F.color;if(F.parsed=Fa(F.str),F.parsed){let pt=F.parsed.name;if(pt==="color"){let ut=F.parsed.args.shift(),ft=F.parsed.rawArgs.indexOf("/")>0?F.parsed.args.pop():1;for(let et of Vt.all){let W=et.getFormat("color");if(W&&(ut===W.id||(tt=W.ids)!=null&&tt.includes(ut))){const R=Object.keys(et.coords).map((H,V)=>F.parsed.args[V]||0);return P&&(P.formatId="color"),{spaceId:et.id,coords:R,alpha:ft}}}let B="";if(ut in Vt.registry){let et=(at=(nt=(ot=Vt.registry[ut].formats)==null?void 0:ot.functions)==null?void 0:nt.color)==null?void 0:at.id;et&&(B=`Did you mean color(${et})?`)}throw new TypeError(`Cannot parse color(${ut}). `+(B||"Missing a plugin?"))}else for(let ut of Vt.all){let ft=ut.getFormat(pt);if(ft&&ft.type==="function"){let B=1;(ft.lastAlpha||Ga(F.parsed.args).alpha)&&(B=F.parsed.args.pop());let et=F.parsed.args,W;return ft.coordGrammar&&(W=Object.entries(ut.coords).map(([R,H],V)=>{var E;let $=ft.coordGrammar[V],Z=(E=et[V])==null?void 0:E.type,U=$.find(M=>M==Z);if(!U){let M=H.name||R;throw new TypeError(`${Z} not allowed for ${M} in ${pt}()`)}let z=U.range;Z==="<percentage>"&&(z||(z=[0,1]));let I=H.range||H.refRange;return z&&I&&(et[V]=cn(z,I,et[V])),U})),P&&Object.assign(P,{formatId:ft.name,types:W}),{spaceId:ut.id,coords:et,alpha:B}}}}else for(let pt of Vt.all)for(let ut in pt.formats){let ft=pt.formats[ut];if(ft.type!=="custom"||ft.test&&!ft.test(F.str))continue;let B=ft.parse(F.str);if(B)return(ct=B.alpha)!=null||(B.alpha=1),P&&(P.formatId=ut),B}throw new TypeError(`Could not parse ${m} as a color. Missing a plugin?`)}function re(m){if(!m)throw new TypeError("Empty color reference");io(m)&&(m=Ha(m));let P=m.space||m.spaceId;return P instanceof Vt||(m.space=Vt.get(P)),m.alpha===void 0&&(m.alpha=1),m}function oo(m,P){return P=Vt.get(P),P.from(m)}function ze(m,P){let{space:F,index:K}=Vt.resolveCoord(P,m.space);return oo(m,F)[K]}function Ya(m,P,F){return P=Vt.get(P),m.coords=P.to(m.space,F),m}function hi(m,P,F){if(m=re(m),arguments.length===2&&ni(arguments[1])==="object"){let K=arguments[1];for(let tt in K)hi(m,tt,K[tt])}else{typeof F=="function"&&(F=F(ze(m,P)));let{space:K,index:tt}=Vt.resolveCoord(P,m.space),ot=oo(m,K);ot[tt]=F,Ya(m,K,ot)}return m}var pn=new Vt({id:"xyz-d50",name:"XYZ D50",white:"D50",base:Re,fromBase:m=>Bo(Re.white,"D50",m),toBase:m=>Bo("D50",Re.white,m),formats:{color:{}}});const bd=216/24389,es=24/116,po=24389/27;let cr=We.D50;var De=new Vt({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:cr,base:pn,fromBase(m){let F=m.map((K,tt)=>K/cr[tt]).map(K=>K>bd?Math.cbrt(K):(po*K+16)/116);return[116*F[1]-16,500*(F[0]-F[1]),200*(F[1]-F[2])]},toBase(m){let P=[];return P[1]=(m[0]+16)/116,P[0]=m[1]/500+P[1],P[2]=P[1]-m[2]/200,[P[0]>es?Math.pow(P[0],3):(116*P[0]-16)/po,m[0]>8?Math.pow((m[0]+16)/116,3):m[0]/po,P[2]>es?Math.pow(P[2],3):(116*P[2]-16)/po].map((K,tt)=>K*cr[tt])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Qo(m){return(m%360+360)%360}function xd(m,P){if(m==="raw")return P;let[F,K]=P.map(Qo),tt=K-F;return m==="increasing"?tt<0&&(K+=360):m==="decreasing"?tt>0&&(F+=360):m==="longer"?-180<tt&&tt<180&&(tt>0?F+=360:K+=360):m==="shorter"&&(tt>180?F+=360:tt<-180&&(K+=360)),[F,K]}var Ui=new Vt({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:De,fromBase(m){let[P,F,K]=m,tt;const ot=.02;return Math.abs(F)<ot&&Math.abs(K)<ot?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[P,Math.sqrt(Ft(F,2)+Ft(K,2)),Qo(tt)]},toBase(m){let[P,F,K]=m;return F<0&&(F=0),isNaN(K)&&(K=0),[P,F*Math.cos(K*Math.PI/180),F*Math.sin(K*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const is=Ft(25,7),_o=Math.PI,os=180/_o,bi=_o/180;function jr(m,P,{kL:F=1,kC:K=1,kH:tt=1}={}){let[ot,nt,at]=De.from(m),ct=Ui.from(De,[ot,nt,at])[1],[pt,ut,ft]=De.from(P),B=Ui.from(De,[pt,ut,ft])[1];ct<0&&(ct=0),B<0&&(B=0);let et=(ct+B)/2,W=Ft(et,7),R=.5*(1-Math.sqrt(W/(W+is))),H=(1+R)*nt,V=(1+R)*ut,$=Math.sqrt(Ft(H,2)+Ft(at,2)),Z=Math.sqrt(Ft(V,2)+Ft(ft,2)),U=H===0&&at===0?0:Math.atan2(at,H),z=V===0&&ft===0?0:Math.atan2(ft,V);U<0&&(U+=2*_o),z<0&&(z+=2*_o),U*=os,z*=os;let I=pt-ot,E=Z-$,M=z-U,k=U+z,y=Math.abs(M),h;$*Z===0?h=0:y<=180?h=M:M>180?h=M-360:M<-180?h=M+360:console.log("the unthinkable has happened");let u=2*Math.sqrt(Z*$)*Math.sin(h*bi/2),g=(ot+pt)/2,d=($+Z)/2,v=Math.pow(d,7),w;$*Z===0?w=k:y<=180?w=k/2:k<360?w=(k+360)/2:w=(k-360)/2;let S=Ft(g-50,2),C=1+.015*S/Math.sqrt(20+S),c=1+.045*d,f=1;f-=.17*Math.cos((w-30)*bi),f+=.24*Math.cos(2*w*bi),f+=.32*Math.cos((3*w+6)*bi),f-=.2*Math.cos((4*w-63)*bi);let r=1+.015*d*f,a=30*Math.exp(-1*Ft((w-275)/25,2)),t=2*Math.sqrt(v/(v+is)),i=-1*Math.sin(2*a*bi)*t,o=Ft(I/(F*C),2);return o+=Ft(E/(K*c),2),o+=Ft(u/(tt*r),2),o+=i*(E/(K*c))*(u/(tt*r)),Math.sqrt(o)}const Cd=75e-6;function Gi(m,P=m.space,{epsilon:F=Cd}={}){m=re(m),P=Vt.get(P);let K=m.coords;return P!==m.space&&(K=P.from(m)),P.inGamut(K,{epsilon:F})}function Vi(m){return{space:m.space,coords:m.coords.slice(),alpha:m.alpha}}function ci(m,{method:P=Ke.gamut_mapping,space:F=m.space}={}){if(io(arguments[1])&&(F=arguments[1]),F=Vt.get(F),Gi(m,F,{epsilon:0}))return re(m);let K=_e(m,F);if(P!=="clip"&&!Gi(m,F)){let tt=ci(Vi(K),{method:"clip",space:F});if(jr(m,tt)>2){let ot=Vt.resolveCoord(P),nt=ot.space,at=ot.id,ct=_e(K,nt),ut=(ot.range||ot.refRange)[0],ft=.01,B=ut,et=ze(ct,at);for(;et-B>ft;){let W=Vi(ct);W=ci(W,{space:F,method:"clip"}),jr(ct,W)-2<ft?B=ze(ct,at):et=ze(ct,at),hi(ct,at,(B+et)/2)}K=_e(ct,F)}else K=tt}if(P==="clip"||!Gi(K,F,{epsilon:0})){let tt=Object.values(F.coords).map(ot=>ot.range||[]);K.coords=K.coords.map((ot,nt)=>{let[at,ct]=tt[nt];return at!==void 0&&(ot=Math.max(at,ot)),ct!==void 0&&(ot=Math.min(ot,ct)),ot})}return F!==m.space&&(K=_e(K,m.space)),m.coords=K.coords,m}ci.returns="color";function _e(m,P,{inGamut:F}={}){m=re(m),P=Vt.get(P);let K=P.from(m),tt={space:P,coords:K,alpha:m.alpha};return F&&(tt=ci(tt)),tt}_e.returns="color";function Ro(m,ot={}){var nt=ot,{precision:P=Ke.precision,format:F="default",inGamut:K=!0}=nt,tt=Pe(nt,["precision","format","inGamut"]);var ut,ft,B;let at;m=re(m);let ct=F;F=(ft=(ut=m.space.getFormat(F))!=null?ut:m.space.getFormat("default"))!=null?ft:Vt.DEFAULT_FORMAT,K||(K=F.toGamut);let pt=m.coords;if(pt=pt.map(et=>et||0),K&&!Gi(m)&&(pt=ci(Vi(m),K===!0?void 0:K).coords),F.type==="custom")if(tt.precision=P,F.serialize)at=F.serialize(pt,m.alpha,tt);else throw new TypeError(`format ${ct} can only be used to parse colors, not for serialization`);else{let et=F.name||"color";F.serializeCoords?pt=F.serializeCoords(pt,P):P!==null&&(pt=pt.map(V=>Io(V,P)));let W=[...pt];if(et==="color"){let V=F.id||((B=F.ids)==null?void 0:B[0])||m.space.id;W.unshift(V)}let R=m.alpha;P!==null&&(R=Io(R,P));let H=m.alpha<1&&!F.noAlpha?`${F.commas?",":" /"} ${R}`:"";at=`${et}(${W.join(F.commas?", ":" ")}${H})`}return at}const wd=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Sd=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var tr=new Ee({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:wd,fromXYZ_M:Sd,formats:{color:{}}});const uo=1.09929682680944,rs=.018053968510807;var Ua=new Ee({id:"rec2020",name:"REC.2020",base:tr,toBase(m){return m.map(function(P){return P<rs*4.5?P/4.5:Math.pow((P+uo-1)/uo,1/.45)})},fromBase(m){return m.map(function(P){return P>=rs?uo*Math.pow(P,.45)-(uo-1):4.5*P})},formats:{color:{}}});const Md=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],Ad=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var Va=new Ee({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:Md,fromXYZ_M:Ad});const Td=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],kd=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var $a=new Ee({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Td,fromXYZ_M:kd,formats:{color:{}}}),ns={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 ss=Array(3).fill("<percentage> | <number>[0, 255]"),as=Array(3).fill("<number>[0, 255]");var $i=new Ee({id:"srgb",name:"sRGB",base:$a,fromBase:m=>m.map(P=>{let F=P<0?-1:1,K=P*F;return K>.0031308?F*(1.055*Ft(K,1/2.4)-.055):12.92*P}),toBase:m=>m.map(P=>{let F=P<0?-1:1,K=P*F;return K<.04045?P/12.92:F*Ft((K+.055)/1.055,2.4)}),formats:{rgb:{coords:ss},rgb_number:{name:"rgb",commas:!0,coords:as,noAlpha:!0},color:{},rgba:{coords:ss,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:as},hex:{type:"custom",toGamut:!0,test:m=>/^#([a-f0-9]{3,4}){1,2}$/i.test(m),parse(m){m.length<=5&&(m=m.replace(/[a-f0-9]/gi,"$&$&"));let P=[];return m.replace(/[a-f0-9]{2}/gi,F=>{P.push(parseInt(F,16)/255)}),{spaceId:"srgb",coords:P.slice(0,3),alpha:P.slice(3)[0]}},serialize:(m,P,{collapse:F=!0}={})=>{P<1&&m.push(P),m=m.map(ot=>Math.round(ot*255));let K=F&&m.every(ot=>ot%17===0);return"#"+m.map(ot=>K?(ot/17).toString(16):ot.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:m=>/^[a-z]+$/i.test(m),parse(m){m=m.toLowerCase();let P={spaceId:"srgb",coords:null,alpha:1};if(m==="transparent"?(P.coords=ns.black,P.alpha=0):P.coords=ns[m],P.coords)return P}}}}),Za=new Ee({id:"p3",name:"P3",base:Va,fromBase:$i.fromBase,toBase:$i.toBase,formats:{color:{id:"display-p3"}}});Ke.display_space=$i;if(typeof CSS!="undefined"&&CSS.supports)for(let m of[De,Ua,Za]){let P=m.getMinCoords(),K=Ro({space:m,coords:P,alpha:1});if(CSS.supports("color",K)){Ke.display_space=m;break}}function Pd(m,K={}){var tt=K,{space:P=Ke.display_space}=tt,F=Pe(tt,["space"]);let ot=Ro(m,F);if(typeof CSS=="undefined"||CSS.supports("color",ot)||!Ke.display_space)ot=new String(ot),ot.color=m;else{let nt=_e(m,P);ot=new String(Ro(nt,F)),ot.color=nt}return ot}function Ka(m,P,F="lab"){F=Vt.get(F);let K=F.from(m),tt=F.from(P);return Math.sqrt(K.reduce((ot,nt,at)=>{let ct=tt[at];return isNaN(nt)||isNaN(ct)?ot:ot+Ft(ct-nt,2)},0))}function Ld(m,P){return m=re(m),P=re(P),m.space===P.space&&m.alpha===P.alpha&&m.coords.every((F,K)=>F===P.coords[K])}function pi(m){return ze(m,[Re,"y"])}function qa(m,P){hi(m,[Re,"y"],P)}function Ed(m){Object.defineProperty(m.prototype,"luminance",{get(){return pi(this)},set(P){qa(this,P)}})}var Od=Object.freeze({__proto__:null,getLuminance:pi,register:Ed,setLuminance:qa});function Dd(m,P){m=re(m),P=re(P);let F=Math.max(pi(m),0),K=Math.max(pi(P),0);return K>F&&([F,K]=[K,F]),(F+.05)/(K+.05)}const jd=.56,Id=.57,Nd=.62,Bd=.65,ls=.022,_d=1.414,Rd=.1,zd=5e-4,Fd=1.14,hs=.027,Gd=1.14;function cs(m){return m>=ls?m:m+Ft(ls-m,_d)}function xi(m){let P=m<0?-1:1,F=Math.abs(m);return P*Math.pow(F,2.4)}function Wd(m,P){P=re(P),m=re(m);let F,K,tt,ot,nt,at;P=_e(P,"srgb"),[ot,nt,at]=P.coords;let ct=xi(ot)*.2126729+xi(nt)*.7151522+xi(at)*.072175;m=_e(m,"srgb"),[ot,nt,at]=m.coords;let pt=xi(ot)*.2126729+xi(nt)*.7151522+xi(at)*.072175,ut=cs(ct),ft=cs(pt),B=ft>ut;return Math.abs(ft-ut)<zd?K=0:B?(F=Ft(ft,jd)-Ft(ut,Id),K=F*Fd):(F=Ft(ft,Bd)-Ft(ut,Nd),K=F*Gd),Math.abs(K)<Rd?tt=0:K>0?tt=K-hs:tt=K+hs,tt*100}function Xd(m,P){m=re(m),P=re(P);let F=Math.max(pi(m),0),K=Math.max(pi(P),0);K>F&&([F,K]=[K,F]);let tt=F+K;return tt===0?0:(F-K)/tt}const Hd=5e4;function Yd(m,P){m=re(m),P=re(P);let F=Math.max(pi(m),0),K=Math.max(pi(P),0);return K>F&&([F,K]=[K,F]),K===0?Hd:(F-K)/K}function Ud(m,P){m=re(m),P=re(P);let F=ze(m,[De,"l"]),K=ze(P,[De,"l"]);return Math.abs(F-K)}const Vd=216/24389,ps=24/116,fo=24389/27;let pr=We.D65;var Ir=new Vt({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:pr,base:Re,fromBase(m){let F=m.map((K,tt)=>K/pr[tt]).map(K=>K>Vd?Math.cbrt(K):(fo*K+16)/116);return[116*F[1]-16,500*(F[0]-F[1]),200*(F[1]-F[2])]},toBase(m){let P=[];return P[1]=(m[0]+16)/116,P[0]=m[1]/500+P[1],P[2]=P[1]-m[2]/200,[P[0]>ps?Math.pow(P[0],3):(116*P[0]-16)/fo,m[0]>8?Math.pow((m[0]+16)/116,3):m[0]/fo,P[2]>ps?Math.pow(P[2],3):(116*P[2]-16)/fo].map((K,tt)=>K*pr[tt])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const dr=Math.pow(5,.5)*.5+.5;function $d(m,P){m=re(m),P=re(P);let F=ze(m,[Ir,"l"]),K=ze(P,[Ir,"l"]),tt=Math.abs(Math.pow(F,dr)-Math.pow(K,dr)),ot=Math.pow(tt,1/dr)*Math.SQRT2-40;return ot<7.5?0:ot}var Lo=Object.freeze({__proto__:null,contrastAPCA:Wd,contrastDeltaPhi:$d,contrastLstar:Ud,contrastMichelson:Xd,contrastWCAG21:Dd,contrastWeber:Yd});function Zd(m,P,F={}){io(F)&&(F={algorithm:F});let ot=F,{algorithm:K}=ot,tt=Pe(ot,["algorithm"]);if(!K){let nt=Object.keys(Lo).map(at=>at.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${nt}`)}m=re(m),P=re(P);for(let nt in Lo)if("contrast"+K.toLowerCase()===nt.toLowerCase())return Lo[nt](m,P,tt);throw new TypeError(`Unknown contrast algorithm: ${K}`)}function Ja(m){let[P,F,K]=oo(m,Re),tt=P+15*F+3*K;return[4*P/tt,9*F/tt]}function Qa(m){let[P,F,K]=oo(m,Re),tt=P+F+K;return[P/tt,F/tt]}function Kd(m){Object.defineProperty(m.prototype,"uv",{get(){return Ja(this)}}),Object.defineProperty(m.prototype,"xy",{get(){return Qa(this)}})}var qd=Object.freeze({__proto__:null,register:Kd,uv:Ja,xy:Qa});function Jd(m,P){return Ka(m,P,"lab")}const Qd=Math.PI,ds=Qd/180;function tu(m,P,{l:F=2,c:K=1}={}){let[tt,ot,nt]=De.from(m),[,at,ct]=Ui.from(De,[tt,ot,nt]),[pt,ut,ft]=De.from(P),B=Ui.from(De,[pt,ut,ft])[1];at<0&&(at=0),B<0&&(B=0);let et=tt-pt,W=at-B,R=ot-ut,H=nt-ft,V=Ft(R,2)+Ft(H,2)-Ft(W,2),$=.511;tt>=16&&($=.040975*tt/(1+.01765*tt));let Z=.0638*at/(1+.0131*at)+.638,U;Number.isNaN(ct)&&(ct=0),ct>=164&&ct<=345?U=.56+Math.abs(.2*Math.cos((ct+168)*ds)):U=.36+Math.abs(.4*Math.cos((ct+35)*ds));let z=Math.pow(at,4),I=Math.sqrt(z/(z+1900)),E=Z*(I*U+1-I),M=Ft(et/(F*$),2);return M+=Ft(W/(K*Z),2),M+=V/Ft(E,2),Math.sqrt(M)}const us=203;var dn=new Vt({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:Re,fromBase(m){return m.map(P=>Math.max(P*us,0))},toBase(m){return m.map(P=>Math.max(P/us,0))}});const go=1.15,mo=.66,fs=2610/Ft(2,14),eu=Ft(2,14)/2610,gs=3424/Ft(2,12),ms=2413/Ft(2,7),ys=2392/Ft(2,7),iu=1.7*2523/Ft(2,5),vs=Ft(2,5)/(1.7*2523),yo=-.56,ur=16295499532821565e-27,ou=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],ru=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],nu=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],su=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var tl=new Vt({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:dn,fromBase(m){let[P,F,K]=m,tt=go*P-(go-1)*K,ot=mo*F-(mo-1)*P,at=ge(ou,[tt,ot,K]).map(function(B){let et=gs+ms*Ft(B/1e4,fs),W=1+ys*Ft(B/1e4,fs);return Ft(et/W,iu)}),[ct,pt,ut]=ge(nu,at);return[(1+yo)*ct/(1+yo*ct)-ur,pt,ut]},toBase(m){let[P,F,K]=m,tt=(P+ur)/(1+yo-yo*(P+ur)),nt=ge(su,[tt,F,K]).map(function(B){let et=gs-Ft(B,vs),W=ys*Ft(B,vs)-ms;return 1e4*Ft(et/W,eu)}),[at,ct,pt]=ge(ru,nt),ut=(at+(go-1)*pt)/go,ft=(ct+(mo-1)*ut)/mo;return[ut,ft,pt]},formats:{color:{}}}),Nr=new Vt({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:tl,fromBase(m){let[P,F,K]=m,tt;const ot=2e-4;return Math.abs(F)<ot&&Math.abs(K)<ot?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[P,Math.sqrt(Ft(F,2)+Ft(K,2)),Qo(tt)]},toBase(m){return[m[0],m[1]*Math.cos(m[2]*Math.PI/180),m[1]*Math.sin(m[2]*Math.PI/180)]},formats:{color:{}}});function au(m,P){let[F,K,tt]=Nr.from(m),[ot,nt,at]=Nr.from(P),ct=F-ot,pt=K-nt;Number.isNaN(tt)&&Number.isNaN(at)?(tt=0,at=0):Number.isNaN(tt)?tt=at:Number.isNaN(at)&&(at=tt);let ut=tt-at,ft=2*Math.sqrt(K*nt)*Math.sin(ut/2*(Math.PI/180));return Math.sqrt(Ft(ct,2)+Ft(pt,2)+Ft(ft,2))}const el=3424/4096,il=2413/128,ol=2392/128,bs=2610/16384,lu=2523/32,hu=16384/2610,xs=32/2523,cu=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],pu=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],du=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],uu=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var Br=new Vt({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:dn,fromBase(m){let P=ge(cu,m);return fu(P)},toBase(m){let P=gu(m);return ge(uu,P)},formats:{color:{}}});function fu(m){let P=m.map(function(F){let K=el+il*Ft(F/1e4,bs),tt=1+ol*Ft(F/1e4,bs);return Ft(K/tt,lu)});return ge(pu,P)}function gu(m){return ge(du,m).map(function(K){let tt=Math.max(Ft(K,xs)-el,0),ot=il-ol*Ft(K,xs);return 1e4*Ft(tt/ot,hu)})}function mu(m,P){let[F,K,tt]=Br.from(m),[ot,nt,at]=Br.from(P);return 720*Math.sqrt(Ft(F-ot,2)+.25*Ft(K-nt,2)+Ft(tt-at,2))}const yu=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],vu=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],bu=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],xu=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var zo=new Vt({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:Re,fromBase(m){let F=ge(yu,m).map(K=>Math.cbrt(K));return ge(bu,F)},toBase(m){let F=ge(xu,m).map(K=>Ft(K,3));return ge(vu,F)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Cu(m,P){let[F,K,tt]=zo.from(m),[ot,nt,at]=zo.from(P),ct=F-ot,pt=K-nt,ut=tt-at;return Math.sqrt(Ft(ct,2)+Ft(pt,2)+Ft(ut,2))}var Fo={deltaE76:Jd,deltaECMC:tu,deltaE2000:jr,deltaEJz:au,deltaEITP:mu,deltaEOK:Cu};function Fi(m,P,F={}){io(F)&&(F={method:F});let ot=F,{method:K=Ke.deltaE}=ot,tt=Pe(ot,["method"]);m=re(m),P=re(P);for(let nt in Fo)if("deltae"+K.toLowerCase()===nt.toLowerCase())return Fo[nt](m,P,tt);throw new TypeError(`Unknown deltaE method: ${K}`)}function wu(m,P=.25){let K=[Vt.get("oklch","lch"),"l"];return hi(m,K,tt=>tt*(1+P))}function Su(m,P=.25){let K=[Vt.get("oklch","lch"),"l"];return hi(m,K,tt=>tt*(1-P))}var Mu=Object.freeze({__proto__:null,darken:Su,lighten:wu});function rl(m,P,F=.5,K={}){[m,P]=[re(m),re(P)],ni(F)==="object"&&([F,K]=[.5,F]);let{space:tt,outputSpace:ot,premultiplied:nt}=K;return ro(m,P,{space:tt,outputSpace:ot,premultiplied:nt})(F)}function nl(m,P,F={}){let K;un(m)&&([K,F]=[m,P],[m,P]=K.rangeArgs.colors);let B=F,{maxDeltaE:tt,deltaEMethod:ot,steps:nt=2,maxSteps:at=1e3}=B,ct=Pe(B,["maxDeltaE","deltaEMethod","steps","maxSteps"]);K||([m,P]=[re(m),re(P)],K=ro(m,P,ct));let pt=Fi(m,P),ut=tt>0?Math.max(nt,Math.ceil(pt/tt)+1):nt,ft=[];if(at!==void 0&&(ut=Math.min(ut,at)),ut===1)ft=[{p:.5,color:K(.5)}];else{let et=1/(ut-1);ft=Array.from({length:ut},(W,R)=>{let H=R*et;return{p:H,color:K(H)}})}if(tt>0){let et=ft.reduce((W,R,H)=>{if(H===0)return 0;let V=Fi(R.color,ft[H-1].color,ot);return Math.max(W,V)},0);for(;et>tt;){et=0;for(let W=1;W<ft.length&&ft.length<at;W++){let R=ft[W-1],H=ft[W],V=(H.p+R.p)/2,$=K(V);et=Math.max(et,Fi($,R.color),Fi($,H.color)),ft.splice(W,0,{p:V,color:K(V)}),W++}}}return ft=ft.map(et=>et.color),ft}function ro(m,P,F={}){if(un(m)){let[ct,pt]=[m,P];return ro(...ct.rangeArgs.colors,kt(kt({},ct.rangeArgs.options),pt))}let{space:K,outputSpace:tt,progression:ot,premultiplied:nt}=F;m=re(m),P=re(P),m=Vi(m),P=Vi(P);let at={colors:[m,P],options:F};if(K?K=Vt.get(K):K=Vt.registry[Ke.interpolationSpace]||m.space,tt=tt?Vt.get(tt):K,m=_e(m,K),P=_e(P,K),m=ci(m),P=ci(P),K.coords.h&&K.coords.h.type==="angle"){let ct=F.hue=F.hue||"shorter",pt=[K,"h"],[ut,ft]=[ze(m,pt),ze(P,pt)];[ut,ft]=xd(ct,[ut,ft]),hi(m,pt,ut),hi(P,pt,ft)}return nt&&(m.coords=m.coords.map(ct=>ct*m.alpha),P.coords=P.coords.map(ct=>ct*P.alpha)),Object.assign(ct=>{ct=ot?ot(ct):ct;let pt=m.coords.map((B,et)=>{let W=P.coords[et];return No(B,W,ct)}),ut=No(m.alpha,P.alpha,ct),ft={space:K,coords:pt,alpha:ut};return nt&&(ft.coords=ft.coords.map(B=>B/ut)),tt!==K&&(ft=_e(ft,tt)),ft},{rangeArgs:at})}function un(m){return ni(m)==="function"&&!!m.rangeArgs}Ke.interpolationSpace="lab";function Au(m){m.defineFunction("mix",rl,{returns:"color"}),m.defineFunction("range",ro,{returns:"function<color>"}),m.defineFunction("steps",nl,{returns:"array<color>"})}var Tu=Object.freeze({__proto__:null,isRange:un,mix:rl,range:ro,register:Au,steps:nl}),sl=new Vt({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:$i,fromBase:m=>{let P=Math.max(...m),F=Math.min(...m),[K,tt,ot]=m,[nt,at,ct]=[NaN,0,(F+P)/2],pt=P-F;if(pt!==0){switch(at=ct===0||ct===1?0:(P-ct)/Math.min(ct,1-ct),P){case K:nt=(tt-ot)/pt+(tt<ot?6:0);break;case tt:nt=(ot-K)/pt+2;break;case ot:nt=(K-tt)/pt+4}nt=nt*60}return[nt,at*100,ct*100]},toBase:m=>{let[P,F,K]=m;P=P%360,P<0&&(P+=360),F/=100,K/=100;function tt(ot){let nt=(ot+P/30)%12,at=F*Math.min(K,1-K);return K-at*Math.max(-1,Math.min(nt-3,9-nt,1))}return[tt(0),tt(8),tt(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),al=new Vt({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:sl,fromBase(m){let[P,F,K]=m;F/=100,K/=100;let tt=K+F*Math.min(K,1-K);return[P,tt===0?0:200*(1-K/tt),100*tt]},toBase(m){let[P,F,K]=m;F/=100,K/=100;let tt=K*(1-F/2);return[P,tt===0||tt===1?0:(K-tt)/Math.min(tt,1-tt)*100,tt*100]},formats:{color:{toGamut:!0}}}),ku=new Vt({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:al,fromBase(m){let[P,F,K]=m;return[P,K*(100-F)/100,100-K]},toBase(m){let[P,F,K]=m;F/=100,K/=100;let tt=F+K;if(tt>=1){let at=F/tt;return[P,0,at*100]}let ot=1-K,nt=ot===0?0:1-F/ot;return[P,nt*100,ot*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const Pu=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],Lu=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var ll=new Ee({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:Pu,fromXYZ_M:Lu}),Eu=new Ee({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:ll,toBase:m=>m.map(P=>Math.pow(Math.abs(P),563/256)*Math.sign(P)),fromBase:m=>m.map(P=>Math.pow(Math.abs(P),256/563)*Math.sign(P)),formats:{color:{id:"a98-rgb"}}});const Ou=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],Du=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var hl=new Ee({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:pn,toXYZ_M:Ou,fromXYZ_M:Du});const ju=1/512,Iu=16/512;var Nu=new Ee({id:"prophoto",name:"ProPhoto",base:hl,toBase(m){return m.map(P=>P<Iu?P/16:Ft(P,1.8))},fromBase(m){return m.map(P=>P>=ju?Ft(P,1/1.8):16*P)},formats:{color:{id:"prophoto-rgb"}}}),Bu=new Vt({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:zo,fromBase(m){let[P,F,K]=m,tt;const ot=2e-4;return Math.abs(F)<ot&&Math.abs(K)<ot?tt=NaN:tt=Math.atan2(K,F)*180/Math.PI,[P,Math.sqrt(Ft(F,2)+Ft(K,2)),Qo(tt)]},toBase(m){let[P,F,K]=m,tt,ot;return isNaN(K)?(tt=0,ot=0):(tt=F*Math.cos(K*Math.PI/180),ot=F*Math.sin(K*Math.PI/180)),[P,tt,ot]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const Cs=203,ws=2610/Ft(2,14),_u=Ft(2,14)/2610,Ru=2523/Ft(2,5),Ss=Ft(2,5)/2523,Ms=3424/Ft(2,12),As=2413/Ft(2,7),Ts=2392/Ft(2,7);var zu=new Ee({id:"rec2100pq",name:"REC.2100-PQ",base:tr,toBase(m){return m.map(function(P){return Ft(Math.max(Ft(P,Ss)-Ms,0)/(As-Ts*Ft(P,Ss)),_u)*1e4/Cs})},fromBase(m){return m.map(function(P){let F=Math.max(P*Cs/1e4,0),K=Ms+As*Ft(F,ws),tt=1+Ts*Ft(F,ws);return Ft(K/tt,Ru)})},formats:{color:{id:"rec2100-pq"}}});const ks=.17883277,Ps=.28466892,Ls=.55991073,fr=3.7743;var Fu=new Ee({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:tr,toBase(m){return m.map(function(P){return P<=.5?Ft(P,2)/3*fr:(Math.exp((P-Ls)/ks)+Ps)/12*fr})},fromBase(m){return m.map(function(P){return P/=fr,P<=1/12?Math.sqrt(3*P):ks*Math.log(12*P-Ps)+Ls})},formats:{color:{id:"rec2100-hlg"}}});const cl={};li.add("chromatic-adaptation-start",m=>{m.options.method&&(m.M=pl(m.W1,m.W2,m.options.method))});li.add("chromatic-adaptation-end",m=>{m.M||(m.M=pl(m.W1,m.W2,m.options.method))});function er({id:m,toCone_M:P,fromCone_M:F}){cl[m]=arguments[0]}function pl(m,P,F="Bradford"){let K=cl[F],[tt,ot,nt]=ge(K.toCone_M,m),[at,ct,pt]=ge(K.toCone_M,P),ut=[[at/tt,0,0],[0,ct/ot,0],[0,0,pt/nt]],ft=ge(ut,K.toCone_M);return ge(K.fromCone_M,ft)}er({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]]});er({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]]});er({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]]});er({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(We,{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]});We.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const Gu=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],Wu=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var dl=new Ee({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:We.ACES,toXYZ_M:Gu,fromXYZ_M:Wu,formats:{color:{}}});const vo=Ft(2,-16),gr=-.35828683,bo=(Math.log2(65504)+9.72)/17.52;var Xu=new Ee({id:"acescc",name:"ACEScc",coords:{r:{range:[gr,bo],name:"Red"},g:{range:[gr,bo],name:"Green"},b:{range:[gr,bo],name:"Blue"}},referred:"scene",base:dl,toBase(m){const P=-.3013698630136986;return m.map(function(F){return F<=P?(Ft(2,F*17.52-9.72)-vo)*2:F<bo?Ft(2,F*17.52-9.72):65504})},fromBase(m){return m.map(function(P){return P<=0?(Math.log2(vo)+9.72)/17.52:P<vo?(Math.log2(vo+P*.5)+9.72)/17.52:(Math.log2(P)+9.72)/17.52})},formats:{color:{}}}),Es=Object.freeze({__proto__:null,A98RGB:Eu,A98RGB_Linear:ll,ACEScc:Xu,ACEScg:dl,HSL:sl,HSV:al,HWB:ku,ICTCP:Br,JzCzHz:Nr,Jzazbz:tl,LCH:Ui,Lab:De,Lab_D65:Ir,OKLCH:Bu,OKLab:zo,P3:Za,P3_Linear:Va,ProPhoto:Nu,ProPhoto_Linear:hl,REC_2020:Ua,REC_2020_Linear:tr,REC_2100_HLG:Fu,REC_2100_PQ:zu,XYZ_ABS_D65:dn,XYZ_D50:pn,XYZ_D65:Re,sRGB:$i,sRGB_Linear:$a});class ee{constructor(...P){let F;P.length===1&&(F=re(P[0]));let K,tt,ot;F?(K=F.space||F.spaceId,tt=F.coords,ot=F.alpha):[K,tt,ot]=P,Object.defineProperty(this,"space",{value:Vt.get(K),writable:!1,enumerable:!0,configurable:!0}),this.coords=tt?tt.slice():[0,0,0],this.alpha=ot<1?ot:1;for(let nt=0;nt<this.coords.length;nt++)this.coords[nt]==="NaN"&&(this.coords[nt]=NaN);for(let nt in this.space.coords)Object.defineProperty(this,nt,{get:()=>this.get(nt),set:at=>this.set(nt,at)})}get spaceId(){return this.space.id}clone(){return new ee(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...P){let F=Pd(this,...P);return F.color=new ee(F.color),F}static get(P,...F){return P instanceof ee?P:new ee(P,...F)}static defineFunction(P,F,K=F){let{instance:tt=!0,returns:ot}=K,nt=function(...at){let ct=F(...at);if(ot==="color")ct=ee.get(ct);else if(ot==="function<color>"){let pt=ct;ct=function(...ut){let ft=pt(...ut);return ee.get(ft)},Object.assign(ct,pt)}else ot==="array<color>"&&(ct=ct.map(pt=>ee.get(pt)));return ct};P in ee||(ee[P]=nt),tt&&(ee.prototype[P]=function(...at){return nt(this,...at)})}static defineFunctions(P){for(let F in P)ee.defineFunction(F,P[F],P[F])}static extend(P){if(P.register)P.register(ee);else for(let F in P)ee.defineFunction(F,P[F])}}ee.defineFunctions({get:ze,getAll:oo,set:hi,setAll:Ya,to:_e,equals:Ld,inGamut:Gi,toGamut:ci,distance:Ka,toString:Ro});Object.assign(ee,{util:gd,hooks:li,WHITES:We,Space:Vt,spaces:Vt.registry,parse:Ha,defaults:Ke});for(let m of Object.keys(Es))Vt.register(Es[m]);for(let m in Vt.registry)_r(m,Vt.registry[m]);li.add("colorspace-init-end",m=>{var P;_r(m.id,m),(P=m.aliases)==null||P.forEach(F=>{_r(F,m)})});function _r(m,P){Object.values(P.coords).map(K=>K.name);let F=m.replace(/-/g,"_");Object.defineProperty(ee.prototype,F,{get(){let K=this.getAll(m);return typeof Proxy=="undefined"?K:new Proxy(K,{has:(tt,ot)=>{try{return Vt.resolveCoord([P,ot]),!0}catch(nt){}return Reflect.has(tt,ot)},get:(tt,ot,nt)=>{if(ot&&typeof ot!="symbol"&&!(ot in tt)){let{index:at}=Vt.resolveCoord([P,ot]);if(at>=0)return tt[at]}return Reflect.get(tt,ot,nt)},set:(tt,ot,nt,at)=>{if(ot&&typeof ot!="symbol"&&!(ot in tt)||ot>=0){let{index:ct}=Vt.resolveCoord([P,ot]);if(ct>=0)return tt[ct]=nt,this.setAll(m,tt),!0}return Reflect.set(tt,ot,nt,at)}})},set(K){this.setAll(m,K)},configurable:!0,enumerable:!0})}ee.extend(Fo);ee.extend({deltaE:Fi});Object.assign(ee,{deltaEMethods:Fo});ee.extend(Mu);ee.extend({contrast:Zd});ee.extend(qd);ee.extend(Od);ee.extend(Tu);ee.extend(Lo);const Hu=.15,Xe=m=>typeof m=="string"?new ee(m):m,Qe=m=>m.toString({format:"hex"}),ul=(...m)=>{const P=m.map(Xe);if(P.length<2)return()=>Qe(P[0]);const K=P.slice(0,-1).map((tt,ot)=>[tt,P[ot+1]]).map(([tt,ot])=>{const nt=ee.range(tt,ot,{outputSpace:"srgb"});return at=>Qe(nt(at))});return tt=>{if(tt<=0)return Qe(P[0]);if(tt>=1)return Qe(P[P.length-1]);const ot=Math.floor(tt*K.length);return K[ot](tt*K.length-ot)}},Yu=(m,...P)=>{const F=P.map(Xe);if(F.length<2)return Array(m).fill(Qe(F[0]));const K=ul(...F);return Array(m).fill(0).map((tt,ot)=>K(ot/(m-1)))},fl=m=>Qe(Xe(m).set("hsl.s",0)),Uu=(m,P)=>Qe(ee.mix(m,P,.5,{outputSpace:"srgb"})),Vu=(m,P)=>Math.abs(Xe(P).hsl.h-Xe(m).hsl.h),Zi=(m,P)=>{const F=Xe(m);return F.hsv.v=F.hsv.v+F.hsv.v*P,F.hsv.v>100&&(F.hsv.s=F.hsv.s-(F.hsv.v-100)/1.677),F.hsv.s=Math.max(0,Math.min(100,F.hsv.s)),F.hsv.v=Math.max(0,Math.min(100,F.hsv.v)),Qe(F)},gl=m=>({R:m.srgb[0]*255,G:m.srgb[1]*255,B:m.srgb[2]*255}),no=m=>{const{R:P,G:F,B:K}=gl(m);return 1-(.299*P+.587*F+.114*K)/255};function $u(m){return no(m)<.9}const Zu=(m,P=.05,F=1)=>{const K=Xe(m),{R:tt,G:ot,B:nt}=gl(K),at=no(K);let ct=P;$u(K)&&(ct*=-.6),ct*=Math.exp(at*1.2);const pt=Math.min(Math.max(Math.round(255*ct)+tt,0),255),ut=Math.min(Math.max(Math.round(255*ct)+ot,0),255),ft=Math.min(Math.max(Math.round(255*ct)+nt,0),255);return`rgba(${pt}, ${ut}, ${ft}, ${F})`},ml=(m,P)=>{const F=Xe(m);return F.alpha=P,Qe(F)},Ku=(m,P,F)=>ee.steps(new ee(m),new ee(P),{steps:F}).map(K=>new ee(K).to("srgb").toString()),Go="#dcdcdc",ei="#CCCCCC",ii="#FFFFFF",qu=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"];function Ju(m){return P=>{var pt,ut,ft;const{steps:F,minColor:K,maxColor:tt}=m,ot=(pt=m.minValue)!=null?pt:Math.min(...P),nt=(ut=m.maxValue)!=null?ut:Math.max(...P),at=(ft=m.midValue)!=null?ft:ot<0&&nt>0?0:(ot+nt)/2,ct=yl(K!=null?K:Go,tt!=null?tt:Go,ot,at,nt,F);return B=>ct(B)}}const yl=(m,P,F,K,tt,ot=0)=>{const nt=ef(F,K,tt),at=Vu(m,P)>90?[m,fl(Uu(m,P)),P]:[m,P];return ot<=0?Qu(nt,at):tf(nt,ot,at)},Qu=(m,P)=>{const F=ul(...P);return K=>F(m(K))},tf=(m,P,F)=>{const K=Yu(P,...F);return tt=>{const ot=Math.floor(m(tt)*P);return K[Math.min(Math.max(ot,0),P-1)]}},ef=(m,P,F)=>K=>K==m&&K==F?.5:K<P?.5*((K-m)/(P-m)):.5+.5*(K-P)/(F-P),fn=m=>({type:"uniform",color:m});function of(m){return()=>m.color}function vl(m){let P;switch(typeof m=="string"?P=fn(m):P=m,P.type){case"uniform":return{type:"Static",getColor:of(P)};case"conditional":return{type:"Absolute",getColor:ud(P)};case"range":return{type:"Relative",getColor:Ju(P)}}}var rf="[object Number]";function Rr(m){return typeof m=="number"||Rt.isObjectLike(m)&&Rt.baseGetTag(m)==rf}function gn(m){return m===void 0}const Wo=(m,P)=>Object.assign(Object.create(m),P),nf=(m,P)=>Object.assign(Object.create(Object.getPrototypeOf(m)),m,P),so=m=>{if(yn(m)){const P=m,{column:F}=P,K=Pe(P,["column"]);return{column:F,style:K}}return{column:m,style:{}}};function qe(m){const P="column"in m?m.column:m,F="aggregation"in P&&!!P.aggregation,K="context"in P&&!!P.context,tt="formula"in P&&!!P.formula;return F||K||tt?!0:!("type"in P)}const xe=m=>{if(!m)return"";const{column:P,name:F}=m;return F||("title"in P&&P.title?P.title:P.name)},mn=({column:m,granularity:P})=>P||m.granularity||Rt.DateLevels.Years,sf=m=>{const{column:P}=so(m);return P},af=m=>{const{column:P}=so(m);return P};function yn(m){return"column"in m&&m.column!==void 0}function lf(m){return!("column"in m)}function bl(m,P){var ot;const{column:F,style:K}=so(m),tt=_t(kt(kt({},P),K),{column:F});return Rt.isDatetime(F.type)&&gn(tt.dateFormat)&&(tt.dateFormat=(ot=F==null?void 0:F.getFormat)==null?void 0:ot.call(F)),tt}function xl(m,P){var tt,ot;const{column:F,style:K}=so(m);return _t(kt(kt({},P),K),{column:Wo(F,{title:(tt=F.title)!=null?tt:F.name,aggregation:(ot=F.aggregation)!=null?ot:"sum"}),enabled:!0})}function hf(m,P){return qe(m)?xl(m,P):bl(m,P)}const Cl=m=>m.compareValues?m.compareValues[0]:NaN,vn=m=>{if(m!==void 0){switch(m){case Rt.DateLevels.Years:return"yyyy";case Rt.DateLevels.Quarters:return"yyyy Q";case Rt.DateLevels.Months:return"MM/yyyy";case Rt.DateLevels.Weeks:return"ww yyyy";case Rt.DateLevels.Days:return"M/d/yy";case Rt.DateLevels.AggHours:return"HH";case Rt.DateLevels.Hours:return"M/d/yy HH";case Rt.DateLevels.AggMinutesRoundTo30:return"HH:mm";case Rt.DateLevels.MinutesRoundTo30:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo15:return"HH:mm";case Rt.DateLevels.MinutesRoundTo15:return"HH:mm";case Rt.DateLevels.AggMinutesRoundTo1:return"HH:mm";case Rt.DateLevels.Minutes:return"HH:mm";case Rt.DateLevels.Seconds:return"HH:mm:ss"}return console.warn("Unsupported level"),"M/d/yy HH"}},bn=m=>{const{getValueFromDataStructure:P,applyColorToDataStructure:F}=m;return(K,tt)=>{const ot=vl(tt);let nt;switch(ot.type){case"Static":nt=()=>ot.getColor();break;case"Absolute":nt=at=>ot.getColor(at);break;case"Relative":{const at=K.map(P),ct=ot.getColor(at);nt=pt=>ct(pt);break}}return K.map(at=>{const ct=P(at),pt=nt(ct);return F(at,pt)})}};function cf(m){return Rt.flatRest(function(P){return P=Rt.arrayMap(P,Rt.baseUnary(Rt.baseIteratee)),Rt.baseRest(function(F){var K=this;return m(P,function(tt){return Rt.apply(tt,K,F)})})})}var wl=cf(Rt.arrayMap);function ir(m,P=!1){const F=m.filter(K=>Rt.isFunction(K));return P?Jo(F):wl(F)}function Sl(...m){return(P,F)=>m.reduce((K,tt)=>{var ot;return tt&&(ot=tt(P,K))!=null?ot:K},F)}function pf(...m){return P=>m.reduce((F,K)=>{var tt;return K&&(tt=K(F))!=null?tt:F},P)}function df(...m){return P=>m.reduce((F,K)=>{if(!K)return F;const tt=K(F);return tt!==null?tt:F},P)}const Ml={"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"},uf=Object.entries(Ml).reduce((m,[P,F])=>(m[F]=P,m),{});function ff(m){return Ml[m]}function gf(m){return uf[m]}function mf(m,P){if(m==="chart"){if(!P)throw new Error("chartType is required for chart widget type");return gf(P)}if(m==="pivot")return"pivot2";if(m==="custom")return"custom";if(m==="text")return"richtexteditor";throw new Rt.TranslatableError("errors.widgetModel.unsupportedWidgetType",{widgetType:m})}function yf(m){if(xn(m))return"pivot";if(Tf(m))return"custom";if(Cn(m))return"text";if(Al(m))return"chart";throw new Rt.TranslatableError("errors.widgetModel.unsupportedFusionWidgetType",{fusionWidgetType:m})}function vf(m){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"}[m]}function bf(m){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"].includes(m)}const xf=["chart/pie","indicator","richtexteditor","chart/column","chart/bar","chart/line","chart/area","pivot","pivot2","chart/scatter","chart/polar"];function Cf(m){return xf.includes(m)}function wf(m){return m==="tablewidget"||m==="tablewidgetagg"}function Sf(m){return Of(m.widgetType)&&m.chartType==="table"}function xn(m){return m==="pivot"||m==="pivot2"}function Mf(m){return m==="pivot"}function Cn(m){return m==="richtexteditor"}function Af(m){return m==="text"}function Tf(m){return m==="custom"}function kf(m){return m==="custom"}function Al(m){return!xn(m)&&!Cn(m)}function Pf(m){return m.startsWith("chart")}function Lf(m){return m==="chart/pie"}function Ef(m){return m==="indicator"}function Of(m){return m==="chart"}function Tl(m){return m.widgetType==="text"}function wn(m){return m.widgetType==="pivot"}function kl(m){return m.widgetType==="custom"}function or(m){return m.widgetType==="chart"}function Df(m){return wn(m)?"pivot":kl(m)?"custom":Tl(m)?"text":m.chartType}function jf(m,P){or(m)&&(m.onDataPointClick=ir([m.onDataPointClick,P]))}function If(m,P){!or(m)&&!wn(m)||(m.onDataPointContextMenu=ir([m.onDataPointContextMenu,P]))}function Nf(m,P){or(m)&&(m.onDataPointsSelected=ir([m.onDataPointsSelected,P]))}function Bf(m,P){var K;const F=m.styleOptions;m.styleOptions=_t(kt({},F),{header:_t(kt({},F==null?void 0:F.header),{renderToolbar:Sl((K=F==null?void 0:F.header)==null?void 0:K.renderToolbar,P)})})}function _f(m,P){var tt;const F=m.find(ot=>ot.name===P);return((tt=F==null?void 0:F.items)!=null?tt:[]).filter(ot=>!ot.disabled)}function Pl(m){return m.parent?Pl(m.parent):m}const Rf=m=>m?qe(m)||m.column.type&&Rt.isNumber(m.column.type):!1,zf=(m,P,F)=>{if(!m||P===void 0||isNaN(P))return F;const K=he(m.numberFormatConfig);return mi(K,P)},le=(m,P,F)=>Rf(m)?zf(m,parseFloat(`${P}`),F):F,Ff=["auto","column","area","areaspline","bar","scatter","arearange"];function Ll(m){return m!=null&&m.chartType?Ff.includes(m.chartType):!0}const El=["polar"],Sn=["line","area","bar","column",...El],Mn=["pie","funnel","treemap","sunburst"],An=["scatter"],Ol=["table"],Dl=["indicator"],Tn=["boxplot"],jl=["areamap"],Gf=["image"],Il=["scattermap"],Wf=["calendar-heatmap"],kn=["arearange"],Nl=m=>Sn.find(P=>P===m)!==void 0,Bl=m=>Mn.find(P=>P===m)!==void 0,_l=m=>An.find(P=>P===m)!==void 0,Rl=m=>Il.find(P=>P===m)!==void 0,zl=m=>Dl.find(P=>P===m)!==void 0,Fl=m=>El.find(P=>P===m)!==void 0,Xf=m=>Ol.find(P=>P===m)!==void 0,Gl=m=>Tn.find(P=>P===m)!==void 0,Wl=m=>jl.find(P=>P===m)!==void 0,Hf=m=>kn.find(P=>P===m)!==void 0,Yf=[...Sn,...Mn,...An,...Ol,...Dl,...Tn,...jl,...Gf,...Il,...Wf,...kn],He=(m,P)=>{var K;const F=m==null?void 0:m.filter(tt=>tt);return(K=F&&F[P%F.length])!=null?K:qu[P%10]},Ki=(m,P)=>{const F=!m||m==="";let K,tt,ot;return Rt.isNumber(P)?(K=parseFloat(m),tt=isNaN(K)):Rt.isDatetime(P)?m===nn?(K=m,tt=!0):(K=on(m).valueOf(),tt=isNaN(K)):(K=m,ot=m==null?void 0:m.toLowerCase(),tt=!1),kt({value:K,valueUndefined:F,valueIsNaN:tt},ot&&{lowercaseValue:ot})};function Os(m,P){const F=Rt.isObject(m)?m:{displayValue:m==null?void 0:m.toString()};return F.compareValue||(F.compareValue=Ki(F.displayValue,P)),F}var Uf=function(m){return m[m.ASC=1]="ASC",m[m.DESC=-1]="DESC",m[m.NONE=0]="NONE",m}({});function Xl(m,P,F=1,K="string"){const tt=Os(m,K),ot=Os(P,K),nt=tt.compareValue,at=ot.compareValue;if(nt.valueUndefined&&at.valueUndefined)return 0;if(nt.valueUndefined)return 1;if(at.valueUndefined)return-1;if(nt.valueIsNaN&&at.valueIsNaN)return 0;if(nt.valueIsNaN)return 1;if(at.valueIsNaN)return-1;const ct=nt.lowercaseValue,pt=at.lowercaseValue;if(ct!==void 0&&pt!==void 0){if(ct<pt)return-1*F;if(ct>pt)return 1*F}return nt.value<at.value?-1*F:nt.value>at.value?1*F:0}class Hl{constructor(P){this.columns=[],this.columns=P}compare(P,F){for(let K=0;K<this.columns.length;K++){const tt=this.columns[K],ot=P[tt.index],nt=F[tt.index],at=tt.direction||1,ct=Xl(ot,nt,at,tt.type);if(ct!==0)return ct}return 0}}class Ds{constructor(P){this.data=P}getStat(P){switch(P){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 P of this.data)this.sum+=P;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 P of this.data)P>this.max&&(this.max=P);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 P of this.data)P<this.min&&(this.min=P);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((P,F,K)=>K.indexOf(P)===F).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 P=this.getMean();this.variance=this.data.reduce((F,K)=>F.concat(Ft(K-P,2)),[]).reduce((F,K)=>F+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)}}class Vf{constructor(P){this.data=P}getStat(P){switch(P){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((P,F,K)=>K.indexOf(P)===F).length}}const Yl=(m,P)=>m.slice(0).sort((F,K)=>P.compare(F,K)),Pn=(m,P)=>{if(!(m&&m.length>0))return[];const F=new Hl(P),K=Yl(m,F);let tt=[];const ot=[];let nt=K[0];for(const at of Array.from(K))F.compare(at,nt)!==0&&(ot.push(tt),tt=[]),tt.push(at),nt=at;return ot.push(tt),ot},$f=(m,P)=>{var K,tt;const F=[];for(const ot of P){let nt;const at=ot.column,{aggFunc:ct}=ot,pt=m.filter(B=>!!B[at.index]&&B[at.index].displayValue!==""),ut=(tt=(K=pt.find(B=>{var et;return B!==void 0&&((et=B==null?void 0:B[at.index])==null?void 0:et.color)}))==null?void 0:K[at.index])==null?void 0:tt.color,ft=pt.some(B=>B[at.index].blur);if(Rt.isDatetime(at.type)){const B=pt.map(et=>on(et[at.index].displayValue).valueOf());nt=new Ds(B).getStat(ct)}else if(Rt.isNumber(at.type)){const B=pt.map(et=>parseFloat(et[at.index].displayValue));nt=new Ds(B).getStat(ct)}else{const B=pt.map(et=>et[at.index].displayValue);nt=new Vf(B).getStat(ct)}F.push(kt(kt({displayValue:`${nt}`},ut&&{color:ut}),ft&&{blur:ft}))}return F},Ul=(m,P)=>{if(En(m))return{columns:[],rows:[]};const F=new Hl(P);return{columns:m.columns,rows:Yl(m.rows,F)}},Vl=(m,P,F)=>{if(En(m))return{rows:[],columns:[]};const K={name:"n/a",type:"n/a",index:-1,direction:0},tt=F.map(pt=>({aggFunc:pt.agg,aggName:pt.title,column:ri(m,pt.column)||K})).filter(pt=>pt.column.index!==-1),ot=Pn(m.rows,P),nt=tt.map(pt=>pt.aggName),at=[];for(const pt of ot){const ut=Pi(pt[0],P),ft=$f(pt,tt),B=ut.slice(0).concat(ft);at.push(B)}const ct=P.slice(0).concat(nt.map(pt=>({name:pt,type:"number",index:0,direction:0})));return{rows:at,columns:ct.map((pt,ut)=>_t(kt({},pt),{index:ut}))}},ri=(m,P)=>m.columns.find(F=>F.name===P),qi=(m,P)=>{const F={name:"foo",type:"string",index:-1,direction:0};return P.map(K=>ri(m,K)||F).filter(K=>K!==F)},$l=(m,P)=>{const F=m.rows.map(tt=>P.map(ot=>tt[ot.index]));return{columns:P.map((tt,ot)=>_t(kt({},tt),{index:ot})),rows:F}},Zl=(m,P)=>{if(!(m&&P.index<m.length))return;const F=m[P.index];return F.compareValue||(F.compareValue=Ki(F.displayValue,P.type)),F.compareValue.value},Kl=(m,P)=>{var F;return(F=m[P.index])==null?void 0:F.blur},Pi=(m,P)=>{const F=[];for(const K of P)F.push(m[K.index]);return F},Zf=(m,P)=>Pi(m,P).map(F=>F.rawValue||F.displayValue).join(","),Ln=(m,P)=>{if(!(m&&m.length>0))return{};const F=Pn(m,P),K={};for(const tt of F){const ot=Zf(tt[0],P);K[ot]=tt}return K},En=m=>!(m.rows&&m.columns&&m.rows.length>0&&m.columns.length>0);var Kf=function(P){return qf(P)&&!Jf(P)};function qf(m){return!!m&&typeof m=="object"}function Jf(m){var P=Object.prototype.toString.call(m);return P==="[object RegExp]"||P==="[object Date]"||eg(m)}var Qf=typeof Symbol=="function"&&Symbol.for,tg=Qf?Symbol.for("react.element"):60103;function eg(m){return m.$$typeof===tg}function ig(m){return Array.isArray(m)?[]:{}}function Ji(m,P){return P.clone!==!1&&P.isMergeableObject(m)?Ai(ig(m),m,P):m}function og(m,P,F){return m.concat(P).map(function(K){return Ji(K,F)})}function rg(m,P){if(!P.customMerge)return Ai;var F=P.customMerge(m);return typeof F=="function"?F:Ai}function ng(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(P){return Object.propertyIsEnumerable.call(m,P)}):[]}function js(m){return Object.keys(m).concat(ng(m))}function ql(m,P){try{return P in m}catch(F){return!1}}function sg(m,P){return ql(m,P)&&!(Object.hasOwnProperty.call(m,P)&&Object.propertyIsEnumerable.call(m,P))}function ag(m,P,F){var K={};return F.isMergeableObject(m)&&js(m).forEach(function(tt){K[tt]=Ji(m[tt],F)}),js(P).forEach(function(tt){sg(m,tt)||(ql(m,tt)&&F.isMergeableObject(P[tt])?K[tt]=rg(tt,F)(m[tt],P[tt],F):K[tt]=Ji(P[tt],F))}),K}function Ai(m,P,F){F=F||{},F.arrayMerge=F.arrayMerge||og,F.isMergeableObject=F.isMergeableObject||Kf,F.cloneUnlessOtherwiseSpecified=Ji;var K=Array.isArray(P),tt=Array.isArray(m),ot=K===tt;return ot?K?F.arrayMerge(m,P,F):ag(m,P,F):Ji(P,F)}Ai.all=function(P,F){if(!Array.isArray(P))throw new Error("first argument should be an array");return P.reduce(function(K,tt){return Ai(K,tt,F)},{})};var lg=Ai,hg=lg;const Be=Zr(hg),cg={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},pg=m=>{switch(m){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"}}},dg=m=>{if((m==null?void 0:m.enabled)===!1||!m)return;const{text:P,textStyle:F}=m;return{title:kt(kt({},P!==void 0&&{text:P}),F!==void 0&&{style:F})}},ug=m=>{if(!m)return;const{layout:P,textStyle:F,marginBottom:K,marginTop:tt,distance:ot,width:nt,hoverTextStyle:at,hiddenTextStyle:ct}=m||{};return kt(kt(kt(kt(kt(kt(kt(kt({},P!==void 0&&{layout:P}),F!==void 0&&{itemStyle:F}),K!==void 0&&{itemMarginBottom:K}),tt!==void 0&&{itemMarginTop:tt}),ot!==void 0&&{itemDistance:ot}),nt!==void 0&&{itemWidth:nt}),at!==void 0&&{itemHoverStyle:at}),ct!==void 0&&{itemHiddenStyle:ct})},fg=m=>{if(!m)return;const{radius:P,height:F,width:K,padding:tt,squared:ot}=m;return kt(kt(kt(kt(kt({},P!==void 0&&{symbolRadius:P}),F!==void 0&&{symbolHeight:F}),K!==void 0&&{symbolWidth:K}),tt!==void 0&&{symbolPadding:tt}),ot!==void 0&&{squareSymbol:ot})},gg=m=>{const at=m,{title:P,items:F,symbols:K,xOffset:tt,yOffset:ot}=at,nt=Pe(at,["title","items","symbols","xOffset","yOffset"]);return kt(kt(kt(kt(kt(kt({},nt),dg(P)),ug(F)),fg(K)),tt!==void 0&&{x:tt}),ot!==void 0&&{y:ot})},di=m=>{const P={enabled:!1,symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,align:"center",verticalAlign:"bottom",layout:"horizontal"};if(!m)return P;const nt=m,{position:F}=nt,K=Pe(nt,["position"]),tt=pg(F||null),ot=gg(K);return _t(kt(kt(kt({},P),tt),ot),{itemStyle:kt(kt({},cg),ot.itemStyle)})},On=m=>{var P;return(m==null?void 0:m.position)==="right"||(m==null?void 0:m.align)==="right"&&((P=m==null?void 0:m.items)==null?void 0:P.layout)==="vertical"&&(m==null?void 0:m.verticalAlign)==="middle"},Ae="#d1d1d7",Jl=25,Ql=[-10,-20,-30,-40,-50,-60,-70,-80,-90],we={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"none"},Qi={fontSize:"13px",textOverflow:"ellipsis",pointerEvents:"none",textOutline:"none",fontWeight:"bold"},zr={labels:{overflow:"none",enabled:!0,autoRotation:Ql,style:we},tickmarkPlacement:"on",title:{text:"",enabled:!1,margin:Jl,style:we},gridLineDashStyle:"Dot",minorGridLineWidth:0,startOnTick:!1,endOnTick:!1,lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae},Is={labels:{autoRotation:Ql,style:we},tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,title:{text:"",margin:Jl,enabled:!1,style:we},gridLineWidth:1,minorTickWidth:0,tickWidth:0,minorGridLineWidth:0,gridLineDashStyle:"Dot",lineColor:Ae,lineWidth:1,tickColor:Ae,minorTickColor:Ae,gridLineColor:Ae,minorGridLineColor:Ae,minorGridLineDashStyle:"Dot",stackLabels:{style:Qi,crop:!0,allowOverlap:!1,enabled:!1,rotation:0,labelrank:99999,x:0,y:0},showLastLabel:!0},mg=(m,P,F)=>{switch(m){case"line":return ui;case"area":return Be(ui,Ns(F));case"bar":return Be(ui,vg(F));case"column":return Be(ui,yg(F));case"polar":return Be(ui,bg(P));case"arearange":return Be(ui,Ns(F));default:return ui}},ui={chart:{type:"line",spacing:[],alignTicks:!1,polar:!1},legend:di(),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:_t(kt({},we),{textOutline:"none"})},stickyTracking:!1,states:{select:{color:null,opacity:.3,borderColor:"transparent"}}}},xAxis:[],yAxis:[],series:[],boost:{useGPUTranslations:!0,usePreAllocated:!0}},Ns=m=>({plotOptions:{area:kt({},m&&{lineColor:"#ffffff"}),series:kt({},m&&{stacking:m})}}),yg=m=>({plotOptions:{column:kt({groupPadding:.1,pointPadding:.01},m&&{borderWidth:0}),series:kt({},m&&{stacking:m})}}),vg=m=>({plotOptions:{bar:kt({groupPadding:.1,pointPadding:.01},m&&{borderWidth:0}),series:kt({},m&&{stacking:m})}});function bg(m){return{plotOptions:{series:_t(kt({},m!=="line"&&{stacking:"normal"}),{fillOpacity:1})}}}const th={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},eh="classic",xg={classic:"0%",donut:"40%",ring:"80%"},Cg=()=>({allowPointSelect:!1,showInLegend:!0,dataLabels:{enabled:!1,showPercentLabels:!1,showDecimals:!1,pieMinimumFontSizeToTextLabel:8,align:"center",style:we},innerSize:"0%"}),wg=()=>({dataLabels:{enabled:!1}}),ih=(m=eh,P=th,F,K)=>{var nt;const tt=Cg(),ot=wg();if(tt.innerSize=xg[m],K&&(tt.dataLabels.style={color:K.chart.textColor,fontFamily:K.typography.fontFamily,textOutline:"none"}),P.enabled){const at=P.showCategories||P.showValue,{dataLabels:ct}=tt;ct.enabled=at,ct.showPercentLabels=P.showPercent,ct.showDecimals=P.showDecimals;const pt=he((nt=F.y[0])==null?void 0:nt.numberFormatConfig);ct.formatter=function(){const ut=this.point.name||this.series.name,ft=this.y;return`<div>
|
|
2
|
-
${P.showCategories?ut:""}
|
|
3
|
-
${P.showCategories&&P.showValue?"<br />":""}
|
|
4
|
-
${P.showValue?Ce(pt,ft):""}
|
|
5
|
-
</div>`},ot.dataLabels&&(ot.dataLabels.enabled=at)}return{pie:tt,series:ot}},oh=({x:m,y:P,breakBy:F})=>nh(P)&&rh(m)&&F.length===0,Sg=({x:m,y:P,breakBy:F})=>rh(m)&&nh(P)&&F.length>0,rh=m=>m.length===0,nh=m=>m.length>0,Mg=(m,P)=>m*(P/100),Ag=(m,P)=>m===0?0:Math.abs(P)/Math.abs(m)*100,Eo=m=>`${m}%`,sh={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},ah="regular",lh="regular",hh="regular",Tg=m=>m!=="regular",Bs=()=>({allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!1,funnelMinimumFontSizeToTextLabel:8,align:"center",style:we},reversed:!0,neckWidth:Dg,neckHeight:0,width:ch}),kg=()=>({dataLabels:{enabled:!1}}),Pg=m=>{const{enabled:P,showCategories:F,showValue:K,showPercent:tt}=m;return{enabled:P&&[F,K,tt].find(Boolean)!==void 0}},Lg=(m,P)=>P.showCategories?m.point.name||m.series.name:"",Eg=(m,P,F)=>{if(!P.showValue)return"";const K=Ce(F,m.y);return P.showValue&&P.showCategories?`<br />${K}`:K},Og=(m,P)=>{var tt,ot;if(!P.showPercent)return"";const F=((ot=(tt=m.point)==null?void 0:tt.custom)==null?void 0:ot.number1)||0,K=P.showDecimals?F.toFixed(1):`${Math.round(F)}`;return` <b>${Eo(K)}</b>`},ch=66.6,Dg=15,jg=m=>ch,Ig={wide:60,regular:30,narrow:15},Ng=(m,P)=>Math.round(Mg(m,Ig[P])),Bg=m=>m==="pinched"?30:0,_g=(m,P,F)=>{var ft;const{funnelType:K=lh,funnelSize:tt=ah,funnelDirection:ot=hh,funnelLabels:nt=sh}=m,at=_t(kt({},kg()),{dataLabels:Pg(nt)}),ct=he((ft=P.y[0])==null?void 0:ft.numberFormatConfig),pt=jg();return{funnel:_t(kt({},Bs()),{dataLabels:_t(kt(kt({},Bs().dataLabels),F?{color:F.chart.textColor,style:{fontFamily:F.typography.fontFamily}}:null),{enabled:nt.enabled&&(nt.showCategories||nt.showValue||nt.showPercent),formatter:function(){const B=Lg(this,nt),et=Eg(this,nt,ct),W=Og(this,nt);return`${B}${et}${W}`}}),reversed:Tg(ot),neckWidth:Eo(Ng(pt,tt)),neckHeight:Eo(Bg(K)),width:Eo(pt)}),series:at}},ph=m=>m instanceof Object&&"data"in m,Rg=m=>m.rows.length===0,Dn="$rownum",zg=m=>{let P=0;const F=m.rows.map(tt=>{const ot=m.columns.map((nt,at)=>{var ft;const ct=tt[at];if(ph(ct)){let B=ct.data.toString();if(Rt.isDatetime(nt.type)){const et="1111-11-11T";B.startsWith(et)&&(B=B.replace(et,"1970-01-01T"))}return kt(kt({rawValue:ct.data,displayValue:(ft=ct.text)!=null?ft:B,compareValue:Ki(B,nt.type)},ct.blur!==void 0?{blur:ct.blur}:{}),ct.color?{color:ct.color}:{})}let pt,ut;return Rt.isDatetime(nt.type)&&(ct===nn?(pt={value:ct,valueUndefined:!1,valueIsNaN:!0},ut=ct):(pt=Ki(`${ct}`,nt.type),ut=new Date(pt.value).toISOString())),{rawValue:ut!=null?ut:ct,displayValue:`${ct!=null?ct:""}`,compareValue:pt}});return P++,ot.push({displayValue:`${P}`,rawValue:P}),ot}),K=m.columns.map((tt,ot)=>({name:tt.name,type:tt.type,index:ot,direction:0}));return K.push({name:Dn,type:"number",index:K.length,direction:0}),{columns:K,rows:F}},dh=m=>{if(m!==void 0)return typeof m=="string"?fn(m).color:m.type==="uniform"?m.color:Go},Fg=bn({getValueFromDataStructure:m=>m.value,applyColorToDataStructure:(m,P)=>_t(kt({},m),{color:P})}),Fr=(m,P)=>{var ft;if(P.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const F=m.x.length;let K=qi(P,m.x.map(({column:{name:B}})=>B));K=K.map((B,et)=>_t(kt({},B),{direction:uh(m.x[et].sortType)}));const tt=qi(P,m.breakBy.map(({column:{name:B}})=>B)),ot=m.y.filter(({sortType:B})=>B&&B!=="sortNone"),nt=K.length>1?1:0,at=fh(P,ot,K,((ft=K[nt])==null?void 0:ft.direction)===0?Dn:void 0),ct=m.y.map(({column:{name:B}})=>B),pt=m.breakBy.length>0?Hg(P,at,K,ct[0],tt,m.breakBy):Gg(P,at,K,ct,m.y);return _t(kt({},pt),{xAxisCount:F,type:"cartesian"})},uh=m=>{switch(m){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},fh=(m,P,F,K)=>{if(F.length===0)return[{key:"",xValues:[""],rawValues:[]}];const tt=P.map(({column:{name:ft}})=>({column:ft,agg:"sum",title:ft}));if(K){const ft={column:K,title:K,agg:"min"};tt.push(ft)}const ot=Vl(m,F,tt),nt=[];let at=0;if(F.length===2){at=1;const B=ri(ot,F[0].name);B&&nt.push(B)}if(P.map(ft=>{const B=ri(ot,ft.column.name);return B&&nt.push(_t(kt({},B),{direction:ft.sortType==="sortAsc"?1:-1})),ft}),K){const ft=ri(ot,K);ft&&nt.push(ft)}if(F.length>0){const ft=ri(ot,F[at].name);ft&&nt.push(ft)}const ct=Ul(ot,nt),pt=qi(ct,F.map(ft=>ft.name)),ut=$l(ct,pt);return ut.rows.map(ft=>{const B=Pi(ft,ut.columns),et=B.map(V=>V.displayValue),W=B.map(V=>{var $;return($=V.rawValue)!=null?$:V.displayValue}),R=B.map(V=>{var $;return($=V==null?void 0:V.compareValue)==null?void 0:$.value});return{key:W.join(","),xValues:et,rawValues:W,compareValues:R}})},gh=(m,P,F)=>{var nt,at;const K=F?Zl(m,F):1e-5,{color:tt,rawValue:ot}=(at=m[(nt=F==null?void 0:F.index)!=null?nt:0])!=null?at:{};return kt({rawValue:ot,xValue:P.rawValues,xDisplayValue:P.xValues,xCompareValue:P.compareValues,value:K===void 0?NaN:K,blur:F?Kl(m,F):void 0},tt&&{color:tt})},Gg=(m,P,F,K,tt)=>{const ot=K.length>0?qi(m,K):[void 0],nt=tt.reduce((pt,ut)=>(pt[ut.column.name]=ut,pt),{}),at=Ln(m.rows,F),ct=ot.map(pt=>{var W,R;let ut=P.map(H=>{const V=at[H.key],$=V?V[0]:[];return gh($,H,pt)});const ft=(W=pt==null?void 0:pt.name)!=null?W:"",B=ft?xe(nt[ft]):"",et=(R=nt[ft])==null?void 0:R.color;return et&&(ut=Fg(ut,et)),{name:ft,title:B,data:ut}});return{xValues:P,series:ct}},Wg=(m,P,F)=>Pi(m,P).map((K,tt)=>{const ot=he(F[tt].numberFormatConfig);return Rt.isNumber(P[tt].type)?Ce(ot,parseFloat(K.displayValue)):K.displayValue}).join(","),Xg=(m,P)=>Pi(m,P).map(({rawValue:F})=>F),Hg=(m,P,F,K,tt,ot)=>{const nt=ri(m,K),pt=Pn(m.rows,tt).map(ut=>{const ft=ut[0];return{seriesName:Wg(ft,tt,ot),seriesValues:Xg(ft,tt),rowsByXColumns:Ln(ut,F)}}).map(ut=>{const ft=P.map(B=>{const et=ut.rowsByXColumns[B.key],W=et?et[0]:[];return gh(W,B,nt)});return{name:ut.seriesName,data:ft,custom:{rawValue:ut.seriesValues}}});return{xValues:P,series:pt}},Gr={enabled:!0,types:{count:!1,relative:!0,totals:!0}},Yg=(m,P)=>function(){var ot;const F=this.y===0&&this.x===" ";if(this.y===void 0||isNaN(this.y)||F)return"";let K="";const tt=(ot=P==null?void 0:P.showValue)!=null?ot:!0;return tt&&(K+=Ce(he(m),this.y)),tt&&(P!=null&&P.showPercentage)&&(K+=" / "),P!=null&&P.showPercentage&&this.percentage!==void 0&&(K+=`${Math.round(this.percentage)}%`),K},jn=m=>{const P=Math.abs(m)%180;return P<20?"horizontal":P<60?"diagonal":P<120?"vertical":P<160?"diagonal":"horizontal"},Ug=(m,P,F)=>{var ot;if(!P.enabled)return{enabled:!1};const K=_t(kt({},Gr),{align:"center",verticalAlign:"middle",rotation:(ot=P.rotation)!=null?ot:0});if(F)return K;const tt=jn(K.rotation);if(m==="vertical")return _t(kt({},K),{align:tt==="horizontal"?"left":"center"});switch(tt){case"horizontal":return _t(kt({},K),{verticalAlign:"bottom",padding:5});case"diagonal":return _t(kt({},K),{align:"left",y:-10,x:-2});case"vertical":return _t(kt({},K),{align:"left",y:-10})}},Vg=(m,P)=>{var tt,ot;if(!m)return{enabled:!1};const F=(tt=m.rotation)!=null?tt:0,K=(ot=m.enabled)!=null?ot:Gr.enabled;return _t(kt({},Gr),{verticalAlign:P==="line"?"bottom":"middle",rotation:F,enabled:K,align:jn(F)==="vertical"?"left":"center",padding:5})},mh=m=>_t(kt({enabled:m.enabled,radius:!m.enabled||m.size==="small"?4:7,fillColor:!m.enabled||m.fill==="full"?null:ii,lineColor:null,lineWidth:2,symbol:"circle",fillOpacity:.3},!m.enabled&&{symbol:"circle"}),{states:{hover:{fillColor:ii,radius:m.size==="small"?6:9,lineWidth:3}}});function _s(m){return"polarType"in m}const Li=(m,P)=>m==="line"&&P.lineType==="smooth"?"spline":m==="area"&&P.lineType==="smooth"?"areaspline":m==="polar"?P.polarType:m==="scatter"?"bubble":m,yh=(m,P)=>{if(m!=="area"&&m!=="bar"&&m!=="column"&&m!=="polar")return{showTotal:!1};if(m==="polar"){if(_s(P))return{stacking:P.polarType==="column"||P.polarType==="area"?"normal":void 0,showTotal:!1};throw new Rt.TranslatableError("errors.polarChartDesignOptionsExpected")}if(_s(P))throw new Rt.TranslatableError("errors.polarChartDesignOptionsNotExpected");const F=P.valueLabel&&P.showTotal||!1;switch(P.stackType){case"stacked":return{stacking:"normal",showTotal:F};case"stack100":return{stacking:"percent",showTotal:F};default:return{showTotal:!1}}},$g=(m,P)=>m.map((F,K)=>P===K?0:-1),Zg=(m,P,F,K,tt,ot,nt,at)=>{const ct=bh(m,F),ft=m,{title:pt}=ft,ut=Pe(ft,["title"]);return _t(kt({},ut),{name:pt!=null?pt:m.name,data:qg(ct,P,K,tt,F,ot,nt,at)})},Kg=(m,P)=>{!P.minClipped&&(m!=null&&m.min)&&(m==null?void 0:m.min)>0&&(m.min=0),!P.maxClipped&&(m!=null&&m.max)&&(m==null?void 0:m.max)<0&&(m.max=0)},qg=(m,P,F,K,tt,ot,nt,at)=>{const ct=P.map((et,W)=>{if(et<0)return{y:null};const{value:R,blur:H,color:V,rawValue:$,xValue:Z,xDisplayValue:U,xCompareValue:z}=m[et],I=vh(m,P,et,W),E=I||H,M={enabled:!H,isIsolatedPoint:I},k=z?z[0]:NaN;return _t(kt(kt({x:k,y:R,selected:!!H},E&&{marker:M}),V&&{color:V}),{custom:{rawValue:$,xValue:Z,xDisplayValue:U||Z}})}),pt=[];let ut=-1;const ft=F/2;let B=0;return ct.forEach(et=>{if(et.x&&ut===-1&&(ut=et.x+ft),et.x&&et.x>ut){let W=Math.round((et.x-(ut-ft))/F);for(;W>0&&(B++,!(B>K));){const R=et.x-F*W;pt.push({custom:{xDisplayValue:ot(R)},x:R,y:tt?0:null}),tt&&(nt!=null&&nt.min)&&(nt==null?void 0:nt.min)>0&&Kg(nt,at),W--,ut+=F}}pt.push(et),et.x?ut=et.x+F+ft:ut+=F}),pt},Ti=(m,P,F,K,tt,ot)=>{const nt=bh(m,F,ot),pt=m,{title:at}=pt,ct=Pe(pt,["title"]);return _t(kt({},ct),{name:at!=null?at:m.name,data:Jg(nt,P,K,tt)})},vh=(m,P,F,K)=>{const tt=K===0||P[K-1]<0||isNaN(m[P[K-1]].value),ot=K+1===P.length||P[K+1]<0||isNaN(m[P[K+1]].value);return tt&&ot},bh=(m,P,F)=>m.data.map(ot=>{var nt=ot,{value:K}=nt,tt=Pe(nt,["value"]);return kt({value:P&&Number.isNaN(K)?0:F?Math.abs(K):K},tt)}),Jg=(m,P,F,K)=>{const tt=m.some(ot=>ot.blur!==void 0);return P.map((ot,nt)=>{if(ot<0)return{y:null};const{value:at,blur:ct,color:pt,rawValue:ut,xValue:ft}=m[ot];if(F)return _t(kt({name:F[ot],y:at,color:pt!=null?pt:K==null?void 0:K[ot]},tt&&!ct&&{selected:!0}),{custom:{rawValue:ut,xValue:ft}});{const B=vh(m,P,ot,nt),et=B||tt,W={enabled:!ct,isIsolatedPoint:B};return _t(kt(kt({y:isNaN(+at)?at:+at,selected:!!ct},et&&{marker:W}),pt&&{color:pt}),{custom:{rawValue:ut,xValue:ft}})}})},Qg=(m,P,F=.1)=>{const tt=Math.abs(P-m)*F/2;return{min:m<0?m-tt:m,max:P>=0?P+tt:P}},Rs=(m,P)=>{const F=kt({},P);return m.min&&m.min>=F.max&&(F.max=m.min*(m.min>=0?2:.5)),m.max&&m.max<=F.min&&(F.min=m.max*(m.max>=0?.5:2)),F},zs=(m,P)=>{const F=kt({},P);return F.min<=0||(m==="column"||m==="bar")&&(F.min=0),F},tm=(m,P,F,K,tt,ot)=>{const nt=P.series.map((ft,B)=>_t(kt({},ft),{data:ft.data.map(R=>{var H=R,{value:et}=H,W=Pe(H,["value"]);return kt({value:isNaN(et)&&tt[B]?0:et},W)})})).filter((ft,B)=>K[B]===ot),{stacking:at}=yh(m,F),ct=ot===0?F.yAxis:F.y2Axis||{min:void 0,max:void 0},pt=Fl(m)&&F.polarType!=="line";if(at==="percent")return{min:0,max:100};if(at==="normal"||pt){const ft=Array.from(Array(P.xValues.length),()=>({plus:0,minus:0}));let et=nt.reduce((W,R)=>(R.data.forEach(({value:H},V)=>{H<0?W[V].minus+=H||0:W[V].plus+=H||0}),W),ft).reduce((W,R)=>({min:Math.min(W.min,R.minus),max:Math.max(W.max,R.plus)}),{min:Number.MAX_VALUE,max:Number.MIN_VALUE});return et=Rs(ct,et),et=zs(m,et),F.valueLabel&&(et=Qg(ct.min||et.min,ct.max||et.max)),et}let ut=nt.reduce((ft,B)=>{const et=B.data.map(({value:W})=>W).filter(W=>!isNaN(W));return{min:Math.min(ft.min,...et),max:Math.max(ft.max,...et)}},{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY});return ut=Rs(ct,ut),ut=zs(m,ut),ut},em=m=>m.length<=1?!0:m.filter(({enabled:F})=>F).length<=1,im=(m,P)=>{if(!(!m.chartType||m.chartType==="auto"||P))return m.chartType},xh=m=>m?1:0,Xo=m=>!!m,xo=(m,P)=>Array(P).fill(m),om=m=>{if(m.length===0)return[[0],[void 0],[!1],[!1]];const P=em(m),F=m.map(({showOnRightAxis:nt})=>xh(nt)),K=m.map(nt=>im(nt,P)),tt=m.map(({treatNullDataAsZeros:nt})=>Xo(nt)),ot=m.map(({connectNulls:nt})=>Xo(nt));return[F,K,tt,ot]},rm=(m,P)=>{const F=m[0],K=xh(F==null?void 0:F.showOnRightAxis),tt=F?Xo(F.treatNullDataAsZeros):void 0,ot=F?Xo(F.connectNulls):void 0;return[xo(K,P),xo(void 0,P),xo(tt,P),xo(ot,P)]},nm=(m,P)=>{if(m.type!=="cartesian")return[[],[],[],[]];const F=P,{y:K,breakBy:tt}=F;return tt.length>0?rm(K,m.series.length):om(K)},rr=(m,P)=>{var F,K;if(m.breakBy.length===0){if(m.y.length===0)return ei;const tt=(F=m.y.find(ot=>ot.column.name===P))==null?void 0:F.color;return dh(tt)}else return(K=m.seriesToColorMap)==null?void 0:K[P]};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Ch,setPrototypeOf:Fs,isFrozen:sm,getPrototypeOf:am,getOwnPropertyDescriptor:lm}=Object;let{freeze:ke,seal:Fe,create:wh}=Object,{apply:Wr,construct:Xr}=typeof Reflect!="undefined"&&Reflect;ke||(ke=function(P){return P});Fe||(Fe=function(P){return P});Wr||(Wr=function(P,F,K){return P.apply(F,K)});Xr||(Xr=function(P,F){return new P(...F)});const Co=Ie(Array.prototype.forEach),Gs=Ie(Array.prototype.pop),Di=Ie(Array.prototype.push),Oo=Ie(String.prototype.toLowerCase),mr=Ie(String.prototype.toString),Ws=Ie(String.prototype.match),ji=Ie(String.prototype.replace),hm=Ie(String.prototype.indexOf),cm=Ie(String.prototype.trim),Ge=Ie(Object.prototype.hasOwnProperty),Te=Ie(RegExp.prototype.test),Ii=pm(TypeError);function Ie(m){return function(P){for(var F=arguments.length,K=new Array(F>1?F-1:0),tt=1;tt<F;tt++)K[tt-1]=arguments[tt];return Wr(m,P,K)}}function pm(m){return function(){for(var P=arguments.length,F=new Array(P),K=0;K<P;K++)F[K]=arguments[K];return Xr(m,F)}}function Jt(m,P){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oo;Fs&&Fs(m,null);let K=P.length;for(;K--;){let tt=P[K];if(typeof tt=="string"){const ot=F(tt);ot!==tt&&(sm(P)||(P[K]=ot),tt=ot)}m[tt]=!0}return m}function dm(m){for(let P=0;P<m.length;P++)Ge(m,P)||(m[P]=null);return m}function fi(m){const P=wh(null);for(const[F,K]of Ch(m))Ge(m,F)&&(Array.isArray(K)?P[F]=dm(K):K&&typeof K=="object"&&K.constructor===Object?P[F]=fi(K):P[F]=K);return P}function Ni(m,P){for(;m!==null;){const K=lm(m,P);if(K){if(K.get)return Ie(K.get);if(typeof K.value=="function")return Ie(K.value)}m=am(m)}function F(){return null}return F}const Xs=ke(["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","section","select","shadow","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"]),yr=ke(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),vr=ke(["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"]),um=ke(["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"]),br=ke(["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"]),fm=ke(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hs=ke(["#text"]),Ys=ke(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xr=ke(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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","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"]),Us=ke(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),wo=ke(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gm=Fe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),mm=Fe(/<%[\w\W]*|[\w\W]*%>/gm),ym=Fe(/\${[\w\W]*}/gm),vm=Fe(/^data-[\-\w.\u00B7-\uFFFF]/),bm=Fe(/^aria-[\-\w]+$/),Sh=Fe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xm=Fe(/^(?:\w+script|data):/i),Cm=Fe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Mh=Fe(/^html$/i),wm=Fe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Vs=Object.freeze({__proto__:null,MUSTACHE_EXPR:gm,ERB_EXPR:mm,TMPLIT_EXPR:ym,DATA_ATTR:vm,ARIA_ATTR:bm,IS_ALLOWED_URI:Sh,IS_SCRIPT_OR_DATA:xm,ATTR_WHITESPACE:Cm,DOCTYPE_NAME:Mh,CUSTOM_ELEMENT:wm});const Bi={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Sm=function(){return typeof window=="undefined"?null:window},Mm=function(P,F){if(typeof P!="object"||typeof P.createPolicy!="function")return null;let K=null;const tt="data-tt-policy-suffix";F&&F.hasAttribute(tt)&&(K=F.getAttribute(tt));const ot="dompurify"+(K?"#"+K:"");try{return P.createPolicy(ot,{createHTML(nt){return nt},createScriptURL(nt){return nt}})}catch(nt){return console.warn("TrustedTypes policy "+ot+" could not be created."),null}};function Ah(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sm();const P=Wt=>Ah(Wt);if(P.version="3.1.6",P.removed=[],!m||!m.document||m.document.nodeType!==Bi.document)return P.isSupported=!1,P;let{document:F}=m;const K=F,tt=K.currentScript,{DocumentFragment:ot,HTMLTemplateElement:nt,Node:at,Element:ct,NodeFilter:pt,NamedNodeMap:ut=m.NamedNodeMap||m.MozNamedAttrMap,HTMLFormElement:ft,DOMParser:B,trustedTypes:et}=m,W=ct.prototype,R=Ni(W,"cloneNode"),H=Ni(W,"remove"),V=Ni(W,"nextSibling"),$=Ni(W,"childNodes"),Z=Ni(W,"parentNode");if(typeof nt=="function"){const Wt=F.createElement("template");Wt.content&&Wt.content.ownerDocument&&(F=Wt.content.ownerDocument)}let U,z="";const{implementation:I,createNodeIterator:E,createDocumentFragment:M,getElementsByTagName:k}=F,{importNode:y}=K;let h={};P.isSupported=typeof Ch=="function"&&typeof Z=="function"&&I&&I.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:u,ERB_EXPR:g,TMPLIT_EXPR:d,DATA_ATTR:v,ARIA_ATTR:w,IS_SCRIPT_OR_DATA:S,ATTR_WHITESPACE:C,CUSTOM_ELEMENT:c}=Vs;let{IS_ALLOWED_URI:f}=Vs,r=null;const a=Jt({},[...Xs,...yr,...vr,...br,...Hs]);let t=null;const i=Jt({},[...Ys,...xr,...Us,...wo]);let o=Object.seal(wh(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}})),e=null,s=null,n=!0,l=!0,b=!1,T=!0,D=!1,p=!0,x=!1,A=!1,N=!1,_=!1,L=!1,O=!1,j=!0,Y=!1;const X="user-content-";let G=!0,q=!1,Q={},J=null;const rt=Jt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let lt=null;const gt=Jt({},["audio","video","img","source","image","track"]);let mt=null;const bt=Jt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yt="http://www.w3.org/1998/Math/MathML",ht="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let st=it,dt=!1,vt=null;const Ct=Jt({},[yt,ht,it],mr);let xt=null;const wt=["application/xhtml+xml","text/html"],Mt="text/html";let St=null,Tt=null;const Lt=F.createElement("form"),Pt=function(At){return At instanceof RegExp||At instanceof Function},Dt=function(){let At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Tt&&Tt===At)){if((!At||typeof At!="object")&&(At={}),At=fi(At),xt=wt.indexOf(At.PARSER_MEDIA_TYPE)===-1?Mt:At.PARSER_MEDIA_TYPE,St=xt==="application/xhtml+xml"?mr:Oo,r=Ge(At,"ALLOWED_TAGS")?Jt({},At.ALLOWED_TAGS,St):a,t=Ge(At,"ALLOWED_ATTR")?Jt({},At.ALLOWED_ATTR,St):i,vt=Ge(At,"ALLOWED_NAMESPACES")?Jt({},At.ALLOWED_NAMESPACES,mr):Ct,mt=Ge(At,"ADD_URI_SAFE_ATTR")?Jt(fi(bt),At.ADD_URI_SAFE_ATTR,St):bt,lt=Ge(At,"ADD_DATA_URI_TAGS")?Jt(fi(gt),At.ADD_DATA_URI_TAGS,St):gt,J=Ge(At,"FORBID_CONTENTS")?Jt({},At.FORBID_CONTENTS,St):rt,e=Ge(At,"FORBID_TAGS")?Jt({},At.FORBID_TAGS,St):{},s=Ge(At,"FORBID_ATTR")?Jt({},At.FORBID_ATTR,St):{},Q=Ge(At,"USE_PROFILES")?At.USE_PROFILES:!1,n=At.ALLOW_ARIA_ATTR!==!1,l=At.ALLOW_DATA_ATTR!==!1,b=At.ALLOW_UNKNOWN_PROTOCOLS||!1,T=At.ALLOW_SELF_CLOSE_IN_ATTR!==!1,D=At.SAFE_FOR_TEMPLATES||!1,p=At.SAFE_FOR_XML!==!1,x=At.WHOLE_DOCUMENT||!1,_=At.RETURN_DOM||!1,L=At.RETURN_DOM_FRAGMENT||!1,O=At.RETURN_TRUSTED_TYPE||!1,N=At.FORCE_BODY||!1,j=At.SANITIZE_DOM!==!1,Y=At.SANITIZE_NAMED_PROPS||!1,G=At.KEEP_CONTENT!==!1,q=At.IN_PLACE||!1,f=At.ALLOWED_URI_REGEXP||Sh,st=At.NAMESPACE||it,o=At.CUSTOM_ELEMENT_HANDLING||{},At.CUSTOM_ELEMENT_HANDLING&&Pt(At.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(o.tagNameCheck=At.CUSTOM_ELEMENT_HANDLING.tagNameCheck),At.CUSTOM_ELEMENT_HANDLING&&Pt(At.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(o.attributeNameCheck=At.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),At.CUSTOM_ELEMENT_HANDLING&&typeof At.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(o.allowCustomizedBuiltInElements=At.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),D&&(l=!1),L&&(_=!0),Q&&(r=Jt({},Hs),t=[],Q.html===!0&&(Jt(r,Xs),Jt(t,Ys)),Q.svg===!0&&(Jt(r,yr),Jt(t,xr),Jt(t,wo)),Q.svgFilters===!0&&(Jt(r,vr),Jt(t,xr),Jt(t,wo)),Q.mathMl===!0&&(Jt(r,br),Jt(t,Us),Jt(t,wo))),At.ADD_TAGS&&(r===a&&(r=fi(r)),Jt(r,At.ADD_TAGS,St)),At.ADD_ATTR&&(t===i&&(t=fi(t)),Jt(t,At.ADD_ATTR,St)),At.ADD_URI_SAFE_ATTR&&Jt(mt,At.ADD_URI_SAFE_ATTR,St),At.FORBID_CONTENTS&&(J===rt&&(J=fi(J)),Jt(J,At.FORBID_CONTENTS,St)),G&&(r["#text"]=!0),x&&Jt(r,["html","head","body"]),r.table&&(Jt(r,["tbody"]),delete e.tbody),At.TRUSTED_TYPES_POLICY){if(typeof At.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ii('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof At.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ii('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=At.TRUSTED_TYPES_POLICY,z=U.createHTML("")}else U===void 0&&(U=Mm(et,tt)),U!==null&&typeof z=="string"&&(z=U.createHTML(""));ke&&ke(At),Tt=At}},jt=Jt({},["mi","mo","mn","ms","mtext"]),Ot=Jt({},["foreignobject","annotation-xml"]),It=Jt({},["title","style","font","a","script"]),Nt=Jt({},[...yr,...vr,...um]),Zt=Jt({},[...br,...fm]),zt=function(At){let Bt=Z(At);(!Bt||!Bt.tagName)&&(Bt={namespaceURI:st,tagName:"template"});const Xt=Oo(At.tagName),Qt=Oo(Bt.tagName);return vt[At.namespaceURI]?At.namespaceURI===ht?Bt.namespaceURI===it?Xt==="svg":Bt.namespaceURI===yt?Xt==="svg"&&(Qt==="annotation-xml"||jt[Qt]):!!Nt[Xt]:At.namespaceURI===yt?Bt.namespaceURI===it?Xt==="math":Bt.namespaceURI===ht?Xt==="math"&&Ot[Qt]:!!Zt[Xt]:At.namespaceURI===it?Bt.namespaceURI===ht&&!Ot[Qt]||Bt.namespaceURI===yt&&!jt[Qt]?!1:!Zt[Xt]&&(It[Xt]||!Nt[Xt]):!!(xt==="application/xhtml+xml"&&vt[At.namespaceURI]):!1},Ht=function(At){Di(P.removed,{element:At});try{Z(At).removeChild(At)}catch(Bt){H(At)}},Kt=function(At,Bt){try{Di(P.removed,{attribute:Bt.getAttributeNode(At),from:Bt})}catch(Xt){Di(P.removed,{attribute:null,from:Bt})}if(Bt.removeAttribute(At),At==="is"&&!t[At])if(_||L)try{Ht(Bt)}catch(Xt){}else try{Bt.setAttribute(At,"")}catch(Xt){}},me=function(At){let Bt=null,Xt=null;if(N)At="<remove></remove>"+At;else{const ne=Ws(At,/^[\r\n\t ]+/);Xt=ne&&ne[0]}xt==="application/xhtml+xml"&&st===it&&(At='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+At+"</body></html>");const Qt=U?U.createHTML(At):At;if(st===it)try{Bt=new B().parseFromString(Qt,xt)}catch(ne){}if(!Bt||!Bt.documentElement){Bt=I.createDocument(st,"template",null);try{Bt.documentElement.innerHTML=dt?z:Qt}catch(ne){}}const de=Bt.body||Bt.documentElement;return At&&Xt&&de.insertBefore(F.createTextNode(Xt),de.childNodes[0]||null),st===it?k.call(Bt,x?"html":"body")[0]:x?Bt.documentElement:de},Ut=function(At){return E.call(At.ownerDocument||At,At,pt.SHOW_ELEMENT|pt.SHOW_COMMENT|pt.SHOW_TEXT|pt.SHOW_PROCESSING_INSTRUCTION|pt.SHOW_CDATA_SECTION,null)},te=function(At){return At instanceof ft&&(typeof At.nodeName!="string"||typeof At.textContent!="string"||typeof At.removeChild!="function"||!(At.attributes instanceof ut)||typeof At.removeAttribute!="function"||typeof At.setAttribute!="function"||typeof At.namespaceURI!="string"||typeof At.insertBefore!="function"||typeof At.hasChildNodes!="function")},ye=function(At){return typeof at=="function"&&At instanceof at},Et=function(At,Bt,Xt){h[At]&&Co(h[At],Qt=>{Qt.call(P,Bt,Xt,Tt)})},Gt=function(At){let Bt=null;if(Et("beforeSanitizeElements",At,null),te(At))return Ht(At),!0;const Xt=St(At.nodeName);if(Et("uponSanitizeElement",At,{tagName:Xt,allowedTags:r}),At.hasChildNodes()&&!ye(At.firstElementChild)&&Te(/<[/\w]/g,At.innerHTML)&&Te(/<[/\w]/g,At.textContent)||At.nodeType===Bi.progressingInstruction||p&&At.nodeType===Bi.comment&&Te(/<[/\w]/g,At.data))return Ht(At),!0;if(!r[Xt]||e[Xt]){if(!e[Xt]&&$t(Xt)&&(o.tagNameCheck instanceof RegExp&&Te(o.tagNameCheck,Xt)||o.tagNameCheck instanceof Function&&o.tagNameCheck(Xt)))return!1;if(G&&!J[Xt]){const Qt=Z(At)||At.parentNode,de=$(At)||At.childNodes;if(de&&Qt){const ne=de.length;for(let ue=ne-1;ue>=0;--ue){const qt=R(de[ue],!0);qt.__removalCount=(At.__removalCount||0)+1,Qt.insertBefore(qt,V(At))}}}return Ht(At),!0}return At instanceof ct&&!zt(At)||(Xt==="noscript"||Xt==="noembed"||Xt==="noframes")&&Te(/<\/no(script|embed|frames)/i,At.innerHTML)?(Ht(At),!0):(D&&At.nodeType===Bi.text&&(Bt=At.textContent,Co([u,g,d],Qt=>{Bt=ji(Bt,Qt," ")}),At.textContent!==Bt&&(Di(P.removed,{element:At.cloneNode()}),At.textContent=Bt)),Et("afterSanitizeElements",At,null),!1)},Yt=function(At,Bt,Xt){if(j&&(Bt==="id"||Bt==="name")&&(Xt in F||Xt in Lt))return!1;if(!(l&&!s[Bt]&&Te(v,Bt))){if(!(n&&Te(w,Bt))){if(!t[Bt]||s[Bt]){if(!($t(At)&&(o.tagNameCheck instanceof RegExp&&Te(o.tagNameCheck,At)||o.tagNameCheck instanceof Function&&o.tagNameCheck(At))&&(o.attributeNameCheck instanceof RegExp&&Te(o.attributeNameCheck,Bt)||o.attributeNameCheck instanceof Function&&o.attributeNameCheck(Bt))||Bt==="is"&&o.allowCustomizedBuiltInElements&&(o.tagNameCheck instanceof RegExp&&Te(o.tagNameCheck,Xt)||o.tagNameCheck instanceof Function&&o.tagNameCheck(Xt))))return!1}else if(!mt[Bt]){if(!Te(f,ji(Xt,C,""))){if(!((Bt==="src"||Bt==="xlink:href"||Bt==="href")&&At!=="script"&&hm(Xt,"data:")===0&<[At])){if(!(b&&!Te(S,ji(Xt,C,"")))){if(Xt)return!1}}}}}}return!0},$t=function(At){return At!=="annotation-xml"&&Ws(At,c)},ce=function(At){Et("beforeSanitizeAttributes",At,null);const{attributes:Bt}=At;if(!Bt)return;const Xt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:t};let Qt=Bt.length;for(;Qt--;){const de=Bt[Qt],{name:ne,namespaceURI:ue,value:qt}=de,ve=St(ne);let ae=ne==="value"?qt:cm(qt);if(Xt.attrName=ve,Xt.attrValue=ae,Xt.keepAttr=!0,Xt.forceKeepAttr=void 0,Et("uponSanitizeAttribute",At,Xt),ae=Xt.attrValue,p&&Te(/((--!?|])>)|<\/(style|title)/i,ae)){Kt(ne,At);continue}if(Xt.forceKeepAttr||(Kt(ne,At),!Xt.keepAttr))continue;if(!T&&Te(/\/>/i,ae)){Kt(ne,At);continue}D&&Co([u,g,d],_n=>{ae=ji(ae,_n," ")});const ao=St(At.nodeName);if(Yt(ao,ve,ae)){if(Y&&(ve==="id"||ve==="name")&&(Kt(ne,At),ae=X+ae),U&&typeof et=="object"&&typeof et.getAttributeType=="function"&&!ue)switch(et.getAttributeType(ao,ve)){case"TrustedHTML":{ae=U.createHTML(ae);break}case"TrustedScriptURL":{ae=U.createScriptURL(ae);break}}try{ue?At.setAttributeNS(ue,ne,ae):At.setAttribute(ne,ae),te(At)?Ht(At):Gs(P.removed)}catch(_n){}}}Et("afterSanitizeAttributes",At,null)},pe=function Wt(At){let Bt=null;const Xt=Ut(At);for(Et("beforeSanitizeShadowDOM",At,null);Bt=Xt.nextNode();)Et("uponSanitizeShadowNode",Bt,null),!Gt(Bt)&&(Bt.content instanceof ot&&Wt(Bt.content),ce(Bt));Et("afterSanitizeShadowDOM",At,null)};return P.sanitize=function(Wt){let At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bt=null,Xt=null,Qt=null,de=null;if(dt=!Wt,dt&&(Wt="<!-->"),typeof Wt!="string"&&!ye(Wt))if(typeof Wt.toString=="function"){if(Wt=Wt.toString(),typeof Wt!="string")throw Ii("dirty is not a string, aborting")}else throw Ii("toString is not a function");if(!P.isSupported)return Wt;if(A||Dt(At),P.removed=[],typeof Wt=="string"&&(q=!1),q){if(Wt.nodeName){const qt=St(Wt.nodeName);if(!r[qt]||e[qt])throw Ii("root node is forbidden and cannot be sanitized in-place")}}else if(Wt instanceof at)Bt=me("<!---->"),Xt=Bt.ownerDocument.importNode(Wt,!0),Xt.nodeType===Bi.element&&Xt.nodeName==="BODY"||Xt.nodeName==="HTML"?Bt=Xt:Bt.appendChild(Xt);else{if(!_&&!D&&!x&&Wt.indexOf("<")===-1)return U&&O?U.createHTML(Wt):Wt;if(Bt=me(Wt),!Bt)return _?null:O?z:""}Bt&&N&&Ht(Bt.firstChild);const ne=Ut(q?Wt:Bt);for(;Qt=ne.nextNode();)Gt(Qt)||(Qt.content instanceof ot&&pe(Qt.content),ce(Qt));if(q)return Wt;if(_){if(L)for(de=M.call(Bt.ownerDocument);Bt.firstChild;)de.appendChild(Bt.firstChild);else de=Bt;return(t.shadowroot||t.shadowrootmode)&&(de=y.call(K,de,!0)),de}let ue=x?Bt.outerHTML:Bt.innerHTML;return x&&r["!doctype"]&&Bt.ownerDocument&&Bt.ownerDocument.doctype&&Bt.ownerDocument.doctype.name&&Te(Mh,Bt.ownerDocument.doctype.name)&&(ue="<!DOCTYPE "+Bt.ownerDocument.doctype.name+`>
|
|
6
|
-
`+ue),D&&Co([u,g,d],qt=>{ue=ji(ue,qt," ")}),U&&O?U.createHTML(ue):ue},P.setConfig=function(){let Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dt(Wt),A=!0},P.clearConfig=function(){Tt=null,A=!1},P.isValidAttribute=function(Wt,At,Bt){Tt||Dt({});const Xt=St(Wt),Qt=St(At);return Yt(Xt,Qt,Bt)},P.addHook=function(Wt,At){typeof At=="function"&&(h[Wt]=h[Wt]||[],Di(h[Wt],At))},P.removeHook=function(Wt){if(h[Wt])return Gs(h[Wt])},P.removeHooks=function(Wt){h[Wt]&&(h[Wt]=[])},P.removeAllHooks=function(){h={}},P}var Th=Ah();const Me=(m,P)=>m!==""?`<span style="color:${P!=null?P:"currentColor"}; font-size: 15px; line-height: 18px">${m}</span>`:"",_i=(m,P)=>`${P||""}${P&&m?"<br />":""}${m||""}`,yi=m=>Th.sanitize(`<div style="min-width: 100px; color: #5B6372; font-size: 13px; line-height: 18px; margin: 4px 6px">
|
|
7
|
-
${m}
|
|
8
|
-
</div>`),ti=()=>'<hr class="csdk-border-t" style="margin: 7px 0px" />',Am=m=>{const P=m.map((F,K)=>F&&K>0?ti()+F:F).join("");return yi(P)},Tm=(m,P)=>{const{maskedX:F,maskedY:K,maskedBreakByPoint:tt,maskedSize:ot,maskedBreakByColor:nt}=m.point.custom,at=le(P.x,m.point.x,F),ct=le(P.y,m.point.y,K),pt=le(P.size,m.point.z,ot||""),ut=Me(at,m.point.color),ft=Me(ct,m.point.color),B=Me(tt||"",m.point.color),et=Me(nt||"",m.point.color),W=Me(pt,m.point.color);return{x:ut,y:ft,breakByPoint:B,breakByColor:et,size:W}},km=(m,P)=>{const F=_i(m.x,P.x&&xe(P.x)),K=_i(m.y,P.y&&xe(P.y)),tt=_i(m.breakByPoint,P.breakByPoint&&xe(P.breakByPoint)),ot=_i(m.breakByColor,P.breakByColor&&xe(P.breakByColor)),nt=_i(m.size,P.size&&xe(P.size));return{x:F,y:K,breakByPoint:tt,breakByColor:ot,size:nt}},Pm=(m,P)=>{const F=Tm(m,P),{x:K,y:tt,breakByPoint:ot,breakByColor:nt,size:at}=km(F,P);return Am([K,tt,ot,nt,at])},Lm=m=>({enabled:!0,useHTML:!0,formatter(){return Pm(this,m)}}),nr="$forecast",In="$trend",wi=m=>m.startsWith(nr),kh=m=>m.startsWith(In),Ho=m=>`${m} $range`,Em=(m,P,F)=>{if(!(m!=null&&m.data))return-1;const K=F[Ho(m.name)],tt=P[Ho(m.name)],ot=m.name.substring(nr.length+1),nt=P[ot],at=m.data.findIndex(ct=>!isNaN((ct==null?void 0:ct.y)||NaN));return at===-1?(console.debug("Forecast data has no valid data points",m.name,m.data),-1):(m.type="line",m.showInLegend=!1,m.data[at-1].y=nt.data[at-1].y,m.dashStyle="ShortDash",m.color=nt.color,m.data.forEach((ct,pt)=>{ct.high=K.data[pt].y,ct.low=tt.data[pt].y}),at)},Om=(m,P)=>{m.showInLegend=!1,m.enableMouseTracking=!1;const F=m.name.substring(nr.length+1,m.name.length-7),K=P[F];m.color=K.color,m.fillOpacity=.15,m.lineWidth=0},Dm=(m,P)=>{if(!m.data)return;const F=m.name.substring(10,m.name.length-7),K=P[F],tt=m.data.findIndex(ot=>!isNaN((ot==null?void 0:ot.low)||NaN));if(tt===-1){console.debug("Forecast range data has no valid data points",m.name,m.data);return}m.data[tt-1].low=K.data[tt-1].y,m.data[tt-1].high=K.data[tt-1].y},jm=(m,P,F)=>{m.forEach(K=>K.plotBands=[{color:"#F7F7FA",borderWidth:0,from:P-1,to:F}])},Im=(m,P)=>{m.type="line";const F=m.name.substring(In.length+1),K=P[F];m.showInLegend=!1,m.dashStyle="ShortDot",m.color=K.color;let tt=0,ot=Number.MAX_VALUE;const nt=K.data.filter(W=>W.y).map(W=>(tt=Math.max(tt,W.y||0),ot=Math.min(ot,W.y||0),W.y)),at=ot,ct=tt,pt=nt.reduce((W,R)=>W+R,0)/nt.length,ut=[...nt].sort((W,R)=>W-R),ft=Math.floor(ut.length/2),B=ut.length%2!==0?ut[ft]:(ut[ft-1]+ut[ft])/2,et={min:at,max:ct,median:B,average:pt};m.data.forEach(W=>{W.trend=et})},Nm=m=>{const P={};m.forEach(F=>{P[F.name]=F}),m.forEach(F=>{kh(F.name)&&Im(F,P)})},Ph=m=>{const{breakBy:P}=m;if(P.length>0)return!1;const F=m.category.filter(ot=>!("enabled"in ot)||ot.enabled);if(F.length!==1)return!1;const[K]=F;let tt=!1;return yn(K)?tt=K.column.type==="datelevel":lf(K)&&(tt=K.type==="datelevel"),tt},Bm=m=>Ph(m)?m.value.filter(P=>(P==null?void 0:P.trend)!==void 0).map(P=>({column:Rt.trend(P.column,`${In}_${P.column.name}`,P.trend),numberFormatConfig:P.numberFormatConfig})):[],_m=m=>Ph(m)?m.value.filter(P=>(P==null?void 0:P.forecast)!==void 0).map(P=>({column:Rt.forecast(P.column,`${nr}_${P.column.name}`,P.forecast),numberFormatConfig:P.numberFormatConfig})):[];function Lh(m){const{prefix:P,title:F}=m;return si("div",{style:{display:"flex",marginBottom:"5px"},children:[se("div",{style:{flexShrink:0},children:P}),se("div",{style:{marginLeft:"5px",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:F})]})}function gi(m){const{name:P,value:F}=m;return se("div",{style:{display:"table-row-group"},children:si("div",{style:{display:"table-row",height:"18px"},children:[se("div",{style:{display:"table-cell",overflow:"hidden",textOverflow:"ellipsis",wordWrap:"normal",wordBreak:"keep-all",whiteSpace:"nowrap"},children:P}),se("div",{style:{display:"table-cell",paddingLeft:"15px",fontWeight:"600"},children:F.map((K,tt)=>se("div",{children:K},tt))})]})})}function Eh(m){const{x1Value:P,x2Value:F}=m;return si(Ba,{children:[se("div",{style:{fontSize:"10px",color:"#666",marginTop:"6px"},children:F||P?se("hr",{className:"csdk-border-t",style:{margin:"7px 0px"}}):""}),F||"",F&&P?se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"18",viewBox:"0 0 24 24",style:{display:"inline-block"},children:se("path",{fill:"#5B6372",fillRule:"nonzero",d:"M6.84 8.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}):"",P||""]})}const Rm={smooth:"Advanced Smoothing",linear:"Linear Trend",local:"Local Estimates",logarithmic:"Logarithmic Trend"};function zm(m){const{t:P}=Kr(),F=m.translate||P,{localValue:K,trendData:tt,modelType:ot,title:nt,x1Value:at,x2Value:ct}=m,pt=[`${F("advanced.tooltip.trendData.min")} ${tt.min}`,`${F("advanced.tooltip.trendData.max")} ${tt.max}`,`${F("advanced.tooltip.trendData.median")} ${tt.median}`,`${F("advanced.tooltip.trendData.average")} ${tt.average}`];return si("div",{style:{color:rn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[se(Lh,{prefix:F("advanced.tooltip.trend"),title:nt}),si("div",{style:{display:"table"},children:[se(gi,{name:F("advanced.tooltip.trendType"),value:[Rm[ot]]}),se(gi,{name:F("advanced.tooltip.trendLocalValue"),value:[K]}),se(gi,{name:F("advanced.tooltip.trendDataKey"),value:pt})]}),se(Eh,{x1Value:at,x2Value:ct})]})}const Fm=m=>la.renderToString(se(zm,kt({},m)));function Gm(m){const{t:P}=Kr(),F=m.translate||P,{confidenceValue:K,lowerValue:tt,forecastValue:ot,upperValue:nt,title:at,x1Value:ct,x2Value:pt}=m;return si("div",{style:{color:rn,fontSize:"13px",lineHeight:"18px",margin:"4px 6px"},children:[se(Lh,{prefix:F("advanced.tooltip.forecast"),title:at}),si("div",{style:{display:"table"},children:[se(gi,{name:F("advanced.tooltip.forecastValue"),value:[ot]}),se(gi,{name:F("advanced.tooltip.max"),value:[nt]}),se(gi,{name:F("advanced.tooltip.min"),value:[tt]}),se(gi,{name:F("advanced.tooltip.confidenceInterval"),value:[K]})]}),se(Eh,{x1Value:ct,x2Value:pt})]})}const Wm=m=>la.renderToString(se(Gm,kt({},m))),Oh=function(m,P,F){var z,I,E,M,k,y,h,u,g,d,v,w;const K=m.percentage?`${Math.round(m.percentage)}`:void 0,tt=P,ot=tt.breakBy.length>0?(z=tt.y)==null?void 0:z.find(S=>S.enabled):(I=tt.y)==null?void 0:I.find(S=>S.column.title===m.series.name),nt=Ll(ot),at=le(ot,m.point.y,""),ct=(k=(M=(E=m.point)==null?void 0:E.custom)==null?void 0:M.xDisplayValue)!=null?k:m.x,pt=tt.x?le(tt.x[0],m.x,ct):ct;let ut;if((y=m.point.custom)!=null&&y.xValue&&(tt!=null&&tt.x)&&tt.x.length===2){const S=`${m.point.custom.xValue[0]}`;ut=le(tt.x[1],S,S)}const ft=at+(nt&&K?` / ${K}%`:""),B=m.point.color||m.series.color,et=wi(m.point.name||m.series.name),W=kh(m.point.name||m.series.name),R=F&&et?`${m.series.name.substring(10)}`:F&&W?`${m.series.name.substring(7)}`:m.series.name,H=(h=m.point)!=null&&h.low?le(ot,(u=m.point)==null?void 0:u.low,""):"",V=(g=m.point)!=null&&g.high?le(ot,(d=m.point)==null?void 0:d.high,""):"",$=(S,C,c)=>!S||S===""?"":!F||!et&&!W||!C?`<br /${Me(S,c)}`:`<br /><span>${F(C)} </span>${Me(S,c)}`,Z=F?`(+${F("advanced.tooltip.trend")})`:"",U=et?"advanced.tooltip.forecastValue":"";if(W){const S=/modelType=([^"]+)/,C=(v=ot==null?void 0:ot.column)==null?void 0:v.expression.match(S),c=C?C[1]:null,{min:f,max:r,median:a,average:t}=m.point.trend,i=le(ot,f,""),o=le(ot,r,""),e=le(ot,a,""),s=le(ot,t,"");return Fm({title:R,modelType:c,trendData:{min:i,max:o,median:e,average:s},localValue:ft,x1Value:pt,x2Value:ut,translate:F})}if(et){const S=/confidenceInterval=([^"]+)/,C=(w=ot==null?void 0:ot.column)==null?void 0:w.expression.match(S),c=C?C[1]:"0.8",f=(parseFloat(c)*100).toFixed(0)+"%";return Wm({title:R,confidenceValue:f,forecastValue:ft,x1Value:pt,x2Value:ut,translate:F,upperValue:V,lowerValue:H})}return yi(`
|
|
9
|
-
${R.replace(Z,"")}
|
|
10
|
-
${$(ft,U,B)}
|
|
11
|
-
${$(V,"advanced.tooltip.max",B)}
|
|
12
|
-
${$(H,"advanced.tooltip.min",B)}
|
|
13
|
-
${ut||pt?ti():""}
|
|
14
|
-
${ut||""}
|
|
15
|
-
${ut&&pt?`
|
|
16
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="18" viewBox="0 0 24 24" style="display: inline-block">
|
|
17
|
-
<path
|
|
18
|
-
fill="#5B6372"
|
|
19
|
-
fillRule="nonzero"
|
|
20
|
-
d="M6.84 8.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"
|
|
21
|
-
/>
|
|
22
|
-
</svg>
|
|
23
|
-
`:""}
|
|
24
|
-
${pt||""}
|
|
25
|
-
`)},Dh=(m,P)=>({animation:!1,backgroundColor:ii,borderColor:ei,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return Oh(this,m,P)}}),jh=(m,P,F,K,tt=!1)=>{const ct=K<(tt?200:400),ut=F*20,ft=K>ut;return!P||ct||ft?{enabled:!1}:{series:{type:m,dataGrouping:{enabled:!1}},tooltipFormatter:()=>({left:"",right:""}),enabled:!0,margin:30,height:40,xAxis:{labels:{enabled:!1}},handles:{symbols:["navigator-handle","navigator-handle"],backgroundColor:ei,borderColor:ii},maskInside:!0,maskFill:"rgba(91,99,114, 0.15)",outlineColor:ei,outlineWidth:1}};function Ih(m,P,F){m.xAxis[0].setExtremes(P,F,!1)}const vi=(m,P)=>`Maximum number of series (${P}) exceeded (${m})`,Yo=(m,P,F)=>`'${m.toUpperCase()}-Axis:' Maximum number of categories (${F}) exceeded (${P})`,$s=20,oi={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},Zs={X_AXIS_VERTICAL_RIGHT:70,X_AXIS_HORIZONTAL_TOP:20},Ks={TOP_DIVISOR:2,RIGHT_SHIFT:.1},Xm={RIGHT_MARGIN:80},Hm={FULL_ROTATION:180};function Nn(m,P){let F=0,K=0;if(P.showTotal&&P.stackType==="stack100"){const tt=Math.abs(P.totalLabelRotation||0)%Hm.FULL_ROTATION;m==="bar"&&(tt<oi.HORIZONTAL?F=40:tt<oi.DIAGONAL?F=25:tt<oi.VERTICAL?F=15:tt<oi.INVERTED_DIAGONAL?F=25:F=40),(m==="column"||m==="area")&&(tt<oi.HORIZONTAL?K=10:tt<oi.DIAGONAL?K=30:tt<oi.VERTICAL?K=40:tt<oi.INVERTED_DIAGONAL?K=30:K=10)}return{rightSpacing:F,topSpacing:K}}function Ym(m,P){const{rightSpacing:F,topSpacing:K}=Nn(m,P);let tt=0,ot=0;return K>0&&(ot=-1*(K/Ks.TOP_DIVISOR)),F>0&&(tt=Ks.RIGHT_SHIFT),{rightShift:tt,topShift:ot}}function Um(m){const{chartData:P,chartDesignOptions:F,xAxisOrientation:K}=m,tt=!On(F.legend)&&P.xAxisCount>1&&K==="vertical"?Zs.X_AXIS_VERTICAL_RIGHT:0,ot=P.xAxisCount>1&&K==="horizontal"?Zs.X_AXIS_HORIZONTAL_TOP:0;return{rightSpacing:tt,topSpacing:ot}}function Vm(m){const{chartType:P,chartDesignOptions:F}=m;return Nn(P,F)}function $m(m){const P=Um(m),F=Vm(m),K=Ym(m.chartType,m.chartDesignOptions),tt=$s+F.topSpacing+P.topSpacing,ot=$s+F.rightSpacing+P.rightSpacing;return{totalTopSpacing:tt,totalRightSpacing:ot,rightShift:K.rightShift,topShift:K.topShift}}function Zm(m,P,F){var K,tt;if(m==="bar"&&P.x.length>1&&On(F.legend))return{margin:(tt=(K=F.legend)==null?void 0:K.margin)!=null?tt:Xm.RIGHT_MARGIN}}const Km=m=>{switch(m){case Rt.DateLevels.Years:return 31536e6;case Rt.DateLevels.Quarters:return 7884e6;case Rt.DateLevels.Months:return 2592e6;case Rt.DateLevels.Weeks:return 6048e5;case Rt.DateLevels.Days:return 864e5;case Rt.DateLevels.AggHours:case Rt.DateLevels.Hours:return 36e5;case Rt.DateLevels.AggMinutesRoundTo30:case Rt.DateLevels.MinutesRoundTo30:return 18e5;case Rt.DateLevels.AggMinutesRoundTo15:case Rt.DateLevels.MinutesRoundTo15:return 9e5;case Rt.DateLevels.AggMinutesRoundTo1:return 6e4}return console.warn("Unsupported level"),0},qm=(m,P)=>{const F=mn(m),K=(m==null?void 0:m.dateFormat)||vn(F);return!P||!K?tt=>`${tt}`:function(tt){return P(new Date(tt),K)}},Jm=(m,P,F,K)=>{const tt=mn(P),ot=(B,et)=>B.lastValue?{minInterval:Math.min(et-B.lastValue,B.minInterval),lastValue:et}:_t(kt({},B),{lastValue:et}),nt=F[0],at=F[F.length-1];let ct=tt?Km(tt):F.reduce(ot,{minInterval:(at-nt)/(F.length-1),lastValue:void 0}).minInterval;if(ct<30*864e5&&ct>25*864e5&&(ct=2592e6),F.length>1&&(isNaN(ct)||ct===0))throw new Rt.TranslatableError("errors.ticIntervalCalculationFailed");let pt;const ut=(P==null?void 0:P.dateFormat)||vn(tt);K&&ut&&(pt=function(){const B=this;return K(new Date(B.value),ut)});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[Be(zr,{type:"datetime",title:{enabled:m.enabled&&m.titleEnabled,text:m.title},dateTimeLabelFormats:ft,gridLineDashStyle:"Dot",gridLineWidth:m.enabled&&m.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:_t(kt({},pt&&{formatter:pt}),{overflow:"none",enabled:m.enabled&&m.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we}),min:nt,max:at,tickInterval:ct,minTickInterval:ct,tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,startOfWeek:4,showFirstLabel:!0,showLastLabel:!0,minRange:ct,isDate:!0})]},Qm=(m,P,F,K,tt,ot)=>{const nt=(K||[]).map(ft=>({isPlotBand:!0,from:ft.from,to:ft.to,label:kt({text:ft.text,y:-5,style:_t(kt({},we),{width:"70px",textOverflow:"ellipsis"})},tt==="vertical"&&{align:"right",x:5,textAlign:"left",y:0})})),at=(K||[]).filter(ft=>ft.from>0).map(ft=>({color:"#C0D0E0",dashStyle:"shortDot",width:1,value:ft.from})),ct=ot,pt=ct.x[ct.x.length-1];let ut=[Be(zr,{type:m.type,title:{enabled:m.enabled&&m.titleEnabled,text:m.title},gridLineDashStyle:"Dot",gridLineWidth:m.enabled&&m.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:{enabled:m.enabled&&m.labels,style:we,formatter:function(){const ft=this;return!pt||!Rt.isNumber(pt==null?void 0:pt.column.type)||isNaN(parseFloat(ft.value))?ft.value:Ce(he(pt==null?void 0:pt.numberFormatConfig),parseFloat(ft.value))}},min:m.min,max:m.max,tickInterval:m.tickInterval,categories:F,plotBands:nt,plotLines:at,tickmarkPlacement:"on"})];return P&&(ut=ut.concat(Be(zr,{title:{enabled:P.enabled&&P.titleEnabled,text:P.title},categories:F,opposite:!0,gridLineWidth:0,tickWidth:0,lineWidth:0}))),ut},ty=(m,P,F)=>{const K=[{minClipped:!!(m.enabled&&m.min),maxClipped:!!(m.enabled&&m.max)}];return F&&K.push({minClipped:!!(P!=null&&P.enabled&&P.min),maxClipped:!!(P!=null&&P.enabled&&P.max)}),K},Nh=(m,P,F,K,tt,ot)=>{var ft,B,et,W;const nt=tt,at=he((ft=nt.y.find(({showOnRightAxis:R})=>!R))==null?void 0:ft.numberFormatConfig),ct=he((B=nt.y.find(({showOnRightAxis:R})=>R))==null?void 0:B.numberFormatConfig);function pt(R){return function(){return Ce(R,this.value)}}const ut=[Be(Is,_t(kt(kt({type:m.type,title:{enabled:m.enabled&&m.titleEnabled,text:m.title},gridLineDashStyle:"Dot",gridLineWidth:m.enabled&&m.gridLine?1:0,gridLineColor:Ae,tickWidth:0,lineColor:Ae,lineWidth:1,labels:{enabled:m.enabled&&m.labels,style:we,formatter:pt(at)},startOnTick:!(m.enabled&&m.min)},m.min&&{minPadding:0}),m.max&&{maxPadding:0}),{min:m.enabled?(et=m.min)!=null?et:F.min:null,max:m.enabled?(W=m.max)!=null?W:F.max:null,tickInterval:m.enabled?m.tickInterval:null,stackLabels:{enabled:!1,formatter:pt(at),style:kt(kt({},Qi),ot?{color:ot.typography.primaryTextColor}:null),rotation:0}}))];if(K){const R={startOnTick:!(P!=null&&P.enabled&&P.min),min:P!=null&&P.enabled?P.min||K.min:null,max:P!=null&&P.enabled?P.max||K.max:null},H=P!=null&&P.enabled?{opposite:!0,gridLineWidth:0,title:{enabled:P.enabled&&P.titleEnabled,text:P.title},labels:{enabled:P.enabled&&P.labels,style:we,formatter:pt(ct)},tickInterval:P.enabled?P.tickInterval:null,stackLabels:{enabled:!1,formatter:pt(ct),style:kt(kt({},Qi),ot?{color:ot.typography.primaryTextColor}:null),rotation:0}}:{visible:!1};ut.push(Be(Is,kt(kt({},R),H)))}return ut},ey=m=>m.map(P=>_t(kt({},P),{title:_t(kt({},P.title),{textAlign:"center",align:"high",y:-25})})),iy=m=>m.map(P=>_t(kt({},P),{labels:_t(kt({},P.labels),{rotation:0})})),Bh=Jo(ey,iy),oy=m=>P=>{var ft,B;const{stacking:F,showTotal:K=!1,totalLabelRotation:tt=0,dataOptions:ot,themeSettings:nt}=m;if(!K&&!F)return P;const at=ot,ct=he((ft=at.y.find(({showOnRightAxis:et})=>!et))==null?void 0:ft.numberFormatConfig),pt=he((B=at.y.find(({showOnRightAxis:et})=>et))==null?void 0:B.numberFormatConfig);function ut(et,W,R=!1){return function(){const H=typeof this.value=="number"?this.value:parseFloat(this.value),V=R&&this.total||H,$=Ce(et,V);return W==="percent"?`${$}%`:$}}return P.map((et,W)=>{const H=W===1?pt:ct;return _t(kt({},et),{labels:F?_t(kt({},et.labels),{formatter:ut(H,F)}):et.labels,stackLabels:K?_t(kt({},et.stackLabels),{enabled:!0,formatter:ut(H,"normal",!0),style:kt(kt({},Qi),nt?{color:nt.typography.primaryTextColor}:null),rotation:tt,crop:!0,allowOverlap:!1,labelrank:99999}):et.stackLabels})})},ry=m=>P=>Fl(m)?Bh(P):P,ny=(m,P)=>{const F=m;if(F.x.length!==2)return P;const{categories:K,indexMap:tt,plotBands:ot}=P,nt=F.x[1],at=F.x[0],ct=he(nt==null?void 0:nt.numberFormatConfig),pt=he(at==null?void 0:at.numberFormatConfig);let ut=K;nt&&Rt.isNumber(nt.column.type)&&(ut=K.map(B=>Ce(ct,parseFloat(B))));let ft=ot;return at&&Rt.isNumber(at.column.type)&&(ft=ot.map(B=>{const et=Ce(pt,parseFloat(B.text));return _t(kt({},B),{text:et})})),{categories:ut,indexMap:tt,plotBands:ft}},sy=(m,P)=>{const{stackType:F}=P;return F==="classic"&&(oh(m)||Sg(m))},ay=m=>{const{xValues:P,xAxisCount:F}=m;return F!==2||P.length===0},Cr=(m,P)=>({plotBands:[],indexMap:m.map((F,K)=>K),categories:P}),ly=(m,P,F,K)=>{const{xValues:nt}=m,{y:at}=P;if(sy(P,F))return Cr(nt,at.map(R=>xe(R)));if(K)return Cr(nt,nt.map(Cl).map(R=>`${R}`));if(ay(m))return Cr(nt,nt.map(R=>R.xValues[0]));const ct=[],pt=[],ut=[];let ft=nt[0].xValues[0],B=-.5;nt.map((R,H)=>{const V=R.xValues[1],$=R.xValues[0];if($!==ft){ct.push(-1);const Z=ct.length-1;ut.push(" "),pt.push({text:ft,from:B,to:Z}),B=Z,ft=$}return ct.push(H),ut.push(V),R.xValues[1]});const et=nt.length-1,W=nt[et].xValues[0];return pt.push({text:W,from:B,to:ct.length-.5}),{categories:ut,indexMap:ct,plotBands:pt}},_h=m=>m.length===1&&!!m[0].continuous&&Rt.isDatetime(m[0].column.type),Rh=(m,P)=>{const[F,K,tt,ot]=nm(m,P);return{side:F,chartType:K,treatNullAsZero:tt,connectNulls:ot}},hy=(m,P)=>m==="bar"||P.includes("bar")?"vertical":"horizontal",zh=(m,P,F,K)=>{const{categoriesCapacity:tt}=F.dataLimits,ot=_t(kt({},m),{xValues:m.xValues.slice(0,tt)}),{categories:nt,indexMap:at,plotBands:ct}=ny(P,ly(ot,P,F,K));return{categories:nt,indexMap:at,plotBands:ct}},Fh=({designOptions:m,dataOptions:P,chartData:F,categoriesMeta:K,orientation:tt,isContinuous:ot,dateFormatter:nt})=>ot?Jm(m.xAxis,P.x[0],F.xValues.map(Cl),nt):Qm(m.xAxis,m.x2Axis,K.categories,K.plotBands,tt,P),Hr=(m,P,F,K,tt,ot)=>tm(P,F,K,tt,ot,m),cy=(m,P)=>yh(m,P),py=m=>_t(kt({},m),{yAxis:_t(kt({},m.yAxis),{titleEnabled:!1,title:null})}),dy=(m,P,F,K,tt,ot,nt,at)=>{var pt;const ct=Nh(m,P,F,K,nt,at);return{settings:oy({stacking:tt.stacking,showTotal:(pt=tt.showTotal)!=null?pt:!1,totalLabelRotation:ot,dataOptions:nt,themeSettings:at})(ct),clipped:ty(m,P,K)}},Gh=m=>m.some(P=>P===1);function uy(m){const{chartData:P,chartDesignOptions:F,dataOptions:K,continuousDatetimeXAxis:tt,indexMap:ot,categories:nt,treatNullDataAsZeros:at,yTreatNullDataAsZeros:ct,yConnectNulls:pt,yAxisSide:ut,yAxisChartType:ft,yAxisSettings:B,axisClipped:et,xAxisSettings:W,stacking:R,themeSettings:H,dateFormatter:V}=m,{seriesCapacity:$}=F.dataLimits;return P.series.slice(0,$).map((Z,U)=>{var k,y,h,u,g,d,v,w,S;const z=fy(K,Z.name),I=z==null?void 0:z.column.name,E=gy(F,I),M=yy({seriesValue:Z,continuousDatetimeXAxis:tt,indexMap:ot,categories:nt,treatNullDataAsZeros:at,yTreatNullDataAsZeros:ct,index:U,stacking:R,dataOptions:K,chartDesignOptions:F,xAxisSettings:W,yAxisSettings:B,axisClipped:et,dateFormatter:V});return kt(kt(kt(kt(_t(kt(_t(kt({},M),{showInNavigator:!0,stickyTracking:!1,boostThreshold:0,turboThreshold:0,color:my(K,Z.name,H,U),yAxis:ut[U]}),ft[U]&&{type:ft[U]}),{dataLabels:{formatter:Yg(z==null?void 0:z.numberFormatConfig,F.valueLabel)},connectNulls:pt[U],marker:mh(E.marker)}),((k=E.line)==null?void 0:k.width)!==void 0&&{lineWidth:(y=E.line)==null?void 0:y.width}),((h=E.line)==null?void 0:h.dashStyle)!==void 0&&{dashStyle:(u=E.line)==null?void 0:u.dashStyle}),((g=E.line)==null?void 0:g.endCap)!==void 0&&{linecap:(v=(d=E.line)==null?void 0:d.endCap)==null?void 0:v.toLowerCase()}),((w=E.line)==null?void 0:w.shadow)!==void 0&&{shadow:(S=E.line)==null?void 0:S.shadow})})}function fy(m,P){return m.breakBy.length?m.y[0]:m.y.find(({column:{name:F}})=>F===P)}function gy(m,P){var tt;return(P?(tt=m.designPerSeries)==null?void 0:tt[P]:void 0)||m}function my(m,P,F,K){var tt,ot;return(ot=rr(m,P))!=null?ot:He((tt=F==null?void 0:F.palette)==null?void 0:tt.variantColors,K||0)}function yy(m){const{seriesValue:P,continuousDatetimeXAxis:F,indexMap:K,categories:tt,treatNullDataAsZeros:ot,yTreatNullDataAsZeros:nt,index:at,stacking:ct,dataOptions:pt,chartDesignOptions:ut,xAxisSettings:ft,yAxisSettings:B,axisClipped:et,dateFormatter:W}=m;return F?Zg(P,K,ot||nt[at],ft[0].tickInterval,ut.dataLimits.categoriesCapacity,qm(pt.x[0],W),B[at],et[at]):oh(pt)&&!ct?Ti(P,$g(tt,at),ot||nt[at]):Ti(P,K,ot||nt[at])}const vy=(m,P)=>F=>F.stackLabels?_t(kt({},F),{stackLabels:_t(kt({},F.stackLabels),{x:m,y:P})}):F,by=(m,P)=>F=>{var ot;if(!((ot=F.plotBands)!=null&&ot.length))return F;const K=15,tt=F.plotBands.map(nt=>{var ft,B;if(!nt.label)return nt;const at=(ft=nt.label.x)!=null?ft:0,ct=(B=nt.label.y)!=null?B:0,pt=m?m+K:0,ut=P?P+K:0;return _t(kt({},nt),{label:_t(kt({},nt.label),{x:at+pt,y:ct-ut})})});return _t(kt({},F),{plotBands:tt})};function Wh(m){return P=>P.map(vy(m.rightShift,m.topShift))}function Xh(m){return P=>P.map(by(m.totalLabelRightSpacing,m.totalLabelTopSpacing))}function xy(m,P,F){const K=m==="area"&&F!==void 0,tt="polarType"in P?P.polarType:void 0;return{treatNullDataAsZeros:K,isPolarChart:!!tt,polarType:tt}}const qs=20,Uo=(m,P,F,K,tt,ot,nt)=>{var d;const at=[];if(m.type!=="cartesian")throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:m.type});const ct=Li(P,F),{seriesCapacity:pt,categoriesCapacity:ut}=F.dataLimits;m.xValues.length>ut&&at.push(Yo("x",m.xValues.length,ut)),m.series.length>pt&&at.push(vi(m.series.length,pt));const ft=_h(K.x),B=Rh(m,K),et=hy(P,B.chartType),W=zh(m,K,F,ft),R=Fh({designOptions:F,dataOptions:K,chartData:m,categoriesMeta:W,orientation:et,isContinuous:ft,dateFormatter:nt}),H=Hr(0,P,m,F,B.side,B.treatNullAsZero),V=Gh(B.side)?Hr(1,P,m,F,B.side,B.treatNullAsZero):void 0,$=cy(P,F),Z=(d=F.totalLabelRotation)!=null?d:0,U=dy(F.yAxis,F.y2Axis,H,V,$,Z,K,ot),z=$m({chartType:P,chartData:m,chartDesignOptions:F,xAxisOrientation:et}),I=xy(P,F,$.stacking),E=F,{rightSpacing:M,topSpacing:k}=E.showTotal&&E.stackType==="stack100"?Nn(P,E):{rightSpacing:0,topSpacing:0},y=Jo(ry(P),Xh({totalLabelRightSpacing:M,totalLabelTopSpacing:k}))(R),h=Wh({rightShift:z.rightShift,topShift:z.topShift})(U.settings),u=uy({chartData:m,chartType:P,chartDesignOptions:F,dataOptions:K,continuousDatetimeXAxis:ft,indexMap:W.indexMap,categories:W.categories,treatNullDataAsZeros:I.treatNullDataAsZeros,yTreatNullDataAsZeros:B.treatNullAsZero,yConnectNulls:B.connectNulls,yAxisSide:B.side,yAxisChartType:B.chartType,yAxisSettings:h,axisClipped:U.clipped,xAxisSettings:y,stacking:$.stacking,themeSettings:ot,dateFormatter:nt});return{options:Be(mg(P,I.polarType,$.stacking),{title:{text:null},chart:{type:ct,spacing:[z.totalTopSpacing,z.totalRightSpacing,qs,qs],alignTicks:!1,polar:I.isPolarChart,events:{load:function(){var c;if(K.x.length===2)return;const v=this,w=v.chartWidth,S=v.chartHeight,C=jh(ct,F.autoZoom.enabled,m.xValues.length,P==="bar"?S:w,P==="bar");if(C.enabled&&((c=F.autoZoom)!=null&&c.scrollerLocation)){const{min:f,max:r}=F.autoZoom.scrollerLocation;Ih(v,f,r)}v.update({navigator:C},!0)}}},xAxis:y,yAxis:h,legend:kt(kt({},di(F.legend)),Zm(P,K,F)),series:u,plotOptions:{series:kt({dataLabels:I.isPolarChart?Vg(F.valueLabel,I.polarType):Ug(et,F.valueLabel,!!($.stacking&&P!=="area")),marker:mh(F.marker),stacking:$.stacking||void 0,connectNulls:!1},P==="line"&&F.step&&{step:F.step})},tooltip:Dh(K,tt)}),alerts:at}},Cy=(m,P,F)=>{var et,W,R;const K=m.percentage?P?m.percentage.toFixed(1):`${Math.round(m.percentage)}`:void 0,tt=F,nt=he((()=>{var V,$,Z;const H=(V=tt.y)==null?void 0:V.find(U=>U.column.name===m.series.name);if(H!=null&&H.numberFormatConfig)return H.numberFormatConfig;if(tt.breakBy.length>0)return(Z=($=tt.y)==null?void 0:$.find(U=>U.enabled))==null?void 0:Z.numberFormatConfig})()),at=(R=(W=(et=m.point)==null?void 0:et.custom)==null?void 0:W.xDisplayValue)!=null?R:m.x,ct=mi(nt,m.y)+(K?` / ${K}%`:""),pt=m.point.color||m.series.color,ut=m.series.name||"",ft=m.point.name||"";return yi(`
|
|
26
|
-
${ut}
|
|
27
|
-
${ut&&ft?" - ":""}
|
|
28
|
-
${ft}
|
|
29
|
-
<br />
|
|
30
|
-
${Me(ct,pt)}
|
|
31
|
-
${at?ti()+at:""}
|
|
32
|
-
`)},Bn=(m,P)=>({animation:!1,backgroundColor:ii,borderColor:ei,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return Cy(this,m,P)}}),Hh="Other",Yh="Others",wy="#525A6B",Uh=(m,P)=>{var F;return m+((F=P.y)!=null?F:0)},Js=(m,P,F)=>{var K;return((K=m.y)!=null?K:0)/P>=F},Vh=m=>[{name:Hh,id:Yh,data:[...m],type:"pie"}],$h=m=>({y:m.reduce(Uh,0),name:Hh,color:wy,sliced:!1,drilldown:Yh}),Zh=({convolution:m})=>({series:P,convolutionSeries:F})=>{if((m==null?void 0:m.minimalIndependentSlicePercentage)===void 0||P.length===0)return{series:P,convolutionSeries:F};const K=m.minimalIndependentSlicePercentage/100,tt=P[0].data.reduce(Uh,0),ot=P[0].data.filter(ct=>Js(ct,tt,K)),nt=P[0].data.filter(ct=>!Js(ct,tt,K));return nt.length===0?{series:P,convolutionSeries:F}:{series:[_t(kt({},P[0]),{data:[...ot,$h(nt)]}),...P.slice(1)],convolutionSeries:Vh(nt)}},Kh=({convolution:m})=>({series:P,convolutionSeries:F})=>{if((m==null?void 0:m.independentSlicesCount)===void 0||P.length===0)return{series:P,convolutionSeries:F};const K=m.independentSlicesCount,tt=P[0].data.map((ft,B)=>_t(kt({},ft),{index:B})).sort((ft,B)=>{var et,W;return((et=B.y)!=null?et:0)-((W=ft.y)!=null?W:0)}),ot=tt.slice(0,K);if(tt.slice(K).length===0)return{series:P,convolutionSeries:F};const at=new Set(ot.map(ft=>ft.index)),ct=P[0].data.filter((ft,B)=>at.has(B)),pt=P[0].data.filter((ft,B)=>!at.has(B));return{series:[_t(kt({},P[0]),{data:[...ct,$h(pt)]}),...P.slice(1)],convolutionSeries:Vh(pt)}},qh=(m,P)=>{const F=[];return m.xAxisCount===0?m.series.length>P&&F.push(vi(m.series.length,P)):m.xValues.length>P&&F.push(vi(m.xValues.length,P)),F},Jh=(m,P,F,K)=>{if(m.xAxisCount===0){const tt=m.series.slice(0,F),ot=tt.map(nt=>{var at;return(at=nt.title)!=null?at:nt.name});return[{name:"",data:tt.map(nt=>Ti(nt,[0],!1,ot,void 0,!0).data).flat().map((nt,at)=>{var ct,pt;return _t(kt({},nt),{sliced:(ct=nt.selected)!=null?ct:!1,name:ot[at],color:(pt=rr(P,tt[at].name))!=null?pt:He(K==null?void 0:K.palette.variantColors,at)})}),boostThreshold:0,turboThreshold:0}]}else{const tt=m.xValues.slice(0,F).map(at=>at.xValues.join(",")),ot=tt.map((at,ct)=>ct),nt=tt.map((at,ct)=>{var pt,ut,ft;return(ft=(pt=P.seriesToColorMap)==null?void 0:pt[at])!=null?ft:He((ut=K==null?void 0:K.palette)==null?void 0:ut.variantColors,ct)});return m.series.map(at=>{const ut=Ti(at,ot,!1,tt,nt,!0),{data:ct}=ut,pt=Pe(ut,["data"]);return _t(kt({},pt),{data:ct.map(ft=>{var B;return _t(kt({},ft),{sliced:(B=ft.selected)!=null?B:!1})}),boostThreshold:0,turboThreshold:0})})}},Qh=({chartData:m,dataOptions:P,seriesCapacity:F,convolution:K,themeSettings:tt})=>{const ot=Jh(m,P,F,tt);if(!(K!=null&&K.enabled))return ot;const nt=K.selectedConvolutionType==="byPercentage"?Zh({convolution:K}):K.selectedConvolutionType==="bySlicesCount"?Kh({convolution:K}):ct=>ct,{series:at}=nt({series:ot,convolutionSeries:[]});return at},tc=({chartData:m,dataOptions:P,seriesCapacity:F,convolution:K,themeSettings:tt})=>{if(!(K!=null&&K.enabled))return[];const ot=Jh(m,P,F,tt),nt=K.selectedConvolutionType==="byPercentage"?Zh({convolution:K}):K.selectedConvolutionType==="bySlicesCount"?Kh({convolution:K}):()=>({series:ot,convolutionSeries:[]}),{convolutionSeries:at}=nt({series:ot,convolutionSeries:[]});return at},Sy=(m,P,F,K)=>{const{seriesCapacity:tt}=F.dataLimits,ot=F==null?void 0:F.convolution,nt=qh(m,tt),at=Qh({chartData:m,dataOptions:P,seriesCapacity:tt,convolution:ot,themeSettings:K}),ct=tc({chartData:m,dataOptions:P,seriesCapacity:tt,convolution:ot,themeSettings:K});return{series:at,alerts:nt,convolutionSeries:ct}},My=(m,P,F,K)=>{var ft;const tt=[],ot=Li("pie",P),nt=20,{series:at,convolutionSeries:ct,alerts:pt}=Sy(m,F,P,K);return tt.push(...pt),{options:{title:{text:null},chart:{type:ot,spacing:[nt,20,20,20],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:di(P.legend),series:at,plotOptions:ih(P.pieType,P.pieLabels,F,K),tooltip:Bn((ft=P.pieLabels)==null?void 0:ft.showDecimals,F),drilldown:{activeDataLabelStyle:{cursor:"pointer",fontWeight:"bold",textDecoration:"none"},series:ct}},alerts:tt}},Ay=(m,P,F,K)=>{let tt;const ot=[],{seriesCapacity:nt}=F.dataLimits;if(m.xAxisCount===0){m.series.length>nt&&ot.push(vi(m.series.length,nt));const at=m.series.slice(0,nt),ct=at.map(pt=>{var ut;return(ut=pt.title)!=null?ut:pt.name});tt=[{name:"",data:at.map(pt=>Ti(pt,[0],!1,ct).data).flat().map((pt,ut)=>{var ft;return _t(kt({},pt),{name:ct[ut],color:(ft=rr(P,at[ut].name))!=null?ft:He(K==null?void 0:K.palette.variantColors,ut)})}),boostThreshold:0,turboThreshold:0}],Qs(tt[0])}else{m.xValues.length>nt&&ot.push(vi(m.xValues.length,nt));const at=m.xValues.slice(0,nt).map(ut=>ut.xValues.join(",")),ct=at.map((ut,ft)=>ft),pt=at.map((ut,ft)=>{var B,et,W;return(W=(B=P.seriesToColorMap)==null?void 0:B[ut])!=null?W:He((et=K==null?void 0:K.palette)==null?void 0:et.variantColors,ft)});tt=m.series.map(ut=>_t(kt({},Qs(Ti(ut,ct,!1,at,pt))),{boostThreshold:0,turboThreshold:0}))}return{series:tt,alerts:ot}},Qs=m=>{let P=0;const F=m.data.map((K,tt)=>{const ot=K.y;return tt===0&&(P=ot),K.custom=_t(kt({},K.custom),{number1:Ag(P,ot)}),K});return _t(kt({},m),{data:F})},Ty=(m,P,F,K)=>{var pt;const tt=[],ot=Li("funnel",P),{series:nt,alerts:at}=Ay(m,F,P,K);return tt.push(...at),{options:{title:{text:null},chart:{type:ot,spacing:[30,30,30,30],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:di(P.legend),series:nt,plotOptions:_g(P,F,K),tooltip:Bn((pt=P.funnelLabels)==null?void 0:pt.showDecimals,F)},alerts:tt}},ec=(m,P,F,K)=>({animation:!1,backgroundColor:ii,borderColor:ei,borderRadius:10,borderWidth:1,padding:1,useHTML:!0,outside:!0,formatter:function(){return Ly(this,m,P,F,K)}}),ky=`
|
|
33
|
-
<div style="position: absolute; top: 100%; right: 40px; z-index: 1">
|
|
34
|
-
<div style="
|
|
35
|
-
border: solid transparent;
|
|
36
|
-
content: ' ';
|
|
37
|
-
height: 0;
|
|
38
|
-
width: 0;
|
|
39
|
-
position: absolute;
|
|
40
|
-
pointer-events: none;
|
|
41
|
-
border-color: rgba(136,136,136,0);
|
|
42
|
-
border-top-color: #ccc;
|
|
43
|
-
border-width: 7px 12px 12px 12px;
|
|
44
|
-
margin-left: -7px;
|
|
45
|
-
"></div>
|
|
46
|
-
<div style="
|
|
47
|
-
border: solid transparent;
|
|
48
|
-
content: ' ';
|
|
49
|
-
height: 0;
|
|
50
|
-
width: 0;
|
|
51
|
-
position: absolute;
|
|
52
|
-
pointer-events: none;
|
|
53
|
-
border-color: rgba(255,255,255,0);
|
|
54
|
-
border-top-color: #fff;
|
|
55
|
-
border-width: 6px 11px 11px 11px;
|
|
56
|
-
margin-left: -6px;
|
|
57
|
-
"></div>
|
|
58
|
-
</div>
|
|
59
|
-
`;function Py(m,P){return m/(P/100)}function So(m,P){return`${Py(m,P).toPrecision(3)}%`}function Ly(m,P,F,K,tt){var et,W,R,H,V,$,Z,U,z,I;if(tt!=null&&tt.shouldSkip&&tt.shouldSkip(m))return!1;const ot=((et=P.y)==null?void 0:et.length)===0,nt=he((R=(W=P.y)==null?void 0:W[0])==null?void 0:R.numberFormatConfig),at=((H=F==null?void 0:F.tooltip)==null?void 0:H.mode)==="contribution",ct=xe((V=P.y)==null?void 0:V[0]),pt=m.color;let ut=0;const ft=[],B=E=>{if(E.parentNode)ft.push(E);else{ut=E.val;return}B(E.parentNode)};return B(m.point.node),`
|
|
60
|
-
<div
|
|
61
|
-
class="csdk-treemap-tooltip-wrapper"
|
|
62
|
-
style="padding-bottom: ${ot?"0":"10px"};"
|
|
63
|
-
>
|
|
64
|
-
${[...ft].reverse().map((E,M)=>{const k=M===ft.length-1;return`
|
|
65
|
-
<div
|
|
66
|
-
class="csdk-treemap-tooltip-level"
|
|
67
|
-
style="background: ${k?"#f2f2f2":"white"};"
|
|
68
|
-
>
|
|
69
|
-
${tt!=null&&tt.displayColorCircles?Ey(E.color):""}
|
|
70
|
-
<span
|
|
71
|
-
style="color: ${k?pt:"currentColor"}"
|
|
72
|
-
>${E.name}</span>
|
|
73
|
-
<span
|
|
74
|
-
style="color: ${k?"#5B6372":"currentColor"}; margin-left: auto;"
|
|
75
|
-
>${at?So(E.val,ut):mi(nt,E.val)}</span>
|
|
76
|
-
${k?"":ky}
|
|
77
|
-
</div>`}).join("")}
|
|
78
|
-
${ot?"":`<div class="csdk-treemap-tooltip-value">
|
|
79
|
-
<span style="color:${pt}; font-size: 15px">${at?So(ft[0].val,ut):mi(nt,($=ft[0])==null?void 0:$.val)}</span> ${K("treemap.tooltip.of")} ${ct}
|
|
80
|
-
</div>`}
|
|
81
|
-
${ft[1]?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
|
|
82
|
-
<span style="color:${pt}; font-size: 15px">${So((Z=ft[0])==null?void 0:Z.val,(U=ft[1])==null?void 0:U.val)}
|
|
83
|
-
</span> ${K("treemap.tooltip.of")} ${(z=ft[1])==null?void 0:z.name}
|
|
84
|
-
</div>`:""}
|
|
85
|
-
${tt!=null&&tt.displayTotalContribution&&!at?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
|
|
86
|
-
<span style="color:${pt}; font-size: 15px">${So((I=ft[0])==null?void 0:I.val,ut)}
|
|
87
|
-
</span> ${K("treemap.tooltip.ofTotal")}
|
|
88
|
-
</div>`:""}
|
|
89
|
-
</div>
|
|
90
|
-
</div>`}function Ey(m){return`
|
|
91
|
-
<div style="
|
|
92
|
-
width: 12px;
|
|
93
|
-
height: 12px;
|
|
94
|
-
border-radius: 100%;
|
|
95
|
-
background-color: ${m};
|
|
96
|
-
margin-right: 6px;
|
|
97
|
-
"></div>
|
|
98
|
-
`}var Yr={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(m,P){(function(F,K){m.exports=K()})(self,()=>(()=>{var F={50:function(ot,nt,at){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(at(4501));nt.default=function(ut){var ft,B,et=ut.objectEach,W=ut.pick,R="legend-hovered",H=document.documentElement.ontouchstart!==void 0;function V(){clearTimeout(ft),clearTimeout(B),ft=null,B=null}ut.wrap(ut.Legend.prototype,"renderItem",function($,Z){$.call(this,Z);var U=Z.chart?Z.chart:Z.series.chart,z=!!Z.series,I=U.options.$familyType==="pie",E=z?["graphic"]:["group","markerGroup"],M=Z.legendItem.group.element,k=z?Z.series.points:this.chart.series;function y(S){var C=[];return(S.yAxis||[]).forEach(function(c){c.options.stackLabels&&!c.options.stackLabels.allowOverlap&&et(c.stacking.stacks,function(f){et(f,function(r){r&&r.label&&(r.label.isStackLabel=!0),C.push(r.label)})})}),C}function h(){if(B=null,!ft){var S=w(Z),C={totalsRank:Number.MIN_SAFE_INTEGER};v(Z),g(S,C)}}function u(){ft=null,B||function(S){var C=[],c=[],f={totalsRank:Number.MIN_SAFE_INTEGER};(U.series||[]).forEach(function(a){C=C.concat(w(a)),a!==S&&a.visible&&v(a)});var r=y(U);g(c=c.concat(C,r),f)}(Z)}function g(S,C){U.hideOverlappingLabels(S,C)}function d(S){(U.series||[]).forEach(function(C){C===S&&(C.dataLabelCollections||["dataLabel"]).forEach(function(c){C.points.forEach(function(f){var r=f[String(c)];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(S){var C=S.xAxis,c=C.min,f=C.max;(U.series||[]).forEach(function(r){r===S&&(r.dataLabelCollections||["dataLabel"]).forEach(function(a){r.points.forEach(function(t){var i=t[String(a)];t.x<c||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(S){var C=[],c=S.options.dataLabels,f=S.dataLabelCollections||["dataLabel","dataLabelsGroup"];return c&&(c.enabled||S._hasPointLabels)&&!c.allowOverlap&&S.visible&&f.forEach(function(r){S.points&&S.points.forEach(function(a){a[r]&&(a[r].labelrank=W(a.labelrank,a.shapeArgs&&a.shapeArgs.height),C.push(a[r]))})}),C}(0,pt.default)(k)&&(k=[]),H||(M.onmouseover=function(){if(Z.visible){V();var S=z&&Z.series.halo;S&&S.attr({d:"M 0 0"}),k.forEach(function(C){C!==Z&&C.visible&&(E.forEach(function(c){C[c]&&C[c].animate({opacity:.15},{duration:400})}),d(C))}),E.forEach(function(C){Z[C]&&Z[C].addClass(R)}),I||(B=setTimeout(h,100))}},M.onmouseout=function(){Z.visible&&(V(),k.forEach(function(S){S.visible&&S!==Z&&E.forEach(function(C){S[C]&&S[C].animate({opacity:1},{duration:400})})}),E.forEach(function(S){Z[S]&&Z[S].removeClass(R)}),I||(ft=setTimeout(u,100)))},M.addEventListener("click",function(){V();var S=[];k.forEach(function(c){c.visible?(E.forEach(function(f){c[f]&&c[f].animate({opacity:1},{duration:50})}),S=S.concat(w(c))):(E.forEach(function(f){c[f]&&c[f].animate({opacity:.25},{duration:150})}),d(c))});var C=y(U);g(S=S.concat(C))}))})}},123:(ot,nt,at)=>{at.d(nt,{A:()=>z});var ct=at(405);const pt=at(9600).A["__core-js_shared__"];var ut,ft=(ut=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||""))?"Symbol(src)_1."+ut:"",B=at(7942),et=at(1548),W=/^\[object .+?Constructor\]$/,R=Function.prototype,H=Object.prototype,V=R.toString,$=H.hasOwnProperty,Z=RegExp("^"+V.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const U=function(I){return!(!(0,B.A)(I)||(E=I,ft&&ft in E))&&((0,ct.A)(I)?Z:W).test((0,et.A)(I));var E},z=function(I,E){var M=function(k,y){return k==null?void 0:k[y]}(I,E);return U(M)?M:void 0}},362:function(ot,nt,at){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=void 0;var pt=at(807);Object.defineProperty(nt,"default",{enumerable:!0,get:function(){return ct(pt).default}})},368:function(ot,nt,at){var ct=this&&this.__assign||function(){return ct=Object.assign||function(V){for(var $,Z=1,U=arguments.length;Z<U;Z++)for(var z in $=arguments[Z])Object.prototype.hasOwnProperty.call($,z)&&(V[z]=$[z]);return V},ct.apply(this,arguments)},pt=this&&this.__importDefault||function(V){return V&&V.__esModule?V:{default:V}};Object.defineProperty(nt,"__esModule",{value:!0});var ut=pt(at(605)),ft=pt(at(710)),B=pt(at(9681)),et=pt(at(9170)),W=pt(at(6545)),R={enabled:!1,text:"Sisense",href:"http://www.sisense.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:ut.default.textColor,fontSize:"9px"}},H=ct({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:R,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:B.default,navigator:{yAxis:{gridLineWidth:0},xAxis:{gridLineWidth:0}},plotOptions:et.default,title:{margin:0},tooltip:ft.default},W.default);nt.default=H},405:(ot,nt,at)=>{at.d(nt,{A:()=>ut});var ct=at(4044),pt=at(7942);const ut=function(ft){if(!(0,pt.A)(ft))return!1;var B=(0,ct.A)(ft);return B=="[object Function]"||B=="[object GeneratorFunction]"||B=="[object AsyncFunction]"||B=="[object Proxy]"}},605:(ot,nt)=>{Object.defineProperty(nt,"__esModule",{value:!0}),nt.default={fontFamily:"Open Sans",textColor:"#5B6372",labelColor:"#5B6372",legendColor:"#5B6372",legendNavigationColor:"#5B6372",legendNavigationSecondaryColor:"#9EA2AB"}},622:function(ot,nt,at){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.arrayMax=nt.arrayMin=nt.correctFloat=nt.radiansToDegrees=nt.defined=nt.wrap=void 0;var pt=ct(at(8552));nt.wrap=function(ut,ft,B){var et=ut[ft];ut[ft]=function(){var W=Array.prototype.slice.call(arguments);return W.unshift(et),B.apply(this,W)}},nt.defined=function(ut,ft){return ft===void 0||ft==="null"||ft===""?ut!=null:(0,pt.default)(ut,ft)!==void 0},nt.radiansToDegrees=function(ut){return 180*ut/Math.PI},nt.correctFloat=function(ut){return parseFloat(ut.toPrecision(14))},nt.arrayMin=function(ut){for(var ft=ut.length,B=ut[0];ft--;)ut[ft]<B&&(B=ut[ft]);return B},nt.arrayMax=function(ut){for(var ft=ut.length,B=ut[0];ft--;)ut[ft]>B&&(B=ut[ft]);return B}},710:function(ot,nt,at){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(at(2805));nt.default=pt.default},807:function(ot,nt,at){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(at(5860)),ut=ct(at(2382));nt.default=function(ft){var B=ft.wrap;function et(W){this.hasCartesianSeries&&this.series.forEach(function(R){R.options&&R.options.stacking==="percent"&&(R.userOptions.data.forEach(function(H){H&&(H.originalY=H.y,H.y=Math.abs(H.y))}),R.yData=R.yData.map(Math.abs))}),W.apply(this,[].slice.call(arguments,1))}(0,ut.default)(ft),B(ft.Chart.prototype,"render",et),B(ft.Chart.prototype,"redraw",et),ft.Axis.prototype.renderUnsquish=function(){var W,R,H,V,$,Z=this.chart,U=Z.renderer,z=this.tickPositions,I=this.ticks,E=this.options.labels,M=E.style,k=this.horiz,y=this.getSlotWidth(),h=Math.max(1,Math.round(y-2*E.padding)),u={},g=this.labelMetrics(),d=M.textOverflow,v=0;if((0,pt.default)(E.rotation)||(u.rotation=E.rotation||0),z.forEach(function(w){var S=I[w];S.movedLabel&&S.replaceMovedLabel(),S&&S.label&&S.label.textPxLength>v&&(v=S.label.textPxLength)}),this.maxLabelLength=v,this.autoRotation)v>h&&v>g.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(y&&(W=h,!d))for(R="clip",V=z.length;!k&&V--;)$=z[V],(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/z.length-(g.h-g.f)&&(H.specificTextOverflow="ellipsis"));u.rotation&&(W=v>.33*Z.chartHeight?.28*Z.chartHeight:v,d||(R="ellipsis")),this.labelAlign=E.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(u.align=this.labelAlign),z.forEach(function(w){var S=I[w],C=S&&S.label,c=M.width,f={};C&&(C.attr(u),S.shortenLabel?S.shortenLabel():W&&!c&&M.whiteSpace!=="nowrap"&&(W<C.textPxLength||C.element.tagName==="SPAN")?(f.width=W+"px",d||(f.textOverflow=C.specificTextOverflow||R),C.css(f)):C.styles&&C.styles.width&&!f.width&&!c&&C.css({width:null}),delete C.specificTextOverflow,S.rotation=u.rotation)},this),this.tickRotCorr=U.rotCorr(g.b,this.labelRotation||0,this.side!==0)}}},938:function(ot,nt,at){var ct=this&&this.__createBinding||(Object.create?function(B,et,W,R){R===void 0&&(R=W);var H=Object.getOwnPropertyDescriptor(et,W);H&&!("get"in H?!et.__esModule:H.writable||H.configurable)||(H={enumerable:!0,get:function(){return et[W]}}),Object.defineProperty(B,R,H)}:function(B,et,W,R){R===void 0&&(R=W),B[R]=et[W]}),pt=this&&this.__exportStar||function(B,et){for(var W in B)W==="default"||Object.prototype.hasOwnProperty.call(et,W)||ct(et,B,W)},ut=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=void 0,pt(at(7783),nt);var ft=at(7783);Object.defineProperty(nt,"default",{enumerable:!0,get:function(){return ut(ft).default}})},1039:(ot,nt,at)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function et(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}et(B,"Core/Math3D.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.deg2rad,V=R.pick;function $(z,I,E,M){var k=I.options.chart.options3d,y=V(M,!!E&&I.inverted),h={x:I.plotWidth/2,y:I.plotHeight/2,z:k.depth/2,vd:V(k.depth,1)*V(k.viewDistance,0)},u=I.scale3d||1,g=H*k.beta*(y?-1:1),d=H*k.alpha*(y?-1:1),v={cosA:Math.cos(d),cosB:Math.cos(-g),sinA:Math.sin(d),sinB:Math.sin(-g)};return E||(h.x+=I.plotLeft,h.y+=I.plotTop),z.map(function(w){var S=function(c,f,r,a){return{x:a.cosB*c-a.sinB*r,y:-a.sinA*a.sinB*c+a.cosA*f-a.cosB*a.sinA*r,z:a.cosA*a.sinB*c+a.sinA*f+a.cosA*a.cosB*r}}((y?w.y:w.x)-h.x,(y?w.x:w.y)-h.y,(w.z||0)-h.z,v),C=Z(S,h,h.vd);return C.x=C.x*u+h.x,C.y=C.y*u+h.y,C.z=S.z*u+h.z,{x:y?C.y:C.x,y:y?C.x:C.y,z:C.z}})}function Z(z,I,E){var M=E>0&&E<Number.POSITIVE_INFINITY?E/(z.z+I.z+E):1;return{x:z.x*M,y:z.y*M}}function U(z){var I,E,M=0;for(I=0;I<z.length;I++)E=(I+1)%z.length,M+=z[I].x*z[E].y-z[E].x*z[I].y;return M/2}return{perspective:$,perspective3D:Z,pointCameraDistance:function(z,I){var E=I.options.chart.options3d,M=I.plotWidth/2,k=I.plotHeight/2,y=V(E.depth,1)*V(E.viewDistance,0)+E.depth;return Math.sqrt(Math.pow(M-V(z.plotX,z.x),2)+Math.pow(k-V(z.plotY,z.y),2)+Math.pow(y-V(z.plotZ,z.z),2))},shapeArea:U,shapeArea3D:function(z,I,E){return U($(z,I,E))}}}),et(B,"Core/Renderer/SVG/SVGElement3D.js",[B["Core/Color/Color.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.parse,$=H.defined,Z=H.merge,U=H.objectEach,z=H.pick,I={};return I.base={initArgs:function(E){var M=this,k=M.renderer,y=k[M.pathType+"Path"](E),h=y.zIndexes;M.parts.forEach(function(u){var g={class:"highcharts-3d-"+u,zIndex:h[u]||0};k.styledMode&&(u==="top"?g.filter="url(#highcharts-brighter)":u==="side"&&(g.filter="url(#highcharts-darker)")),M[u]=k.path(y[u]).attr(g).add(M)}),M.attr({"stroke-linejoin":"round",zIndex:h.group}),M.originalDestroy=M.destroy,M.destroy=M.destroyParts,M.forcedSides=y.forcedSides},singleSetterForParts:function(E,M,k,y,h,u){var g={},d=[null,null,y||"attr",h,u],v=k&&k.zIndexes;return k?(v&&v.group&&this.attr({zIndex:v.group}),U(k,function(w,S){g[S]={},g[S][E]=w,v&&(g[S].zIndex=k.zIndexes[S]||0)}),d[1]=g):(g[E]=M,d[0]=g),this.processParts.apply(this,d)},processParts:function(E,M,k,y,h){var u=this;return u.parts.forEach(function(g){M&&(E=z(M[g],!1)),E!==!1&&u[g][k](E,y,h)}),u},destroyParts:function(){return this.processParts(null,null,"destroy"),this.originalDestroy()}},I.cuboid=Z(I.base,{parts:["front","top","side"],pathType:"cuboid",attr:function(E,M,k,y){if(typeof E=="string"&&M!==void 0){var h=E;(E={})[h]=M}return E.shapeArgs||$(E.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](E.shapeArgs||E)):R.prototype.attr.call(this,E,void 0,k,y)},animate:function(E,M,k){if($(E.x)&&$(E.y)){var y=this.renderer[this.pathType+"Path"](E),h=y.forcedSides;this.singleSetterForParts("d",null,y,"animate",M,k),this.attr({zIndex:y.zIndexes.group}),h!==this.forcedSides&&(this.forcedSides=h,this.renderer.styledMode||I.cuboid.fillSetter.call(this,this.fill))}else R.prototype.animate.call(this,E,M,k);return this},fillSetter:function(E){var M=this;return M.forcedSides=M.forcedSides||[],M.singleSetterForParts("fill",null,{front:E,top:V(E).brighten(M.forcedSides.indexOf("top")>=0?0:.1).get(),side:V(E).brighten(M.forcedSides.indexOf("side")>=0?0:-.1).get()}),M.color=M.fill=E,M}}),I}),et(B,"Core/Renderer/SVG/SVGRenderer3D.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Math3D.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGElement3D.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){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 s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},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)}),M=W.animObject,k=R.parse,y=H.charts,h=H.deg2rad,u=V.perspective,g=V.shapeArea,d=z.defined,v=z.extend,w=z.merge,S=z.pick,C=Math.cos,c=Math.sin,f=Math.PI,r=4*(Math.sqrt(2)-1)/3/(f/2),a=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return E(i,t),i.compose=function(o){var e=o.prototype,s=i.prototype;e.elements3d=Z,e.arc3d=s.arc3d,e.arc3dPath=s.arc3dPath,e.cuboid=s.cuboid,e.cuboidPath=s.cuboidPath,e.element3d=s.element3d,e.face3d=s.face3d,e.polyhedron=s.polyhedron,e.toLinePath=s.toLinePath,e.toLineSegments=s.toLineSegments},i.curveTo=function(o,e,s,n,l,b,T,D){var p=[],x=b-l;return b>l&&b-l>Math.PI/2+1e-4?p=(p=p.concat(this.curveTo(o,e,s,n,l,l+Math.PI/2,T,D))).concat(this.curveTo(o,e,s,n,l+Math.PI/2,b,T,D)):b<l&&l-b>Math.PI/2+1e-4?p=(p=p.concat(this.curveTo(o,e,s,n,l,l-Math.PI/2,T,D))).concat(this.curveTo(o,e,s,n,l-Math.PI/2,b,T,D)):[["C",o+s*Math.cos(l)-s*r*x*Math.sin(l)+T,e+n*Math.sin(l)+n*r*x*Math.cos(l)+D,o+s*Math.cos(b)+s*r*x*Math.sin(b)+T,e+n*Math.sin(b)-n*r*x*Math.cos(b)+D,o+s*Math.cos(b)+T,e+n*Math.sin(b)+D]]},i.prototype.toLinePath=function(o,e){var s=[];return o.forEach(function(n){s.push(["L",n.x,n.y])}),o.length&&(s[0][0]="M",e&&s.push(["Z"])),s},i.prototype.toLineSegments=function(o){var e=[],s=!0;return o.forEach(function(n){e.push(s?["M",n.x,n.y]:["L",n.x,n.y]),s=!s}),e},i.prototype.face3d=function(o){var e=this,s=this.createElement("path");return s.vertexes=[],s.insidePlotArea=!1,s.enabled=!0,s.attr=function(n){if(typeof n=="object"&&(d(n.enabled)||d(n.vertexes)||d(n.insidePlotArea))){this.enabled=S(n.enabled,this.enabled),this.vertexes=S(n.vertexes,this.vertexes),this.insidePlotArea=S(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var l=y[e.chartIndex],b=u(this.vertexes,l,this.insidePlotArea),T=e.toLinePath(b,!0),D=g(b);n.d=T,n.visibility=this.enabled&&D>0?"inherit":"hidden"}return $.prototype.attr.apply(this,arguments)},s.animate=function(n){if(typeof n=="object"&&(d(n.enabled)||d(n.vertexes)||d(n.insidePlotArea))){this.enabled=S(n.enabled,this.enabled),this.vertexes=S(n.vertexes,this.vertexes),this.insidePlotArea=S(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;var l=y[e.chartIndex],b=u(this.vertexes,l,this.insidePlotArea),T=e.toLinePath(b,!0),D=g(b),p=this.enabled&&D>0?"visible":"hidden";n.d=T,this.attr("visibility",p)}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.polyhedron=function(o){var e=this,s=this.g(),n=s.destroy;return this.styledMode||s.attr({"stroke-linejoin":"round"}),s.faces=[],s.destroy=function(){for(var l=0;l<s.faces.length;l++)s.faces[l].destroy();return n.call(this)},s.attr=function(l,b,T,D){if(typeof l=="object"&&d(l.faces)){for(;s.faces.length>l.faces.length;)s.faces.pop().destroy();for(;s.faces.length<l.faces.length;)s.faces.push(e.face3d().add(s));for(var p=0;p<l.faces.length;p++)e.styledMode&&delete l.faces[p].fill,s.faces[p].attr(l.faces[p],null,T,D);delete l.faces}return $.prototype.attr.apply(this,arguments)},s.animate=function(l,b,T){if(l&&l.faces){for(;s.faces.length>l.faces.length;)s.faces.pop().destroy();for(;s.faces.length<l.faces.length;)s.faces.push(e.face3d().add(s));for(var D=0;D<l.faces.length;D++)s.faces[D].animate(l.faces[D],b,T);delete l.faces}return $.prototype.animate.apply(this,arguments)},s.attr(o)},i.prototype.element3d=function(o,e){var s=this.g();return v(s,this.elements3d[o]),s.initArgs(e),s},i.prototype.cuboid=function(o){return this.element3d("cuboid",o)},i.prototype.cuboidPath=function(o){var e,s,n,l,b,T,D,p,x=o.x||0,A=o.y||0,N=o.z||0,_=o.height||0,L=o.width||0,O=o.depth||0,j=y[this.chartIndex],Y=j.options.chart.options3d.alpha,X=1e6,G=0,q=[{x,y:A,z:N},{x:x+L,y:A,z:N},{x:x+L,y:A+_,z:N},{x,y:A+_,z:N},{x,y:A+_,z:N+O},{x:x+L,y:A+_,z:N+O},{x:x+L,y:A,z:N+O},{x,y:A,z:N+O}],Q=[];function J(lt){return _===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}:O===0&<<2||lt>5?{x:q[lt].x,y:q[lt].y,z:q[lt].z+10}:q[lt]}function rt(lt){return q[lt]}return q=u(q,j,o.insidePlotArea),s=(e=(p=function(lt,gt,mt){var bt=[[],-1],yt=lt.map(rt),ht=gt.map(rt),it=lt.map(J),st=gt.map(J);return g(yt)<0?bt=[yt,0]:g(ht)<0?bt=[ht,1]:mt&&(Q.push(mt),bt=g(it)<0?[yt,0]:g(st)<0?[ht,1]:[yt,0]),bt})([3,2,1,0],[7,6,5,4],"front"))[0],b=e[1],n=(e=p([1,6,7,0],[4,5,2,3],"top"))[0],T=e[1],l=(e=p([1,2,5,6],[0,7,4,3],"side"))[0],(D=e[1])===1?G+=X*(j.plotWidth-x):D||(G+=X*x),G+=10*(!T||Y>=0&&Y<=180||Y<360&&Y>357.5?j.plotHeight-A:10+A),b===1?G+=100*N:b||(G+=100*(1e3-N)),{front:this.toLinePath(s,!0),top:this.toLinePath(n,!0),side:this.toLinePath(l,!0),zIndexes:{group:Math.round(G)},forcedSides:Q,isFront:b,isTop:T}},i.prototype.arc3d=function(o){var e=this.g(),s=e.renderer,n=["x","y","r","innerR","start","end","depth"];function l(b){var T,D=!1,p={};for(T in b=w(b))n.indexOf(T)!==-1&&(p[T]=b[T],delete b[T],D=!0);return!!D&&[p,b]}return(o=w(o)).alpha=(o.alpha||0)*h,o.beta=(o.beta||0)*h,e.top=s.path(),e.side1=s.path(),e.side2=s.path(),e.inn=s.path(),e.out=s.path(),e.onAdd=function(){var b=e.parentGroup,T=e.attr("class");e.top.add(e),["out","inn","side1","side2"].forEach(function(D){e[D].attr({class:T+" highcharts-3d-side"}).add(b)})},["addClass","removeClass"].forEach(function(b){e[b]=function(){var T=arguments;["top","out","inn","side1","side2"].forEach(function(D){e[D][b].apply(e[D],T)})}}),e.setPaths=function(b){var T=e.renderer.arc3dPath(b),D=100*T.zTop;e.attribs=b,e.top.attr({d:T.top,zIndex:T.zTop}),e.inn.attr({d:T.inn,zIndex:T.zInn}),e.out.attr({d:T.out,zIndex:T.zOut}),e.side1.attr({d:T.side1,zIndex:T.zSide1}),e.side2.attr({d:T.side2,zIndex:T.zSide2}),e.zIndex=D,e.attr({zIndex:D}),b.center&&(e.top.setRadialReference(b.center),delete b.center)},e.setPaths(o),e.fillSetter=function(b){var T=k(b).brighten(-.1).get();return this.fill=b,this.side1.attr({fill:T}),this.side2.attr({fill:T}),this.inn.attr({fill:T}),this.out.attr({fill:T}),this.top.attr({fill:b}),this},["opacity","translateX","translateY","visibility"].forEach(function(b){e[b+"Setter"]=function(T,D){e[D]=T,["out","inn","side1","side2","top"].forEach(function(p){e[p].attr(D,T)})}}),e.attr=function(b){var T,D;return typeof b=="object"&&(D=l(b))&&(T=D[0],arguments[0]=D[1],v(e.attribs,T),e.setPaths(e.attribs)),$.prototype.attr.apply(e,arguments)},e.animate=function(b,T,D){var p,x,A,N=this.attribs,_="data-"+Math.random().toString(26).substring(2,9);return delete b.center,delete b.z,delete b.alpha,delete b.beta,(A=M(S(T,this.renderer.globalAnimation))).duration&&(p=l(b),e[_]=0,b[_]=1,e[_+"Setter"]=H.noop,p&&(x=p[0],A.step=function(L,O){function j(Y){return N[Y]+(S(x[Y],N[Y])-N[Y])*O.pos}O.prop===_&&O.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")}))}),T=A),$.prototype.animate.call(this,b,T,D)},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,s=o.y||0,n=o.start||0,l=(o.end||0)-1e-5,b=o.r||0,T=o.innerR||0,D=o.depth||0,p=o.alpha||0,x=o.beta||0,A=Math.cos(n),N=Math.sin(n),_=Math.cos(l),L=Math.sin(l),O=b*Math.cos(x),j=b*Math.cos(p),Y=T*Math.cos(x),X=T*Math.cos(p),G=D*Math.sin(x),q=D*Math.sin(p),Q=[["M",e+O*A,s+j*N]];(Q=Q.concat(i.curveTo(e,s,O,j,n,l,0,0))).push(["L",e+Y*_,s+X*L]),(Q=Q.concat(i.curveTo(e,s,Y,X,l,n,0,0))).push(["Z"]);var J=x>0?Math.PI/2:0,rt=p>0?0:Math.PI/2,lt=n>-J?n:l>-J?-J:n,gt=l<f-rt?l:n<f-rt?f-rt:l,mt=2*f-rt,bt=[["M",e+O*C(lt),s+j*c(lt)]];bt=bt.concat(i.curveTo(e,s,O,j,lt,gt,0,0)),l>mt&&n<mt?(bt.push(["L",e+O*C(gt)+G,s+j*c(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,mt,G,q))).push(["L",e+O*C(mt),s+j*c(mt)]),(bt=bt.concat(i.curveTo(e,s,O,j,mt,l,0,0))).push(["L",e+O*C(l)+G,s+j*c(l)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,l,mt,G,q))).push(["L",e+O*C(mt),s+j*c(mt)]),bt=bt.concat(i.curveTo(e,s,O,j,mt,gt,0,0))):l>f-rt&&n<f-rt&&(bt.push(["L",e+O*Math.cos(gt)+G,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,l,G,q))).push(["L",e+O*Math.cos(l),s+j*Math.sin(l)]),bt=bt.concat(i.curveTo(e,s,O,j,l,gt,0,0))),bt.push(["L",e+O*Math.cos(gt)+G,s+j*Math.sin(gt)+q]),(bt=bt.concat(i.curveTo(e,s,O,j,gt,lt,G,q))).push(["Z"]);var yt=[["M",e+Y*A,s+X*N]];(yt=yt.concat(i.curveTo(e,s,Y,X,n,l,0,0))).push(["L",e+Y*Math.cos(l)+G,s+X*Math.sin(l)+q]),(yt=yt.concat(i.curveTo(e,s,Y,X,l,n,G,q))).push(["Z"]);var ht=[["M",e+O*A,s+j*N],["L",e+O*A+G,s+j*N+q],["L",e+Y*A+G,s+X*N+q],["L",e+Y*A,s+X*N],["Z"]],it=[["M",e+O*_,s+j*L],["L",e+O*_+G,s+j*L+q],["L",e+Y*_+G,s+X*L+q],["L",e+Y*_,s+X*L],["Z"]],st=Math.atan2(q,-G),dt=Math.abs(l+st),vt=Math.abs(n+st),Ct=Math.abs((n+l)/2+st);function xt(Lt){return(Lt%=2*Math.PI)>Math.PI&&(Lt=2*Math.PI-Lt),Lt}dt=xt(dt),vt=xt(vt);var wt=1e5,Mt=(Ct=xt(Ct))*wt,St=vt*wt,Tt=dt*wt;return{top:Q,zTop:Math.PI*wt+1,out:bt,zOut:Math.max(Mt,St,Tt),inn:yt,zInn:Math.max(Mt,St,Tt),side1:ht,zSide1:.99*Tt,side2:it,zSide2:.99*St}},i}(U);return a}),et(B,"Core/Chart/Chart3D.js",[B["Core/Color/Color.js"],B["Core/Defaults.js"],B["Core/Math3D.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=W.parse,U=R.defaultOptions,z=H.perspective,I=H.shapeArea3D,E=V.addEvent,M=V.isArray,k=V.merge,y=V.pick,h=V.wrap;return function(u){var g=function(){function o(e){this.frame3d=void 0,this.chart=e}return o.prototype.get3dFrame=function(){var e=this.chart,s=e.options.chart.options3d,n=s.frame,l=e.plotLeft,b=e.plotLeft+e.plotWidth,T=e.plotTop,D=e.plotTop+e.plotHeight,p=s.depth,x=function(it){var st=I(it,e);return st>.5?1:st<-.5?-1:0},A=x([{x:l,y:D,z:p},{x:b,y:D,z:p},{x:b,y:D,z:0},{x:l,y:D,z:0}]),N=x([{x:l,y:T,z:0},{x:b,y:T,z:0},{x:b,y:T,z:p},{x:l,y:T,z:p}]),_=x([{x:l,y:T,z:0},{x:l,y:T,z:p},{x:l,y:D,z:p},{x:l,y:D,z:0}]),L=x([{x:b,y:T,z:p},{x:b,y:T,z:0},{x:b,y:D,z:0},{x:b,y:D,z:p}]),O=x([{x:l,y:D,z:0},{x:b,y:D,z:0},{x:b,y:T,z:0},{x:l,y:T,z:0}]),j=x([{x:l,y:T,z:p},{x:b,y:T,z:p},{x:b,y:D,z:p},{x:l,y:D,z:p}]),Y=!1,X=!1,G=!1,q=!1;[].concat(e.xAxis,e.yAxis,e.zAxis).forEach(function(it){it&&(it.horiz?it.opposite?X=!0:Y=!0:it.opposite?q=!0:G=!0)});var Q=function(it,st,dt){for(var vt=["size","color","visible"],Ct={},xt=0;xt<vt.length;xt++)for(var wt=vt[xt],Mt=0;Mt<it.length;Mt++)if(typeof it[Mt]=="object"){var St=it[Mt][wt];if(St!=null){Ct[wt]=St;break}}var Tt=dt;return Ct.visible===!0||Ct.visible===!1?Tt=Ct.visible:Ct.visible==="auto"&&(Tt=st>0),{size:y(Ct.size,1),color:y(Ct.color,"none"),frontFacing:st>0,visible:Tt}},J={axes:{},bottom:Q([n.bottom,n.top,n],A,Y),top:Q([n.top,n.bottom,n],N,X),left:Q([n.left,n.right,n.side,n],_,G),right:Q([n.right,n.left,n.side,n],L,q),back:Q([n.back,n.front,n],j,!0),front:Q([n.front,n.back,n],O,!1)};if(s.axisLabelPosition==="auto"){var rt=function(it,st){return it.visible!==st.visible||it.visible&&st.visible&&it.frontFacing!==st.frontFacing},lt=[];rt(J.left,J.front)&<.push({y:(T+D)/2,x:l,z:0,xDir:{x:1,y:0,z:0}}),rt(J.left,J.back)&<.push({y:(T+D)/2,x:l,z:p,xDir:{x:0,y:0,z:-1}}),rt(J.right,J.front)&<.push({y:(T+D)/2,x:b,z:0,xDir:{x:0,y:0,z:1}}),rt(J.right,J.back)&<.push({y:(T+D)/2,x:b,z:p,xDir:{x:-1,y:0,z:0}});var gt=[];rt(J.bottom,J.front)&>.push({x:(l+b)/2,y:D,z:0,xDir:{x:1,y:0,z:0}}),rt(J.bottom,J.back)&>.push({x:(l+b)/2,y:D,z:p,xDir:{x:-1,y:0,z:0}});var mt=[];rt(J.top,J.front)&&mt.push({x:(l+b)/2,y:T,z:0,xDir:{x:1,y:0,z:0}}),rt(J.top,J.back)&&mt.push({x:(l+b)/2,y:T,z:p,xDir:{x:-1,y:0,z:0}});var bt=[];rt(J.bottom,J.left)&&bt.push({z:(0+p)/2,y:D,x:l,xDir:{x:0,y:0,z:-1}}),rt(J.bottom,J.right)&&bt.push({z:(0+p)/2,y:D,x:b,xDir:{x:0,y:0,z:1}});var yt=[];rt(J.top,J.left)&&yt.push({z:(0+p)/2,y:T,x:l,xDir:{x:0,y:0,z:-1}}),rt(J.top,J.right)&&yt.push({z:(0+p)/2,y:T,x:b,xDir:{x:0,y:0,z:1}});var ht=function(it,st,dt){if(it.length===0)return null;if(it.length===1)return it[0];for(var vt=z(it,e,!1),Ct=0,xt=1;xt<vt.length;xt++)(dt*vt[xt][st]>dt*vt[Ct][st]||dt*vt[xt][st]==dt*vt[Ct][st]&&vt[xt].z<vt[Ct].z)&&(Ct=xt);return it[Ct]};J.axes={y:{left:ht(lt,"x",-1),right:ht(lt,"x",1)},x:{top:ht(mt,"y",-1),bottom:ht(gt,"y",1)},z:{top:ht(yt,"y",-1),bottom:ht(bt,"y",1)}}}else J.axes={y:{left:{x:l,z:0,xDir:{x:1,y:0,z:0}},right:{x:b,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:T,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:D,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:G?b:l,y:T,xDir:G?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:G?b:l,y:D,xDir:G?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return J},o.prototype.getScale=function(e){var s,n=this.chart,l=n.plotLeft,b=n.plotWidth+l,T=n.plotTop,D=n.plotHeight+T,p=l+n.plotWidth/2,x=T+n.plotHeight/2,A={minX:Number.MAX_VALUE,maxX:-Number.MAX_VALUE,minY:Number.MAX_VALUE,maxY:-Number.MAX_VALUE},N=1;return s=[{x:l,y:T,z:0},{x:l,y:T,z:e}],[0,1].forEach(function(_){s.push({x:b,y:s[_].y,z:s[_].z})}),[0,1,2,3].forEach(function(_){s.push({x:s[_].x,y:D,z:s[_].z})}),(s=z(s,n,!1)).forEach(function(_){A.minX=Math.min(A.minX,_.x),A.maxX=Math.max(A.maxX,_.x),A.minY=Math.min(A.minY,_.y),A.maxY=Math.max(A.maxY,_.y)}),l>A.minX&&(N=Math.min(N,1-Math.abs((l+p)/(A.minX+p))%1)),b<A.maxX&&(N=Math.min(N,(b-p)/(A.maxX-p))),T>A.minY&&(N=A.minY<0?Math.min(N,(T+x)/(-A.minY+T+x)):Math.min(N,1-(T+x)/(A.minY+x)%1)),D<A.maxY&&(N=Math.min(N,Math.abs((D-x)/(A.maxY-x)))),N},o}();function d(o){this.is3d()&&o.options.type==="scatter"&&(o.options.type="scatter3d")}function v(){if(this.chart3d&&this.is3d()){var o=this,e=o.renderer,s=o.options.chart.options3d,n=o.chart3d.get3dFrame(),l=o.plotLeft,b=o.plotLeft+o.plotWidth,T=o.plotTop,D=o.plotTop+o.plotHeight,p=s.depth,x=l-(n.left.visible?n.left.size:0),A=b+(n.right.visible?n.right.size:0),N=T-(n.top.visible?n.top.size:0),_=D+(n.bottom.visible?n.bottom.size:0),L=0-(n.front.visible?n.front.size:0),O=p+(n.back.visible?n.back.size:0),j=o.hasRendered?"animate":"attr";o.chart3d.frame3d=n,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:n.bottom.frontFacing?-1e3:1e3,faces:[{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x,y:_,z:L},{x:A,y:_,z:L},{x:A,y:_,z:O},{x,y:_,z:O}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(.1).get(),vertexes:[{x:l,y:D,z:p},{x:b,y:D,z:p},{x:b,y:D,z:0},{x:l,y:D,z:0}],enabled:n.bottom.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x,y:_,z:L},{x,y:_,z:O},{x:l,y:D,z:p},{x:l,y:D,z:0}],enabled:n.bottom.visible&&!n.left.visible},{fill:Z(n.bottom.color).brighten(-.1).get(),vertexes:[{x:A,y:_,z:O},{x:A,y:_,z:L},{x:b,y:D,z:0},{x:b,y:D,z:p}],enabled:n.bottom.visible&&!n.right.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x:A,y:_,z:L},{x,y:_,z:L},{x:l,y:D,z:0},{x:b,y:D,z:0}],enabled:n.bottom.visible&&!n.front.visible},{fill:Z(n.bottom.color).get(),vertexes:[{x,y:_,z:O},{x:A,y:_,z:O},{x:b,y:D,z:p},{x:l,y:D,z:p}],enabled:n.bottom.visible&&!n.back.visible}]}),o.frameShapes.top[j]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:n.top.frontFacing?-1e3:1e3,faces:[{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x,y:N,z:O},{x:A,y:N,z:O},{x:A,y:N,z:L},{x,y:N,z:L}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(.1).get(),vertexes:[{x:l,y:T,z:0},{x:b,y:T,z:0},{x:b,y:T,z:p},{x:l,y:T,z:p}],enabled:n.top.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x,y:N,z:O},{x,y:N,z:L},{x:l,y:T,z:0},{x:l,y:T,z:p}],enabled:n.top.visible&&!n.left.visible},{fill:Z(n.top.color).brighten(-.1).get(),vertexes:[{x:A,y:N,z:L},{x:A,y:N,z:O},{x:b,y:T,z:p},{x:b,y:T,z:0}],enabled:n.top.visible&&!n.right.visible},{fill:Z(n.top.color).get(),vertexes:[{x,y:N,z:L},{x:A,y:N,z:L},{x:b,y:T,z:0},{x:l,y:T,z:0}],enabled:n.top.visible&&!n.front.visible},{fill:Z(n.top.color).get(),vertexes:[{x:A,y:N,z:O},{x,y:N,z:O},{x:l,y:T,z:p},{x:b,y:T,z:p}],enabled:n.top.visible&&!n.back.visible}]}),o.frameShapes.left[j]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:n.left.frontFacing?-1e3:1e3,faces:[{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x,y:_,z:L},{x:l,y:D,z:0},{x:l,y:D,z:p},{x,y:_,z:O}],enabled:n.left.visible&&!n.bottom.visible},{fill:Z(n.left.color).brighten(.1).get(),vertexes:[{x,y:N,z:O},{x:l,y:T,z:p},{x:l,y:T,z:0},{x,y:N,z:L}],enabled:n.left.visible&&!n.top.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x,y:_,z:O},{x,y:N,z:O},{x,y:N,z:L},{x,y:_,z:L}],enabled:n.left.visible},{fill:Z(n.left.color).brighten(-.1).get(),vertexes:[{x:l,y:T,z:p},{x:l,y:D,z:p},{x:l,y:D,z:0},{x:l,y:T,z:0}],enabled:n.left.visible},{fill:Z(n.left.color).get(),vertexes:[{x,y:_,z:L},{x,y:N,z:L},{x:l,y:T,z:0},{x:l,y:D,z:0}],enabled:n.left.visible&&!n.front.visible},{fill:Z(n.left.color).get(),vertexes:[{x,y:N,z:O},{x,y:_,z:O},{x:l,y:D,z:p},{x:l,y:T,z:p}],enabled:n.left.visible&&!n.back.visible}]}),o.frameShapes.right[j]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:n.right.frontFacing?-1e3:1e3,faces:[{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:A,y:_,z:O},{x:b,y:D,z:p},{x:b,y:D,z:0},{x:A,y:_,z:L}],enabled:n.right.visible&&!n.bottom.visible},{fill:Z(n.right.color).brighten(.1).get(),vertexes:[{x:A,y:N,z:L},{x:b,y:T,z:0},{x:b,y:T,z:p},{x:A,y:N,z:O}],enabled:n.right.visible&&!n.top.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:b,y:T,z:0},{x:b,y:D,z:0},{x:b,y:D,z:p},{x:b,y:T,z:p}],enabled:n.right.visible},{fill:Z(n.right.color).brighten(-.1).get(),vertexes:[{x:A,y:_,z:L},{x:A,y:N,z:L},{x:A,y:N,z:O},{x:A,y:_,z:O}],enabled:n.right.visible},{fill:Z(n.right.color).get(),vertexes:[{x:A,y:N,z:L},{x:A,y:_,z:L},{x:b,y:D,z:0},{x:b,y:T,z:0}],enabled:n.right.visible&&!n.front.visible},{fill:Z(n.right.color).get(),vertexes:[{x:A,y:_,z:O},{x:A,y:N,z:O},{x:b,y:T,z:p},{x:b,y:D,z:p}],enabled:n.right.visible&&!n.back.visible}]}),o.frameShapes.back[j]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:n.back.frontFacing?-1e3:1e3,faces:[{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x:A,y:_,z:O},{x,y:_,z:O},{x:l,y:D,z:p},{x:b,y:D,z:p}],enabled:n.back.visible&&!n.bottom.visible},{fill:Z(n.back.color).brighten(.1).get(),vertexes:[{x,y:N,z:O},{x:A,y:N,z:O},{x:b,y:T,z:p},{x:l,y:T,z:p}],enabled:n.back.visible&&!n.top.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x,y:_,z:O},{x,y:N,z:O},{x:l,y:T,z:p},{x:l,y:D,z:p}],enabled:n.back.visible&&!n.left.visible},{fill:Z(n.back.color).brighten(-.1).get(),vertexes:[{x:A,y:N,z:O},{x:A,y:_,z:O},{x:b,y:D,z:p},{x:b,y:T,z:p}],enabled:n.back.visible&&!n.right.visible},{fill:Z(n.back.color).get(),vertexes:[{x:l,y:T,z:p},{x:b,y:T,z:p},{x:b,y:D,z:p},{x:l,y:D,z:p}],enabled:n.back.visible},{fill:Z(n.back.color).get(),vertexes:[{x,y:_,z:O},{x:A,y:_,z:O},{x:A,y:N,z:O},{x,y:N,z:O}],enabled:n.back.visible}]}),o.frameShapes.front[j]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:n.front.frontFacing?-1e3:1e3,faces:[{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x,y:_,z:L},{x:A,y:_,z:L},{x:b,y:D,z:0},{x:l,y:D,z:0}],enabled:n.front.visible&&!n.bottom.visible},{fill:Z(n.front.color).brighten(.1).get(),vertexes:[{x:A,y:N,z:L},{x,y:N,z:L},{x:l,y:T,z:0},{x:b,y:T,z:0}],enabled:n.front.visible&&!n.top.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x,y:N,z:L},{x,y:_,z:L},{x:l,y:D,z:0},{x:l,y:T,z:0}],enabled:n.front.visible&&!n.left.visible},{fill:Z(n.front.color).brighten(-.1).get(),vertexes:[{x:A,y:_,z:L},{x:A,y:N,z:L},{x:b,y:T,z:0},{x:b,y:D,z:0}],enabled:n.front.visible&&!n.right.visible},{fill:Z(n.front.color).get(),vertexes:[{x:b,y:T,z:0},{x:l,y:T,z:0},{x:l,y:D,z:0},{x:b,y:D,z:0}],enabled:n.front.visible},{fill:Z(n.front.color).get(),vertexes:[{x:A,y:_,z:L},{x,y:_,z:L},{x,y:N,z:L},{x:A,y:N,z:L}],enabled:n.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 S(){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 s=o.inverted,n=o.clipBox,l=o.margin,b=s?"x":"y",T=s?"height":"width",D=s?"width":"height";n[s?"y":"x"]=-(l[3]||0),n[b]=-(l[0]||0),n[T]=o.chartWidth+(l[3]||0)+(l[1]||0),n[D]=o.chartHeight+(l[0]||0)+(l[2]||0),o.scale3d=1,e.fitToPlot===!0&&(o.scale3d=o.chart3d.getScale(e.depth)),o.chart3d.frame3d=o.chart3d.get3dFrame()}}function c(){this.is3d()&&(this.isDirtyBox=!0)}function f(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function r(){this.chart3d||(this.chart3d=new g(this))}function a(o){return this.is3d()||o.apply(this,[].slice.call(arguments,1))}function t(o){var e,s=this.series.length;if(this.is3d())for(;s--;)(e=this.series[s]).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")}u.Composition=g,u.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:{}}}}},u.compose=function(o,e){var s=o.prototype,n=e.prototype;s.is3d=function(){return!!(this.options.chart.options3d&&this.options.chart.options3d.enabled)},s.propsRequireDirtyBox.push("chart.options3d"),s.propsRequireUpdateSeries.push("chart.options3d"),n.matrixSetter=function(){var l;if(this.pos<1&&(M(this.start)||M(this.end))){var b=this.start||[1,0,0,1,0,0],T=this.end||[1,0,0,1,0,0];l=[];for(var D=0;D<6;D++)l.push(this.pos*T[D]+(1-this.pos)*b[D])}else l=this.end;this.elem.attr(this.prop,l,null,!0)},k(!0,U,u.defaultOptions),E(o,"init",r),E(o,"addSeries",d),E(o,"afterDrawChartBox",v),E(o,"afterGetContainer",w),E(o,"afterInit",S),E(o,"afterSetChartSize",C),E(o,"beforeRedraw",c),E(o,"beforeRender",f),h(s,"isInsidePlot",a),h(s,"renderSeries",t),h(s,"setClassName",i)}}($||($={})),$}),et(B,"Core/Axis/ZAxis.js",[B["Core/Axis/Axis.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(y,h){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},H(y,h)},function(y,h){function u(){this.constructor=y}H(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),$=R.addEvent,Z=R.merge,U=R.pick,z=R.splat,I=[];function E(y){return new k(this,y)}function M(){var y=this,h=this.options.zAxis=z(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],h.forEach(function(u,g){u.index=g,u.isX=!0,y.addZAxis(u).setScale()}))}var k=function(y){function h(u,g){var d=y.call(this,u,g)||this;return d.isZAxis=!0,d}return V(h,y),h.compose=function(u){if(I.indexOf(u)===-1){I.push(u),$(u,"afterGetAxes",M);var g=u.prototype;g.addZAxis=E,g.collectionsWithInit.zAxis=[g.addZAxis],g.collectionsWithUpdate.push("zAxis")}},h.prototype.getSeriesExtremes=function(){var u=this,g=this.chart;this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(d){if(d.visible||!g.options.chart.ignoreHiddenSeries){u.hasVisibleSeries=!0;var v=d.zData;v.length&&(u.dataMin=Math.min(U(u.dataMin,v[0]),Math.min.apply(null,v)),u.dataMax=Math.max(U(u.dataMax,v[0]),Math.max.apply(null,v)))}})},h.prototype.setAxisSize=function(){var u=this.chart;y.prototype.setAxisSize.call(this),this.width=this.len=u.options.chart.options3d&&u.options.chart.options3d.depth||0,this.right=u.chartWidth-this.width-this.left},h.prototype.setOptions=function(u){u=Z({offset:0,lineWidth:0},u),this.isZAxis=!0,y.prototype.setOptions.call(this,u),this.coll="zAxis"},h}(W);return k}),et(B,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),et(B,"Core/Axis/Tick3DComposition.js",[B["Core/Utilities.js"]],function(W){var R=W.addEvent,H=W.extend,V=W.wrap,$=[];function Z(z){var I=this.axis.axis3D;I&&H(z.pos,I.fix3dPosition(z.pos))}function U(z){var I=this.axis.axis3D,E=z.apply(this,[].slice.call(arguments,1));if(I){var M=E[0],k=E[1];if(M[0]==="M"&&k[0]==="L"){var y=[I.fix3dPosition({x:M[1],y:M[2],z:0}),I.fix3dPosition({x:k[1],y:k[2],z:0})];return this.axis.chart.renderer.toLineSegments(y)}}return E}return{compose:function(z){$.indexOf(z)===-1&&($.push(z),R(z,"afterGetLabelPosition",Z),V(z.prototype,"getMarkPath",U))}}}),et(B,"Core/Axis/Axis3DComposition.js",[B["Core/Axis/Axis3DDefaults.js"],B["Core/Globals.js"],B["Core/Math3D.js"],B["Core/Axis/Tick3DComposition.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=R.deg2rad,U=H.perspective,z=H.perspective3D,I=H.shapeArea,E=$.addEvent,M=$.merge,k=$.pick,y=$.wrap,h=[];function u(){var r=this,a=r.chart,t=r.options;a.is3d&&a.is3d()&&r.coll!=="colorAxis"&&(t.tickWidth=k(t.tickWidth,0),t.gridLineWidth=k(t.gridLineWidth,1))}function g(r){var a=this;a.chart.is3d()&&a.coll!=="colorAxis"&&r.point&&(r.point.crosshairPos=a.isXAxis?r.point.axisXpos:a.len-r.point.axisYpos)}function d(){var r=this;r.axis3D||(r.axis3D=new f(r))}function v(r){var a=this;return a.chart.is3d()&&a.coll!=="colorAxis"?[]:r.apply(a,[].slice.call(arguments,1))}function w(r){if(!this.chart.is3d()||this.coll==="colorAxis")return r.apply(this,[].slice.call(arguments,1));var a=arguments,t=a[1],i=a[2],o=[],e=this.getPlotLinePath({value:t}),s=this.getPlotLinePath({value:i});if(e&&s)for(var n=0;n<e.length;n+=2){var l=e[n],b=e[n+1],T=s[n],D=s[n+1];l[0]==="M"&&b[0]==="L"&&T[0]==="M"&&D[0]==="L"&&o.push(l,b,D,["L",T[1],T[2]],["Z"])}return o}function S(r){var a=this,t=a.axis3D,i=a.chart,o=r.apply(a,[].slice.call(arguments,1));if(a.coll==="colorAxis"||!i.chart3d||!i.is3d()||o===null)return o;var e,s=i.options.chart.options3d,n=a.isZAxis?i.plotWidth:s.depth,l=i.chart3d.frame3d,b=o[0],T=o[1],D=[];return b[0]==="M"&&T[0]==="L"&&(e=[t.swapZ({x:b[1],y:b[2],z:0}),t.swapZ({x:b[1],y:b[2],z:n}),t.swapZ({x:T[1],y:T[2],z:0}),t.swapZ({x:T[1],y:T[2],z:n})],this.horiz?this.isZAxis?(l.left.visible&&D.push(e[0],e[2]),l.right.visible&&D.push(e[1],e[3]),l.top.visible&&D.push(e[0],e[1]),l.bottom.visible&&D.push(e[2],e[3])):(l.front.visible&&D.push(e[0],e[2]),l.back.visible&&D.push(e[1],e[3]),l.top.visible&&D.push(e[0],e[1]),l.bottom.visible&&D.push(e[2],e[3])):(l.front.visible&&D.push(e[0],e[2]),l.back.visible&&D.push(e[1],e[3]),l.left.visible&&D.push(e[0],e[1]),l.right.visible&&D.push(e[2],e[3])),D=U(D,this.chart,!1)),i.renderer.toLineSegments(D)}function C(r,a){var t=this,i=t.chart,o=t.ticks,e=t.gridGroup;if(t.categories&&i.frameShapes&&i.is3d()&&e&&a&&a.label){var s=e.element.childNodes[0].getBBox(),n=i.frameShapes.left.getBBox(),l=i.options.chart.options3d,b={x:i.plotWidth/2,y:i.plotHeight/2,z:l.depth/2,vd:k(l.depth,1)*k(l.viewDistance,0)},T=a.pos,D=o[T-1],p=o[T+1],x=void 0,A=void 0,N=void 0;return T!==0&&D&&D.label&&D.label.xy&&(A=z({x:D.label.xy.x,y:D.label.xy.y,z:null},b,b.vd)),p&&p.label&&p.label.xy&&(N=z({x:p.label.xy.x,y:p.label.xy.y,z:null},b,b.vd)),x={x:a.label.xy.x,y:a.label.xy.y,z:null},x=z(x,b,b.vd),Math.abs(A?x.x-A.x:N?N.x-x.x:s.x-n.x)}return r.apply(t,[].slice.call(arguments,1))}function c(r){var a=r.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(a,!0):a}var f=function(){function r(a){this.axis=a}return r.compose=function(a,t){if(V.compose(t),h.indexOf(a)===-1){h.push(a),M(!0,a.defaultOptions,W),a.keepProps.push("axis3D"),E(a,"init",d),E(a,"afterSetOptions",u),E(a,"drawCrosshair",g);var i=a.prototype;y(i,"getLinePath",v),y(i,"getPlotBandPath",w),y(i,"getPlotLinePath",S),y(i,"getSlotWidth",C),y(i,"getTitlePosition",c)}},r.prototype.fix3dPosition=function(a,t){var i=this.axis,o=i.chart;if(i.coll==="colorAxis"||!o.chart3d||!o.is3d())return a;var e,s=Z*o.options.chart.options3d.alpha,n=Z*o.options.chart.options3d.beta,l=k(t&&i.options.title.position3d,i.options.labels.position3d),b=k(t&&i.options.title.skew3d,i.options.labels.skew3d),T=o.chart3d.frame3d,D=o.plotLeft,p=o.plotWidth+D,x=o.plotTop,A=o.plotHeight+x,N=0,_=0,L={x:0,y:1,z:0},O=!1;if(a=i.axis3D.swapZ({x:a.x,y:a.y,z:0}),i.isZAxis)if(i.opposite){if(T.axes.z.top===null)return{};_=a.y-x,a.x=T.axes.z.top.x,a.y=T.axes.z.top.y,e=T.axes.z.top.xDir,O=!T.top.frontFacing}else{if(T.axes.z.bottom===null)return{};_=a.y-A,a.x=T.axes.z.bottom.x,a.y=T.axes.z.bottom.y,e=T.axes.z.bottom.xDir,O=!T.bottom.frontFacing}else if(i.horiz)if(i.opposite){if(T.axes.x.top===null)return{};_=a.y-x,a.y=T.axes.x.top.y,a.z=T.axes.x.top.z,e=T.axes.x.top.xDir,O=!T.top.frontFacing}else{if(T.axes.x.bottom===null)return{};_=a.y-A,a.y=T.axes.x.bottom.y,a.z=T.axes.x.bottom.z,e=T.axes.x.bottom.xDir,O=!T.bottom.frontFacing}else if(i.opposite){if(T.axes.y.right===null)return{};N=a.x-p,a.x=T.axes.y.right.x,a.z=T.axes.y.right.z,e={x:(e=T.axes.y.right.xDir).z,y:e.y,z:-e.x}}else{if(T.axes.y.left===null)return{};N=a.x-D,a.x=T.axes.y.left.x,a.z=T.axes.y.left.z,e=T.axes.y.left.xDir}if(l!=="chart")if(l==="flap")if(i.horiz){var j=Math.sin(s),Y=Math.cos(s);i.opposite&&(j=-j),O&&(j=-j),L={x:e.z*j,y:Y,z:-e.x*j}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else if(l==="ortho")if(i.horiz){var X=Math.sin(s),G=Math.cos(s),q={x:Math.sin(n)*G,y:-X,z:-G*Math.cos(n)};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 Q=1/Math.sqrt(L.x*L.x+L.y*L.y+L.z*L.z);O&&(Q=-Q),L={x:Q*L.x,y:Q*L.y,z:Q*L.z}}else e={x:Math.cos(n),y:0,z:Math.sin(n)};else i.horiz?L={x:Math.sin(n)*Math.sin(s),y:Math.cos(s),z:-Math.cos(n)*Math.sin(s)}:e={x:Math.cos(n),y:0,z:Math.sin(n)};a.x+=N*e.x+_*L.x,a.y+=N*e.y+_*L.y,a.z+=N*e.z+_*L.z;var J=U([a],i.chart)[0];if(b){I(U([a,{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart))<0&&(e={x:-e.x,y:-e.y,z:-e.z});var rt=U([{x:a.x,y:a.y,z:a.z},{x:a.x+e.x,y:a.y+e.y,z:a.z+e.z},{x:a.x+L.x,y:a.y+L.y,z:a.z+L.z}],i.chart);J.matrix=[rt[1].x-rt[0].x,rt[1].y-rt[0].y,rt[2].x-rt[0].x,rt[2].y-rt[0].y,J.x,J.y],J.matrix[4]-=J.x*J.matrix[0]+J.y*J.matrix[2],J.matrix[5]-=J.x*J.matrix[1]+J.y*J.matrix[3]}return J},r.prototype.swapZ=function(a,t){var i=this.axis;if(i.isZAxis){var o=t?0:i.chart.plotLeft;return{x:o+a.z,y:a.y,z:a.x-o}}return a},r}();return f}),et(B,"Core/Series/Series3D.js",[B["Core/Math3D.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(y,h){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},V(y,h)},function(y,h){function u(){this.constructor=y}V(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),Z=W.perspective,U=H.addEvent,z=H.extend,I=H.merge,E=H.pick,M=H.isNumber,k=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return $(h,y),h.prototype.translate=function(){y.prototype.translate.apply(this,arguments),this.chart.is3d()&&this.translate3dPoints()},h.prototype.translate3dPoints=function(){var u,g,d,v,w,S=this,C=S.options,c=S.chart,f=E(S.zAxis,c.options.zAxis[0]),r=[],a=[],t=C.stacking?M(C.stack)?C.stack:0:S.index||0;for(S.zPadding=t*(C.depth||0+(C.groupZPadding||1)),w=0;w<S.data.length;w++)u=S.data[w],f&&f.translate?(v=f.logarithmic&&f.val2lin?f.val2lin(u.z):u.z,u.plotZ=f.translate(v),u.isInside=!!u.isInside&&v>=f.min&&v<=f.max):u.plotZ=S.zPadding,u.axisXpos=u.plotX,u.axisYpos=u.plotY,u.axisZpos=u.plotZ,r.push({x:u.plotX,y:u.plotY,z:u.plotZ}),a.push(u.plotX||0);for(S.rawPointsX=a,g=Z(r,c,!0),w=0;w<S.data.length;w++)u=S.data[w],d=g[w],u.plotX=d.x,u.plotY=d.y,u.plotZ=d.z},h.defaultOptions=I(R.defaultOptions),h}(R);return U(R,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),z(R.prototype,{translate3dPoints:k.prototype.translate3dPoints}),k}),et(B,"Series/Area3D/Area3DSeries.js",[B["Core/Math3D.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.perspective,$=R.seriesTypes.line.prototype,Z=H.wrap,U=[];function z(I){var E=this,M=I.apply(E,[].slice.call(arguments,1));if(!E.chart.is3d())return M;var k=$.getGraphPath,y=E.options,h=Math.round(E.yAxis.getThreshold(y.threshold)),u=[];if(E.rawPointsX)for(var g=0;g<E.points.length;g++)u.push({x:E.rawPointsX[g],y:y.stacking?E.points[g].yBottom:h,z:E.zPadding});var d=E.chart.options.chart.options3d;u=V(u,E.chart,!0).map(function(S){return{plotX:S.x,plotY:S.y,plotZ:S.z}}),E.group&&d&&d.depth&&d.beta&&(E.markerGroup&&(E.markerGroup.add(E.group),E.markerGroup.attr({translateX:0,translateY:0})),E.group.attr({zIndex:Math.max(1,d.beta>270||d.beta<90?d.depth-Math.round(E.zPadding||0):Math.round(E.zPadding||0))})),u.reversed=!0;var v=k.call(E,u,!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 M}return{compose:function(I){U.indexOf(I)===-1&&(U.push(I),Z(I.prototype,"getGraphPath",z))}}}),et(B,"Series/Column3D/Column3DComposition.js",[B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Math3D.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z=W.prototype,I=R.svg,E=V.perspective,M=U.addEvent,k=U.pick,y=U.wrap;function h(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"]=k(this.options.edgeWidth,1)),w}function u(v,w,S){var C=this.chart.is3d&&this.chart.is3d();C&&(this.options.inactiveOtherPoints=!0),v.call(this,w,S),C&&(this.options.inactiveOtherPoints=!1)}function g(v){for(var w=[],S=1;S<arguments.length;S++)w[S-1]=arguments[S];return this.series.chart.is3d()?this.graphic&&this.graphic.element.nodeName!=="g":v.apply(this,w)}if(y(z,"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))}),z.translate3dPoints=function(){},z.translate3dShapes=function(){var v,w=this,S=w.chart,C=w.options,c=C.depth,f=(C.stacking?C.stack||0:w.index)*(c+(C.groupZPadding||1)),r=w.borderWidth%2?.5:0;S.inverted&&!w.yAxis.reversed&&(r*=-1),C.grouping!==!1&&(f=0),f+=C.groupZPadding||1,w.data.forEach(function(a){if(a.outside3dPlot=null,a.y!==null){var t,i=a.shapeArgs,o=a.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 s in i)i[s]=s==="y"?-9999:0;a.outside3dPlot=!0}}),a.shapeType==="rect"&&(a.shapeType="cuboid"),i.z=f,i.depth=c,i.insidePlotArea=!0,v={x:i.x+i.width/2,y:i.y,z:f+c/2},S.inverted&&(v.x=i.height,v.y=a.clientX),a.plot3d=E([v],S,!0,!1)[0],o=E([{x:o[0],y:o[1],z:f+c/2}],S,!0,!1)[0],a.tooltipPos=[o.x,o.y]}}),w.z=f},y(z,"animate",function(v){if(this.chart.is3d()){var w=arguments[1],S=this.yAxis,C=this,c=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,c||(f.stackY?f.shapeArgs.y=f.plotY+S.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(z,"plotGroup",function(v,w,S,C,c,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(z,"setVisible",function(v,w){var S=this;S.chart.is3d()&&S.data.forEach(function(C){C.visible=C.options.visible=w=w===void 0?!k(S.visible,C.visible):w,S.options.data[S.data.indexOf(C)]=C.options,C.graphic&&C.graphic.attr({visibility:w?"visible":"hidden"})}),v.apply(this,Array.prototype.slice.call(arguments,1))}),M(W,"afterInit",function(){if(this.chart.is3d()){var v=this.options,w=v.grouping,S=v.stacking,C=this.yAxis.options.reversedStacks,c=0;if(w===void 0||w){var f=function(t,i){var o,e=t.series,s={totalStacks:0},n=1;return e.forEach(function(l){o=k(l.options.stack,i?0:e.length-1-l.index),s[o]?s[o].series.push(l):(s[o]={series:[l],position:n},n++)}),s.totalStacks=n+1,s}(this.chart,S),r=v.stack||0,a=void 0;for(a=0;a<f[r].series.length&&f[r].series[a]!==this;a++);c=10*(f.totalStacks-f[r].position)+(C?a:-a),this.xAxis.reversed||(c=10*f.totalStacks-c)}v.depth=v.depth||25,this.z=this.z||0,v.zIndex=c}}),y(z,"pointAttribs",h),y(z,"setState",u),y(z.pointClass.prototype,"hasNewShapeType",g),$.seriesTypes.columnRange){var d=$.seriesTypes.columnrange.prototype;y(d,"pointAttribs",h),y(d,"setState",u),y(d.pointClass.prototype,"hasNewShapeType",g),d.plotGroup=z.plotGroup,d.setVisible=z.setVisible}return y(H.prototype,"alignDataLabel",function(v,w,S,C,c){var f=this.chart;if(C.outside3dPlot=w.outside3dPlot,f.is3d()&&this.is("column")){var r=this,a=r.options,t=k(C.inside,!!r.options.stacking),i=f.options.chart.options3d,o=w.pointWidth/2||0,e={x:c.x+o,y:c.y,z:r.z+a.depth/2};f.inverted&&(t&&(c.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],c.x=e.x-o,c.y=w.outside3dPlot?-9e9:e.y}v.apply(this,[].slice.call(arguments,1))}),y(Z.prototype,"getStackBox",function(v,w){var S=v.apply(this,[].slice.call(arguments,1)),C=this.axis.chart,c=w.width;if(C.is3d()&&this.base){var f=+this.base.split(",")[0],r=C.series[f],a=C.options.chart.options3d;if(r&&r instanceof $.seriesTypes.column){var t={x:S.x+(C.inverted?S.height:c/2),y:S.y,z:r.options.depth/2};C.inverted&&(S.width=0,a.alpha>=90&&a.alpha<=270&&(t.y+=c)),t=E([t],C,!0,!1)[0],S.x=t.x-c/2,S.y=t.y}}return S}),W}),et(B,"Series/Pie3D/Pie3DPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function(U,z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},R(U,z)},function(U,z){function I(){this.constructor=U}R(U,z),U.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),V=W.seriesTypes.pie.prototype.pointClass,$=V.prototype.haloPath,Z=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.series=void 0,I}return H(z,U),z.prototype.haloPath=function(){return this.series.chart.is3d()?[]:$.apply(this,arguments)},z}(V);return Z}),et(B,"Series/Pie3D/Pie3DSeries.js",[B["Core/Globals.js"],B["Series/Pie3D/Pie3DPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},$(y,h)},function(y,h){function u(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),U=W.deg2rad,z=W.svg,I=H.seriesTypes.pie,E=V.extend,M=V.pick,k=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return Z(h,y),h.prototype.addPoint=function(){y.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},h.prototype.animate=function(u){if(this.chart.is3d()){var g=this.options.animation,d=void 0,v=this.center,w=this.group,S=this.markerGroup;z&&(g===!0&&(g={}),u?(w.oldtranslateX=M(w.oldtranslateX,w.translateX),w.oldtranslateY=M(w.oldtranslateY,w.translateY),d={translateX:v[0],translateY:v[1],scaleX:.001,scaleY:.001},w.attr(d),S&&(S.attrSetters=w.attrSetters,S.attr(d))):(d={translateX:w.oldtranslateX,translateY:w.oldtranslateY,scaleX:1,scaleY:1},w.animate(d,g),S&&S.animate(d,g)))}else y.prototype.animate.apply(this,arguments)},h.prototype.drawDataLabels=function(){if(this.chart.is3d()){var u=this.chart.options.chart.options3d;this.data.forEach(function(g){var d=g.shapeArgs,v=d.r,w=(d.alpha||u.alpha)*U,S=(d.beta||u.beta)*U,C=(d.start+d.end)/2,c=g.labelPosition,f=c.connectorPosition,r=-v*(1-Math.cos(w))*Math.sin(C),a=v*(Math.cos(S)-1)*Math.cos(C);[c.natural,f.breakAt,f.touchingSliceAt].forEach(function(t){t.x+=a,t.y+=r})})}y.prototype.drawDataLabels.apply(this,arguments)},h.prototype.pointAttribs=function(u){var g=y.prototype.pointAttribs.apply(this,arguments),d=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(g.stroke=d.edgeColor||u.color||this.color,g["stroke-width"]=M(d.edgeWidth,1)),g},h.prototype.translate=function(){if(y.prototype.translate.apply(this,arguments),this.chart.is3d()){var u=this,g=u.options,d=g.depth||0,v=u.chart.options.chart.options3d,w=v.alpha,S=v.beta,C=g.stacking?(g.stack||0)*d:u._i*d;C+=d/2,g.grouping!==!1&&(C=0),u.data.forEach(function(c){var f,r=c.shapeArgs;c.shapeType="arc3d",r.z=C,r.depth=.75*d,r.alpha=w,r.beta=S,r.center=u.center,f=(r.end+r.start)/2,c.slicedTranslation={translateX:Math.round(Math.cos(f)*g.slicedOffset*Math.cos(w*U)),translateY:Math.round(Math.sin(f)*g.slicedOffset*Math.cos(w*U))}})}},h.prototype.drawTracker=function(){y.prototype.drawTracker.apply(this,arguments),this.chart.is3d()&&this.points.forEach(function(u){u.graphic&&["out","inn","side1","side2"].forEach(function(g){u.graphic&&(u.graphic[g].element.point=u)})})},h}(I);return E(k.prototype,{pointClass:R}),k}),et(B,"Series/Pie3D/Pie3DComposition.js",[B["Series/Pie3D/Pie3DPoint.js"],B["Series/Pie3D/Pie3DSeries.js"],B["Core/Series/SeriesRegistry.js"]],function(W,R,H){H.seriesTypes.pie.prototype.pointClass.prototype.haloPath=W.prototype.haloPath,H.seriesTypes.pie=R}),et(B,"Series/Scatter3D/Scatter3DPoint.js",[B["Series/Scatter/ScatterSeries.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(U,z){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},H(U,z)},function(U,z){function I(){this.constructor=U}H(U,z),U.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),$=R.defined,Z=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.options=void 0,I.series=void 0,I}return V(z,U),z.prototype.applyOptions=function(){return U.prototype.applyOptions.apply(this,arguments),$(this.z)||(this.z=0),this},z}(W.prototype.pointClass);return Z}),et(B,"Series/Scatter3D/Scatter3DSeries.js",[B["Core/Math3D.js"],B["Series/Scatter3D/Scatter3DPoint.js"],B["Series/Scatter/ScatterSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(k,y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var g in u)u.hasOwnProperty(g)&&(h[g]=u[g])},Z(k,y)},function(k,y){function h(){this.constructor=k}Z(k,y),k.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),z=W.pointCameraDistance,I=$.extend,E=$.merge,M=function(k){function y(){var h=k!==null&&k.apply(this,arguments)||this;return h.data=void 0,h.options=void 0,h.points=void 0,h}return U(y,k),y.prototype.pointAttribs=function(h){var u=k.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&h&&(u.zIndex=z(h,this.chart)),u},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(M.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:R}),V.registerSeriesType("scatter3d",M),M}),et(B,"masters/highcharts-3d.src.js",[B["Core/Globals.js"],B["Core/Renderer/SVG/SVGRenderer3D.js"],B["Core/Chart/Chart3D.js"],B["Core/Axis/ZAxis.js"],B["Core/Axis/Axis3DComposition.js"],B["Series/Area3D/Area3DSeries.js"]],function(W,R,H,V,$,Z){var U=W;R.compose(U.SVGRenderer),H.compose(U.Chart,U.Fx),V.compose(U.Chart),$.compose(U.Axis,U.Tick),Z.compose(U.seriesTypes.area)})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[at(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},1548:(ot,nt,at)=>{at.d(nt,{A:()=>pt});var ct=Function.prototype.toString;const pt=function(ut){if(ut!=null){try{return ct.call(ut)}catch(ft){}try{return ut+""}catch(ft){}}return""}},2060:(ot,nt,at)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function et(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}et(B,"Series/Funnel/FunnelSeries.js",[B["Core/Chart/Chart.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(d,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var C in S)S.hasOwnProperty(C)&&(w[C]=S[C])},$(d,v)},function(d,v){function w(){this.constructor=d}$(d,v),d.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),U=R.noop,z=H.series,I=H.seriesTypes.pie,E=V.addEvent,M=V.extend,k=V.fireEvent,y=V.isArray,h=V.merge,u=V.pick,g=function(d){function v(){var w=d!==null&&d.apply(this,arguments)||this;return w.data=void 0,w.options=void 0,w.points=void 0,w}return Z(v,d),v.prototype.alignDataLabel=function(w,S,C,c,f){var r=w.series,a=r.options.reversed,t=w.dlBox||w.shapeArgs,i=C.align,o=C.verticalAlign,e=((r.options||{}).dataLabels||{}).inside,s=r.center[1],n=a?2*s-w.plotY:w.plotY,l=r.getWidthAt(n-t.height/2+S.height),b=o==="middle"?(t.topWidth-t.bottomWidth)/4:(l-t.bottomWidth)/2,T=t.y,D=t.x,p=u(S.height,S.getBBox().height);o==="middle"?T=t.y-t.height/2+p/2:o==="top"&&(T=t.y-t.height+p+C.padding),(o==="top"&&!a||o==="bottom"&&a||o==="middle")&&(i==="right"?D=t.x-C.padding+b:i==="left"&&(D=t.x+C.padding-b)),c={x:D,y:a?T-t.height:T,width:t.bottomWidth,height:t.height},C.verticalAlign="bottom",e&&!w.visible||z.prototype.alignDataLabel.call(this,w,S,C,c,f),e&&(!w.visible&&w.dataLabel&&(w.dataLabel.placed=!1),w.contrastColor&&S.css({color:w.contrastColor}))},v.prototype.drawDataLabels=function(){var w,S,C,c,f,r=this,a=r.data,t=r.options.dataLabels.distance,i=a.length;for(r.center[2]-=2*t;i--;)S=(w=(C=a[i]).half)?1:-1,f=C.plotY,C.labelDistance=u(C.options.dataLabels&&C.options.dataLabels.distance,t),r.maxLabelDistance=Math.max(C.labelDistance,r.maxLabelDistance||0),c=r.getX(f,w,C),C.labelPosition={natural:{x:0,y:f},final:{},alignment:w?"right":"left",connectorPosition:{breakAt:{x:c+(C.labelDistance-5)*S,y:f},touchingSliceAt:{x:c+C.labelDistance*S,y:f}}};H.seriesTypes[r.options.dataLabels.inside?"column":"pie"].prototype.drawDataLabels.call(this)},v.prototype.translate=function(){var w,S,C,c,f,r,a,t,i,o,e=0,s=this,n=s.chart,l=s.options,b=l.reversed,T=l.ignoreHiddenPoint,D=n.plotWidth,p=n.plotHeight,x=0,A=l.center,N=Q(A[0],D),_=Q(A[1],p),L=Q(l.width,D),O=Q(l.height,p),j=Q(l.neckWidth,D),Y=Q(l.neckHeight,p),X=_-O/2+O-Y,G=s.data,q=l.dataLabels.position==="left"?1:0;function Q(J,rt){return/%$/.test(J)?rt*parseInt(J,10)/100:parseInt(J,10)}s.getWidthAt=function(J){return J>X||O===Y?j:j+(L-j)*(1-(J-(_-O/2))/(O-Y))},s.getX=function(J,rt,lt){return N+(rt?-1:1)*(s.getWidthAt(b?2*_-J:J)/2+lt.labelDistance)},s.center=[N,_,O],s.centerX=N,G.forEach(function(J){T&&J.visible===!1||(e+=J.y)}),G.forEach(function(J){o=null,C=e?J.y/e:0,t=(f=_-O/2+x*O)+C*O,w=s.getWidthAt(f),r=(c=N-w/2)+w,w=s.getWidthAt(t),i=(a=N-w/2)+w,f>X?(c=a=N-j/2,r=i=N+j/2):t>X&&(o=t,w=s.getWidthAt(X),i=(a=N-w/2)+w,t=X),b&&(f=2*_-f,t=2*_-t,o!==null&&(o=2*_-o)),S=[["M",c,f],["L",r,f],["L",i,t]],o!==null&&S.push(["L",i,o],["L",a,o]),S.push(["L",a,t],["Z"]),J.shapeType="path",J.shapeArgs={d:S},J.percentage=100*C,J.plotX=N,J.plotY=(f+(o||t))/2,J.tooltipPos=[N,J.plotY],J.dlBox={x:a,y:f,topWidth:r-c,bottomWidth:i-a,height:Math.abs(u(o,t)-f),width:NaN},J.slice=U,J.half=q,T&&J.visible===!1||(x+=C)}),k(s,"afterTranslate")},v.prototype.sortByAngle=function(w){w.sort(function(S,C){return S.plotY-C.plotY})},v.defaultOptions=h(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 M(g.prototype,{animate:U}),E(W,"afterHideAllOverlappingLabels",function(){this.series.forEach(function(d){var v=d.options&&d.options.dataLabels;y(v)&&(v=v[0]),d.is("pie")&&d.placeDataLabels&&v&&!v.inside&&d.placeDataLabels()})}),H.registerSeriesType("funnel",g),g}),et(B,"Series/Pyramid/PyramidSeries.js",[B["Series/Funnel/FunnelSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(z,I){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var k in M)M.hasOwnProperty(k)&&(E[k]=M[k])},V(z,I)},function(z,I){function E(){this.constructor=z}V(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=H.merge,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E}return $(I,z),I.defaultOptions=Z(W.defaultOptions,{neckWidth:"0%",neckHeight:"0%",reversed:!0}),I}(W);return R.registerSeriesType("pyramid",U),U}),et(B,"masters/modules/funnel.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[at(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},2281:(ot,nt,at)=>{at.r(nt),at.d(nt,{default:()=>ye});var ct=at(6096),pt=at(5436),ut=at(3269);function ft(Et){var Gt=this.__data__=new ct.A(Et);this.size=Gt.size}ft.prototype.clear=function(){this.__data__=new ct.A,this.size=0},ft.prototype.delete=function(Et){var Gt=this.__data__,Yt=Gt.delete(Et);return this.size=Gt.size,Yt},ft.prototype.get=function(Et){return this.__data__.get(Et)},ft.prototype.has=function(Et){return this.__data__.has(Et)},ft.prototype.set=function(Et,Gt){var Yt=this.__data__;if(Yt instanceof ct.A){var $t=Yt.__data__;if(!pt.A||$t.length<199)return $t.push([Et,Gt]),this.size=++Yt.size,this;Yt=this.__data__=new ut.A($t)}return Yt.set(Et,Gt),this.size=Yt.size,this};const B=ft;var et=at(6124);at(9465);var W=at(4044),R=at(7313);const H=function(Et){return(0,R.A)(Et)&&(0,W.A)(Et)=="[object Arguments]"};var V=Object.prototype,$=V.hasOwnProperty,Z=V.propertyIsEnumerable;const U=H(function(){return arguments}())?H:function(Et){return(0,R.A)(Et)&&$.call(Et,"callee")&&!Z.call(Et,"callee")};var z=at(6956),I=at(9600),E=P&&!P.nodeType&&P,M=E&&!0&&m&&!m.nodeType&&m,k=M&&M.exports===E?I.A.Buffer:void 0;const y=(k?k.isBuffer:void 0)||function(){return!1};var h=at(5378);const u=function(Et){return typeof Et=="number"&&Et>-1&&Et%1==0&&Et<=9007199254740991};var g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g["[object Arguments]"]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g["[object Map]"]=g["[object Number]"]=g["[object Object]"]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;const d=function(Et){return function(Gt){return Et(Gt)}};var v=at(6713),w=P&&!P.nodeType&&P,S=w&&!0&&m&&!m.nodeType&&m,C=S&&S.exports===w&&v.A.process;const c=function(){try{return S&&S.require&&S.require("util").types||C&&C.binding&&C.binding("util")}catch(Et){}}();var f=c&&c.isTypedArray;const r=f?d(f):function(Et){return(0,R.A)(Et)&&u(Et.length)&&!!g[(0,W.A)(Et)]};var a=Object.prototype.hasOwnProperty;const t=function(Et,Gt){var Yt=(0,z.A)(Et),$t=!Yt&&U(Et),ce=!Yt&&!$t&&y(Et),pe=!Yt&&!$t&&!ce&&r(Et),Wt=Yt||$t||ce||pe,At=Wt?function(Qt,de){for(var ne=-1,ue=Array(Qt);++ne<Qt;)ue[ne]=de(ne);return ue}(Et.length,String):[],Bt=At.length;for(var Xt in Et)!a.call(Et,Xt)||Wt&&(Xt=="length"||ce&&(Xt=="offset"||Xt=="parent")||pe&&(Xt=="buffer"||Xt=="byteLength"||Xt=="byteOffset")||(0,h.A)(Xt,Bt))||At.push(Xt);return At};var i=Object.prototype;const o=function(Et){var Gt=Et&&Et.constructor;return Et===(typeof Gt=="function"&&Gt.prototype||i)},e=function(Et,Gt){return function(Yt){return Et(Gt(Yt))}},s=e(Object.keys,Object);var n=Object.prototype.hasOwnProperty,l=at(405);const b=function(Et){return Et!=null&&u(Et.length)&&!(0,l.A)(Et)},T=function(Et){return b(Et)?t(Et):function(Gt){if(!o(Gt))return s(Gt);var Yt=[];for(var $t in Object(Gt))n.call(Gt,$t)&&$t!="constructor"&&Yt.push($t);return Yt}(Et)};var D=at(7942);const p=function(){return[]};var x=Object.prototype.propertyIsEnumerable,A=Object.getOwnPropertySymbols;const N=A?function(Et){return Et==null?[]:(Et=Object(Et),function(Gt,Yt){for(var $t=-1,ce=Gt==null?0:Gt.length,pe=0,Wt=[];++$t<ce;){var At=Gt[$t];Yt(At,$t,Gt)&&(Wt[pe++]=At)}return Wt}(A(Et),function(Gt){return x.call(Et,Gt)}))}:p,_=function(Et,Gt){for(var Yt=-1,$t=Gt.length,ce=Et.length;++Yt<$t;)Et[ce+Yt]=Gt[Yt];return Et},L=e(Object.getPrototypeOf,Object),O=function(Et,Gt,Yt){var $t=Gt(Et);return(0,z.A)(Et)?$t:_($t,Yt(Et))},j=function(Et){return O(Et,T,N)};var Y=at(123);const X=(0,Y.A)(I.A,"DataView"),G=(0,Y.A)(I.A,"Promise"),q=(0,Y.A)(I.A,"Set"),Q=(0,Y.A)(I.A,"WeakMap");var J=at(1548),rt="[object Map]",lt="[object Promise]",gt="[object Set]",mt="[object WeakMap]",bt="[object DataView]",yt=(0,J.A)(X),ht=(0,J.A)(pt.A),it=(0,J.A)(G),st=(0,J.A)(q),dt=(0,J.A)(Q),vt=W.A;(X&&vt(new X(new ArrayBuffer(1)))!=bt||pt.A&&vt(new pt.A)!=rt||G&&vt(G.resolve())!=lt||q&&vt(new q)!=gt||Q&&vt(new Q)!=mt)&&(vt=function(Et){var Gt=(0,W.A)(Et),Yt=Gt=="[object Object]"?Et.constructor:void 0,$t=Yt?(0,J.A)(Yt):"";if($t)switch($t){case yt:return bt;case ht:return rt;case it:return lt;case st:return gt;case dt:return mt}return Gt});const Ct=vt;var xt=Object.prototype.hasOwnProperty;const wt=I.A.Uint8Array,Mt=function(Et){var Gt=new Et.constructor(Et.byteLength);return new wt(Gt).set(new wt(Et)),Gt};var St=/\w*$/,Tt=at(3516),Lt=Tt.A?Tt.A.prototype:void 0,Pt=Lt?Lt.valueOf:void 0;const Dt=function(Et,Gt,Yt){var $t,ce,pe,Wt=Et.constructor;switch(Gt){case"[object ArrayBuffer]":return Mt(Et);case"[object Boolean]":case"[object Date]":return new Wt(+Et);case"[object DataView]":return function(At,Bt){var Xt=Mt(At.buffer);return new At.constructor(Xt,At.byteOffset,At.byteLength)}(Et);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(At,Bt){var Xt=Mt(At.buffer);return new At.constructor(Xt,At.byteOffset,At.length)}(Et);case"[object Map]":case"[object Set]":return new Wt;case"[object Number]":case"[object String]":return new Wt(Et);case"[object RegExp]":return(pe=new(ce=Et).constructor(ce.source,St.exec(ce))).lastIndex=ce.lastIndex,pe;case"[object Symbol]":return $t=Et,Pt?Object(Pt.call($t)):{}}};var jt=Object.create;const Ot=function(){function Et(){}return function(Gt){if(!(0,D.A)(Gt))return{};if(jt)return jt(Gt);Et.prototype=Gt;var Yt=new Et;return Et.prototype=void 0,Yt}}();var It=c&&c.isMap;const Nt=It?d(It):function(Et){return(0,R.A)(Et)&&Ct(Et)=="[object Map]"};var Zt=c&&c.isSet;const zt=Zt?d(Zt):function(Et){return(0,R.A)(Et)&&Ct(Et)=="[object Set]"};var Ht="[object Arguments]",Kt="[object Function]",me="[object Object]",Ut={};Ut[Ht]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object DataView]"]=Ut["[object Boolean]"]=Ut["[object Date]"]=Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut[me]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object Symbol]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Error]"]=Ut[Kt]=Ut["[object WeakMap]"]=!1;const te=function Et(Gt,Yt,$t,ce,pe,Wt){var At,Bt=1&Yt;if(At!==void 0)return At;if(!(0,D.A)(Gt))return Gt;var Xt=(0,z.A)(Gt);if(Xt)At=function(qt){var ve=qt.length,ae=new qt.constructor(ve);return ve&&typeof qt[0]=="string"&&xt.call(qt,"index")&&(ae.index=qt.index,ae.input=qt.input),ae}(Gt);else{var Qt=Ct(Gt),de=Qt==Kt||Qt=="[object GeneratorFunction]";if(y(Gt))return function(qt,ve){return qt.slice()}(Gt);if(Qt==me||Qt==Ht||de&&!pe)At=de?{}:function(qt){return typeof qt.constructor!="function"||o(qt)?{}:Ot(L(qt))}(Gt);else{if(!Ut[Qt])return pe?Gt:{};At=Dt(Gt,Qt)}}Wt||(Wt=new B);var ne=Wt.get(Gt);if(ne)return ne;Wt.set(Gt,At),zt(Gt)?Gt.forEach(function(qt){At.add(Et(qt,Yt,$t,qt,Gt,Wt))}):Nt(Gt)&&Gt.forEach(function(qt,ve){At.set(ve,Et(qt,Yt,$t,ve,Gt,Wt))});var ue=Xt?void 0:j(Gt);return function(qt,ve){for(var ae=-1,ao=qt==null?0:qt.length;++ae<ao&&ve(qt[ae],ae,qt)!==!1;);}(ue||Gt,function(qt,ve){ue&&(qt=Gt[ve=qt]),(0,et.A)(At,ve,Et(qt,Yt,$t,ve,Gt,Wt))}),At},ye=function(Et){return te(Et,5)}},2382:function(ot,nt,at){var ct=this&&this.__read||function(W,R){var H=typeof Symbol=="function"&&W[Symbol.iterator];if(!H)return W;var V,$,Z=H.call(W),U=[];try{for(;(R===void 0||R-- >0)&&!(V=Z.next()).done;)U.push(V.value)}catch(z){$={error:z}}finally{try{V&&!V.done&&(H=Z.return)&&H.call(Z)}finally{if($)throw $.error}}return U},pt=this&&this.__spreadArray||function(W,R,H){if(H||arguments.length===2)for(var V,$=0,Z=R.length;$<Z;$++)!V&&$ in R||(V||(V=Array.prototype.slice.call(R,0,$)),V[$]=R[$]);return W.concat(V||Array.prototype.slice.call(R))},ut=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(nt,"__esModule",{value:!0});var ft=ut(at(8552)),B=ut(at(4501)),et=at(622);nt.default=function(W){var R,H=W.fireEvent,V=new Map,$=!1;function Z(M,k){for(var y=[M,k],h=0;h<y.length;h++)for(var u=y[h],g=0;g<u.length;g++){for(var d=(g+1)%u.length,v=u[g],w=u[d],S={x:w.y-v.y,y:v.x-w.x},C=void 0,c=void 0,f=0;f<M.length;f++){var r=S.x*M[f].x+S.y*M[f].y;((0,B.default)(C)||r<C)&&(C=r),((0,B.default)(c)||r>c)&&(c=r)}var a=void 0,t=void 0;for(f=0;f<k.length;f++)r=S.x*k[f].x+S.y*k[f].y,((0,B.default)(a)||r<a)&&(a=r),((0,B.default)(t)||r>t)&&(t=r);if(c<a||t<C)return!1}return!0}function U(M,k){return(M.yAxis||[]).some(function(y){return!(!y.options.stackLabels||!y.stacking.stacks)&&Object.values(y.stacking.stacks||[]).some(function(h){return Object.values(h).some(function(u){return u.label===k})})})}function z(M){return M.series&&M.series.some(function(k){return(0,ft.default)(k,"xAxis.axisLine.animating")})}function I(M,k,y){return y&&!(0,B.default)(y.totalsRank)&&U(M,k)?y.totalsRank:k.labelrank||0}function E(){$||($=!0,V.forEach(function(M,k){if(!z(k)){if(M.length){var y=M[M.length-1];k.hideOverlappingLabels(y.labels,y.options)}V.delete(k)}}),V.size&&(clearTimeout(R),R=setTimeout(E,100)),$=!1)}W.wrap(W.Axis.prototype,"addPlotBandOrLine",function(M){var k=M.apply(this,[].slice.call(arguments,1));return(0,ft.default)(k,"options.isPlotBand")===!0&&(this.sisensePlotBands||(this.sisensePlotBands=[]),this.sisensePlotBands.push(k)),k}),W.wrap(W.PlotLineOrBand.prototype,"render",function(M){var k=this,y=k.axis,h=k.options,u=h.to,g=h.from,d=(0,et.defined)(g)&&(0,et.defined)(u),v=W.pick(h.zIndex,0),w=y.chart.renderer,S=d?"bands":"lines",C={zIndex:v};S+="-labels-"+v;var c=y.plotLinesAndBandsGroups[S];return c||(C.translateX=0,C.translateY=0,y.plotLinesAndBandsGroups[S]=c=w.g("plot-"+S).attr(C).add()),M.apply(this,[].slice.call(arguments,1))}),W.PlotLineOrBand.prototype.renderLabel=function(M,k,y,h){var u=this,g=u.axis,d=g.chart.renderer,v=u.label,w=(y?"bands":"lines")+"-labels-"+h,S=g.plotLinesAndBandsGroups[w];v||(u.label=v=d.text(this.getLabelText(M),0,0,M.useHTML).attr({align:M.textAlign||M.align,rotation:M.rotation,class:"highcharts-plot-"+(y?"band":"line")+"-label "+(M.className||""),zIndex:h}).add(S),g.chart.styledMode||v.css(W.merge({textOverflow:"ellipsis"},M.style)));var C=k.xBounds||[k[0][1],k[1][1],y?k[2][1]:k[0][1]],c=k.yBounds||[k[0][2],k[1][2],y?k[2][2]:k[0][2]],f=(0,et.arrayMin)(C),r=(0,et.arrayMin)(c);if(v.align(M,!1,{x:f,y:r,width:(0,et.arrayMax)(C)-f,height:(0,et.arrayMax)(c)-r}),!(v.styles.width&&v.styles.width!=="auto"||v.alignValue&&v.alignValue!=="left")){var a=M.clip?g.width:g.chart.chartWidth;v.css({width:(v.rotation===90?g.height-(v.alignAttr.y-g.top):a-(v.alignAttr.x-g.left))+"px"})}v.show(!0)},W.addEvent(W.Chart.prototype,"render",function(){var M=[];(this.xAxis||[]).forEach(function(k){k.plotLinesAndBands&&k.plotLinesAndBands.forEach(function(y){y.label&&y.label.visibility!=="hidden"&&(y.label.isSerieLabel=!0,M.push(y.label))})}),M.length>0&&this.hideOverlappingLabels(M)}),W.Chart.prototype.hideOverlappingLabels=function(M,k){var y=this;k===void 0&&(k={});var h=this;if(z(h))return function(t,i,o){V.has(t)||V.set(t,[]),V.get(t).push({labels:i,options:o}),E()}(h,pt([],ct(M),!1),k);E(),(M=M.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,s=e.transform.baseVal.consolidate().matrix,n=e.getBBox();function l(b,T){var D=o.createSVGPoint();D.x=b,D.y=T;var p=D.matrixTransform(s);return{x:p.x,y:p.y}}return[l(n.x,n.y),l(n.x,n.y+n.height),l(n.x+n.width,n.y+n.height),l(n.x+n.width,n.y)]}(t)}),M.sort(function(t,i){return I(h,i,k)-I(h,t,k)});var u=this.plotBackground&&this.plotBackground.element?this.plotBackground.element.getBoundingClientRect():null,g=u?{x:(0,et.defined)(u.x)?u.x:u.left,y:(0,et.defined)(u.y)?u.y:u.top,width:u.width,height:u.height}:null,d=(0,ft.default)(h,"options.chart.type"),v=d==="area"||d==="areaspline",w=d==="pie";if((v||d==="column"||d==="bar"||d==="line"||d==="bubble"||d==="boxplot")&&g){g.x-=10,g.y-=10,g.width+=20,g.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})}(h)&&(g.y-=30,g.height+=30);var S=this.series&&this.series.some(function(t){return(0,ft.default)(t,"options.stacking")==="percent"});M.forEach(function(t){var i,o,e,s;t.newOpacity===0||t.isSerieLabel||S&&U(y,t)||(i=g,o=t.element.getBoundingClientRect(),e=(0,et.defined)(o.x)?o.x:o.left,s=(0,et.defined)(o.y)?o.y:o.top,i.x<=e&&i.y<=s&&i.x+i.width>=e+o.width&&i.y+i.height>=s+o.height)||(t.newOpacity=0)})}for(var C=M.length,c=0;c<C;c++)for(var f=M[c],r=c+1;r<C;++r){var a=M[r];f.polygon&&a.polygon&&f!==a&&f.newOpacity!==0&&a.newOpacity!==0&&Z(f.polygon,a.polygon)&&((I(h,f,k)<I(h,a,k)?f:a).newOpacity=0)}M.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(h,"afterHideOverlappingLabels")):t.attr({opacity:o})),t.isOld=!0))})},W.wrap(W.SVGElement.prototype,"animate",function(M,k,y,h){var u=this;return u.animating=!0,M.apply(this,[k,y,function(){u.animating=!1,h?h(arguments):y&&y.complete&&y.complete(arguments)}])})}},2397:function(ot,nt,at){var ct=this&&this.__assign||function(){return ct=Object.assign||function(W){for(var R,H=1,V=arguments.length;H<V;H++)for(var $ in R=arguments[H])Object.prototype.hasOwnProperty.call(R,$)&&(W[$]=R[$]);return W},ct.apply(this,arguments)},pt=this&&this.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(nt,"__esModule",{value:!0});var ut=pt(at(8552)),ft=pt(at(4501)),B=pt(at(2281)),et=at(622);nt.default=function(W){var R=W.merge,H=W.extend,V=W.pick;W.getOptions().plotOptions.boxplot.lineWidth=1,W.getOptions().plotOptions.boxplot.fillOpacity=.6,W.getOptions().plotOptions.boxplot.strokeOpacity=.6,W.getOptions().plotOptions.boxplot.strokeWidth=1,W.getOptions().plotOptions.boxplot.states.select.lineWidth=1,W.getOptions().plotOptions.boxplot.states.select.fillOpacity=.3,W.getOptions().plotOptions.boxplot.states.select.strokeOpacity=.3,W.getOptions().plotOptions.boxplot.states.hover.lineWidth=1,W.getOptions().plotOptions.boxplot.states.hover.fillOpacity=1,W.getOptions().plotOptions.boxplot.states.hover.strokeOpacity=1,W.wrap(W.seriesTypes.boxplot.prototype,"drawPoints",function(){var $,Z,U,z,I,E,M,k,y,h,u,g,d,v,w,S,C,c,f,r,a,t,i,o,e,s,n=this,l=n.points,b=n.options,T=n.chart.renderer,D=n.doQuartiles!==!1,p=parseInt(n.options.whiskerLength,10)/100;l.forEach(function(x){if(u=x.graphic,o=x.shapeArgs,d={},C={},f={},e=x.color||n.color,s=x.innerBoxColor||n.color,x.plotY!==void 0){$={fill:s,"fill-opacity":.75,stroke:n.color,"stroke-opacity":1,"stroke-width":1},x.selected&&($.fill=s,$["fill-opacity"]=.3,$["stroke-opacity"]=.3),U={fill:s,"fill-opacity":$["fill-opacity"],stroke:e,"stroke-width":1};var A={fill:$.fill,"fill-opacity":$["fill-opacity"],"stroke-opacity":$["fill-opacity"]};Z=ct({},$),r=o.width,a=Math.floor(o.x),t=a+r,i=Math.round(r/2),z=Math.floor(D?x.q1Plot:x.lowPlot),I=Math.floor(D?x.q3Plot:x.lowPlot),E=Math.floor(x.highPlot),M=Math.floor(x.lowPlot),d.stroke=x.stemColor||b.stemColor||e,d["stroke-width"]=V(x.stemWidth,b.stemWidth,b.lineWidth),d.dashstyle=x.stemDashStyle||b.stemDashStyle,C.stroke=x.whiskerColor||b.whiskerColor||e,C["stroke-width"]=V(x.whiskerWidth,b.whiskerWidth,b.lineWidth),f.stroke=x.medianColor||b.medianColor||e,f["stroke-width"]=V(x.medianWidth,b.medianWidth,b.lineWidth),f["stroke-linecap"]="round",y=d["stroke-width"]%2/2,g=["M",h=a+i+y,I,"L",h,E,"M",h,z,"L",h,M,"z"],D&&(y=$["stroke-width"]%2/2,h=Math.floor(h)+y,z=Math.floor(z)+y,I=Math.floor(I)+y,v=["M",a+=y,I,"L",a,z,"L",t+=y,z,"L",t,I,"L",a,I,"z"]),p&&(y=C["stroke-width"]%2/2,w=["M",h-i*p,E+=y,"L",h+i*p,E,"M",h-i*p,M+=y,"L",h+i*p,M]),y=2,k=Math.round(x.medianPlot)+y,c=["M",a,k,"L",t,k,"z"],D&&(S=["M",a+.5,k+.5,"L",a+.5,z-.5,"L",t-.5,z-.5,"L",t-.5,k+.5,"L",a+.5,k+.5,"z"]),u?(u.attr(A),x.stem.attr(d),x.stem.animate({d:g}),p&&(x.whiskers.attr(C),x.whiskers.animate({d:w})),D&&(x.box.attr(Z),x.box.attr("stroke",Z.stroke),x.box.animate({d:v}),x.innerBox.animate({d:S}),x.innerBox.attr(U)),x.medianShape.attr(f),x.medianShape.animate({d:c})):(x.graphic=u=T.g().add(n.group).attr(A).attr("name","graphic"),x.stem=T.path(g).attr(d).attr("name","stem").add(u),p&&(x.whiskers=T.path(w).attr(C).attr("name","whiskers").add(u)),D&&(x.box=T.path(v).attr(Z).attr("stroke",Z.stroke).attr("name","box").add(u),x.innerBox=T.path(S).attr(U).attr("name","inner-box").add(u)),x.medianShape=T.path(c).attr(f).attr("name","median").add(u))}})}),W.wrap(W.seriesTypes.boxplot.prototype,"drawDataLabels",function($,Z,U){var z,I,E,M,k=this,y=k.options,h=y.cursor,u=k.points,g=y.dataLabels,d=[{name:"median",enabled:!0,indent:-15,path:function(C,c){return["M",C,c,"L",C-10,c]}},{name:"q3",enabled:!0,indent:-20,path:function(C,c){return["M",C,c,"L",C-2,c+5,C-10,c+5]}},{name:"high",enabled:!0,indent:-20,path:function(C,c){return["M",C,c,"L",C-2,c+5,C-10,c+5]}},{name:"q1",enabled:!0,indent:-7,path:function(C,c){return["M",C,c,"L",C-2,c-5,C-10,c-5]}},{name:"low",enabled:!0,indent:-7,path:function(C,c){return["M",C,c,"L",C-2,c-5,C-10,c-5]}}];if($.call(this,g,U),k.data.length>0){var v=k.barW;k.barW>k.options.maxPointWidth&&(v=k.options.maxPointWidth),this.data.forEach(function(C){C.shapeArgs.x+=(C.shapeArgs.width-v)/2,C.shapeArgs.width=v})}if(g.enabled||k._hasPointLabels){M=k.plotGroup("dataLabelsGroup","data-labels",k.visible?"visible":"hidden",g.zIndex||6);var w=k.chart.plotBox.height;if(k.type==="boxplot"&&w<200)if((0,et.defined)((0,ut.default)(u,"0.dataLabel")))for(var S=0;S<u.length;S++)u[S].dataLabel&&((0,et.defined)((0,ut.default)(u[S].dataLabel,"high"))&&u[S].dataLabel.high.destroy(),(0,et.defined)((0,ut.default)(u[S].dataLabel,"low"))&&u[S].dataLabel.low.destroy());else delete d[2],delete d[4];I=g,u.forEach(function(C){var c,f,r,a,t,i,o=!0,e=C.connector,s=C.shapeArgs,n=Math.floor(s.x)+s.width;z=C.options&&C.options.dataLabels;var l=V(z&&z.enabled,I.enabled),b=C.innerBoxColor||k.color;if(l){g=R(I,z),i=g.rotation,r=C.getLabelConfig();var T=!1,D=(0,B.default)(d);(0,et.defined)(C,"shapeArgs.height")&&C.shapeArgs.height<30&&(delete D[2],delete D[4],C.shapeArgs.height===0&&(T=!0)),(0,et.defined)(C.dataLabel)||(C.dataLabel={},C.dataLabel.element={},C.dataLabel.destroy=function(){W.removeEvent(C.dataLabel,"add"),W.removeEvent(C.dataLabel.element,"mouseenter"),W.removeEvent(C.dataLabel.element,"mouseleave"),D.forEach(function(p){p&&C.dataLabel[p.name]&&(C.dataLabel[p.name].destroy(),C.dataLabelLine[p.name].destroy())}),C.dataLabel=null,C.dataLabelLine=null}),(0,et.defined)(C.dataLabelLine)||(C.dataLabelLine={}),D.forEach(function(p){if(p&&p.enabled){c=C.dataLabel[p.name],f=C.dataLabelLine[p.name],E=g.formatter.call(r,g,p.name),g.style.color=V(g.color,g.style.color,k.color,"black"),g.x=n+12,g.y=C[p.name+"Plot"]-C.highPlot+p.indent;var x=k.visible&&k.chart.isInsidePlot(C.plotX,C.plotY,k.chart.inverted)&&k.chart.isInsidePlot(C.plotX,C.yBottom,k.chart.inverted);if(c)x?((0,et.defined)(E)?(c.attr({text:E}),o=!1):(C.dataLabel[p.name]=c=c.destroy(),e&&(C.connector=e.destroy())),f&&f.destroy()):(C.dataLabel[p.name]=c=c.destroy(),f&&f.destroy());else if((0,et.defined)(E)&&E!=="null"){for(t in a={fill:g.backgroundColor,stroke:g.borderColor,"stroke-width":g.borderWidth,r:g.borderRadius||0,rotation:i,padding:g.padding,zIndex:1})(0,ft.default)(a[t])&&delete a[t];x&&((c=k.chart.renderer[i?"text":"label"](E,0,-999,null,null,null,g.useHTML)).attr(a).css(H(g.style,h&&{cursor:h})).add(M).shadow(g.shadow),c.options={},C.dataLabel[p.name]=c)}if(x){var A={fill:b,"fill-opacity":.75,stroke:k.color,"stroke-opacity":1,"stroke-width":1},N=13;T&&(p.name==="q1"?N=5:p.name==="q3"&&(N=21)),f=C.dataLabelLine[p.name]=C.series.chart.renderer.path(p.path(2,N)).attr({"stroke-width":1,stroke:A.stroke,"stroke-opacity":A["fill-opacity"]||1}).add(c)}c&&k.alignDataLabel(C,c,g,null,o,f,p.name),c.options={},C["dataLabel"+p.name]=c}})}C.dataLabels=d.map(function(p){return C.dataLabel[p.name]}).filter(function(p){return p})}),k.dataLabelCollections=[],d.map(function(C){return C.name}).forEach(function(C){k.dataLabelCollections.push("dataLabel"+C)})}}),W.wrap(W.seriesTypes.boxplot.prototype,"alignDataLabel",function($,Z,U,z,I,E,M,k){var y=this.chart,h=y.inverted,u=Z.dlBox||Z.shapeArgs,g=Z.below||Z.plotY>V(this.translatedThreshold,y.plotSizeY),d=V(z.inside,!!this.options.stacking);u&&((I=R(u)).y+=g?I.height:0,I.height=0),z.align=V(z.align,"left"),z.verticalAlign=V(z.verticalAlign,h||d?"middle":g?"top":"bottom");var v,w=U.getBBox(),S=this.visible&&y.isInsidePlot(Z.plotX,Z.plotY,h)&&y.isInsidePlot(Z.plotX,Z.yBottom,h);if(S){switch(H(z,{width:w.width,height:w.height}),v={align:z.align,x:z.x,y:I.y+z.y+I.height/2},k){case"q3":(0,et.defined)(Z,"dataLabel.median.y")&&Z.dataLabel.median.y!=999&&v.y+z.height>Z.dataLabel.median.y&&(v.y=Z.dataLabel.median.y-(z.height/2+4));break;case"high":(0,et.defined)(Z,"dataLabel.q3.y")&&Z.dataLabel.q3.y!=999&&v.y+z.height>Z.dataLabel.q3.y&&(v.y=Z.dataLabel.q3.y-(z.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+(z.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+(z.height/2+4):(0,et.defined)(Z,"yBottom")&&v.y+z.height>y.plotHeight&&(v.y=y.plotHeight-z.height)}v.y=isNaN(v.y)?0:v.y,U[E?"attr":"animate"](v)}S||(U.attr({y:-999}),U.placed=!1,M.attr({"stroke-opacity":0}))})}},2805:function(ot,nt,at){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var pt={style:{fontSize:"13px",fontWeight:"normal",color:"#5B6372",fontFamily:ct(at(605)).default.fontFamily},borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#FFFFFF",borderRadius:10,hideDelay:20,shadow:{color:"#CECECE",offsetX:2,offsetY:2,width:5}};nt.default=pt},3039:function(ot,nt,at){var ct=this&&this.__assign||function(){return ct=Object.assign||function(H){for(var V,$=1,Z=arguments.length;$<Z;$++)for(var U in V=arguments[$])Object.prototype.hasOwnProperty.call(V,U)&&(H[U]=V[U]);return H},ct.apply(this,arguments)},pt=this&&this.__read||function(H,V){var $=typeof Symbol=="function"&&H[Symbol.iterator];if(!$)return H;var Z,U,z=$.call(H),I=[];try{for(;(V===void 0||V-- >0)&&!(Z=z.next()).done;)I.push(Z.value)}catch(E){U={error:E}}finally{try{Z&&!Z.done&&($=z.return)&&$.call(z)}finally{if(U)throw U.error}}return I},ut=this&&this.__spreadArray||function(H,V,$){if($||arguments.length===2)for(var Z,U=0,z=V.length;U<z;U++)!Z&&U in V||(Z||(Z=Array.prototype.slice.call(V,0,U)),Z[U]=V[U]);return H.concat(Z||Array.prototype.slice.call(V))},ft=this&&this.__importDefault||function(H){return H&&H.__esModule?H:{default:H}};Object.defineProperty(nt,"__esModule",{value:!0});var B=ft(at(8552)),et=ft(at(4441)),W=ft(at(2281)),R=at(622);nt.default=function(H){var V=H.removeEvent,$=H.defaultOptions.plotOptions,Z=H.fireEvent,U=H.color,z=H.extend,I=H.isNumber,E=H.merge,M=H.pick,k=H.Series,y=H.Point,h=navigator.userAgent,u=/(ipad|iphone|ipod)/g.test(h.toLowerCase()),g=document.documentElement.ontouchstart!==void 0,d=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(S){var C=S<0,c=Math.abs(S);c<10&&(c+=(10-c)/10);var f=Math.log(c)/Math.LN10;return C?-f:f},w.lin2log=function(S){var C=S<0,c=Math.pow(10,Math.abs(S));return c<10&&(c=10*(c-1)/9),C?-c:c})}),H.Series.prototype.setPercentStacks=function(){var w,S=this,C=S.stackKey,c=S.yAxis.stacking.stacks,f=new RegExp(/navigator.\d*/gi);w=S.name.match(f)?S.chart.yAxis[1].options.max||100:S.chart.yAxis[S.options.yAxis||0].options.max||100,[C,"-"+C].forEach(function(r){for(var a,t,i,o,e=S.xData.length;e--;)a=S.xData[e],(i=(t=c[r]&&c[r][a])&&t.points[S.index])&&(o=t.total?100/t.total:0,i[0]=(0,R.correctFloat)(i[0]*o*((0,R.defined)(w)?w/100:1)),i[1]=(0,R.correctFloat)(i[1]*o*((0,R.defined)(w)?w/100:1)),S.stackedYData[e]=i[1])})},H.seriesTypes.area.prototype.getStackPoints=function(w){var S=this,C=[],c=[],f=this.xAxis,r=this.yAxis,a=r.stacking.stacks[this.stackKey],t={},i=r.series,o=i.length,e=r.options.reversedStacks?1:-1,s=i.indexOf(S);if(w=w||this.points,this.options.stacking){for(var n=0;n<w.length;n++)w[n].leftNull=w[n].rightNull=void 0,t[w[n].x]=w[n];H.objectEach(a,function(b,T){b.total!==null&&c.push(T)}),c.sort(function(b,T){return b-T});var l=i.map(function(b){return b.visible});c.forEach(function(b,T){var D,p,x=0;if(t[b]&&!t[b].isNull)C.push(t[b]),[-1,1].forEach(function(_){var L=_===1?"rightNull":"leftNull",O=_===1?"rightCliff":"leftCliff",j=a[c[T+_]],Y=0;if(j)for(var X=s;X>=0&&X<o;){var G=i[X].index;(D=j.points[G])||(G===S.index?t[b][L]=!0:l[X]&&(p=a[b].points[G])&&(Y-=p[1]-p[0])),X+=e}t[b][O]=Y});else{for(var A=s;A>=0&&A<o;){var N=i[A].index;if(D=a[b].points[N]){x=D[1];break}A+=e}x=M(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 S,C,c,f=H.seriesTypes.line.prototype.getGraphPath,r=this.options,a=r.stacking,t=this.yAxis,i=[],o=[],e=this.index,s=t.stacking.stacks[this.stackKey],n=r.threshold,l=Math.round(t.getThreshold(r.threshold)),b=M(r.connectNulls,a==="percent"),T=function(G,q,Q){var J,rt,lt=w[G],gt=a&&s[lt.x].points[e],mt=lt[Q+"Null"]||0,bt=lt[Q+"Cliff"]||0,yt=!0;bt||mt?(J=(mt?gt[0]:gt[1])+bt,rt=gt[0]+bt,yt=!!mt):!a&&w[q]&&w[q].isNull&&(J=rt=n),J!==void 0&&(o.push({plotX:S,plotY:J===null?l:t.getThreshold(J),isNull:yt,isCliff:!0}),i.push({plotX:S,plotY:rt===null?l:t.getThreshold(rt),doCurve:!1}))};w=w||this.points,a&&(w=this.getStackPoints(w));for(var D=0,p=w.length;D<p;++D)if(a||(w[D].leftCliff=w[D].rightCliff=w[D].leftNull=w[D].rightNull=void 0),C=w[D].isNull,S=M(w[D].rectPlotX,w[D].plotX),c=a?M(w[D].yBottom,l):l,!C||b){var x=w[D-1],A=w[D+1],N=!w[D].isDividerNull&&x&&x.isDividerNull,_=!w[D].isDividerNull&&A&&A.isDividerNull;b&&!N||T(D,D-1,"left"),C&&!a&&b||(o.push(w[D]),i.push({x:D,plotX:S,plotY:c})),b&&!_||T(D,D+1,"right")}var L=f.call(this,o,!0,!0);i.reversed=!0;var O=f.call(this,i,!0,!0),j=O[0];j&&j[0]==="M"&&(O[0]=["L",j[1],j[2]]);var Y=L.concat(O);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,S){var C,c,f,r,a,t,i=this.options.marker,o=w&&w.options,e=o&&o.marker||{},s=this.color,n=o&&o.color,l=w&&w.color,b=M(e.lineWidth,i.lineWidth),T=w&&w.zone&&w.zone.color;return s=n||T||l||s,f=e.fillColor||i.fillColor||s,r=e.lineColor||i.lineColor||s,a=1,t=1,S&&(C=i.states[S],c=e.states&&e.states[S]||{},b=M(c.lineWidth,C.lineWidth,b+M(c.lineWidthPlus,C.lineWidthPlus,0)),f=c.fillColor||C.fillColor||f,r=c.lineColor||C.lineColor||r,a=c.fillOpacity||C.fillOpacity||1,t=c.fillOpacity||C.fillOpacity||1),{stroke:r,"stroke-width":b,"stroke-opacity":t,"fill-opacity":a,fill:f}},H.Point.prototype.setState=function(w,S){var C,c,f,r=this,a=Math.floor(r.plotX),t=r.plotY,i=r.series,o=i.options.states[w]||{},e=$[i.type].marker&&i.options.marker,s=e&&e.enabled===!1,n=e&&e.states&&e.states[w]||{},l=n.enabled===!1,b=i.stateMarkerGraphic,T=r.marker||{},D=i.chart,p=i.halo,x=e&&i.markerAttribs;if(!((w=w||"")===r.state&&!S||r.selected&&w!=="select"||o.enabled===!1||w&&(l||s&&n.enabled===!1)||w&&T.states&&T.states[w]&&T.states[w].enabled===!1)){if(x&&(c=i.markerAttribs(r,w)),r.graphic){r.state&&r.graphic.removeClass("highcharts-point-"+r.state),w&&r.graphic.addClass("highcharts-point-"+w);var A=r.innerBoxColor||i.color,N={fill:A,"fill-opacity":.8,stroke:i.color,"stroke-opacity":1,"stroke-width":1};if(r.selected){var _=.3;N.fill=A,N["fill-opacity"]=_,N["stroke-opacity"]=_}w==="hover"&&(_=.9,N.fill=A,N["fill-opacity"]=_,N["stroke-opacity"]=_);var L={fill:A,"fill-opacity":1,stroke:U,"stroke-width":1},O=ct({},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(O),r.box.attr("stroke",O.stroke),r.innerBox.attr(L)),r.medianShape&&r.medianShape.attr({}),c&&r.graphic.animate(c,M(D.options.chart.animation,n.animation,e.animation)),b&&b.hide()}else w&&n&&(f=T.symbol||i.symbol,b&&b.currentSymbol!==f&&(b=b.destroy()),b?b[S?"animate":"attr"]({x:c.x,y:c.y}):f&&(i.stateMarkerGraphic=b=D.renderer.symbol(f,c.x,c.y,c.width,c.height).add(i.markerGroup),b.currentSymbol=f),b&&b.attr(i.pointAttribs(r,w))),b&&(b[w&&D.isInsidePlot(a,t,D.inverted)?"show":"hide"](),b.element.point=r);(C=o.halo)&&C.size?(p||(i.halo=p=D.renderer.path().add((r.graphic||b).parentGroup)),p[S?"animate":"attr"]({d:r.haloPath(C.size)}),p.attr({class:"highcharts-halo highcharts-color-"+M(r.colorIndex,i.colorIndex)}),p.point=r,p.attr(z({fill:r.color||i.color,"fill-opacity":C.opacity,zIndex:-1},C.attributes))):p&&p.point&&p.point.haloPath&&p.animate({d:p.point.haloPath(0)}),r.state=w}},H.Point.prototype.applyOptions=function(w,S){var C=this,c=C.series,f=c.options.pointValKey||c.pointValKey;return w=y.prototype.optionsToObject.call(this,w),z(C,w),C.options=C.options?z(C.options,w):w,w.group&&delete C.group,f&&(C.y=C[f]),C.isNull=M(C.isValid&&!C.isValid(),C.x===null||C.y===null||!I(C.y,!0)),C.selected&&(C.state="select"),"name"in C&&S===void 0&&c.xAxis&&c.xAxis.hasNames&&(C.x=c.xAxis.nameToX(C)),C.x===void 0&&c&&(C.x=S===void 0?c.autoIncrement(C):S),C},H.seriesTypes.column.prototype.pointAttribs=function(w,S){var C,c,f,r,a,t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=w&&w.color||this.color,n=w[o]||t[o]||this.color||s,l=w[e]||t[e]||this[e]||0,b=t.dashStyle;return w&&this.zones.length&&(s=(r=w.getZone())&&r.color||w.options.color||this.color),S&&(a=(C=t.states[S]).brightness,c=C.fillOpacity,s=C.color||a!==void 0&&U(s).brighten(C.brightness).get()||s,c&&c!==1&&(s=U(s).setOpacity(c).get("rgba")),n=C[o]||n,l=C[e]||l,b=C.dashStyle||b),f={fill:s,stroke:n,"stroke-width":l},t.borderRadius&&(f.r=t.borderRadius),b&&(f.dashstyle=b),f},H.seriesTypes.scatter.prototype.pointAttribs=function(w,S){var C=S?this.options.marker.states[S]:this.options.marker,c=M(C.fillOpacity,.5),f=k.prototype.pointAttribs.call(this,w,S);return c!==1&&(f.fill=U(f.fill).setOpacity(c).get("rgba")),f},H.seriesTypes.bubble.prototype.pointAttribs=function(w,S){var C=S?this.options.marker.states[S]:this.options.marker,c=M(C.fillOpacity,.5),f=k.prototype.pointAttribs.call(this,w,S);return c!==1&&(f.fill=U(f.fill).setOpacity(c).get("rgba")),f},H.seriesTypes.boxplot.prototype.pointAttribs=function(w,S){var C=S?this.options.states[S]:this.options,c=M(C.fillOpacity,.5),f=w&&w.color||this.color,r=w.fillColor||C.fillColor||f;return c!==1&&(r=U(r).setOpacity(c).get("rgba")),{fill:r,stroke:C.lineColor||f,"stroke-width":C.lineWidth||0}},H.Pointer.prototype.onContainerClick=function(w){var S,C,c,f=this.chart,r=f.hoverPoint,a=f.plotLeft,t=f.plotTop,i=f.inverted,o=w.type;w=this.normalize(w),f.cancelClick||(r&&this.inClass(w.target,v+"tracker")?(S=this.chartPosition,C=r.plotX,c=r.plotY,z(r,{pageX:S.left+a+(i?f.plotWidth-c:C),pageY:S.top+t+(i?f.plotHeight-C:c)}),Z(r.series,o,z(w,{point:r})),f.hoverPoint&&r.firePointEvent(o,w)):(z(w,this.getCoordinates(w)),f.isInsidePlot(w.chartX-a,w.chartY-t)&&Z(f,"click",w)))},H.wrap(H.Pointer.prototype,"onContainerMouseLeave",function(w,S){this.selectionMarker&&(this.selectionMarker.destroy(),this.selectionMarker=null),this.chart.mouseIsDown=!1,w.call(this,S)}),H.Pointer.prototype.onContainerTapHold=function(w){var S,C,c,f=this.chart,r=f.hoverPoint,a=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")&&(S=this.chartPosition,C=r.plotX,c=r.plotY,z(r,{pageX:S.left+a+(i?f.plotWidth-c:C),pageY:S.top+t+(i?f.plotHeight-C:c)}),Z(r.series,o,z(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,S=this,C=S.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"]],g&&u&&w.push([C,"taphold","onContainerClick"]),g&&w.push([C,"ontouchmove","onContainerTouchMove"],[C,"ontouchstart","onContainerTouchStart"],[C,"taphold","onContainerTapHold"],[document,"touchend","onDocumentTouchEnd"]),w.forEach(function(c){var f=pt(c,3),r=f[0],a=f[1],t=f[2];S["_"+t]=function(i){typeof S[c[2]]=="function"&&S[c[2]](i)},a.indexOf("on")===0?r[a]=S["_"+t]:r.addEventListener(a,S["_"+t])})},H.Navigator.prototype.updateNavigatorSeries=function(w){var S,C,c,f=this,r=f.chart,a=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 s=e.baseSeries;return!(a.indexOf(s)<0&&(s&&(V(s,"updatedData",f.updatedDataHandler),delete s.navigatorSeries),e.destroy(),1))});a&&a.length&&a.forEach(function(e){var s=e.navigatorSeries,n=z({color:e.color},Array.isArray(t)?d.navigator.series:t);if(!s||f.navigatorOptions.adaptToUpdatedData!==!1){i.name="Navigator "+a.length,S=e.options||{},c=S.navigatorOptions||{},C=E(S,i,n,c);var l=c.data||n.data;f.hasNavigatorData=f.hasNavigatorData||!!l,C.data=l||S.data&&S.data.slice(0),C.data=(0,W.default)(C.data),(C.data||[]).forEach(function(b){b&&b.marker&&b.marker.enabled&&(b.marker.enabled=!1)}),C.color=S.color,C.fillOpacity=S.fillOpacity,C.type!=="spline"&&C.type!=="areaspline"||(C.stacking=S.stacking),S.stacking!=="percent"&&S.stacking!=="normal"||(C.stacking=S.stacking,C.startFromThreshold=!1),s&&s.options?s.update(C,w):(e.navigatorSeries=r.initSeries(C),e.navigatorSeries.baseSeries=e,o.push(e.navigatorSeries))}}),(!t.data||a&&a.length)&&!Array.isArray(t)||(f.hasNavigatorData=!1,(t=H.splat(t)).forEach(function(e,s){i.name="Navigator "+(o.length+1),(C=E(d.navigator.series,{color:r.series[s]&&!r.series[s].options.isInternal&&r.series[s].color||r.options.colors[s]||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,R.wrap)(H.Pointer.prototype,"runPointActions",function(w,S,C){var c,f=S,r=this.chart;w.call(this,S,C);var a=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&&!c;)c=i.point,i=i.parentNode;c&&r.hoverPoint!=c&&c.onMouseOver(f)}(0,R.defined)(a)||(0,R.defined)(t)||(0,B.default)(r,"sisenseTipper.status")!=="on"||!r.sisenseTipper.tipper||(r.sisenseTipper.tipper.deactivate(),(0,et.default)(r,"sisenseTipper.status","off"));var o=(0,B.default)(r,"sisenseTipper.chartType");if((0,B.default)(r,"sisenseTipper.status")!=="off"&&(0,B.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,R.wrap)(H.Chart.prototype,"getContainer",function(w,S,C){w.call(this,S,C);var c,f=this;f.renderTo=c=f.container.parentElement,c.setAttribute("data-type",(0,B.default)(f,"options.chart.type"))}),(0,R.wrap)(H.Pointer.prototype,"normalize",function(w,S,C){return w.apply(this,[].slice.call(arguments,1)),C&&S.chartY<0&&(S.chartY=100),S}),(0,R.wrap)(H.Chart.prototype,"setChartSize",function(w){var S,C,c,f,r=this.legend,a=this.navigator;if(w.apply(this,[].slice.call(arguments,1)),a){if(C=r&&r.options,c=a.xAxis,f=a.yAxis,S=a.scrollbarHeight,this.inverted){var t=a.opposite?this.chartWidth-S-a.height:this.spacing[3]+S,i=this.plotTop+S;C.align==="left"&&r.legendWidth&&(t+=r.legendWidth),a.left=a.navigatorOptions.left||t,a.top=a.navigatorOptions.top||i}c&&f&&(this.inverted?c.options.left=f.options.left=a.left:c.options.top=f.options.top=a.top,c.setAxisSize(),f.setAxisSize())}}),(0,R.wrap)(H.Chart.prototype,"renderLabels",function(w){var S,C,c,f=this;if(w.apply(this,[].slice.call(arguments,1)),f&&f.polar&&f.userOptions&&((S=f.userOptions)===null||S===void 0?void 0:S.labels)&&((c=(C=f.userOptions.labels)===null||C===void 0?void 0:C.items)===null||c===void 0?void 0:c.length)){var r=void 0,a=f.userOptions.labels.items[0].html,t=ut([],pt(f.container.querySelectorAll("text")),!1).find(function(b){return b.innerHTML.includes(a)}),i=f.containerWidth,o=t.clientWidth,e=t.getBBox(),s=e.height?e.height:20,n=i/2-o/2,l=void 0;f.legend.options.verticalAlign==="top"?(r=f.legend.legendHeight+20+s)>f.plotTop&&(l=20+s,r=f.legend.legendHeight+l/2+10,f.legend.update({margin:l},!0)):(r=20)>f.plotTop&&(l=20+s,r=10+s,f.update({chart:{marginTop:l}},!0)),t.setAttribute("x",n),t.setAttribute("y",r)}}),H.wrap(H.SVGElement.prototype,"titleSetter",function(w,S){var C,c,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,c=S,H.objectEach(C,function(r,a){c=c.replace(new RegExp(r,"g"),a)}),c)))}),(0,R.wrap)(H.Chart.prototype,"renderLabels",function(w){w.apply(this,[].slice.call(arguments,1)),this.chartBackground.addClass("widget-body")}),(0,R.wrap)(H.Legend.prototype,"renderItem",function(w,S){var C=this,c=C.options,f=S.legendItem,r=S.series&&S.series.drawLegendSymbol?S.series:S,a=c.useHTML;w.apply(this,[].slice.call(arguments,1)),/msie|trident/i.exec(navigator.userAgent)&&S.legendItem.group.element.addEventListener("contextmenu",function(t){var i="legendItemClick",o={eventType:"contextmenu",browserEvent:t};return S.firePointEvent?S.firePointEvent(i,o,null):Z(r,i,o,null),!1}),(a?f:S.legendItem.group).on("mouseover",function(){var t;S.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 S.firePointEvent?S.firePointEvent(i,o,null):Z(r,i,o,null),!1})}),(0,R.wrap)(H.Navigator.prototype,"shadesMousedown",function(w){this.chart.pointer&&(this.chart.pointer.chartPosition=null),w.apply(this,[].slice.call(arguments,1))}),(0,R.wrap)(H.Navigator.prototype,"handlesMousedown",function(w){this.chart.pointer&&(this.chart.pointer.chartPosition=null),w.apply(this,[].slice.call(arguments,1))}),(0,R.wrap)(H.StackItem.prototype,"render",function(w){var S=this.options,C=(0,B.default)(this,"axis.chart.options.chart.type");if(this.alignOptions&&this.total!==void 0&&(C==="column"||C==="bar"&&Math.abs(S.rotation)===90)&&(this.alignOptions.y=this.alignOptions.x=0),w.apply(this,[].slice.call(arguments,1)),this.total!==void 0){var c=this.label.getBBox(!0,0),f=this.label.getBBox(),r=-Math.sign(this.total),a=0,t=0;if(C==="column"?(this.total<0||Math.abs(S.rotation)===90?a=f.height/2*r:Math.abs(S.rotation)===45&&this.total>0&&(a=-c.width/2*Math.sin(45*Math.PI/180)),Math.abs(S.rotation)===45&&(t+=-f.width/4*r),Math.abs(S.rotation)===90&&(t+=c.height/4),a+=5*r):C==="bar"&&Math.abs(S.rotation)===90&&(a=-f.height/2*r,this.total>=0&&(t+=c.height/2),t+=-5*r),this.label.translate(t,a),this.label&&!this.label.labelrank){var i=this.total===0?Number.MIN_SAFE_INTEGER:0;this.label.labelrank=this.x+S.labelrank+i}}}),H.wrap(H,"fireEvent",function(w,S,C,c){var f=new Event(C),r=(0,B.default)(c,"changedTouches"),a=(0,B.default)(c,"point.graphic.element");z(f,c),r&&(f.clientX=(0,B.default)(r,"0.clientX"),f.clientY=(0,B.default)(r,"0.clientY"),f.target=a),w.apply(this,[].slice.call(arguments,1))}),(0,R.wrap)(H.Point.prototype,"getLabelConfig",function(w){var S=w.apply(this,[].slice.call(arguments,1));return this.originalY&&(S.y=this.originalY),S}),(0,R.wrap)(H.seriesTypes.column.prototype,"alignDataLabel",function(w,S,C,c){var f=S.series.options.stacking,r=this.chart.inverted,a=c.rotation,t=S.y<0&&S.dataLabel,i=S.dlBox,o=S.dataLabel.getBBox();if(!f&&t){S.below=!0;var e=E(S.dlBox||S.shapeArgs),s=r?o.width:o.height;e.y+=s,S.dlBox=e}else f&&(c.align="center");!f&&a&&(o=S.dataLabel.getBBox(),r?c.x+=.5*o.width:t&&Math.abs(a)%360==45&&(c.x=.5*-o.width));var n=w.apply(this,[].slice.call(arguments,1));return S.dlBox=i,n}),H.Scroller=H.Navigator}},3269:(ot,nt,at)=>{at.d(nt,{A:()=>V});const ct=(0,at(123).A)(Object,"create");var pt=Object.prototype.hasOwnProperty,ut=Object.prototype.hasOwnProperty;function ft($){var Z=-1,U=$==null?0:$.length;for(this.clear();++Z<U;){var z=$[Z];this.set(z[0],z[1])}}ft.prototype.clear=function(){this.__data__=ct?ct(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(ct){var U=Z[$];return U==="__lodash_hash_undefined__"?void 0:U}return pt.call(Z,$)?Z[$]:void 0},ft.prototype.has=function($){var Z=this.__data__;return ct?Z[$]!==void 0:ut.call(Z,$)},ft.prototype.set=function($,Z){var U=this.__data__;return this.size+=this.has($)?0:1,U[$]=ct&&Z===void 0?"__lodash_hash_undefined__":Z,this};const B=ft;var et=at(6096),W=at(5436);const R=function($,Z){var U,z,I=$.__data__;return((z=typeof(U=Z))=="string"||z=="number"||z=="symbol"||z=="boolean"?U!=="__proto__":U===null)?I[typeof Z=="string"?"string":"hash"]:I.map};function H($){var Z=-1,U=$==null?0:$.length;for(this.clear();++Z<U;){var z=$[Z];this.set(z[0],z[1])}}H.prototype.clear=function(){this.size=0,this.__data__={hash:new B,map:new(W.A||et.A),string:new B}},H.prototype.delete=function($){var Z=R(this,$).delete($);return this.size-=Z?1:0,Z},H.prototype.get=function($){return R(this,$).get($)},H.prototype.has=function($){return R(this,$).has($)},H.prototype.set=function($,Z){var U=R(this,$),z=U.size;return U.set($,Z),this.size+=U.size==z?0:1,this};const V=H},3516:(ot,nt,at)=>{at.d(nt,{A:()=>ct});const ct=at(9600).A.Symbol},3897:function(ot,nt,at){var ct=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(at(8552)),ut=at(622),ft=ct(at(605));nt.default=function(B){var et=B.wrap;et(B.seriesTypes.pie.prototype,"drawDataLabels",function(W,R,H){var V,$=this,Z=$.chart.renderer;W.call(this,R,H);var U=function(E){var M,k,y,h,u,g,d,v,w,S,C,c,f,r,a,t,i,o,e,s,n=(0,pt.default)(E,"shapeArgs.x")+E.series.chart.plotBox.x,l=(0,pt.default)(E,"shapeArgs.y")+E.series.chart.plotBox.y,b=(0,pt.default)(E,"shapeArgs.innerR"),T=(0,pt.default)(E,"shapeArgs.r")-b,D={},p=E.shapeArgs;y=p.r*Math.sin(p.start+1.571)+n,h=p.r*Math.cos(p.start+1.571)*-1+l,C=y-(M=p.r*Math.sin((p.end+1.571+p.start+1.571)/2)+n),c=h-(k=p.r*Math.cos((p.end+1.571+p.start+1.571)/2)*-1+l),S=l-h,(w=n-y)==0?(d=1,v=0,r=1):(d=S/w,v=1,r=Math.sqrt(Math.pow(d,2)+Math.pow(v,2)),p.start+1.571>Math.PI?v*=-1:d*=-1),u=n-M,a=(w*c/S-C)/(w*(g=l-k)/(S*(f=Math.sqrt(Math.pow(u,2)+Math.pow(g,2))))-w*v/(S*r)+d/r-u/f),t=M+u/f*Math.abs(a),i=k+g/f*Math.abs(a),o=Math.sqrt(Math.pow(t-M,2)+Math.pow(i-k,2));var x=p.end-p.start,A=Math.round((0,ut.radiansToDegrees)(x)),N=(0,ut.radiansToDegrees)(Math.PI);return(2*o>T||A>=N)&&(t=M+u/f*(o=T/2),i=k+g/f*o),s=(0,pt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showDecimals")===!0?E.percentage.toFixed(1).replace(".0",""):Math.round(E.percentage),(0,ut.defined)(D[s])?e=D[s]:(e=o/1.5,D[s]=e),{fontSize:e,slicePercentage:s,newCenterX:t,newCenterY:i,circleCenterX:n,circleCenterY:l}},z=function(E,M,k,y){var h=Z.text(M.slicePercentage+"%",M.newCenterX,M.newCenterY),u={class:"pie-percent-label",zIndex:13,"text-anchor":"middle","font-size":M.fontSize},g={"pointer-events":"none","font-family":(0,pt.default)(y,"options.dataLabels.style.fontFamily",ft.default.fontFamily),"letter-spacing":"-0.05em",color:"white",fontSize:!1},d=h.attr(u).attr(k).add(),v=h.element.getBBox().height/4,w={x:M.newCenterX,y:M.newCenterY+v};E.sisenseLabel=d.css(g).attr(w).add()},I=(0,pt.default)($,"chart.options.chart.isHighlightMode");$.points.forEach(function(E){var M,k;if(E.graphic){if((0,pt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0)if(M=U(E),k=(0,pt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),M.fontSize>k)if((0,ut.defined)((0,pt.default)(E,"sisenseLabel.element"))){var y={x:M.newCenterX,y:M.newCenterY};I&&(y.translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0),E.sisenseLabel.attr({text:M.slicePercentage+"%","font-size":M.fontSize}).animate(y)}else z(E,M,V,$),E.sisenseLabel&&I&&((y={x:M.newCenterX,y:M.newCenterY}).translateX=E.sliced?E.slicedTranslation.translateX:0,y.translateY=E.sliced?E.slicedTranslation.translateY:0,E.sisenseLabel.attr({text:M.slicePercentage+"%","font-size":M.fontSize}).attr(y));else(0,ut.defined)((0,pt.default)(E,"sisenseLabel.element"))&&E.sisenseLabel.destroy()}else(0,pt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0&&(M=U(E),k=(0,pt.default)(E,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),M.fontSize>k&&z(E,M,V,$))})}),et(B.Point.prototype,"destroyElements",function(W,R,H){for(var V,$=this,Z=["decoration","sisenseLabel"],U=Z.length;U--;)$[V=Z[U]]&&$.visible&&$[V].renderer&&$[V].destroy();W.call(this,R,H)}),et(B.seriesTypes.pie.prototype.pointClass.prototype,"slice",function(W){W.apply(this,[].slice.call(arguments,1)),(0,pt.default)(this,"sisenseLabel.renderer")&&this.sisenseLabel.animate(this.getTranslate())}),B.seriesTypes.pie.prototype.placeDataLabels=function(){this.points.forEach(function(W){var R,H=W.dataLabel;H&&W.visible&&((R=H._pos)?(H.sideOverflow&&(H._attr.width=H.getBBox().width-H.sideOverflow,H.css({width:H._attr.width+"px",textOverflow:"ellipsis"}),H.shortened=!0),H.attr(H._attr),H[H.moved?"animate":"attr"](R),H.moved=!0):H&&H.attr({y:-9999}))},this)},B.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",""):"")}}},3966:function(ot,nt,at){var ct=this&&this.__importDefault||function(ut){return ut&&ut.__esModule?ut:{default:ut}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(at(368));nt.default=pt.default},4044:(ot,nt,at)=>{at.d(nt,{A:()=>R});var ct=at(3516),pt=Object.prototype,ut=pt.hasOwnProperty,ft=pt.toString,B=ct.A?ct.A.toStringTag:void 0,et=Object.prototype.toString,W=ct.A?ct.A.toStringTag:void 0;const R=function(H){return H==null?H===void 0?"[object Undefined]":"[object Null]":W&&W in Object(H)?function(V){var $=ut.call(V,B),Z=V[B];try{V[B]=void 0;var U=!0}catch(I){}var z=ft.call(V);return U&&($?V[B]=Z:delete V[B]),z}(H):function(V){return et.call(V)}(H)}},4089:(ot,nt,at)=>{at.d(nt,{A:()=>ut});var ct=at(4044),pt=at(7313);const ut=function(ft){return typeof ft=="symbol"||(0,pt.A)(ft)&&(0,ct.A)(ft)=="[object Symbol]"}},4441:(ot,nt,at)=>{at.r(nt),at.d(nt,{default:()=>et});var ct=at(6124),pt=at(5118),ut=at(5378),ft=at(7942),B=at(9322);const et=function(W,R,H){return W==null?W:function(V,$,Z,U){if(!(0,ft.A)(V))return V;for(var z=-1,I=($=(0,pt.A)($,V)).length,E=I-1,M=V;M!=null&&++z<I;){var k=(0,B.A)($[z]),y=Z;if(k==="__proto__"||k==="constructor"||k==="prototype")return V;if(z!=E){var h=M[k];(y=void 0)==void 0&&(y=(0,ft.A)(h)?h:(0,ut.A)($[z+1])?[]:{})}(0,ct.A)(M,k,y),M=M[k]}return V}(W,R,H)}},4459:(ot,nt,at)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function et(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}et(B,"Extensions/Breadcrumbs.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/FormatUtilities.js"]],function(W,R,H,V,$){var Z=R.defaultOptions,U=$.format,z=V.addEvent,I=V.objectEach,E=V.extend,M=V.fireEvent,k=V.merge,y=V.pick,h=V.defined,u=V.isString;E(Z.lang,{mainBreadcrumb:"Main"});var g=function(){function d(v,w){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var S=k(v.options.drilldown&&v.options.drilldown.drillUpButton,d.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,w);this.chart=v,this.options=S||{}}return d.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},d.prototype.setList=function(v){this.list=v},d.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},d.prototype.getLevel=function(){return this.level},d.prototype.getButtonText=function(v){var w=this.chart,S=this.options,C=w.options.lang,c=y(S.format,S.showFullPath?"{level.name}":"← {level.name}"),f=C&&y(C.drillUpText,C.mainBreadcrumb),r=S.formatter&&S.formatter(v)||U(c,{level:v.levelOptions},w)||"";return(u(r)&&!r.length||r==="← ")&&h(f)&&(r=S.showFullPath?f:"← "+f),r},d.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},d.prototype.render=function(){var v=this,w=v.chart,S=v.options;!v.group&&S&&(v.group=w.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:S.zIndex}).add()),S.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},d.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},d.prototype.renderSingleButton=function(){var v=this,w=v.chart,S=v.list,C=v.options.buttonSpacing;this.destroyListElements();var c=v.group?v.group.getBBox().width:C,f=C,r=S[S.length-2];!w.drillUpButton&&this.level>0?w.drillUpButton=v.renderButton(r,c,f):w.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},d.prototype.alignBreadcrumbsGroup=function(v){var w=this;if(w.group){var S=w.options,C=S.buttonTheme,c=S.position,f=S.relativeTo==="chart"||S.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=w.group.getBBox(),a=2*(C.padding||0)+S.buttonSpacing;c.width=r.width+a,c.height=r.height+a;var t=k(c);v&&(t.x+=v),w.options.rtl&&(t.x+=c.width),t.y=y(t.y,this.yOffset,0),w.group.align(t,!0,f)}},d.prototype.renderButton=function(v,w,S){var C=this,c=this.chart,f=C.options,r=k(f.buttonTheme),a=c.renderer.button(C.getButtonText(v),w,S,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,M(C,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(C.group);return c.styledMode||a.attr(f.style),a},d.prototype.renderSeparator=function(v,w){var S=this.chart,C=this.options.separator,c=S.renderer.label(C.text,v,w,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return S.styledMode||c.css(C.style),c},d.prototype.update=function(v){k(!0,this.options,v),this.destroy(),this.isDirty=!0},d.prototype.updateSingleButton=function(){var v=this.chart,w=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(w)})},d.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},d.prototype.destroyListElements=function(v){var w=this.elementList;I(w,function(S,C){!v&&w[C].updated||((S=w[C]).button&&S.button.destroy(),S.separator&&S.separator.destroy(),delete S.button,delete S.separator,delete w[C])}),v&&(this.elementList={})},d.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},d.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},d.prototype.updateListElements=function(){var v,w=this,S=w.elementList,C=w.options.buttonSpacing,c=w.list,f=w.options.rtl,r=f?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=w.group?a(w.group,C):C,o=C;c.forEach(function(e,s){var n,l,b=s===c.length-1;S[e.level]?(n=(v=S[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+=a(v.separator,C)),S[e.level].updated=!0):(n=w.renderButton(e,i,o),f&&t(n,i,o),i+=a(n,C),b||(l=w.renderSeparator(i,o),f&&t(l,i,o),i+=a(l,C)),S[e.level]={button:n,separator:l,updated:!0}),n&&n.setState(b?2:0)})},d.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},d}();return H.Breadcrumbs||(H.Breadcrumbs=g,z(W,"getMargins",function(){var d=this.breadcrumbs;if(d&&!d.options.floating&&d.level){var v=d.options,w=v.buttonTheme,S=(w.height||0)+2*(w.padding||0)+v.buttonSpacing,C=v.position.verticalAlign;C==="bottom"?(this.marginBottom=(this.marginBottom||0)+S,d.yOffset=S):C!=="middle"?(this.plotTop+=S,d.yOffset=-S):d.yOffset=void 0}}),z(W,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),z(W,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),z(W,"afterShowResetZoom",function(){var d=this;if(d.breadcrumbs){var v=d.resetZoomButton&&d.resetZoomButton.getBBox(),w=d.breadcrumbs.options;v&&w.position.align==="right"&&w.relativeTo==="plotBox"&&d.breadcrumbs.alignBreadcrumbsGroup(-v.width-w.buttonSpacing)}}),z(W,"selection",function(d){d.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),g}),et(B,"Extensions/Drilldown.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Color/Color.js"],B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Defaults.js"],B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Axis/Tick.js"],B["Core/Utilities.js"],B["Extensions/Breadcrumbs.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,k,y,h){var u=W.animObject,g=Z.noop,d=U.defaultOptions,v=E.seriesTypes,w=y.addEvent,S=y.removeEvent,C=y.extend,c=y.fireEvent,f=y.merge,r=y.objectEach,a=y.pick,t=y.syncTimeout,i=v.pie,o=1;C(d.lang,{}),d.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}}},M.prototype.Element.prototype.fadeIn=function(b){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:a(this.newOpacity,1)},b||{duration:250})},H.prototype.addSeriesAsDrilldown=function(b,T){this.addSingleSeriesAsDrilldown(b,T),this.applyDrilldown()},H.prototype.addSingleSeriesAsDrilldown=function(b,T){var D,p,x,A,N,_,L=b.series,O=L.xAxis,j=L.yAxis,Y=[],X=[];_=this.styledMode?{colorIndex:a(b.colorIndex,L.colorIndex)}:{color:b.color||L.color},this.drilldownLevels||(this.drilldownLevels=[]),A=L.options._levelNumber||0,(N=this.drilldownLevels[this.drilldownLevels.length-1])&&N.levelNumber!==A&&(N=void 0),T=C(C({_ddSeriesId:o++},_),T),p=L.points.indexOf(b),L.chart.series.forEach(function(G){G.xAxis!==O||G.isDrilling||(G.options._ddSeriesId=G.options._ddSeriesId||o++,G.options._colorIndex=G.userOptions._colorIndex,G.options._levelNumber=G.options._levelNumber||A,N?(Y=N.levelSeries,X=N.levelSeriesOptions):(Y.push(G),G.purgedOptions=f({_ddSeriesId:G.options._ddSeriesId,_levelNumber:G.options._levelNumber,selected:G.options.selected},G.userOptions),X.push(G.purgedOptions)))}),x=C({levelNumber:A,seriesOptions:L.options,seriesPurgedOptions:L.purgedOptions,levelSeriesOptions:X,levelSeries:Y,shapeArgs:b.shapeArgs,bBox:b.graphic?b.graphic.getBBox():{},color:b.isNull?V.parse(_.color).setOpacity(0).get():_.color,lowerSeriesOptions:T,pointOptions:L.options.data[p],pointIndex:p,oldExtremes:{xMin:O&&O.userMin,xMax:O&&O.userMax,yMin:j&&j.userMin,yMax:j&&j.userMax},resetZoomButton:N&&N.levelNumber===A?void 0:this.resetZoomButton},_),this.drilldownLevels.push(x),O&&O.names&&(O.names.length=0),(D=x.lowerSeries=this.addSeries(T,!1)).options._levelNumber=A+1,O&&(O.oldPos=O.pos,O.userMin=O.userMax=null,j.userMin=j.userMax=null),L.type===D.type&&(D.animate=D.animateDrilldown||g,D.options.animation=!0)},H.prototype.applyDrilldown=function(){var b,T=this.drilldownLevels;T&&T.length>0&&(b=T[T.length-1].levelNumber,this.drilldownLevels.forEach(function(D){D.levelNumber===b&&D.levelSeries.forEach(function(p){p.options&&p.options._levelNumber===b&&p.remove(!1)})})),this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton),this.pointer.reset(),c(this,"afterDrilldown"),this.redraw(),c(this,"afterApplyDrilldown")};var e=function(b){var T=[],D=b.drilldownLevels;return D&&D.length&&(T[0]||T.push({level:0,levelOptions:D[0].seriesOptions}),D.forEach(function(p,x){var A=T[T.length-1];p.levelNumber+1>A.level&&T.push({level:p.levelNumber+1,levelOptions:f({name:p.lowerSeries.name},p.pointOptions)})})),T};function s(b){var T=u(this.chart.options.drilldown.animation);b&&(b.hide(),t(function(){b&&b.added&&b.fadeIn()},Math.max(T.duration-50,0)))}H.prototype.drillUp=function(){if(this.drilldownLevels&&this.drilldownLevels.length!==0){c(this,"beforeDrillUp");for(var b,T,D,p,x,A=this,N=A.drilldownLevels,_=N[N.length-1].levelNumber,L=N.length,O=A.series,j=function(X){var G;O.forEach(function(q){q.options._ddSeriesId===X._ddSeriesId&&(G=q)}),(G=G||A.addSeries(X,!1)).type===D.type&&G.animateDrillupTo&&(G.animate=G.animateDrillupTo),X===T.seriesPurgedOptions&&(p=G)},Y=A.drilldownLevels.length;L--;)if((T=N[L]).levelNumber===_){if(N.pop(),!(D=T.lowerSeries).chart){for(b=O.length;b--;)if(O[b].options.id===T.lowerSeriesOptions.id&&O[b].options._levelNumber===_+1){D=O[b];break}}D.xData=[],D.xAxis&&D.xAxis.names&&(Y===0||L===Y)&&(D.xAxis.names.length=0),T.levelSeriesOptions.forEach(j),c(A,"drillup",{seriesOptions:T.seriesPurgedOptions||T.seriesOptions}),p.type===D.type&&(p.drilldownLevel=T,p.options.animation=A.options.drilldown.animation,D.animateDrillupFrom&&D.chart&&D.animateDrillupFrom(T)),p.options._levelNumber=_,D.remove(!1),p.xAxis&&(x=T.oldExtremes,p.xAxis.setExtremes(x.xMin,x.xMax,!1),p.yAxis.setExtremes(x.yMin,x.yMax,!1)),T.resetZoomButton&&(A.resetZoomButton=T.resetZoomButton)}c(A,"afterDrillUp"),this.redraw(),this.ddDupes&&(this.ddDupes.length=0),c(A,"drillupall")}},w(H,"afterInit",function(){var b=this;b.drilldown={chart:b,fadeInGroup:s,update:function(T,D){f(!0,b.options.drilldown,T),a(D,!0)&&b.redraw()}}}),w(H,"render",function(){(this.xAxis||[]).forEach(function(b){b.ddPoints={},b.series.forEach(function(T){var D,p,x=T.xData||[],A=T.points;for(D=0;D<x.length;D++)if(typeof(p=T.options.data[D])!="number"&&(p=T.pointClass.prototype.optionsToObject.call({series:T},p)).drilldown){b.ddPoints[x[D]]||(b.ddPoints[x[D]]=[]);var N=D-(T.cropStart||0);b.ddPoints[x[D]].push(!(A&&N>=0&&N<A.length)||A[N])}}),r(b.ticks,k.prototype.drillable)})}),w(Z.Breadcrumbs,"up",function(b){for(var T=this.chart,D=this.getLevel()-b.newLevel,p=0;p<D;p++)T.drillUp()}),w(H,"afterDrilldown",function(){var b=this,T=b.options.drilldown,D=T&&T.breadcrumbs;b.breadcrumbs||(b.breadcrumbs=new h(b,D)),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 T=this.breadcrumbs,D=b.options.drilldown&&b.options.drilldown.breadcrumbs;T&&D&&T.update(b.options.drilldown.breadcrumbs)}),$.prototype.animateDrillupTo=function(b){if(!b){var T=this,D=T.drilldownLevel;this.points.forEach(function(p){var x=p.dataLabel;p.graphic&&p.graphic.hide(),x&&(x.hidden=x.attr("visibility")==="hidden",x.hidden||(x.hide(),p.connector&&p.connector.hide()))}),t(function(){if(T.points){var p=[];T.data.forEach(function(x){p.push(x)}),T.nodes&&(p=p.concat(T.nodes)),p.forEach(function(x,A){var N=A===(D&&D.pointIndex)?"show":"fadeIn",_=N==="show"||void 0,L=x.dataLabel;x.graphic&&x.graphic[N](_),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 T,D=this,p=this.chart,x=p.drilldownLevels,A=u(p.options.drilldown.animation),N=this.xAxis,_=p.styledMode;b||(x.forEach(function(L){D.options._ddSeriesId===L.lowerSeriesOptions._ddSeriesId&&(T=L.shapeArgs,_||(T.fill=L.color))}),T.x+=a(N.oldPos,N.pos)-N.pos,this.points.forEach(function(L){var O=L.shapeArgs;_||(O.fill=L.color),L.graphic&&L.graphic.attr(T).animate(C(L.shapeArgs,{fill:L.color||D.color}),A)}),p.drilldown&&p.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)},$.prototype.animateDrillupFrom=function(b){var T=u(this.chart.options.drilldown.animation),D=this.group,p=D!==this.chart.columnGroup,x=this;x.trackerGroups.forEach(function(A){x[A]&&x[A].on("mouseover")}),p&&delete this.group,this.points.forEach(function(A){var N=A.graphic,_=b.shapeArgs,L=function(){N.destroy(),D&&p&&(D=D.destroy())};N&&_&&(delete A.graphic,x.chart.styledMode||(_.fill=b.color),T.duration?N.animate(_,f(T,{complete:L})):(N.attr(_),L()))})},i&&C(i.prototype,{animateDrillupTo:$.prototype.animateDrillupTo,animateDrillupFrom:$.prototype.animateDrillupFrom,animateDrilldown:function(b){var T=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],D=this.chart.options.drilldown.animation;if(this.is("item")&&(D.duration=0),this.center){var p=T.shapeArgs,x=p.start,A=(p.end-x)/this.points.length,N=this.chart.styledMode;b||(this.points.forEach(function(_,L){var O=_.shapeArgs;N||(p.fill=T.color,O.fill=_.color),_.graphic&&_.graphic.attr(f(p,{start:x+L*A,end:x+(L+1)*A}))[D?"animate":"attr"](O,D)}),this.chart.drilldown&&this.chart.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)}}}),z.prototype.doDrilldown=function(){this.runDrilldown()},z.prototype.runDrilldown=function(b,T,D){var p,x=this.series.chart,A=x.options.drilldown,N=(A.series||[]).length;for(x.ddDupes||(x.ddDupes=[]);N--&&!p;)A.series[N].id===this.drilldown&&x.ddDupes.indexOf(this.drilldown)===-1&&(p=A.series[N],x.ddDupes.push(this.drilldown));c(x,"drilldown",{point:this,seriesOptions:p,category:T,originalEvent:D,points:T!==void 0&&this.series.xAxis.getDDPoints(T).slice(0)},function(_){var L=_.point.series&&_.point.series.chart,O=_.seriesOptions;L&&O&&(b?L.addSingleSeriesAsDrilldown(_.point,O):L.addSeriesAsDrilldown(_.point,O))})},R.prototype.drilldownCategory=function(b,T){this.getDDPoints(b).forEach(function(D){D&&D.series&&D.series.visible&&D.runDrilldown&&D.runDrilldown(!0,b,T)}),this.chart.applyDrilldown()},R.prototype.getDDPoints=function(b){return this.ddPoints&&this.ddPoints[b]||[]},k.prototype.drillable=function(){var b=this.pos,T=this.label,D=this.axis,p=D.coll==="xAxis"&&D.getDDPoints,x=p&&D.getDDPoints(b),A=D.chart.styledMode;p&&(T&&x&&x.length?(T.drillable=!0,T.basicStyles||A||(T.basicStyles=f(T.styles)),T.addClass("highcharts-drilldown-axis-label"),T.removeOnDrillableClick&&S(T.element,"click"),T.removeOnDrillableClick=w(T.element,"click",function(N){N.preventDefault(),D.drilldownCategory(b,N)}),A||T.css(D.chart.options.drilldown.activeAxisLabelStyle)):T&&T.drillable&&T.removeOnDrillableClick&&(A||(T.styles={},T.element.removeAttribute("style"),T.css(T.basicStyles)),T.removeOnDrillableClick(),T.removeClass("highcharts-drilldown-axis-label")))},w(z,"afterInit",function(){var b=this;return b.drilldown&&!b.unbindDrilldownClick&&(b.unbindDrilldownClick=w(b,"click",n)),b}),w(z,"update",function(b){var T=this,D=b.options||{};D.drilldown&&!T.unbindDrilldownClick?T.unbindDrilldownClick=w(T,"click",n):!D.drilldown&&D.drilldown!==void 0&&T.unbindDrilldownClick&&(T.unbindDrilldownClick=T.unbindDrilldownClick())});var n=function(b){var T=this,D=T.series;D.xAxis&&D.chart.options.drilldown.allowPointDrilldown===!1?D.xAxis.drilldownCategory(T.x,b):T.runDrilldown(void 0,void 0,b)};w(I,"afterDrawDataLabels",function(){var b=this.chart.options.drilldown.activeDataLabelStyle,T=this.chart.renderer,D=this.chart.styledMode;this.points.forEach(function(p){var x=p.options.dataLabels,A=a(p.dlOptions,x&&x.style,{});p.drilldown&&p.dataLabel&&(b.color!=="contrast"||D||(A.color=T.getContrast(p.color||this.color)),x&&x.color&&(A.color=x.color),p.dataLabel.addClass("highcharts-drilldown-data-label"),D||p.dataLabel.css(b).css(A))},this)});var l=function(b,T,D,p){b[D?"addClass":"removeClass"]("highcharts-drilldown-point"),p||b.css({cursor:T})};w(I,"afterDrawTracker",function(){var b=this.chart.styledMode;this.points.forEach(function(T){T.drilldown&&T.graphic&&l(T.graphic,"pointer",!0,b)})}),w(z,"afterSetState",function(){var b=this.series.chart.styledMode;this.drilldown&&this.series.halo&&this.state==="hover"?l(this.series.halo,"pointer",!0,b):this.series.halo&&l(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(B,"masters/modules/drilldown.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[at(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},4501:(ot,nt,at)=>{at.r(nt),at.d(nt,{default:()=>ct});const ct=function(pt){return pt===void 0}},4608:function(ot,nt,at){var ct=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(at(5134)),ut=ct(at(1039)),ft=ct(at(6725)),B=ct(at(6660)),et=ct(at(4459)),W=ct(at(2060)),R=ct(at(6236)),H=ct(at(6512)),V=ct(at(5098)),$=ct(at(4812)),Z=ct(at(2397)),U=ct(at(50)),z=ct(at(5322)),I=ct(at(3897)),E=ct(at(362)),M=ct(at(3039)),k=ct(at(3966));(0,ft.default)(pt.default),(0,ut.default)(pt.default),(0,B.default)(pt.default),(0,et.default)(pt.default),(0,W.default)(pt.default),(0,R.default)(pt.default),(0,H.default)(pt.default),(0,$.default)(pt.default),(0,V.default)(pt.default),(0,z.default)(pt.default),(0,I.default)(pt.default),(0,E.default)(pt.default),(0,M.default)(pt.default),(0,Z.default)(pt.default),(0,U.default)(pt.default),pt.default.setOptions(k.default),nt.default=pt.default},4783:function(ot,nt,at){var ct,pt,ut;pt=typeof window!="undefined"?window:this,ut=function(ft){function B(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}var et={};return B(et,"Core/Globals.js",[],function(){var W;return function(R){R.SVG_NS="http://www.w3.org/2000/svg",R.product="Highcharts",R.version="10.3.3",R.win=ft!==void 0?ft:{},R.doc=R.win.document,R.svg=R.doc&&R.doc.createElementNS&&!!R.doc.createElementNS(R.SVG_NS,"svg").createSVGRect,R.userAgent=R.win.navigator&&R.win.navigator.userAgent||"",R.isChrome=R.userAgent.indexOf("Chrome")!==-1,R.isFirefox=R.userAgent.indexOf("Firefox")!==-1,R.isMS=/(edge|msie|trident)/i.test(R.userAgent)&&!R.win.opera,R.isSafari=!R.isChrome&&R.userAgent.indexOf("Safari")!==-1,R.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(R.userAgent),R.isWebKit=R.userAgent.indexOf("AppleWebKit")!==-1,R.deg2rad=2*Math.PI/360,R.hasBidiBug=R.isFirefox&&4>parseInt(R.userAgent.split("Firefox/")[1],10),R.hasTouch=!!R.win.TouchEvent,R.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],R.noop=function(){},R.supportsPassiveEvents=function(){var H=!1;if(!R.isMS){var V=Object.defineProperty({},"passive",{get:function(){H=!0}});R.win.addEventListener&&R.win.removeEventListener&&(R.win.addEventListener("testPassive",R.noop,V),R.win.removeEventListener("testPassive",R.noop,V))}return H}(),R.charts=[],R.dateFormats={},R.seriesTypes={},R.symbolSizes={},R.chartCount=0}(W||(W={})),W}),B(et,"Core/Utilities.js",[et["Core/Globals.js"]],function(W){function R(t,i,o,e){var s=i?"Highcharts error":"Highcharts warning";t===32&&(t=s+": Deprecated member");var n=I(t),l=n?s+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(e!==void 0){var b="";n&&(l+="?"),d(e,function(T,D){b+=`
|
|
99
|
-
- `.concat(D,": ").concat(T),n&&(l+=encodeURI(D)+"="+encodeURI(T))}),l+=b}w(W,"displayError",{chart:o,code:t,message:l,params:e},function(){if(i)throw Error(l);c.console&&R.messages.indexOf(l)===-1&&console.warn(l)}),R.messages.push(l)}function H(t,i){return parseInt(t,i||10)}function V(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 U(t){return Z(t)&&typeof t.nodeType=="number"}function z(t){var i=t&&t.constructor;return!(!Z(t,!0)||U(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 M(t,i,o){var e,s=V(i)&&!E(o),n=function(l,b){E(l)?t.setAttribute(b,l):s?(e=t.getAttribute(b))||b!=="class"||(e=t.getAttribute(b+"Name")):t.removeAttribute(b)};return V(i)?n(o,i):d(i,n),e}function k(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 h(t,i){W.isMS&&!W.svg&&i&&E(i.opacity)&&(i.filter="alpha(opacity=".concat(100*i.opacity,")")),k(t.style,i)}function u(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function g(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function d(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,T){var D=t.removeEventListener||W.removeEventListenerPolyfill;D&&D.call(t,b,T,!1)}function s(b){var T;if(t.nodeName){if(i){var D={};D[i]=!0}else D=b;d(D,function(p,x){if(b[x])for(T=b[x].length;T--;)e(x,b[x][T].fn)})}}var n=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(n,"hcEvents")){var l=n.hcEvents;i?(n=l[i]||[],o?(l[i]=n.filter(function(b){return o!==b.fn}),e(i,o)):(s(l),l[i]=[])):(s(l),delete n.hcEvents)}}function w(t,i,o,e){if(o=o||{},C.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==W)){var s=C.createEvent("Events");s.initEvent(i,!0,!0),o=k(s,o),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(i,o)}else if(t.hcEvents){o.target||k(o,{preventDefault:function(){o.defaultPrevented=!0},target:t,type:i}),s=[];for(var n=t,l=!1;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[i]&&(s.length&&(l=!0),s.unshift.apply(s,n.hcEvents[i])),n=Object.getPrototypeOf(n);l&&s.sort(function(b,T){return b.order-T.order}),s.forEach(function(b){b.fn.call(t,o)===!1&&o.preventDefault()})}e&&!o.defaultPrevented&&e.call(t,o)}var S=W.charts,C=W.doc,c=W.win;(R||(R={})).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]};d({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){W[i]=function(o){var e;return R(32,!1,void 0,((e={})["Highcharts.".concat(i)]="use Array.".concat(t),e)),Array.prototype[t].apply(o,[].slice.call(arguments,1))}});var r,a=function(){var t=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(r?"":t)+i++}}();return c.jQuery,f={addEvent:function(t,i,o,e){e===void 0&&(e={});var s=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={}),s=s.hcEvents,W.Point&&t instanceof W.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var n=t.addEventListener||W.addEventListenerPolyfill;return n&&n.call(t,i,o,!!W.supportsPassiveEvents&&{passive:e.passive===void 0?i.indexOf("touch")!==-1:e.passive,capture:!1}),s[i]||(s[i]=[]),s[i].push({fn:o,order:typeof e.order=="number"?e.order:1/0}),s[i].sort(function(l,b){return l.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:M,clamp:function(t,i,o){return t>i?t<o?t:o:i},cleanRecursively:function t(i,o){var e={};return d(i,function(s,n){Z(i[n],!0)&&!i.nodeType&&o[n]?(s=t(i[n],o[n]),Object.keys(s).length&&(e[n]=s)):(Z(i[n])||i[n]!==o[n]||n in i&&!(n in o))&&(e[n]=i[n])}),e},clearTimeout:function(t){E(t)&&clearTimeout(t)},correctFloat:g,createElement:function(t,i,o,e,s){return t=C.createElement(t),i&&k(t,i),s&&h(t,{padding:"0",border:"none",margin:"0"}),o&&h(t,o),e&&e.appendChild(t),t},css:h,defined:E,destroyObjectProperties:function(t,i){d(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:R,extend:k,extendClass:function(t,i){var o=function(){};return k(o.prototype=new t,i),o},find:f,fireEvent:w,getMagnitude:u,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===c)return}return i},getStyle:function t(i,o,e){var s=W.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-(s(i,"padding-left",!0)||0)-(s(i,"padding-right",!0)||0));if(o==="height")return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(s(i,"padding-top",!0)||0)-(s(i,"padding-bottom",!0)||0));if(c.getComputedStyle||R(27,!0),i=c.getComputedStyle(i,void 0)){var n=i.getPropertyValue(o);y(e,o!=="opacity")&&(n=H(n))}return n},inArray:function(t,i,o){return R(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:$,isClass:z,isDOMElement:U,isFunction:function(t){return typeof t=="function"},isNumber:I,isObject:Z,isString:V,keys:function(t){return R(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,i=arguments,o={},e=function(n,l){return typeof n!="object"&&(n={}),d(l,function(b,T){T!=="__proto__"&&T!=="constructor"&&(!Z(b,!0)||z(b)||U(b)?n[T]=l[T]:n[T]=e(n[T]||{},b))}),n};i[0]===!0&&(o=i[1],i=Array.prototype.slice.call(i,2));var s=i.length;for(t=0;t<s;t++)o=e(o,i[t]);return o},normalizeTickInterval:function(t,i,o,e,s){var n=t,l=t/(o=y(o,u(t)));for(i||(i=s?[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&&(n=i[e],!(s&&n*o>=t||!s&&l<=(i[e]+(i[e+1]||i[e]))/2));e++);return g(n*o,-Math.round(Math.log(.001)/Math.LN10))},objectEach:d,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+(c.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(c.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,s=t.length;for(e=0;e<s;e++)t[e].safeI=e;for(t.sort(function(n,l){return(o=i(n,l))===0?n.safeI-l.safeI:o}),e=0;e<s;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:a,useSerialIds:function(t){return r=y(t,r)},wrap:function(t,i,o){var e=t[i];t[i]=function(){var s=arguments,n=this;return o.apply(this,[function(){return e.apply(n,arguments.length?arguments:s)}].concat([].slice.call(arguments)))}}},f}),B(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"}}),B(et,"Core/Color/Color.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(W,R){var H=R.isNumber,V=R.merge,$=R.pInt;return R=function(){function Z(U){this.rgba=[NaN,NaN,NaN,NaN],this.input=U;var z=W.Color;return z&&z!==Z?new z(U):this instanceof Z?void this.init(U):new Z(U)}return Z.parse=function(U){return U?new Z(U):Z.None},Z.prototype.init=function(U){var z;if(typeof U=="object"&&U.stops!==void 0)this.stops=U.stops.map(function(k){return new Z(k[1])});else if(typeof U=="string"){if(this.input=U=Z.names[U.toLowerCase()]||U,U.charAt(0)==="#"){var I=U.length,E=parseInt(U.substr(1),16);I===7?z=[(16711680&E)>>16,(65280&E)>>8,255&E,1]:I===4&&(z=[(3840&E)>>4|(3840&E)>>8,(240&E)>>4|240&E,(15&E)<<4|15&E,1])}if(!z)for(E=Z.parsers.length;E--&&!z;){var M=Z.parsers[E];(I=M.regex.exec(U))&&(z=M.parse(I))}}z&&(this.rgba=z)},Z.prototype.get=function(U){var z=this.input,I=this.rgba;if(typeof z=="object"&&this.stops!==void 0){var E=V(z);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(M,k){E.stops[k]=[E.stops[k][0],M.get(U)]}),E}return I&&H(I[0])?U==="rgb"||!U&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":U==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":z},Z.prototype.brighten=function(U){var z=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(U)});else if(H(U)&&U!==0)for(var I=0;3>I;I++)z[I]+=$(255*U),0>z[I]&&(z[I]=0),255<z[I]&&(z[I]=255);return this},Z.prototype.setOpacity=function(U){return this.rgba[3]=U,this},Z.prototype.tweenTo=function(U,z){var I=this.rgba,E=U.rgba;return H(I[0])&&H(E[0])?((U=E[3]!==1||I[3]!==1)?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-z))+","+Math.round(E[1]+(I[1]-E[1])*(1-z))+","+Math.round(E[2]+(I[2]-E[2])*(1-z))+(U?","+(E[3]+(I[3]-E[3])*(1-z)):"")+")":U.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(U){return[$(U[1]),$(U[2]),$(U[3]),parseFloat(U[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(U){return[$(U[1]),$(U[2]),$(U[3]),1]}}],Z.None=new Z(""),Z}(),R}),B(et,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),B(et,"Core/Time.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(W,R){var H=W.win,V=R.defined,$=R.error,Z=R.extend,U=R.isObject,z=R.merge,I=R.objectEach,E=R.pad,M=R.pick,k=R.splat,y=R.timeUnits,h=W.isSafari&&H.Intl&&H.Intl.DateTimeFormat.prototype.formatRange,u=W.isSafari&&H.Intl&&!H.Intl.DateTimeFormat.prototype.formatRange;return R=function(){function g(d){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=H.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(d)}return g.prototype.get=function(d,v){if(this.variableTimezone||this.timezoneOffset){var w=v.getTime(),S=w-this.getTimezoneOffset(v);return v.setTime(S),d=v["getUTC"+d](),v.setTime(w),d}return this.useUTC?v["getUTC"+d]():v["get"+d]()},g.prototype.set=function(d,v,w){if(this.variableTimezone||this.timezoneOffset){if(d==="Milliseconds"||d==="Seconds"||d==="Minutes"&&this.getTimezoneOffset(v)%36e5==0)return v["setUTC"+d](w);var S=this.getTimezoneOffset(v);return S=v.getTime()-S,v.setTime(S),v["setUTC"+d](w),d=this.getTimezoneOffset(v),S=v.getTime()+d,v.setTime(S)}return this.useUTC||h&&d==="FullYear"?v["setUTC"+d](w):v["set"+d](w)},g.prototype.update=function(d){d===void 0&&(d={});var v=M(d.useUTC,!0);this.options=d=z(!0,this.options,d),this.Date=d.Date||H.Date||Date,this.timezoneOffset=(this.useUTC=v)&&d.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=v&&!(!d.getTimezoneOffset&&!d.timezone)},g.prototype.makeTime=function(d,v,w,S,C,c){if(this.useUTC){var f=this.Date.UTC.apply(0,arguments),r=this.getTimezoneOffset(f);f+=r;var a=this.getTimezoneOffset(f);r!==a?f+=a-r:r-36e5!==this.getTimezoneOffset(f-36e5)||u||(f-=36e5)}else f=new this.Date(d,v,M(w,1),M(S,0),M(C,0),M(c,0)).getTime();return f},g.prototype.timezoneOffsetFunction=function(){var d=this,v=this.options,w=v.getTimezoneOffset,S=v.moment||H.moment;if(!this.useUTC)return function(C){return 6e4*new Date(C.toString()).getTimezoneOffset()};if(v.timezone){if(S)return function(C){return 6e4*-S.tz(C,v.timezone).utcOffset()};$(25)}return this.useUTC&&w?function(C){return 6e4*w(C.valueOf())}:function(){return 6e4*(d.timezoneOffset||0)}},g.prototype.dateFormat=function(d,v,w){if(!V(v)||isNaN(v))return W.defaultOptions.lang&&W.defaultOptions.lang.invalidDate||"";d=M(d,"%Y-%m-%d %H:%M:%S");var S=this,C=new this.Date(v),c=this.get("Hours",C),f=this.get("Day",C),r=this.get("Date",C),a=this.get("Month",C),t=this.get("FullYear",C),i=W.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[a],B:i.months[a],m:E(a+1),o:a+1,y:t.toString().substr(2,2),Y:t,H:E(c),k:c,I:E(c%12||12),l:c%12||12,M:E(this.get("Minutes",C)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:E(C.getSeconds()),L:E(Math.floor(v%1e3),3)},W.dateFormats),I(C,function(s,n){for(;d.indexOf("%"+n)!==-1;)d=d.replace("%"+n,typeof s=="function"?s.call(S,v):s)}),w?d.substr(0,1).toUpperCase()+d.substr(1):d},g.prototype.resolveDTLFormat=function(d){return U(d,!0)?d:{main:(d=k(d))[0],from:d[1],to:d[2]}},g.prototype.getTimeTicks=function(d,v,w,S){var C,c=this,f=[],r={},a=new c.Date(v),t=d.unitRange,i=d.count||1;if(S=M(S,1),V(v)){if(c.set("Milliseconds",a,t>=y.second?0:i*Math.floor(c.get("Milliseconds",a)/i)),t>=y.second&&c.set("Seconds",a,t>=y.minute?0:i*Math.floor(c.get("Seconds",a)/i)),t>=y.minute&&c.set("Minutes",a,t>=y.hour?0:i*Math.floor(c.get("Minutes",a)/i)),t>=y.hour&&c.set("Hours",a,t>=y.day?0:i*Math.floor(c.get("Hours",a)/i)),t>=y.day&&c.set("Date",a,t>=y.month?1:Math.max(1,i*Math.floor(c.get("Date",a)/i))),t>=y.month){c.set("Month",a,t>=y.year?0:i*Math.floor(c.get("Month",a)/i));var o=c.get("FullYear",a)}t>=y.year&&c.set("FullYear",a,o-o%i),t===y.week&&(o=c.get("Day",a),c.set("Date",a,c.get("Date",a)-o+S+(o<S?-7:0))),o=c.get("FullYear",a),S=c.get("Month",a);var e=c.get("Date",a),s=c.get("Hours",a);for(v=a.getTime(),!c.variableTimezone&&c.useUTC||!V(w)||(C=w-v>4*y.month||c.getTimezoneOffset(v)!==c.getTimezoneOffset(w)),v=a.getTime(),a=1;v<w;)f.push(v),v=t===y.year?c.makeTime(o+a*i,0):t===y.month?c.makeTime(o,S+a*i):!C||t!==y.day&&t!==y.week?C&&t===y.hour&&1<i?c.makeTime(o,S,e,s+a*i):v+t*i:c.makeTime(o,S,e+a*i*(t===y.day?1:7)),a++;f.push(v),t<=y.hour&&1e4>f.length&&f.forEach(function(n){n%18e5==0&&c.dateFormat("%H%M%S%L",n)==="000000000"&&(r[n]="day")})}return f.info=Z(d,{higherRanks:r,totalRange:t*i}),f},g.prototype.getDateFormat=function(d,v,w,S){var C=this.dateFormat("%m-%d %H:%M:%S.%L",v),c={millisecond:15,second:12,minute:9,hour:6,day:3},f="millisecond";for(r in y){if(d===y.week&&+this.dateFormat("%w",v)===w&&C.substr(6)==="00:00:00.000"){var r="week";break}if(y[r]>d){r=f;break}if(c[r]&&C.substr(c[r])!=="01-01 00:00:00.000".substr(c[r]))break;r!=="week"&&(f=r)}return this.resolveDTLFormat(S[r]).main},g}(),R}),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(W,R,H,V,$,Z){R=R.parse;var U=Z.merge,z={colors:V.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:W,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:R("#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"}};z.chart.styledMode=!1;var I=new $(U(z.global,z.time));return{defaultOptions:z,defaultTime:I,getOptions:function(){return z},setOptions:function(E){return U(!0,z,E),(E.time||E.global)&&(H.time?H.time.update(U(z.global,z.time,E.global,E.time)):H.time=I),z}}}),B(et,"Core/Animation/Fx.js",[et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(W,R,H){var V=W.parse,$=R.win,Z=H.isNumber,U=H.objectEach;return function(){function z(I,E,M){this.pos=NaN,this.options=E,this.elem=I,this.prop=M}return z.prototype.dSetter=function(){var I=this.paths,E=I&&I[0];I=I&&I[1];var M=this.now||0,k=[];if(M!==1&&E&&I)if(E.length===I.length&&1>M)for(var y=0;y<I.length;y++){for(var h=E[y],u=I[y],g=[],d=0;d<u.length;d++){var v=h[d],w=u[d];Z(v)&&Z(w)&&(u[0]!=="A"||d!==4&&d!==5)?g[d]=v+M*(w-v):g[d]=w}k.push(g)}else k=I;else k=this.toD||[];this.elem.attr("d",k,void 0,!0)},z.prototype.update=function(){var I=this.elem,E=this.prop,M=this.now,k=this.options.step;this[E+"Setter"]?this[E+"Setter"]():I.attr?I.element&&I.attr(E,M,null,!0):I.style[E]=M+this.unit,k&&k.call(I,M,this)},z.prototype.run=function(I,E,M){var k=this,y=k.options,h=function(d){return!h.stopped&&k.step(d)},u=$.requestAnimationFrame||function(d){setTimeout(d,13)},g=function(){for(var d=0;d<z.timers.length;d++)z.timers[d]()||z.timers.splice(d--,1);z.timers.length&&u(g)};I!==E||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=I,this.end=E,this.unit=M,this.now=this.start,this.pos=0,h.elem=this.elem,h.prop=this.prop,h()&&z.timers.push(h)===1&&u(g)):(delete y.curAnim[this.prop],y.complete&&Object.keys(y.curAnim).length===0&&y.complete.call(this.elem))},z.prototype.step=function(I){var E=+new Date,M=this.options,k=this.elem,y=M.complete,h=M.duration,u=M.curAnim;if(k.attr&&!k.element)I=!1;else if(I||E>=h+this.startTime){this.now=this.end,this.pos=1,this.update();var g=u[this.prop]=!0;U(u,function(d){d!==!0&&(g=!1)}),g&&y&&y.call(k),I=!1}else this.pos=M.easing((E-this.startTime)/h),this.now=this.start+(this.end-this.start)*this.pos,this.update(),I=!0;return I},z.prototype.initPath=function(I,E,M){function k(C,c){for(;C.length<S;){var f=C[0],r=c[S-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),g&&(f=C.pop(),C.push(C[C.length-1],f))}}function y(C,c){for(;C.length<S;)if((c=C[Math.floor(C.length/d)-1].slice())[0]==="C"&&(c[1]=c[5],c[2]=c[6]),g){var f=C[Math.floor(C.length/d)].slice();C.splice(C.length/2,0,c,f)}else C.push(c)}var h=I.startX,u=I.endX;M=M.slice();var g=I.isArea,d=g?2:1;if(!(E=E&&E.slice()))return[M,M];if(h&&u&&u.length){for(I=0;I<h.length;I++){if(h[I]===u[0]){var v=I;break}if(h[0]===u[u.length-h.length+I]){v=I;var w=!0;break}if(h[h.length-1]===u[u.length-h.length+I]){v=h.length-I;break}}v===void 0&&(E=[])}if(E.length&&Z(v)){var S=M.length+v*d;w?(k(E,M),y(M,E)):(k(M,E),y(E,M))}return[E,M]},z.prototype.fillSetter=function(){z.prototype.strokeSetter.apply(this,arguments)},z.prototype.strokeSetter=function(){this.elem.attr(this.prop,V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)},z.timers=[],z}()}),B(et,"Core/Animation/AnimationUtilities.js",[et["Core/Animation/Fx.js"],et["Core/Utilities.js"]],function(W,R){function H(y){return I(y)?E({duration:500,defer:0},y):{duration:y?500:0,defer:0}}function V(y,h){for(var u=W.timers.length;u--;)W.timers[u].elem!==y||h&&h!==W.timers[u].prop||(W.timers[u].stopped=!0)}var $=R.defined,Z=R.getStyle,U=R.isArray,z=R.isNumber,I=R.isObject,E=R.merge,M=R.objectEach,k=R.pick;return{animate:function(y,h,u){var g,d,v,w="";if(!I(u)){var S=arguments;u={duration:S[2],easing:S[3],complete:S[4]}}z(u.duration)||(u.duration=400),u.easing=typeof u.easing=="function"?u.easing:Math[u.easing]||Math.easeInOutSine,u.curAnim=E(h),M(h,function(C,c){V(y,c),v=new W(y,u,c),d=void 0,c==="d"&&U(h.d)?(v.paths=v.initPath(y,y.pathArray,h.d),v.toD=h.d,g=0,d=1):y.attr?g=y.attr(c):(g=parseFloat(Z(y,c))||0,c!=="opacity"&&(w="px")),d||(d=C),typeof d=="string"&&d.match("px")&&(d=d.replace(/px/g,"")),v.run(g,d,w)})},animObject:H,getDeferredAnimation:function(y,h,u){var g=H(h),d=0,v=0;return(u?[u]:y.series).forEach(function(w){w=H(w.options.animation),d=h&&$(h.defer)?g.defer:Math.max(d,w.duration+w.defer),v=Math.min(g.duration,w.duration)}),y.renderer.forExport&&(d=0),{defer:Math.max(0,d-v),duration:Math.min(d,v)}},setAnimation:function(y,h){h.renderer.globalAnimation=k(y,h.options.chart.animation,!0)},stop:V}}),B(et,"Core/Renderer/HTML/AST.js",[et["Core/Globals.js"],et["Core/Utilities.js"]],function(W,R){var H=W.SVG_NS,V=R.attr,$=R.createElement,Z=R.css,U=R.error,z=R.isFunction,I=R.isString,E=R.objectEach,M=R.splat,k=(R=W.win.trustedTypes)&&z(R.createPolicy)&&R.createPolicy("highcharts",{createHTML:function(u){return u}}),y=k?k.createHTML(""):"";try{var h=!!new DOMParser().parseFromString(y,"text/html")}catch(u){h=!1}return z=function(){function u(g){this.nodes=typeof g=="string"?this.parseMarkup(g):g}return u.filterUserAttributes=function(g){return E(g,function(d,v){var w=!0;u.allowedAttributes.indexOf(v)===-1&&(w=!1),["background","dynsrc","href","lowsrc","src"].indexOf(v)!==-1&&(w=I(d)&&u.allowedReferences.some(function(S){return d.indexOf(S)===0})),w||(U(33,!1,void 0,{"Invalid attribute in config":"".concat(v)}),delete g[v]),I(d)&&g[v]&&(g[v]=d.replace(/</g,"<"))}),g},u.parseStyle=function(g){return g.split(";").reduce(function(d,v){v=v.split(":").map(function(S){return S.trim()});var w=v.shift();return w&&v.length&&(d[w.replace(/-([a-z])/g,function(S){return S[1].toUpperCase()})]=v.join(":")),d},{})},u.setElementHTML=function(g,d){g.innerHTML=u.emptyHTML,d&&new u(d).addToDOM(g)},u.prototype.addToDOM=function(g){return function d(v,w){var S;return M(v).forEach(function(C){var c=C.tagName,f=C.textContent?W.doc.createTextNode(C.textContent):void 0,r=u.bypassHTMLFiltering;if(c)if(c==="#text")var a=f;else if(u.allowedTags.indexOf(c)!==-1||r){c=W.doc.createElementNS(c==="svg"?H:w.namespaceURI||H,c);var t=C.attributes||{};E(C,function(i,o){o!=="tagName"&&o!=="attributes"&&o!=="children"&&o!=="style"&&o!=="textContent"&&(t[o]=i)}),V(c,r?t:u.filterUserAttributes(t)),C.style&&Z(c,C.style),f&&c.appendChild(f),d(C.children||[],c),a=c}else U(33,!1,void 0,{"Invalid tagName in config":c});a&&w.appendChild(a),S=a}),S}(this.nodes,g)},u.prototype.parseMarkup=function(g){var d=[];if(g=g.trim().replace(/ style=(["'])/g," data-style=$1"),h)g=new DOMParser().parseFromString(k?k.createHTML(g):g,"text/html");else{var v=$("div");v.innerHTML=g,g={body:v}}var w=function(S,C){var c=S.nodeName.toLowerCase(),f={tagName:c};if(c==="#text"&&(f.textContent=S.textContent||""),c=S.attributes){var r={};[].forEach.call(c,function(t){t.name==="data-style"?f.style=u.parseStyle(t.value):r[t.name]=t.value}),f.attributes=r}if(S.childNodes.length){var a=[];[].forEach.call(S.childNodes,function(t){w(t,a)}),a.length&&(f.children=a)}C.push(f)};return[].forEach.call(g.body.childNodes,function(S){return w(S,d)}),d},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".split(" "),u.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),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".split(" "),u.emptyHTML=y,u.bypassHTMLFiltering=!1,u}(),z}),B(et,"Core/FormatUtilities.js",[et["Core/Defaults.js"],et["Core/Utilities.js"]],function(W,R){function H(E,M,k,y){E=+E||0,M=+M;var h=V.lang,u=(E.toString().split(".")[1]||"").split("e")[0].length,g=E.toString().split("e"),d=M;if(M===-1)M=Math.min(u,20);else if(U(M)){if(M&&g[1]&&0>g[1]){var v=M+ +g[1];0<=v?(g[0]=(+g[0]).toExponential(v).split("e")[0],M=v):(g[0]=g[0].split(".")[0]||0,E=20>M?(g[0]*Math.pow(10,g[1])).toFixed(M):0,g[1]=0)}}else M=2;v=(Math.abs(g[1]?g[0]:E)+Math.pow(10,-Math.max(M,u)-1)).toFixed(M);var w=3<(u=String(I(v))).length?u.length%3:0;return k=z(k,h.decimalPoint),y=z(y,h.thousandsSep),E=(0>E?"-":"")+(w?u.substr(0,w)+y:""),E=0>+g[1]&&!d?"0":E+u.substr(w).replace(/(\d{3})(?=\d)/g,"$1"+y),M&&(E+=k+v.slice(-M)),g[1]&&+E!=0&&(E+="e"+g[1]),E}var V=W.defaultOptions,$=W.defaultTime,Z=R.getNestedProperty,U=R.isNumber,z=R.pick,I=R.pInt;return{dateFormat:function(E,M,k){return $.dateFormat(E,M,k)},format:function(E,M,k){var y="{",h=!1,u=/f$/,g=/\.([0-9])/,d=V.lang,v=k&&k.time||$;k=k&&k.numberFormatter||H;for(var w=[];E;){var S=E.indexOf(y);if(S===-1)break;var C=E.slice(0,S);if(h){if(C=C.split(":"),y=Z(C.shift()||"",M),C.length&&typeof y=="number")if(C=C.join(":"),u.test(C)){var c=parseInt((C.match(g)||["","-1"])[1],10);y!==null&&(y=k(y,c,d.decimalPoint,-1<C.indexOf(",")?d.thousandsSep:""))}else y=v.dateFormat(C,y);w.push(y)}else w.push(C);E=E.slice(S+1),y=(h=!h)?"}":"{"}return w.push(E),w.join("")},numberFormat:H}}),B(et,"Core/Renderer/RendererUtilities.js",[et["Core/Utilities.js"]],function(W){var R,H=W.clamp,V=W.pick,$=W.stableSort;return function(Z){Z.distribute=function U(z,I,E){var M,k=z,y=k.reducedLen||I,h=function(w,S){return(S.rank||0)-(w.rank||0)},u=function(w,S){return w.target-S.target},g=!0,d=[],v=0;for(M=z.length;M--;)v+=z[M].size;if(v>y){for($(z,h),v=M=0;v<=y;)v+=z[M].size,M++;d=z.splice(M-1,z.length)}for($(z,u),z=z.map(function(w){return{size:w.size,targets:[w.target],align:V(w.align,.5)}});g;){for(M=z.length;M--;)y=z[M],h=(Math.min.apply(0,y.targets)+Math.max.apply(0,y.targets))/2,y.pos=H(h-y.size*y.align,0,I-y.size);for(M=z.length,g=!1;M--;)0<M&&z[M-1].pos+z[M-1].size>z[M].pos&&(z[M-1].size+=z[M].size,z[M-1].targets=z[M-1].targets.concat(z[M].targets),z[M-1].align=.5,z[M-1].pos+z[M-1].size>I&&(z[M-1].pos=I-z[M-1].size),z.splice(M,1),g=!0)}return k.push.apply(k,d),M=0,z.some(function(w){var S=0;return(w.targets||[]).some(function(){return k[M].pos=w.pos+S,E!==void 0&&Math.abs(k[M].pos-k[M].target)>E?(k.slice(0,M+1).forEach(function(C){return delete C.pos}),k.reducedLen=(k.reducedLen||I)-.1*I,k.reducedLen>.1*I&&U(k,I,E),!0):(S+=k[M].size,M++,!1)})}),$(k,u),k}}(R||(R={})),R}),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(W,R,H,V){var $=W.animate,Z=W.animObject,U=W.stop,z=H.deg2rad,I=H.doc,E=H.svg,M=H.SVG_NS,k=H.win,y=V.addEvent,h=V.attr,u=V.createElement,g=V.css,d=V.defined,v=V.erase,w=V.extend,S=V.fireEvent,C=V.isArray,c=V.isFunction,f=V.isString,r=V.merge,a=V.objectEach,t=V.pick,i=V.pInt,o=V.syncTimeout,e=V.uniqueKey;return W=function(){function s(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=M,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return s.prototype._defaultGetter=function(n){return n=t(this[n+"Value"],this[n],this.element?this.element.getAttribute(n):null,0),/^[\-0-9\.]+$/.test(n)&&(n=parseFloat(n)),n},s.prototype._defaultSetter=function(n,l,b){b.setAttribute(l,n)},s.prototype.add=function(n){var l=this.renderer,b=this.element;if(n&&(this.parentGroup=n),this.textStr!==void 0&&this.element.nodeName==="text"&&l.buildText(this),this.added=!0,!n||n.handleZ||this.zIndex)var T=this.zIndexSetter();return T||(n?n.element:l.box).appendChild(b),this.onAdd&&this.onAdd(),this},s.prototype.addClass=function(n,l){var b=l?"":this.attr("class")||"";return n=(n||"").split(/ /g).reduce(function(T,D){return b.indexOf(D)===-1&&T.push(D),T},b?[b]:[]).join(" "),n!==b&&this.attr("class",n),this},s.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},s.prototype.align=function(n,l,b){var T,D,p,x={},A=this.renderer,N=A.alignedObjects;n?(this.alignOptions=n,this.alignByTranslate=l,(!b||f(b))&&(this.alignTo=T=b||"renderer",v(N,this),N.push(this),b=void 0)):(n=this.alignOptions,l=this.alignByTranslate,T=this.alignTo),b=t(b,A[T],T==="scrollablePlotBox"?A.plotBox:void 0,A),T=n.align;var _=n.verticalAlign;return A=(b.x||0)+(n.x||0),N=(b.y||0)+(n.y||0),T==="right"?D=1:T==="center"&&(D=2),D&&(A+=(b.width-(n.width||0))/D),x[l?"translateX":"x"]=Math.round(A),_==="bottom"?p=1:_==="middle"&&(p=2),p&&(N+=(b.height-(n.height||0))/p),x[l?"translateY":"y"]=Math.round(N),this[this.placed?"animate":"attr"](x),this.placed=!0,this.alignAttr=x,this},s.prototype.alignSetter=function(n){var l={left:"start",center:"middle",right:"end"};l[n]&&(this.alignValue=n,this.element.setAttribute("text-anchor",l[n]))},s.prototype.animate=function(n,l,b){var T=this,D=Z(t(l,this.renderer.globalAnimation,!0));return l=D.defer,t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(D.duration=0),D.duration!==0?(b&&(D.complete=b),o(function(){T.element&&$(T,n,D)},l)):(this.attr(n,void 0,b||D.complete),a(n,function(p,x){D.step&&D.step.call(this,p,{prop:x,pos:1,elem:this})},this)),this},s.prototype.applyTextOutline=function(n){var l=this.element;n.indexOf("contrast")!==-1&&(n=n.replace(/contrast/g,this.renderer.getContrast(l.style.fill)));var b=n.split(" ");if(n=b[b.length-1],(b=b[0])&&b!=="none"&&H.svg){this.fakeTS=!0,b=b.replace(/(^[\d\.]+)(.*?)$/g,function(p,x,A){return 2*Number(x)+A}),this.removeTextOutline();var T=I.createElementNS(M,"tspan");h(T,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":b,"stroke-linejoin":"round"}),n=l.querySelector("textPath")||l,[].forEach.call(n.childNodes,function(p){var x=p.cloneNode(!0);x.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(A){return x.removeAttribute(A)}),T.appendChild(x)});var D=0;[].forEach.call(n.querySelectorAll("text tspan"),function(p){D+=Number(p.getAttribute("dy"))}),(b=I.createElementNS(M,"tspan")).textContent="",h(b,{x:Number(l.getAttribute("x")),dy:-D}),T.appendChild(b),n.insertBefore(T,n.firstChild)}},s.prototype.attr=function(n,l,b,T){var D,p,x,A=this.element,N=this.symbolCustomAttribs,_=this;if(typeof n=="string"&&l!==void 0){var L=n;(n={})[L]=l}return typeof n=="string"?_=(this[n+"Getter"]||this._defaultGetter).call(this,n,A):(a(n,function(O,j){p=!1,T||U(this,j),this.symbolName&&N.indexOf(j)!==-1&&(D||(this.symbolAttr(n),D=!0),p=!0),!this.rotation||j!=="x"&&j!=="y"||(this.doTransform=!0),p||((x=this[j+"Setter"]||this._defaultSetter).call(this,O,j,A),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(j)&&this.updateShadows(j,O,x))},this),this.afterSetters()),b&&b.call(this),_},s.prototype.clip=function(n){return this.attr("clip-path",n?"url("+this.renderer.url+"#"+n.id+")":"none")},s.prototype.crisp=function(n,l){l=l||n.strokeWidth||0;var b=Math.round(l)%2/2;return n.x=Math.floor(n.x||this.x||0)+b,n.y=Math.floor(n.y||this.y||0)+b,n.width=Math.floor((n.width||this.width||0)-2*b),n.height=Math.floor((n.height||this.height||0)-2*b),d(n.strokeWidth)&&(n.strokeWidth=l),n},s.prototype.complexColor=function(n,l,b){var T,D,p,x,A,N,_,L,O,j,Y,X=this.renderer,G=[];S(this.renderer,"complexColor",{args:arguments},function(){if(n.radialGradient?D="radialGradient":n.linearGradient&&(D="linearGradient"),D){if(p=n[D],A=X.gradients,N=n.stops,O=b.radialReference,C(p)&&(n[D]=p={x1:p[0],y1:p[1],x2:p[2],y2:p[3],gradientUnits:"userSpaceOnUse"}),D==="radialGradient"&&O&&!d(p.gradientUnits)&&(x=p,p=r(p,X.getRadialAttr(O,x),{gradientUnits:"userSpaceOnUse"})),a(p,function(Q,J){J!=="id"&&G.push(J,Q)}),a(N,function(Q){G.push(Q)}),G=G.join(","),A[G])j=A[G].attr("id");else{p.id=j=e();var q=A[G]=X.createElement(D).attr(p).add(X.defs);q.radAttr=x,q.stops=[],N.forEach(function(Q){Q[1].indexOf("rgba")===0?(T=R.parse(Q[1]),_=T.get("rgb"),L=T.get("a")):(_=Q[1],L=1),Q=X.createElement("stop").attr({offset:Q[0],"stop-color":_,"stop-opacity":L}).add(q),q.stops.push(Q)})}Y="url("+X.url+"#"+j+")",b.setAttribute(l,Y),b.gradient=G,n.toString=function(){return Y}}})},s.prototype.css=function(n){var l=this.styles,b={},T=this.element,D=!l;if(n.color&&(n.fill=n.color),l&&a(n,function(A,N){l&&l[N]!==A&&(b[N]=A,D=!0)}),D){if(l&&(n=w(l,b)),n.width===null||n.width==="auto")delete this.textWidth;else if(T.nodeName.toLowerCase()==="text"&&n.width)var p=this.textWidth=i(n.width);this.styles=n,p&&!E&&this.renderer.forExport&&delete n.width;var x=r(n);T.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(A){return x&&delete x[A]}),g(T,x),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),n.textOutline&&this.applyTextOutline(n.textOutline))}return this},s.prototype.dashstyleSetter=function(n){var l=this["stroke-width"];if(l==="inherit"&&(l=1),n=n&&n.toLowerCase()){var b=n.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(n=b.length;n--;)b[n]=""+i(b[n])*t(l,NaN);n=b.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",n)}},s.prototype.destroy=function(){var n=this,l=n.element||{},b=n.renderer,T=l.ownerSVGElement,D=b.isSVG&&l.nodeName==="SPAN"&&n.parentGroup||void 0;if(l.onclick=l.onmouseout=l.onmouseover=l.onmousemove=l.point=null,U(n),n.clipPath&&T){var p=n.clipPath;[].forEach.call(T.querySelectorAll("[clip-path],[CLIP-PATH]"),function(x){-1<x.getAttribute("clip-path").indexOf(p.element.id)&&x.removeAttribute("clip-path")}),n.clipPath=p.destroy()}if(n.stops){for(T=0;T<n.stops.length;T++)n.stops[T].destroy();n.stops.length=0,n.stops=void 0}for(n.safeRemoveChild(l),b.styledMode||n.destroyShadows();D&&D.div&&D.div.childNodes.length===0;)l=D.parentGroup,n.safeRemoveChild(D.div),delete D.div,D=l;n.alignTo&&v(b.alignedObjects,n),a(n,function(x,A){n[A]&&n[A].parentGroup===n&&n[A].destroy&&n[A].destroy(),delete n[A]})},s.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(n){this.safeRemoveChild(n)},this),this.shadows=void 0},s.prototype.dSetter=function(n,l,b){C(n)&&(typeof n[0]=="string"&&(n=this.renderer.pathToSegments(n)),this.pathArray=n,n=n.reduce(function(T,D,p){return D&&D.join?(p?T+" ":"")+D.join(" "):(D||"").toString()},"")),/(NaN| {2}|^$)/.test(n)&&(n="M 0 0"),this[l]!==n&&(b.setAttribute(l,n),this[l]=n)},s.prototype.fadeOut=function(n){var l=this;l.animate({opacity:0},{duration:t(n,150),complete:function(){l.hide()}})},s.prototype.fillSetter=function(n,l,b){typeof n=="string"?b.setAttribute(l,n):n&&this.complexColor(n,l,b)},s.prototype.getBBox=function(n,l){var b=this.alignValue,T=this.element,D=this.renderer,p=this.styles,x=this.textStr,A=D.cache,N=D.cacheKeys,_=T.namespaceURI===this.SVG_NS;l=t(l,this.rotation,0);var L,O=D.styledMode?T&&s.prototype.getStyle.call(T,"font-size"):p&&p.fontSize;if(d(x)){var j=x.toString();j.indexOf("<")===-1&&(j=j.replace(/[0-9]/g,"0")),j+=["",l,O,this.textWidth,b,p&&p.textOverflow,p&&p.fontWeight].join()}if(j&&!n&&(L=A[j]),!L){if(_||D.forExport){try{var Y=this.fakeTS&&function(G){var q=T.querySelector(".highcharts-text-outline");q&&g(q,{display:G})};c(Y)&&Y("none"),L=T.getBBox?w({},T.getBBox()):{width:T.offsetWidth,height:T.offsetHeight,x:0,y:0},c(Y)&&Y("")}catch(G){}(!L||0>L.width)&&(L={x:0,y:0,width:0,height:0})}else L=this.htmlGetBBox();if(D.isSVG&&(D=L.width,n=L.height,_&&(L.height=n={"11px,17":14,"13px,20":16}[""+(O||"")+",".concat(Math.round(n))]||n),l)){_=Number(T.getAttribute("y")||0)-L.y,b={right:1,center:.5}[b||0]||0,p=l*z,O=(l-90)*z;var X=D*Math.cos(p);l=D*Math.sin(p),Y=Math.cos(O),p=Math.sin(O),X=(Y=(O=(D=L.x+b*(D-X)+_*Y)+X)-n*Y)-X,l=(n=(b=(_=L.y+_-b*l+_*p)+l)-n*p)-l,L.x=Math.min(D,O,Y,X),L.y=Math.min(_,b,n,l),L.width=Math.max(D,O,Y,X)-L.x,L.height=Math.max(_,b,n,l)-L.y}if(j&&(x===""||0<L.height)){for(;250<N.length;)delete A[N.shift()];A[j]||N.push(j),A[j]=L}}return L},s.prototype.getStyle=function(n){return k.getComputedStyle(this.element||this,"").getPropertyValue(n)},s.prototype.hasClass=function(n){return(""+this.attr("class")).split(" ").indexOf(n)!==-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(n,l){this.element=l==="span"?u(l):I.createElementNS(this.SVG_NS,l),this.renderer=n,S(this,"afterInit")},s.prototype.on=function(n,l){var b=this.onEvents;return b[n]&&b[n](),b[n]=y(this.element,n,l),this},s.prototype.opacitySetter=function(n,l,b){this.opacity=n=Number(Number(n).toFixed(3)),b.setAttribute(l,n)},s.prototype.removeClass=function(n){return this.attr("class",(""+this.attr("class")).replace(f(n)?new RegExp("(^| )".concat(n,"( |$)")):n," ").replace(/ +/g," ").trim())},s.prototype.removeTextOutline=function(){var n=this.element.querySelector("tspan.highcharts-text-outline");n&&this.safeRemoveChild(n)},s.prototype.safeRemoveChild=function(n){var l=n.parentNode;l&&l.removeChild(n)},s.prototype.setRadialReference=function(n){var l=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=n,l&&l.radAttr&&l.animate(this.renderer.getRadialAttr(n,l.radAttr)),this},s.prototype.setTextPath=function(n,l){var b=this;l=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},l);var T=this.renderer.url,D=this.text||this,p=D.textPath,x=l.attributes,A=l.enabled;return n=n||p&&p.path,p&&p.undo(),n&&A?(l=y(D,"afterModifyTree",function(N){if(n&&A){var _=n.attr("id");_||n.attr("id",_=e());var L={x:0,y:0};d(x.dx)&&(L.dx=x.dx,delete x.dx),d(x.dy)&&(L.dy=x.dy,delete x.dy),D.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:""+T+"#".concat(_)}),children:L}}}),D.textPath={path:n,undo:l}):(D.attr({dx:0,dy:0}),delete D.textPath),this.added&&(D.textCache="",this.renderer.buildText(D)),this},s.prototype.shadow=function(n,l,b){var T=[],D=this.element,p=this.oldShadowOptions,x=this.parentGroup,A=x&&x.rotation===90;x={color:"#000000",offsetX:A?-1:1,offsetY:A?-1:1,opacity:.15,width:3};var N,_=!1;if(n===!0?N=x:typeof n=="object"&&(N=w(x,n)),N&&(N&&p&&a(N,function(Y,X){Y!==p[X]&&(_=!0)}),_&&this.destroyShadows(),this.oldShadowOptions=N),N){if(!this.shadows){x=N.opacity/N.width;var L=A?"translate(".concat(N.offsetY,", ").concat(N.offsetX,")"):"translate(".concat(N.offsetX,", ").concat(N.offsetY,")");for(A=1;A<=N.width;A++){var O=D.cloneNode(!1),j=2*N.width+1-2*A;h(O,{stroke:n.color||"#000000","stroke-opacity":x*A,"stroke-width":j,transform:L,fill:"none"}),O.setAttribute("class",(O.getAttribute("class")||"")+" highcharts-shadow"),b&&(h(O,"height",Math.max(h(O,"height")-j,0)),O.cutHeight=j),l?l.element.appendChild(O):D.parentNode&&D.parentNode.insertBefore(O,D),T.push(O)}this.shadows=T}}else this.destroyShadows();return this},s.prototype.show=function(n){return n===void 0&&(n=!0),this.attr({visibility:n?"inherit":"visible"})},s.prototype["stroke-widthSetter"]=function(n,l,b){this[l]=n,b.setAttribute(l,n)},s.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var n=this.getStyle("stroke-width"),l=0;if(n.indexOf("px")===n.length-2)l=i(n);else if(n!==""){var b=I.createElementNS(M,"rect");h(b,{width:n,"stroke-width":0}),this.element.parentNode.appendChild(b),l=b.getBBox().width,b.parentNode.removeChild(b)}return l},s.prototype.symbolAttr=function(n){var l=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(b){l[b]=t(n[b],l[b])}),l.attr({d:l.renderer.symbols[l.symbolName](l.x,l.y,l.width,l.height,l)})},s.prototype.textSetter=function(n){n!==this.textStr&&(delete this.textPxLength,this.textStr=n,this.added&&this.renderer.buildText(this))},s.prototype.titleSetter=function(n){var l=this.element,b=l.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");l.insertBefore?l.insertBefore(b,l.firstChild):l.appendChild(b),b.textContent=String(t(n,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},s.prototype.toFront=function(){var n=this.element;return n.parentNode.appendChild(n),this},s.prototype.translate=function(n,l){return this.attr({translateX:n,translateY:l})},s.prototype.updateShadows=function(n,l,b){var T=this.shadows;if(T)for(var D=T.length;D--;)b.call(T[D],n==="height"?Math.max(l-(T[D].cutHeight||0),0):n==="d"?this.d:l,n,T[D])},s.prototype.updateTransform=function(){var n=this.element,l=this.matrix,b=this.rotation;b=b===void 0?0:b;var T=this.scaleX,D=this.scaleY,p=this.translateX,x=this.translateY;p=["translate("+(p===void 0?0:p)+","+(x===void 0?0:x)+")"],d(l)&&p.push("matrix("+l.join(",")+")"),b&&p.push("rotate("+b+" "+t(this.rotationOriginX,n.getAttribute("x"),0)+" "+t(this.rotationOriginY,n.getAttribute("y")||0)+")"),(d(T)||d(D))&&p.push("scale("+t(T,1)+" "+t(D,1)+")"),p.length&&!(this.text||this).textPath&&n.setAttribute("transform",p.join(" "))},s.prototype.visibilitySetter=function(n,l,b){n==="inherit"?b.removeAttribute(l):this[l]!==n&&b.setAttribute(l,n),this[l]=n},s.prototype.xGetter=function(n){return this.element.nodeName==="circle"&&(n==="x"?n="cx":n==="y"&&(n="cy")),this._defaultGetter(n)},s.prototype.zIndexSetter=function(n,l){var b=this.renderer,T=this.parentGroup,D=(T||b).element||b.box,p=this.element;b=D===b.box;var x,A=!1,N=this.added;if(d(n)?(p.setAttribute("data-z-index",n),n=+n,this[l]===n&&(N=!1)):d(this[l])&&p.removeAttribute("data-z-index"),this[l]=n,N){for((n=this.zIndex)&&T&&(T.handleZ=!0),x=(l=D.childNodes).length-1;0<=x&&!A;x--){N=(T=l[x]).getAttribute("data-z-index");var _=!d(N);T!==p&&(0>n&&_&&!b&&!x?(D.insertBefore(p,l[x]),A=!0):(i(N)<=n||_&&(!d(n)||0<=n))&&(D.insertBefore(p,l[x+1]||null),A=!0))}A||(D.insertBefore(p,l[b?3:0]||null),A=!0)}return A},s}(),W.prototype.strokeSetter=W.prototype.fillSetter,W.prototype.yGetter=W.prototype.xGetter,W.prototype.matrixSetter=W.prototype.rotationOriginXSetter=W.prototype.rotationOriginYSetter=W.prototype.rotationSetter=W.prototype.scaleXSetter=W.prototype.scaleYSetter=W.prototype.translateXSetter=W.prototype.translateYSetter=W.prototype.verticalAlignSetter=function(s,n){this[n]=s,this.doTransform=!0},W}),B(et,"Core/Renderer/RendererRegistry.js",[et["Core/Globals.js"]],function(W){var R;return function(H){var V;H.rendererTypes={},H.getRendererType=function($){return $===void 0&&($=V),H.rendererTypes[$]||H.rendererTypes[V]},H.registerRendererType=function($,Z,U){H.rendererTypes[$]=Z,V&&!U||(V=$,W.Renderer=Z)}}(R||(R={})),R}),B(et,"Core/Renderer/SVG/SVGLabel.js",[et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(W,R){var H=this&&this.__extends||function(){var E=function(M,k){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},E(M,k)};return function(M,k){function y(){this.constructor=M}E(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}}(),V=R.defined,$=R.extend,Z=R.isNumber,U=R.merge,z=R.pick,I=R.removeEvent;return function(E){function M(k,y,h,u,g,d,v,w,S,C){var c,f=E.call(this)||this;return f.paddingLeftSetter=f.paddingSetter,f.paddingRightSetter=f.paddingSetter,f.init(k,"g"),f.textStr=y,f.x=h,f.y=u,f.anchorX=d,f.anchorY=v,f.baseline=S,f.className=C,f.addClass(C==="button"?"highcharts-no-tooltip":"highcharts-label"),C&&f.addClass("highcharts-"+C),f.text=k.text(void 0,0,0,w).attr({zIndex:1}),typeof g=="string"&&((c=/^url\((.*?)\)$/.test(g))||f.renderer.symbols[g])&&(f.symbolKey=g),f.bBox=M.emptyBBox,f.padding=3,f.baselineOffset=0,f.needsBox=k.styledMode||c,f.deferredAttr={},f.alignFactor=0,f}return H(M,E),M.prototype.alignSetter=function(k){(k={left:0,center:.5,right:1}[k])!==this.alignFactor&&(this.alignFactor=k,this.bBox&&Z(this.xSetting)&&this.attr({x:this.xSetting}))},M.prototype.anchorXSetter=function(k,y){this.anchorX=k,this.boxAttr(y,Math.round(k)-this.getCrispAdjust()-this.xSetting)},M.prototype.anchorYSetter=function(k,y){this.anchorY=k,this.boxAttr(y,k-this.ySetting)},M.prototype.boxAttr=function(k,y){this.box?this.box.attr(k,y):this.deferredAttr[k]=y},M.prototype.css=function(k){if(k){var y={};k=U(k),M.textProps.forEach(function(h){k[h]!==void 0&&(y[h]=k[h],delete k[h])}),this.text.css(y),"fontSize"in y||"fontWeight"in y?this.updateTextPadding():("width"in y||"textOverflow"in y)&&this.updateBoxSize()}return W.prototype.css.call(this,k)},M.prototype.destroy=function(){I(this.element,"mouseenter"),I(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),W.prototype.destroy.call(this)},M.prototype.fillSetter=function(k,y){k&&(this.needsBox=!0),this.fill=k,this.boxAttr(y,k)},M.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var k=this.padding,y=z(this.paddingLeft,k);return{width:this.width,height:this.height,x:this.bBox.x-y,y:this.bBox.y-k}},M.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},M.prototype.heightSetter=function(k){this.heightSetting=k},M.prototype.onAdd=function(){this.text.add(this),this.attr({text:z(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&V(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},M.prototype.paddingSetter=function(k,y){Z(k)?k!==this[y]&&(this[y]=k,this.updateTextPadding()):this[y]=void 0},M.prototype.rSetter=function(k,y){this.boxAttr(y,k)},M.prototype.shadow=function(k){return k&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(k)),this},M.prototype.strokeSetter=function(k,y){this.stroke=k,this.boxAttr(y,k)},M.prototype["stroke-widthSetter"]=function(k,y){k&&(this.needsBox=!0),this["stroke-width"]=k,this.boxAttr(y,k)},M.prototype["text-alignSetter"]=function(k){this.textAlign=k},M.prototype.textSetter=function(k){k!==void 0&&this.text.attr({text:k}),this.updateTextPadding()},M.prototype.updateBoxSize=function(){var k=this.text,y=k.element.style,h={},u=this.padding,g=this.bBox=Z(this.widthSetting)&&Z(this.heightSetting)&&!this.textAlign||!V(k.textStr)?M.emptyBBox:k.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||g.height||0)+2*u,y=this.renderer.fontMetrics(y&&y.fontSize,k),this.baselineOffset=u+Math.min((this.text.firstLineMetrics||y).b,g.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-y.h)/2),this.needsBox&&!k.textPath&&(this.box||((k=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":"")),k.add(this)),k=this.getCrispAdjust(),h.x=k,h.y=(this.baseline?-this.baselineOffset:0)+k,h.width=Math.round(this.width),h.height=Math.round(this.height),this.box.attr($(h,this.deferredAttr)),this.deferredAttr={})},M.prototype.updateTextPadding=function(){var k=this.text;if(!k.textPath){this.updateBoxSize();var y=this.baseline?0:this.baselineOffset,h=z(this.paddingLeft,this.padding);V(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(h+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),h===k.x&&y===k.y||(k.attr("x",h),k.hasBoxWidthChanged&&(this.bBox=k.getBBox(!0)),y!==void 0&&k.attr("y",y)),k.x=h,k.y=y}},M.prototype.widthSetter=function(k){this.widthSetting=Z(k)?k:void 0},M.prototype.getPaddedWidth=function(){var k=this.padding,y=z(this.paddingLeft,k);return k=z(this.paddingRight,k),(this.widthSetting||this.bBox.width||0)+y+k},M.prototype.xSetter=function(k){this.x=k,this.alignFactor&&(k-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(k),this.attr("translateX",this.xSetting)},M.prototype.ySetter=function(k){this.ySetting=this.y=Math.round(k),this.attr("translateY",this.ySetting)},M.emptyBBox={width:0,height:0,x:0,y:0},M.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),M}(W)}),B(et,"Core/Renderer/SVG/Symbols.js",[et["Core/Utilities.js"]],function(W){function R(z,I,E,M,k){var y=[];if(k){var h=k.start||0,u=U(k.r,E);E=U(k.r,M||E);var g=(k.end||0)-.001;M=k.innerR;var d=U(k.open,.001>Math.abs((k.end||0)-h-2*Math.PI)),v=Math.cos(h),w=Math.sin(h),S=Math.cos(g),C=Math.sin(g);h=U(k.longArc,.001>g-h-Math.PI?0:1),y.push(["M",z+u*v,I+E*w],["A",u,E,0,h,U(k.clockwise,1),z+u*S,I+E*C]),$(M)&&y.push(d?["M",z+M*S,I+M*C]:["L",z+M*S,I+M*C],["A",M,M,0,h,$(k.clockwise)?1-k.clockwise:0,z+M*v,I+M*w]),d||y.push(["Z"])}return y}function H(z,I,E,M,k){return k&&k.r?V(z,I,E,M,k):[["M",z,I],["L",z+E,I],["L",z+E,I+M],["L",z,I+M],["Z"]]}function V(z,I,E,M,k){return[["M",z+(k=k&&k.r||0),I],["L",z+E-k,I],["C",z+E,I,z+E,I,z+E,I+k],["L",z+E,I+M-k],["C",z+E,I+M,z+E,I+M,z+E-k,I+M],["L",z+k,I+M],["C",z,I+M,z,I+M,z,I+M-k],["L",z,I+k],["C",z,I,z,I,z+k,I]]}var $=W.defined,Z=W.isNumber,U=W.pick;return{arc:R,callout:function(z,I,E,M,k){var y=Math.min(k&&k.r||0,E,M),h=y+6,u=k&&k.anchorX;k=k&&k.anchorY||0;var g=V(z,I,E,M,{r:y});return Z(u)&&(z+u>=E?k>I+h&&k<I+M-h?g.splice(3,1,["L",z+E,k-6],["L",z+E+6,k],["L",z+E,k+6],["L",z+E,I+M-y]):g.splice(3,1,["L",z+E,M/2],["L",u,k],["L",z+E,M/2],["L",z+E,I+M-y]):0>=z+u?k>I+h&&k<I+M-h?g.splice(7,1,["L",z,k+6],["L",z-6,k],["L",z,k-6],["L",z,I+y]):g.splice(7,1,["L",z,M/2],["L",u,k],["L",z,M/2],["L",z,I+y]):k&&k>M&&u>z+h&&u<z+E-h?g.splice(5,1,["L",u+6,I+M],["L",u,I+M+6],["L",u-6,I+M],["L",z+y,I+M]):k&&0>k&&u>z+h&&u<z+E-h&&g.splice(1,1,["L",u-6,I],["L",u,I-6],["L",u+6,I],["L",E-y,I])),g},circle:function(z,I,E,M){return R(z+E/2,I+M/2,E/2,M/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M/2],["L",z+E/2,I+M],["L",z,I+M/2],["Z"]]},rect:H,roundedRect:V,square:H,triangle:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M],["L",z,I+M],["Z"]]},"triangle-down":function(z,I,E,M){return[["M",z,I],["L",z+E,I],["L",z+E/2,I+M],["Z"]]}}}),B(et,"Core/Renderer/SVG/TextBuilder.js",[et["Core/Renderer/HTML/AST.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(W,R,H){var V=R.doc,$=R.SVG_NS,Z=R.win,U=H.attr,z=H.extend,I=H.fireEvent,E=H.isString,M=H.objectEach,k=H.pick;return function(){function y(h){var u=h.styles;this.renderer=h.renderer,this.svgElement=h,this.width=h.textWidth,this.textLineHeight=u&&u.lineHeight,this.textOutline=u&&u.textOutline,this.ellipsis=!(!u||u.textOverflow!=="ellipsis"),this.noWrap=!(!u||u.whiteSpace!=="nowrap"),this.fontSize=u&&u.fontSize}return y.prototype.buildSVG=function(){var h=this.svgElement,u=h.element,g=h.renderer,d=k(h.textStr,"").toString(),v=d.indexOf("<")!==-1,w=u.childNodes;g=this.width&&!h.added&&g.box;var S=[d,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(S!==h.textCache){for(h.textCache=S,delete h.actualWidth,S=w.length;S--;)u.removeChild(w[S]);v||this.ellipsis||this.width||h.textPath||d.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(d))?d!==""&&(g&&g.appendChild(u),d=new W(d),this.modifyTree(d.nodes),d.addToDOM(u),this.modifyDOM(),this.ellipsis&&(u.textContent||"").indexOf("…")!==-1&&h.attr("title",this.unescapeEntities(h.textStr||"",["<",">"])),g&&g.removeChild(u)):u.appendChild(V.createTextNode(this.unescapeEntities(d))),E(this.textOutline)&&h.applyTextOutline&&h.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var h,u=this,g=this.svgElement,d=U(g.element,"x");for(g.firstLineMetrics=void 0;(h=g.element.firstChild)&&/^[\s\u200B]*$/.test(h.textContent||" ");)g.element.removeChild(h);[].forEach.call(g.element.querySelectorAll("tspan.highcharts-br"),function(C,c){C.nextSibling&&C.previousSibling&&(c===0&&C.previousSibling.nodeType===1&&(g.firstLineMetrics=g.renderer.fontMetrics(void 0,C.previousSibling)),U(C,{dy:u.getLineHeight(C.nextSibling),x:d}))});var v=this.width||0;if(v){var w=function(C,c){var f=C.textContent||"",r=f.replace(/([^\^])-/g,"$1- ").split(" "),a=!u.noWrap&&(1<r.length||1<g.element.childNodes.length),t=u.getLineHeight(c),i=0,o=g.actualWidth;if(u.ellipsis)f&&u.truncate(C,f,void 0,0,Math.max(0,v-parseInt(u.fontSize||12,10)),function(e,s){return e.substring(0,s)+"…"});else if(a){for(f=[],a=[];c.firstChild&&c.firstChild!==C;)a.push(c.firstChild),c.removeChild(c.firstChild);for(;r.length;)r.length&&!u.noWrap&&0<i&&(f.push(C.textContent||""),C.textContent=r.join(" ").replace(/- /g,"-")),u.truncate(C,void 0,r,i===0&&o||0,v,function(e,s){return r.slice(0,s).join(" ").replace(/- /g,"-")}),o=g.actualWidth,i++;a.forEach(function(e){c.insertBefore(e,C)}),f.forEach(function(e){c.insertBefore(V.createTextNode(e),C),(e=V.createElementNS($,"tspan")).textContent="",U(e,{dy:t,x:d}),c.insertBefore(e,C)})}},S=function(C){[].slice.call(C.childNodes).forEach(function(c){c.nodeType===Z.Node.TEXT_NODE?w(c,C):(c.className.baseVal.indexOf("highcharts-br")!==-1&&(g.actualWidth=0),S(c))})};S(g.element)}},y.prototype.getLineHeight=function(h){var u;return h=h.nodeType===Z.Node.TEXT_NODE?h.parentElement:h,this.renderer.styledMode||(u=h&&/(px|em)$/.test(h.style.fontSize)?h.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(u,h||this.svgElement.element).h},y.prototype.modifyTree=function(h){var u=this,g=function(d,v){var w=d.attributes;w=w===void 0?{}:w;var S=d.children,C=d.style;C=C===void 0?{}:C;var c=d.tagName,f=u.renderer.styledMode;c==="b"||c==="strong"?f?w.class="highcharts-strong":C.fontWeight="bold":c!=="i"&&c!=="em"||(f?w.class="highcharts-emphasized":C.fontStyle="italic"),C&&C.color&&(C.fill=C.color),c==="br"?(w.class="highcharts-br",d.textContent="",(v=h[v+1])&&v.textContent&&(v.textContent=v.textContent.replace(/^ +/gm,""))):c==="a"&&S&&S.some(function(r){return r.tagName==="#text"})&&(d.children=[{children:S,tagName:"tspan"}]),c!=="#text"&&c!=="a"&&(d.tagName="tspan"),z(d,{attributes:w,style:C}),S&&S.filter(function(r){return r.tagName!=="#text"}).forEach(g)};h.forEach(g),I(this.svgElement,"afterModifyTree",{nodes:h})},y.prototype.truncate=function(h,u,g,d,v,w){var S,C=this.svgElement,c=C.renderer,f=C.rotation,r=[],a=g?1:0,t=(u||g||"").length,i=t,o=function(s,n){n=n||s;var l=h.parentNode;if(l&&r[n]===void 0)if(l.getSubStringLength)try{r[n]=d+l.getSubStringLength(0,g?n+1:n)}catch(b){}else c.getSpanWidth&&(h.textContent=w(u||g,s),r[n]=d+c.getSpanWidth(C,h));return r[n]};C.rotation=0;var e=o(h.textContent.length);if(d+e>v){for(;a<=t;)i=Math.ceil((a+t)/2),g&&(S=w(g,i)),e=o(i,S&&S.length-1),a===t?a=t+1:e>v?t=i-1:a=i;t===0?h.textContent="":u&&t===u.length-1||(h.textContent=S||w(u||g,i))}g&&g.splice(0,i),C.actualWidth=e,C.rotation=f},y.prototype.unescapeEntities=function(h,u){return M(this.renderer.escapes,function(g,d){u&&u.indexOf(g)!==-1||(h=h.toString().replace(new RegExp(g,"g"),d))}),h},y}()}),B(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(W,R,H,V,$,Z,U,z,I){var E,M=H.charts,k=H.deg2rad,y=H.doc,h=H.isFirefox,u=H.isMS,g=H.isWebKit,d=H.noop,v=H.SVG_NS,w=H.symbolSizes,S=H.win,C=I.addEvent,c=I.attr,f=I.createElement,r=I.css,a=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,s=I.isObject,n=I.isString,l=I.merge,b=I.pick,T=I.pInt,D=I.uniqueKey;return H=function(){function p(x,A,N,_,L,O,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,A,N,_,L,O,j)}return p.prototype.init=function(x,A,N,_,L,O,j){var Y,X=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),G=X.element;j||X.css(this.getStyle(_)),x.appendChild(G),c(x,"dir","ltr"),x.innerHTML.indexOf("xmlns")===-1&&c(G,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=G,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=O,this.forExport=L,this.styledMode=j,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(A,N,!1),h&&x.getBoundingClientRect&&((A=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(S,"resize",A))},p.prototype.definition=function(x){return new W([x]).addToDOM(this.defs.element)},p.prototype.getReferenceURL=function(){if((h||g)&&y.getElementsByTagName("base").length){if(!a(E)){var x=D();x=new W([{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 A=y.elementFromPoint(6,6);E=(A&&A.id)==="hitme",y.body.removeChild(x)}if(E)return S.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},p.prototype.getStyle=function(x){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},x)},p.prototype.setStyle=function(x){this.boxWrapper.css(this.getStyle(x))},p.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},p.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},p.prototype.createElement=function(x){var A=new this.Element;return A.init(this,x),A},p.prototype.getRadialAttr=function(x,A){return{cx:x[0]-x[2]/2+(A.cx||0)*x[2],cy:x[1]-x[2]/2+(A.cy||0)*x[2],r:(A.r||0)*x[2]}},p.prototype.buildText=function(x){new z(x).buildSVG()},p.prototype.getContrast=function(x){return 1.05/(.05+(x=.2126*(x=R.parse(x).rgba.map(function(A){return .03928>=(A/=255)?A/12.92:Math.pow((A+.055)/1.055,2.4)}))[0]+.7152*x[1]+.0722*x[2]))>(x+.05)/.05?"#FFFFFF":"#000000"},p.prototype.button=function(x,A,N,_,L,O,j,Y,X,G){L===void 0&&(L={});var q=this.label(x,A,N,X,void 0,void 0,G,void 0,"button"),Q=this.styledMode;x=L.states||{};var J=0;delete(L=l(L)).states;var rt=l({color:"#333333",cursor:"pointer",fontWeight:"normal"},L.style);delete L.style;var lt=W.filterUserAttributes(L);if(q.attr(l({padding:8,r:2},lt)),!Q){lt=l({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},lt);var gt=(O=l(lt,{fill:"#e6e6e6"},W.filterUserAttributes(O||x.hover||{}))).style;delete O.style;var mt=(j=l(lt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},W.filterUserAttributes(j||x.select||{}))).style;delete j.style;var bt=(Y=l(lt,{style:{color:"#cccccc"}},W.filterUserAttributes(Y||x.disabled||{}))).style;delete Y.style}return C(q.element,u?"mouseover":"mouseenter",function(){J!==3&&q.setState(1)}),C(q.element,u?"mouseout":"mouseleave",function(){J!==3&&q.setState(J)}),q.setState=function(yt){yt!==1&&(q.state=J=yt),q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][yt||0]),Q||(q.attr([lt,O,j,Y][yt||0]),s(yt=[rt,gt,mt,bt][yt||0])&&q.css(yt))},Q||(q.attr(lt).css(i({cursor:"default"},rt)),G&&q.text.css({pointerEvents:"none"})),q.on("touchstart",function(yt){return yt.stopPropagation()}).on("click",function(yt){J!==3&&_.call(q,yt)})},p.prototype.crispLine=function(x,A,N){N===void 0&&(N="round");var _=x[0],L=x[1];return a(_[1])&&_[1]===L[1]&&(_[1]=L[1]=Math[N](_[1])-A%2/2),a(_[2])&&_[2]===L[2]&&(_[2]=L[2]=Math[N](_[2])+A%2/2),x},p.prototype.path=function(x){var A=this.styledMode?{}:{fill:"none"};return o(x)?A.d=x:s(x)&&i(A,x),this.createElement("path").attr(A)},p.prototype.circle=function(x,A,N){return x=s(x)?x:x===void 0?{}:{x,y:A,r:N},(A=this.createElement("circle")).xSetter=A.ySetter=function(_,L,O){O.setAttribute("c"+L,_)},A.attr(x)},p.prototype.arc=function(x,A,N,_,L,O){return s(x)?(A=(_=x).y,N=_.r,x=_.x):_={innerR:_,start:L,end:O},(x=this.symbol("arc",x,A,N,N,_)).r=N,x},p.prototype.rect=function(x,A,N,_,L,O){L=s(x)?x.r:L;var j=this.createElement("rect");return x=s(x)?x:x===void 0?{}:{x,y:A,width:Math.max(N,0),height:Math.max(_,0)},this.styledMode||(O!==void 0&&(x["stroke-width"]=O,x=j.crisp(x)),x.fill="none"),L&&(x.r=L),j.rSetter=function(Y,X,G){j.r=Y,c(G,{rx:Y,ry:Y})},j.rGetter=function(){return j.r||0},j.attr(x)},p.prototype.setSize=function(x,A,N){this.width=x,this.height=A,this.boxWrapper.animate({width:x,height:A},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(N,!0)?void 0:0}),this.alignElements()},p.prototype.g=function(x){var A=this.createElement("g");return x?A.attr({class:"highcharts-"+x}):A},p.prototype.image=function(x,A,N,_,L,O){var j={preserveAspectRatio:"none"},Y=function(G,q){G.setAttributeNS?G.setAttributeNS("http://www.w3.org/1999/xlink","href",q):G.setAttribute("hc-svg-href",q)};e(A)&&(j.x=A),e(N)&&(j.y=N),e(_)&&(j.width=_),e(L)&&(j.height=L);var X=this.createElement("image").attr(j);return A=function(G){Y(X.element,x),O.call(X,G)},O?(Y(X.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),N=new S.Image,C(N,"load",A),N.src=x,N.complete&&A({})):Y(X.element,x),X},p.prototype.symbol=function(x,A,N,_,L,O){var j,Y=this,X=/^url\((.*?)\)$/,G=X.test(x),q=!G&&(this.symbols[x]?x:"circle"),Q=q&&this.symbols[q];if(Q){typeof A=="number"&&(j=Q.call(this.symbols,Math.round(A||0),Math.round(N||0),_||0,L||0,O));var J=this.path(j);Y.styledMode||J.attr("fill","none"),i(J,{symbolName:q||void 0,x:A,y:N,width:_,height:L}),O&&i(J,O)}else if(G){var rt=x.match(X)[1],lt=J=this.image(rt);lt.imgwidth=b(w[rt]&&w[rt].width,O&&O.width),lt.imgheight=b(w[rt]&&w[rt].height,O&&O.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 ht=this.element,it=this.width,st=this.height,dt=this.imgwidth,vt=this.imgheight,Ct=this["img"+yt];if(a(Ct)){var xt=1;O&&O.backgroundSize==="within"&&it&&st?(xt=Math.min(it/dt,st/vt),Ct=Math.round(Ct*xt),c(ht,{width:Math.round(dt*xt),height:Math.round(vt*xt)})):ht&&ht.setAttribute(yt,Ct),bt||this.translate(((it||0)-Ct*xt)/2,((st||0)-Ct*xt)/2)}}}),a(A)&<.attr({x:A,y:N}),lt.isImg=!0,a(lt.imgwidth)&&a(lt.imgheight)?gt(lt):(lt.attr({width:0,height:0}),f("img",{onload:function(){var mt=M[Y.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),w[rt]={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:rt}),this.imgCount++)}return J},p.prototype.clipRect=function(x,A,N,_){var L=D()+"-",O=this.createElement("clipPath").attr({id:L}).add(this.defs);return(x=this.rect(x,A,N,_,0).add(O)).id=L,x.clipPath=O,x.count=0,x},p.prototype.text=function(x,A,N,_){var L={};return!_||!this.allowHTML&&this.forExport?(L.x=Math.round(A||0),N&&(L.y=Math.round(N)),a(x)&&(L.text=x),x=this.createElement("text").attr(L),(!_||this.forExport&&!this.allowHTML)&&(x.xSetter=function(O,j,Y){for(var X,G=Y.getElementsByTagName("tspan"),q=Y.getAttribute(j),Q=0;Q<G.length;Q++)(X=G[Q]).getAttribute(j)===q&&X.setAttribute(j,O);Y.setAttribute(j,O)}),x):this.html(x,A,N)},p.prototype.fontMetrics=function(x,A){return x=!this.styledMode&&/px/.test(x)||!S.getComputedStyle?x||A&&A.style&&A.style.fontSize||this.style&&this.style.fontSize:A&&$.prototype.getStyle.call(A,"font-size"),{h:A=24>(x=/px/.test(x)?T(x):12)?x+3:Math.round(1.2*x),b:Math.round(.8*A),f:x}},p.prototype.rotCorr=function(x,A,N){var _=x;return A&&N&&(_=Math.max(_*Math.cos(A*k),4)),{x:-x/3*Math.sin(A*k),y:_}},p.prototype.pathToSegments=function(x){for(var A=[],N=[],_={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},L=0;L<x.length;L++)n(N[0])&&e(x[L])&&N.length===_[N[0].toUpperCase()]&&x.splice(L,0,N[0].replace("M","L").replace("m","l")),typeof x[L]=="string"&&(N.length&&A.push(N.slice(0)),N.length=0),N.push(x[L]);return A.push(N.slice(0)),A},p.prototype.label=function(x,A,N,_,L,O,j,Y,X){return new Z(this,x,A,N,_,L,O,j,Y,X)},p.prototype.alignElements=function(){this.alignedObjects.forEach(function(x){return x.align()})},p}(),i(H.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:U,draw:d}),V.registerRendererType("svg",H,!0),H}),B(et,"Core/Renderer/HTML/HTMLElement.js",[et["Core/Globals.js"],et["Core/Renderer/SVG/SVGElement.js"],et["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var h=function(u,g){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,v){d.__proto__=v}||function(d,v){for(var w in v)v.hasOwnProperty(w)&&(d[w]=v[w])},h(u,g)};return function(u,g){function d(){this.constructor=u}h(u,g),u.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}}(),$=W.isFirefox,Z=W.isMS,U=W.isWebKit,z=W.win,I=H.css,E=H.defined,M=H.extend,k=H.pick,y=H.pInt;return function(h){function u(){return h!==null&&h.apply(this,arguments)||this}return V(u,h),u.compose=function(g){if(u.composedClasses.indexOf(g)===-1){u.composedClasses.push(g);var d=u.prototype,v=g.prototype;v.getSpanCorrection=d.getSpanCorrection,v.htmlCss=d.htmlCss,v.htmlGetBBox=d.htmlGetBBox,v.htmlUpdateTransform=d.htmlUpdateTransform,v.setSpanRotation=d.setSpanRotation}return g},u.prototype.getSpanCorrection=function(g,d,v){this.xCorr=-g*v,this.yCorr=-d},u.prototype.htmlCss=function(g){var d=this.element.tagName==="SPAN"&&g&&"width"in g,v=k(d&&g.width,void 0);if(d){delete g.width,this.textWidth=v;var w=!0}return g&&g.textOverflow==="ellipsis"&&(g.whiteSpace="nowrap",g.overflow="hidden"),this.styles=M(this.styles,g),I(this.element,g),w&&this.htmlUpdateTransform(),this},u.prototype.htmlGetBBox=function(){var g=this.element;return{x:g.offsetLeft,y:g.offsetTop,width:g.offsetWidth,height:g.offsetHeight}},u.prototype.htmlUpdateTransform=function(){if(this.added){var g=this.renderer,d=this.element,v=this.translateX||0,w=this.translateY||0,S=this.x||0,C=this.y||0,c=this.textAlign||"left",f={left:0,center:.5,right:1}[c],r=this.styles;if(r=r&&r.whiteSpace,I(d,{marginLeft:v,marginTop:w}),!g.styledMode&&this.shadows&&this.shadows.forEach(function(s){I(s,{marginLeft:v+1,marginTop:w+1})}),this.inverted&&[].forEach.call(d.childNodes,function(s){g.invertChild(s,d)}),d.tagName==="SPAN"){var a=this.rotation,t=this.textWidth&&y(this.textWidth),i=[a,c,d.innerHTML,this.textWidth,this.textAlign].join(),o=void 0;if(o=!1,t!==this.oldTextWidth){if(this.textPxLength)var e=this.textPxLength;else I(d,{width:"",whiteSpace:r||"nowrap"}),e=d.offsetWidth;(t>this.oldTextWidth||e>t)&&(/[ \-]/.test(d.textContent||d.innerText)||d.style.textOverflow==="ellipsis")&&(I(d,{width:e>t||a?t+"px":"auto",display:"block",whiteSpace:r||"normal"}),this.oldTextWidth=t,o=!0)}this.hasBoxWidthChanged=o,i!==this.cTT&&(o=g.fontMetrics(d.style.fontSize,d).b,!E(a)||a===(this.oldRotation||0)&&c===this.oldAlign||this.setSpanRotation(a,f,o),this.getSpanCorrection(!E(a)&&this.textPxLength||d.offsetWidth,o,f,a,c)),I(d,{left:S+(this.xCorr||0)+"px",top:C+(this.yCorr||0)+"px"}),this.cTT=i,this.oldRotation=a,this.oldAlign=c}}else this.alignOnAdd=!0},u.prototype.setSpanRotation=function(g,d,v){var w={},S=Z&&!/Edge/.test(z.navigator.userAgent)?"-ms-transform":U?"-webkit-transform":$?"MozTransform":z.opera?"-o-transform":void 0;S&&(w[S]=w.transform="rotate("+g+"deg)",w[S+($?"Origin":"-origin")]=w.transformOrigin=100*d+"% "+v+"px",I(this.element,w))},u.composedClasses=[],u}(R)}),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(W,R,H,V){var $=this&&this.__extends||function(){var E=function(M,k){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},E(M,k)};return function(M,k){function y(){this.constructor=M}E(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}}(),Z=V.attr,U=V.createElement,z=V.extend,I=V.pick;return function(E){function M(){return E!==null&&E.apply(this,arguments)||this}return $(M,E),M.compose=function(k){return M.composedClasses.indexOf(k)===-1&&(M.composedClasses.push(k),k.prototype.html=M.prototype.html),k},M.prototype.html=function(k,y,h){var u=this.createElement("span"),g=u.element,d=u.renderer,v=d.isSVG,w=function(S,C){["opacity","visibility"].forEach(function(c){S[c+"Setter"]=function(f,r,a){var t=S.div?S.div.style:C;R.prototype[c+"Setter"].call(this,f,r,a),t&&(t[r]=f)}}),S.addedSetters=!0};return u.textSetter=function(S){S!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,W.setElementHTML(this.element,I(S,"")),this.textStr=S,u.doTransform=!0)},v&&w(u,u.element.style),u.xSetter=u.ySetter=u.alignSetter=u.rotationSetter=function(S,C){C==="align"?u.alignValue=u.textAlign=S:u[C]=S,u.doTransform=!0},u.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},u.attr({text:k,x:Math.round(y),y:Math.round(h)}).css({position:"absolute"}),d.styledMode||u.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),g.style.whiteSpace="nowrap",u.css=u.htmlCss,v&&(u.add=function(S){var C=d.box.parentNode,c=[];if(this.parentGroup=S){var f=S.div;if(!f){for(;S;)c.push(S),S=S.parentGroup;c.reverse().forEach(function(r){function a(e,s){r[s]=e,s==="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||U("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;z(r,{classSetter:function(e){return function(s){this.element.setAttribute("class",s),e.className=s}}(f),on:function(){return c[0].div&&u.on.apply({element:c[0].div,onEvents:r.onEvents},arguments),r},translateXSetter:a,translateYSetter:a}),r.addedSetters||w(r)})}}else f=C;return f.appendChild(g),u.added=!0,u.alignOnAdd&&u.htmlUpdateTransform(),u}),u},M.composedClasses=[],M}(H)}),B(et,"Core/Axis/AxisDefaults.js",[],function(){var W;return function(R){R.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"},R.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},R.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},R.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},R.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},R.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(W||(W={})),W}),B(et,"Core/Foundation.js",[et["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.isFunction,$=W.objectEach,Z=W.removeEvent;return function(U){U.registerEventOptions=function(z,I){z.eventOptions=z.eventOptions||{},$(I.events,function(E,M){z.eventOptions[M]!==E&&(z.eventOptions[M]&&(Z(z,M,z.eventOptions[M]),delete z.eventOptions[M]),V(E)&&(z.eventOptions[M]=E,H(z,M,E)))})}}(R||(R={})),R}),B(et,"Core/Axis/Tick.js",[et["Core/FormatUtilities.js"],et["Core/Globals.js"],et["Core/Utilities.js"]],function(W,R,H){var V=R.deg2rad,$=H.clamp,Z=H.correctFloat,U=H.defined,z=H.destroyObjectProperties,I=H.extend,E=H.fireEvent,M=H.isNumber,k=H.merge,y=H.objectEach,h=H.pick;return R=function(){function u(g,d,v,w,S){this.isNewLabel=this.isNew=!0,this.axis=g,this.pos=d,this.type=v||"",this.parameters=S||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||w||this.addLabel()}return u.prototype.addLabel=function(){var g=this,d=g.axis,v=d.options,w=d.chart,S=d.categories,C=d.logarithmic,c=d.names,f=g.pos,r=h(g.options&&g.options.labels,v.labels),a=d.tickPositions,t=f===a[0],i=f===a[a.length-1],o=(!r.step||r.step===1)&&d.tickInterval===1;a=a.info;var e,s=g.label;if(S=this.parameters.category||(S?h(S[f],c[f],f):f),C&&M(S)&&(S=Z(C.lin2log(S))),d.dateTime)if(a)var n=w.time.resolveDTLFormat(v.dateTimeLabelFormats[!v.grid&&a.higherRanks[f]||a.unitName]),l=n.main;else M(S)&&(l=d.dateTime.getXDateFormat(S,v.dateTimeLabelFormats||{}));g.isFirst=t,g.isLast=i;var b={axis:d,chart:w,dateTimeLabelFormat:l,isFirst:t,isLast:i,pos:f,tick:g,tickPositionInfo:a,value:S};E(this,"labelFormat",b);var T=function(p){return r.formatter?r.formatter.call(p,p):r.format?(p.text=d.defaultLabelFormatter.call(p,p),W.format(r.format,p,w)):d.defaultLabelFormatter.call(p,p)};v=T.call(b,b);var D=n&&n.list;g.shortenLabel=D?function(){for(e=0;e<D.length;e++)if(I(b,{dateTimeLabelFormat:D[e]}),s.attr({text:T.call(b,b)}),s.getBBox().width<d.getSlotWidth(g)-2*r.padding)return;s.attr({text:""})}:void 0,o&&d._addedPlotLB&&g.moveLabel(v,r),U(s)||g.movedLabel?s&&s.textStr!==v&&!o&&(!s.textWidth||r.style.width||s.styles.width||s.css({width:null}),s.attr({text:v}),s.textPxLength=s.getBBox().width):(g.label=s=g.createLabel({x:0,y:0},v,r),g.rotation=0)},u.prototype.createLabel=function(g,d,v){var w=this.axis,S=w.chart;return(g=U(d)&&v.enabled?S.renderer.text(d,g.x,g.y,v.useHTML).add(w.labelGroup):null)&&(S.styledMode||g.css(k(v.style)),g.textPxLength=g.getBBox().width),g},u.prototype.destroy=function(){z(this,this.axis)},u.prototype.getPosition=function(g,d,v,w){var S=this.axis,C=S.chart,c=w&&C.oldChartHeight||C.chartHeight;return(g={x:g?Z(S.translate(d+v,void 0,void 0,w)+S.transB):S.left+S.offset+(S.opposite?(w&&C.oldChartWidth||C.chartWidth)-S.right-S.left:0),y:g?c-S.bottom+S.offset-(S.opposite?S.height:0):Z(c-S.translate(d+v,void 0,void 0,w)-S.transB)}).y=$(g.y,-1e5,1e5),E(this,"afterGetPosition",{pos:g}),g},u.prototype.getLabelPosition=function(g,d,v,w,S,C,c,f){var r=this.axis,a=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),s={};return v=r.side===0?v.rotation?-8:-v.getBBox().height:r.side===2?o.y+8:Math.cos(v.rotation*V)*(o.y-v.getBBox(!1,0).height/2),U(S.y)&&(v=r.side===0&&r.horiz?S.y+v:S.y),g=g+S.x+e+o.x-(C&&w?C*a*(t?-1:1):0),d=d+v-(C&&!w?C*a*(t?1:-1):0),i&&(w=c/(f||1)%i,r.opposite&&(w=i-w-1),d+=r.labelOffset/i*w),s.x=g,s.y=Math.round(d),E(this,"afterGetLabelPosition",{pos:s,tickmarkOffset:C,index:c}),s},u.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},u.prototype.getMarkPath=function(g,d,v,w,S,C){return C.crispLine([["M",g,d],["L",g+(S?0:-v),d+(S?v:0)]],w)},u.prototype.handleOverflow=function(g){var d=this.axis,v=d.options.labels,w=g.x,S=d.chart.chartWidth,C=d.chart.spacing,c=h(d.labelLeft,Math.min(d.pos,C[3]));C=h(d.labelRight,Math.max(d.isRadial?0:d.pos+d.len,S-C[1]));var f,r=this.label,a=this.rotation,t={left:0,center:.5,right:1}[d.labelAlign||r.attr("align")],i=r.getBBox().width,o=d.getSlotWidth(this),e={},s=o,n=1;a||v.overflow!=="justify"?0>a&&w-t*i<c?f=Math.round(w/Math.cos(a*V)-c):0<a&&w+t*i>C&&(f=Math.round((S-w)/Math.cos(a*V))):(S=w+(1-t)*i,w-t*i<c?s=g.x+s*(1-t)-c:S>C&&(s=C-g.x+s*t,n=-1),(s=Math.min(o,s))<o&&d.labelAlign==="center"&&(g.x+=n*(o-s-t*(o-Math.min(i,s)))),(i>s||d.autoRotation&&(r.styles||{}).width)&&(f=s)),f&&(this.shortenLabel?this.shortenLabel():(e.width=Math.floor(f)+"px",(v.style||{}).textOverflow||(e.textOverflow="ellipsis"),r.css(e)))},u.prototype.moveLabel=function(g,d){var v=this,w=v.label,S=v.axis,C=S.reversed,c=!1;if(w&&w.textStr===g?(v.movedLabel=w,c=!0,delete v.label):y(S.ticks,function(r){c||r.isNew||r===v||!r.label||r.label.textStr!==g||(v.movedLabel=r.label,c=!0,r.labelPos=v.movedLabel.xy,delete r.label)}),!c&&(v.labelPos||w)){var f=v.labelPos||w.xy;w=S.horiz?C?0:S.width+S.left:f.x,S=S.horiz?f.y:C?S.width+S.left:0,v.movedLabel=v.createLabel({x:w,y:S},g,d),v.movedLabel&&v.movedLabel.attr({opacity:0})}},u.prototype.render=function(g,d,v){var w=this.axis,S=w.horiz,C=this.pos,c=h(this.tickmarkOffset,w.tickmarkOffset);c=(C=this.getPosition(S,C,c,d)).x;var f=C.y;w=S&&c===w.pos+w.len||!S&&f===w.pos?-1:1,S=h(v,this.label&&this.label.newOpacity,1),v=h(v,1),this.isActive=!0,this.renderGridLine(d,v,w),this.renderMark(C,v,w),this.renderLabel(C,d,S,g),this.isNew=!1,E(this,"afterRender")},u.prototype.renderGridLine=function(g,d,v){var w=this.axis,S=w.options,C={},c=this.pos,f=this.type,r=h(this.tickmarkOffset,w.tickmarkOffset),a=w.chart.renderer,t=this.gridLine,i=S.gridLineWidth,o=S.gridLineColor,e=S.gridLineDashStyle;this.type==="minor"&&(i=S.minorGridLineWidth,o=S.minorGridLineColor,e=S.minorGridLineDashStyle),t||(w.chart.styledMode||(C.stroke=o,C["stroke-width"]=i||0,C.dashstyle=e),f||(C.zIndex=1),g&&(d=0),this.gridLine=t=a.path().attr(C).addClass("highcharts-"+(f?f+"-":"")+"grid-line").add(w.gridGroup)),t&&(v=w.getPlotLinePath({value:c+r,lineWidth:t.strokeWidth()*v,force:"pass",old:g,acrossPanes:!1}))&&t[g||this.isNew?"attr":"animate"]({d:v,opacity:d})},u.prototype.renderMark=function(g,d,v){var w=this.axis,S=w.options,C=w.chart.renderer,c=this.type,f=w.tickSize(c?c+"Tick":"tick"),r=g.x;g=g.y;var a=h(S[c!=="minor"?"tickWidth":"minorTickWidth"],!c&&w.isXAxis?1:0);S=S[c!=="minor"?"tickColor":"minorTickColor"];var t=this.mark,i=!t;f&&(w.opposite&&(f[0]=-f[0]),t||(this.mark=t=C.path().addClass("highcharts-"+(c?c+"-":"")+"tick").add(w.axisGroup),w.chart.styledMode||t.attr({stroke:S,"stroke-width":a})),t[i?"attr":"animate"]({d:this.getMarkPath(r,g,f[0],t.strokeWidth()*v,w.horiz,C),opacity:d}))},u.prototype.renderLabel=function(g,d,v,w){var S=this.axis,C=S.horiz,c=S.options,f=this.label,r=c.labels,a=r.step;S=h(this.tickmarkOffset,S.tickmarkOffset);var t=g.x;g=g.y;var i=!0;f&&M(t)&&(f.xy=g=this.getLabelPosition(t,g,f,C,r,S,w,a),this.isFirst&&!this.isLast&&!c.showFirstLabel||this.isLast&&!this.isFirst&&!c.showLastLabel?i=!1:!C||r.step||r.rotation||d||v===0||this.handleOverflow(g),a&&w%a&&(i=!1),i&&M(g.y)?(g.opacity=v,f[this.isNewLabel?"attr":"animate"](g).show(!0),this.isNewLabel=!1):(f.hide(),this.isNewLabel=!0))},u.prototype.replaceMovedLabel=function(){var g=this.label,d=this.axis,v=d.reversed;if(g&&!this.isNew){var w=d.horiz?v?d.left:d.width+d.left:g.xy.x;v=d.horiz?g.xy.y:v?d.width+d.top:d.top,g.animate({x:w,y:v,opacity:0},void 0,g.destroy),delete this.label}d.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},u}(),R}),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(W,R,H,V,$,Z,U,z){var I=W.animObject,E=V.defaultOptions,M=$.registerEventOptions,k=Z.deg2rad,y=z.arrayMax,h=z.arrayMin,u=z.clamp,g=z.correctFloat,d=z.defined,v=z.destroyObjectProperties,w=z.erase,S=z.error,C=z.extend,c=z.fireEvent,f=z.isArray,r=z.isNumber,a=z.isString,t=z.merge,i=z.normalizeTickInterval,o=z.objectEach,e=z.pick,s=z.relativeLength,n=z.removeEvent,l=z.splat,b=z.syncTimeout,T=function(D,p){return i(p,void 0,void 0,e(D.options.allowDecimals,.5>p||D.tickAmount!==void 0),!!D.tickAmount)};return W=function(){function D(p,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(p,x)}return D.prototype.init=function(p,x){var A=x.isX;this.chart=p,this.horiz=p.inverted&&!this.isZAxis?!A:A,this.isXAxis=A,this.coll=this.coll||(A?"xAxis":"yAxis"),c(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,_=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=d(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,l(p.options.tooltip.crosshairs)[A?0:1]),this.crosshair=x===!0?{}:x,p.axes.indexOf(this)===-1&&(A?p.axes.splice(p.xAxis.length,0,this):p.axes.push(this),p[this.coll].push(this)),this.series=this.series||[],p.inverted&&!this.isZAxis&&A&&this.reversed===void 0&&(this.reversed=!0),this.labelRotation=r(_.rotation)?_.rotation:void 0,M(this,N),c(this,"afterInit")},D.prototype.setOptions=function(p){this.options=t(R.defaultXAxisOptions,this.coll==="yAxis"&&R.defaultYAxisOptions,[R.defaultTopAxisOptions,R.defaultRightAxisOptions,R.defaultBottomAxisOptions,R.defaultLeftAxisOptions][this.side],t(E[this.coll],p)),c(this,"afterSetOptions",{userOptions:p})},D.prototype.defaultLabelFormatter=function(p){var x=this.axis;p=this.chart.numberFormatter;var A=r(this.value)?this.value:NaN,N=x.chart.time,_=this.dateTimeLabelFormat,L=E.lang,O=L.numericSymbols;L=L.numericSymbolMagnitude||1e3;var j=x.logarithmic?Math.abs(A):x.tickInterval,Y=O&&O.length;if(x.categories)var X="".concat(this.value);else if(_)X=N.dateFormat(_,A);else if(Y&&1e3<=j)for(;Y--&&X===void 0;)j>=(x=Math.pow(L,Y+1))&&10*A%x==0&&O[Y]!==null&&A!==0&&(X=p(A/x,-1)+O[Y]);return X===void 0&&(X=1e4<=Math.abs(A)?p(A,-1):p(A,-1,void 0,"")),X},D.prototype.getSeriesExtremes=function(){var p,x=this,A=x.chart;c(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||!A.options.chart.ignoreHiddenSeries){var _=N.options,L=_.threshold;if(x.hasVisibleSeries=!0,x.positiveValuesOnly&&0>=L&&(L=null),x.isXAxis){if((_=N.xData).length){_=x.logarithmic?_.filter(x.validatePositiveValue):_;var O=(p=N.getXExtremes(_)).min,j=p.max;r(O)||O instanceof Date||(_=_.filter(r),O=(p=N.getXExtremes(_)).min,j=p.max),_.length&&(x.dataMin=Math.min(e(x.dataMin,O),O),x.dataMax=Math.max(e(x.dataMax,j),j))}}else N=N.applyExtremes(),r(N.dataMin)&&(O=N.dataMin,x.dataMin=Math.min(e(x.dataMin,O),O)),r(N.dataMax)&&(j=N.dataMax,x.dataMax=Math.max(e(x.dataMax,j),j)),d(L)&&(x.threshold=L),(!_.softThreshold||x.positiveValuesOnly)&&(x.softThreshold=!1)}})}),c(this,"afterGetSeriesExtremes")},D.prototype.translate=function(p,x,A,N,_,L){var O=this.linkedParent||this,j=N&&O.old?O.old.min:O.min;if(!r(j))return NaN;var Y=O.minPixelPadding;_=(O.isOrdinal||O.brokenAxis&&O.brokenAxis.hasBreaks||O.logarithmic&&_)&&O.lin2val;var X=1,G=0;return(N=N&&O.old?O.old.transA:O.transA)||(N=O.transA),A&&(X*=-1,G=O.len),O.reversed&&(G-=(X*=-1)*(O.sector||O.len)),x?(L=(p*X+G-Y)/N+j,_&&(L=O.lin2val(L))):(_&&(p=O.val2lin(p)),p=X*(p-j)*N,L=(O.isRadial?p:g(p))+G+X*Y+(r(L)?N*L:0)),L},D.prototype.toPixels=function(p,x){return this.translate(p,!1,!this.horiz,void 0,!0)+(x?0:this.pos)},D.prototype.toValue=function(p,x){return this.translate(p-(x?0:this.pos),!0,!this.horiz,void 0,!0)},D.prototype.getPlotLinePath=function(p){function x(yt,ht,it){return bt!=="pass"&&(yt<ht||yt>it)&&(bt?yt=u(yt,ht,it):O=!0),yt}var A,N,_,L,O,j=this,Y=j.chart,X=j.left,G=j.top,q=p.old,Q=p.value,J=p.lineWidth,rt=q&&Y.oldChartHeight||Y.chartHeight,lt=q&&Y.oldChartWidth||Y.chartWidth,gt=j.transB,mt=p.translatedValue,bt=p.force;return p={value:Q,lineWidth:J,old:q,force:bt,acrossPanes:p.acrossPanes,translatedValue:mt},c(this,"getPlotLinePath",p,function(yt){mt=e(mt,j.translate(Q,void 0,void 0,q)),mt=u(mt,-1e5,1e5),A=_=Math.round(mt+gt),N=L=Math.round(rt-mt-gt),r(mt)?j.horiz?(N=G,L=rt-j.bottom,A=_=x(A,X,X+j.width)):(A=X,_=lt-j.right,N=L=x(N,G,G+j.height)):(O=!0,bt=!1),yt.path=O&&!bt?null:Y.renderer.crispLine([["M",A,N],["L",_,L]],J||1)}),p.path},D.prototype.getLinearTickPositions=function(p,x,A){var N=g(Math.floor(x/p)*p);A=g(Math.ceil(A/p)*p);var _,L=[];if(g(N+p)===N&&(_=20),this.single)return[x];for(x=N;x<=A&&(L.push(x),(x=g(x+p,_))!==O);)var O=x;return L},D.prototype.getMinorTickInterval=function(){var p=this.options;return p.minorTicks===!0?e(p.minorTickInterval,"auto"):p.minorTicks===!1?null:p.minorTickInterval},D.prototype.getMinorTickPositions=function(){var p=this.options,x=this.tickPositions,A=this.minorTickInterval,N=this.pointRangePadding||0,_=this.min-N,L=(N=this.max+N)-_,O=[];if(L&&L/A<this.len/3){var j=this.logarithmic;if(j)this.paddedTicks.forEach(function(Y,X,G){X&&O.push.apply(O,j.getLogTickPositions(A,G[X-1],G[X],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")O=O.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(A),_,N,p.startOfWeek));else for(p=_+(x[0]-_)%A;p<=N&&p!==O[0];p+=A)O.push(p)}return O.length!==0&&this.trimTicks(O),O},D.prototype.adjustForMinRange=function(){var p,x,A,N,_=this.options,L=this.logarithmic,O=this.min,j=this.max,Y=0;if(this.isXAxis&&this.minRange===void 0&&!L&&(d(_.min)||d(_.max)||d(_.floor)||d(_.ceiling)?this.minRange=null:(this.series.forEach(function(Q){if(A=Q.xData,N=Q.xIncrement?1:A.length-1,1<A.length)for(p=N;0<p;p--)x=A[p]-A[p-1],(!Y||x<Y)&&(Y=x)}),this.minRange=Math.min(5*Y,this.dataMax-this.dataMin))),j-O<this.minRange){var X=this.dataMax-this.dataMin>=this.minRange,G=this.minRange,q=(G-j+O)/2;q=[O-q,e(_.min,O-q)],X&&(q[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),j=[(O=y(q))+G,e(_.max,O+G)],X&&(j[2]=L?L.log2lin(this.dataMax):this.dataMax),(j=h(j))-O<G&&(q[0]=j-G,q[1]=e(_.min,j-G),O=y(q))}this.min=O,this.max=j},D.prototype.getClosest=function(){var p;return this.categories?p=1:this.series.forEach(function(x){var A=x.closestPointRange,N=x.visible||!x.chart.options.chart.ignoreHiddenSeries;!x.noSharedTooltip&&d(A)&&N&&(p=d(p)?Math.min(p,A):A)}),p},D.prototype.nameToX=function(p){var x=f(this.options.categories),A=x?this.categories:this.names,N=p.options.x;if(p.series.requireSorting=!1,d(N)||(N=this.options.uniqueNames&&A?x?A.indexOf(p.name):e(A.keys[p.name],-1):p.series.autoIncrement()),N===-1){if(!x&&A)var _=A.length}else _=N;return _!==void 0?(this.names[_]=p.name,this.names.keys[p.name]=_):p.x&&(_=p.x),_},D.prototype.updateNames=function(){var p=this,x=this.names;0<x.length&&(Object.keys(x.keys).forEach(function(A){delete x.keys[A]}),x.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(A){A.xIncrement=null,A.points&&!A.isDirtyData||(p.max=Math.max(p.max,A.xData.length-1),A.processData(),A.generatePoints()),A.data.forEach(function(N,_){if(N&&N.options&&N.name!==void 0){var L=p.nameToX(N);L!==void 0&&L!==N.x&&(N.x=L,A.xData[_]=L)}})}))},D.prototype.setAxisTranslation=function(){var p=this,x=p.max-p.min,A=p.linkedParent,N=!!p.categories,_=p.isXAxis,L=p.axisPointRange||0,O=0,j=0,Y=p.transA;if(_||N||L){var X=p.getClosest();A?(O=A.minPointOffset,j=A.pointRangePadding):p.series.forEach(function(G){var q=N?1:_?e(G.options.pointRange,X,0):p.axisPointRange||0,Q=G.options.pointPlacement;L=Math.max(L,q),p.single&&!N||(G=G.is("xrange")?!_:_,O=Math.max(O,G&&a(Q)?0:q/2),j=Math.max(j,G&&Q==="on"?0:q))}),A=p.ordinal&&p.ordinal.slope&&X?p.ordinal.slope/X:1,p.minPointOffset=O*=A,p.pointRangePadding=j*=A,p.pointRange=Math.min(L,p.single&&N?1:x),_&&(p.closestPointRange=X)}p.translationSlope=p.transA=Y=p.staticScale||p.len/(x+j||1),p.transB=p.horiz?p.left:p.bottom,p.minPixelPadding=Y*O,c(this,"afterSetAxisTranslation")},D.prototype.minFromRange=function(){return this.max-this.range},D.prototype.setTickInterval=function(p){var x=this.chart,A=this.logarithmic,N=this.options,_=this.isXAxis,L=this.isLinked,O=N.tickPixelInterval,j=this.categories,Y=this.softThreshold,X=N.maxPadding,G=N.minPadding,q=r(N.tickInterval)&&0<=N.tickInterval?N.tickInterval:void 0,Q=r(this.threshold)?this.threshold:null;this.dateTime||j||L||this.getTickAmount();var J=e(this.userMin,N.min),rt=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&&S(11,1,x)}else{if(Y&&d(Q)){if(this.dataMin>=Q)lt=Q,G=0;else if(this.dataMax<=Q){var gt=Q;X=0}}this.min=e(J,lt,this.dataMin),this.max=e(rt,gt,this.dataMax)}if(A&&(this.positiveValuesOnly&&!p&&0>=Math.min(this.min,e(this.dataMin,this.min))&&S(10,1,x),this.min=g(A.log2lin(this.min),16),this.max=g(A.log2lin(this.max),16)),this.range&&d(this.max)&&(this.userMin=this.min=J=Math.max(this.dataMin,this.minFromRange()),this.userMax=rt=this.max,this.range=null),c(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(j||this.axisPointRange||this.stacking&&this.stacking.usePercentage||L)&&d(this.min)&&d(this.max)&&(x=this.max-this.min)&&(!d(J)&&G&&(this.min-=x*G),!d(rt)&&X&&(this.max+=x*X)),r(this.userMin)||(r(N.softMin)&&N.softMin<this.min&&(this.min=J=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=rt=N.softMax),r(N.ceiling)&&(this.max=Math.min(this.max,N.ceiling))),Y&&d(this.dataMin)&&(Q=Q||0,!d(J)&&this.min<Q&&this.dataMin>=Q?this.min=this.options.minRange?Math.min(Q,this.max-this.minRange):Q:!d(rt)&&this.max>Q&&this.dataMax<=Q&&(this.max=this.options.minRange?Math.max(Q,this.min+this.minRange):Q)),r(this.min)&&r(this.max)&&!this.chart.polar&&this.min>this.max&&(d(this.options.min)?this.max=this.min:d(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&&O===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)*O/Math.max(this.len,O)),_&&!p){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)}),c(this,"postProcessData",{hasExtremesChanged:mt})}this.setAxisTranslation(),c(this,"initialAxisTranslation"),this.pointRange&&!q&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),p=e(N.minTickInterval,this.dateTime&&!this.series.some(function(bt){return bt.noSharedTooltip})?this.closestPointRange:0),!q&&this.tickInterval<p&&(this.tickInterval=p),this.dateTime||this.logarithmic||q||(this.tickInterval=T(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},D.prototype.setTickPositions=function(){var p,x=this.options,A=x.tickPositions,N=x.tickPositioner,_=this.getMinorTickInterval(),L=this.hasVerticalPanning(),O=this.coll==="colorAxis",j=(O||!L)&&x.startOnTick;if(L=(O||!L)&&x.endOnTick,O=[],this.tickmarkOffset=this.categories&&x.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=_==="auto"&&this.tickInterval?this.tickInterval/5:_,this.single=this.min===this.max&&d(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||x.allowDecimals!==!1),A)O=A.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)O=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)O=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(_=x=this.tickInterval;_<=2*x&&(O=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&O.length>this.tickAmount);)this.tickInterval=T(this,_*=1.1);else O=[this.min,this.max],S(19,!1,this.chart);O.length>this.len&&(O=[O[0],O[O.length-1]])[0]===O[1]&&(O.length=1),N&&(this.tickPositions=O,(p=N.apply(this,[this.min,this.max]))&&(O=p))}this.tickPositions=O,this.paddedTicks=O.slice(0),this.trimTicks(O,j,L),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&2>O.length&&!this.categories&&!this.series.some(function(Y){return Y.is("heatmap")&&Y.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),A||p||this.adjustTickAmount()),c(this,"afterSetTickPositions")},D.prototype.trimTicks=function(p,x,A){var N=p[0],_=p[p.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(c(this,"trimTicks"),!this.isLinked){if(x&&N!==-1/0)this.min=N;else for(;this.min-L>p[0];)p.shift();if(A)this.max=_;else for(;this.max+L<p[p.length-1];)p.pop();p.length===0&&d(N)&&!this.options.tickPositions&&p.push((_+N)/2)}},D.prototype.alignToOthers=function(){var p,x=this,A=[this],N=x.options,_=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(x.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||_)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!x.logarithmic){var O=function(X){var G=X.options;return[X.horiz?G.left:G.top,G.width,G.height,G.pane].join()},j=O(this);this.chart[this.coll].forEach(function(X){var G=X.series;G.length&&G.some(function(q){return q.visible})&&X!==x&&O(X)===j&&(p=!0,A.push(X))})}if(p&&_){A.forEach(function(X){X=X.getThresholdAlignment(x),r(X)&&L.push(X)});var Y=1<L.length?L.reduce(function(X,G){return X+G},0)/L.length:void 0;A.forEach(function(X){X.thresholdAlignment=Y})}return p},D.prototype.getThresholdAlignment=function(p){if((!r(this.dataMin)||this!==p&&this.series.some(function(x){return x.isDirty||x.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold))return p=u((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(p=1-p),p},D.prototype.getTickAmount=function(){var p=this.options,x=p.tickPixelInterval,A=p.tickAmount;!d(p.tickInterval)&&!A&&this.len<x&&!this.isRadial&&!this.logarithmic&&p.startOnTick&&p.endOnTick&&(A=2),!A&&this.alignToOthers()&&(A=Math.ceil(this.len/x)+1),4>A&&(this.finalTickAmt=A,A=5),this.tickAmount=A},D.prototype.adjustTickAmount=function(){var p=this,x=p.finalTickAmt,A=p.max,N=p.min,_=p.options,L=p.tickPositions,O=p.tickAmount,j=p.thresholdAlignment,Y=L&&L.length,X=e(p.threshold,p.softThreshold?0:null),G=p.tickInterval;if(r(j)){var q=.5>j?Math.ceil(j*(O-1)):Math.floor(j*(O-1));_.reversed&&(q=O-1-q)}if(p.hasData()&&r(N)&&r(A)){if(j=function(){p.transA*=(Y-1)/(O-1),p.min=_.startOnTick?L[0]:Math.min(N,L[0]),p.max=_.endOnTick?L[L.length-1]:Math.max(A,L[L.length-1])},r(q)&&r(p.threshold)){for(;L[q]!==X||L.length!==O||L[0]>N||L[L.length-1]<A;){for(L.length=0,L.push(p.threshold);L.length<O;)L[q]===void 0||L[q]>p.threshold?L.unshift(g(L[0]-G)):L.push(g(L[L.length-1]+G));if(G>8*p.tickInterval)break;G*=2}j()}else if(Y<O){for(;L.length<O;)L.length%2||N===X?L.push(g(L[L.length-1]+G)):L.unshift(g(L[0]-G));j()}if(d(x)){for(G=X=L.length;G--;)(x===3&&G%2==1||2>=x&&0<G&&G<X-1)&&L.splice(G,1);p.finalTickAmt=void 0}}},D.prototype.setScale=function(){var p=!1,x=!1;this.series.forEach(function(N){p=p||N.isDirtyData||N.isDirty,x=x||N.xAxis&&N.xAxis.isDirty||!1}),this.setAxisSize();var A=this.len!==(this.old&&this.old.len);A||p||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=A||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),p&&this.panningState&&(this.panningState.isDirty=!0),c(this,"afterSetScale")},D.prototype.setExtremes=function(p,x,A,N,_){var L=this,O=L.chart;A=e(A,!0),L.series.forEach(function(j){delete j.kdTree}),_=C(_,{min:p,max:x}),c(L,"setExtremes",_,function(){L.userMin=p,L.userMax=x,L.eventArgs=_,A&&O.redraw(N)})},D.prototype.zoom=function(p,x){var A=this,N=this.dataMin,_=this.dataMax,L=this.options,O=Math.min(N,e(L.min,N)),j=Math.max(_,e(L.max,_));return c(this,"zoom",p={newMin:p,newMax:x},function(Y){var X=Y.newMin,G=Y.newMax;X===A.min&&G===A.max||(A.allowZoomOutside||(d(N)&&(X<O&&(X=O),X>j&&(X=j)),d(_)&&(G<O&&(G=O),G>j&&(G=j))),A.displayBtn=X!==void 0||G!==void 0,A.setExtremes(X,G,!1,void 0,{trigger:"zoom"})),Y.zoomed=!0}),p.zoomed},D.prototype.setAxisSize=function(){var p=this.chart,x=this.options,A=x.offsets||[0,0,0,0],N=this.horiz,_=this.width=Math.round(s(e(x.width,p.plotWidth-A[3]+A[1]),p.plotWidth)),L=this.height=Math.round(s(e(x.height,p.plotHeight-A[0]+A[2]),p.plotHeight)),O=this.top=Math.round(s(e(x.top,p.plotTop+A[0]),p.plotHeight,p.plotTop));x=this.left=Math.round(s(e(x.left,p.plotLeft+A[3]),p.plotWidth,p.plotLeft)),this.bottom=p.chartHeight-L-O,this.right=p.chartWidth-_-x,this.len=Math.max(N?_:L,0),this.pos=N?x:O},D.prototype.getExtremes=function(){var p=this.logarithmic;return{min:p?g(p.lin2log(this.min)):this.min,max:p?g(p.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},D.prototype.getThreshold=function(p){var x=this.logarithmic,A=x?x.lin2log(this.min):this.min;return x=x?x.lin2log(this.max):this.max,p===null||p===-1/0?p=A:p===1/0?p=x:A>p?p=A:x<p&&(p=x),this.translate(p,0,1,0,1)},D.prototype.autoLabelAlign=function(p){var x=(e(p,0)-90*this.side+720)%360;return c(this,"autoLabelAlign",p={align:"center"},function(A){15<x&&165>x?A.align="right":195<x&&345>x&&(A.align="left")}),p.align},D.prototype.tickSize=function(p){var x=this.options,A=e(x[p==="tick"?"tickWidth":"minorTickWidth"],p==="tick"&&this.isXAxis&&!this.categories?1:0),N=x[p==="tick"?"tickLength":"minorTickLength"];if(A&&N){x[p+"Position"]==="inside"&&(N=-N);var _=[N,A]}return c(this,"afterTickSize",p={tickSize:_}),p.tickSize},D.prototype.labelMetrics=function(){var p=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[p]&&this.ticks[p].label)},D.prototype.unsquish=function(){var p=this.options.labels,x=this.horiz,A=this.tickInterval,N=this.len/(((this.categories?1:0)+this.max-this.min)/A),_=p.rotation,L=this.labelMetrics(),O=Math.max(this.max-this.min,0),j=function(gt){var mt=gt/(N||1);return(mt=1<mt?Math.ceil(mt):1)*A>O&>!==1/0&&N!==1/0&&O&&(mt=Math.ceil(O/A)),g(mt*A)},Y=A,X=Number.MAX_VALUE;if(x){if(!p.staggerLines)if(r(_))var G=[_];else N<p.autoRotationLimit&&(G=p.autoRotation);if(G)for(var q=x=void 0,Q=0,J=G;Q<J.length;Q++){var rt=J[Q];if((rt===_||rt&&-90<=rt&&90>=rt)&&(q=(x=j(Math.abs(L.h/Math.sin(k*rt))))+Math.abs(rt/360))<X){X=q;var lt=rt;Y=x}}}else Y=j(L.h);return this.autoRotation=G,this.labelRotation=e(lt,r(_)?_:0),p.step?A:Y},D.prototype.getSlotWidth=function(p){var x=this.chart,A=this.horiz,N=this.options.labels,_=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=x.margin[3];if(p&&r(p.slotWidth))return p.slotWidth;if(A&&2>N.step)return N.rotation?0:(this.staggerLines||1)*this.len/_;if(!A){if((p=N.style.width)!==void 0)return parseInt(String(p),10);if(L)return L-x.spacing[3]}return .33*x.chartWidth},D.prototype.renderUnsquish=function(){var p=this.chart,x=p.renderer,A=this.tickPositions,N=this.ticks,_=this.options.labels,L=_.style,O=this.horiz,j=this.getSlotWidth(),Y=Math.max(1,Math.round(j-2*_.padding)),X={},G=this.labelMetrics(),q=L.textOverflow,Q=0;if(a(_.rotation)||(X.rotation=_.rotation||0),A.forEach(function(gt){(gt=N[gt]).movedLabel&>.replaceMovedLabel(),gt&>.label&>.label.textPxLength>Q&&(Q=gt.label.textPxLength)}),this.maxLabelLength=Q,this.autoRotation)Q>Y&&Q>G.h?X.rotation=this.labelRotation:this.labelRotation=0;else if(j){var J=Y;if(!q){var rt="clip";for(Y=A.length;!O&&Y--;){var lt=A[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/A.length-(G.h-G.f)&&(lt.specificTextOverflow="ellipsis"))}}}X.rotation&&(J=Q>.5*p.chartHeight?.33*p.chartHeight:Q,q||(rt="ellipsis")),(this.labelAlign=_.align||this.autoLabelAlign(this.labelRotation))&&(X.align=this.labelAlign),A.forEach(function(gt){var mt=(gt=N[gt])&>.label,bt=L.width,yt={};mt&&(mt.attr(X),gt.shortenLabel?gt.shortenLabel():J&&!bt&&L.whiteSpace!=="nowrap"&&(J<mt.textPxLength||mt.element.tagName==="SPAN")?(yt.width=J+"px",q||(yt.textOverflow=mt.specificTextOverflow||rt),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(G.b,this.labelRotation||0,this.side!==0)},D.prototype.hasData=function(){return this.series.some(function(p){return p.hasData()})||this.options.showEmpty&&d(this.min)&&d(this.max)},D.prototype.addTitle=function(p){var x,A=this.chart.renderer,N=this.horiz,_=this.opposite,L=this.options.title,O=this.chart.styledMode;this.axisTitle||((x=L.textAlign)||(x=(N?{low:"left",middle:"center",high:"right"}:{low:_?"right":"left",middle:"center",high:_?"left":"right"})[L.align]),this.axisTitle=A.text(L.text||"",0,0,L.useHTML).attr({zIndex:7,rotation:L.rotation,align:x}).addClass("highcharts-axis-title"),O||this.axisTitle.css(t(L.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),O||L.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[p?"show":"hide"](p)},D.prototype.generateTick=function(p){var x=this.ticks;x[p]?x[p].addLabel():x[p]=new U(this,p)},D.prototype.getOffset=function(){var p=this,x=this,A=x.chart,N=x.horiz,_=x.options,L=x.side,O=x.ticks,j=x.tickPositions,Y=x.coll,X=x.axisParent,G=A.renderer,q=A.inverted&&!x.isZAxis?[1,0,3,2][L]:L,Q=x.hasData(),J=_.title,rt=_.labels,lt=A.axisOffset;A=A.clipOffset;var gt,mt=[-1,1,1,-1][L],bt=_.className,yt=0,ht=0,it=0;if(x.showAxis=gt=Q||_.showEmpty,x.staggerLines=x.horiz&&rt.staggerLines||void 0,!x.axisGroup){var st=function(vt,Ct,xt){return G.g(vt).attr({zIndex:xt}).addClass("highcharts-".concat(Y.toLowerCase()).concat(Ct," ")+(p.isRadial?"highcharts-radial-axis".concat(Ct," "):"")+(bt||"")).add(X)};x.gridGroup=st("grid","-grid",_.gridZIndex),x.axisGroup=st("axis","",_.zIndex),x.labelGroup=st("axis-labels","-labels",rt.zIndex)}if(Q||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(rt.reserveSpace,x.labelAlign==="center"||null,x.reserveSpaceDefault)&&j.forEach(function(vt){it=Math.max(O[vt].getLabelSize(),it)}),x.staggerLines&&(it*=x.staggerLines),x.labelOffset=it*(x.opposite?-1:1)):o(O,function(vt,Ct){vt.destroy(),delete O[Ct]}),J&&J.text&&J.enabled!==!1&&(x.addTitle(gt),gt&&J.reserveSpace!==!1)){x.titleOffset=yt=x.axisTitle.getBBox()[N?"height":"width"];var dt=J.offset;ht=d(dt)?0:e(J.margin,N?5:10)}x.renderLine(),x.offset=mt*e(_.offset,lt[L]?lt[L]+(_.margin||0):0),x.tickRotCorr=x.tickRotCorr||{x:0,y:0},J=L===0?-x.labelMetrics().h:L===2?x.tickRotCorr.y:0,Q=Math.abs(it)+ht,it&&(Q=Q-J+mt*(N?e(rt.y,x.tickRotCorr.y+8*mt):rt.x)),x.axisTitleMargin=e(dt,Q),x.getMaxLabelDimensions&&(x.maxLabelDimensions=x.getMaxLabelDimensions(O,j)),Y!=="colorAxis"&&(N=this.tickSize("tick"),lt[L]=Math.max(lt[L],(x.axisTitleMargin||0)+yt+mt*x.offset,Q,j&&j.length&&N?N[0]+mt*x.offset:0),_=!x.axisLine||_.offset?0:2*Math.floor(x.axisLine.strokeWidth()/2),A[q]=Math.max(A[q],_)),c(this,"afterGetOffset")},D.prototype.getLinePath=function(p){var x=this.chart,A=this.opposite,N=this.offset,_=this.horiz,L=this.left+(A?this.width:0)+N;return N=x.chartHeight-this.bottom-(A?this.height:0)+N,A&&(p*=-1),x.renderer.crispLine([["M",_?this.left:L,_?N:this.top],["L",_?x.chartWidth-this.right:L,_?N:x.chartHeight-this.bottom]],p)},D.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}))},D.prototype.getTitlePosition=function(){var p=this.horiz,x=this.left,A=this.top,N=this.len,_=this.options.title,L=p?x:A,O=this.opposite,j=this.offset,Y=_.x,X=_.y,G=this.axisTitle,q=this.chart.renderer.fontMetrics(_.style.fontSize,G);return G=G?Math.max(G.getBBox(!1,0).height-q.h-1,0):0,N={low:L+(p?0:N),middle:L+N/2,high:L+(p?N:0)}[_.align],x=(p?A+this.height:x)+(p?1:-1)*(O?-1:1)*(this.axisTitleMargin||0)+[-G,G,q.f,-G][this.side],p={x:p?N+Y:x+(O?this.width:0)+j+Y,y:p?x+X-(O?this.height:0)+j:N+X},c(this,"afterGetTitlePosition",{titlePosition:p}),p},D.prototype.renderMinorTick=function(p,x){var A=this.minorTicks;A[p]||(A[p]=new U(this,p,"minor")),x&&A[p].isNew&&A[p].render(null,!0),A[p].render(null,!1,1)},D.prototype.renderTick=function(p,x,A){var N=this.ticks;(!this.isLinked||p>=this.min&&p<=this.max||this.grid&&this.grid.isColumn)&&(N[p]||(N[p]=new U(this,p)),A&&N[p].isNew&&N[p].render(x,!0,-1),N[p].render(x))},D.prototype.render=function(){var p,x,A=this,N=A.chart,_=A.logarithmic,L=A.options,O=A.isLinked,j=A.tickPositions,Y=A.axisTitle,X=A.ticks,G=A.minorTicks,q=A.alternateBands,Q=L.stackLabels,J=L.alternateGridColor,rt=A.tickmarkOffset,lt=A.axisLine,gt=A.showAxis,mt=I(N.renderer.globalAnimation);if(A.labelEdge.length=0,A.overlap=!1,[X,G,q].forEach(function(yt){o(yt,function(ht){ht.isActive=!1})}),A.hasData()||O){var bt=A.chart.hasRendered&&A.old&&r(A.old.min);A.minorTickInterval&&!A.categories&&A.getMinorTickPositions().forEach(function(yt){A.renderMinorTick(yt,bt)}),j.length&&(j.forEach(function(yt,ht){A.renderTick(yt,ht,bt)}),rt&&(A.min===0||A.single)&&(X[-1]||(X[-1]=new U(A,-1,null,!0)),X[-1].render(-1))),J&&j.forEach(function(yt,ht){x=j[ht+1]!==void 0?j[ht+1]+rt:A.max-rt,ht%2==0&&yt<A.max&&x<=A.max+(N.polar?-rt:rt)&&(q[yt]||(q[yt]=new Z.PlotLineOrBand(A)),p=yt+rt,q[yt].options={from:_?_.lin2log(p):p,to:_?_.lin2log(x):x,color:J,className:"highcharts-alternate-grid"},q[yt].render(),q[yt].isActive=!0)}),A._addedPlotLB||(A._addedPlotLB=!0,(L.plotLines||[]).concat(L.plotBands||[]).forEach(function(yt){A.addPlotBandOrLine(yt)}))}[X,G,q].forEach(function(yt){var ht=[],it=mt.duration;o(yt,function(st,dt){st.isActive||(st.render(dt,!1,0),st.isActive=!1,ht.push(dt))}),b(function(){for(var st=ht.length;st--;)yt[ht[st]]&&!yt[ht[st]].isActive&&(yt[ht[st]].destroy(),delete yt[ht[st]])},yt!==q&&N.hasRendered&&it?it:0)}),lt&&(lt[lt.isPlaced?"animate":"attr"]({d:this.getLinePath(lt.strokeWidth())}),lt.isPlaced=!0,lt[gt?"show":"hide"](gt)),Y&>&&(L=A.getTitlePosition(),Y[Y.isNew?"attr":"animate"](L),Y.isNew=!1),Q&&Q.enabled&&A.stacking&&A.stacking.renderStackTotals(),A.old={len:A.len,max:A.max,min:A.min,transA:A.transA,userMax:A.userMax,userMin:A.userMin},A.isDirty=!1,c(this,"afterRender")},D.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(p){p.render()})),this.series.forEach(function(p){p.isDirty=!0})},D.prototype.getKeepProps=function(){return this.keepProps||D.keepProps},D.prototype.destroy=function(p){var x=this,A=x.plotLinesAndBands,N=this.eventOptions;if(c(this,"destroy",{keepEvents:p}),p||n(x),[x.ticks,x.minorTicks,x.alternateBands].forEach(function(L){v(L)}),A)for(p=A.length;p--;)A[p].destroy();for(var _ in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(L){x[L]&&(x[L]=x[L].destroy())}),x.plotLinesAndBandsGroups)x.plotLinesAndBandsGroups[_]=x.plotLinesAndBandsGroups[_].destroy();o(x,function(L,O){x.getKeepProps().indexOf(O)===-1&&delete x[O]}),this.eventOptions=N},D.prototype.drawCrosshair=function(p,x){var A,N=this.crosshair,_=e(N&&N.snap,!0),L=this.chart,O=this.cross;if(c(this,"drawCrosshair",{e:p,point:x}),p||(p=this.cross&&this.cross.e),N&&(d(x)||!_)!==!1){if(_?d(x)&&(A=e(this.coll!=="colorAxis"?x.crosshairPos:null,this.isXAxis?x.plotX:this.len-x.plotY)):A=p&&(this.horiz?p.chartX-this.pos:this.len-p.chartY+this.pos),d(A)){var j={value:x&&(this.isXAxis?x.x:e(x.stackY,x.y)),translatedValue:A};L.polar&&C(j,{isCrosshair:!0,chartX:p&&p.chartX,chartY:p&&p.chartY,point:x}),j=this.getPlotLinePath(j)||null}if(!d(j))return void this.hideCrosshair();_=this.categories&&!this.isRadial,O||(this.cross=O=L.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(_?"category ":"thin ")+(N.className||"")).attr({zIndex:e(N.zIndex,2)}).add(),L.styledMode||(O.attr({stroke:N.color||(_?H.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(N.width,1)}).css({"pointer-events":"none"}),N.dashStyle&&O.attr({dashstyle:N.dashStyle}))),O.show().attr({d:j}),_&&!N.width&&O.attr({"stroke-width":this.transA}),this.cross.e=p}else this.hideCrosshair();c(this,"afterDrawCrosshair",{e:p,point:x})},D.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),c(this,"afterHideCrosshair")},D.prototype.hasVerticalPanning=function(){var p=this.chart.options.chart.panning;return!!(p&&p.enabled&&/y/.test(p.type))},D.prototype.validatePositiveValue=function(p){return r(p)&&0<p},D.prototype.update=function(p,x){var A=this.chart;p=t(this.userOptions,p),this.destroy(!0),this.init(A,p),A.isDirtyBox=!0,e(x,!0)&&A.redraw()},D.prototype.remove=function(p){for(var x=this.chart,A=this.coll,N=this.series,_=N.length;_--;)N[_]&&N[_].remove(!1);w(x.axes,this),w(x[A],this),x[A].forEach(function(L,O){L.options.index=L.userOptions.index=O}),this.destroy(),x.isDirtyBox=!0,e(p,!0)&&x.redraw()},D.prototype.setTitle=function(p,x){this.update({title:p},x)},D.prototype.setCategories=function(p,x){this.update({categories:p},x)},D.defaultOptions=R.defaultXAxisOptions,D.keepProps="extKey hcEvents names series userMax userMin".split(" "),D}(),W}),B(et,"Core/Axis/DateTimeAxis.js",[et["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.getMagnitude,$=W.normalizeTickInterval,Z=W.timeUnits;return function(U){function z(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function I(k){k.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new M(this))}var E=[];U.compose=function(k){return E.indexOf(k)===-1&&(E.push(k),k.keepProps.push("dateTime"),k.prototype.getTimeTicks=z,H(k,"init",I)),k};var M=function(){function k(y){this.axis=y}return k.prototype.normalizeTimeTickInterval=function(y,h){var u=h||[["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]];h=u[u.length-1];var g,d=Z[h[0]],v=h[1];for(g=0;g<u.length&&(h=u[g],d=Z[h[0]],v=h[1],!(u[g+1]&&y<=(d*v[v.length-1]+Z[u[g+1][0]])/2));g++);return d===Z.year&&y<5*d&&(v=[1,2,5]),{unitRange:d,count:y=$(y/d,v,h[0]==="year"?Math.max(V(y/d),1):1),unitName:h[0]}},k.prototype.getXDateFormat=function(y,h){var u=this.axis,g=u.chart.time;return u.closestPointRange?g.getDateFormat(u.closestPointRange,y,u.options.startOfWeek,h)||g.resolveDTLFormat(h.year).main:g.resolveDTLFormat(h.day).main},k}();U.Additions=M}(R||(R={})),R}),B(et,"Core/Axis/LogarithmicAxis.js",[et["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.normalizeTickInterval,$=W.pick;return function(Z){function U(M){var k=this.logarithmic;M.userOptions.type!=="logarithmic"?this.logarithmic=void 0:k||(this.logarithmic=new E(this))}function z(){var M=this.logarithmic;M&&(this.lin2val=function(k){return M.lin2log(k)},this.val2lin=function(k){return M.log2lin(k)})}var I=[];Z.compose=function(M){return I.indexOf(M)===-1&&(I.push(M),M.keepProps.push("logarithmic"),H(M,"init",U),H(M,"afterInit",z)),M};var E=function(){function M(k){this.axis=k}return M.prototype.getLogTickPositions=function(k,y,h,u){var g=this.axis,d=g.len,v=g.options,w=[];if(u||(this.minorAutoInterval=void 0),.5<=k)k=Math.round(k),w=g.getLinearTickPositions(k,y,h);else if(.08<=k){var S,C=Math.floor(y),c=v=void 0;for(d=.3<k?[1,2,4]:.15<k?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];C<h+1&&!c;C++){var f=d.length;for(S=0;S<f&&!c;S++){var r=this.log2lin(this.lin2log(C)*d[S]);r>y&&(!u||v<=h)&&v!==void 0&&w.push(v),v>h&&(c=!0),v=r}}}else y=this.lin2log(y),h=this.lin2log(h),k=u?g.getMinorTickInterval():v.tickInterval,k=$(k==="auto"?null:k,this.minorAutoInterval,v.tickPixelInterval/(u?5:1)*(h-y)/((u?d/g.tickPositions.length:d)||1)),k=V(k),w=g.getLinearTickPositions(k,y,h).map(this.log2lin),u||(this.minorAutoInterval=k/5);return u||(g.tickInterval=k),w},M.prototype.lin2log=function(k){return Math.pow(10,k)},M.prototype.log2lin=function(k){return Math.log(k)/Math.LN10},M}();Z.Additions=E}(R||(R={})),R}),B(et,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[et["Core/Utilities.js"]],function(W){var R,H=W.erase,V=W.extend,$=W.isNumber;return function(Z){var U,z=[];Z.compose=function(E,M){return U||(U=E),z.indexOf(M)===-1&&(z.push(M),V(M.prototype,I.prototype)),M};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(M,k,y){y===void 0&&(y=this.options);var h=this.getPlotLinePath({value:k,force:!0,acrossPanes:y.acrossPanes}),u=[],g=this.horiz;if(k=!$(this.min)||!$(this.max)||M<this.min&&k<this.min||M>this.max&&k>this.max,M=this.getPlotLinePath({value:M,force:!0,acrossPanes:y.acrossPanes}),y=1,M&&h){if(k){var d=M.toString()===h.toString();y=0}for(k=0;k<M.length;k+=2){var v=M[k],w=M[k+1],S=h[k],C=h[k+1];v[0]!=="M"&&v[0]!=="L"||w[0]!=="M"&&w[0]!=="L"||S[0]!=="M"&&S[0]!=="L"||C[0]!=="M"&&C[0]!=="L"||(g&&S[1]===v[1]?(S[1]+=y,C[1]+=y):g||S[2]!==v[2]||(S[2]+=y,C[2]+=y),u.push(["M",v[1],v[2]],["L",w[1],w[2]],["L",C[1],C[2]],["L",S[1],S[2]],["Z"])),u.isFlat=d}}return u},E.prototype.addPlotBand=function(M){return this.addPlotBandOrLine(M,"plotBands")},E.prototype.addPlotLine=function(M){return this.addPlotBandOrLine(M,"plotLines")},E.prototype.addPlotBandOrLine=function(M,k){var y=this,h=this.userOptions,u=new U(this,M);if(this.visible&&(u=u.render()),u){if(this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(d){y.addPlotBandOrLine(d)})),k){var g=h[k]||[];g.push(M),h[k]=g}this.plotLinesAndBands.push(u)}return u},E.prototype.removePlotBandOrLine=function(M){var k=this.plotLinesAndBands,y=this.options,h=this.userOptions;if(k){for(var u=k.length;u--;)k[u].id===M&&k[u].destroy();[y.plotLines||[],h.plotLines||[],y.plotBands||[],h.plotBands||[]].forEach(function(g){for(u=g.length;u--;)(g[u]||{}).id===M&&H(g,g[u])})}},E.prototype.removePlotBand=function(M){this.removePlotBandOrLine(M)},E.prototype.removePlotLine=function(M){this.removePlotBandOrLine(M)},E}()}(R||(R={})),R}),B(et,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[et["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],et["Core/Utilities.js"]],function(W,R){var H=R.arrayMax,V=R.arrayMin,$=R.defined,Z=R.destroyObjectProperties,U=R.erase,z=R.fireEvent,I=R.merge,E=R.objectEach,M=R.pick;return R=function(){function k(y,h){this.axis=y,h&&(this.options=h,this.id=h.id)}return k.compose=function(y){return W.compose(k,y)},k.prototype.render=function(){z(this,"render");var y=this,h=y.axis,u=h.horiz,g=h.logarithmic,d=y.options,v=d.color,w=M(d.zIndex,0),S=d.events,C={},c=h.chart.renderer,f=d.label,r=y.label,a=d.to,t=d.from,i=d.value,o=y.svgElem,e=[],s=$(t)&&$(a);e=$(i);var n=!o,l={class:"highcharts-plot-"+(s?"band ":"line ")+(d.className||"")},b=s?"bands":"lines";if(g&&(t=g.log2lin(t),a=g.log2lin(a),i=g.log2lin(i)),h.chart.styledMode||(e?(l.stroke=v||"#999999",l["stroke-width"]=M(d.width,1),d.dashStyle&&(l.dashstyle=d.dashStyle)):s&&(l.fill=v||"#e6ebf5",d.borderWidth&&(l.stroke=d.borderColor,l["stroke-width"]=d.borderWidth))),C.zIndex=w,b+="-"+w,(g=h.plotLinesAndBandsGroups[b])||(h.plotLinesAndBandsGroups[b]=g=c.g("plot-"+b).attr(C).add()),n&&(y.svgElem=o=c.path().attr(l).add(g)),e)e=h.getPlotLinePath({value:i,lineWidth:o.strokeWidth(),acrossPanes:d.acrossPanes});else{if(!s)return;e=h.getPlotBandPath(t,a,d)}return!y.eventsAdded&&S&&(E(S,function(T,D){o.on(D,function(p){S[D].apply(y,[p])})}),y.eventsAdded=!0),(n||!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<h.width&&0<h.height&&!e.isFlat?(f=I({align:u&&s&&"center",x:u?!s&&4:10,verticalAlign:!u&&s&&"middle",y:u?s?16:10:s?6:-4,rotation:u&&!s&&90},f),this.renderLabel(f,e,s,w)):r&&r.hide(),y},k.prototype.renderLabel=function(y,h,u,g){var d=this.axis,v=d.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-"+(u?"band":"line")+"-label "+(y.className||""),zIndex:g}).add(),d.chart.styledMode||w.css(I({textOverflow:"ellipsis"},y.style))),g=h.xBounds||[h[0][1],h[1][1],u?h[2][1]:h[0][1]],h=h.yBounds||[h[0][2],h[1][2],u?h[2][2]:h[0][2]],u=V(g),v=V(h),w.align(y,!1,{x:u,y:v,width:H(g)-u,height:H(h)-v}),w.alignValue&&w.alignValue!=="left"||(y=y.clip?d.width:d.chart.chartWidth,w.css({width:(w.rotation===90?d.height-(w.alignAttr.y-d.top):y-(w.alignAttr.x-d.left))+"px"})),w.show(!0)},k.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},k.prototype.destroy=function(){U(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},k}(),R}),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(W,R,H,V,$){var Z=W.format,U=R.doc,z=H.distribute,I=$.clamp,E=$.css,M=$.discardElement,k=$.extend,y=$.fireEvent,h=$.isArray,u=$.isNumber,g=$.isString,d=$.merge,v=$.pick,w=$.splat,S=$.syncTimeout;return W=function(){function C(c,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=c,this.init(c,f)}return C.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+c.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(c){return c.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(c){this.chart.series.forEach(function(f){var r=f&&f.tt;r&&(!r.isActive||c?f.tt=r.destroy():r.isActive=!1)})},C.prototype.defaultFormatter=function(c){var f=this.points||w(this),r=[c.tooltipFooterHeaderFormatter(f[0])];return(r=r.concat(c.bodyFormatter(f))).push(c.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(),M(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},C.prototype.getAnchor=function(c,f){var r=this.chart,a=r.pointer,t=r.inverted,i=r.plotTop;if(r=r.plotLeft,(c=w(c))[0].series&&c[0].series.yAxis&&!c[0].series.yAxis.options.reversedStacks&&(c=c.slice().reverse()),this.followPointer&&f)f.chartX===void 0&&(f=a.normalize(f)),c=[f.chartX-r,f.chartY-i];else if(c[0].tooltipPos)c=c[0].tooltipPos;else{var o=0,e=0;c.forEach(function(s){(s=s.pos(!0))&&(o+=s[0],e+=s[1])}),o/=c.length,e/=c.length,this.shared&&1<c.length&&f&&(t?o=f.chartX:e=f.chartY),c=[o-r,e-i]}return c.map(Math.round)},C.prototype.getClassName=function(c,f,r){var a=c.series,t=a.options;return[this.options.className,"highcharts-label",r&&"highcharts-tooltip-header",f?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(c.colorIndex,a.colorIndex),t&&t.className].filter(g).join(" ")},C.prototype.getLabel=function(){var c,f=this,r=this.chart.styledMode,a=this.options,t=this.split&&this.allowShared,i=a.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 s=V.getRendererType();this.container=c=R.doc.createElement("div"),c.className="highcharts-tooltip-container",E(c,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(e&&e.zIndex||0)+3)}),R.doc.body.appendChild(c),this.renderer=o=new s(c,0,0,e,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:i}).shadow(a.shadow)),r&&a.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),f.outside&&!f.split){var n=this.label,l=n.xSetter,b=n.ySetter;n.xSetter=function(T){l.call(n,f.distance),c.style.left=T+"px"},n.ySetter=function(T){b.call(n,f.distance),c.style.top=T+"px"}}this.label.attr({zIndex:8}).add()}return this.label},C.prototype.getPosition=function(c,f,r){var a,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,s=this.outside,n=s?U.documentElement.clientWidth-2*i:t.chartWidth,l=s?Math.max(U.body.scrollHeight,U.documentElement.scrollHeight,U.body.offsetHeight,U.documentElement.offsetHeight,U.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),T=function(O){var j=O==="x";return[O,j?n:l,j?c:f].concat(s?[j?c*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?n:l]:[j?c:f,j?r.plotX+t.plotLeft:r.plotY+t.plotTop,j?t.plotLeft:t.plotTop,j?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},D=T("y"),p=T("x");T=!!r.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(T=!T);var x=!this.followPointer&&v(r.ttBelow,!t.inverted===T),A=function(O,j,Y,X,G,q,Q){var J=s?O==="y"?i*b.scaleY:i*b.scaleX:i,rt=(Y-X)/2,lt=X<G-i,gt=G+i+X<j,mt=G-J-Y+rt;if(G=G+J-rt,x&>)o[O]=G;else if(!x&<)o[O]=mt;else if(lt)o[O]=Math.min(Q-X,0>mt-e?mt:mt-e);else{if(!gt)return!1;o[O]=Math.max(q,G+e+Y>j?G:G+e)}},N=function(O,j,Y,X,G){var q;return G<i||G>j-i?q=!1:o[O]=G<Y/2?1:G>j-X/2?j-X-2:G-Y/2,q},_=function(O){var j=D;D=p,p=j,a=O},L=function(){A.apply(0,D)!==!1?N.apply(0,p)!==!1||a||(_(!0),L()):a?o.x=o.y=0:(_(!0),L())};return(t.inverted||1<this.len)&&_(),L(),o},C.prototype.hide=function(c){var f=this;$.clearTimeout(this.hideTimer),c=v(c,this.options.hideDelay),this.isHidden||(this.hideTimer=S(function(){f.getLabel().fadeOut(c&&void 0),f.isHidden=!0},c))},C.prototype.init=function(c,f){this.chart=c,this.options=f,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=f.split&&!c.inverted&&!c.polar,this.shared=f.shared||this.split,this.outside=v(f.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))},C.prototype.shouldStickOnContact=function(c){return!(this.followPointer||!this.options.stickOnContact||c&&!this.chart.pointer.inClass(c.target,"highcharts-tooltip"))},C.prototype.move=function(c,f,r,a){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(1<Math.abs(c-i.x)||1<Math.abs(f-i.y)),e=t.followPointer||1<t.len;k(i,{x:o?(2*i.x+c)/3:c,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+a)/2:a}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(c,f,r,a)},32))},C.prototype.refresh=function(c,f){var r=this.chart,a=this.options,t=r.pointer,i=w(c),o=i[0],e=[],s=a.formatter||this.defaultFormatter,n=this.shared,l=r.styledMode,b={};if(a.enabled&&o.series){$.clearTimeout(this.hideTimer),this.allowShared=!(!h(c)&&c.series&&c.series.noSharedTooltip),this.followPointer=!this.split&&o.series.tooltipOptions.followPointer;var T=(c=this.getAnchor(c,f))[0],D=c[1];if(n&&this.allowShared?(t.applyInactiveState(i),i.forEach(function(A){A.setState("hover"),e.push(A.getLabelConfig())}),(b={x:o.category,y:o.y}).points=e):b=o.getLabelConfig(),this.len=e.length,s=s.call(b,this),n=o.series,this.distance=v(n.tooltipOptions.distance,16),s===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(s,i);else{var p=T,x=D;if(f&&t.isDirectTouch&&(p=f.chartX-r.plotLeft,x=f.chartY-r.plotTop),!r.polar&&n.options.clip!==!1&&!i.some(function(A){return t.isDirectTouch||A.series.shouldShowTooltip(p,x)}))return void this.hide();f=this.getLabel(),a.style.width&&!l||f.css({width:r.spacingBox.width+"px"}),f.attr({text:s&&s.join?s.join(""):s}),f.addClass(this.getClassName(o),!0),l||f.attr({stroke:a.borderColor||o.color||n.color||"#666666"}),this.updatePosition({plotX:T,plotY:D,negative:o.negative,ttBelow:o.ttBelow,h:c[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}},C.prototype.renderSplit=function(c,f){function r(gt,mt,bt,yt,ht){return ht===void 0&&(ht=!0),bt?(mt=X?0:J,gt=I(gt-yt/2,O.left,O.right-yt-(a.outside?G:0))):(mt-=q,gt=I(gt=ht?gt-yt-N:gt+N,ht?gt:O.left,O.right)),{x:gt,y:mt}}var a=this,t=a.chart,i=a.chart,o=i.chartWidth,e=i.chartHeight,s=i.plotHeight,n=i.plotLeft,l=i.plotTop,b=i.pointer,T=i.scrollablePixelsY;T=T===void 0?0:T;var D=i.scrollablePixelsX,p=i.scrollingContainer,x=(p=p===void 0?{scrollLeft:0,scrollTop:0}:p).scrollLeft;p=p.scrollTop;var A=i.styledMode,N=a.distance,_=a.options,L=a.options.positioner,O=a.outside&&typeof D!="number"?U.documentElement.getBoundingClientRect():{left:x,right:x+o,top:p,bottom:p+e},j=a.getLabel(),Y=this.renderer||t.renderer,X=!(!t.xAxis[0]||!t.xAxis[0].opposite),G=(t=b.getChartPosition()).left;t=t.top;var q=l+p,Q=0,J=s-T;g(c)&&(c=[!1,c]),c=c.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:s,series:{}}).isHeader,ht=yt?a:bt.series;mt=mt.toString();var it=ht.tt,st=bt.isHeader,dt=bt.series;it||(it={padding:_.padding,r:_.borderRadius},A||(it.fill=_.backgroundColor,it["stroke-width"]=_.borderWidth),it=Y.label("",0,0,_[st?"headerShape":"shape"],void 0,void 0,_.useHTML).addClass(a.getClassName(bt,!0,st)).attr(it).add(j)),it.isActive=!0,it.attr({text:mt}),A||it.css(_.style).shadow(_.shadow).attr({stroke:_.borderColor||bt.color||dt.color||"#333333"}),mt=(st=(ht=ht.tt=it).getBBox()).width+ht.strokeWidth(),yt&&(Q=st.height,J+=Q,X&&(q-=Q)),dt=(dt=bt.plotX)===void 0?0:dt,it=(it=bt.plotY)===void 0?0:it;var vt=bt.series;if(bt.isHeader){dt=n+dt;var Ct=l+s/2}else{var xt=vt.xAxis,wt=vt.yAxis;dt=xt.pos+I(dt,-N,xt.len+N),vt.shouldShowTooltip(0,wt.pos-l+it,{ignoreX:!0})&&(Ct=wt.pos+it)}dt=I(dt,O.left-N,O.right+N),typeof Ct=="number"?(st=st.height+1,it=L?L.call(a,mt,st,bt):r(dt,Ct,yt,mt),gt.push({align:L?0:void 0,anchorX:dt,anchorY:Ct,boxWidth:mt,point:bt,rank:v(it.rank,yt?1:0),size:st,target:it.y,tt:ht,x:it.x})):ht.isActive=!1}return gt},[]),!L&&c.some(function(gt){var mt=(a.outside?G:0)+gt.anchorX;return mt<O.left&&mt+gt.boxWidth<O.right||mt<G-O.left+gt.boxWidth&&O.right-mt>mt})&&(c=c.map(function(gt){var mt=r(gt.anchorX,gt.anchorY,gt.point.isHeader,gt.boxWidth,!1);return k(gt,{target:mt.y,x:mt.x})})),a.cleanSplit(),z(c,J);var rt=G,lt=G;c.forEach(function(gt){var mt=gt.x,bt=gt.boxWidth;(gt=gt.isHeader)||(a.outside&&G+mt<rt&&(rt=G+mt),!gt&&a.outside&&rt+bt>lt&&(lt=G+mt))}),c.forEach(function(gt){var mt=gt.x,bt=gt.anchorX,yt=gt.pos,ht=gt.point.isHeader;if(yt={visibility:yt===void 0?"hidden":"inherit",x:mt,y:(yt||0)+q,anchorX:bt,anchorY:gt.anchorY},a.outside&&mt<bt){var it=G-rt;0<it&&(ht||(yt.x=mt+it,yt.anchorX=bt+it),ht&&(yt.x=(lt-rt)/2,yt.anchorX=bt+it))}gt.tt.attr(yt)}),c=a.container,T=a.renderer,a.outside&&c&&T&&(i=j.getBBox(),T.setSize(i.width+i.x,i.height+i.y,!1),c.style.left=rt+"px",c.style.top=t+"px")},C.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var c=this.chart,f=this.label,r=this.shared?c.hoverPoints:c.hoverPoint;if(f&&r){var a={x:0,y:0,width:0,height:0};r=this.getAnchor(r);var t=f.getBBox();r[0]+=c.plotLeft-f.translateX,r[1]+=c.plotTop-f.translateY,a.x=Math.min(0,r[0]),a.y=Math.min(0,r[1]),a.width=0>r[0]?Math.max(Math.abs(r[0]),t.width-r[0]):Math.max(Math.abs(r[0]),t.width),a.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(a):(this.tracker=f.renderer.rect(a).addClass("highcharts-tracker").add(f),c.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},C.prototype.styledModeFormat=function(c){return c.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(c,f){var r=c.series,a=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime;t={isFooter:f,labelConfig:c};var o=a.xDateFormat,e=a[f?"footerFormat":"headerFormat"];return y(this,"headerFormatter",t,function(s){i&&!o&&u(c.key)&&(o=i.getXDateFormat(c.key,a.dateTimeLabelFormats)),i&&o&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(n){e=e.replace("{point."+n+"}","{point."+n+":"+o+"}")}),r.chart.styledMode&&(e=this.styledModeFormat(e)),s.text=Z(e,{point:c,series:r},this.chart)}),t.text},C.prototype.update=function(c){this.destroy(),d(!0,this.chart.options.tooltip.userOptions,c),this.init(this.chart,d(!0,this.options,c))},C.prototype.updatePosition=function(c){var f=this.chart,r=this.distance,a=this.options,t=f.pointer,i=this.getLabel(),o=t.getChartPosition();t=o.left;var e=o.top,s=o.scaleX;o=o.scaleY;var n=(a.positioner||this.getPosition).call(this,i.width,i.height,c),l=(c.plotX||0)+f.plotLeft;c=(c.plotY||0)+f.plotTop,this.outside&&(a.positioner&&(n.x+=t-r,n.y+=e-r),r=a.borderWidth+2*r,this.renderer.setSize(i.width+r,i.height+r,!1),s===1&&o===1||(E(this.container,{transform:"scale(".concat(s,", ").concat(o,")")}),l*=s,c*=o),l+=t-n.x,c+=e-n.y),this.move(Math.round(n.x),Math.round(n.y||0),l,c)},C}(),W}),B(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(W,R,H,V,$){var Z=R.animObject,U=H.defaultOptions,z=V.format,I=$.addEvent,E=$.defined,M=$.erase,k=$.extend,y=$.fireEvent,h=$.getNestedProperty,u=$.isArray,g=$.isFunction,d=$.isNumber,v=$.isObject,w=$.merge,S=$.objectEach,C=$.pick,c=$.syncTimeout,f=$.removeEvent,r=$.uniqueKey;return R=function(){function a(){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 a.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(s){s.element&&s.animate(k({x:t.startXPos},s.startYPos?{x:s.startXPos,y:s.startYPos}:{}))})})},a.prototype.applyOptions=function(t,i){var o=this.series,e=o.options.pointValKey||o.pointValKey;return t=a.prototype.optionsToObject.call(this,t),k(this,t),this.options=this.options?k(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,e&&(this.y=a.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:d(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},a.prototype.destroy=function(){function t(){for(s in(i.graphic||i.graphics||i.dataLabel||i.dataLabels)&&(f(i),i.destroyElements()),i)i[s]=null}var i=this,o=i.series,e=o.chart;o=o.options.dataSorting;var s,n=e.hoverPoints,l=Z(i.series.chart.renderer.globalAnimation);i.legendItem&&e.legend.destroyItem(i),n&&(i.setState(),M(n,i),n.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),o&&o.enabled?(this.animateBeforeDestroy(),c(t,l.duration)):t(),e.pointCount--},a.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]})},a.prototype.firePointEvent=function(t,i,o){var e=this,s=this.series.options;(s.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&s.allowPointSelect&&(o=function(n){e.select&&e.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),y(e,t,i,o)},a.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",""):"")},a.prototype.getGraphicalProps=function(t){var i,o=this,e=[],s={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 n=e[i];o[n]&&s.singular.push(n)}return["graphic","dataLabel","connector"].forEach(function(l){var b=l+"s";t[l]&&o[b]&&s.plural.push(b)}),s},a.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}},a.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?h(t,this.options):this[t]},a.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},a.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},a.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},a.prototype.isValid=function(){return this.x!==null&&d(this.y)},a.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,e=o||i.pointArrayMap||["y"],s=e.length,n={},l=0,b=0;if(d(t)||t===null)n[e[0]]=t;else if(u(t))for(!o&&t.length>s&&((i=typeof t[0])=="string"?n.name=t[0]:i==="number"&&(n.x=t[0]),l++);b<s;)o&&t[l]===void 0||(0<e[b].indexOf(".")?a.prototype.setNestedProperty(n,t[l],e[b]):n[e[b]]=t[l]),l++,b++;else typeof t=="object"&&(n=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return n},a.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,s=e.chart,n=e.xAxis;e=e.yAxis;var l=0,b=0;if(d(o)&&d(i))return t&&(l=n?n.pos:s.plotLeft,b=e?e.pos:s.plotTop),s.inverted&&n&&e?[e.len-i+b,n.len-o+l]:[o+l,i+b]},a.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)},a.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,s,n,l){return e[s]=l.length-1===n?i:v(e[s],!0)?e[s]:{},e[s]},t),t},a.prototype.shouldDraw=function(){return!this.isNull},a.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=C(o.valueDecimals,""),s=o.valuePrefix||"",n=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(l){l="{point."+l,(s||n)&&(t=t.replace(RegExp(l+"}","g"),s+l+"}"+n)),t=t.replace(RegExp(l+"}","g"),l+":,."+e+"f}")}),z(t,{point:this,series:this.series},i.chart)},a.prototype.update=function(t,i,o,e){function s(){l.applyOptions(t);var x=T&&l.hasMockGraphic;x=l.y===null?!x:x,T&&x&&(l.graphic=T.destroy(),delete l.hasMockGraphic),v(t,!0)&&(T&&T.element&&t&&t.marker&&t.marker.symbol!==void 0&&(l.graphic=T.destroy()),t&&t.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.connector&&(l.connector=l.connector.destroy())),n=l.index,b.updateParallelArrays(l,n),p.data[n]=v(p.data[n],!0)||v(t,!0)?l.options:C(t,p.data[n]),b.isDirty=b.isDirtyData=!0,!b.fixedBox&&b.hasCartesianSeries&&(D.isDirtyBox=!0),p.legendType==="point"&&(D.isDirtyLegend=!0),i&&D.redraw(o)}var n,l=this,b=l.series,T=l.graphic,D=b.chart,p=b.options;i=C(i,!0),e===!1?s():l.firePointEvent("update",{options:t},s)},a.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},a.prototype.select=function(t,i){var o=this,e=o.series,s=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||s.getSelectedPoints().forEach(function(n){var l=n.series;n.selected&&n!==o&&(n.selected=n.options.selected=!1,l.options.data[l.data.indexOf(n)]=n.options,n.setState(s.hoverPoints&&l.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},a.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)},a.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},a.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=w(t.series.options.point,t.options).events;t.events=i,S(i,function(o,e){g(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},a.prototype.setState=function(t,i){var o,e=this.series,s=this.state,n=e.options.states[t||"normal"]||{},l=U.plotOptions[e.type].marker&&e.options.marker,b=l&&l.enabled===!1,T=l&&l.states&&l.states[t||"normal"]||{},D=T.enabled===!1,p=this.marker||{},x=e.chart,A=l&&e.markerAttribs,N=e.halo,_=e.stateMarkerGraphic;if(!((t=t||"")===this.state&&!i||this.selected&&t!=="select"||n.enabled===!1||t&&(D||b&&T.enabled===!1)||t&&p.states&&p.states[t]&&p.states[t].enabled===!1)){if(this.state=t,A&&(o=e.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!x.styledMode){s=e.pointAttribs(this,t);var L=C(x.options.chart.animation,n.animation),O=s.opacity;e.options.inactiveOtherPoints&&d(O)&&((this.dataLabels||[]).forEach(function(j){j&&!j.hasClass("highcharts-data-label-hidden")&&j.animate({opacity:O},L)}),this.connector&&this.connector.animate({opacity:O},L)),this.graphic.animate(s,L)}o&&this.graphic.animate(o,C(x.options.chart.animation,T.animation,l.animation)),_&&_.hide()}else t&&T&&(l=p.symbol||e.symbol,_&&_.currentSymbol!==l&&(_=_.destroy()),o&&(_?_[i?"animate":"attr"]({x:o.x,y:o.y}):l&&(e.stateMarkerGraphic=_=x.renderer.symbol(l,o.x,o.y,o.width,o.height).add(e.markerGroup),_.currentSymbol=l)),!x.styledMode&&_&&this.state!=="inactive"&&_.attr(e.pointAttribs(this,t))),_&&(_[t&&this.isInside?"show":"hide"](),_.element.point=this,_.addClass(this.getClassName(),!0));n=n.halo,o=(_=this.graphic||_)&&_.visibility||"inherit",n&&n.size&&_&&o!=="hidden"&&!this.isCluster?(N||(e.halo=N=x.renderer.path().add(_.parentGroup)),N.show()[i?"animate":"attr"]({d:this.haloPath(n.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(k({fill:this.color||e.color,"fill-opacity":n.opacity},W.filterUserAttributes(n.attributes||{})))):N&&N.point&&N.point.haloPath&&N.animate({d:N.point.haloPath(0)},null,N.hide),y(this,"afterSetState",{state:t})}},a.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):[]},a}(),R}),B(et,"Core/Pointer.js",[et["Core/Color/Color.js"],et["Core/Globals.js"],et["Core/Tooltip.js"],et["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=R.charts,U=R.noop,z=V.addEvent,I=V.attr,E=V.css,M=V.defined,k=V.extend,y=V.find,h=V.fireEvent,u=V.isNumber,g=V.isObject,d=V.objectEach,v=V.offset,w=V.pick,S=V.splat;return W=function(){function C(c,f){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=c,this.hasDragged=!1,this.options=f,this.init(c,f)}return C.prototype.applyInactiveState=function(c){var f,r=[];(c||[]).forEach(function(a){f=a.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(a){r.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},C.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(f){return f()}),this.eventsToUnbind=[],R.chartCount||(C.unbindDocumentMouseUp&&(C.unbindDocumentMouseUp=C.unbindDocumentMouseUp()),C.unbindDocumentTouchEnd&&(C.unbindDocumentTouchEnd=C.unbindDocumentTouchEnd())),clearInterval(c.tooltipTimeout),d(c,function(f,r){c[r]=void 0})},C.prototype.getSelectionMarkerAttrs=function(c,f){var r=this,a={args:{chartX:c,chartY:f},attrs:{},shapeType:"rect"};return h(this,"getSelectionMarkerAttrs",a,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 s=r.zoomHor,n=r.zoomVert;(t=t.attrs).x=i.plotLeft,t.y=i.plotTop,t.width=s?1:i.plotWidth,t.height=n?1:i.plotHeight,s&&(i=c-o,t.width=Math.abs(i),t.x=(0<i?0:i)+o),n&&(i=f-e,t.height=Math.abs(i),t.y=(0<i?0:i)+e)}),a},C.prototype.drag=function(c){var f=this.chart,r=f.options.chart,a=f.plotLeft,t=f.plotTop,i=f.plotWidth,o=f.plotHeight,e=this.mouseDownX||0,s=this.mouseDownY||0,n=g(r.panning)?r.panning&&r.panning.enabled:r.panning,l=r.panKey&&c[r.panKey+"Key"],b=c.chartX,T=c.chartY,D=this.selectionMarker;D&&D.touch||(b<a?b=a:b>a+i&&(b=a+i),T<t?T=t:T>t+o&&(T=t+o),this.hasDragged=Math.sqrt(Math.pow(e-b,2)+Math.pow(s-T,2)),10<this.hasDragged&&(a=f.isInsidePlot(e-a,s-t,{visiblePlotOnly:!0}),b=(T=this.getSelectionMarkerAttrs(b,T)).shapeType,T=T.attrs,!f.hasCartesianSeries&&!f.mapView||!this.zoomX&&!this.zoomY||!a||l||D||(this.selectionMarker=D=f.renderer[b](),D.attr({class:"highcharts-selection-marker",zIndex:7}).add(),f.styledMode||D.attr({fill:r.selectionMarkerFill||$("#335cad").setOpacity(.25).get()})),D&&D.attr(T),a&&!D&&n&&f.pan(c,r.panning)))},C.prototype.dragStart=function(c){var f=this.chart;f.mouseIsDown=c.type,f.cancelClick=!1,f.mouseDownX=this.mouseDownX=c.chartX,f.mouseDownY=this.mouseDownY=c.chartY},C.prototype.getSelectionBox=function(c){var f={args:{marker:c},result:{}};return h(this,"getSelectionBox",f,function(r){r.result={x:c.attr?+c.attr("x"):c.x,y:c.attr?+c.attr("y"):c.y,width:c.attr?c.attr("width"):c.width,height:c.attr?c.attr("height"):c.height}}),f.result},C.prototype.drop=function(c){var f=this,r=this.chart,a=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,s=t.height,n={originalEvent:c,xAxis:[],yAxis:[],x:i,y:o,width:e,height:s},l=!!r.mapView;(this.hasDragged||a)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&M(b.min)&&(a||f[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&u(i)&&u(o)&&u(e)&&u(s)){var T=b.horiz,D=c.type==="touchend"?b.minPixelPadding:0,p=b.toValue((T?i:o)+D);T=b.toValue((T?i+e:o+s)-D),n[b.coll].push({axis:b,min:Math.min(p,T),max:Math.max(p,T)}),l=!0}}),l&&h(r,"selection",n,function(b){r.zoom(k(b,a?{animation:!1}:null))})),u(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}r&&u(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(c,f,r){var a;return c.forEach(function(t){var i=!(t.noSharedTooltip&&f)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(r,i),(i=g(t,!0)&&t.series)&&!(i=!g(a,!0))){i=a.distX-t.distX;var o=a.dist-t.dist,e=(t.series.group&&t.series.group.zIndex)-(a.series.group&&a.series.group.zIndex);i=0<(i!==0&&f?i:o!==0?o:e!==0?e:a.series.index>t.series.index?-1:1)}i&&(a=t)}),a},C.prototype.getChartCoordinatesFromPoint=function(c,f){var r=c.series,a=r.xAxis;r=r.yAxis;var t=c.shapeArgs;if(a&&r){var i=w(c.clientX,c.plotX),o=c.plotY||0;return c.isNode&&t&&u(t.x)&&u(t.y)&&(i=t.x,o=t.y),f?{chartX:r.len+r.pos-o,chartY:a.len+a.pos-i}:{chartX:i+a.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 c=this.chart.container,f=v(c);this.chartPosition={left:f.left,top:f.top,scaleX:1,scaleY:1};var r=c.offsetWidth;return c=c.offsetHeight,2<r&&2<c&&(this.chartPosition.scaleX=f.width/r,this.chartPosition.scaleY=f.height/c),this.chartPosition},C.prototype.getCoordinates=function(c){var f={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){f[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(c[r.horiz?"chartX":"chartY"])})}),f},C.prototype.getHoverData=function(c,f,r,a,t,i){var o=[];a=!(!a||!c);var e=function(b){return b.visible&&!(!t&&b.directTouch)&&w(b.options.enableMouseTracking,!0)},s={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};h(this,"beforeGetHoverData",s);var n=f&&!f.stickyTracking?[f]:r.filter(function(b){return b.stickyTracking&&(s.filter||e)(b)}),l=a||!i?c:this.findNearestKDPoint(n,t,i);return f=l&&l.series,l&&(t&&!f.noSharedTooltip?(n=r.filter(function(b){return s.filter?s.filter(b):e(b)&&!b.noSharedTooltip}),n.forEach(function(b){var T=y(b.points,function(D){return D.x===l.x&&!D.isNull});g(T)&&(b.boosted&&b.boost&&(T=b.boost.getPoint(T)),o.push(T))})):o.push(l)),h(this,"afterGetHoverData",s={hoverPoint:l}),{hoverPoint:s.hoverPoint,hoverSeries:f,hoverPoints:o}},C.prototype.getPointFromEvent=function(c){c=c.target;for(var f;c&&!f;)f=c.point,c=c.parentNode;return f},C.prototype.onTrackerMouseOut=function(c){c=c.relatedTarget||c.toElement;var f=this.chart.hoverSeries;this.isDirectTouch=!1,!f||!c||f.stickyTracking||this.inClass(c,"highcharts-tooltip")||this.inClass(c,"highcharts-series-"+f.index)&&this.inClass(c,"highcharts-tracker")||f.onMouseOut()},C.prototype.inClass=function(c,f){for(var r;c;){if(r=I(c,"class")){if(r.indexOf(f)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}c=c.parentElement}},C.prototype.init=function(c,f){this.options=f,this.chart=c,this.runChartClick=!(!f.chart.events||!f.chart.events.click),this.pinchDown=[],this.lastValidTouch={},H&&(c.tooltip=new H(c,f.tooltip)),this.setDOMEvents()},C.prototype.normalize=function(c,f){var r=c.touches,a=r?r.length?r.item(0):w(r.changedTouches,c.changedTouches)[0]:c;return f||(f=this.getChartPosition()),r=a.pageX-f.left,a=a.pageY-f.top,r/=f.scaleX,a/=f.scaleY,k(c,{chartX:Math.round(r),chartY:Math.round(a)})},C.prototype.onContainerClick=function(c){var f=this.chart,r=f.hoverPoint;c=this.normalize(c);var a=f.plotLeft,t=f.plotTop;f.cancelClick||(r&&this.inClass(c.target,"highcharts-tracker")?(h(r.series,"click",k(c,{point:r})),f.hoverPoint&&r.firePointEvent("click",c)):(k(c,this.getCoordinates(c)),f.isInsidePlot(c.chartX-a,c.chartY-t,{visiblePlotOnly:!0})&&h(f,"click",c)))},C.prototype.onContainerMouseDown=function(c){var f=!(1&~(c.buttons||c.button));c=this.normalize(c),R.isFirefox&&c.button!==0&&this.onContainerMouseMove(c),(c.button===void 0||f)&&(this.zoomOption(c),f&&c.preventDefault&&c.preventDefault(),this.dragStart(c))},C.prototype.onContainerMouseLeave=function(c){var f=Z[w(C.hoverChartIndex,-1)],r=this.chart.tooltip;c=this.normalize(c),f&&(c.relatedTarget||c.toElement)&&(f.pointer.reset(),f.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},C.prototype.onContainerMouseEnter=function(c){delete this.chartPosition},C.prototype.onContainerMouseMove=function(c){var f=this.chart,r=f.tooltip;c=this.normalize(c),this.setHoverChartIndex(),c.preventDefault||(c.returnValue=!1),(f.mouseIsDown==="mousedown"||this.touchSelect(c))&&this.drag(c),f.openMenu||!this.inClass(c.target,"highcharts-tracker")&&!f.isInsidePlot(c.chartX-f.plotLeft,c.chartY-f.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(c)||(this.inClass(c.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(c))},C.prototype.onDocumentTouchEnd=function(c){var f=Z[w(C.hoverChartIndex,-1)];f&&f.pointer.drop(c)},C.prototype.onContainerTouchMove=function(c){this.touchSelect(c)?this.onContainerMouseMove(c):this.touch(c)},C.prototype.onContainerTouchStart=function(c){this.touchSelect(c)?this.onContainerMouseDown(c):(this.zoomOption(c),this.touch(c,!0))},C.prototype.onDocumentMouseMove=function(c){var f=this.chart,r=f.tooltip,a=this.chartPosition;c=this.normalize(c,a),!a||f.isInsidePlot(c.chartX-f.plotLeft,c.chartY-f.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(c)||this.inClass(c.target,"highcharts-tracker")||this.reset()},C.prototype.onDocumentMouseUp=function(c){var f=Z[w(C.hoverChartIndex,-1)];f&&f.pointer.drop(c)},C.prototype.pinch=function(c){var f=this,r=f.chart,a=f.pinchDown,t=c.touches||[],i=t.length,o=f.lastValidTouch,e=f.hasZoom,s={},n=i===1&&(f.inClass(c.target,"highcharts-tracker")&&r.runTrackerClick||f.runChartClick),l={},b=f.chart.tooltip;b=i===1&&w(b&&b.options.followTouchMove,!0);var T=f.selectionMarker;1<i?f.initiated=!0:b&&(f.initiated=!1),e&&f.initiated&&!n&&c.cancelable!==!1&&c.preventDefault(),[].map.call(t,function(D){return f.normalize(D)}),c.type==="touchstart"?([].forEach.call(t,function(D,p){a[p]={chartX:D.chartX,chartY:D.chartY}}),o.x=[a[0].chartX,a[1]&&a[1].chartX],o.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach(function(D){if(D.zoomEnabled){var p=r.bounds[D.horiz?"h":"v"],x=D.minPixelPadding,A=D.toPixels(Math.min(w(D.options.min,D.dataMin),D.dataMin)),N=D.toPixels(Math.max(w(D.options.max,D.dataMax),D.dataMax)),_=Math.max(A,N);p.min=Math.min(D.pos,Math.min(A,N)-x),p.max=Math.max(D.pos+D.len,_+x)}}),f.res=!0):b?this.runPointActions(f.normalize(c)):a.length&&(h(r,"touchpan",{originalEvent:c},function(){T||(f.selectionMarker=T=k({destroy:U,touch:!0},r.plotBox)),f.pinchTranslate(a,t,s,T,l,o),f.hasPinched=e,f.scaleGroups(s,l)}),f.res&&(f.res=!1,this.reset(!1,0)))},C.prototype.pinchTranslate=function(c,f,r,a,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,c,f,r,a,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,c,f,r,a,t,i)},C.prototype.pinchTranslateDirection=function(c,f,r,a,t,i,o,e){var s=this.chart,n=c?"x":"y",l=c?"X":"Y",b="chart"+l,T=c?"width":"height",D=s["plot"+(c?"Left":"Top")],p=s.inverted,x=s.bounds[c?"h":"v"],A=f.length===1,N=f[0][b],_=!A&&f[1][b];f=function(){typeof X=="number"&&20<Math.abs(N-_)&&(j=e||Math.abs(Y-X)/Math.abs(N-_)),O=(D-Y)/j+N,L=s["plot"+(c?"Width":"Height")]/j};var L,O,j=e||1,Y=r[0][b],X=!A&&r[1][b];if(f(),(r=O)<x.min){r=x.min;var G=!0}else r+L>x.max&&(r=x.max-L,G=!0);G?(Y-=.8*(Y-o[n][0]),typeof X=="number"&&(X-=.8*(X-o[n][1])),f()):o[n]=[Y,X],p||(i[n]=O-D,i[T]=L),i=p?1/j:j,t[T]=L,t[n]=r,a[p?c?"scaleY":"scaleX":"scale"+l]=j,a["translate"+l]=i*D+(Y-i*N)},C.prototype.reset=function(c,f){var r=this.chart,a=r.hoverSeries,t=r.hoverPoint,i=r.hoverPoints,o=r.tooltip,e=o&&o.shared?i:t;c&&e&&S(e).forEach(function(s){s.series.isCartesian&&s.plotX===void 0&&(c=!1)}),c?o&&e&&S(e).length&&(o.refresh(e),o.shared&&i?i.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))}):t&&(t.setState(t.state,!0),r.axes.forEach(function(s){s.crosshair&&t.series[s.coll]===s&&s.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),i&&i.forEach(function(s){s.setState()}),a&&a.onMouseOut(),o&&o.hide(f),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),r.axes.forEach(function(s){s.hideCrosshair()}),this.hoverX=r.hoverPoints=r.hoverPoint=null)},C.prototype.runPointActions=function(c,f,r){var a=this.chart,t=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,i=!!t&&t.shared,o=f||a.hoverPoint,e=o&&o.series||a.hoverSeries;f=this.getHoverData(o,e,a.series,(!c||c.type!=="touchmove")&&(!!f||e&&e.directTouch&&this.isDirectTouch),i,c),o=f.hoverPoint,e=f.hoverSeries;var s=f.hoverPoints;f=e&&e.tooltipOptions.followPointer&&!e.tooltipOptions.split;var n=i&&e&&!e.noSharedTooltip;if(o&&(r||o!==a.hoverPoint||t&&t.isHidden)){if((a.hoverPoints||[]).forEach(function(l){s.indexOf(l)===-1&&l.setState()}),a.hoverSeries!==e&&e.onMouseOver(),this.applyInactiveState(s),(s||[]).forEach(function(l){l.setState("hover")}),a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut"),!o.series)return;a.hoverPoints=s,a.hoverPoint=o,o.firePointEvent("mouseOver",void 0,function(){t&&o&&t.refresh(n?s:o,c)})}else f&&t&&!t.isHidden&&(r=t.getAnchor([{}],c),a.isInsidePlot(r[0],r[1],{visiblePlotOnly:!0})&&t.updatePosition({plotX:r[0],plotY:r[1]}));this.unDocMouseMove||(this.unDocMouseMove=z(a.container.ownerDocument,"mousemove",function(l){var b=Z[C.hoverChartIndex];b&&b.pointer.onDocumentMouseMove(l)}),this.eventsToUnbind.push(this.unDocMouseMove)),a.axes.forEach(function(l){var b,T=w((l.crosshair||{}).snap,!0);T&&((b=a.hoverPoint)&&b.series[l.coll]===l||(b=y(s,function(D){return D.series&&D.series[l.coll]===l}))),b||!T?l.drawCrosshair(c,b):l.hideCrosshair()})},C.prototype.scaleGroups=function(c,f){var r=this.chart;r.series.forEach(function(a){var t=c||a.getPlotBox();a.group&&(a.xAxis&&a.xAxis.zoomEnabled||r.mapView)&&(a.group.attr(t),a.markerGroup&&(a.markerGroup.attr(t),a.markerGroup.clip(f?r.clipRect:null)),a.dataLabelsGroup&&a.dataLabelsGroup.attr(t))}),r.clipRect.attr(f||r.clipBox)},C.prototype.setDOMEvents=function(){var c=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(z(f,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(z(f,"mouseleave",this.onContainerMouseLeave.bind(this))),C.unbindDocumentMouseUp||(C.unbindDocumentMouseUp=z(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!=="BODY";)this.eventsToUnbind.push(z(a,"scroll",function(){delete c.chartPosition})),a=a.parentElement;R.hasTouch&&(this.eventsToUnbind.push(z(f,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(f,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),C.unbindDocumentTouchEnd||(C.unbindDocumentTouchEnd=z(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},C.prototype.setHoverChartIndex=function(){var c=this.chart,f=R.charts[w(C.hoverChartIndex,-1)];f&&f!==c&&f.pointer.onContainerMouseLeave({relatedTarget:c.container}),f&&f.mouseIsDown||(C.hoverChartIndex=c.index)},C.prototype.touch=function(c,f){var r=this.chart;if(this.setHoverChartIndex(),c.touches.length===1)if(c=this.normalize(c),r.isInsidePlot(c.chartX-r.plotLeft,c.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu){if(f&&this.runPointActions(c),c.type==="touchmove")var a=!!(f=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(f[0].chartX-c.chartX,2)+Math.pow(f[0].chartY-c.chartY,2));w(a,!0)&&this.pinch(c)}else f&&this.reset();else c.touches.length===2&&this.pinch(c)},C.prototype.touchSelect=function(c){return!(!this.chart.options.chart.zooming.singleTouch||!c.touches||c.touches.length!==1)},C.prototype.zoomOption=function(c){var f=this.chart,r=f.options.chart;f=f.inverted;var a=r.zooming.type||"";/touch/.test(c.type)&&(a=w(r.zooming.pinchType,a)),this.zoomX=c=/x/.test(a),this.zoomY=r=/y/.test(a),this.zoomHor=c&&!f||r&&f,this.zoomVert=r&&!f||c&&f,this.hasZoom=c||r},C}(),W}),B(et,"Core/MSPointer.js",[et["Core/Globals.js"],et["Core/Pointer.js"],et["Core/Utilities.js"]],function(W,R,H){function V(){var v=[];return v.item=function(w){return this[w]},y(g,function(w){v.push({pageX:w.pageX,pageY:w.pageY,target:w.target})}),v}function $(v,w,S,C){var c=U[R.hoverChartIndex||NaN];v.pointerType!=="touch"&&v.pointerType!==v.MSPOINTER_TYPE_TOUCH||!c||(c=c.pointer,C(v),c[w]({type:S,target:v.currentTarget,preventDefault:I,touches:V()}))}var Z=this&&this.__extends||function(){var v=function(w,S){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,c){C.__proto__=c}||function(C,c){for(var f in c)c.hasOwnProperty(f)&&(C[f]=c[f])},v(w,S)};return function(w,S){function C(){this.constructor=w}v(w,S),w.prototype=S===null?Object.create(S):(C.prototype=S.prototype,new C)}}(),U=W.charts,z=W.doc,I=W.noop,E=W.win,M=H.addEvent,k=H.css,y=H.objectEach,h=H.pick,u=H.removeEvent,g={},d=!!E.PointerEvent;return function(v){function w(){return v!==null&&v.apply(this,arguments)||this}return Z(w,v),w.isRequired=function(){return!(W.hasTouch||!E.PointerEvent&&!E.MSPointerEvent)},w.prototype.batchMSEvents=function(S){S(this.chart.container,d?"pointerdown":"MSPointerDown",this.onContainerPointerDown),S(this.chart.container,d?"pointermove":"MSPointerMove",this.onContainerPointerMove),S(z,d?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},w.prototype.destroy=function(){this.batchMSEvents(u),v.prototype.destroy.call(this)},w.prototype.init=function(S,C){v.prototype.init.call(this,S,C),this.hasZoom&&k(S.container,{"-ms-touch-action":"none","touch-action":"none"})},w.prototype.onContainerPointerDown=function(S){$(S,"onContainerTouchStart","touchstart",function(C){g[C.pointerId]={pageX:C.pageX,pageY:C.pageY,target:C.currentTarget}})},w.prototype.onContainerPointerMove=function(S){$(S,"onContainerTouchMove","touchmove",function(C){g[C.pointerId]={pageX:C.pageX,pageY:C.pageY},g[C.pointerId].target||(g[C.pointerId].target=C.currentTarget)})},w.prototype.onDocumentPointerUp=function(S){$(S,"onDocumentTouchEnd","touchend",function(C){delete g[C.pointerId]})},w.prototype.setDOMEvents=function(){var S=this.chart.tooltip;v.prototype.setDOMEvents.call(this),(this.hasZoom||h(S&&S.options.followTouchMove,!0))&&this.batchMSEvents(M)},w}(R)}),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(W,R,H,V,$,Z){var U=W.animObject,z=W.setAnimation,I=R.format,E=H.marginNames,M=$.distribute,k=Z.addEvent,y=Z.createElement,h=Z.css,u=Z.defined,g=Z.discardElement,d=Z.find,v=Z.fireEvent,w=Z.isNumber,S=Z.merge,C=Z.pick,c=Z.relativeLength,f=Z.stableSort,r=Z.syncTimeout;return W=function(){function a(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 a.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),k(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=k(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},a.prototype.setOptions=function(t){var i=C(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=S(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},a.prototype.update=function(t,i){var o=this.chart;this.setOptions(S(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,C(i,!0)&&o.redraw(),v(this,"afterUpdate")},a.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,s=o.label,n=o.line;if(o=o.symbol,e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var l=this.options;e=this.itemHiddenStyle.color,l=i?l.itemStyle.color:e;var b=i&&t.color||e,T=t.options&&t.options.marker,D={fill:b};s&&s.css({fill:l,color:l}),n&&n.attr({stroke:b}),o&&(T&&o.isMarker&&(D=t.pointAttribs(),i||(D.stroke=D.fill=e)),o.attr(D))}v(this,"afterColorizeItem",{item:t,visible:i})},a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},a.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,s=o.x;s=s===void 0?0:s,o=(o=o.y)===void 0?0:o;var n=this.options,l=n.symbolPadding,b=!n.rtl;n=t.checkbox,e&&e.element&&(l={translateX:b?s:this.legendWidth-s-2*l-4,translateY:o},e[u(e.translateY)?"animate":"attr"](l,void 0,function(){v(i,"afterPositionItem",{item:t})})),n&&(n.x=s,n.y=o)},a.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,s=["group","label","line","symbol"];e<s.length;e++){var n=s[e];o[n]&&(o[n]=o[n].destroy())}i&&g(i),t.legendItem=void 0},a.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},a.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(s){var n=s.checkbox;if(n){var l=e+o+n.y+(this.scrollOffset||0)+3;h(n,{left:t.translateX+s.checkboxOffset+n.x-20+"px",top:l+"px",display:this.proximate||l>e-6&&l<e+i-6?"":"none"})}},this)}},a.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},a.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)})},a.prototype.renderItem=function(t){var i=t.legendItem=t.legendItem||{},o=this.chart,e=o.renderer,s=this.options,n=this.symbolWidth,l=s.symbolPadding||0,b=this.itemStyle,T=this.itemHiddenStyle,D=s.layout==="horizontal"?C(s.itemDistance,20):0,p=!s.rtl,x=!t.series,A=!x&&t.series.drawLegendSymbol?t.series:t,N=A.options,_=this.createCheckboxForItem&&N&&N.showCheckbox,L=s.useHTML,O=t.options.className,j=i.label;N=n+l+D+(_?20:0),j||(i.group=e.g("legend-item").addClass("highcharts-"+A.type+"-series highcharts-color-"+t.colorIndex+(O?" "+O:"")+(x?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),i.label=j=e.text("",p?n+l:-l,this.baseline||0,L),o.styledMode||j.css(S(t.visible?b:T)),j.attr({align:p?"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=s.symbolHeight||this.fontMetrics.f,s.squareSymbol&&(this.symbolWidth=C(s.symbolWidth,Math.max(this.symbolHeight,16)),N=this.symbolWidth+l+D+(_?20:0),p&&j.attr("x",this.symbolWidth+l))),A.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,j,L)),_&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!o.styledMode&&b.width||j.css({width:(s.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=s.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))},a.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",s=t.itemHeight,n=this.itemMarginBottom,l=this.itemMarginTop,b=e?C(i.itemDistance,20):0,T=this.maxLegendWidth;i=i.alignColumns&&this.totalItemWidth>T?this.maxItemWidth:t.itemWidth;var D=t.legendItem||{};e&&this.itemX-o+i>T&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=l+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),D.x=this.itemX,D.y=this.itemY,e?this.itemX+=i:(this.itemY+=l+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):i)+o,this.offsetWidth)},a.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&C(o.showInLegend,!u(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},a.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)},a.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,l){n.test(s)&&!u(t[l])&&(o[E[l]]=Math.max(o[E[l]],o.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*e[l%2?"x":"y"]+C(e.margin,12)+i[l]+(o.titleOffset[l]||0)))})},a.prototype.proximatePositions=function(){var t=this.chart,i=[],o=this.options.align==="left";this.allItems.forEach(function(b){var T,D=o;if(b.yAxis){b.xAxis.options.reversed&&(D=!D),b.points&&(T=d(D?b.points:b.points.slice(0).reverse(),function(x){return w(x.plotY)})),D=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom;var p=b.yAxis.top-t.plotTop;b.visible?(T=T?T.plotY:b.yAxis.height,T+=p-.3*D):T=p+b.yAxis.height,i.push({target:T,size:D,item:b})}},this);for(var e,s=0,n=M(i,t.plotHeight);s<n.length;s++){var l=n[s];e=l.item.legendItem||{},w(l.pos)&&(e.y=t.plotTop-t.spacing[0]+l.pos)}},a.prototype.render=function(){var t=this.chart,i=t.renderer,o=this.options,e=this.padding,s=this.getAllItems(),n=this.group,l=this.box;this.itemX=e,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=c(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,n||(this.group=n=i.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(n),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),f(s,function(D,p){return(D.options&&D.options.legendIndex||0)-(p.options&&p.options.legendIndex||0)}),o.reversed&&s.reverse(),this.allItems=s,this.display=b=!!s.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,s.forEach(this.renderItem,this),s.forEach(this.layoutItem,this),s=(this.widthOption||this.offsetWidth)+e;var T=this.lastItemY+this.lastLineHeight+this.titleHeight;T=this.handleOverflow(T),T+=e,l||(this.box=l=i.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(n)),t.styledMode||l.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),0<s&&0<T&&l[l.placed?"animate":"attr"](l.crisp.call({},{x:0,y:0,width:s,height:T},l.strokeWidth())),n[b?"show":"hide"](),t.styledMode&&n.getStyle("display")==="none"&&(s=T=0),this.legendWidth=s,this.legendHeight=T,b&&this.align(),this.proximate||this.positionItems(),v(this,"afterRender")},a.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=S(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(S(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},a.prototype.handleOverflow=function(t){var i,o,e,s=this,n=this.chart,l=n.renderer,b=this.options,T=b.y,D=b.verticalAlign==="top",p=this.padding,x=b.maxHeight,A=b.navigation,N=C(A.animation,!0),_=A.arrowSize||12,L=this.pages,O=this.allItems,j=function(q){typeof q=="number"?G.attr({height:q}):G&&(s.clipRect=G.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=q?"rect("+p+"px,9999px,"+(p+q)+"px,0)":"auto")},Y=function(q){return s[q]=l.circle(0,0,1.3*_).translate(_/2,_/2).add(X),n.styledMode||s[q].attr("fill","rgba(0,0,0,0.0001)"),s[q]};T=n.spacingBox.height+(D?-T:T)-p;var X=this.nav,G=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(T/=2),x&&(T=Math.min(T,x)),L.length=0,t&&0<T&&t>T&&A.enabled!==!1?(this.clipHeight=i=Math.max(T-20-this.titleHeight-p,0),this.currentPage=C(this.currentPage,1),this.fullHeight=t,O.forEach(function(q,Q){q=(e=q.legendItem||{}).y||0;var J=Math.round(e.label.getBBox().height),rt=L.length;(!rt||q-L[rt-1]>i&&(o||q)!==L[rt-1])&&(L.push(o||q),rt++),e.pageIx=rt-1,o&&((O[Q-1].legendItem||{}).pageIx=rt-1),Q===O.length-1&&q+J-L[rt-1]>i&&J<=i&&(L.push(q),e.pageIx=rt),q!==o&&(o=q)}),G||(G=s.clipRect=l.clipRect(0,p,9999,0),s.contentGroup.clip(G)),j(i),X||(this.nav=X=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,_,_).add(X),Y("upTracker").on("click",function(){s.scroll(-1,N)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&A.style&&this.pager.css(A.style),this.pager.add(X),this.down=l.symbol("triangle-down",0,0,_,_).add(X),Y("downTracker").on("click",function(){s.scroll(1,N)})),s.scroll(0),t=T):X&&(j(),this.nav=X.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},a.prototype.scroll=function(t,i){var o=this,e=this.chart,s=this.pages,n=s.length,l=this.clipHeight,b=this.options.navigation,T=this.pager,D=this.padding,p=this.currentPage+t;p>n&&(p=n),0<p&&(i!==void 0&&z(i,e),this.nav.attr({translateX:D,translateY:l+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(x){x.attr({class:p===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),T.attr({text:p+"/"+n}),[this.down,this.downTracker].forEach(function(x){x.attr({x:18+this.pager.getBBox().width,class:p===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:p===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:p===1?"default":"pointer"}),this.down.attr({fill:p===n?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:p===n?"default":"pointer"})),this.scrollOffset=-s[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes(),t=U(C(i,e.renderer.globalAnimation,!0)),r(function(){v(o,"afterScroll",{currentPage:p})},t.duration))},a.prototype.setItemEvents=function(t,i,o){var e=this,s=t.legendItem||{},n=e.chart.renderer.boxWrapper,l=t instanceof V,b="highcharts-legend-"+(l?"point":"series")+"-active",T=e.chart.styledMode,D=function(x){e.allItems.forEach(function(A){t!==A&&[A].concat(A.linkedSeries||[]).forEach(function(N){N.setState(x,!l)})})},p=0;for(o=o?[i,s.symbol]:[s.group];p<o.length;p++)(s=o[p])&&s.on("mouseover",function(){t.visible&&D("inactive"),t.setState("hover"),t.visible&&n.addClass(b),T||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(S(t.visible?e.itemStyle:e.itemHiddenStyle)),D(""),n.removeClass(b),t.setState()}).on("click",function(x){var A=function(){t.setVisible&&t.setVisible(),D(t.visible?"inactive":"")};n.removeClass(b),x={browserEvent:x},t.firePointEvent?t.firePointEvent("legendItemClick",x,A):v(t,"legendItemClick",x,A)})},a.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),k(t.checkbox,"click",function(i){v(t.series||t,"checkboxClick",{checked:i.target.checked,item:t},function(){t.select()})})},a}(),W}),B(et,"Core/Series/SeriesRegistry.js",[et["Core/Globals.js"],et["Core/Defaults.js"],et["Core/Series/Point.js"],et["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.defaultOptions,U=V.extendClass,z=V.merge;return function(I){function E(M,k){var y=Z.plotOptions||{},h=k.defaultOptions,u=k.prototype;u.type=M,u.pointClass||(u.pointClass=H),h&&(y[M]=h),I.seriesTypes[M]=k}I.seriesTypes=W.seriesTypes,I.registerSeriesType=E,I.seriesType=function(M,k,y,h,u){var g=Z.plotOptions||{};return k=k||"",g[M]=z(g[k],y),E(M,U(I.seriesTypes[k]||function(){},h)),I.seriesTypes[M].prototype.type=M,u&&(I.seriesTypes[M].prototype.pointClass=U(H,u)),I.seriesTypes[M]}}($||($={})),$}),B(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(W,R,H,V,$,Z,U,z,I,E,M,k,y,h,u){var g=W.animate,d=W.animObject,v=W.setAnimation,w=H.defaultOptions,S=H.defaultTime,C=V.numberFormat,c=$.registerEventOptions,f=Z.charts,r=Z.doc,a=Z.marginNames,t=Z.svg,i=Z.win,o=M.seriesTypes,e=h.addEvent,s=h.attr,n=h.cleanRecursively,l=h.createElement,b=h.css,T=h.defined,D=h.discardElement,p=h.erase,x=h.error,A=h.extend,N=h.find,_=h.fireEvent,L=h.getStyle,O=h.isArray,j=h.isNumber,Y=h.isObject,X=h.isString,G=h.merge,q=h.objectEach,Q=h.pick,J=h.pInt,rt=h.relativeLength,lt=h.removeEvent,gt=h.splat,mt=h.syncTimeout,bt=h.uniqueKey;return W=function(){function yt(ht,it,st){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(ht,it,st)}return yt.chart=function(ht,it,st){return new yt(ht,it,st)},yt.prototype.getArgs=function(ht,it,st){X(ht)||ht.nodeName?(this.renderTo=ht,this.init(it,st)):this.init(ht,it)},yt.prototype.init=function(ht,it){var st=ht.plotOptions||{};_(this,"init",{args:arguments},function(){var dt=G(w,ht),vt=dt.chart;q(dt.plotOptions,function(xt,wt){Y(xt)&&(xt.tooltip=st[wt]&&G(st[wt].tooltip)||void 0)}),dt.tooltip.userOptions=ht.chart&&ht.chart.forExport&&ht.tooltip.userOptions||ht.tooltip,this.userOptions=ht,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=it,this.isResizing=0;var Ct=vt.zooming=vt.zooming||{};ht.chart&&!ht.chart.zooming&&(Ct.resetButton=vt.resetZoomButton),Ct.key=Q(Ct.key,vt.zoomKey),Ct.pinchType=Q(Ct.pinchType,vt.pinchType),Ct.singleTouch=Q(Ct.singleTouch,vt.zoomBySingleTouch),Ct.type=Q(Ct.type,vt.zoomType),this.options=dt,this.axes=[],this.series=[],this.time=ht.time&&Object.keys(ht.time).length?new y(ht.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++,c(this,vt),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,_(this,"afterInit"),this.firstRender()})},yt.prototype.initSeries=function(ht){var it=this.options.chart;it=ht.type||it.type||it.defaultSeriesType;var st=o[it];return st||x(17,!0,this,{missingModuleFor:it}),typeof(it=new st).init=="function"&&it.init(this,ht),it},yt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(ht){ht.points||ht.data||!ht.enabledDataSorting||ht.setData(ht.options.data,!1)})},yt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(ht,it){return ht.linkedSeries.length||it.linkedSeries.length?it.linkedSeries.length-ht.linkedSeries.length:0})},yt.prototype.orderSeries=function(ht){var it=this.series;ht=ht||0;for(var st=it.length;ht<st;++ht)it[ht]&&(it[ht].index=ht,it[ht].name=it[ht].getName())},yt.prototype.isInsidePlot=function(ht,it,st){st===void 0&&(st={});var dt=this.inverted,vt=this.plotBox,Ct=this.plotLeft,xt=this.plotTop,wt=this.scrollablePlotBox,Mt=0,St=0;st.visiblePlotOnly&&this.scrollingContainer&&(Mt=(St=this.scrollingContainer).scrollLeft,St=St.scrollTop);var Tt=st.series;if(vt=st.visiblePlotOnly&&wt||vt,ht={x:wt=st.inverted?it:ht,y:it=st.inverted?ht:it,isInsidePlot:!0,options:st},!st.ignoreX){var Lt=Tt&&(dt&&!this.polar?Tt.yAxis:Tt.xAxis)||{pos:Ct,len:1/0};(wt=st.paneCoordinates?Lt.pos+wt:Ct+wt)>=Math.max(Mt+Ct,Lt.pos)&&wt<=Math.min(Mt+Ct+vt.width,Lt.pos+Lt.len)||(ht.isInsidePlot=!1)}return!st.ignoreY&&ht.isInsidePlot&&(dt=st.axis&&!st.axis.isXAxis&&st.axis||Tt&&(dt?Tt.xAxis:Tt.yAxis)||{pos:xt,len:1/0},(st=st.paneCoordinates?dt.pos+it:xt+it)>=Math.max(St+xt,dt.pos)&&st<=Math.min(St+xt+vt.height,dt.pos+dt.len)||(ht.isInsidePlot=!1)),_(this,"afterIsInsidePlot",ht),ht.isInsidePlot},yt.prototype.redraw=function(ht){_(this,"beforeRedraw");var it=this.hasCartesianSeries?this.axes:this.colorAxis||[],st=this.series,dt=this.pointer,vt=this.legend,Ct=this.userOptions.legend,xt=this.renderer,wt=xt.isHidden(),Mt=[],St=this.isDirtyBox,Tt=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&ht,this),wt&&this.temporaryDisplay(),this.layOutTitles(),ht=st.length;ht--;){var Lt=st[ht];if(Lt.options.stacking||Lt.options.centerInCategory){var Pt=!0;if(Lt.isDirty){var Dt=!0;break}}}if(Dt)for(ht=st.length;ht--;)(Lt=st[ht]).options.stacking&&(Lt.isDirty=!0);st.forEach(function(jt){jt.isDirty&&(jt.options.legendType==="point"?(typeof jt.updateTotals=="function"&&jt.updateTotals(),Tt=!0):Ct&&(Ct.labelFormatter||Ct.labelFormat)&&(Tt=!0)),jt.isDirtyData&&_(jt,"updatedData")}),Tt&&vt&&vt.options.enabled&&(vt.render(),this.isDirtyLegend=!1),Pt&&this.getStacks(),it.forEach(function(jt){jt.updateNames(),jt.setScale()}),this.getMargins(),it.forEach(function(jt){jt.isDirty&&(St=!0)}),it.forEach(function(jt){var Ot=jt.min+","+jt.max;jt.extKey!==Ot&&(jt.extKey=Ot,Mt.push(function(){_(jt,"afterSetExtremes",A(jt.eventArgs,jt.getExtremes())),delete jt.eventArgs})),(St||Pt)&&jt.redraw()}),St&&this.drawChartBox(),_(this,"predraw"),st.forEach(function(jt){(St||jt.isDirty)&&jt.visible&&jt.redraw(),jt.isDirtyData=!1}),dt&&dt.reset(!0),xt.draw(),_(this,"redraw"),_(this,"render"),wt&&this.temporaryDisplay(!0),Mt.forEach(function(jt){jt.call()})},yt.prototype.get=function(ht){function it(Ct){return Ct.id===ht||Ct.options&&Ct.options.id===ht}for(var st=this.series,dt=N(this.axes,it)||N(this.series,it),vt=0;!dt&&vt<st.length;vt++)dt=N(st[vt].points||[],it);return dt},yt.prototype.getAxes=function(){var ht=this,it=this.options,st=it.xAxis=gt(it.xAxis||{});it=it.yAxis=gt(it.yAxis||{}),_(this,"getAxes"),st.forEach(function(dt,vt){dt.index=vt,dt.isX=!0}),it.forEach(function(dt,vt){dt.index=vt}),st.concat(it).forEach(function(dt){new R(ht,dt)}),_(this,"afterGetAxes")},yt.prototype.getSelectedPoints=function(){return this.series.reduce(function(ht,it){return it.getPointsCollection().forEach(function(st){Q(st.selectedStaging,st.selected)&&ht.push(st)}),ht},[])},yt.prototype.getSelectedSeries=function(){return this.series.filter(function(ht){return ht.selected})},yt.prototype.setTitle=function(ht,it,st){this.applyDescription("title",ht),this.applyDescription("subtitle",it),this.applyDescription("caption",void 0),this.layOutTitles(st)},yt.prototype.applyDescription=function(ht,it){var st=this,dt=ht==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};dt=this.options[ht]=G(!this.styledMode&&{style:dt},this.options[ht],it);var vt=this[ht];vt&&it&&(this[ht]=vt=vt.destroy()),dt&&!vt&&((vt=this.renderer.text(dt.text,0,0,dt.useHTML).attr({align:dt.align,class:"highcharts-"+ht,zIndex:dt.zIndex||4}).add()).update=function(Ct){st[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[ht]](Ct)},this.styledMode||vt.css(dt.style),this[ht]=vt)},yt.prototype.layOutTitles=function(ht){var it=[0,0,0],st=this.renderer,dt=this.spacingBox;["title","subtitle","caption"].forEach(function(Ct){var xt,wt=this[Ct],Mt=this.options[Ct],St=Mt.verticalAlign||"top";if(Ct=Ct==="title"?St==="top"?-3:0:St==="top"?it[0]+2:0,wt){this.styledMode||(xt=Mt.style&&Mt.style.fontSize),xt=st.fontMetrics(xt,wt).b,wt.css({width:(Mt.width||dt.width+(Mt.widthAdjust||0))+"px"});var Tt=Math.round(wt.getBBox(Mt.useHTML).height);wt.align(A({y:St==="bottom"?xt:Ct+xt,height:Tt},Mt),!1,"spacingBox"),Mt.floating||(St==="top"?it[0]=Math.ceil(it[0]+Tt):St==="bottom"&&(it[2]=Math.ceil(it[2]+Tt)))}},this),it[0]&&(this.options.title.verticalAlign||"top")==="top"&&(it[0]+=this.options.title.margin),it[2]&&this.options.caption.verticalAlign==="bottom"&&(it[2]+=this.options.caption.margin);var vt=!this.titleOffset||this.titleOffset.join(",")!==it.join(",");this.titleOffset=it,_(this,"afterLayOutTitles"),!this.isDirtyBox&&vt&&(this.isDirtyBox=this.isDirtyLegend=vt,this.hasRendered&&Q(ht,!0)&&this.isDirtyBox&&this.redraw())},yt.prototype.getChartSize=function(){var ht=this.options.chart,it=ht.width;ht=ht.height;var st=this.renderTo;T(it)||(this.containerWidth=L(st,"width")),T(ht)||(this.containerHeight=L(st,"height")),this.chartWidth=Math.max(0,it||this.containerWidth||600),this.chartHeight=Math.max(0,rt(ht,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},yt.prototype.temporaryDisplay=function(ht){var it=this.renderTo;if(ht)for(;it&&it.style;)it.hcOrigStyle&&(b(it,it.hcOrigStyle),delete it.hcOrigStyle),it.hcOrigDetached&&(r.body.removeChild(it),it.hcOrigDetached=!1),it=it.parentNode;else for(;it&&it.style&&(r.body.contains(it)||it.parentNode||(it.hcOrigDetached=!0,r.body.appendChild(it)),(L(it,"display",!1)==="none"||it.hcOricDetached)&&(it.hcOrigStyle={display:it.style.display,height:it.style.height,overflow:it.style.overflow},ht={display:"block",overflow:"hidden"},it!==this.renderTo&&(ht.height=0),b(it,ht),it.offsetWidth||it.style.setProperty("display","block","important")),(it=it.parentNode)!==r.body););},yt.prototype.setClassName=function(ht){this.container.className="highcharts-container "+(ht||"")},yt.prototype.getContainer=function(){var ht,it=this.options,st=it.chart,dt=bt(),vt=this.renderTo;vt||(this.renderTo=vt=st.renderTo),X(vt)&&(this.renderTo=vt=r.getElementById(vt)),vt||x(13,!0,this);var Ct=J(s(vt,"data-highcharts-chart"));j(Ct)&&f[Ct]&&f[Ct].hasRendered&&f[Ct].destroy(),s(vt,"data-highcharts-chart",this.index),vt.innerHTML=u.emptyHTML,st.skipClone||vt.offsetWidth||this.temporaryDisplay(),this.getChartSize(),Ct=this.chartWidth;var xt=this.chartHeight;if(b(vt,{overflow:"hidden"}),this.styledMode||(ht=A({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"},st.style||{})),this.container=dt=l("div",{id:dt},ht,vt),this._cursor=dt.style.cursor,this.renderer=new(st.renderer||!t?E.getRendererType(st.renderer):k)(dt,Ct,xt,void 0,st.forExport,it.exporting&&it.exporting.allowHTML,this.styledMode),v(void 0,this),this.setClassName(st.className),this.styledMode)for(var wt in it.defs)this.renderer.definition(it.defs[wt]);else this.renderer.setStyle(st.style);this.renderer.chartIndex=this.index,_(this,"afterGetContainer")},yt.prototype.getMargins=function(ht){var it=this.spacing,st=this.margin,dt=this.titleOffset;this.resetMargins(),dt[0]&&!T(st[0])&&(this.plotTop=Math.max(this.plotTop,dt[0]+it[0])),dt[2]&&!T(st[2])&&(this.marginBottom=Math.max(this.marginBottom,dt[2]+it[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(st,it),_(this,"getMargins"),ht||this.getAxisMargins()},yt.prototype.getAxisMargins=function(){var ht=this,it=ht.axisOffset=[0,0,0,0],st=ht.colorAxis,dt=ht.margin,vt=function(Ct){Ct.forEach(function(xt){xt.visible&&xt.getOffset()})};ht.hasCartesianSeries?vt(ht.axes):st&&st.length&&vt(st),a.forEach(function(Ct,xt){T(dt[xt])||(ht[Ct]+=it[xt])}),ht.setChartSize()},yt.prototype.reflow=function(ht){var it=this,st=it.options.chart,dt=it.renderTo,vt=T(st.width)&&T(st.height),Ct=st.width||L(dt,"width");st=st.height||L(dt,"height"),dt=ht?ht.target:i,delete it.pointer.chartPosition,vt||it.isPrinting||!Ct||!st||dt!==i&&dt!==r||(Ct===it.containerWidth&&st===it.containerHeight||(h.clearTimeout(it.reflowTimeout),it.reflowTimeout=mt(function(){it.container&&it.setSize(void 0,void 0,!1)},ht?100:0)),it.containerWidth=Ct,it.containerHeight=st)},yt.prototype.setReflow=function(ht){var it=this;ht===!1||this.unbindReflow?ht===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(st){it.options&&it.reflow(st)}),e(this,"destroy",this.unbindReflow))},yt.prototype.setSize=function(ht,it,st){var dt=this,vt=dt.renderer;dt.isResizing+=1,v(st,dt),st=vt.globalAnimation,dt.oldChartHeight=dt.chartHeight,dt.oldChartWidth=dt.chartWidth,ht!==void 0&&(dt.options.chart.width=ht),it!==void 0&&(dt.options.chart.height=it),dt.getChartSize(),dt.styledMode||(st?g:b)(dt.container,{width:dt.chartWidth+"px",height:dt.chartHeight+"px"},st),dt.setChartSize(!0),vt.setSize(dt.chartWidth,dt.chartHeight,st),dt.axes.forEach(function(Ct){Ct.isDirty=!0,Ct.setScale()}),dt.isDirtyLegend=!0,dt.isDirtyBox=!0,dt.layOutTitles(),dt.getMargins(),dt.redraw(st),dt.oldChartHeight=null,_(dt,"resize"),mt(function(){dt&&_(dt,"endResize",null,function(){--dt.isResizing})},d(st).duration)},yt.prototype.setChartSize=function(ht){var it,st,dt,vt,Ct=this.inverted,xt=this.renderer,wt=this.chartWidth,Mt=this.chartHeight,St=this.options.chart,Tt=this.spacing,Lt=this.clipOffset;this.plotLeft=it=Math.round(this.plotLeft),this.plotTop=st=Math.round(this.plotTop),this.plotWidth=dt=Math.max(0,Math.round(wt-it-this.marginRight)),this.plotHeight=vt=Math.max(0,Math.round(Mt-st-this.marginBottom)),this.plotSizeX=Ct?vt:dt,this.plotSizeY=Ct?dt:vt,this.plotBorderWidth=St.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:it,y:st,width:dt,height:vt},Ct=2*Math.floor(this.plotBorderWidth/2),wt=Math.ceil(Math.max(Ct,Lt[3])/2),Mt=Math.ceil(Math.max(Ct,Lt[0])/2),this.clipBox={x:wt,y:Mt,width:Math.floor(this.plotSizeX-Math.max(Ct,Lt[1])/2-wt),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(Ct,Lt[2])/2-Mt))},ht||(this.axes.forEach(function(Pt){Pt.setAxisSize(),Pt.setAxisTranslation()}),xt.alignElements()),_(this,"afterSetChartSize",{skipAxes:ht})},yt.prototype.resetMargins=function(){_(this,"resetMargins");var ht=this,it=ht.options.chart;["margin","spacing"].forEach(function(st){var dt=it[st],vt=Y(dt)?dt:[dt,dt,dt,dt];["Top","Right","Bottom","Left"].forEach(function(Ct,xt){ht[st][xt]=Q(it[st+Ct],vt[xt])})}),a.forEach(function(st,dt){ht[st]=Q(ht.margin[dt],ht.spacing[dt])}),ht.axisOffset=[0,0,0,0],ht.clipOffset=[0,0,0,0]},yt.prototype.drawChartBox=function(){var ht,it=this.options.chart,st=this.renderer,dt=this.chartWidth,vt=this.chartHeight,Ct=this.styledMode,xt=this.plotBGImage,wt=it.backgroundColor,Mt=it.plotBackgroundColor,St=it.plotBackgroundImage,Tt=this.plotLeft,Lt=this.plotTop,Pt=this.plotWidth,Dt=this.plotHeight,jt=this.plotBox,Ot=this.clipRect,It=this.clipBox,Nt=this.chartBackground,Zt=this.plotBackground,zt=this.plotBorder,Ht="animate";if(Nt||(this.chartBackground=Nt=st.rect().addClass("highcharts-background").add(),Ht="attr"),Ct)var Kt=ht=Nt.strokeWidth();else ht=(Kt=it.borderWidth||0)+(it.shadow?8:0),wt={fill:wt||"none"},(Kt||Nt["stroke-width"])&&(wt.stroke=it.borderColor,wt["stroke-width"]=Kt),Nt.attr(wt).shadow(it.shadow);Nt[Ht]({x:ht/2,y:ht/2,width:dt-ht-Kt%2,height:vt-ht-Kt%2,r:it.borderRadius}),Ht="animate",Zt||(Ht="attr",this.plotBackground=Zt=st.rect().addClass("highcharts-plot-background").add()),Zt[Ht](jt),Ct||(Zt.attr({fill:Mt||"none"}).shadow(it.plotShadow),St&&(xt?(St!==xt.attr("href")&&xt.attr("href",St),xt.animate(jt)):this.plotBGImage=st.image(St,Tt,Lt,Pt,Dt).add())),Ot?Ot.animate({width:It.width,height:It.height}):this.clipRect=st.clipRect(It),Ht="animate",zt||(Ht="attr",this.plotBorder=zt=st.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Ct||zt.attr({stroke:it.plotBorderColor,"stroke-width":it.plotBorderWidth||0,fill:"none"}),zt[Ht](zt.crisp({x:Tt,y:Lt,width:Pt,height:Dt},-zt.strokeWidth())),this.isDirtyBox=!1,_(this,"afterDrawChartBox")},yt.prototype.propFromSeries=function(){var ht,it,st,dt=this,vt=dt.options.chart,Ct=dt.options.series;["inverted","angular","polar"].forEach(function(xt){for(it=o[vt.type||vt.defaultSeriesType],st=vt[xt]||it&&it.prototype[xt],ht=Ct&&Ct.length;!st&&ht--;)(it=o[Ct[ht].type])&&it.prototype[xt]&&(st=!0);dt[xt]=st})},yt.prototype.linkSeries=function(){var ht=this,it=ht.series;it.forEach(function(st){st.linkedSeries.length=0}),it.forEach(function(st){var dt=st.options.linkedTo;X(dt)&&(dt=dt===":previous"?ht.series[st.index-1]:ht.get(dt))&&dt.linkedParent!==st&&(dt.linkedSeries.push(st),st.linkedParent=dt,dt.enabledDataSorting&&st.setDataSortingOptions(),st.visible=Q(st.options.visible,dt.options.visible,st.visible))}),_(this,"afterLinkSeries")},yt.prototype.renderSeries=function(){this.series.forEach(function(ht){ht.translate(),ht.render()})},yt.prototype.renderLabels=function(){var ht=this,it=ht.options.labels;it.items&&it.items.forEach(function(st){var dt=A(it.style,st.style),vt=J(dt.left)+ht.plotLeft,Ct=J(dt.top)+ht.plotTop+12;delete dt.left,delete dt.top,ht.renderer.text(st.html,vt,Ct).attr({zIndex:2}).css(dt).add()})},yt.prototype.render=function(){var ht=this.axes,it=this.colorAxis,st=this.renderer,dt=this.options,vt=function(St){St.forEach(function(Tt){Tt.visible&&Tt.render()})},Ct=0;this.setTitle(),this.legend=new U(this,dt.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),dt=this.plotWidth,ht.some(function(St){if(St.horiz&&St.visible&&St.options.labels.enabled&&St.series.length)return Ct=21,!0});var xt=this.plotHeight=Math.max(this.plotHeight-Ct,0);ht.forEach(function(St){St.setScale()}),this.getAxisMargins();var wt=1.1<dt/this.plotWidth,Mt=1.05<xt/this.plotHeight;(wt||Mt)&&(ht.forEach(function(St){(St.horiz&&wt||!St.horiz&&Mt)&&St.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?vt(ht):it&&it.length&&vt(it),this.seriesGroup||(this.seriesGroup=st.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},yt.prototype.addCredits=function(ht){var it=this,st=G(!0,this.options.credits,ht);st.enabled&&!this.credits&&(this.credits=this.renderer.text(st.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){st.href&&(i.location.href=st.href)}).attr({align:st.position.align,zIndex:8}),it.styledMode||this.credits.css(st.style),this.credits.add().align(st.position),this.credits.update=function(dt){it.credits=it.credits.destroy(),it.addCredits(dt)})},yt.prototype.destroy=function(){var ht,it=this,st=it.axes,dt=it.series,vt=it.container,Ct=vt&&vt.parentNode;for(_(it,"destroy"),it.renderer.forExport?p(f,it):f[it.index]=void 0,Z.chartCount--,it.renderTo.removeAttribute("data-highcharts-chart"),lt(it),ht=st.length;ht--;)st[ht]=st[ht].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),ht=dt.length;ht--;)dt[ht]=dt[ht].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(xt){var wt=it[xt];wt&&wt.destroy&&(it[xt]=wt.destroy())}),vt&&(vt.innerHTML=u.emptyHTML,lt(vt),Ct&&D(vt)),q(it,function(xt,wt){delete it[wt]})},yt.prototype.firstRender=function(){var ht=this,it=ht.options;ht.isReadyToRender&&!ht.isReadyToRender()||(ht.getContainer(),ht.resetMargins(),ht.setChartSize(),ht.propFromSeries(),ht.getAxes(),(O(it.series)?it.series:[]).forEach(function(st){ht.initSeries(st)}),ht.linkSeries(),ht.setSeriesData(),_(ht,"beforeRender"),I&&(z.isRequired()?ht.pointer=new z(ht,it):ht.pointer=new I(ht,it)),ht.render(),ht.pointer.getChartPosition(),ht.renderer.imgCount||ht.hasLoaded||ht.onload(),ht.temporaryDisplay(!0))},yt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(ht){ht&&this.index!==void 0&&ht.apply(this,[this])},this),_(this,"load"),_(this,"render"),T(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},yt.prototype.warnIfA11yModuleNotLoaded=function(){var ht=this.options,it=this.title;ht&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(it&&it.element.textContent||"").replace(/</g,"<")}),ht.accessibility&&ht.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(ht,it,st){var dt,vt=this;return ht&&(it=Q(it,!0),_(vt,"addSeries",{options:ht},function(){dt=vt.initSeries(ht),vt.isDirtyLegend=!0,vt.linkSeries(),dt.enabledDataSorting&&dt.setData(ht.data,!1),_(vt,"afterAddSeries",{series:dt}),it&&vt.redraw(st)})),dt},yt.prototype.addAxis=function(ht,it,st,dt){return this.createAxis(it?"xAxis":"yAxis",{axis:ht,redraw:st,animation:dt})},yt.prototype.addColorAxis=function(ht,it,st){return this.createAxis("colorAxis",{axis:ht,redraw:it,animation:st})},yt.prototype.createAxis=function(ht,it){return ht=new R(this,G(it.axis,{index:this[ht].length,isX:ht==="xAxis"})),Q(it.redraw,!0)&&this.redraw(it.animation),ht},yt.prototype.showLoading=function(ht){var it=this,st=it.options,dt=st.loading,vt=function(){Ct&&b(Ct,{left:it.plotLeft+"px",top:it.plotTop+"px",width:it.plotWidth+"px",height:it.plotHeight+"px"})},Ct=it.loadingDiv,xt=it.loadingSpan;Ct||(it.loadingDiv=Ct=l("div",{className:"highcharts-loading highcharts-loading-hidden"},null,it.container)),xt||(it.loadingSpan=xt=l("span",{className:"highcharts-loading-inner"},null,Ct),e(it,"redraw",vt)),Ct.className="highcharts-loading",u.setElementHTML(xt,Q(ht,st.lang.loading,"")),it.styledMode||(b(Ct,A(dt.style,{zIndex:10})),b(xt,dt.labelStyle),it.loadingShown||(b(Ct,{opacity:0,display:""}),g(Ct,{opacity:dt.style.opacity||.5},{duration:dt.showDuration||0}))),it.loadingShown=!0,vt()},yt.prototype.hideLoading=function(){var ht=this.options,it=this.loadingDiv;it&&(it.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(it,{opacity:0},{duration:ht.loading.hideDuration||100,complete:function(){b(it,{display:"none"})}})),this.loadingShown=!1},yt.prototype.update=function(ht,it,st,dt){var vt,Ct,xt=this,wt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Mt=ht.isResponsiveOptions,St=[];_(xt,"update",{options:ht}),Mt||xt.setResponsive(!1,!0),ht=n(ht,xt.options),xt.userOptions=G(xt.userOptions,ht);var Tt=ht.chart;if(Tt){if(G(!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 Lt=!0}"alignTicks"in Tt&&(Lt=!0),"events"in Tt&&c(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&&ht.colors&&(this.options.colors=ht.colors),ht.time&&(this.time===S&&(this.time=new y(ht.time)),G(!0,xt.options.time,ht.time)),q(ht,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&&G(!0,xt.options[Dt],ht[Dt]),Dt!=="chart"&&xt.propsRequireUpdateSeries.indexOf(Dt)!==-1&&(vt=!0)}),this.collectionsWithUpdate.forEach(function(Pt){if(ht[Pt]){var Dt=[];xt[Pt].forEach(function(jt,Ot){jt.options.isInternal||Dt.push(Q(jt.options.index,Ot))}),gt(ht[Pt]).forEach(function(jt,Ot){var It,Nt=T(jt.id);Nt&&(It=xt.get(jt.id)),!It&&xt[Pt]&&(It=xt[Pt][Dt?Dt[Ot]:Ot])&&Nt&&T(It.options.id)&&(It=void 0),It&&It.coll===Pt&&(It.update(jt,!1),st&&(It.touched=!0)),!It&&st&&xt.collectionsWithInit[Pt]&&(xt.collectionsWithInit[Pt][0].apply(xt,[jt].concat(xt.collectionsWithInit[Pt][1]||[]).concat([!1])).touched=!0)}),st&&xt[Pt].forEach(function(jt){jt.touched||jt.options.isInternal?delete jt.touched:St.push(jt)})}}),St.forEach(function(Pt){Pt.chart&&Pt.remove&&Pt.remove(!1)}),Lt&&xt.axes.forEach(function(Pt){Pt.update({},!1)}),vt&&xt.getSeriesOrderByLinks().forEach(function(Pt){Pt.chart&&Pt.update({},!1)},this),Lt=Tt&&Tt.width,Tt=Tt&&(X(Tt.height)?rt(Tt.height,Lt||xt.chartWidth):Tt.height),Ct||j(Lt)&&Lt!==xt.chartWidth||j(Tt)&&Tt!==xt.chartHeight?xt.setSize(Lt,Tt,dt):Q(it,!0)&&xt.redraw(dt),_(xt,"afterUpdate",{options:ht,redraw:it,animation:dt})},yt.prototype.setSubtitle=function(ht,it){this.applyDescription("subtitle",ht),this.layOutTitles(it)},yt.prototype.setCaption=function(ht,it){this.applyDescription("caption",ht),this.layOutTitles(it)},yt.prototype.showResetZoom=function(){function ht(){it.zoomOut()}var it=this,st=w.lang,dt=it.options.chart.zooming.resetButton,vt=dt.theme,Ct=dt.relativeTo==="chart"||dt.relativeTo==="spacingBox"?null:"scrollablePlotBox";_(this,"beforeShowResetZoom",null,function(){it.resetZoomButton=it.renderer.button(st.resetZoom,null,null,ht,vt).attr({align:dt.position.align,title:st.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(dt.position,!1,Ct)}),_(this,"afterShowResetZoom")},yt.prototype.zoomOut=function(){_(this,"selection",{resetSelection:!0},this.zoom)},yt.prototype.zoom=function(ht){var it,st=this,dt=st.pointer,vt=!1;!ht||ht.resetSelection?(st.axes.forEach(function(xt){it=xt.zoom()}),dt.initiated=!1):ht.xAxis.concat(ht.yAxis).forEach(function(xt){var wt=xt.axis;(dt[wt.isXAxis?"zoomX":"zoomY"]&&T(dt.mouseDownX)&&T(dt.mouseDownY)&&st.isInsidePlot(dt.mouseDownX-st.plotLeft,dt.mouseDownY-st.plotTop,{axis:wt})||!T(st.inverted?dt.mouseDownX:dt.mouseDownY))&&(it=wt.zoom(xt.min,xt.max),wt.displayBtn&&(vt=!0))});var Ct=st.resetZoomButton;vt&&!Ct?st.showResetZoom():!vt&&Y(Ct)&&(st.resetZoomButton=Ct.destroy()),it&&st.redraw(Q(st.options.chart.animation,ht&&ht.animation,100>st.pointCount))},yt.prototype.pan=function(ht,it){var st=this,dt=st.hoverPoints;it=typeof it=="object"?it:{enabled:it,type:"x"};var vt=st.options.chart;vt&&vt.panning&&(vt.panning=it);var Ct,xt=it.type;_(this,"pan",{originalEvent:ht},function(){dt&&dt.forEach(function(St){St.setState()});var wt=st.xAxis;xt==="xy"?wt=wt.concat(st.yAxis):xt==="y"&&(wt=st.yAxis);var Mt={};wt.forEach(function(St){if(St.options.panningEnabled&&!St.options.isInternal){var Tt=St.horiz,Lt=ht[Tt?"chartX":"chartY"],Pt=st[Tt=Tt?"mouseDownX":"mouseDownY"],Dt=St.minPointOffset||0,jt=St.reversed&&!st.inverted||!St.reversed&&st.inverted?-1:1,Ot=St.getExtremes(),It=St.toValue(Pt-Lt,!0)+Dt*jt,Nt=St.toValue(Pt+St.len-Lt,!0)-(Dt*jt||St.isXAxis&&St.pointRangePadding||0),Zt=Nt<It;jt=St.hasVerticalPanning(),Pt=Zt?Nt:It,It=Zt?It:Nt;var zt=St.panningState;!jt||St.isXAxis||zt&&!zt.isDirty||St.series.forEach(function(Ht){var Kt=Ht.getProcessedData(!0);Kt=Ht.getExtremes(Kt.yData,!0),zt||(zt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(Kt.dataMin)&&j(Kt.dataMax)&&(zt.startMin=Math.min(Q(Ht.options.threshold,1/0),Kt.dataMin,zt.startMin),zt.startMax=Math.max(Q(Ht.options.threshold,-1/0),Kt.dataMax,zt.startMax))}),jt=Math.min(Q(zt&&zt.startMin,Ot.dataMin),Dt?Ot.min:St.toValue(St.toPixels(Ot.min)-St.minPixelPadding)),Nt=Math.max(Q(zt&&zt.startMax,Ot.dataMax),Dt?Ot.max:St.toValue(St.toPixels(Ot.max)+St.minPixelPadding)),St.panningState=zt,St.isOrdinal||(0<(Dt=jt-Pt)&&(It+=Dt,Pt=jt),0<(Dt=It-Nt)&&(It=Nt,Pt-=Dt),St.series.length&&Pt!==Ot.min&&It!==Ot.max&&Pt>=jt&&It<=Nt&&(St.setExtremes(Pt,It,!1,!1,{trigger:"pan"}),!st.resetZoomButton&&Pt!==jt&&It!==Nt&&xt.match("y")&&(st.showResetZoom(),St.displayBtn=!1),Ct=!0),Mt[Tt]=Lt)}}),q(Mt,function(St,Tt){st[Tt]=St}),Ct&&st.redraw(!1),b(st.container,{cursor:"move"})})},yt}(),A(W.prototype,{callbacks:[],collectionsWithInit:{xAxis:[W.prototype.addAxis,[!0]],yAxis:[W.prototype.addAxis,[!1]],series:[W.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(" ")}),W}),B(et,"Core/Legend/LegendSymbol.js",[et["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.merge,$=W.pick;return function(Z){Z.drawLineMarker=function(U){var z=this.legendItem=this.legendItem||{},I=this.options,E=U.symbolWidth,M=U.symbolHeight,k=M/2,y=this.chart.renderer,h=z.group;U=U.baseline-Math.round(.3*U.fontMetrics.b);var u={},g=I.marker,d=0;this.chart.styledMode||(u={"stroke-width":Math.min(I.lineWidth||0,24)},I.dashStyle?u.dashstyle=I.dashStyle:I.linecap!=="square"&&(u["stroke-linecap"]="round")),z.line=y.path().addClass("highcharts-graph").attr(u).add(h),u["stroke-linecap"]&&(d=Math.min(z.line.strokeWidth(),E)/2),z.line.attr({d:[["M",d,U],["L",E-d,U]]}),g&&g.enabled!==!1&&E&&(I=Math.min($(g.radius,k),k),this.symbol.indexOf("url")===0&&(g=V(g,{width:M,height:M}),I=0),z.symbol=z=y.symbol(this.symbol,E/2-I,U-I,2*I,2*I,H({context:"legend"},g)).addClass("highcharts-point").add(h),z.isMarker=!0)},Z.drawRectangle=function(U,z){z=z.legendItem||{};var I=U.symbolHeight,E=U.options.squareSymbol;z.symbol=this.chart.renderer.rect(E?(U.symbolWidth-I)/2:0,U.baseline-I+1,E?I:U.symbolWidth,I,$(U.options.symbolRadius,I/2)).addClass("highcharts-point").attr({zIndex:3}).add(z.group)}}(R||(R={})),R}),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 W=this.series.chart.numberFormatter;return typeof this.y!="number"?"":W(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"}}),B(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(W,R,H,V,$,Z,U,z,I,E){var M=W.animObject,k=W.setAnimation,y=R.defaultOptions,h=H.registerEventOptions,u=V.hasTouch,g=V.svg,d=V.win,v=z.seriesTypes,w=E.arrayMax,S=E.arrayMin,C=E.clamp,c=E.cleanRecursively,f=E.correctFloat,r=E.defined,a=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,s=E.getNestedProperty,n=E.isArray,l=E.isNumber,b=E.isString,T=E.merge,D=E.objectEach,p=E.pick,x=E.removeEvent,A=E.splat,N=E.syncTimeout;return W=function(){function _(){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 _.prototype.init=function(L,O){e(this,"init",{options:O});var j=this,Y=L.series;this.eventsToUnbind=[],j.chart=L,j.options=j.setOptions(O),O=j.options,j.linkedSeries=[],j.bindAxes(),i(j,{name:O.name,state:"",visible:O.visible!==!1,selected:O.selected===!0}),h(this,O);var X,G=O.events;(G&&G.click||O.point&&O.point.events&&O.point.events.click||O.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=p(X&&X._i,-1)+1,j.opacity=j.options.opacity,L.orderSeries(this.insert(Y)),O.dataSorting&&O.dataSorting.enabled?j.setDataSortingOptions():j.points||j.data||j.setData(O.data,!1),e(this,"afterInit")},_.prototype.is=function(L){return v[L]&&this instanceof v[L]},_.prototype.insert=function(L){var O,j=this.options.index;if(l(j)){for(O=L.length;O--;)if(j>=p(L[O].options.index,L[O]._i)){L.splice(O+1,0,this);break}O===-1&&L.unshift(this),O+=1}else L.push(this);return p(O,L.length-1)},_.prototype.bindAxes=function(){var L,O=this,j=O.options,Y=O.chart;e(this,"bindAxes",null,function(){(O.axisTypes||[]).forEach(function(X){var G=0;Y[X].forEach(function(q){L=q.options,(j[X]===G&&!L.isInternal||j[X]!==void 0&&j[X]===L.id||j[X]===void 0&&L.index===0)&&(O.insert(q.series),O[X]=q,q.isDirty=!0),L.isInternal||G++}),O[X]||O.optionalAxis===X||t(18,!0,Y)})}),e(this,"afterBindAxes")},_.prototype.updateParallelArrays=function(L,O){var j=L.series,Y=arguments,X=l(O)?function(G){var q=G==="y"&&j.toYData?j.toYData(L):L[G];j[G+"Data"][O]=q}:function(G){Array.prototype[O].apply(j[G+"Data"],Array.prototype.slice.call(Y,2))};j.parallelArrays.forEach(X)},_.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&0<this.yData.length},_.prototype.autoIncrement=function(L){var O,j=this.options,Y=j.pointIntervalUnit,X=j.relativeXValue,G=this.chart.time,q=this.xIncrement;return q=p(q,j.pointStart,0),this.pointInterval=O=p(this.pointInterval,j.pointInterval,1),X&&l(L)&&(O*=L),Y&&(j=new G.Date(q),Y==="day"?G.set("Date",j,G.get("Date",j)+O):Y==="month"?G.set("Month",j,G.get("Month",j)+O):Y==="year"&&G.set("FullYear",j,G.get("FullYear",j)+O),O=j.getTime()-q),X&&l(L)?q+O:(this.xIncrement=q+O,q)},_.prototype.setDataSortingOptions=function(){var L=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(L.pointRange)||(L.pointRange=1)},_.prototype.setOptions=function(L){var O=this.chart,j=O.options,Y=j.plotOptions,X=O.userOptions||{};L=T(L),O=O.styledMode;var G={plotOptions:Y,userOptions:L};e(this,"setOptions",G);var q=G.plotOptions[this.type],Q=X.plotOptions||{};return this.userOptions=G.userOptions,X=T(q,Y.series,X.plotOptions&&X.plotOptions[this.type],L),this.tooltipOptions=T(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=p(L.stickyTracking,Q[this.type]&&Q[this.type].stickyTracking,Q.series&&Q.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"},O||(j.color=X.negativeColor,j.fillColor=X.negativeFillColor),Y.push(j)),Y.length&&r(Y[Y.length-1].value)&&Y.push(O?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:X}),X},_.prototype.getName=function(){return p(this.options.name,"Series "+(this.index+1))},_.prototype.getCyclic=function(L,O,j){var Y=this.chart,X=this.userOptions,G=L+"Index",q=L+"Counter",Q=j?j.length:p(Y.options.chart[L+"Count"],Y[L+"Count"]);if(!O){var J=p(X[G],X["_"+G]);r(J)||(Y.series.length||(Y[q]=0),X["_"+G]=J=Y[q]%Q,Y[q]+=1),j&&(O=j[J])}J!==void 0&&(this[G]=J),this[L]=O},_.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)},_.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},_.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},_.prototype.findPointIndex=function(L,O){var j,Y,X=L.id,G=L.x,q=this.points,Q=this.options.dataSorting;if(X)(Q=this.chart.get(X))instanceof Z&&(j=Q);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(j=function(rt){return!rt.touched&&rt.index===L.index},Q&&Q.matchByName?j=function(rt){return!rt.touched&&rt.name===L.name}:this.options.relativeXValue&&(j=function(rt){return!rt.touched&&rt.options.x===L.x}),!(j=o(q,j))))return;if(j){var J=j&&j.index;J!==void 0&&(Y=!0)}return J===void 0&&l(G)&&(J=this.xData.indexOf(G,O)),J!==-1&&J!==void 0&&this.cropped&&(J=J>=this.cropStart?J-this.cropStart:J),!Y&&l(J)&&q[J]&&q[J].touched&&(J=void 0),J},_.prototype.updateData=function(L,O){var j,Y,X,G=this.options,q=G.dataSorting,Q=this.points,J=[],rt=this.requireSorting,lt=L.length===Q.length,gt=!0;if(this.xIncrement=null,L.forEach(function(mt,bt){var yt=r(mt)&&this.pointClass.prototype.optionsToObject.call({series:this},mt)||{},ht=yt.x;yt.id||l(ht)?((yt=this.findPointIndex(yt,X))===-1||yt===void 0?J.push(mt):Q[yt]&&mt!==G.data[yt]?(Q[yt].update(mt,!1,null,!1),Q[yt].touched=!0,rt&&(X=yt+1)):Q[yt]&&(Q[yt].touched=!0),(!lt||bt!==yt||q&&q.enabled||this.hasDerivedData)&&(j=!0)):J.push(mt)},this),j)for(L=Q.length;L--;)(Y=Q[L])&&!Y.touched&&Y.remove&&Y.remove(!1,O);else!lt||q&&q.enabled?gt=!1:(L.forEach(function(mt,bt){mt!==Q[bt].y&&Q[bt].update&&Q[bt].update(mt,!1,null,!1)}),J.length=0);return Q.forEach(function(mt){mt&&(mt.touched=!1)}),!!gt&&(J.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)},_.prototype.setData=function(L,O,j,Y){O===void 0&&(O=!0);var X=this,G=X.points,q=G&&G.length||0,Q=X.options,J=X.chart,rt=Q.dataSorting,lt=X.xAxis,gt=Q.turboThreshold,mt=this.xData,bt=this.yData,yt=X.pointArrayMap;yt=yt&&yt.length;var ht,it=Q.keys,st=0,dt=1,vt=null;if(!J.options.chart.allowMutatingData){Q.data&&delete X.options.data,X.userOptions.data&&delete X.userOptions.data;var Ct=T(!0,L)}if(Ct=(L=Ct||L||[]).length,rt&&rt.enabled&&(L=this.sortData(L)),J.options.chart.allowMutatingData&&Y!==!1&&Ct&&q&&!X.cropped&&!X.hasGroupedData&&X.visible&&!X.boosted&&(ht=this.updateData(L,j)),!ht){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),l(vt))for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j];else if(n(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(it&&(st=0<=(st=it.indexOf("x"))?st:0,dt=0<=(dt=it.indexOf("y"))?dt:1),vt.length===1&&(dt=0),st===dt)for(j=0;j<Ct;j++)mt[j]=this.autoIncrement(),bt[j]=L[j][dt];else for(j=0;j<Ct;j++)Y=L[j],mt[j]=Y[st],bt[j]=Y[dt];else t(12,!1,J);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,J),X.data=[],X.options.data=X.userOptions.data=L,j=q;j--;)G[j]&&G[j].destroy&&G[j].destroy();lt&&(lt.minRange=lt.userMinRange),X.isDirty=J.isDirtyBox=!0,X.isDirtyData=!!G,j=!1}Q.legendType==="point"&&(this.processData(),this.generatePoints()),O&&J.redraw(j)},_.prototype.sortData=function(L){var O=this,j=O.options.dataSorting.sortKey||"y",Y=function(X,G){return r(G)&&X.pointClass.prototype.optionsToObject.call({series:X},G)||{}};return L.forEach(function(X,G){L[G]=Y(O,X),L[G].index=G},this),L.concat().sort(function(X,G){return X=s(j,X),(G=s(j,G))<X?-1:G>X?1:0}).forEach(function(X,G){X.x=G},this),O.linkedSeries&&O.linkedSeries.forEach(function(X){var G=X.options,q=G.data;G.dataSorting&&G.dataSorting.enabled||!q||(q.forEach(function(Q,J){q[J]=Y(X,Q),L[J]&&(q[J].x=L[J].x,q[J].index=J)}),X.setData(q,!1))}),L},_.prototype.getProcessedData=function(L){var O=this.xAxis,j=this.options,Y=j.cropThreshold,X=L||this.getExtremesFromAll||j.getExtremesFromAll,G=this.isCartesian;L=O&&O.val2lin,j=!(!O||!O.logarithmic);var q=0,Q=this.xData,J=this.yData,rt=this.requireSorting,lt=!1,gt=Q.length;if(O){var mt=(lt=O.getExtremes()).min,bt=lt.max;lt=!(!O.categories||O.names.length)}if(G&&this.sorted&&!X&&(!Y||gt>Y||this.forceCrop)){if(Q[gt-1]<mt||Q[0]>bt)Q=[],J=[];else if(this.yData&&(Q[0]<mt||Q[gt-1]>bt)){var yt=this.cropData(this.xData,this.yData,mt,bt);Q=yt.xData,J=yt.yData,q=yt.start,yt=!0}}for(Y=Q.length||1;--Y;)if(0<(O=j?L(Q[Y])-L(Q[Y-1]):Q[Y]-Q[Y-1])&&(ht===void 0||O<ht))var ht=O;else 0>O&&rt&&!lt&&(t(15,!1,this.chart),rt=!1);return{xData:Q,yData:J,cropped:yt,cropStart:q,closestPointRange:ht}},_.prototype.processData=function(L){var O=this.xAxis;if(this.isCartesian&&!this.isDirty&&!O.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")},_.prototype.cropData=function(L,O,j,Y,X){var G,q=L.length,Q=0,J=q;for(X=p(X,this.cropShoulder),G=0;G<q;G++)if(L[G]>=j){Q=Math.max(0,G-X);break}for(j=G;j<q;j++)if(L[j]>Y){J=j+X;break}return{xData:L.slice(Q,J),yData:O.slice(Q,J),start:Q,end:J}},_.prototype.generatePoints=function(){var L=this.options,O=this.processedData||L.data,j=this.processedXData,Y=this.processedYData,X=this.pointClass,G=j.length,q=this.cropStart||0,Q=this.hasGroupedData,J=L.keys,rt=[];L=L.dataGrouping&&L.dataGrouping.groupAll?q:0;var lt,gt,mt=this.data;if(!mt&&!Q){var bt=[];bt.length=O.length,mt=this.data=bt}for(J&&Q&&(this.options.keys=!1),gt=0;gt<G;gt++){if(bt=q+gt,Q){var yt=new X().init(this,[j[gt]].concat(A(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])||O[bt]===void 0||(mt[bt]=yt=new X().init(this,O[bt],j[gt]));yt&&(yt.index=Q?L+gt:bt,rt[gt]=yt)}if(this.options.keys=J,mt&&(G!==(lt=mt.length)||Q))for(gt=0;gt<lt;gt++)gt!==q||Q||(gt+=G),mt[gt]&&(mt[gt].destroyElements(),mt[gt].plotX=void 0);this.data=mt,this.points=rt,e(this,"afterGeneratePoints")},_.prototype.getXExtremes=function(L){return{min:S(L),max:w(L)}},_.prototype.getExtremes=function(L,O){var j=this.xAxis,Y=this.yAxis,X=this.processedXData||this.xData,G=[],q=this.requireSorting?this.cropShoulder:0;Y=!!Y&&Y.positiveValuesOnly;var Q,J=0,rt=0,lt=0,gt=(L=L||this.stackedYData||this.processedYData||[]).length;if(j){var mt=j.getExtremes();J=mt.min,rt=mt.max}for(Q=0;Q<gt;Q++){var bt=X[Q];mt=L[Q];var yt=(l(mt)||n(mt))&&(mt.length||0<mt||!Y);if(bt=O||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!j||(X[Q+q]||bt)>=J&&(X[Q-q]||bt)<=rt,yt&&bt)if(yt=mt.length)for(;yt--;)l(mt[yt])&&(G[lt++]=mt[yt]);else G[lt++]=mt}return L={activeYData:G,dataMin:S(G),dataMax:w(G)},e(this,"afterGetExtremes",{dataExtremes:L}),L},_.prototype.applyExtremes=function(){var L=this.getExtremes();return this.dataMin=L.dataMin,this.dataMax=L.dataMax,L},_.prototype.getFirstValidPoint=function(L){for(var O=L.length,j=0,Y=null;Y===null&&j<O;)Y=L[j],j++;return Y},_.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var L,O,j=this.options,Y=j.stacking,X=this.xAxis,G=X.categories,q=this.enabledDataSorting,Q=this.yAxis,J=this.points,rt=J.length,lt=this.pointPlacementToXValue(),gt=!!lt,mt=j.threshold,bt=j.startFromThreshold?mt:0,yt=this.zoneAxis||"y",ht=Number.MAX_VALUE;for(L=0;L<rt;L++){var it=J[L],st=it.x,dt=void 0,vt=void 0,Ct=it.y,xt=it.low,wt=Y&&Q.stacking&&Q.stacking.stacks[(this.negStacks&&Ct<(bt?0:mt)?"-":"")+this.stackKey];if((Q.positiveValuesOnly&&!Q.validatePositiveValue(Ct)||X.positiveValuesOnly&&!X.validatePositiveValue(st))&&(it.isNull=!0),it.plotX=O=f(C(X.translate(st,0,0,0,1,lt,this.type==="flags"),-1e5,1e5)),Y&&this.visible&&wt&&wt[st]){var Mt=this.getStackIndicator(Mt,st,this.index);!it.isNull&&Mt.key&&(vt=(dt=wt[st]).points[Mt.key]),dt&&n(vt)&&(xt=vt[0],Ct=vt[1],xt===bt&&Mt.key===wt[st].base&&(xt=p(l(mt)?mt:Q.min)),Q.positiveValuesOnly&&r(xt)&&0>=xt&&(xt=void 0),it.total=it.stackTotal=p(dt.total),it.percentage=r(it.y)&&dt.total?it.y/dt.total*100:void 0,it.stackY=Ct,this.irregularWidths||dt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(it.yBottom=r(xt)?C(Q.translate(xt,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(Ct=this.dataModify.modifyValue(Ct,L)),it.plotY=void 0,l(Ct)&&(dt=Q.translate(Ct,!1,!0,!1,!0))!==void 0&&(it.plotY=C(dt,-1e5,1e5)),it.isInside=this.isPointInside(it),it.clientX=gt?f(X.translate(st,0,0,0,1,lt)):O,it.negative=it[yt]<(j[yt+"Threshold"]||mt||0),it.category=p(G&&G[it.x],it.x),!it.isNull&&it.visible!==!1){St!==void 0&&(ht=Math.min(ht,Math.abs(O-St)));var St=O}it.zone=this.zones.length?it.getZone():void 0,!it.graphic&&this.group&&q&&(it.isNew=!0)}this.closestPointRangePx=ht,e(this,"afterTranslate")},_.prototype.getValidPoints=function(L,O,j){var Y=this.chart;return(L||this.points||[]).filter(function(X){return!(O&&!Y.isInsidePlot(X.plotX,X.plotY,{inverted:Y.inverted}))&&X.visible!==!1&&(j||!X.isNull)})},_.prototype.getClipBox=function(){var L=this.chart,O=this.xAxis,j=this.yAxis,Y=T(L.clipBox);return O&&O.len!==L.plotSizeX&&(Y.width=O.len),j&&j.len!==L.plotSizeY&&(Y.height=j.len),Y},_.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},_.prototype.setClip=function(){var L=this.chart,O=this.group,j=this.markerGroup,Y=L.sharedClips;L=L.renderer;var X=this.getClipBox(),G=this.getSharedClipKey(),q=Y[G];q?q.animate(X):Y[G]=q=L.clipRect(X),O&&O.clip(this.options.clip===!1?void 0:q),j&&j.clip()},_.prototype.animate=function(L){var O=this.chart,j=this.group,Y=this.markerGroup,X=O.inverted,G=M(this.options.animation),q=[this.getSharedClipKey(),G.duration,G.easing,G.defer].join(),Q=O.sharedClips[q],J=O.sharedClips[q+"m"];if(L&&j)G=this.getClipBox(),Q?Q.attr("height",G.height):(G.width=0,X&&(G.x=O.plotHeight),Q=O.renderer.clipRect(G),O.sharedClips[q]=Q,J=O.renderer.clipRect({x:-99,y:-99,width:X?O.plotWidth+199:99,height:X?99:O.plotHeight+199}),O.sharedClips[q+"m"]=J),j.clip(Q),Y&&Y.clip(J);else if(Q&&!Q.hasClass("highcharts-animating")){O=this.getClipBox();var rt=G.step;Y&&Y.element.childNodes.length&&(G.step=function(lt,gt){rt&&rt.apply(gt,arguments),gt.prop==="width"&&J&&J.element&&J.attr(X?"height":"width",lt+99)}),Q.addClass("highcharts-animating").animate(O,G)}},_.prototype.afterAnimate=function(){var L=this;this.setClip(),D(this.chart.sharedClips,function(O,j,Y){O&&!L.chart.container.querySelector('[clip-path="url(#'.concat(O.id,')"]'))&&(O.destroy(),delete Y[j])}),this.finishedAnimating=!0,e(this,"afterAnimate")},_.prototype.drawPoints=function(L){L===void 0&&(L=this.points);var O,j,Y=this.chart,X=Y.styledMode,G=this.colorAxis,q=this.options.marker,Q=this[this.specialGroup||"markerGroup"],J=this.xAxis,rt=p(q.enabled,!(J&&!J.isRadial)||null,this.closestPointRangePx>=q.enabledThreshold*q.radius);if(q.enabled!==!1||this._hasPointMarkers)for(O=0;O<L.length;O++){var lt=L[O],gt=(j=lt.graphic)?"animate":"attr",mt=lt.marker||{},bt=!!lt.marker;if((rt&&mt.enabled===void 0||mt.enabled)&&!lt.isNull&<.visible!==!1){var yt=p(mt.symbol,this.symbol,"rect"),ht=this.markerAttribs(lt,lt.selected&&"select");this.enabledDataSorting&&(lt.startXPos=J.reversed?-(ht.width||0):J.width);var it=lt.isInside!==!1;!j&&it&&(0<(ht.width||0)||lt.hasImage)&&(lt.graphic=j=Y.renderer.symbol(yt,ht.x,ht.y,ht.width,ht.height,bt?mt:q).add(Q),this.enabledDataSorting&&Y.hasRendered&&(j.attr({x:lt.startXPos}),gt="animate")),j&>==="animate"&&j[it?"show":"hide"](it).animate(ht),j&&(mt=this.pointAttribs(lt,X||!lt.selected?void 0:"select"),X?G&&j.css({fill:mt.fill}):j[gt](mt)),j&&j.addClass(lt.getClassName(),!0)}else j&&(lt.graphic=j.destroy())}},_.prototype.markerAttribs=function(L,O){var j=this.options,Y=j.marker,X=L.marker||{},G=X.symbol||Y.symbol,q={},Q=p(X.radius,Y&&Y.radius);return O&&(Y=Y.states[O],O=X.states&&X.states[O],Q=p(O&&O.radius,Y&&Y.radius,Q&&Q+(Y&&Y.radiusPlus||0))),L.hasImage=G&&G.indexOf("url")===0,L.hasImage&&(Q=0),L=L.pos(),l(Q)&&L&&(q.x=L[0]-Q,q.y=L[1]-Q,j.crisp&&(q.x=Math.floor(q.x))),Q&&(q.width=q.height=2*Q),q},_.prototype.pointAttribs=function(L,O){var j=this.options.marker,Y=L&&L.options,X=Y&&Y.marker||{},G=Y&&Y.color,q=L&&L.color,Q=L&&L.zone&&L.zone.color,J=this.color;return L=p(X.lineWidth,j.lineWidth),Y=1,J=G||Q||q||J,G=X.fillColor||j.fillColor||J,q=X.lineColor||j.lineColor||J,O=O||"normal",j=j.states[O]||{},O=X.states&&X.states[O]||{},L=p(O.lineWidth,j.lineWidth,L+p(O.lineWidthPlus,j.lineWidthPlus,0)),G=O.fillColor||j.fillColor||G,{stroke:q=O.lineColor||j.lineColor||q,"stroke-width":L,fill:G,opacity:Y=p(O.opacity,j.opacity,Y)}},_.prototype.destroy=function(L){var O,j,Y,X=this,G=X.chart,q=/AppleWebKit\/533/.test(d.navigator.userAgent),Q=X.data||[];for(e(X,"destroy",{keepEventsForUpdate:L}),this.removeEvents(L),(X.axisTypes||[]).forEach(function(J){(Y=X[J])&&Y.series&&(a(Y.series,X),Y.isDirty=Y.forceRedraw=!0)}),X.legendItem&&X.chart.legend.destroyItem(X),O=Q.length;O--;)(j=Q[O])&&j.destroy&&j.destroy();X.clips&&X.clips.forEach(function(J){return J.destroy()}),E.clearTimeout(X.animationTimeout),D(X,function(J,rt){J instanceof I&&!J.survive&&J[q&&rt==="group"?"hide":"destroy"]()}),G.hoverSeries===X&&(G.hoverSeries=void 0),a(G.series,X),G.orderSeries(),D(X,function(J,rt){L&&rt==="hcEvents"||delete X[rt]})},_.prototype.applyZones=function(){var L,O,j,Y,X,G,q,Q,J=this,rt=this.chart,lt=rt.renderer,gt=this.zones,mt=this.clips||[],bt=this.graph,yt=this.area,ht=Math.max(rt.plotWidth,rt.plotHeight),it=this[(this.zoneAxis||"y")+"Axis"],st=rt.inverted,dt=!1;if(gt.length&&(bt||yt)&&it&&it.min!==void 0){var vt=it.reversed,Ct=it.horiz;bt&&!this.showLine&&bt.hide(),yt&&yt.hide();var xt=it.getExtremes();gt.forEach(function(wt,Mt){L=vt?Ct?rt.plotWidth:0:Ct?0:it.toPixels(xt.min)||0,L=C(p(O,L),0,ht),O=C(Math.round(it.toPixels(p(wt.value,xt.max),!0)||0),0,ht),dt&&(L=O=it.toPixels(xt.max)),Y=Math.abs(L-O),X=Math.min(L,O),G=Math.max(L,O),it.isXAxis?(j={x:st?G:X,y:0,width:Y,height:ht},Ct||(j.x=rt.plotHeight-j.x)):(j={x:0,y:st?G:X,width:ht,height:Y},Ct&&(j.y=rt.plotWidth-j.y)),st&<.isVML&&(j=it.isXAxis?{x:0,y:vt?X:G,height:j.width,width:rt.chartWidth}:{x:j.y-rt.plotLeft-rt.spacingBox.x,y:0,width:j.height,height:rt.chartHeight}),mt[Mt]?mt[Mt].animate(j):mt[Mt]=lt.clipRect(j),q=J["zone-area-"+Mt],Q=J["zone-graph-"+Mt],bt&&Q&&Q.clip(mt[Mt]),yt&&q&&q.clip(mt[Mt]),dt=wt.value>xt.max,J.resetZones&&O===0&&(O=void 0)}),this.clips=mt}else J.visible&&(bt&&bt.show(),yt&&yt.show())},_.prototype.plotGroup=function(L,O,j,Y,X){var G=this[L],q=!G;return j={visibility:j,zIndex:Y||.1},this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(j.opacity=this.opacity),q&&(this[L]=G=this.chart.renderer.g().add(X)),G.addClass("highcharts-"+O+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(G.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),G.attr(j)[q?"attr":"animate"](this.getPlotBox(O)),G},_.prototype.getPlotBox=function(L){var O=this.xAxis,j=this.yAxis,Y=this.chart;return L=Y.inverted&&!Y.polar&&O&&this.invertible!==!1&&L==="series",Y.inverted&&(O=j,j=this.xAxis),{translateX:O?O.left:Y.plotLeft,translateY:j?j.top:Y.plotTop,rotation:L?90:0,rotationOriginX:L?(O.len-j.len)/2:0,rotationOriginY:L?(O.len+j.len)/2:0,scaleX:L?-1:1,scaleY:1}},_.prototype.removeEvents=function(L){L||x(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(O){O()}),this.eventsToUnbind.length=0)},_.prototype.render=function(){var L=this,O=L.chart,j=L.options,Y=M(j.animation),X=L.visible?"inherit":"hidden",G=j.zIndex,q=L.hasRendered,Q=O.seriesGroup;O=!L.finishedAnimating&&O.renderer.isSVG?Y.duration:0,e(this,"render"),L.plotGroup("group","series",X,G,Q),L.markerGroup=L.plotGroup("markerGroup","markers",X,G,Q),j.clip!==!1&&L.setClip(),L.animate&&O&&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&&O&&L.animate(),q||(O&&Y.defer&&(O+=Y.defer),L.animationTimeout=N(function(){L.afterAnimate()},O||0)),L.isDirty=!1,L.hasRendered=!0,e(L,"afterRender")},_.prototype.redraw=function(){var L=this.isDirty||this.isDirtyData;this.translate(),this.render(),L&&delete this.kdTree},_.prototype.searchPoint=function(L,O){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},O,L)},_.prototype.buildKDTree=function(L){function O(X,G,q){var Q=X&&X.length;if(Q){var J=j.kdAxisArray[G%q];return X.sort(function(rt,lt){return rt[J]-lt[J]}),{point:X[Q=Math.floor(Q/2)],left:O(X.slice(0,Q),G+1,q),right:O(X.slice(Q+1),G+1,q)}}}this.buildingKdTree=!0;var j=this,Y=-1<j.options.findNearestPointBy.indexOf("y")?2:1;delete j.kdTree,N(function(){j.kdTree=O(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||L&&L.type==="touchstart"?0:1)},_.prototype.searchKDTree=function(L,O,j){var Y=this,X=this.kdAxisArray[0],G=this.kdAxisArray[1],q=O?"distX":"dist";if(O=-1<Y.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(j),this.kdTree)return function Q(J,rt,lt,gt){var mt=rt.point,bt=Y.kdAxisArray[lt%gt],yt=mt,ht=r(J[X])&&r(mt[X])?Math.pow(J[X]-mt[X],2):null,it=r(J[G])&&r(mt[G])?Math.pow(J[G]-mt[G],2):null;return it=(ht||0)+(it||0),mt.dist=r(it)?Math.sqrt(it):Number.MAX_VALUE,mt.distX=r(ht)?Math.sqrt(ht):Number.MAX_VALUE,ht=0>(bt=J[bt]-mt[bt])?"right":"left",rt[it=0>bt?"left":"right"]&&(yt=(it=Q(J,rt[it],lt+1,gt))[q]<yt[q]?it:mt),rt[ht]&&Math.sqrt(bt*bt)<yt[q]&&(yt=(J=Q(J,rt[ht],lt+1,gt))[q]<yt[q]?J:yt),yt}(L,this.kdTree,O,O)},_.prototype.pointPlacementToXValue=function(){var L=this.options,O=L.pointRange,j=this.xAxis;return(L=L.pointPlacement)==="between"&&(L=j.reversed?-.5:.5),l(L)?L*(O||j.pointRange):0},_.prototype.isPointInside=function(L){var O=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:O.plotHeight)&&0<=L.plotX&&L.plotX<=(j?j.len:O.plotWidth)},_.prototype.drawTracker=function(){var L=this,O=L.options,j=O.trackByArea,Y=[].concat(j?L.areaPath:L.graphPath),X=L.chart,G=X.pointer,q=X.renderer,Q=X.options.tooltip.snap,J=L.tracker,rt=function(gt){X.hoverSeries!==L&&L.onMouseOver()},lt="rgba(192,192,192,"+(g?1e-4:.002)+")";J?J.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*Q)}),[L.tracker,L.markerGroup,L.dataLabelsGroup].forEach(function(gt){gt&&(gt.addClass("highcharts-tracker").on("mouseover",rt).on("mouseout",function(mt){G.onTrackerMouseOut(mt)}),O.cursor&&!X.styledMode&>.css({cursor:O.cursor}),u)&>.on("touchstart",rt)})),e(this,"afterDrawTracker")},_.prototype.addPoint=function(L,O,j,Y,X){var G=this.options,q=this.data,Q=this.chart,J=this.xAxis;J=J&&J.hasNames&&J.names;var rt,lt=G.data,gt=this.xData;O=p(O,!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(rt=!0;yt&>[yt-1]>bt;)yt--;this.updateParallelArrays(mt,"splice",yt,0,0),this.updateParallelArrays(mt,yt),J&&mt.name&&(J[bt]=mt.name),lt.splice(yt,0,L),(rt||this.processedData)&&(this.data.splice(yt,0,null),this.processData()),G.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,O&&Q.redraw(Y)},_.prototype.removePoint=function(L,O,j){var Y=this,X=Y.data,G=X[L],q=Y.points,Q=Y.chart,J=function(){q&&q.length===X.length&&q.splice(L,1),X.splice(L,1),Y.options.data.splice(L,1),Y.updateParallelArrays(G||{series:Y},"splice",L,1),G&&G.destroy(),Y.isDirty=!0,Y.isDirtyData=!0,O&&Q.redraw()};k(j,Q),O=p(O,!0),G?G.firePointEvent("remove",null,J):J()},_.prototype.remove=function(L,O,j,Y){function X(){G.destroy(Y),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),p(L,!0)&&q.redraw(O)}var G=this,q=G.chart;j!==!1?e(G,"remove",null,X):X()},_.prototype.update=function(L,O){L=c(L,this.userOptions),e(this,"update",{options:L});var j=this,Y=j.chart,X=j.userOptions,G=j.initialType||j.type,q=Y.options.plotOptions,Q=v[G].prototype,J=j.finishedAnimating&&{animation:!1},rt={},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||G,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=T(X,J,{index:X.index===void 0?j.index:X.index,pointStart:p(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 J=Object.hasOwnProperty.call(j,"hcEvents")&&j.hcEvents,Q)j[bt]=void 0;i(j,v[gt].prototype),J?j.hcEvents=J: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)rt.graphic=1,rt.dataLabel=1;else if(!j._hasPointLabels){Q=L.marker;var bt=L.dataLabels;X=X.marker||{},!Q||Q.enabled!==!1&&X.symbol===Q.symbol&&X.height===Q.height&&X.width===Q.width||(rt.graphic=1),bt&&bt.enabled===!1&&(rt.dataLabel=1)}for(X=0,Q=this.points;X<Q.length;X++)(bt=Q[X])&&bt.series&&(bt.resolveColor(),Object.keys(rt).length&&bt.destroyElements(rt),L.showInLegend===!1&&bt.legendItem&&Y.legend.destroyItem(bt))}j.initialType=G,Y.linkSeries(),q&&j.linkedSeries.length&&(j.isDirtyData=!0),e(this,"afterUpdate"),p(O,!0)&&Y.redraw(!!mt&&void 0)},_.prototype.setName=function(L){this.name=this.options.name=this.userOptions.name=L,this.chart.isDirtyLegend=!0},_.prototype.hasOptionChanged=function(L){var O=this.options[L],j=this.chart.options.plotOptions,Y=this.userOptions[L];return Y?O!==Y:O!==p(j&&j[this.type]&&j[this.type][L],j&&j.series&&j.series[L],O)},_.prototype.onMouseOver=function(){var L=this.chart,O=L.hoverSeries;L.pointer.setHoverChartIndex(),O&&O!==this&&O.onMouseOut(),this.options.events.mouseOver&&e(this,"mouseOver"),this.setState("hover"),L.hoverSeries=this},_.prototype.onMouseOut=function(){var L=this.options,O=this.chart,j=O.tooltip,Y=O.hoverPoint;O.hoverSeries=null,Y&&Y.onMouseOut(),this&&L.events.mouseOut&&e(this,"mouseOut"),!j||this.stickyTracking||j.shared&&!this.noSharedTooltip||j.hide(),O.series.forEach(function(X){X.setState("",!0)})},_.prototype.setState=function(L,O){var j=this,Y=j.options,X=j.graph,G=Y.inactiveOtherPoints,q=Y.states,Q=p(q[L||"normal"]&&q[L||"normal"].animation,j.chart.options.chart.animation),J=Y.lineWidth,rt=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&&(J=q[L].lineWidth||J+(q[L].lineWidthPlus||0),lt=p(q[L].opacity,lt)),X&&!X.dashstyle&&l(J))for(Y={"stroke-width":J},X.animate(Y,Q);j["zone-graph-"+rt];)j["zone-graph-"+rt].animate(Y,Q),rt+=1;G||[j.group,j.markerGroup,j.dataLabelsGroup,j.labelBySeries].forEach(function(gt){gt&>.animate({opacity:lt},Q)})}O&&G&&j.points&&j.setAllPointsToState(L||void 0)},_.prototype.setAllPointsToState=function(L){this.points.forEach(function(O){O.setState&&O.setState(L)})},_.prototype.setVisible=function(L,O){var j=this,Y=j.chart,X=Y.options.chart.ignoreHiddenSeries,G=j.visible,q=(j.visible=L=j.options.visible=j.userOptions.visible=L===void 0?!G:L)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(Q){j[Q]&&j[Q][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(Q){Q.options.stacking&&Q.visible&&(Q.isDirty=!0)}),j.linkedSeries.forEach(function(Q){Q.setVisible(L,!1)}),X&&(Y.isDirtyBox=!0),e(j,q),O!==!1&&Y.redraw()},_.prototype.show=function(){this.setVisible(!0)},_.prototype.hide=function(){this.setVisible(!1)},_.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")},_.prototype.shouldShowTooltip=function(L,O,j){return j===void 0&&(j={}),j.series=this,j.visiblePlotOnly=!0,this.chart.isInsidePlot(L,O,j)},_.defaultOptions=U,_.types=z.seriesTypes,_.registerType=z.registerSeriesType,_}(),i(W.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}),z.series=W,W}),B(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(W,R,H,V,$,Z){var U=W.stop,z=Z.addEvent,I=Z.createElement,E=Z.defined,M=Z.merge,k=Z.pick;z(H,"afterSetChartSize",function(y){var h=this.options.chart.scrollablePlotArea,u=h&&h.minWidth;if(h=h&&h.minHeight,!this.renderer.forExport){if(u){if(this.scrollablePixelsX=u=Math.max(0,u-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.width=this.plotWidth+=u,this.inverted?this.clipBox.height+=u:this.clipBox.width+=u;var g={1:{name:"right",value:u}}}}else h&&(this.scrollablePixelsY=u=Math.max(0,h-this.chartHeight),E(u)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.height=this.plotHeight+=u,this.inverted?this.clipBox.width+=u:this.clipBox.height+=u,g={2:{name:"bottom",value:u}}));g&&!y.skipAxes&&this.axes.forEach(function(d){g[d.side]?d.getPlotLinePath=function(){var v=g[d.side].name,w=this[v];this[v]=w-g[d.side].value;var S=R.prototype.getPlotLinePath.apply(this,arguments);return this[v]=w,S}:(d.setAxisSize(),d.setAxisTranslation())})}}),z(H,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),H.prototype.setUpScrolling=function(){var y,h=this,u={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(u.overflowX="auto"),this.scrollablePixelsY&&(u.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},u,this.scrollingParent),z(this.scrollingContainer,"scroll",function(){h.pointer&&(delete h.pointer.chartPosition,h.hoverPoint&&(y=h.hoverPoint),h.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,h=this.container,u=this.fixedRenderer,g=".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&&g.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),g.forEach(function(d){[].forEach.call(h.querySelectorAll(d),function(v){(v.namespaceURI===u.SVG_NS?u.box:u.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},H.prototype.applyFixed=function(){var y=!this.fixedDiv,h=this.options.chart,u=h.scrollablePlotArea,g=$.getRendererType();y?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(h.style&&h.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=h=new g(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=h.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":k(u.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||y)&&(this.scrollableDirty=!1,this.moveFixedElements()),h=this.chartWidth+(this.scrollablePixelsX||0),g=this.chartHeight+(this.scrollablePixelsY||0),U(this.container),this.container.style.width=h+"px",this.container.style.height=g+"px",this.renderer.boxWrapper.attr({width:h,height:g,viewBox:[0,0,h,g].join(" ")}),this.chartBackground.attr({width:h,height:g}),this.scrollingContainer.style.height=this.chartHeight+"px",y&&(u.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*u.scrollPositionX),u.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*u.scrollPositionY)),g=this.axisOffset,y=this.plotTop-g[0]-1,u=this.plotLeft-g[3]-1,h=this.plotTop+this.plotHeight+g[2]+1,g=this.plotLeft+this.plotWidth+g[1]+1;var d=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,h],["L",0,h],["Z"],["M",d,y],["L",this.chartWidth,y],["L",this.chartWidth,h],["L",d,h],["Z"]]:this.scrollablePixelsY?[["M",u,0],["L",u,this.plotTop-1],["L",g,this.plotTop-1],["L",g,0],["Z"],["M",u,v],["L",u,this.chartHeight],["L",g,this.chartHeight],["L",g,v],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:y})},z(R,"afterInit",function(){this.chart.scrollableDirty=!0}),z(V,"show",function(){this.chart.scrollableDirty=!0})}),B(et,"Core/Axis/Stacking/StackItem.js",[et["Core/FormatUtilities.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(W,R,H){var V=W.format,$=R.series,Z=H.destroyObjectProperties,U=H.pick,z=H.isNumber;return W=function(){function I(E,M,k,y,h){var u=E.chart.inverted,g=E.reversed;this.axis=E,E=this.isNegative=!!k!=!!g,this.options=M=M||{},this.x=y,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=h,this.rightCliff=this.leftCliff=0,this.alignOptions={align:M.align||(u?E?"left":"right":"center"),verticalAlign:M.verticalAlign||(u?"middle":E?"bottom":"top"),y:M.y,x:M.x},this.textAlign=M.textAlign||(u?E?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var M=this.axis.chart,k=this.options,y=k.format;y=y?V(y,this,M):k.formatter.call(this),this.label?this.label.attr({text:y,visibility:"hidden"}):(this.label=M.renderer.label(y,null,void 0,k.shape,void 0,void 0,k.useHTML,!1,"stack-labels"),y={r:k.borderRadius||0,text:y,padding:U(k.padding,5),visibility:"hidden"},M.styledMode||(y.fill=k.backgroundColor,y.stroke=k.borderColor,y["stroke-width"]=k.borderWidth,this.label.css(k.style||{})),this.label.attr(y),this.label.added||this.label.add(E)),this.label.labelrank=M.plotSizeY},I.prototype.setOffset=function(E,M,k,y,h,u){var g=this.alignOptions,d=this.axis,v=this.label,w=this.options,S=this.textAlign,C=d.chart;E=this.getStackBox({xOffset:E,width:M,boxBottom:k,boxTop:y,defaultX:h,xAxis:u}),h=g.verticalAlign,v&&E&&(M=v.getBBox(),k=v.padding,y=U(w.overflow,"justify")==="justify",g.x=w.x||0,g.y=w.y||0,S=(h=this.adjustStackPosition({labelBox:M,verticalAlign:h,textAlign:S})).x,h=h.y,E.x-=S,E.y-=h,v.align(g,!1,E),(S=C.isInsidePlot(v.alignAttr.x+g.x+S,v.alignAttr.y+g.y+h))||(y=!1),y&&$.prototype.justifyDataLabel.call(d,v,g,v.alignAttr,M,E),v.attr({x:v.alignAttr.x,y:v.alignAttr.y,rotation:w.rotation,rotationOriginX:M.width/2,rotationOriginY:M.height/2}),U(!y&&w.crop,!0)&&(S=z(v.x)&&z(v.y)&&C.isInsidePlot(v.x-k+v.width,v.y)&&C.isInsidePlot(v.x+k,v.y)),v[S?"show":"hide"]())},I.prototype.adjustStackPosition=function(E){var M=E.labelBox,k={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:M.width/2+M.width/2*k[E.textAlign],y:M.height/2*k[E.verticalAlign]}},I.prototype.getStackBox=function(E){var M=this.axis,k=M.chart,y=E.boxTop,h=E.defaultX,u=E.xOffset,g=E.width,d=E.boxBottom;return y=M.stacking.usePercentage?100:U(y,this.total,0),y=M.toPixels(y),E=U(h,(E.xAxis||k.xAxis[0]).toPixels(this.x))+u,M=M.toPixels(d||0),M=Math.abs(y-M),d=this.isNegative,k.inverted?{x:(d?y:y-M)-k.plotLeft,y:E-k.plotTop,width:M,height:g}:{x:E-k.plotLeft,y:(d?y-M:y)-k.plotTop,width:g,height:M}},I}(),W}),B(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(W,R,H,V,$){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 s=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,a(e.options.stack,""),o?s.top:s.left,o?s.height:s.width].join())})}function U(){var i=this.stacking;if(i){var o=i.stacks;r(o,function(e,s){S(e),o[s]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function z(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function I(i,o,e,s){return!w(i)||i.x!==o||s&&i.stackKey!==s?i={x:o,index:0,key:s,stackKey:s}:i.index++,i.key=[e,o,i.index].join(),i}function E(){var i,o=this,e=o.stackKey,s=o.yAxis.stacking.stacks,n=o.processedXData,l=o[o.options.stacking+"Stacker"];l&&[e,"-"+e].forEach(function(b){for(var T,D,p=n.length;p--;)T=n[p],i=o.getStackIndicator(i,T,o.index,b),(D=(T=s[b]&&s[b][T])&&T.points[i.key])&&l.call(o,D,T,p)})}function M(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 k(){var i=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?g.setStackedPoints.call(this,"group"):i&&r(i.stacks,function(o,e){e.slice(-5)==="group"&&(r(o,function(s){return s.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 s=this.processedXData,n=this.processedYData,l=[],b=n.length,T=this.options,D=T.threshold,p=a(T.startFromThreshold&&D,0);T=T.stack;var x,A,N="-"+(i=i?""+this.type+",".concat(e):this.stackKey),_=this.negStacks,L=(o=e==="group"?o.yAxis[0]:this.yAxis).stacking.stacks,O=o.stacking.oldStacks;for(o.stacking.stacksTouched+=1,A=0;A<b;A++){var j=s[A],Y=n[A],X=this.getStackIndicator(X,j,this.index),G=X.key,q=(x=_&&Y<(p?0:D))?N:i;L[q]||(L[q]={}),L[q][j]||(O[q]&&O[q][j]?(L[q][j]=O[q][j],L[q][j].total=null):L[q][j]=new V(o,o.options.stackLabels,!!x,j,T)),q=L[q][j],Y!==null?(q.points[G]=q.points[this.index]=[a(q.cumulative,p)],w(q.cumulative)||(q.base=G),q.touched=o.stacking.stacksTouched,0<X.index&&this.singleStacks===!1&&(q.points[G][0]=q.points[this.index+","+j+",0"][0])):q.points[G]=q.points[this.index]=null,e==="percent"?(x=x?i:N,_&&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"?(c(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:a(q.cumulative,p)+(Y||0),Y!==null&&(q.points[G].push(q.cumulative),l[A]=q.cumulative,q.hasValidPoints=!0)}e==="percent"&&(o.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=l),o.stacking.oldStacks={}}}var h,u=W.getDeferredAnimation,g=H.series.prototype,d=$.addEvent,v=$.correctFloat,w=$.defined,S=$.destroyObjectProperties,C=$.fireEvent,c=$.isArray,f=$.isNumber,r=$.objectEach,a=$.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,s=e.series,n=e.options.reversedStacks,l=s.length;for(this.usePercentage=!1,o=l;o--;){var b=s[n?o:l-o-1];b.setStackedPoints(),b.setGroupedPoints()}for(o=0;o<l;o++)s[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(s){s.cumulative=s.total})})},i.prototype.resetStacks=function(){var o=this;r(this.stacks,function(e){r(e,function(s,n){f(s.touched)&&s.touched<o.stacksTouched?(s.destroy(),delete e[n]):(s.total=null,s.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this.axis,e=o.chart,s=e.renderer,n=this.stacks;o=u(e,o.options.stackLabels&&o.options.stackLabels.animation||!1);var l=this.stackTotalGroup=this.stackTotalGroup||s.g("stack-labels").attr({zIndex:6,opacity:0}).add();l.translate(e.plotLeft,e.plotTop),r(n,function(b){r(b,function(T){T.render(l)})}),l.animate({opacity:1},o)},i}();return function(i){var o=[];i.compose=function(e,s,n){o.indexOf(e)===-1&&(o.push(e),d(e,"init",z),d(e,"destroy",U)),o.indexOf(s)===-1&&(o.push(s),s.prototype.getStacks=Z),o.indexOf(n)===-1&&(o.push(n),(e=n.prototype).getStackIndicator=I,e.modifyStacks=E,e.percentStacker=M,e.setGroupedPoints=k,e.setStackedPoints=y)}}(h||(h={})),h}),B(et,"Series/Line/LineSeries.js",[et["Core/Series/Series.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var U=function(z,I){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var k in M)M.hasOwnProperty(k)&&(E[k]=M[k])})(z,I)};return function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=H.defined,Z=H.merge;return H=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return V(z,U),z.prototype.drawGraph=function(){var I=this,E=this.options,M=(this.gappedPath||this.getGraphPath).call(this),k=this.chart.styledMode,y=[["graph","highcharts-graph"]];k||y[0].push(E.lineColor||this.color||"#cccccc",E.dashStyle),(y=I.getZonesGraphs(y)).forEach(function(h,u){var g=h[0],d=I[g],v=d?"animate":"attr";d?(d.endX=I.preventGraphAnimation?null:M.xMap,d.animate({d:M})):M.length&&(I[g]=d=I.chart.renderer.path(M).addClass(h[1]).attr({zIndex:1}).add(I.group)),d&&!k&&(g={stroke:h[2],"stroke-width":E.lineWidth||0,fill:I.fillGraph&&I.color||"none"},h[3]?g.dashstyle=h[3]:E.linecap!=="square"&&(g["stroke-linecap"]=g["stroke-linejoin"]="round"),d[v](g).shadow(2>u&&E.shadow)),d&&(d.startX=M.xMap,d.isArea=M.isArea)})},z.prototype.getGraphPath=function(I,E,M){var k,y=this,h=y.options,u=[],g=[],d=h.step,v=(I=I||y.points).reversed;return v&&I.reverse(),(d={right:1,center:2}[d]||d&&3)&&v&&(d=4-d),(I=this.getValidPoints(I,!1,!(h.connectNulls&&!E&&!M))).forEach(function(w,S){var C=w.plotX,c=w.plotY,f=I[S-1];(w.leftCliff||f&&f.rightCliff)&&!M&&(k=!0),w.isNull&&!$(E)&&0<S?k=!h.connectNulls:w.isNull&&!E?k=!0:(S===0||k?S=[["M",w.plotX,w.plotY]]:y.getPointSpline?S=[y.getPointSpline(I,w,S)]:d?(S=d===1?[["L",f.plotX,c]]:d===2?[["L",(f.plotX+C)/2,f.plotY],["L",(f.plotX+C)/2,c]]:[["L",C,f.plotY]]).push(["L",C,c]):S=[["L",C,c]],g.push(w.x),d&&(g.push(w.x),d===2&&g.push(w.x)),u.push.apply(u,S),k=!1)}),u.xMap=g,y.graphPath=u},z.prototype.getZonesGraphs=function(I){return this.zones.forEach(function(E,M){M=["zone-graph-"+M,"highcharts-graph highcharts-zone-graph-"+M+" "+(E.className||"")],this.chart.styledMode||M.push(E.color||this.color,E.dashStyle||this.options.dashStyle),I.push(M)},this),I},z.defaultOptions=Z(W.defaultOptions,{}),z}(W),R.registerSeriesType("line",H),H}),B(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(W,R,H,V){var $=this&&this.__extends||function(){var M=function(k,y){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var g in u)u.hasOwnProperty(g)&&(h[g]=u[g])},M(k,y)};return function(k,y){function h(){this.constructor=k}M(k,y),k.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}}(),Z=W.parse,U=H.seriesTypes.line;W=V.extend;var z=V.merge,I=V.objectEach,E=V.pick;return V=function(M){function k(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(k,M),k.prototype.drawGraph=function(){this.areaPath=[],M.prototype.drawGraph.apply(this);var y=this,h=this.areaPath,u=this.options,g=[["area","highcharts-area",this.color,u.fillColor]];this.zones.forEach(function(d,v){g.push(["zone-area-"+v,"highcharts-area highcharts-zone-area-"+v+" "+d.className,d.color||y.color,d.fillColor||u.fillColor])}),g.forEach(function(d){var v=d[0],w={},S=y[v],C=S?"animate":"attr";S?(S.endX=y.preventGraphAnimation?null:h.xMap,S.animate({d:h})):(w.zIndex=0,(S=y[v]=y.chart.renderer.path(h).addClass(d[1]).add(y.group)).isArea=!0),y.chart.styledMode||(w.fill=E(d[3],Z(d[2]).setOpacity(E(u.fillOpacity,.75)).get())),S[C](w),S.startX=h.xMap,S.shiftUnit=u.step?2:1})},k.prototype.getGraphPath=function(y){var h=U.prototype.getGraphPath,u=this.options,g=u.stacking,d=this.yAxis,v=[],w=[],S=this.index,C=d.stacking.stacks[this.stackKey],c=u.threshold,f=Math.round(d.getThreshold(u.threshold));u=E(u.connectNulls,g==="percent");var r=function(s,n,l){var b=y[s];s=g&&C[b.x].points[S];var T=b[l+"Null"]||0;if(l=b[l+"Cliff"]||0,b=!0,l||T){var D=(T?s[0]:s[1])+l,p=s[0]+l;b=!!T}else!g&&y[n]&&y[n].isNull&&(D=p=c);D!==void 0&&(w.push({plotX:o,plotY:D===null?f:d.getThreshold(D),isNull:b,isCliff:!0}),v.push({plotX:o,plotY:p===null?f:d.getThreshold(p),doCurve:!1}))};y=y||this.points,g&&(y=this.getStackPoints(y));for(var a=0,t=y.length;a<t;++a){g||(y[a].leftCliff=y[a].rightCliff=y[a].leftNull=y[a].rightNull=void 0);var i=y[a].isNull,o=E(y[a].rectPlotX,y[a].plotX),e=g?E(y[a].yBottom,f):f;i&&!u||(u||r(a,a-1,"left"),i&&!g&&u||(w.push(y[a]),v.push({x:a,plotX:o,plotY:e})),u||r(a,a+1,"right"))}return r=h.call(this,w,!0,!0),v.reversed=!0,(e=(i=h.call(this,v,!0,!0))[0])&&e[0]==="M"&&(i[0]=["L",e[1],e[2]]),(i=r.concat(i)).length&&i.push(["Z"]),h=h.call(this,w,!1,u),i.xMap=r.xMap,this.areaPath=i,h},k.prototype.getStackPoints=function(y){var h=this,u=[],g=[],d=this.xAxis,v=this.yAxis,w=v.stacking.stacks[this.stackKey],S={},C=v.series,c=C.length,f=v.options.reversedStacks?1:-1,r=C.indexOf(h);if(y=y||this.points,this.options.stacking){for(var a=0;a<y.length;a++)y[a].leftNull=y[a].rightNull=void 0,S[y[a].x]=y[a];I(w,function(i,o){i.total!==null&&g.push(o)}),g.sort(function(i,o){return i-o});var t=C.map(function(i){return i.visible});g.forEach(function(i,o){var e,s,n=0;if(S[i]&&!S[i].isNull)u.push(S[i]),[-1,1].forEach(function(b){var T=b===1?"rightNull":"leftNull",D=w[g[o+b]],p=0;if(D)for(var x=r;0<=x&&x<c;){var A=C[x].index;(e=D.points[A])||(A===h.index?S[i][T]=!0:t[x]&&(s=w[i].points[A])&&(p-=s[1]-s[0])),x+=f}S[i][b===1?"rightCliff":"leftCliff"]=p});else{for(var l=r;0<=l&&l<c;){if(e=w[i].points[C[l].index]){n=e[1];break}l+=f}n=E(n,0),n=v.translate(n,0,1,0,1),u.push({isNull:!0,plotX:d.translate(i,0,0,0,1),x:i,plotY:n,yBottom:n})}})}return u},k.defaultOptions=z(U.defaultOptions,{threshold:0}),k}(U),W(V.prototype,{singleStacks:!1,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("area",V),V}),B(et,"Series/Spline/SplineSeries.js",[et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(W,R){var H=this&&this.__extends||function(){var U=function(z,I){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var k in M)M.hasOwnProperty(k)&&(E[k]=M[k])})(z,I)};return function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),V=W.seriesTypes.line,$=R.merge,Z=R.pick;return R=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return H(z,U),z.prototype.getPointSpline=function(I,E,M){var k=E.plotX||0,y=E.plotY||0,h=I[M-1];if(M=I[M+1],h&&!h.isNull&&h.doCurve!==!1&&!E.isCliff&&M&&!M.isNull&&M.doCurve!==!1&&!E.isCliff){I=h.plotY||0;var u=M.plotX||0;M=M.plotY||0;var g=0,d=(1.5*k+(h.plotX||0))/2.5,v=(1.5*y+I)/2.5,w=(1.5*y+M)/2.5;(u=(1.5*k+u)/2.5)!==d&&(g=(w-v)*(u-k)/(u-d)+y-w),w+=g,(v+=g)>I&&v>y?w=2*y-(v=Math.max(I,y)):v<I&&v<y&&(w=2*y-(v=Math.min(I,y))),w>M&&w>y?v=2*y-(w=Math.max(M,y)):w<M&&w<y&&(v=2*y-(w=Math.min(M,y))),E.rightContX=u,E.rightContY=w}return E=["C",Z(h.rightContX,h.plotX,0),Z(h.rightContY,h.plotY,0),Z(d,k,0),Z(v,y,0),k,y],h.rightContX=h.rightContY=void 0,E},z.defaultOptions=$(V.defaultOptions),z}(V),W.registerSeriesType("spline",R),R}),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(W,R,H,V){var $=this&&this.__extends||function(){var E=function(M,k){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},E(M,k)};return function(M,k){function y(){this.constructor=M}E(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}}(),Z=H.seriesTypes,U=Z.area;Z=Z.area.prototype;var z=V.extend,I=V.merge;return V=function(E){function M(){var k=E!==null&&E.apply(this,arguments)||this;return k.data=void 0,k.points=void 0,k.options=void 0,k}return $(M,E),M.defaultOptions=I(W.defaultOptions,U.defaultOptions),M}(W),z(V.prototype,{getGraphPath:Z.getGraphPath,getStackPoints:Z.getStackPoints,drawGraph:Z.drawGraph,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("areaspline",V),V}),B(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"}}),B(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(W,R,H,V,$,Z,U,z){var I=this&&this.__extends||function(){var c=function(f,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i])},c(f,r)};return function(f,r){function a(){this.constructor=f}c(f,r),f.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}(),E=W.animObject,M=R.parse,k=V.hasTouch;W=V.noop;var y=z.clamp,h=z.defined,u=z.extend,g=z.fireEvent,d=z.isArray,v=z.isNumber,w=z.merge,S=z.pick,C=z.objectEach;return z=function(c){function f(){var r=c!==null&&c.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,c),f.prototype.animate=function(r){var a=this,t=this.yAxis,i=a.options,o=this.chart.inverted,e={},s=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,a.clipBox&&a.setClip(),a.group.attr(e);else{var n=Number(a.group.attr(s));a.group.animate({scaleY:1},u(E(a.options.animation),{step:function(l,b){a.group&&(e[s]=n+b.pos*(t.pos-n),a.group.attr(e))}}))}},f.prototype.init=function(r,a){c.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,a=r.options,t=r.xAxis,i=r.yAxis,o=t.options.reversedStacks;o=t.reversed&&!o||!t.reversed&&o;var e,s={},n=0;a.grouping===!1?n=1:r.chart.series.forEach(function(D){var p=D.yAxis,x=D.options;if(D.type===r.type&&(D.visible||!r.chart.options.chart.ignoreHiddenSeries)&&i.len===p.len&&i.pos===p.pos){if(x.stacking&&x.stacking!=="group"){e=D.stackKey,s[e]===void 0&&(s[e]=n++);var A=s[e]}else x.grouping!==!1&&(A=n++);D.columnIndex=A}});var l=Math.min(Math.abs(t.transA)*(t.ordinal&&t.ordinal.slope||a.pointRange||t.closestPointRange||t.tickInterval||1),t.len),b=l*a.groupPadding,T=(l-2*b)/(n||1);return a=Math.min(a.maxPointWidth||t.len,S(a.pointWidth,T*(1-2*a.pointPadding))),r.columnMetrics={width:a,offset:(T-a)/2+(b+((r.columnIndex||0)+(o?1:0))*T-l/2)*(o?-1:1),paddedWidth:T,columnCount:n},r.columnMetrics},f.prototype.crispCol=function(r,a,t,i){var o=this.chart,e=this.borderWidth,s=-(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)+s,t-=r=Math.round(r)+s),i=Math.round(a+i)+e,s=.5>=Math.abs(a)&&.5<i,i-=a=Math.round(a)+e,s&&i&&(--a,i+=1),{x:r,y:a,width:t,height:i}},f.prototype.adjustForMissingColumns=function(r,a,t,i){var o=this,e=this.options.stacking;if(!t.isNull&&1<i.columnCount){var s=this.yAxis.options.reversedStacks,n=0,l=s?0:-i.columnCount;C(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(b){if(typeof t.x=="number"){var T=b[t.x.toString()];T&&(b=T.points[o.index],e?(b&&(n=l),T.hasValidPoints&&(s?l++:l--)):d(b)&&(b=Object.keys(T.points).filter(function(D){return!D.match(",")&&T.points[D]&&1<T.points[D].length}).map(parseFloat).sort(function(D,p){return p-D}),n=b.indexOf(o.index),l=b.length))}}),r=(t.plotX||0)+((l-1)*i.paddedWidth+a)/2-a-n*i.paddedWidth}return r},f.prototype.translate=function(){var r=this,a=r.chart,t=r.options,i=r.dense=2>r.closestPointRange*r.xAxis.transA;i=r.borderWidth=S(t.borderWidth,i?0:1);var o=r.xAxis,e=r.yAxis,s=t.threshold,n=r.translatedThreshold=e.getThreshold(s),l=S(t.minPointLength,5),b=r.getColumnMetrics(),T=b.width,D=r.pointXOffset=b.offset,p=r.dataMin,x=r.dataMax,A=r.barW=Math.max(T,1+2*i);a.inverted&&(n-=.5),t.pointPadding&&(A=Math.ceil(A)),Z.prototype.translate.apply(r),r.points.forEach(function(N){var _=S(N.yBottom,n),L=999+Math.abs(_),O=N.plotX||0;L=y(N.plotY,-L,e.len+L);var j=Math.min(L,_),Y=Math.max(L,_)-j,X=T,G=O+D,q=A;l&&Math.abs(Y)<l&&(Y=l,O=!e.reversed&&!N.negative||e.reversed&&N.negative,v(s)&&v(x)&&N.y===s&&x<=s&&(e.min||0)<s&&(p!==x||(e.max||0)<=s)&&(O=!O),j=Math.abs(j-n)>l?_-l:n-(O?l:0)),h(N.options.pointWidth)&&(X=q=Math.ceil(N.options.pointWidth),G-=Math.round((X-T)/2)),t.centerInCategory&&(G=r.adjustForMissingColumns(G,X,N,b)),N.barX=G,N.pointWidth=X,N.tooltipPos=a.inverted?[y(e.len+e.pos-a.plotLeft-L,e.pos-a.plotLeft,e.len+e.pos-a.plotLeft),o.len+o.pos-a.plotTop-G-q/2,Y]:[o.left-a.plotLeft+G+q/2,y(L+e.pos-a.plotTop,e.pos-a.plotTop,e.len+e.pos-a.plotTop),Y],N.shapeType=r.pointClass.prototype.shapeType||"rect",N.shapeArgs=r.crispCol.apply(r,N.isNull?[G,n,q,0]:[G,j,q,Y])})},f.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},f.prototype.pointAttribs=function(r,a){var t=this.options,i=this.pointAttrToOptions||{},o=i.stroke||"borderColor",e=i["stroke-width"]||"borderWidth",s=r&&r.color||this.color,n=r&&r[o]||t[o]||s;i=r&&r.options.dashStyle||t.dashStyle;var l=r&&r[e]||t[e]||this[e]||0,b=S(r&&r.opacity,t.opacity,1);if(r&&this.zones.length){var T=r.getZone();s=r.options.color||T&&(T.color||r.nonZonedColor)||this.color,T&&(n=T.borderColor||n,i=T.dashStyle||i,l=T.borderWidth||l)}return a&&r&&(a=(r=w(t.states[a],r.options.states&&r.options.states[a]||{})).brightness,s=r.color||a!==void 0&&M(s).brighten(r.brightness).get()||s,n=r[o]||n,l=r[e]||l,i=r.dashStyle||i,b=S(r.opacity,b)),o={fill:s,stroke:n,"stroke-width":l,opacity:b},i&&(o.dashstyle=i),o},f.prototype.drawPoints=function(r){r===void 0&&(r=this.points);var a,t=this,i=this.chart,o=t.options,e=i.renderer,s=o.animationLimit||250;r.forEach(function(n){var l=n.graphic,b=!!l,T=l&&i.pointCount<s?"animate":"attr";v(n.plotY)&&n.y!==null?(a=n.shapeArgs,l&&n.hasNewShapeType()&&(l=l.destroy()),t.enabledDataSorting&&(n.startXPos=t.xAxis.reversed?-(a&&a.width||0):t.xAxis.width),l||(n.graphic=l=e[n.shapeType](a).add(n.group||t.group))&&t.enabledDataSorting&&i.hasRendered&&i.pointCount<s&&(l.attr({x:n.startXPos}),b=!0,T="animate"),l&&b&&l[T](w(a)),o.borderRadius&&l[T]({r:o.borderRadius}),i.styledMode||l[T](t.pointAttribs(n,n.selected&&"select")).shadow(n.allowShadow!==!1&&o.shadow,null,o.stacking&&!o.borderRadius),l&&(l.addClass(n.getClassName(),!0),l.attr({visibility:n.visible?"inherit":"hidden"}))):l&&(n.graphic=l.destroy())})},f.prototype.drawTracker=function(r){r===void 0&&(r=this.points);var a,t=this,i=t.chart,o=i.pointer,e=function(s){var n=o.getPointFromEvent(s);n!==void 0&&(o.isDirectTouch=!0,n.onMouseOver(s))};r.forEach(function(s){a=d(s.dataLabels)?s.dataLabels:s.dataLabel?[s.dataLabel]:[],s.graphic&&(s.graphic.element.point=s),a.forEach(function(n){n.div?n.div.point=s:n.element.point=s})}),t._hasTracking||(t.trackerGroups.forEach(function(s){t[s]&&(t[s].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(n){o.onTrackerMouseOut(n)}),k&&t[s].on("touchstart",e),!i.styledMode&&t.options.cursor&&t[s].css({cursor:t.options.cursor}))}),t._hasTracking=!0),g(this,"afterDrawTracker")},f.prototype.remove=function(){var r=this,a=r.chart;a.hasRendered&&a.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),u(z.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:W,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("column",z),z}),B(et,"Core/Series/DataLabel.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/FormatUtilities.js"],et["Core/Utilities.js"]],function(W,R,H){var V,$=W.getDeferredAnimation,Z=R.format,U=H.defined,z=H.extend,I=H.fireEvent,E=H.isArray,M=H.isString,k=H.merge,y=H.objectEach,h=H.pick,u=H.splat;return function(g){function d(f,r,a,t,i){var o=this,e=this.chart,s=this.isCartesian&&e.inverted,n=this.enabledDataSorting,l=f.plotX,b=f.plotY,T=a.rotation,D=a.align,p=U(l)&&U(b)&&e.isInsidePlot(l,Math.round(b),{inverted:s,paneCoordinates:!0,series:o});b=function(_){n&&o.xAxis&&!x&&o.setDataLabelStartPos(f,r,i,p,_)};var x=h(a.overflow,n?"none":"justify")==="justify";if(l=this.visible&&f.visible!==!1&&U(l)&&(f.series.forceDL||n&&!x||p||h(a.inside,!!this.options.stacking)&&t&&e.isInsidePlot(l,s?t.x+1:t.y+t.height-1,{inverted:s,paneCoordinates:!0,series:o})),s=f.pos(),l&&s){T&&r.attr({align:D}),D=r.getBBox(!0);var A=[0,0],N=e.renderer.fontMetrics(e.styledMode?void 0:a.style.fontSize,r).b;t=z({x:s[0],y:Math.round(s[1]),width:0,height:0},t),z(a,{width:D.width,height:D.height}),T?(x=!1,A=e.renderer.rotCorr(N,T),N={x:t.x+(a.x||0)+t.width/2+A.x,y:t.y+(a.y||0)+{top:0,middle:.5,bottom:1}[a.verticalAlign]*t.height},A=[D.x-Number(r.attr("x")),D.y-Number(r.attr("y"))],b(N),r[i?"attr":"animate"](N)):(b(t),r.align(a,void 0,t),N=r.alignAttr),x&&0<=t.height?this.justifyDataLabel(r,a,N,D,t,i):h(a.crop,!0)&&(t=N.x,b=N.y,t+=A[0],b+=A[1],l=e.isInsidePlot(t,b,{paneCoordinates:!0,series:o})&&e.isInsidePlot(t+D.width,b+D.height,{paneCoordinates:!0,series:o})),a.shape&&!T&&r[i?"attr":"animate"]({anchorX:s[0],anchorY:s[1]})}i&&n&&(r.placed=!1),l||n&&!x?r.show():(r.hide(),r.placed=!1)}function v(f){f===void 0&&(f=this.points);var r=this,a=r.chart,t=r.options,i=r.hasRendered||0,o=a.renderer,e=a.options.chart,s=e.backgroundColor;e=e.plotBackgroundColor;var n=o.getContrast(M(e)&&e||M(s)&&s||"#000000"),l=t.dataLabels;if(s=l.animation,s=l.defer?$(a,s,r):{defer:0,duration:0},l=S(S(a.options.plotOptions&&a.options.plotOptions.series&&a.options.plotOptions.series.dataLabels,a.options.plotOptions&&a.options.plotOptions[r.type]&&a.options.plotOptions[r.type].dataLabels),l),I(this,"drawDataLabels"),E(l)||l.enabled||r._hasPointLabels){var b=r.plotGroup("dataLabelsGroup","data-labels",i?"inherit":"hidden",l.zIndex||6);b.attr({opacity:+i}),!i&&(i=r.dataLabelsGroup)&&(r.visible&&b.show(),i[t.animation?"animate":"attr"]({opacity:1},s)),f.forEach(function(T){u(S(l,T.dlOptions||T.options&&T.options.dataLabels)).forEach(function(D,p){var x=D.enabled&&(!T.isNull||T.dataLabelOnNull)&&function(q,Q){var J=Q.filter;return!J||(Q=J.operator,q=q[J.property],J=J.value,Q===">"&&q>J||Q==="<"&&q<J||Q===">="&&q>=J||Q==="<="&&q<=J||Q==="=="&&q==J||Q==="==="&&q===J)}(T,D),A=T.connectors?T.connectors[p]:T.connector,N=T.dataLabels?T.dataLabels[p]:T.dataLabel,_=!N,L=h(D.distance,T.labelDistance);if(x){var O=T.getLabelConfig(),j=h(D[T.formatPrefix+"Format"],D.format);O=U(j)?Z(j,O,a):(D[T.formatPrefix+"Formatter"]||D.formatter).call(O,D),j=D.style;var Y=D.rotation;a.styledMode||(j.color=h(D.color,j.color,r.color,"#000000"),j.color==="contrast"?(T.contrastColor=o.getContrast(T.color||r.color),j.color=!U(L)&&D.inside||0>L||t.stacking?T.contrastColor:n):delete T.contrastColor,t.cursor&&(j.cursor=t.cursor));var X={r:D.borderRadius||0,rotation:Y,padding:D.padding,zIndex:1};if(!a.styledMode){L=D.backgroundColor;var G=D.borderColor;X.fill=L==="auto"?T.color:L,X.stroke=G==="auto"?T.color:G,X["stroke-width"]=D.borderWidth}y(X,function(q,Q){q===void 0&&delete X[Q]})}!N||x&&U(O)&&!!N.div==!!D.useHTML&&(N.rotation&&D.rotation||N.rotation===D.rotation)||(_=!0,T.dataLabel=N=T.dataLabel&&T.dataLabel.destroy(),T.dataLabels&&(T.dataLabels.length===1?delete T.dataLabels:delete T.dataLabels[p]),p||delete T.dataLabel,A&&(T.connector=T.connector.destroy(),T.connectors&&(T.connectors.length===1?delete T.connectors:delete T.connectors[p]))),x&&U(O)?(N?X.text=O:(T.dataLabels=T.dataLabels||[],N=T.dataLabels[p]=Y?o.text(O,0,0,D.useHTML).addClass("highcharts-data-label"):o.label(O,0,0,D.shape,null,null,D.useHTML,null,"data-label"),p||(T.dataLabel=N),N.addClass(" highcharts-data-label-color-"+T.colorIndex+" "+(D.className||"")+(D.useHTML?" highcharts-tracker":""))),N.options=D,N.attr(X),a.styledMode||N.css(j).shadow(D.shadow),(p=D[T.formatPrefix+"TextPath"]||D.textPath)&&!D.useHTML&&(N.setTextPath(T.getDataLabelPath&&T.getDataLabelPath(N)||T.graphic,p),T.dataLabelPath&&!p.enabled&&(T.dataLabelPath=T.dataLabelPath.destroy())),N.added||N.add(b),r.alignDataLabel(T,N,D,null,_)):N&&N.hide()})})}I(this,"afterDrawDataLabels")}function w(f,r,a,t,i,o){var e=this.chart,s=r.align,n=r.verticalAlign,l=f.box?0:f.padding||0,b=r.x;b=b===void 0?0:b;var T=r.y;T=T===void 0?0:T;var D=(a.x||0)+l;if(0>D){s==="right"&&0<=b?(r.align="left",r.inside=!0):b-=D;var p=!0}return(D=(a.x||0)+t.width-l)>e.plotWidth&&(s==="left"&&0>=b?(r.align="right",r.inside=!0):b+=e.plotWidth-D,p=!0),0>(D=a.y+l)&&(n==="bottom"&&0<=T?(r.verticalAlign="top",r.inside=!0):T-=D,p=!0),(D=(a.y||0)+t.height-l)>e.plotHeight&&(n==="top"&&0>=T?(r.verticalAlign="bottom",r.inside=!0):T+=e.plotHeight-D,p=!0),p&&(r.x=b,r.y=T,f.placed=!o,f.align(r,void 0,i)),p}function S(f,r){var a,t=[];if(E(f)&&!E(r))t=f.map(function(i){return k(i,r)});else if(E(r)&&!E(f))t=r.map(function(i){return k(f,i)});else if(E(f)||E(r))for(a=Math.max(f.length,r.length);a--;)t[a]=k(f[a],r[a]);else t=k(f,r);return t}function C(f,r,a,t,i){var o=this.chart,e=o.inverted,s=this.xAxis,n=s.reversed,l=e?r.height/2:r.width/2;f=(f=f.pointWidth)?f/2:0,r.startXPos=e?i.x:n?-l-f:s.width-l+f,r.startYPos=e?n?this.yAxis.height-l+f:-l-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&&(a&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}var c=[];g.compose=function(f){if(c.indexOf(f)===-1){var r=f.prototype;c.push(f),r.alignDataLabel=d,r.drawDataLabels=v,r.justifyDataLabel=w,r.setDataLabelStartPos=C}}}(V||(V={})),V}),B(et,"Series/Column/ColumnDataLabel.js",[et["Core/Series/DataLabel.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(W,R,H){var V,$=R.series,Z=H.merge,U=H.pick;return function(z){function I(M,k,y,h,u){var g=this.chart.inverted,d=M.series,v=(d.xAxis?d.xAxis.len:this.chart.plotSizeX)||0;d=(d.yAxis?d.yAxis.len:this.chart.plotSizeY)||0;var w=M.dlBox||M.shapeArgs,S=U(M.below,M.plotY>U(this.translatedThreshold,d)),C=U(y.inside,!!this.options.stacking);w&&(0>(h=Z(w)).y&&(h.height+=h.y,h.y=0),0<(w=h.y+h.height-d)&&w<h.height&&(h.height-=w),g&&(h={x:d-h.y-h.height,y:v-h.x-h.width,width:h.height,height:h.width}),C||(g?(h.x+=S?0:h.width,h.width=0):(h.y+=S?h.height:0,h.height=0))),y.align=U(y.align,!g||C?"center":S?"right":"left"),y.verticalAlign=U(y.verticalAlign,g||C?"middle":S?"top":"bottom"),$.prototype.alignDataLabel.call(this,M,k,y,h,u),y.inside&&M.contrastColor&&k.css({color:M.contrastColor})}var E=[];z.compose=function(M){W.compose($),E.indexOf(M)===-1&&(E.push(M),M.prototype.alignDataLabel=I)}}(V||(V={})),V}),B(et,"Series/Bar/BarSeries.js",[et["Series/Column/ColumnSeries.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var U=function(z,I){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var k in M)M.hasOwnProperty(k)&&(E[k]=M[k])})(z,I)};return function(z,I){function E(){this.constructor=z}U(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}}(),$=H.extend,Z=H.merge;return H=function(U){function z(){var I=U!==null&&U.apply(this,arguments)||this;return I.data=void 0,I.options=void 0,I.points=void 0,I}return V(z,U),z.defaultOptions=Z(W.defaultOptions,{}),z}(W),$(H.prototype,{inverted:!0}),R.registerSeriesType("bar",H),H}),B(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/>"}}}),B(et,"Series/Scatter/ScatterSeries.js",[et["Series/Scatter/ScatterSeriesDefaults.js"],et["Core/Series/SeriesRegistry.js"],et["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var E=function(M,k){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},E(M,k)};return function(M,k){function y(){this.constructor=M}E(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}}(),$=R.seriesTypes,Z=$.column,U=$.line;$=H.addEvent;var z=H.extend,I=H.merge;return H=function(E){function M(){var k=E!==null&&E.apply(this,arguments)||this;return k.data=void 0,k.options=void 0,k.points=void 0,k}return V(M,E),M.prototype.applyJitter=function(){var k=this,y=this.options.jitter,h=this.points.length;y&&this.points.forEach(function(u,g){["x","y"].forEach(function(d,v){var w="plot"+d.toUpperCase();if(y[d]&&!u.isNull){var S=k[d+"Axis"],C=y[d]*S.transA;if(S&&!S.isLog){var c=Math.max(0,u[w]-C);S=Math.min(S.len,u[w]+C),v=1e4*Math.sin(g+v*h),u[w]=c+(S-c)*(v-Math.floor(v)),d==="x"&&(u.clientX=u.plotX)}}})})},M.prototype.drawGraph=function(){this.options.lineWidth?E.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},M.defaultOptions=I(U.defaultOptions,W),M}(U),z(H.prototype,{drawTracker:Z.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),$(H,"afterTranslate",function(){this.applyJitter()}),R.registerSeriesType("scatter",H),H}),B(et,"Series/CenteredUtilities.js",[et["Core/Globals.js"],et["Core/Series/Series.js"],et["Core/Utilities.js"]],function(W,R,H){var V,$=W.deg2rad,Z=H.fireEvent,U=H.isNumber,z=H.pick,I=H.relativeLength;return function(E){E.getCenter=function(){var M=this.options,k=this.chart,y=2*(M.slicedOffset||0),h=k.plotWidth-2*y,u=k.plotHeight-2*y,g=M.center,d=Math.min(h,u),v=M.thickness,w=M.size,S=M.innerSize||0;for(typeof w=="string"&&(w=parseFloat(w)),typeof S=="string"&&(S=parseFloat(S)),M=[z(g[0],"50%"),z(g[1],"50%"),z(w&&0>w?void 0:M.size,"100%"),z(S&&0>S?void 0:M.innerSize||0,"0%")],!k.angular||this instanceof R||(M[3]=0),g=0;4>g;++g)w=M[g],k=2>g||g===2&&/%$/.test(w),M[g]=I(w,[h,u,d,M[2]][g])+(k?y:0);return M[3]>M[2]&&(M[3]=M[2]),U(v)&&2*v<M[2]&&0<v&&(M[3]=M[2]-2*v),Z(this,"afterGetCenter",{positions:M}),M},E.getStartAndEndRadians=function(M,k){return M=U(M)?M:0,k=U(k)&&k>M&&360>k-M?k:M+360,{start:$*(M+-90),end:$*(k+-90)}}}(V||(V={})),V}),B(et,"Series/Pie/PiePoint.js",[et["Core/Animation/AnimationUtilities.js"],et["Core/Series/Point.js"],et["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__extends||function(){var M=function(k,y){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var g in u)u.hasOwnProperty(g)&&(h[g]=u[g])},M(k,y)};return function(k,y){function h(){this.constructor=k}M(k,y),k.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}}(),$=W.setAnimation,Z=H.addEvent,U=H.defined;W=H.extend;var z=H.isNumber,I=H.pick,E=H.relativeLength;return R=function(M){function k(){var y=M!==null&&M.apply(this,arguments)||this;return y.labelDistance=void 0,y.options=void 0,y.series=void 0,y}return V(k,M),k.prototype.getConnectorPath=function(){var y=this.labelPosition,h=this.series.options.dataLabels,u=this.connectorShapes,g=h.connectorShape;return u[g]&&(g=u[g]),g.call(this,{x:y.final.x,y:y.final.y,alignment:y.alignment},y.connectorPosition,h)},k.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},k.prototype.haloPath=function(y){var h=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(h.x,h.y,h.r+y,h.r+y,{innerR:h.r-1,start:h.start,end:h.end})},k.prototype.init=function(){var y=this;M.prototype.init.apply(this,arguments),this.name=I(this.name,"Slice");var h=function(u){y.slice(u.type==="select")};return Z(this,"select",h),Z(this,"unselect",h),this},k.prototype.isValid=function(){return z(this.y)&&0<=this.y},k.prototype.setVisible=function(y,h){var u=this,g=this.series,d=g.chart,v=g.options.ignoreHiddenPoint;h=I(h,v),y!==this.visible&&(this.visible=this.options.visible=y=y===void 0?!this.visible:y,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(w){u[w]&&u[w][y?"show":"hide"](y)}),this.legendItem&&d.legend.colorizeItem(this,y),y||this.state!=="hover"||this.setState(""),v&&(g.isDirty=!0),h&&d.redraw())},k.prototype.slice=function(y,h,u){var g=this.series;$(u,g.chart),I(h,!0),this.sliced=this.options.sliced=U(y)?y:!this.sliced,g.options.data[g.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},k}(R),W(R.prototype,{connectorShapes:{fixedOffset:function(M,k,y){var h=k.breakAt;return k=k.touchingSliceAt,[["M",M.x,M.y],y.softConnector?["C",M.x+(M.alignment==="left"?-5:5),M.y,2*h.x-k.x,2*h.y-k.y,h.x,h.y]:["L",h.x,h.y],["L",k.x,k.y]]},straight:function(M,k){return k=k.touchingSliceAt,[["M",M.x,M.y],["L",k.x,k.y]]},crookedLine:function(M,k,y){k=k.touchingSliceAt;var h=this.series,u=h.center[0],g=h.chart.plotWidth,d=h.chart.plotLeft;h=M.alignment;var v=this.shapeArgs.r;return y=E(y.crookDistance,1),y=["L",g=h==="left"?u+v+(g+d-u-v)*(1-y):d+(u-v)*y,M.y],u=!0,(h==="left"?g>M.x||g<k.x:g<M.x||g>k.x)&&(u=!1),M=[["M",M.x,M.y]],u&&M.push(y),M.push(["L",k.x,k.y]),M}}}),R}),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}}}}),B(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(W,R,H,V,$,Z,U,z,I,E){var M=this&&this.__extends||function(){var w=function(S,C){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var r in f)f.hasOwnProperty(r)&&(c[r]=f[r])},w(S,C)};return function(S,C){function c(){this.constructor=S}w(S,C),S.prototype=C===null?Object.create(C):(c.prototype=C.prototype,new c)}}(),k=W.getStartAndEndRadians;H=H.noop;var y=E.clamp,h=E.extend,u=E.fireEvent,g=E.merge,d=E.pick,v=E.relativeLength;return E=function(w){function S(){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 M(S,w),S.prototype.animate=function(C){var c=this,f=c.points,r=c.startAngleRad;C||f.forEach(function(a){var t=a.graphic,i=a.shapeArgs;t&&i&&(t.attr({r:d(a.startR,c.center&&c.center[3]/2),start:r,end:r}),t.animate({r:i.r,start:i.start,end:i.end},c.options.animation))})},S.prototype.drawEmpty=function(){var C=this.startAngleRad,c=this.endAngleRad,f=this.options;if(this.total===0&&this.center){var r=this.center[0],a=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,a,this.center[1]/2,0,C,c).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,a,this.center[2]/2,0,{start:C,end:c,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())},S.prototype.drawPoints=function(){var C=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy()),c.graphic||(c.graphic=C[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})},S.prototype.generatePoints=function(){w.prototype.generatePoints.call(this),this.updateTotals()},S.prototype.getX=function(C,c,f){var r=this.center,a=this.radii?this.radii[f.index]||0:r[2]/2;return C=Math.asin(y((C-r[1])/(a+f.labelDistance),-1,1)),r[0]+(c?-1:1)*Math.cos(C)*(a+f.labelDistance)+(0<f.labelDistance?(c?-1:1)*this.options.dataLabels.padding:0)},S.prototype.hasData=function(){return!!this.processedXData.length},S.prototype.redrawPoints=function(){var C,c,f,r,a=this,t=a.chart,i=t.renderer,o=a.options.shadow;this.drawEmpty(),!o||a.shadowGroup||t.styledMode||(a.shadowGroup=i.g("shadow").attr({zIndex:-1}).add(a.group)),a.points.forEach(function(e){var s={};if(c=e.graphic,!e.isNull&&c){var n=void 0;r=e.shapeArgs,C=e.getTranslate(),t.styledMode||(n=e.shadowGroup,o&&!n&&(n=e.shadowGroup=i.g("shadow").add(a.shadowGroup)),n&&n.attr(C),f=a.pointAttribs(e,e.selected&&"select")),e.delayedRendering?(c.setRadialReference(a.center).attr(r).attr(C),t.styledMode||c.attr(f).attr({"stroke-linejoin":"round"}).shadow(o,n),e.delayedRendering=!1):(c.setRadialReference(a.center),t.styledMode||g(!0,s,f),g(!0,s,r,C),c.animate(s)),c.attr({visibility:e.visible?"inherit":"hidden"}),c.addClass(e.getClassName(),!0)}else c&&(e.graphic=c.destroy())})},S.prototype.sortByAngle=function(C,c){C.sort(function(f,r){return f.angle!==void 0&&(r.angle-f.angle)*c})},S.prototype.translate=function(C){u(this,"translate"),this.generatePoints();var c=this.options,f=c.slicedOffset,r=f+(c.borderWidth||0),a=k(c.startAngle,c.endAngle),t=this.startAngleRad=a.start;a=(this.endAngleRad=a.end)-t;var i=this.points,o=c.dataLabels.distance;c=c.ignoreHiddenPoint;var e,s=i.length,n=0;for(C||(this.center=C=this.getCenter()),e=0;e<s;e++){var l=i[e],b=t+n*a;!l.isValid()||c&&!l.visible||(n+=l.percentage/100);var T=t+n*a,D={x:C[0],y:C[1],r:C[2]/2,innerR:C[3]/2,start:Math.round(1e3*b)/1e3,end:Math.round(1e3*T)/1e3};l.shapeType="arc",l.shapeArgs=D,l.labelDistance=d(l.options.dataLabels&&l.options.dataLabels.distance,o),l.labelDistance=v(l.labelDistance,D.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,l.labelDistance),(T=(T+b)/2)>1.5*Math.PI?T-=2*Math.PI:T<-Math.PI/2&&(T+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(T)*f),translateY:Math.round(Math.sin(T)*f)},D=Math.cos(T)*C[2]/2;var p=Math.sin(T)*C[2]/2;l.tooltipPos=[C[0]+.7*D,C[1]+.7*p],l.half=T<-Math.PI/2||T>Math.PI/2?1:0,l.angle=T,b=Math.min(r,l.labelDistance/5),l.labelPosition={natural:{x:C[0]+D+Math.cos(T)*l.labelDistance,y:C[1]+p+Math.sin(T)*l.labelDistance},final:{},alignment:0>l.labelDistance?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:C[0]+D+Math.cos(T)*b,y:C[1]+p+Math.sin(T)*b},touchingSliceAt:{x:C[0]+D,y:C[1]+p}}}}u(this,"afterTranslate")},S.prototype.updateTotals=function(){var C,c=this.points,f=c.length,r=this.options.ignoreHiddenPoint,a=0;for(C=0;C<f;C++){var t=c[C];!t.isValid()||r&&!t.visible||(a+=t.y)}for(this.total=a,C=0;C<f;C++)(t=c[C]).percentage=0<a&&(t.visible||!r)?t.y/a*100:0,t.total=a},S.defaultOptions=g(U.defaultOptions,Z),S}(U),h(E.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:V.drawRectangle,drawTracker:R.prototype.drawTracker,getCenter:W.getCenter,getSymbol:H,isCartesian:!1,noSharedTooltip:!0,pointAttribs:R.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:H,trackerGroups:["group","dataLabelsGroup"]}),z.registerSeriesType("pie",E),E}),B(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(W,R,H,V,$){var Z,U=R.noop,z=H.distribute,I=V.series,E=$.arrayMax,M=$.clamp,k=$.defined,y=$.merge,h=$.pick,u=$.relativeLength;return function(g){function d(){var c,f,r,a,t,i,o,e,s,n,l,b,T=this,D=T.data,p=T.chart,x=T.options.dataLabels||{},A=x.connectorPadding,N=p.plotWidth,_=p.plotHeight,L=p.plotLeft,O=Math.round(p.chartWidth/3),j=T.center,Y=j[2]/2,X=j[1],G=[[],[]],q=[0,0,0,0],Q=T.dataLabelPositioners;T.visible&&(x.enabled||T._hasPointLabels)&&(D.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(T),D.forEach(function(J){J.dataLabel&&(J.visible?(G[J.half].push(J),J.dataLabel._pos=null,!k(x.style.width)&&!k(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)&&J.dataLabel.getBBox().width>O&&(J.dataLabel.css({width:Math.round(.7*O)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),G.forEach(function(J,rt){var lt,gt=J.length,mt=[];if(gt){if(T.sortByAngle(J,rt-.5),0<T.maxLabelDistance){var bt=Math.max(0,X-Y-T.maxLabelDistance),yt=Math.min(X+Y+T.maxLabelDistance,p.plotHeight);J.forEach(function(ht){0<ht.labelDistance&&ht.dataLabel&&(ht.top=Math.max(0,X-Y-ht.labelDistance),ht.bottom=Math.min(X+Y+ht.labelDistance,p.plotHeight),lt=ht.dataLabel.getBBox().height||21,ht.distributeBox={target:ht.labelPosition.natural.y-ht.top+lt/2,size:lt,rank:ht.y},mt.push(ht.distributeBox))}),z(mt,bt=yt+lt-bt,bt/5)}for(l=0;l<gt;l++){if(c=J[l],i=c.labelPosition,a=c.dataLabel,n=c.visible===!1?"hidden":"inherit",s=bt=i.natural.y,mt&&k(c.distributeBox)&&(c.distributeBox.pos===void 0?n="hidden":(o=c.distributeBox.size,s=Q.radialDistributionY(c))),delete c.positionIndex,x.justify)e=Q.justify(c,Y,j);else switch(x.alignTo){case"connectors":e=Q.alignToConnectors(J,rt,N,L);break;case"plotEdges":e=Q.alignToPlotEdges(a,rt,N,L);break;default:e=Q.radialDistributionX(T,c,s,bt)}a._attr={visibility:n,align:i.alignment},b=c.options.dataLabels||{},a._pos={x:e+h(b.x,x.x)+({left:A,right:-A}[i.alignment]||0),y:s+h(b.y,x.y)-10},i.final.x=e,i.final.y=s,h(x.crop,!0)&&(t=a.getBBox().width,bt=null,e-t<A&&rt===1?(bt=Math.round(t-e+A),q[3]=Math.max(bt,q[3])):e+t>N-A&&rt===0&&(bt=Math.round(e+t-N+A),q[1]=Math.max(bt,q[1])),0>s-o/2?q[0]=Math.max(Math.round(o/2-s),q[0]):s+o/2>_&&(q[2]=Math.max(Math.round(s+o/2-_),q[2])),a.sideOverflow=bt)}}}),E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(J){var rt;b=y(x,J.options.dataLabels),(f=h(b.connectorWidth,1))&&(r=J.connector,(a=J.dataLabel)&&a._pos&&J.visible&&0<J.labelDistance?(n=a._attr.visibility,(rt=!r)&&(J.connector=r=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(T.dataLabelsGroup),p.styledMode||r.attr({"stroke-width":f,stroke:b.connectorColor||J.color||"#666666"})),r[rt?"attr":"animate"]({d:J.getConnectorPath()}),r.attr("visibility",n)):r&&(J.connector=r.destroy()))}))}function v(){this.points.forEach(function(c){var f,r=c.dataLabel;r&&c.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 c.distributeBox},this)}function w(c){var f=this.center,r=this.options,a=r.center,t=r.minSize||80,i=r.size!==null;if(!i){if(a[0]!==null)var o=Math.max(f[2]-Math.max(c[1],c[3]),t);else o=Math.max(f[2]-c[1]-c[3],t),f[0]+=(c[3]-c[1])/2;a[1]!==null?o=M(o,t,f[2]-Math.max(c[0],c[2])):(o=M(o,t,f[2]-c[0]-c[2]),f[1]+=(c[0]-c[2])/2),o<f[2]?(f[2]=o,f[3]=Math.min(r.thickness?Math.max(0,o-2*r.thickness):Math.max(0,u(r.innerSize||0,o)),o),this.translate(f),this.drawDataLabels&&this.drawDataLabels()):i=!0}return i}var S=[],C={radialDistributionY:function(c){return c.top+c.distributeBox.pos},radialDistributionX:function(c,f,r,a){return c.getX(r<f.top+2||r>f.bottom-2?a:r,f.half,f)},justify:function(c,f,r){return r[0]+(c.half?-1:1)*(f+c.labelDistance)},alignToPlotEdges:function(c,f,r,a){return c=c.getBBox().width,f?c+a:r-c-a},alignToConnectors:function(c,f,r,a){var t,i=0;return c.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),f?i+a:r-i-a}};g.compose=function(c){W.compose(I),S.indexOf(c)===-1&&(S.push(c),(c=c.prototype).dataLabelPositioners=C,c.alignDataLabel=U,c.drawDataLabels=d,c.placeDataLabels=v,c.verifyDataLabelOverflow=w)}}(Z||(Z={})),Z}),B(et,"Extensions/OverlappingDataLabels.js",[et["Core/Chart/Chart.js"],et["Core/Utilities.js"]],function(W,R){function H(E,M){var k=!1;if(E){var y=E.newOpacity;E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),k=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,function(){M.styledMode||E.css({pointerEvents:y?"auto":"none"})}),$(M,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0}return k}var V=R.addEvent,$=R.fireEvent,Z=R.isArray,U=R.isNumber,z=R.objectEach,I=R.pick;V(W,"render",function(){var E=this,M=[];(this.labelCollectors||[]).forEach(function(k){M=M.concat(k())}),(this.yAxis||[]).forEach(function(k){k.stacking&&k.options.stackLabels&&!k.options.stackLabels.allowOverlap&&z(k.stacking.stacks,function(y){z(y,function(h){h.label&&M.push(h.label)})})}),(this.series||[]).forEach(function(k){var y=k.options.dataLabels;k.visible&&(y.enabled!==!1||k._hasPointLabels)&&(y=function(h){return h.forEach(function(u){u.visible&&(Z(u.dataLabels)?u.dataLabels:u.dataLabel?[u.dataLabel]:[]).forEach(function(g){var d=g.options;g.labelrank=I(d.labelrank,u.labelrank,u.shapeArgs&&u.shapeArgs.height),d.allowOverlap?(g.oldOpacity=g.opacity,g.newOpacity=1,H(g,E)):M.push(g)})})},y(k.nodes||[]),y(k.points))}),this.hideOverlappingLabels(M)}),W.prototype.hideOverlappingLabels=function(E){var M,k,y,h=this,u=E.length,g=h.renderer,d=!1,v=function(C){var c,f,r=C.box?0:C.padding||0,a=c=0;if(C&&(!C.alignAttr||C.placed)){var t=C.alignAttr||{x:C.attr("x"),y:C.attr("y")},i=C.parentGroup;C.width||(c=C.getBBox(),C.width=c.width,C.height=c.height,c=g.fontMetrics(null,C.element).h);var o=C.width-2*r;return(f={left:"0",center:"0.5",right:"1"}[C.alignValue])?a=+f*o:U(C.x)&&Math.round(C.x)!==C.translateX&&(a=C.x-C.translateX),{x:t.x+(i.translateX||0)+r-(a||0),y:t.y+(i.translateY||0)+r-c,width:C.width-2*r,height:C.height-2*r}}};for(k=0;k<u;k++)(M=E[k])&&(M.oldOpacity=M.opacity,M.newOpacity=1,M.absoluteBox=v(M));for(E.sort(function(C,c){return(c.labelrank||0)-(C.labelrank||0)}),k=0;k<u;k++){var w=(v=E[k])&&v.absoluteBox;for(M=k+1;M<u;++M){var S=(y=E[M])&&y.absoluteBox;!w||!S||v===y||v.newOpacity===0||y.newOpacity===0||v.visibility==="hidden"||y.visibility==="hidden"||S.x>=w.x+w.width||S.x+S.width<=w.x||S.y>=w.y+w.height||S.y+S.height<=w.y||((v.labelrank<y.labelrank?v:y).newOpacity=0)}}E.forEach(function(C){H(C,h)&&(d=!0)}),d&&$(h,"afterHideAllOverlappingLabels")}}),B(et,"Core/Responsive.js",[et["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.find,$=W.isArray,Z=W.isObject,U=W.merge,z=W.objectEach,I=W.pick,E=W.splat,M=W.uniqueKey;return function(k){var y=[];k.compose=function(u){return y.indexOf(u)===-1&&(y.push(u),H(u.prototype,h.prototype)),u};var h=function(){function u(){}return u.prototype.currentOptions=function(g){var d=this,v={};return function w(S,C,c,f){var r;z(S,function(a,t){if(!f&&-1<d.collectionsWithUpdate.indexOf(t)&&C[t])for(a=E(a),c[t]=[],r=0;r<Math.max(a.length,C[t].length);r++)C[t][r]&&(a[r]===void 0?c[t][r]=C[t][r]:(c[t][r]={},w(a[r],C[t][r],c[t][r],f+1)));else Z(a)?(c[t]=$(a)?[]:{},w(a,C[t]||{},c[t],f+1)):c[t]=C[t]===void 0?null:C[t]})}(g,this.options,v,0),v},u.prototype.matchResponsiveRule=function(g,d){var v=g.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)&&d.push(g._id)},u.prototype.setResponsive=function(g,d){var v=this,w=this.options.responsive,S=this.currentResponsive,C=[];!d&&w&&w.rules&&w.rules.forEach(function(c){c._id===void 0&&(c._id=M()),v.matchResponsiveRule(c,C)},this),d=U.apply(void 0,C.map(function(c){return V((w||{}).rules||[],function(f){return f._id===c})}).map(function(c){return c&&c.chartOptions})),d.isResponsiveOptions=!0,(C=C.toString()||void 0)!==(S&&S.ruleIds)&&(S&&this.update(S.undoOptions,g,!0),C?((S=this.currentOptions(d)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:C,mergedOptions:d,undoOptions:S},this.update(d,g,!0)):this.currentResponsive=void 0)},u}()}(R||(R={})),R}),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(W,R,H,V,$,Z,U,z,I,E,M,k,y,h,u,g,d,v,w,S,C,c,f,r,a,t,i,o,e,s,n,l,b,T,D){return W.animate=$.animate,W.animObject=$.animObject,W.getDeferredAnimation=$.getDeferredAnimation,W.setAnimation=$.setAnimation,W.stop=$.stop,W.timers=V.timers,W.AST=Z,W.Axis=y,W.Chart=f,W.chart=f.chart,W.Fx=V,W.Legend=c,W.PlotLineOrBand=g,W.Point=w,W.Pointer=C.isRequired()?C:S,W.Series=t,W.StackItem=a,W.SVGElement=I,W.SVGRenderer=E,W.Tick=d,W.Time=D,W.Tooltip=v,W.Color=T,W.color=T.parse,k.compose(E),M.compose(I),W.defaultOptions=H.defaultOptions,W.getOptions=H.getOptions,W.time=H.defaultTime,W.setOptions=H.setOptions,W.dateFormat=U.dateFormat,W.format=U.format,W.numberFormat=U.numberFormat,W.addEvent=R.addEvent,W.arrayMax=R.arrayMax,W.arrayMin=R.arrayMin,W.attr=R.attr,W.clearTimeout=R.clearTimeout,W.correctFloat=R.correctFloat,W.createElement=R.createElement,W.css=R.css,W.defined=R.defined,W.destroyObjectProperties=R.destroyObjectProperties,W.discardElement=R.discardElement,W.distribute=z.distribute,W.erase=R.erase,W.error=R.error,W.extend=R.extend,W.extendClass=R.extendClass,W.find=R.find,W.fireEvent=R.fireEvent,W.getMagnitude=R.getMagnitude,W.getStyle=R.getStyle,W.inArray=R.inArray,W.isArray=R.isArray,W.isClass=R.isClass,W.isDOMElement=R.isDOMElement,W.isFunction=R.isFunction,W.isNumber=R.isNumber,W.isObject=R.isObject,W.isString=R.isString,W.keys=R.keys,W.merge=R.merge,W.normalizeTickInterval=R.normalizeTickInterval,W.objectEach=R.objectEach,W.offset=R.offset,W.pad=R.pad,W.pick=R.pick,W.pInt=R.pInt,W.relativeLength=R.relativeLength,W.removeEvent=R.removeEvent,W.seriesType=i.seriesType,W.splat=R.splat,W.stableSort=R.stableSort,W.syncTimeout=R.syncTimeout,W.timeUnits=R.timeUnits,W.uniqueKey=R.uniqueKey,W.useSerialIds=R.useSerialIds,W.wrap=R.wrap,e.compose(o),l.compose(t),h.compose(y),u.compose(y),n.compose(s),g.compose(y),b.compose(f),r.compose(y,f,t),W}),et["masters/highcharts.src.js"]._modules=et,et["masters/highcharts.src.js"]},ot.exports?(ut.default=ut,ot.exports=pt.document?ut(pt):ut):(ct=function(){return ut(pt)}.call(nt,at,nt,ot))===void 0||(ot.exports=ct)},4812:(ot,nt,at)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function et(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}et(B,"Series/Bullet/BulletPoint.js",[B["Series/Column/ColumnSeries.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.options=void 0,U.series=void 0,U}return H(Z,$),Z.prototype.destroy=function(){this.targetGraphic&&(this.targetGraphic=this.targetGraphic.destroy()),$.prototype.destroy.apply(this,arguments)},Z}(W.prototype.pointClass);return V}),et(B,"Series/Bullet/BulletSeries.js",[B["Series/Bullet/BulletPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(y,h){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},V(y,h)},function(y,h){function u(){this.constructor=y}V(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),Z=R.seriesTypes.column,U=H.extend,z=H.isNumber,I=H.merge,E=H.pick,M=H.relativeLength,k=function(y){function h(){var u=y!==null&&y.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u.targetData=void 0,u}return $(h,y),h.prototype.drawPoints=function(){var u=this,g=u.chart,d=u.options,v=d.animationLimit||250;y.prototype.drawPoints.apply(this,arguments),u.points.forEach(function(w){var S,C,c,f,r,a=w.options,t=w.target,i=w.y,o=w.targetGraphic;if(z(t)&&t!==null){c=(f=I(d.targetOptions,a.targetOptions)).height;var e=w.shapeArgs;w.dlBox&&e&&!z(e.width)&&(e=w.dlBox),C=M(f.width,e.width),r=u.yAxis.translate(t,!1,!0,!1,!0)-f.height/2-.5,S=u.crispCol.apply({chart:g,borderWidth:f.borderWidth,options:{crisp:d.crisp}},[e.x+e.width/2-C/2,r,C,c]),o?(o[g.pointCount<v?"animate":"attr"](S),z(i)&&i!==null?o.element.point=w:o.element.point=void 0):w.targetGraphic=o=g.renderer.rect().attr(S).add(u.group),g.styledMode||o.attr({fill:E(f.color,a.color,u.zones.length&&(w.getZone.call({series:u,x:w.x,y:t,options:{}}).color||u.color)||void 0,w.color,u.color),stroke:E(f.borderColor,w.borderColor,u.options.borderColor),"stroke-width":f.borderWidth,r:f.borderRadius}),z(i)&&i!==null&&(o.element.point=w),o.addClass(w.getClassName()+" highcharts-bullet-target",!0)}else o&&(w.targetGraphic=o.destroy())})},h.prototype.getExtremes=function(u){var g=y.prototype.getExtremes.call(this,u),d=this.targetData;if(d&&d.length){var v=y.prototype.getExtremes.call(this,d);z(v.dataMin)&&(g.dataMin=Math.min(E(g.dataMin,1/0),v.dataMin)),z(v.dataMax)&&(g.dataMax=Math.max(E(g.dataMax,-1/0),v.dataMax))}return g},h.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/>'}}),h}(Z);return U(k.prototype,{parallelArrays:["x","y","target"],pointArrayMap:["y","target"]}),k.prototype.pointClass=W,R.registerSeriesType("bullet",k),k}),et(B,"masters/modules/bullet.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[at(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},5098:(ot,nt,at)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function et(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}et(B,"Accessibility/Utils/HTMLUtilities.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.doc,V=W.win,$=R.css,Z=V.EventTarget&&new V.EventTarget||"none";function U(I){if(typeof V.MouseEvent=="function")return new V.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||V,I.detail,I.screenX,I.screenY,I.clientX,I.clientY,I.ctrlKey,I.altKey,I.shiftKey,I.metaKey,I.button,I.relatedTarget),E}return z(I.type)}function z(I,E,M){var k=E||{x:0,y:0};if(typeof V.MouseEvent=="function")return new V.MouseEvent(I,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:M||Z,view:V,detail:I==="click"?1:0,screenX:k.x,screenY:k.y,clientX:k.x,clientY:k.y});if(H.createEvent){var y=H.createEvent("MouseEvent");if(y.initMouseEvent)return y.initMouseEvent(I,!0,!0,V,I==="click"?1:0,k.x,k.y,k.x,k.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:U,cloneTouchEvent:function(I){var E=function(y){for(var h=[],u=0;u<y.length;++u){var g=y.item(u);g&&h.push(g)}return h};if(typeof V.TouchEvent=="function"){var M=new V.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&&M.preventDefault(),M}var k=U(I);return k.touches=I.touches,k.changedTouches=I.changedTouches,k.targetTouches=I.targetTouches,k},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:z,getHeadingTagNameForElement:function(I){var E=function(y){var h=parseInt(y.slice(1),10);return"h"+Math.min(6,h+1)},M=function(y){return/H[1-6]/.test(y)},k=function(y){var h=function(d){for(var v=d;v=v.previousSibling;){var w=v.tagName||"";if(M(w))return w}return""}(y);if(h)return E(h);var u=y.parentElement;if(!u)return"p";var g=u.tagName;return M(g)?E(g):k(u)};return k(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(B,"Accessibility/A11yI18n.js",[B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.format,$=R.getNestedProperty,Z=R.pick;return function(U){var z=[];function I(M,k,y){var h,u,g=function(w,S){var C=w.slice(S||0),c=C.indexOf("{"),f=C.indexOf("}");if(c>-1&&f>c)return{statement:C.substring(c+1,f),begin:S+c+1,end:S+f}},d=[],v=0;do h=g(M,v),(u=M.substring(v,h&&h.begin-1)).length&&d.push({value:u,type:"constant"}),h&&d.push({value:h.statement,type:"statement"}),v=h?h.end+1:v+1;while(h);return d.forEach(function(w){w.type==="statement"&&(w.value=function(S,C){var c,f,r,a=S.indexOf("#each("),t=S.indexOf("#plural("),i=S.indexOf("["),o=S.indexOf("]");if(a>-1){var e=S.slice(a).indexOf(")")+a,s=S.substring(0,a),n=S.substring(e+1),l=S.substring(a+6,e).split(","),b=Number(l[1]),T=void 0;if(f="",c=$(l[0],C)){T=(b=isNaN(b)?c.length:b)<0?c.length+b:Math.min(b,c.length);for(var D=0;D<T;++D)f+=s+c[D]+n}return f.length?f:""}if(t>-1){var p=S.slice(t).indexOf(")")+t,x=S.substring(t+8,p).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 A=S.substring(0,i),N=Number(S.substring(i+1,o)),_=void 0;return c=$(A,C),!isNaN(N)&&c&&(N<0?(_=c[c.length+N])===void 0&&(_=c[0]):(_=c[N])===void 0&&(_=c[c.length-1])),_!==void 0?_:""}return"{"+S+"}"}(w.value,k))}),V(d.reduce(function(w,S){return w+S.value},""),k,y)}function E(M,k){for(var y=M.split("."),h=this.options.lang,u=0;u<y.length;++u)h=h&&h[y[u]];return typeof h=="string"?I(h,k,this):""}U.compose=function(M){return z.indexOf(M)===-1&&(z.push(M),M.prototype.langFormat=E),M},U.i18nFormat=I}(H||(H={})),H}),et(B,"Accessibility/Utils/ChartUtilities.js",[B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.doc,$=R.stripHTMLTagsFromString,Z=H.defined,U=H.find,z=H.fireEvent;function I(M){if(M.points&&M.points.length){var k=U(M.points,function(y){return!!y.graphic});return k&&k.graphic&&k.graphic.element}}function E(M){var k=I(M);return k&&k.parentNode||M.graph&&M.graph.element||M.group&&M.group.element}return{fireEventOnWrappedOrUnwrappedElement:function M(k,y){var h=y.type,u=k.hcEvents;V.createEvent&&(k.dispatchEvent||k.fireEvent)?k.dispatchEvent?k.dispatchEvent(y):k.fireEvent(h,y):u&&u[h]?z(k,h,y):k.element&&M(k.element,y)},getChartTitle:function(M){return $(M.options.title.text||M.langFormat("accessibility.defaultChartTitle",{chart:M}))},getAxisDescription:function(M){return M&&(M.userOptions&&M.userOptions.accessibility&&M.userOptions.accessibility.description||M.axisTitle&&M.axisTitle.textStr||M.options.id||M.categories&&"categories"||M.dateTime&&"Time"||"values")},getAxisRangeDescription:function(M){var k=M.options||{};return k.accessibility&&k.accessibility.rangeDescription!==void 0?k.accessibility.rangeDescription:M.categories?function(y){var h=y.chart;return y.dataMax&&y.dataMin?h.langFormat("accessibility.axis.rangeCategories",{chart:h,axis:y,numCategories:y.dataMax-y.dataMin+1}):""}(M):!M.dateTime||M.min!==0&&M.dataMin!==0?function(y){var h=y.chart,u=h.options,g=u&&u.accessibility&&u.accessibility.screenReaderSection.axisRangeDateFormat||"",d={min:y.dataMin||y.min||0,max:y.dataMax||y.max||0},v=function(w){return y.dateTime?h.time.dateFormat(g,d[w]):d[w].toString()};return h.langFormat("accessibility.axis.rangeFromTo",{chart:h,axis:y,rangeFrom:v("min"),rangeTo:v("max")})}(M):function(y){var h=y.chart,u={},g=y.dataMin||y.min||0,d=y.dataMax||y.max||0,v="Seconds";u.Seconds=(d-g)/1e3,u.Minutes=u.Seconds/60,u.Hours=u.Minutes/60,u.Days=u.Hours/24,["Minutes","Hours","Days"].forEach(function(S){u[S]>2&&(v=S)});var w=u[v].toFixed(v!=="Seconds"&&v!=="Minutes"?1:0);return h.langFormat("accessibility.axis.timeRange"+v,{chart:h,axis:y,range:w.replace(".0","")})}(M)},getPointFromXY:function(M,k,y){for(var h,u=M.length;u--;)if(h=U(M[u].points||[],function(g){return g.x===k&&g.y===y}))return h},getSeriesFirstPointElement:I,getSeriesFromName:function(M,k){return k?(M.series||[]).filter(function(y){return y.name===k}):M.series},getSeriesA11yElement:E,unhideChartElementFromAT:function M(k,y){y.setAttribute("aria-hidden",!1),y!==k.renderTo&&y.parentNode&&y.parentNode!==V.body&&(Array.prototype.forEach.call(y.parentNode.childNodes,function(h){h.hasAttribute("aria-hidden")||h.setAttribute("aria-hidden",!0)}),M(k,y.parentNode))},hideSeriesFromAT:function(M){var k=E(M);k&&k.setAttribute("aria-hidden",!0)},scrollToPoint:function(M){var k=M.series.xAxis,y=M.series.yAxis,h=k&&k.scrollbar?k:y,u=h&&h.scrollbar;if(u&&Z(u.to)&&Z(u.from)){var g=u.to-u.from,d=function(v,w){if(!Z(v.dataMin)||!Z(v.dataMax))return 0;var S=v.toPixels(v.dataMin),C=v.toPixels(v.dataMax),c=v.coll==="xAxis"?"x":"y";return(v.toPixels(w[c]||0)-S)/(C-S)}(h,M);u.updatePosition(d-g/2,d+g/2),z(u,"changed",{from:u.from,to:u.to,trigger:"scrollbar",DOMEvent:null})}}}}),et(B,"Accessibility/Utils/DOMElementProvider.js",[B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R){var H=W.doc,V=R.removeElement,$=function(){function Z(){this.elements=[]}return Z.prototype.createElement=function(){var U=H.createElement.apply(H,arguments);return this.elements.push(U),U},Z.prototype.destroyCreatedElements=function(){this.elements.forEach(function(U){V(U)}),this.elements=[]},Z}();return $}),et(B,"Accessibility/Utils/EventProvider.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=R.addEvent,V=function(){function $(){this.eventRemovers=[]}return $.prototype.addEvent=function(){var Z=H.apply(W,arguments);return this.eventRemovers.push(Z),Z},$.prototype.removeAddedEvents=function(){this.eventRemovers.forEach(function(Z){return Z()}),this.eventRemovers=[]},$}();return V}),et(B,"Accessibility/AccessibilityComponent.js",[B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.fireEventOnWrappedOrUnwrappedElement,U=V.getFakeMouseEvent,z=$.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(M,k){this.chart=M,this.eventProvider=new H,this.domElementProvider=new R,this.proxyProvider=k,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(M,k,y,h){return this.eventProvider.addEvent(M,k,y,h)},E.prototype.createElement=function(M,k){return this.domElementProvider.createElement(M,k)},E.prototype.fakeClickEvent=function(M){var k=U("click");Z(M,k)},E.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},E}();return z(I.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),I}),et(B,"Accessibility/KeyboardNavigationHandler.js",[B["Core/Utilities.js"]],function(W){var R=W.find;return function(){function H(V,$){this.chart=V,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(V){var $=V.which||V.keyCode,Z=this.response.noHandler,U=R(this.keyCodeMap,function(z){return z[0].indexOf($)>-1});return U?Z=U[1].call(this,$,V):$===9&&(Z=this.response[V.shiftKey?"prev":"next"]),Z},H}()}),et(B,"Accessibility/Components/ContainerComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},Z(y,h)},function(y,h){function u(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),z=H.unhideChartElementFromAT,I=H.getChartTitle,E=V.doc,M=$.stripHTMLTagsFromString,k=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return U(h,y),h.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},h.prototype.handleSVGTitleElement=function(){var u=this.chart,g="highcharts-title-"+u.index,d=M(u.langFormat("accessibility.svgContainerTitle",{chartTitle:I(u)}));if(d.length){var v=this.svgTitleElement=this.svgTitleElement||E.createElementNS("http://www.w3.org/2000/svg","title");v.textContent=d,v.id=g,u.renderTo.insertBefore(v,u.renderTo.firstChild)}},h.prototype.setSVGContainerLabel=function(){var u=this.chart,g=u.langFormat("accessibility.svgContainerLabel",{chartTitle:I(u)});u.renderer.box&&g.length&&u.renderer.box.setAttribute("aria-label",g)},h.prototype.setGraphicContainerAttrs=function(){var u=this.chart,g=u.langFormat("accessibility.graphicContainerLabel",{chartTitle:I(u)});g.length&&u.container.setAttribute("aria-label",g)},h.prototype.setRenderToAttrs=function(){var u=this.chart,g=u.options.accessibility.landmarkVerbosity!=="disabled",d=u.langFormat("accessibility.chartContainerLabel",{title:I(u),chart:u});d&&(u.renderTo.setAttribute("role",g?"region":"group"),u.renderTo.setAttribute("aria-label",d))},h.prototype.makeCreditsAccessible=function(){var u=this.chart,g=u.credits;g&&(g.textStr&&g.element.setAttribute("aria-label",u.langFormat("accessibility.credits",{creditsStr:M(g.textStr)})),z(u,g.element))},h.prototype.getKeyboardNavigation=function(){var u=this.chart;return new R(u,{keyCodeMap:[],validate:function(){return!0},init:function(){var g=u.accessibility;g&&g.keyboardNavigation.tabindexContainer.focus()}})},h.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},h}(W);return k}),et(B,"Accessibility/FocusBorder.js",[B["Core/Renderer/SVG/SVGLabel.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.pick;return function(Z){var U=[],z=["x","y","transform","width","height","r","d","stroke-width"];function I(){var y=this.focusElement,h=this.options.accessibility.keyboardNavigation.focusBorder;y&&(y.removeFocusBorder(),h.enabled&&y.addFocusBorder(h.margin,{stroke:h.style.color,strokeWidth:h.style.lineWidth,r:h.style.borderRadius}))}function E(y,h){var u=this.options.accessibility.keyboardNavigation.focusBorder,g=h||y.element;g&&g.focus&&(g.hcEvents&&g.hcEvents.focusin||V(g,"focusin",function(){}),g.focus(),u.hideBrowserFocusOutline&&(g.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=y,this.renderFocusBorder()}function M(y,h){this.focusBorder&&this.removeFocusBorder();var u=this.getBBox(),g=$(y,3),d=this.parentGroup,v=this.scaleX||d&&d.scaleX,w=this.scaleY||d&&d.scaleY,S=(v?!w:w)?Math.abs(v||w||1):(Math.abs(v||1)+Math.abs(w||1))/2;u.x+=this.translateX?this.translateX:0,u.y+=this.translateY?this.translateY:0;var C,c,f,r=u.x-g,a=u.y-g,t=u.width+2*g,i=u.height+2*g,o=this instanceof W;if(this.element.nodeName==="text"||o){var e=!!this.rotation,s=o?{x:e?1:0,y:0}:(c=0,f=0,(C=this).attr("text-anchor")==="middle"?c=f=.5:C.rotation?c=.25:f=.75,{x:c,y:f}),n=+this.attr("x"),l=+this.attr("y");if(isNaN(n)||(r=n-u.width*s.x-g),isNaN(l)||(a=l-u.height*s.y-g),o&&e){var b=t;t=i,i=b,isNaN(n)||(r=n-u.height*s.x-g),isNaN(l)||(a=l-u.width*s.y-g)}}this.focusBorder=this.renderer.rect(r,a,t,i,parseInt((h&&h.r||0).toString(),10)/S).addClass("highcharts-focus-border").attr({zIndex:99}).add(d),this.renderer.styledMode||this.focusBorder.attr({stroke:h&&h.stroke,"stroke-width":(h&&h.strokeWidth||0)/S}),function(T){for(var D=[],p=1;p<arguments.length;p++)D[p-1]=arguments[p];T.focusBorderUpdateHooks||(T.focusBorderUpdateHooks={},z.forEach(function(x){var A=x+"Setter",N=T[A]||T._defaultSetter;T.focusBorderUpdateHooks[A]=N,T[A]=function(){var _=N.apply(T,arguments);return T.addFocusBorder.apply(T,D),_}}))}(this,y,h),function(T){if(!T.focusBorderDestroyHook){var D=T.destroy;T.destroy=function(){return T.focusBorder&&T.focusBorder.destroy&&T.focusBorder.destroy(),D.apply(T,arguments)},T.focusBorderDestroyHook=D}}(this)}function k(){var y;(function(h){h.focusBorderUpdateHooks&&(Object.keys(h.focusBorderUpdateHooks).forEach(function(u){var g=h.focusBorderUpdateHooks[u];g===h._defaultSetter?delete h[u]:h[u]=g}),delete h.focusBorderUpdateHooks)})(this),(y=this).focusBorderDestroyHook&&(y.destroy=y.focusBorderDestroyHook,delete y.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}Z.compose=function(y,h){if(U.indexOf(y)===-1){U.push(y);var u=y.prototype;u.renderFocusBorder=I,u.setFocusToElement=E}if(U.indexOf(h)===-1){U.push(h);var g=h.prototype;g.addFocusBorder=M,g.removeFocusBorder=k}}}(H||(H={})),H}),et(B,"Accessibility/Utils/Announcer.js",[B["Core/Renderer/HTML/AST.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=H.doc,U=V.addClass,z=V.visuallyHideElement,I=$.attr;return function(){function E(M,k){this.chart=M,this.domElementProvider=new R,this.announceRegion=this.addAnnounceRegion(k)}return E.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},E.prototype.announce=function(M){var k=this;W.setElementHTML(this.announceRegion,M),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(function(){k.announceRegion.innerHTML=W.emptyHTML,delete k.clearAnnouncementRegionTimer},1e3)},E.prototype.addAnnounceRegion=function(M){var k=this.chart.announcerContainer||this.createAnnouncerContainer(),y=this.domElementProvider.createElement("div");return I(y,{"aria-hidden":!1,"aria-live":M}),this.chart.styledMode?U(y,"highcharts-visually-hidden"):z(y),k.appendChild(y),y},E.prototype.createAnnouncerContainer=function(){var M=this.chart,k=Z.createElement("div");return I(k,{"aria-hidden":!1,class:"highcharts-announcer-container"}),k.style.position="relative",M.renderTo.insertBefore(k,M.renderTo.firstChild),M.announcerContainer=k,k},E}()}),et(B,"Accessibility/Components/AnnotationsA11y.js",[B["Accessibility/Utils/HTMLUtilities.js"]],function(W){var R=W.escapeStringForHTML,H=W.stripHTMLTagsFromString;function V(z){return(z.annotations||[]).reduce(function(I,E){return E.options&&E.options.visible!==!1&&(I=I.concat(E.labels)),I},[])}function $(z){return z.options&&z.options.accessibility&&z.options.accessibility.description||z.graphic&&z.graphic.text&&z.graphic.text.textStr||""}function Z(z){var I=z.options&&z.options.accessibility&&z.options.accessibility.description;if(I)return I;var E=z.chart,M=$(z),k=z.points.filter(function(g){return!!g.graphic}).map(function(g){var d=g.accessibility&&g.accessibility.valueDescription||function(w){return w.graphic&&w.graphic.element&&w.graphic.element.getAttribute("aria-label")||""}(g),v=g&&g.series.name||"";return(v?v+", ":"")+"data point "+d}).filter(function(g){return!!g}),y=k.length,h="accessibility.screenReaderSection.annotations.description"+(y>1?"MultiplePoints":y?"SinglePoint":"NoPoints"),u={annotationText:M,annotation:z,numPoints:y,annotationPoint:k[0],additionalAnnotationPoints:k.slice(1)};return E.langFormat(h,u)}function U(z){return V(z).map(function(I){var E=R(H(Z(I)));return E?"<li>".concat(E,"</li>"):""})}return{getAnnotationsInfoHTML:function(z){var I=z.annotations;if(!I||!I.length)return"";var E=U(z);return'<ul style="list-style-type: none">'.concat(E.join(" "),"</ul>")},getAnnotationLabelDescription:Z,getAnnotationListItems:U,getPointAnnotationTexts:function(z){var I=V(z.series.chart).filter(function(E){return E.points.indexOf(z)>-1});return I.length?I.map(function(E){return"".concat($(E))}):[]}}}),et(B,"Accessibility/Components/InfoRegionsComponent.js",[B["Accessibility/A11yI18n.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/Components/AnnotationsA11y.js"],B["Core/Renderer/HTML/AST.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M,k=this&&this.__extends||(M=function(e,s){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var b in l)l.hasOwnProperty(b)&&(n[b]=l[b])},M(e,s)},function(e,s){function n(){this.constructor=e}M(e,s),e.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}),y=V.getAnnotationsInfoHTML,h=Z.getAxisDescription,u=Z.getAxisRangeDescription,g=Z.getChartTitle,d=Z.unhideChartElementFromAT,v=U.format,w=z.doc,S=I.addClass,C=I.getElement,c=I.getHeadingTagNameForElement,f=I.stripHTMLTagsFromString,r=I.visuallyHideElement,a=E.attr,t=E.pick;function i(e){return e.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")}var o=function(e){function s(){var n=e!==null&&e.apply(this,arguments)||this;return n.announcer=void 0,n.screenReaderSections={},n}return k(s,e),s.prototype.init=function(){var n=this.chart,l=this;this.initRegionsDefinitions(),this.addEvent(n,"aftergetTableAST",function(b){l.onDataTableCreated(b)}),this.addEvent(n,"afterViewData",function(b){b.wasHidden&&(l.dataTableDiv=b.element,setTimeout(function(){l.focusDataTable()},300))}),this.announcer=new H(n,"assertive")},s.prototype.initRegionsDefinitions=function(){var n=this;this.screenReaderSections={before:{element:null,buildContent:function(l){var b=l.options.accessibility.screenReaderSection.beforeChartFormatter;return b?b(l):n.defaultBeforeChartFormatter(l)},insertIntoDOM:function(l,b){b.renderTo.insertBefore(l,b.renderTo.firstChild)},afterInserted:function(){n.sonifyButtonId!==void 0&&n.initSonifyButton(n.sonifyButtonId),n.dataTableButtonId!==void 0&&n.initDataTableButton(n.dataTableButtonId)}},after:{element:null,buildContent:function(l){var b=l.options.accessibility.screenReaderSection.afterChartFormatter;return b?b(l):n.defaultAfterChartFormatter()},insertIntoDOM:function(l,b){b.renderTo.insertBefore(l,b.container.nextSibling)},afterInserted:function(){n.chart.accessibility&&n.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},s.prototype.onChartRender=function(){var n=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(l){n.updateScreenReaderSection(l)})},s.prototype.getLinkedDescriptionElement=function(){var n=this.chart.options.accessibility.linkedDescription;if(n){if(typeof n!="string")return n;var l=v(n,this.chart),b=w.querySelectorAll(l);return b.length===1?b[0]:void 0}},s.prototype.setLinkedDescriptionAttrs=function(){var n=this.linkedDescriptionElement;n&&(n.setAttribute("aria-hidden","true"),S(n,"highcharts-linked-description"))},s.prototype.updateScreenReaderSection=function(n){var l=this.chart,b=this.screenReaderSections[n],T=b.buildContent(l),D=b.element=b.element||this.createElement("div"),p=D.firstChild||this.createElement("div");T?(this.setScreenReaderSectionAttribs(D,n),$.setElementHTML(p,T),D.appendChild(p),b.insertIntoDOM(D,l),l.styledMode?S(p,"highcharts-visually-hidden"):r(p),d(l,p),b.afterInserted&&b.afterInserted()):(D.parentNode&&D.parentNode.removeChild(D),b.element=null)},s.prototype.setScreenReaderSectionAttribs=function(n,l){var b=this.chart,T=b.langFormat("accessibility.screenReaderSection."+l+"RegionLabel",{chart:b,chartTitle:g(b)}),D="highcharts-screen-reader-region-".concat(l,"-").concat(b.index);a(n,{id:D,"aria-label":T||void 0}),n.style.position="relative",T&&n.setAttribute("role",b.options.accessibility.landmarkVerbosity==="all"?"region":"group")},s.prototype.defaultBeforeChartFormatter=function(){var n=this.chart,l=n.options.accessibility.screenReaderSection.beforeChartFormat;if(!l)return"";var b=this.getAxesDescription(),T=n.sonify&&n.options.sonification&&n.options.sonification.enabled,D="highcharts-a11y-sonify-data-btn-"+n.index,p="hc-linkto-highcharts-data-table-"+n.index,x=y(n),A=n.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:n}),N={headingTagName:c(n.renderTo),chartTitle:g(n),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:b.xAxis,yAxisDescription:b.yAxis,playAsSoundButton:T?this.getSonifyButtonText(D):"",viewTableButton:n.getCSV?this.getDataTableButtonText(p):"",annotationsTitle:x?A:"",annotationsList:x},_=W.i18nFormat(l,N,n);return this.dataTableButtonId=p,this.sonifyButtonId=D,i(_)},s.prototype.defaultAfterChartFormatter=function(){var n=this.chart,l=n.options.accessibility.screenReaderSection.afterChartFormat;if(!l)return"";var b={endOfChartMarker:this.getEndOfChartMarkerText()};return i(W.i18nFormat(l,b,n))},s.prototype.getLinkedDescription=function(){var n=this.linkedDescriptionElement,l=n&&n.innerHTML||"";return f(l)},s.prototype.getLongdescText=function(){var n=this.chart.options,l=n.caption,b=l&&l.text,T=this.getLinkedDescription();return n.accessibility.description||T||b||""},s.prototype.getTypeDescriptionText=function(){var n=this.chart;return n.types?n.options.accessibility.typeDescription||function(l,b){var T=b[0],D=l.series&&l.series[0]||{},p=l.mapView&&l.mapView.geoMap&&l.mapView.geoMap.title,x={numSeries:l.series.length,numPoints:D.points&&D.points.length,chart:l,mapTitle:p};return T?T==="map"?function(A,N){return N.mapTitle?A.langFormat("accessibility.chartTypes.mapTypeDescription",N):A.langFormat("accessibility.chartTypes.unknownMap",N)}(l,x):l.types.length>1?function(A,N){return A.langFormat("accessibility.chartTypes.combinationChart",N)}(l,x):function(A,N,_){var L=N[0],O=A.langFormat("accessibility.seriesTypeDescriptions."+L,_),j=A.series&&A.series.length<2?"Single":"Multiple";return(A.langFormat("accessibility.chartTypes."+L+j,_)||A.langFormat("accessibility.chartTypes.default"+j,_))+(O?" "+O:"")}(l,b,x):function(A,N){return A.langFormat("accessibility.chartTypes.emptyChart",N)}(l,x)}(n,n.types):""},s.prototype.getDataTableButtonText=function(n){var l=this.chart;return'<button id="'+n+'">'+l.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:l,chartTitle:g(l)})+"</button>"},s.prototype.getSonifyButtonText=function(n){var l=this.chart;return l.options.sonification&&l.options.sonification.enabled===!1?"":'<button id="'+n+'">'+l.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:l,chartTitle:g(l)})+"</button>"},s.prototype.getSubtitleText=function(){var n=this.chart.options.subtitle;return f(n&&n.text||"")},s.prototype.getEndOfChartMarkerText=function(){var n=this.chart,l=n.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:n});return'<div id="highcharts-end-of-chart-marker-'+n.index+'">'+l+"</div>"},s.prototype.onDataTableCreated=function(n){var l=this.chart;if(l.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var b=n.tree.attributes||{};b.tabindex=-1,b.summary=function(T){return T.langFormat("accessibility.table.tableSummary",{chart:T})}(l),n.tree.attributes=b}},s.prototype.focusDataTable=function(){var n=this.dataTableDiv,l=n&&n.getElementsByTagName("table")[0];l&&l.focus&&l.focus()},s.prototype.initSonifyButton=function(n){var l=this,b=this.sonifyButton=C(n),T=this.chart,D=function(p){b&&(b.setAttribute("aria-hidden","true"),b.setAttribute("aria-label","")),p.preventDefault(),p.stopPropagation();var x=T.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:T});l.announcer.announce(x),setTimeout(function(){b&&(b.removeAttribute("aria-hidden"),b.removeAttribute("aria-label")),T.sonify&&T.sonify()},1e3)};b&&T&&(b.setAttribute("tabindex",-1),b.onclick=function(p){(T.options.accessibility&&T.options.accessibility.screenReaderSection.onPlayAsSoundClick||D).call(this,p,T)})},s.prototype.initDataTableButton=function(n){var l=this.viewDataTableButton=C(n),b=this.chart,T=n.replace("hc-linkto-","");l&&(a(l,{tabindex:-1,"aria-expanded":!!C(T)}),l.onclick=b.options.accessibility.screenReaderSection.onViewDataTableClick||function(){b.viewData()})},s.prototype.getAxesDescription=function(){var n=this.chart,l=function(A,N){var _=n[A];return _.length>1||_[0]&&t(_[0].options.accessibility&&_[0].options.accessibility.enabled,N)},b=!!n.types&&n.types.indexOf("map")<0&&n.types.indexOf("treemap")<0&&n.types.indexOf("tilemap")<0,T=!!n.hasCartesianSeries,D=l("xAxis",!n.angular&&T&&b),p=l("yAxis",T&&b),x={};return D&&(x.xAxis=this.getAxisDescriptionText("xAxis")),p&&(x.yAxis=this.getAxisDescriptionText("yAxis")),x},s.prototype.getAxisDescriptionText=function(n){var l=this.chart,b=l[n];return l.langFormat("accessibility.axis."+n+"Description"+(b.length>1?"Plural":"Singular"),{chart:l,names:b.map(function(T){return h(T)}),ranges:b.map(function(T){return u(T)}),numAxes:b.length})},s.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},s}(R);return o}),et(B,"Accessibility/Components/MenuComponent.js",[B["Core/Chart/Chart.js"],B["Core/Utilities.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(u,g){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,v){d.__proto__=v}||function(d,v){for(var w in v)v.hasOwnProperty(w)&&(d[w]=v[w])},U(u,g)},function(u,g){function d(){this.constructor=u}U(u,g),u.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}),I=R.attr,E=$.getChartTitle,M=$.unhideChartElementFromAT,k=Z.getFakeMouseEvent;function y(u){return u.exportSVGElements&&u.exportSVGElements[0]}var h=function(u){function g(){return u!==null&&u.apply(this,arguments)||this}return z(g,u),g.prototype.init=function(){var d=this.chart,v=this;this.addEvent(d,"exportMenuShown",function(){v.onMenuShown()}),this.addEvent(d,"exportMenuHidden",function(){v.onMenuHidden()}),this.createProxyGroup()},g.prototype.onMenuHidden=function(){var d=this.chart.exportContextMenu;d&&d.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},g.prototype.onMenuShown=function(){var d=this.chart,v=d.exportContextMenu;v&&(this.addAccessibleContextMenuAttribs(),M(d,v)),this.setExportButtonExpandedState("true")},g.prototype.setExportButtonExpandedState=function(d){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",d)},g.prototype.onChartRender=function(){var d=this.chart,v=d.focusElement,w=d.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&v&&v===d.exportingGroup&&(v.focusBorder?d.setFocusToElement(v,this.exportButtonProxy.buttonElement):w&&w.keyboardNavigation.tabindexContainer.focus())},g.prototype.proxyMenuButton=function(){var d=this.chart,v=this.proxyProvider,w=y(d);(function(S){var C=S.options.exporting,c=y(S);return!!(C&&C.enabled!==!1&&C.accessibility&&C.accessibility.enabled&&c&&c.element)})(d)&&w&&(this.exportButtonProxy=v.addProxyElement("chartMenu",{click:w},{"aria-label":d.langFormat("accessibility.exporting.menuButtonLabel",{chart:d,chartTitle:E(d)}),"aria-expanded":!1,title:d.options.lang.contextButtonTitle||null}))},g.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")},g.prototype.addAccessibleContextMenuAttribs=function(){var d=this.chart,v=d.exportDivElements;if(v&&v.length){v.forEach(function(S){S&&(S.tagName!=="LI"||S.children&&S.children.length?S.setAttribute("aria-hidden","true"):S.setAttribute("tabindex",-1))});var w=v[0]&&v[0].parentNode;w&&I(w,{"aria-hidden":void 0,"aria-label":d.langFormat("accessibility.exporting.chartMenuLabel",{chart:d}),role:"list"})}},g.prototype.getKeyboardNavigation=function(){var d=this.keyCodes,v=this.chart,w=this;return new V(v,{keyCodeMap:[[[d.left,d.up],function(){return w.onKbdPrevious(this)}],[[d.right,d.down],function(){return w.onKbdNext(this)}],[[d.enter,d.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 S=w.exportButtonProxy,C=w.chart.exportingGroup;S&&C&&v.setFocusToElement(C,S.buttonElement)},terminate:function(){v.hideExportMenu()}})},g.prototype.onKbdPrevious=function(d){for(var v=this.chart,w=v.options.accessibility,S=d.response,C=v.highlightedExportItemIx||0;C--;)if(v.highlightExportItem(C))return S.success;return w.keyboardNavigation.wrapAround?(v.highlightLastExportItem(),S.success):S.prev},g.prototype.onKbdNext=function(d){for(var v=this.chart,w=v.options.accessibility,S=d.response,C=(v.highlightedExportItemIx||0)+1;C<v.exportDivElements.length;++C)if(v.highlightExportItem(C))return S.success;return w.keyboardNavigation.wrapAround?(v.highlightExportItem(0),S.success):S.next},g.prototype.onKbdClick=function(d){var v=this.chart,w=v.exportDivElements[v.highlightedExportItemIx],S=y(v).element;return v.openMenu?this.fakeClickEvent(w):(this.fakeClickEvent(S),v.highlightExportItem(0)),d.response.success},g}(H);return function(u){var g=[];function d(){var C=y(this);if(C){var c=C.element;c.onclick&&c.onclick(k("click"))}}function v(){var C=this,c=C.exportDivElements;c&&C.exportContextMenu&&C.openMenu&&(c.forEach(function(f){f&&f.className==="highcharts-menu-item"&&f.onmouseout&&f.onmouseout(k("mouseout"))}),C.highlightedExportItemIx=0,C.exportContextMenu.hideMenu(),C.container.focus())}function w(C){var c=this.exportDivElements&&this.exportDivElements[C],f=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(c&&c.tagName==="LI"&&(!c.children||!c.children.length)){var r=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return c.focus&&r&&c.focus(),f&&f.onmouseout&&f.onmouseout(k("mouseout")),c.onmouseover&&c.onmouseover(k("mouseover")),this.highlightedExportItemIx=C,!0}return!1}function S(){var C=this;if(C.exportDivElements){for(var c=C.exportDivElements.length;c--;)if(C.highlightExportItem(c))return!0}return!1}u.compose=function(C){if(g.indexOf(C)===-1){g.push(C);var c=W.prototype;c.hideExportMenu=v,c.highlightExportItem=w,c.highlightLastExportItem=S,c.showExportMenu=d}}}(h||(h={})),h}),et(B,"Accessibility/KeyboardNavigation.js",[B["Core/Globals.js"],B["Accessibility/Components/MenuComponent.js"],B["Core/Utilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$){var Z=W.doc,U=W.win,z=H.addEvent,I=H.fireEvent,E=$.getElement,M=$.simulatedEventTarget,k=function(){function y(h,u){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(h,u)}return y.prototype.init=function(h,u){var g=this,d=this.eventProvider=new V;this.chart=h,this.components=u,this.modules=[],this.currentModuleIx=0,this.update(),d.addEvent(this.tabindexContainer,"keydown",function(v){return g.onKeydown(v)}),d.addEvent(this.tabindexContainer,"focus",function(v){return g.onFocus(v)}),["mouseup","touchend"].forEach(function(v){return d.addEvent(Z,v,function(w){return g.onMouseUp(w)})}),["mousedown","touchstart"].forEach(function(v){return d.addEvent(h.renderTo,v,function(){g.isClickingChart=!0})}),d.addEvent(h.renderTo,"mouseover",function(){g.pointerIsOverChart=!0}),d.addEvent(h.renderTo,"mouseout",function(){g.pointerIsOverChart=!1})},y.prototype.update=function(h){var u=this.chart.options.accessibility,g=u&&u.keyboardNavigation,d=this.components;this.updateContainerTabindex(),g&&g.enabled&&h&&h.length?(this.modules=h.reduce(function(v,w){var S=d[w].getKeyboardNavigation();return v.concat(S)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},y.prototype.updateExitAnchor=function(){var h="highcharts-end-of-chart-marker-".concat(this.chart.index),u=E(h);this.removeExitAnchor(),u?(this.makeElementAnExitAnchor(u),this.exitAnchor=u):this.createExitAnchor()},y.prototype.move=function(h){var u=this.modules&&this.modules[this.currentModuleIx];u&&u.terminate&&u.terminate(h),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=h;var g=this.modules&&this.modules[this.currentModuleIx];if(g){if(g.validate&&!g.validate())return this.move(h);if(g.init)return g.init(h),!0}return this.currentModuleIx=0,this.exiting=!0,h>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1},y.prototype.onFocus=function(h){var u=this.chart,g=h.relatedTarget&&u.container.contains(h.relatedTarget);if(!(this.exiting||this.tabbingInBackwards||this.isClickingChart||g)){var d=this.getFirstValidModuleIx();d!==null&&(this.currentModuleIx=d,this.modules[d].init(1))}this.exiting=!1},y.prototype.onMouseUp=function(h){if(delete this.isClickingChart,!this.keyboardReset&&h.relatedTarget!==M){var u=this.chart;if(!this.pointerIsOverChart){var g=this.modules&&this.modules[this.currentModuleIx||0];g&&g.terminate&&g.terminate(),this.currentModuleIx=0}u.focusElement&&(u.focusElement.removeFocusBorder(),delete u.focusElement),this.keyboardReset=!0}},y.prototype.onKeydown=function(h){var u,g=h||U.event,d=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];if(this.keyboardReset=!1,this.exiting=!1,d){var v=d.run(g);v===d.response.success?u=!0:v===d.response.prev?u=this.move(-1):v===d.response.next&&(u=this.move(1)),u&&(g.preventDefault(),g.stopPropagation())}},y.prototype.updateContainerTabindex=function(){var h,u=this.chart.options.accessibility,g=u&&u.keyboardNavigation,d=!(g&&g.enabled===!1),v=this.chart,w=v.container;v.renderTo.hasAttribute("tabindex")?(w.removeAttribute("tabindex"),h=v.renderTo):h=w,this.tabindexContainer=h;var S=h.getAttribute("tabindex");d&&!S?h.setAttribute("tabindex","0"):d||v.container.removeAttribute("tabindex")},y.prototype.createExitAnchor=function(){var h=this.chart,u=this.exitAnchor=Z.createElement("div");h.renderTo.appendChild(u),this.makeElementAnExitAnchor(u)},y.prototype.makeElementAnExitAnchor=function(h){var u=this.tabindexContainer.getAttribute("tabindex")||0;h.setAttribute("class","highcharts-exit-anchor"),h.setAttribute("tabindex",u),h.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(h)},y.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},y.prototype.addExitAnchorEventsToEl=function(h){var u=this.chart,g=this;this.eventProvider.addEvent(h,"focus",function(d){var v=d||U.event,w=!(v.relatedTarget&&u.container.contains(v.relatedTarget)||g.exiting);if(u.focusElement&&delete u.focusElement,w){if(g.tabbingInBackwards=!0,g.tabindexContainer.focus(),delete g.tabbingInBackwards,v.preventDefault(),g.modules&&g.modules.length){g.currentModuleIx=g.modules.length-1;var S=g.modules[g.currentModuleIx];S&&S.validate&&!S.validate()?g.move(-1):S&&S.init(-1)}}else g.exiting=!1})},y.prototype.getFirstValidModuleIx=function(){for(var h=this.modules.length,u=0;u<h;++u){var g=this.modules[u];if(!g.validate||g.validate())return u}return null},y.prototype.destroy=function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")},y}();return function(y){var h=[];function u(){var d=this;I(this,"dismissPopupContent",{},function(){d.tooltip&&d.tooltip.hide(0),d.hideExportMenu()})}function g(d){(d.which||d.keyCode)===27&&W.charts&&W.charts.forEach(function(v){v&&v.dismissPopupContent&&v.dismissPopupContent()})}y.compose=function(d){return R.compose(d),h.indexOf(d)===-1&&(h.push(d),d.prototype.dismissPopupContent=u),h.indexOf(Z)===-1&&(h.push(Z),z(Z,"keydown",g)),d}}(k||(k={})),k}),et(B,"Accessibility/Components/LegendComponent.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Globals.js"],B["Core/Legend/Legend.js"],B["Core/Utilities.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(a,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(a,t)},function(a,t){function i(){this.constructor=a}I(a,t),a.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),M=W.animObject,k=R.doc,y=V.addEvent,h=V.fireEvent,u=V.isNumber,g=V.pick,d=V.syncTimeout,v=U.getChartTitle,w=z.stripHTMLTagsFromString,S=z.addClass,C=z.removeClass;function c(a){var t=a.legend&&a.legend.allItems,i=a.options.legend.accessibility||{},o=a.colorAxis&&a.colorAxis.some(function(e){return!e.dataClasses||!e.dataClasses.length});return!(!t||!t.length||o||i.enabled===!1)}function f(a,t){var i=t.legendItem||{};t.setState(a?"hover":"",!0);for(var o=0,e=["group","label","symbol"];o<e.length;o++){var s=i[e[o]],n=s&&s.element||s;n&&h(n,a?"mouseover":"mouseout")}}var r=function(a){function t(){var i=a!==null&&a.apply(this,arguments)||this;return i.highlightedLegendItemIx=NaN,i.proxyGroup=null,i}return E(t,a),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()&&d(function(){return i.proxyProvider.updateGroupProxyElementPositions("legend")},M(g(this.chart.renderer.globalAnimation,!0)).duration)})},t.prototype.updateLegendItemProxyVisibility=function(){var i,o=this.chart,e=o.legend,s=e.allItems||[],n=e.currentPage||1,l=e.clipHeight||0;s.forEach(function(b){if(b.a11yProxyElement){var T=e.pages&&e.pages.length,D=b.a11yProxyElement.element,p=!1;if(i=b.legendItem||{},T){var x=i.pageIx||0;p=(i.y||0)+(i.label?Math.round(i.label.getBBox().height):0)-e.pages[x]>l||x!==n-1}p?o.styledMode?S(D,"highcharts-a11y-invisible"):D.style.visibility="hidden":(C(D,"highcharts-a11y-invisible"),D.style.visibility="")}})},t.prototype.onChartRender=function(){c(this.chart)||this.removeProxies()},t.prototype.highlightAdjacentLegendPage=function(i){var o=this.chart,e=o.legend,s=(e.currentPage||1)+i,n=e.pages||[];if(s>0&&s<=n.length)for(var l=0,b=0,T=e.allItems;b<T.length;b++)((T[b].legendItem||{}).pageIx||0)+1===s&&o.highlightLegendItem(l)&&(this.highlightedLegendItemIx=l),++l},t.prototype.updateProxyPositionForItem=function(i){i.a11yProxyElement&&i.a11yProxyElement.refreshPosition()},t.prototype.recreateProxies=function(){var i=k.activeElement,o=this.proxyGroup,e=i&&o&&o.contains(i);return this.removeProxies(),!!c(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}),s={tabindex:-1,"aria-pressed":i.visible,"aria-label":e},n=o.group.div?o.label:o.group;i.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:o.label,visual:n.element},s)}},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(s){return o.onKbdArrowKey(this,s)}],[[i.enter,i.space],function(){return o.onKbdClick(this)}],[[i.pageDown,i.pageUp],function(s){var n=s===i.pageDown?1:-1;return o.highlightAdjacentLegendPage(n),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(s){return f(!1,s)})}})},t.prototype.onKbdArrowKey=function(i,o){var e=this.keyCodes,s=i.response,n=this.chart,l=n.options.accessibility,b=n.legend.allItems.length,T=o===e.left||o===e.up?-1:1;return n.highlightLegendItem(this.highlightedLegendItemIx+T)?(this.highlightedLegendItemIx+=T,s.success):(b>1&&l.keyboardNavigation.wrapAround&&i.init(T),s.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(!c(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(a){var t=[];function i(e){var s,n,l,b,T=this.legend.allItems,D=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,p=T[e],x=p.legendItem||{};if(p){u(D)&&T[D]&&f(!1,T[D]),n=e,l=((s=this.legend).allItems[n].legendItem||{}).pageIx,b=s.currentPage,l!==void 0&&l+1!==b&&s.scroll(1+l-b);var A=x.label,N=p.a11yProxyElement&&p.a11yProxyElement.buttonElement;return A&&A.element&&N&&this.setFocusToElement(A,N),f(!0,p),!0}return!1}function o(e){var s=this.chart.options.accessibility,n=e.item;s.enabled&&n&&n.a11yProxyElement&&n.a11yProxyElement.buttonElement.setAttribute("aria-pressed",e.visible?"true":"false")}a.compose=function(e,s){t.indexOf(e)===-1&&(t.push(e),e.prototype.highlightLegendItem=i),t.indexOf(s)===-1&&(t.push(s),y(s,"afterColorizeItem",o))}}(r||(r={})),r}),et(B,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[B["Accessibility/Components/AnnotationsA11y.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/FormatUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.getPointAnnotationTexts,U=R.getAxisDescription,z=R.getSeriesFirstPointElement,I=R.getSeriesA11yElement,E=R.unhideChartElementFromAT,M=H.format,k=H.numberFormat,y=V.reverseChildNodes,h=V.stripHTMLTagsFromString,u=$.find,g=$.isNumber,d=$.pick,v=$.defined;function w(t){var i=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(i!==!1&&t.points&&t.points.length>=i)}function S(t,i){var o=t.series,e=o.chart,s=e.options.accessibility.point||{},n=o.options.accessibility&&o.options.accessibility.point||{},l=o.tooltipOptions||{},b=e.options.lang;return g(i)?k(i,n.valueDecimals||s.valueDecimals||l.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:U(o),series:t})}function c(t){var i=t.series,o=i.chart.options.accessibility.point||{},e=i.chart.options.accessibility&&i.chart.options.accessibility.point||{},s=i.tooltipOptions||{},n=e.valuePrefix||o.valuePrefix||s.valuePrefix||"",l=e.valueSuffix||o.valueSuffix||s.valueSuffix||"",b=S(t,t[t.value!==void 0?"value":"y"]);return t.isNull?i.chart.langFormat("accessibility.series.nullPointValue",{point:t}):i.pointArrayMap?function(T,D,p){var x=D||"",A=p||"";return T.series.pointArrayMap.reduce(function(N,_){return N+(N.length?", ":"")+function(L){var O=S(T,d(T[L],T.options[L]));return L+": "+x+O+A}(_)},"")}(t,n,l):n+b+l}function f(t){var i=t.series,o=i.chart.series.length>1||i.options.name,e=function(D){var p=D.series,x=p.chart,A=p.options.accessibility,N=A&&A.point&&A.point.valueDescriptionFormat||x.options.accessibility.point.valueDescriptionFormat,_=d(p.xAxis&&p.xAxis.options.accessibility&&p.xAxis.options.accessibility.enabled,!x.angular),L=_?function(j){var Y=function(Q){var J=Q.series,rt=J.chart,lt=J.options.accessibility&&J.options.accessibility.point||{},gt=rt.options.accessibility.point||{},mt=J.xAxis&&J.xAxis.dateTime;if(mt){var bt=mt.getXDateFormat(Q.x||0,rt.options.tooltip.dateTimeLabelFormats),yt=lt.dateFormatter&<.dateFormatter(Q)||gt.dateFormatter&>.dateFormatter(Q)||lt.dateFormat||gt.dateFormat||bt;return rt.time.dateFormat(yt,Q.x||0,void 0)}}(j),X=(j.series.xAxis||{}).categories&&v(j.category)&&(""+j.category).replace("<br/>"," "),G=v(j.id)&&(""+j.id).indexOf("highcharts-")<0,q="x, "+j.x;return j.name||Y||X||(G?j.id:q)}(D):"",O={point:D,index:v(D.index)?D.index+1:"",xDescription:L,value:c(D),separator:_?", ":""};return M(N,O,x)}(t),s=t.options&&t.options.accessibility&&t.options.accessibility.description,n=s?" "+s:"",l=o?" "+i.name+".":"",b=function(D){var p=D.series.chart,x=Z(D),A={point:D,annotations:x};return x.length?p.langFormat("accessibility.series.pointAnnotationsDescription",A):""}(t),T=b?" "+b:"";return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=e,e+n+l+T}function r(t){var i=function(s){var n=s.options.accessibility||{};return!w(s)&&!n.exposeAsGroupOnly}(t),o=function(s){var n=s.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!s.points||!(s.points.length<n.pointNavigationEnabledThreshold||n.pointNavigationEnabledThreshold===!1))}(t),e=t.chart.options.accessibility.point.describeNull;(i||o)&&t.points.forEach(function(s){var n=s.graphic&&s.graphic.element||function(b){var T=b.series,D=T&&T.chart,p=T&&T.is("sunburst"),x=b.isNull,A=D&&D.options.accessibility.point.describeNull;return x&&!p&&A}(s)&&function(b){var T=b.series,D=function(N){var _=N.index;return N.series&&N.series.data&&v(_)&&u(N.series.data,function(L){return!!(L&&L.index!==void 0&&L.index>_&&L.graphic&&L.graphic.element)})||null}(b),p=D&&D.graphic,x=p?p.parentGroup:T.graph||T.group,A=function(N,_){var L=N.series.chart.renderer.rect(_.x,_.y,1,1);return L.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),L}(b,D?{x:d(b.plotX,D.plotX,0),y:d(b.plotY,D.plotY,0)}:{x:d(b.plotX,0),y:d(b.plotY,0)});if(x&&x.element)return b.graphic=A,b.hasMockGraphic=!0,A.add(x),x.element.insertBefore(A.element,p?p.element:null),A.element}(s),l=s.options&&s.options.accessibility&&s.options.accessibility.enabled===!1;if(n){if(s.isNull&&!e)return void n.setAttribute("aria-hidden",!0);n.setAttribute("tabindex","-1"),t.chart.styledMode||(n.style.outline="none"),i&&!l?function(b,T){var D=b.series,p=D.chart.options.accessibility.point||{},x=D.options.accessibility&&D.options.accessibility.point||{},A=h(x.descriptionFormatter&&x.descriptionFormatter(b)||p.descriptionFormatter&&p.descriptionFormatter(b)||f(b));T.setAttribute("role","img"),T.setAttribute("aria-label",A)}(s,n):n.setAttribute("aria-hidden",!0)}})}function a(t){var i=t.chart,o=i.types||[],e=function(N){var _=(N.options.accessibility||{}).description;return _&&N.chart.langFormat("accessibility.series.description",{description:_,series:N})||""}(t),s=function(N){return i[N]&&i[N].length>1&&t[N]},n=t.index+1,l=C(t,"xAxis"),b=C(t,"yAxis"),T={seriesNumber:n,series:t,chart:i},D=o.length>1?"Combination":"",p=i.langFormat("accessibility.series.summary."+t.type+D,T)||i.langFormat("accessibility.series.summary.default"+D,T),x=(s("yAxis")?" "+b+".":"")+(s("xAxis")?" "+l+".":""),A=i.options.accessibility.series.descriptionFormat||"";return M(A,{seriesDescription:p,authorDescription:e?" "+e:"",axisDescription:x,series:t,chart:i,seriesNumber:n},void 0)}return{defaultPointDescriptionFormatter:f,defaultSeriesDescriptionFormatter:a,describeSeries:function(t){var i=t.chart,o=z(t),e=I(t),s=i.is3d&&i.is3d();e&&(e.lastChild!==o||s||y(e),r(t),E(i,e),function(n){var l=n.chart,b=l.options.chart,T=b.options3d&&b.options3d.enabled,D=l.series.length>1,p=l.options.accessibility.series.describeSingleSeries,x=(n.options.accessibility||{}).exposeAsGroupOnly;return!(T&&D)&&(D||p||x||w(n))}(t)?function(n,l){var b=n.options.accessibility||{},T=n.chart.options.accessibility,D=T.landmarkVerbosity;b.exposeAsGroupOnly?l.setAttribute("role","img"):D==="all"?l.setAttribute("role","region"):l.setAttribute("role","group"),l.setAttribute("tabindex","-1"),n.chart.styledMode||(l.style.outline="none"),l.setAttribute("aria-label",h(T.series.descriptionFormatter&&T.series.descriptionFormatter(n)||a(n)))}(t,e):e.removeAttribute("aria-label"))}}}),et(B,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(W,R,H,V,$,Z){var U=R.addEvent,z=R.defined,I=V.getChartTitle,E=Z.defaultPointDescriptionFormatter,M=Z.defaultSeriesDescriptionFormatter;function k(h){return!!h.options.accessibility.announceNewData.enabled}var y=function(){function h(u){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=u}return h.prototype.init=function(){var u=this.chart,g=u.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new $,this.announcer=new H(u,g),this.addEventListeners()},h.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},h.prototype.addEventListeners=function(){var u=this,g=this.chart,d=this.eventProvider;d.addEvent(g,"afterApplyDrilldown",function(){u.lastAnnouncementTime=0}),d.addEvent(g,"afterAddSeries",function(v){u.onSeriesAdded(v.series)}),d.addEvent(g,"redraw",function(){u.announceDirtyData()})},h.prototype.onSeriesAdded=function(u){k(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[u.name+u.index]=u,this.dirty.newSeries=z(this.dirty.newSeries)?void 0:u)},h.prototype.announceDirtyData=function(){var u,g,d=this.chart,v=this;if(d.options.accessibility.announceNewData&&this.dirty.hasDirty){var w=this.dirty.newPoint;w&&(w=(g=(u=w).series.data.filter(function(S){return u.x===S.x&&u.y===S.y})).length===1?g[0]:u),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(S){return v.dirty.allSeries[S]}),this.dirty.newSeries,w),this.dirty={allSeries:{}}}},h.prototype.queueAnnouncement=function(u,g,d){var v,w,S,C=this,c=this.chart.options.accessibility.announceNewData;if(c.enabled){var f=+new Date,r=f-this.lastAnnouncementTime,a=Math.max(0,c.minAnnounceInterval-r),t=(v=this.queuedAnnouncement&&this.queuedAnnouncement.series,w=u,S=(v||[]).concat(w||[]).reduce(function(o,e){return o[e.name+e.index]=e,o},{}),Object.keys(S).map(function(o){return S[o]})),i=this.buildAnnouncementMessage(t,g,d);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)},a))}},h.prototype.buildAnnouncementMessage=function(u,g,d){var v=this.chart,w=v.options.accessibility.announceNewData;if(w.announcementFormatter){var S=w.announcementFormatter(u,g,d);if(S!==!1)return S.length?S:null}var C=W.charts&&W.charts.length>1?"Multiple":"Single",c=g?"newSeriesAnnounce"+C:d?"newPointAnnounce"+C:"newDataAnnounce",f=I(v);return v.langFormat("accessibility.announceNewData."+c,{chartTitle:f,seriesDesc:g?M(g):null,pointDesc:d?E(d):null,point:d,series:g})},h}();return function(h){function u(d){var v=this.chart,w=this.newDataAnnouncer;w&&w.chart===v&&k(v)&&(w.dirty.newPoint=z(w.dirty.newPoint)?void 0:d.point)}function g(){var d=this.chart,v=this.newDataAnnouncer;v&&v.chart===d&&k(d)&&(v.dirty.hasDirty=!0,v.dirty.allSeries[this.name+this.index]=this)}h.composedClasses=[],h.compose=function(d){h.composedClasses.indexOf(d)===-1&&(h.composedClasses.push(d),U(d,"addPoint",u),U(d,"updatedData",g))}}(y||(y={})),y}),et(B,"Accessibility/ProxyElement.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(W,R,H,V,$){var Z=W.doc,U=R.attr,z=R.css,I=R.merge,E=V.fireEventOnWrappedOrUnwrappedElement,M=$.cloneMouseEvent,k=$.cloneTouchEvent,y=$.getFakeMouseEvent,h=$.removeElement;return function(){function u(g,d,v,w){this.chart=g,this.target=d,this.groupType=v;var S=v==="ul";this.eventProvider=new H;var C=S?Z.createElement("li"):null,c=this.buttonElement=Z.createElement("button");g.styledMode||this.hideButtonVisually(c),C?(S&&!g.styledMode&&(C.style.listStyle="none"),C.appendChild(c),this.element=C):this.element=c,this.updateTarget(d,w)}return u.prototype.click=function(){var g=this.getTargetPosition();g.x+=g.width/2,g.y+=g.height/2;var d=y("click",g);E(this.target.click,d)},u.prototype.updateTarget=function(g,d){this.target=g,this.updateCSSClassName();var v=d||{};Object.keys(v).forEach(function(w){v[w]===null&&delete v[w]}),U(this.buttonElement,I({"aria-label":this.getTargetAttr(g.click,"aria-label")},v)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToButton(this.buttonElement,g.click),this.refreshPosition()},u.prototype.refreshPosition=function(){var g=this.getTargetPosition();z(this.buttonElement,{width:(g.width||1)+"px",height:(g.height||1)+"px",left:(Math.round(g.x)||0)+"px",top:(Math.round(g.y)||0)+"px"})},u.prototype.remove=function(){this.eventProvider.removeAddedEvents(),h(this.element)},u.prototype.updateCSSClassName=function(){var g=function(C){return C.indexOf("highcharts-no-tooltip")>-1},d=this.chart.legend,v=d.group&&d.group.div,w=g(v&&v.className||""),S=g(this.getTargetAttr(this.target.click,"class")||"");this.buttonElement.className=w||S?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"},u.prototype.addProxyEventsToButton=function(g,d){var v=this;["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(function(w){var S=w.indexOf("touch")===0;v.eventProvider.addEvent(g,w,function(C){var c=S?k(C):M(C);d&&E(d,c),C.stopPropagation(),S||C.preventDefault()},{passive:!1})})},u.prototype.hideButtonVisually=function(g){z(g,{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)"})},u.prototype.getTargetPosition=function(){var g=this.target.click,d=g.element?g.element:g,v=this.target.visual||d;if(this.chart.renderTo&&v&&v.getBoundingClientRect){var w=v.getBoundingClientRect(),S=this.chart.pointer.getChartPosition();return{x:(w.left-S.left)/S.scaleX,y:(w.top-S.top)/S.scaleY,width:w.right/S.scaleX-w.left/S.scaleX,height:w.bottom/S.scaleY-w.top/S.scaleY}}return{x:0,y:0,width:1,height:1}},u.prototype.getTargetAttr=function(g,d){return g.element?g.element.getAttribute(d):g.getAttribute(d)},u}()}),et(B,"Accessibility/ProxyProvider.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/ProxyElement.js"]],function(W,R,H,V,$,Z){var U=W.doc,z=R.attr,I=R.css,E=H.unhideChartElementFromAT,M=$.removeElement,k=$.removeChildNodes;return function(){function y(h){this.chart=h,this.domElementProvider=new V,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return y.prototype.addProxyElement=function(h,u,g){var d=this.groups[h];if(!d)throw new Error("ProxyProvider.addProxyElement: Invalid group key "+h);var v=new Z(this.chart,u,d.type,g);return d.proxyContainerElement.appendChild(v.element),d.proxyElements.push(v),v},y.prototype.addGroup=function(h,u,g){var d=this.groups[h];if(d)return d.groupElement;var v,w=this.domElementProvider.createElement(u);return g&&g.role&&u!=="div"?(v=this.domElementProvider.createElement("div")).appendChild(w):v=w,v.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+h.replace(/\W/g,"-"),this.groups[h]={proxyContainerElement:w,groupElement:v,type:u,proxyElements:[]},z(v,g||{}),u==="ul"&&w.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(v),this.updateGroupOrder(this.groupOrder),v},y.prototype.updateGroupAttrs=function(h,u){var g=this.groups[h];if(!g)throw new Error("ProxyProvider.updateGroupAttrs: Invalid group key "+h);z(g.groupElement,u)},y.prototype.updateGroupOrder=function(h){var u=this;if(this.groupOrder=h.slice(),!this.isDOMOrderGroupOrder()){var g=h.indexOf("series"),d=g>-1?h.slice(0,g):h,v=g>-1?h.slice(g+1):[],w=U.activeElement;["before","after"].forEach(function(S){var C=u[S==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"],c=S==="before"?d:v;k(C),c.forEach(function(f){var r=u.groups[f];r&&C.appendChild(r.groupElement)})}),(this.beforeChartProxyPosContainer.contains(w)||this.afterChartProxyPosContainer.contains(w))&&w&&w.focus&&w.focus()}},y.prototype.clearGroup=function(h){var u=this.groups[h];if(!u)throw new Error("ProxyProvider.clearGroup: Invalid group key "+h);k(u.proxyContainerElement)},y.prototype.removeGroup=function(h){var u=this.groups[h];u&&(M(u.groupElement),delete this.groups[h])},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(h){var u=this.groups[h];u&&u.proxyElements.forEach(function(g){return g.refreshPosition()})},y.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},y.prototype.createProxyPosContainer=function(h){var u=this.domElementProvider.createElement("div");return u.setAttribute("aria-hidden","false"),u.className="highcharts-a11y-proxy-container"+(h?"-"+h:""),I(u,{top:"0",left:"0"}),this.chart.styledMode||(u.style.whiteSpace="nowrap",u.style.position="absolute"),u},y.prototype.getCurrentGroupOrderInDOM=function(){var h=this,u=function(w){for(var S=Object.keys(h.groups),C=S.length;C--;){var c=S[C],f=h.groups[c];if(f&&w===f.groupElement)return c}},g=function(w){for(var S=[],C=w.children,c=0;c<C.length;++c){var f=u(C[c]);f&&S.push(f)}return S},d=g(this.beforeChartProxyPosContainer),v=g(this.afterChartProxyPosContainer);return d.push("series"),d.concat(v)},y.prototype.isDOMOrderGroupOrder=function(){var h=this,u=this.getCurrentGroupOrderInDOM(),g=this.groupOrder.filter(function(v){return v==="series"||!!h.groups[v]}),d=u.length;if(d!==g.length)return!1;for(;d--;)if(u[d]!==g[d])return!1;return!0},y.prototype.updatePosContainerPositions=function(){var h=this.chart;if(!h.renderer.forExport){var u=h.renderer.box;h.container.insertBefore(this.afterChartProxyPosContainer,u.nextSibling),h.container.insertBefore(this.beforeChartProxyPosContainer,u),E(this.chart,this.afterChartProxyPosContainer),E(this.chart,this.beforeChartProxyPosContainer)}},y}()}),et(B,"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(B,"Stock/RangeSelector/RangeSelectorComposition.js",[B["Core/Defaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.defaultOptions,Z=W.setOptions,U=H.addEvent,z=H.defined,I=H.extend,E=H.find,M=H.isNumber,k=H.merge,y=H.pick,h=[],u=[];function g(){var r,a,t=this.range,i=t.type,o=this.max,e=this.chart.time,s=function(l,b){var T=i==="year"?"FullYear":"Month",D=new e.Date(l),p=e.get(T,D);return e.set(T,D,p+b),p===e.get(T,D)&&e.set("Date",D,0),D.getTime()-l};M(t)?(r=o-t,a=t):t&&(r=o+s(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var n=y(this.dataMin,Number.MIN_VALUE);return M(r)||(r=n),r<=n&&(r=n,a===void 0&&(a=s(r,t.count)),this.newMax=Math.min(r+a,y(this.dataMax,Number.MAX_VALUE))),M(o)?!M(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function d(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new V(this))}function v(){var r=this,a=r.axes,t=r.rangeSelector;if(t){M(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),a.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 a,t,i,o,e=r.rangeSelector,s=function(){e&&(a=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,M(a.min)&&e.render(a.min,a.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=k(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(h,function(n){return n[0]===r})||h.push([r,[U(r.xAxis[0],"afterSetExtremes",function(n){e&&e.render(n.min,n.max)}),U(r,"redraw",s)]]),s())}function S(){for(var r=0,a=h.length;r<a;++r){var t=h[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void h.splice(r,1)}}function C(){var r=this.rangeSelector;if(r){var a=r.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function c(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var a=r.options.verticalAlign;a==="bottom"?this.extraBottomMargin=!0:a!=="middle"&&(this.extraTopMargin=!0)}}function f(r){var a=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(a&&a.enabled&&!z(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new V(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){w(this);var e=a&&a.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,a,t){V=t,u.indexOf(r)===-1&&(u.push(r),r.prototype.minFromRange=g),u.indexOf(a)===-1&&(u.push(a),U(a,"afterGetContainer",d),U(a,"beforeRender",v),U(a,"destroy",S),U(a,"getMargins",C),U(a,"render",c),U(a,"update",f),a.prototype.callbacks.push(w)),u.indexOf(Z)===-1&&(I($,{rangeSelector:R.rangeSelector}),I($.lang,R.lang))}}}),et(B,"Stock/RangeSelector/RangeSelector.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Stock/RangeSelector/RangeSelectorComposition.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=R.defaultOptions,z=Z.addEvent,I=Z.createElement,E=Z.css,M=Z.defined,k=Z.destroyObjectProperties,y=Z.discardElement,h=Z.extend,u=Z.fireEvent,g=Z.isNumber,d=Z.merge,v=Z.objectEach,w=Z.pad,S=Z.pick,C=Z.pInt,c=Z.splat,f=function(){function r(a){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=a,this.init(a)}return r.compose=function(a,t){V.compose(a,t,r)},r.prototype.clickButton=function(a,t){var i,o,e,s,n,l,b,T=this,D=T.chart,p=T.buttonOptions[a],x=D.xAxis[0],A=D.scroller&&D.scroller.getUnionExtremes()||x||{},N=p.type,_=p.dataGrouping,L=A.dataMin,O=A.dataMax,j=x&&Math.round(Math.min(x.max,S(O,x.max))),Y=p._range,X=!0;if(L!==null&&O!==null){if(D.fixedRange=Y,T.setSelected(a),_&&(this.forcedDataGrouping=!0,W.prototype.setDataGrouping.call(x||{chart:this.chart},_,!1),this.frozenStates=p.preserveDataGrouping),N==="month"||N==="year")x?(l={range:p,max:j,chart:D,dataMin:L,dataMax:O},i=x.minFromRange.call(l),g(l.newMax)&&(j=l.newMax),X=!1):Y=p;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,O),X=!1;else if(N==="ytd"){if(!x)return void(T.deferredYTDClick=a);O!==void 0&&L!==void 0||(L=Number.MAX_VALUE,O=Number.MIN_VALUE,D.series.forEach(function(G){var q=G.xData;q&&(L=Math.min(q[0],L),O=Math.max(q[q.length-1],O))}),t=!1),i=e=(b=T.getYTDExtremes(O,L,D.time.useUTC)).min,j=b.max}else N==="all"&&x&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=O);X&&p._offsetMin&&M(i)&&(i+=p._offsetMin),p._offsetMax&&M(j)&&(j+=p._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=a+1),x?x.setExtremes(i,j,S(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:p}):(o=c(D.options.xAxis)[0],n=o.range,o.range=Y,s=o.min,o.min=e,z(D,"load",function(){o.range=n,o.min=s})),u(this,"afterBtnClick")}},r.prototype.setSelected=function(a){this.selected=this.options.selected=a},r.prototype.init=function(a){var t=this,i=a.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,s=function(){var n=t.minInput,l=t.maxInput;n&&n.blur&&u(n,"blur"),l&&l.blur&&u(l,"blur")};t.chart=a,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(z(a.container,"mousedown",s)),this.eventsToUnbind.push(z(a,"resize",s)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(z(a,"load",function(){a.xAxis&&a.xAxis[0]&&z(a.xAxis[0],"setExtremes",function(n){this.max-this.min!==a.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var a=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),s=!o.hasVisibleSeries,n=864e5,l=t.scroller&&t.scroller.getUnionExtremes()||o,b=l.dataMin,T=l.dataMax,D=a.getYTDExtremes(T,b,t.time.useUTC),p=D.min,x=D.max,A=a.selected,N=a.options.allButtonsEnabled,_=a.buttons,L=g(A);a.buttonOptions.forEach(function(O,j){var Y=O._range,X=O.type,G=O.count||1,q=_[j],Q=O._offsetMax-O._offsetMin,J=j===A,rt=Y>T-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]*n*G-Q&&e-36e5<={month:31,year:366}[X]*n*G+Q?yt=!0:X==="ytd"?(yt=x-p+Q===e,mt=!J):X==="all"&&(yt=o.max-o.min>=T-b,bt=!J&&L&&yt);var ht=!N&&(rt||lt||bt||s),it=J&&yt||yt&&!L&&!mt||J&&a.frozenStates;ht?gt=3:it&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=ht,gt===2&&(i.selectedIndex=j+1)),gt===0&&A===j&&a.setSelected())})},r.prototype.computeButtonRange=function(a){var t=a.type,i=a.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?a._range=o[t]*i:t!=="month"&&t!=="year"||(a._range=24*{month:30,year:365}[t]*36e5*i),a._offsetMin=S(a.offsetMin,0),a._offsetMax=S(a.offsetMax,0),a._range+=a._offsetMax-a._offsetMin},r.prototype.getInputValue=function(a){var t=a==="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(a,t){var i=this.options,o=this.chart.time,e=a==="min"?this.minInput:this.maxInput,s=a==="min"?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time"),l=M(n)?Number(n):void 0;if(M(t)){var b=l;M(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),l=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,l),s&&s.attr({text:o.dateFormat(i.inputDateFormat,l)})}},r.prototype.setInputExtremes=function(a,t,i){var o=a==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],s=this.chart.time;if(e){var n=s.dateFormat(e,t);o.min!==n&&(o.min=n);var l=s.dateFormat(e,i);o.max!==l&&(o.max=l)}}},r.prototype.showInput=function(a){var t=a==="min"?this.minDateBox:this.maxDateBox,i=a==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,s=e.translateX,n=e.translateY,l=this.options.inputBoxWidth;E(i,{width:o?t.width+(l?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&l?{left:s+t.x+"px",top:n+"px"}:{left:Math.min(Math.round(t.x+s-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:n-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(a){var t=a==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(a,t,i){var o,e=a.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 s=new Date(e).getTimezoneOffset()/60;e+=s<=0?"+".concat(w(-s),":00"):"-".concat(w(s),":00")}var n=Date.parse(e);if(!g(n)){var l=a.split("-");n=Date.UTC(C(l[0]),C(l[1])-1,C(l[2]))}return i&&t&&g(n)&&(n+=i.getTimezoneOffset(n)),n},r.prototype.drawInput=function(a){var t=this,i=t.chart,o=t.div,e=t.inputGroup,s=this,n=i.renderer.style||{},l=i.renderer,b=i.options.rangeSelector,T=U.lang,D=a==="min";function p(){var O=s.maxInput,j=s.minInput,Y=i.xAxis[0],X=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,G=X.dataMin,q=X.dataMax,Q=s.getInputValue(a);Q!==Number(_.getAttribute("data-hc-time-previous"))&&g(Q)&&(_.setAttribute("data-hc-time-previous",Q),D&&O&&g(G)?Q>Number(O.getAttribute("data-hc-time"))?Q=void 0:Q<G&&(Q=G):j&&g(q)&&(Q<Number(j.getAttribute("data-hc-time"))?Q=void 0:Q>q&&(Q=q)),Q!==void 0&&Y.setExtremes(D?Q:Y.min,D?Y.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}var x=T[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",A=l.label(x,0).addClass("highcharts-range-label").attr({padding:x?2:0,height:x?b.inputBoxHeight:0}).add(e),N=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){s.showInput(a),s[a+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var _=I("input",{name:a,className:"highcharts-range-selector"},void 0,o);_.setAttribute("type",function(O){if(O.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(X){return O.indexOf("%"+X)!==-1}),Y=["H","k","I","l","M","S"].some(function(X){return O.indexOf("%"+X)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(A.css(d(n,b.labelStyle)),N.css(d({color:"#333333"},n,b.inputStyle)),E(_,h({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},b.inputStyle))),_.onfocus=function(){s.showInput(a)},_.onblur=function(){_===H.doc.activeElement&&p(),s.hideInput(a),s.setInputValue(a),_.blur()};var L=!1;return _.onchange=function(){L||(p(),s.hideInput(a),_.blur())},_.onkeypress=function(O){O.keyCode===13&&p()},_.onkeydown=function(O){L=!0,O.keyCode!==38&&O.keyCode!==40||p()},_.onkeyup=function(){L=!1},{dateBox:N,input:_,label:A}},r.prototype.getPosition=function(){var a=this.chart,t=a.options.rangeSelector,i=t.verticalAlign==="top"?a.plotTop-a.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(a,t,i){var o=this.chart.time,e=new o.Date(a),s=o.get("FullYear",e),n=i?o.Date.UTC(s,0,1):+new o.Date(s,0,1),l=Math.max(t,n),b=e.getTime();return{max:Math.min(a||b,b),min:l}},r.prototype.render=function(a,t){var i=this.chart,o=i.renderer,e=i.container,s=i.options,n=s.rangeSelector,l=S(s.chart.style&&s.chart.style.zIndex,0)+1,b=n.inputEnabled,T=this.rendered;if(n.enabled!==!1){if(!T&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var D=this.drawInput("min");this.minDateBox=D.dateBox,this.minLabel=D.label,this.minInput=D.input;var p=this.drawInput("max");this.maxDateBox=p.dateBox,this.maxLabel=p.label,this.maxInput=p.input}if(b){this.setInputValue("min",a),this.setInputValue("max",t);var x=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(M(x.dataMin)&&M(x.dataMax)){var A=i.xAxis[0].minRange||0;this.setInputExtremes("min",x.dataMin,Math.min(x.dataMax,this.getInputValue("max"))-A),this.setInputExtremes("max",Math.max(x.dataMin,this.getInputValue("min"))+A,x.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(_){if(_){var L=_.getBBox().width;L&&(_.attr({x:N}),N+=L+n.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var a=this,t=this,i=t.buttons,o=t.chart,e=t.options,s=U.lang,n=o.renderer,l=d(e.buttonTheme),b=l&&l.states,T=l.width||28;delete l.width,delete l.states,this.buttonGroup=n.g("range-selector-buttons").add(this.group);var D=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);z(D,"touchstart",function(){D.style.fontSize="16px"}),[[H.isMS?"mouseover":"mouseenter"],[H.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(p){var x=p[0],A=p[1];z(D,x,function(){var N=i[a.currentButtonIndex()];N&&u(N.element,A||x)})}),this.zoomText=n.label(s&&s.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),l["stroke-width"]=S(l["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,D),this.buttonOptions.forEach(function(p,x){I("option",{textContent:p.title||p.text},void 0,D),i[x]=n.button(p.text,0,0,function(A){var N,_=p.events&&p.events.click;_&&(N=_.call(p,A)),N!==!1&&a.clickButton(x),a.isActive=!0},l,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:T}).add(a.buttonGroup),p.title&&i[x].attr("title",p.title)})},r.prototype.alignElements=function(){var a=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,s=t.group,n=t.inputGroup,l=t.options,b=t.zoomText,T=e.options,D=T.exporting&&T.exporting.enabled!==!1&&T.navigation&&T.navigation.buttonOptions,p=l.buttonPosition,x=l.inputPosition,A=l.verticalAlign,N=function(mt,bt){return D&&a.titleCollision(e)&&A==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(D.y||0)+(D.height||0)+e.spacing[0]?-40:0},_=e.plotLeft;if(s&&p&&x){var L=p.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var O=0;b&&(O+=b.getBBox().width+5),o.forEach(function(mt,bt){O+=mt.width,bt!==o.length-1&&(O+=l.buttonSpacing)}),this.initialButtonGroupWidth=O}_-=e.spacing[3],this.updateButtonStates();var j=N(i,p);this.alignButtonGroup(j),s.placed=i.placed=e.hasLoaded}var Y=0;n&&(Y=N(n,x),x.align==="left"?L=_:x.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),n.align({y:x.y,width:n.getBBox().width,align:x.align,x:x.x+L-2},!0,e.spacingBox),n.placed=e.hasLoaded),this.handleCollision(Y),s.align({verticalAlign:A},!0,e.spacingBox);var X=s.alignAttr.translateY,G=s.getBBox().height+20,q=0;if(A==="bottom"){var Q=e.legend&&e.legend.options;q=X-(G=G+(Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?e.legend.legendHeight+S(Q.margin,10):0)-20)-(l.floating?0:l.y)-(e.titleOffset?e.titleOffset[2]:0)-10}A==="top"?(l.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):A==="middle"&&(x.y===p.y?q=X:(x.y||p.y)&&(x.y<0||p.y<0?q-=Math.min(x.y,p.y):q=X-G)),s.translate(l.x,l.y+Math.floor(q));var J=this,rt=J.minInput,lt=J.maxInput,gt=J.dropdown;l.inputEnabled&&rt&<&&(rt.style.marginTop=s.translateY+"px",lt.style.marginTop=s.translateY+"px"),gt&&(gt.style.marginTop=s.translateY+"px")}},r.prototype.alignButtonGroup=function(a,t){var i=this,o=i.chart,e=i.options,s=i.buttonGroup,n=e.buttonPosition,l=o.plotLeft-o.spacing[3],b=n.x-o.spacing[3];n.align==="right"?b+=a-l:n.align==="center"&&(b-=l/2),s&&s.align({y:n.y,width:S(t,this.initialButtonGroupWidth),align:n.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var a=this,t=a.buttons,i=a.chart,o=a.options,e=a.zoomText,s=i.hasLoaded?"animate":"attr",n=o.buttonPosition,l=i.plotLeft,b=l;e&&e.visibility!=="hidden"&&(e[s]({x:S(l+n.x,l)}),b+=n.x+e.getBBox().width+5);for(var T=0,D=this.buttonOptions.length;T<D;++T)t[T].visibility!=="hidden"?(t[T][s]({x:b}),b+=t[T].width+o.buttonSpacing):t[T][s]({x:l})},r.prototype.handleCollision=function(a){var t=this,i=this,o=i.chart,e=i.buttonGroup,s=i.inputGroup,n=this.options,l=n.buttonPosition,b=n.dropdown,T=n.inputPosition,D=function(){var A=0;return t.buttons.forEach(function(N){var _=N.getBBox();_.width>A&&(A=_.width)}),A},p=function(A){if(s&&e){var N=s.alignAttr.translateX+s.alignOptions.x-a+s.getBBox().x+2,_=s.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+A>N&&N+_>L&&l.y<T.y+s.getBBox().height}return!1},x=function(){s&&e&&s.attr({translateX:s.alignAttr.translateX+(o.axisOffset[1]>=-a?0:-a),translateY:s.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(a),void(p(D())&&x());b==="never"&&this.expandButtons()}s&&e?T.align===l.align||p(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(a),p(D())&&x()):x():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(a):this.expandButtons())},r.prototype.collapseButtons=function(a){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,s=t.dropdown,n=t.options,l=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},T=function(x){return{text:x?x+" ▾":"▾",width:"auto",paddingLeft:S(n.buttonTheme.paddingLeft,b.padding,8),paddingRight:S(n.buttonTheme.paddingRight,b.padding,8)}};l&&l.hide();var D=!1;o.forEach(function(x,A){var N=i[A];N.state!==2?N.hide():(N.show(),N.attr(T(x.text)),D=!0)}),D||(s&&(s.selectedIndex=0),i[0].show(),i[0].attr(T(this.zoomText&&this.zoomText.textStr)));var p=n.buttonPosition.align;this.positionButtons(),p!=="right"&&p!=="center"||this.alignButtonGroup(a,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var a=this,t=a.buttons,i=a.buttonOptions,o=a.options,e=a.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(s,n){var l=t[n];l.show(),l.attr({text:s.text,width:o.buttonTheme.width||28,paddingLeft:S(o.buttonTheme.paddingLeft,"unset"),paddingRight:S(o.buttonTheme.paddingRight,"unset")}),l.state<2&&l.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&a.selectedIndex>0?a.selectedIndex-1:0},r.prototype.showDropdown=function(){var a=this,t=a.buttonGroup,i=a.buttons,o=a.chart,e=a.dropdown;if(t&&e){var s=t.translateX,n=t.translateY,l=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+s+"px",top:n+.5+"px",width:l.width+"px",height:l.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var a=this.dropdown;a&&(E(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var a=this.options,t=this.group,i=a.inputPosition,o=a.buttonPosition,e=a.y,s=o.y,n=i.y,l=0;if(a.height)return a.height;this.alignElements(),l=t?t.getBBox(!0).height+13+e:0;var b=Math.min(n,s);return(n<0&&s<0||n>0&&s>0)&&(l+=Math.abs(b)),l},r.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)},r.prototype.update=function(a){var t=this.chart;d(!0,t.options.rangeSelector,a),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var a=this,t=a.minInput,i=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(o){return o()}),a.eventsToUnbind=void 0),k(a.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(a,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof window.HTMLElement&&y(o)),o!==r.prototype[e]&&(a[e]=null)},this)},r}();return h(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(B,"Accessibility/Components/RangeSelectorComponent.js",[B["Stock/RangeSelector/RangeSelector.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(h,u){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,d){g.__proto__=d}||function(g,d){for(var v in d)d.hasOwnProperty(v)&&(g[v]=d[v])},U(h,u)},function(h,u){function g(){this.constructor=h}U(h,u),h.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),I=H.unhideChartElementFromAT,E=H.getAxisRangeDescription,M=Z.addEvent,k=Z.attr,y=function(h){function u(){var g=h!==null&&h.apply(this,arguments)||this;return g.announcer=void 0,g}return z(u,h),u.prototype.init=function(){var g=this.chart;this.announcer=new V(g,"polite")},u.prototype.onChartUpdate=function(){var g=this.chart,d=this,v=g.rangeSelector;v&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),v.buttons&&v.buttons.length&&v.buttons.forEach(function(w){d.setRangeButtonAttrs(w)}),v.maxInput&&v.minInput&&["minInput","maxInput"].forEach(function(w,S){var C=v[w];C&&(I(g,C),d.setRangeInputAttrs(C,"accessibility.rangeSelector."+(S?"max":"min")+"InputLabel"))}))},u.prototype.updateSelectorVisibility=function(){var g=this.chart,d=g.rangeSelector,v=d&&d.dropdown,w=d&&d.buttons||[],S=function(C){return C.setAttribute("aria-hidden",!0)};d&&d.hasVisibleDropdown&&v?(I(g,v),w.forEach(function(C){return S(C.element)})):(v&&S(v),w.forEach(function(C){return I(g,C.element)}))},u.prototype.setDropdownAttrs=function(){var g=this.chart,d=g.rangeSelector&&g.rangeSelector.dropdown;if(d){var v=g.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:g.options.lang.rangeSelectorZoom});d.setAttribute("aria-label",v),d.setAttribute("tabindex",-1)}},u.prototype.setRangeButtonAttrs=function(g){k(g.element,{tabindex:-1,role:"button"})},u.prototype.setRangeInputAttrs=function(g,d){var v=this.chart;k(g,{tabindex:-1,"aria-label":v.langFormat(d,{chart:v})})},u.prototype.onButtonNavKbdArrowKey=function(g,d){var v=g.response,w=this.keyCodes,S=this.chart,C=S.options.accessibility.keyboardNavigation.wrapAround,c=d===w.left||d===w.up?-1:1;return S.highlightRangeSelectorButton(S.highlightedRangeSelectorItemIx+c)?v.success:C?(g.init(c),v.success):v[c>0?"next":"prev"]},u.prototype.onButtonNavKbdClick=function(g){var d=g.response,v=this.chart;return v.oldRangeSelectorItemState===3||this.fakeClickEvent(v.rangeSelector.buttons[v.highlightedRangeSelectorItemIx].element),d.success},u.prototype.onAfterBtnClick=function(){var g=this.chart,d=E(g.xAxis[0]),v=g.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:g,axisRangeDescription:d});v&&this.announcer.announce(v)},u.prototype.onInputKbdMove=function(g){var d=this.chart,v=d.rangeSelector,w=d.highlightedInputRangeIx=(d.highlightedInputRangeIx||0)+g;if(w>1||w<0)d.accessibility&&(d.accessibility.keyboardNavigation.tabindexContainer.focus(),d.accessibility.keyboardNavigation.move(g));else if(v){var S=v[w?"maxDateBox":"minDateBox"],C=v[w?"maxInput":"minInput"];S&&C&&d.setFocusToElement(S,C)}},u.prototype.onInputNavInit=function(g){var d=this,v=this,w=this.chart,S=g>0?0:1,C=w.rangeSelector,c=C&&C[S?"maxDateBox":"minDateBox"],f=C&&C.minInput,r=C&&C.maxInput,a=S?r:f;if(w.highlightedInputRangeIx=S,c&&f&&r){w.setFocusToElement(c,a),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();var t=function(e){(e.which||e.keyCode)===d.keyCodes.tab&&(e.preventDefault(),e.stopPropagation(),v.onInputKbdMove(e.shiftKey?-1:1))},i=M(f,"keydown",t),o=M(r,"keydown",t);this.removeInputKeydownHandler=function(){i(),o()}}},u.prototype.onInputNavTerminate=function(){var g=this.chart.rangeSelector||{};g.maxInput&&g.hideInput("max"),g.minInput&&g.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},u.prototype.initDropdownNav=function(){var g=this,d=this.chart,v=d.rangeSelector,w=v&&v.dropdown;v&&w&&(d.setFocusToElement(v.buttonGroup,w),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=M(w,"keydown",function(S){var C=(S.which||S.keyCode)===g.keyCodes.tab,c=d.accessibility;C&&(S.preventDefault(),S.stopPropagation(),c&&(c.keyboardNavigation.tabindexContainer.focus(),c.keyboardNavigation.move(S.shiftKey?-1:1)))}))},u.prototype.getRangeSelectorButtonNavigation=function(){var g=this.chart,d=this.keyCodes,v=this;return new $(g,{keyCodeMap:[[[d.left,d.right,d.up,d.down],function(w){return v.onButtonNavKbdArrowKey(this,w)}],[[d.enter,d.space],function(){return v.onButtonNavKbdClick(this)}]],validate:function(){return!!(g.rangeSelector&&g.rangeSelector.buttons&&g.rangeSelector.buttons.length)},init:function(w){var S=g.rangeSelector;if(S&&S.hasVisibleDropdown)v.initDropdownNav();else if(S){var C=S.buttons.length-1;g.highlightRangeSelectorButton(w>0?0:C)}},terminate:function(){v.removeDropdownKeydownHandler&&(v.removeDropdownKeydownHandler(),delete v.removeDropdownKeydownHandler)}})},u.prototype.getRangeSelectorInputNavigation=function(){var g=this.chart,d=this;return new $(g,{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)}(g)},init:function(v){d.onInputNavInit(v)},terminate:function(){d.onInputNavTerminate()}})},u.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},u.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},u}(R);return function(h){var u=[];function g(v){var w=this.rangeSelector&&this.rangeSelector.buttons||[],S=this.highlightedRangeSelectorItemIx,C=this.rangeSelector&&this.rangeSelector.selected;return S!==void 0&&w[S]&&S!==C&&w[S].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 d(){var v=this.chart.accessibility;if(v&&v.components.rangeSelector)return v.components.rangeSelector.onAfterBtnClick()}h.compose=function(v,w){u.indexOf(v)===-1&&(u.push(v),v.prototype.highlightRangeSelectorButton=g),u.indexOf(w)===-1&&(u.push(w),M(W,"afterBtnClick",d))}}(y||(y={})),y}),et(B,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.merge;return function($){var Z=[];function U(h){V(!0,h,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function z(h){return h.marker.states&&h.marker.states.normal&&h.marker.states.normal.opacity}function I(h){return!!(h._hasPointMarkers&&h.points&&h.points.length)}function E(){var h=this;h.chart.styledMode&&(h.markerGroup&&h.markerGroup[h.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),I(h)&&h.points.forEach(function(u){u.graphic&&(u.graphic[u.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),u.graphic[u.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function M(h){this.resetA11yMarkerOptions=V(h.options.marker||{},this.userOptions.marker||{})}function k(){var h=this,u=h.options;(function(g){var d=g.chart.options.accessibility.enabled,v=(g.options.accessibility&&g.options.accessibility.enabled)!==!1;return d&&v&&function(w){var S=w.chart.options.accessibility;return w.points.length<S.series.pointDescriptionEnabledThreshold||S.series.pointDescriptionEnabledThreshold===!1}(g)})(h)?(u.marker&&u.marker.enabled===!1&&(h.a11yMarkersForced=!0,U(h.options)),I(h)&&function(g){for(var d=g.points.length;d--;){var v=g.points[d],w=v.options,S=v.hasForcedA11yMarker;if(delete v.hasForcedA11yMarker,w.marker){var C=S&&z(w)===0;w.marker.enabled&&!C?(y(w),v.hasForcedA11yMarker=!1):w.marker.enabled===!1&&(U(w),v.hasForcedA11yMarker=!0)}}}(h)):h.a11yMarkersForced&&(delete h.a11yMarkersForced,function(g){var d=g.resetA11yMarkerOptions;if(d){var v=d.states&&d.states.normal&&d.states.normal.opacity;g.update({marker:{enabled:d.enabled,states:{normal:{opacity:v}}}})}}(h),delete h.resetA11yMarkerOptions)}function y(h){V(!0,h.marker,{states:{normal:{opacity:z(h)||1}}})}$.compose=function(h){Z.indexOf(h)===-1&&(Z.push(h),H(h,"afterSetOptions",M),H(h,"render",k),H(h,"afterRender",E))}}(R||(R={})),R}),et(B,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/ChartUtilities.js"]],function(W,R,H,V,$,Z,U,z){var I=H.seriesTypes,E=V.doc,M=$.defined,k=$.fireEvent,y=z.getPointFromXY,h=z.getSeriesFromName,u=z.scrollToPoint;function g(r){var a=r.index,t=r.series.points,i=t.length;if(t[a]===r)return a;for(;i--;)if(t[i]===r)return i}function d(r){var a=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||a.pointNavigationEnabledThreshold&&a.pointNavigationEnabledThreshold<=r.points.length}function v(r){var a=r.series.chart.options.accessibility,t=r.options.accessibility&&r.options.accessibility.enabled===!1;return r.isNull&&a.keyboardNavigation.seriesNavigation.skipNullPoints||r.visible===!1||r.isInside===!1||t||d(r.series)}function w(r){for(var a=r.points||[],t=a.length,i=0;i<t;++i)if(!v(a[i]))return a[i];return null}function S(r){for(var a=r.series||[],t=a.length,i=0;i<t;++i)if(!d(a[i])){var o=w(a[i]);if(o)return o}return null}function C(r){for(var a=r.series.length,t=!1;a--&&(r.highlightedPoint=r.series[a].points[r.series[a].points.length-1],!(t=r.series[a].highlightNextValidPoint())););return t}function c(r){delete r.highlightedPoint;var a=S(r);return!!a&&a.highlight()}var f=function(){function r(a,t){this.keyCodes=t,this.chart=a}return r.prototype.init=function(){var a=this,t=this.chart,i=this.eventProvider=new U;i.addEvent(R,"destroy",function(){return a.onSeriesDestroy(this)}),i.addEvent(t,"afterApplyDrilldown",function(){(function(o){var e=S(o);e&&e.highlight(!1)})(this)}),i.addEvent(t,"drilldown",function(o){var e=o.point,s=e.series;a.lastDrilledDownPoint={x:e.x,y:e.y,seriesName:s?s.name:""}}),i.addEvent(t,"drillupall",function(){setTimeout(function(){a.onDrillupAll()},10)}),i.addEvent(W,"afterSetState",function(){var o=this,e=o.graphic&&o.graphic.element,s=E.activeElement,n=s&&s.getAttribute("class"),l=n&&n.indexOf("highcharts-a11y-proxy-button")>-1;t.highlightedPoint===o&&s!==e&&!l&&e&&e.focus&&e.focus()})},r.prototype.onDrillupAll=function(){var a,t=this.lastDrilledDownPoint,i=this.chart,o=t&&h(i,t.seriesName);t&&o&&M(t.x)&&M(t.y)&&(a=y(o,t.x,t.y)),a=a||S(i),i.container&&i.container.focus(),a&&a.highlight&&a.highlight(!1)},r.prototype.getKeyboardNavigationHandler=function(){var a=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 a.onKbdSideways(this,e)}],[o?[t.left,t.right]:[t.up,t.down],function(e){return a.onKbdVertical(this,e)}],[[t.enter,t.space],function(e,s){var n=i.highlightedPoint;return n&&(s.point=n,k(n.series,"click",s),n.firePointEvent("click")),this.response.success}],[[t.home],function(){return c(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 a.onHandlerInit(this)},validate:function(){return!!S(i)},terminate:function(){return a.onHandlerTerminate()}})},r.prototype.onKbdSideways=function(a,t){var i=this.keyCodes,o=t===i.right||t===i.down;return this.attemptHighlightAdjacentPoint(a,o)},r.prototype.onHandlerInit=function(a){var t=this.chart;return t.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&t.highlightedPoint?t.highlightedPoint.highlight():c(t),a.response.success},r.prototype.onKbdVertical=function(a,t){var i=this.chart,o=this.keyCodes,e=t===o.down||t===o.right,s=i.options.accessibility.keyboardNavigation.seriesNavigation;return s.mode&&s.mode==="serialize"?this.attemptHighlightAdjacentPoint(a,e):(i[i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](e),a.response.success)},r.prototype.onHandlerTerminate=function(){var a=this.chart,t=a.options.accessibility.keyboardNavigation;a.tooltip&&a.tooltip.hide(0);var i=a.highlightedPoint&&a.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),a.highlightedPoint&&a.highlightedPoint.onMouseOut&&a.highlightedPoint.onMouseOut(),t.seriesNavigation.rememberPointFocus||delete a.highlightedPoint},r.prototype.attemptHighlightAdjacentPoint=function(a,t){var i=this.chart,o=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(t)||o&&(t?c(i):C(i))?a.response.success:a.response[t?"next":"prev"]},r.prototype.onSeriesDestroy=function(a){var t=this.chart;t.highlightedPoint&&t.highlightedPoint.series===a&&(delete t.highlightedPoint,t.focusElement&&t.focusElement.removeFocusBorder())},r.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},r}();return function(r){var a=[];function t(n){var l,b,T=this,D=T.series,p=T.highlightedPoint,x=p&&g(p)||0,A=p&&p.series.points||[],N=T.series&&T.series[T.series.length-1],_=N&&N.points&&N.points[N.points.length-1];if(!D[0]||!D[0].points)return!1;if(p){if(l=D[p.series.index+(n?1:-1)],!(b=A[x+(n?1:-1)])&&l&&(b=l.points[n?0:l.points.length-1]),!b)return!1}else b=n?D[0].points[0]:_;return v(b)?(d(l=b.series)?T.highlightedPoint=n?l.points[l.points.length-1]:l.points[0]:T.highlightedPoint=b,T.highlightAdjacentPoint(n)):b.highlight()}function i(n){var l,b=this.highlightedPoint,T=1/0;return!(!M(b.plotX)||!M(b.plotY))&&(this.series.forEach(function(D){d(D)||D.points.forEach(function(p){if(M(p.plotY)&&M(p.plotX)&&p!==b){var x=p.plotY-b.plotY,A=Math.abs(p.plotX-b.plotX),N=Math.abs(x)*Math.abs(x)+A*A*4;D.yAxis&&D.yAxis.reversed&&(x*=-1),x<=0&&n||x>=0&&!n||N<5||v(p)||N<T&&(T=N,l=p)}})}),!!l&&l.highlight())}function o(n){var l,b,T=this,D=T.highlightedPoint,p=T.series&&T.series[T.series.length-1],x=p&&p.points&&p.points[p.points.length-1];return T.highlightedPoint?!!(l=T.series[D.series.index+(n?-1:1)])&&!!(b=function(A,N){var _,L,O,j=1/0,Y=N.points.length,X=function(G){return!(M(G.plotX)&&M(G.plotY))};if(!X(A)){for(;Y--;)X(_=N.points[Y])||(O=(A.plotX-_.plotX)*(A.plotX-_.plotX)*4+(A.plotY-_.plotY)*(A.plotY-_.plotY)*1)<j&&(j=O,L=Y);return M(L)?N.points[L]:void 0}}(D,l))&&(d(l)?(b.highlight(),T.highlightAdjacentSeries(n)||(D.highlight(),!1)):(b.highlight(),b.series.highlightNextValidPoint())):(l=n?T.series&&T.series[0]:p,!!(b=n?l&&l.points&&l.points[0]:x)&&b.highlight())}function e(n){n===void 0&&(n=!0);var l=this.series.chart;return!this.isNull&&n?this.onMouseOver():l.tooltip&&l.tooltip.hide(0),u(this),this.graphic&&(l.setFocusToElement(this.graphic),!n&&l.focusElement&&l.focusElement.removeFocusBorder()),l.highlightedPoint=this,this}function s(){var n=this.chart.highlightedPoint,l=(n&&n.series)===this?g(n):0,b=this.points,T=b.length;if(b&&T){for(var D=l;D<T;++D)if(!v(b[D]))return b[D].highlight();for(var p=l;p>=0;--p)if(!v(b[p]))return b[p].highlight()}return!1}r.compose=function(n,l,b){if(a.indexOf(n)===-1){a.push(n);var T=n.prototype;T.highlightAdjacentPoint=t,T.highlightAdjacentPointVertical=i,T.highlightAdjacentSeries=o}if(a.indexOf(l)===-1&&(a.push(l),l.prototype.highlight=e),a.indexOf(b)===-1){a.push(b);var D=b.prototype;D.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(function(p){I[p]&&(I[p].prototype.keyboardMoveVertical=!1)}),D.highlightNextValidPoint=s}}}(f||(f={})),f}),et(B,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],B["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],B["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],B["Core/Tooltip.js"]],function(W,R,H,V,$,Z,U){var z,I=this&&this.__extends||(z=function(y,h){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},z(y,h)},function(y,h){function u(){this.constructor=y}z(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),E=R.hideSeriesFromAT,M=$.describeSeries,k=function(y){function h(){return y!==null&&y.apply(this,arguments)||this}return I(h,y),h.compose=function(u,g,d){V.compose(d),H.compose(d),Z.compose(u,g,d)},h.prototype.init=function(){this.newDataAnnouncer=new V(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new Z(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},h.prototype.hideTooltipFromATWhenShown=function(){var u=this;this.addEvent(U,"refresh",function(){this.chart===u.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})},h.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(u){u.labelBySeries&&u.labelBySeries.attr("aria-hidden",!0)})})},h.prototype.onChartRender=function(){this.chart.series.forEach(function(u){(u.options.accessibility&&u.options.accessibility.enabled)!==!1&&u.visible?M(u):E(u)})},h.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},h.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},h}(W);return k}),et(B,"Accessibility/Components/ZoomComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},Z(y,h)},function(y,h){function u(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),z=R.unhideChartElementFromAT,I=H.getFakeMouseEvent,E=$.attr,M=$.pick,k=function(y){function h(){var u=y!==null&&y.apply(this,arguments)||this;return u.focusedMapNavButtonIx=-1,u}return U(h,y),h.prototype.init=function(){var u=this,g=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(function(d){u.addEvent(g,d,function(){u.updateProxyOverlays()})})},h.prototype.onChartUpdate=function(){var u=this.chart,g=this;u.mapNavigation&&u.mapNavigation.navButtons.forEach(function(d,v){z(u,d.element),g.setMapNavButtonAttrs(d.element,"accessibility.zoom.mapZoom"+(v?"Out":"In"))})},h.prototype.setMapNavButtonAttrs=function(u,g){var d=this.chart,v=d.langFormat(g,{chart:d});E(u,{tabindex:-1,role:"button","aria-label":v})},h.prototype.onChartRender=function(){this.updateProxyOverlays()},h.prototype.updateProxyOverlays=function(){var u=this.chart;if(this.proxyProvider.clearGroup("zoom"),u.resetZoomButton&&this.createZoomProxyButton(u.resetZoomButton,"resetZoomProxyButton",u.langFormat("accessibility.zoom.resetZoomButton",{chart:u})),u.drillUpButton&&u.breadcrumbs&&u.breadcrumbs.list){var g=u.breadcrumbs.list[u.breadcrumbs.list.length-1];this.createZoomProxyButton(u.drillUpButton,"drillUpProxyButton",u.langFormat("accessibility.drillUpButton",{chart:u,buttonText:u.breadcrumbs.getButtonText(g)}))}},h.prototype.createZoomProxyButton=function(u,g,d){this[g]=this.proxyProvider.addProxyElement("zoom",{click:u},{"aria-label":d,tabindex:-1})},h.prototype.getMapZoomNavigation=function(){var u=this.keyCodes,g=this.chart,d=this;return new V(g,{keyCodeMap:[[[u.up,u.down,u.left,u.right],function(v){return d.onMapKbdArrow(this,v)}],[[u.tab],function(v,w){return d.onMapKbdTab(this,w)}],[[u.space,u.enter],function(){return d.onMapKbdClick(this)}]],validate:function(){return function(v){return!!(v.mapView&&v.mapNavigation&&v.mapNavigation.navButtons.length)}(g)},init:function(v){return d.onMapNavInit(v)}})},h.prototype.onMapKbdArrow=function(u,g){var d=this.chart,v=this.keyCodes,w=d.container,S=g===v.up||g===v.down,C=g===v.left||g===v.up?1:-1,c=(S?d.plotHeight:d.plotWidth)/10*C,f=10*Math.random(),r={x:w.offsetLeft+d.plotLeft+d.plotWidth/2+f,y:w.offsetTop+d.plotTop+d.plotHeight/2+f},a=S?{x:r.x,y:r.y+c}:{x:r.x+c,y:r.y};return[I("mousedown",r),I("mousemove",a),I("mouseup",a)].forEach(function(t){return w.dispatchEvent(t)}),u.response.success},h.prototype.onMapKbdTab=function(u,g){var d=this.chart,v=u.response,w=g.shiftKey,S=w&&!this.focusedMapNavButtonIx||!w&&this.focusedMapNavButtonIx;if(d.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),S)return d.mapView&&d.mapView.zoomBy(),v[w?"prev":"next"];this.focusedMapNavButtonIx+=w?-1:1;var C=d.mapNavigation.navButtons[this.focusedMapNavButtonIx];return d.setFocusToElement(C.box,C.element),C.setState(2),v.success},h.prototype.onMapKbdClick=function(u){var g=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(g),u.response.success},h.prototype.onMapNavInit=function(u){var g=this.chart,d=g.mapNavigation.navButtons[0],v=g.mapNavigation.navButtons[1],w=u>0?d:v;g.setFocusToElement(w.box,w.element),w.setState(2),this.focusedMapNavButtonIx=u>0?0:1},h.prototype.simpleButtonNavigation=function(u,g,d){var v=this.keyCodes,w=this,S=this.chart;return new V(S,{keyCodeMap:[[[v.tab,v.up,v.down,v.left,v.right],function(C,c){var f=C===v.tab&&c.shiftKey||C===v.left||C===v.up;return this.response[f?"prev":"next"]}],[[v.space,v.enter],function(){var C=d(this,S);return M(C,this.response.success)}]],validate:function(){return S[u]&&S[u].box&&w[g].buttonElement},init:function(){S.setFocusToElement(S[u].box,w[g].buttonElement)}})},h.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(u,g){g.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(u,g){return g.drillUp(),u.response.prev}),this.getMapZoomNavigation()]},h}(W);return k}),et(B,"Accessibility/HighContrastMode.js",[B["Core/Globals.js"]],function(W){var R=W.doc,H=W.isMS,V=W.win;return{isHighContrastModeActive:function(){var $=/(Edg)/.test(V.navigator.userAgent);if(V.matchMedia&&$)return V.matchMedia("(-ms-high-contrast: active)").matches;if(H&&V.getComputedStyle){var Z=R.createElement("div");Z.style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")"),R.body.appendChild(Z);var U=(Z.currentStyle||V.getComputedStyle(Z)).backgroundImage;return R.body.removeChild(Z),U==="none"}return V.matchMedia&&V.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function($){$.highContrastModeActive=!0;var Z=$.options.accessibility.highContrastTheme;$.update(Z,!1),$.series.forEach(function(U){var z=Z.plotOptions[U.type]||{};U.update({color:z.color||"windowText",colors:[z.color||"windowText"],borderColor:z.borderColor||"window"}),U.points.forEach(function(I){I.options&&I.options.color&&I.update({color:z.color||"windowText",borderColor:z.borderColor||"window"},!1)})}),$.redraw()}}}),et(B,"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(B,"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(B,"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(B,"Accessibility/Options/DeprecatedOptions.js",[B["Core/Utilities.js"]],function(W){var R=W.error,H=W.pick;function V(Z,U,z){for(var I,E=Z,M=0;M<U.length-1;++M)E=E[I=U[M]]=H(E[I],{});E[U[U.length-1]]=z}function $(Z,U,z,I){function E(y,h){return h.reduce(function(u,g){return u[g]},y)}var M=E(Z.options,U),k=E(Z.options,z);Object.keys(I).forEach(function(y){var h,u=M[y];u!==void 0&&(V(k,I[y],u),R(32,!1,Z,((h={})[U.join(".")+"."+y]=z.join(".")+"."+I[y].join("."),h)))})}return function(Z){(function(U){var z=U.options.chart,I=U.options.accessibility||{};["description","typeDescription"].forEach(function(E){var M;z[E]&&(I[E]=z[E],R(32,!1,U,((M={})["chart.".concat(E)]="use accessibility.".concat(E),M)))})})(Z),function(U){U.axes.forEach(function(z){var I=z.options;I&&I.description&&(I.accessibility=I.accessibility||{},I.accessibility.description=I.description,R(32,!1,U,{"axis.description":"use axis.accessibility.description"}))})}(Z),Z.series&&function(U){var z={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};U.series.forEach(function(I){Object.keys(z).forEach(function(E){var M,k=I.options[E];E==="accessibility.pointDescriptionFormatter"&&(k=I.options.accessibility&&I.options.accessibility.pointDescriptionFormatter),k!==void 0&&(V(I.options,z[E],E==="skipKeyboardNavigation"?!k:k),R(32,!1,U,((M={})["series.".concat(E)]="series."+z[E].join("."),M)))})})}(Z),function(U){$(U,["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(U){$(U,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]})}(Z),function(U){$(U,["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(B,"Accessibility/Accessibility.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/A11yI18n.js"],B["Accessibility/Components/ContainerComponent.js"],B["Accessibility/FocusBorder.js"],B["Accessibility/Components/InfoRegionsComponent.js"],B["Accessibility/KeyboardNavigation.js"],B["Accessibility/Components/LegendComponent.js"],B["Accessibility/Components/MenuComponent.js"],B["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],B["Accessibility/ProxyProvider.js"],B["Accessibility/Components/RangeSelectorComponent.js"],B["Accessibility/Components/SeriesComponent/SeriesComponent.js"],B["Accessibility/Components/ZoomComponent.js"],B["Accessibility/HighContrastMode.js"],B["Accessibility/HighContrastTheme.js"],B["Accessibility/Options/A11yDefaults.js"],B["Accessibility/Options/LangDefaults.js"],B["Accessibility/Options/DeprecatedOptions.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,k,y,h,u,g,d,v,w,S,C){var c=W.defaultOptions,f=R.doc,r=H.addEvent,a=H.extend,t=H.fireEvent,i=H.merge,o=V.removeElement,e=function(){function s(n){this.chart=void 0,this.components=void 0,this.keyboardNavigation=void 0,this.proxyProvider=void 0,this.init(n)}return s.prototype.init=function(n){if(this.chart=n,!f.addEventListener||!n.renderer.isSVG)return this.zombie=!0,this.components={},void n.renderTo.setAttribute("aria-hidden",!0);C(n),this.proxyProvider=new y(this.chart),this.initComponents(),this.keyboardNavigation=new I(n,this.components)},s.prototype.initComponents=function(){var n=this.chart,l=this.proxyProvider,b=n.options.accessibility;this.components={container:new Z,infoRegions:new z,legend:new E,chartMenu:new M,rangeSelector:new h,series:new u,zoom:new g},b.customComponents&&a(this.components,b.customComponents);var T=this.components;this.getComponentOrder().forEach(function(D){T[D].initBase(n,l),T[D].init()})},s.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var n=Object.keys(this.components).filter(function(l){return l!=="series"});return["series"].concat(n)},s.prototype.update=function(){var n=this.components,l=this.chart,b=l.options.accessibility;t(l,"beforeA11yUpdate"),l.types=this.getChartTypes();var T=b.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(T),this.getComponentOrder().forEach(function(D){n[D].onChartUpdate(),t(l,"afterA11yComponentUpdate",{name:D,component:n[D]})}),this.keyboardNavigation.update(T),!l.highContrastModeActive&&d.isHighContrastModeActive()&&d.setHighContrastTheme(l),t(l,"afterA11yUpdate",{accessibility:this})},s.prototype.destroy=function(){var n=this.chart||{},l=this.components;Object.keys(l).forEach(function(b){l[b].destroy(),l[b].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),n.announcerContainer&&o(n.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),n.renderTo&&n.renderTo.setAttribute("aria-hidden",!0),n.focusElement&&n.focusElement.removeFocusBorder()},s.prototype.getChartTypes=function(){var n={};return this.chart.series.forEach(function(l){n[l.type]=1}),Object.keys(n)},s}();return function(s){var n=[];function l(){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(A){x.components[A].onChartRender()}))}function T(x){var A=x.options.accessibility;A&&(A.customComponents&&(this.options.accessibility.customComponents=A.customComponents,delete A.customComponents),i(!0,this.options.accessibility,A),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function D(){var x=this.accessibility,A=this.options.accessibility;A&&A.enabled?x&&!x.zombie?x.update():(this.accessibility=x=new s(this),x&&!x.zombie&&x.update()):x?(x.destroy&&x.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function p(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}s.i18nFormat=$.i18nFormat,s.compose=function(x,A,N,_,L,O){I.compose(x),k.compose(_),E.compose(x,A),M.compose(x),u.compose(x,N,_),$.compose(x),U.compose(x,L),O&&h.compose(x,O),n.indexOf(x)===-1&&(n.push(x),x.prototype.updateA11yEnabled=D,r(x,"destroy",l),r(x,"render",b),r(x,"update",T),["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()})})),n.indexOf(N)===-1&&(n.push(N),r(N,"update",p)),n.indexOf(_)===-1&&(n.push(_),["update","updatedData","remove"].forEach(function(j){r(_,j,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(e||(e={})),i(!0,c,w,{accessibility:{highContrastTheme:v},lang:S}),e}),et(B,"masters/modules/accessibility.src.js",[B["Core/Globals.js"],B["Accessibility/Accessibility.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(W,R,H,V,$,Z,U){var z=W;z.i18nFormat=R.i18nFormat,z.A11yChartUtilities=V,z.A11yHTMLUtilities=$,z.AccessibilityComponent=H,z.KeyboardNavigationHandler=Z,z.SeriesAccessibilityDescriber=U,R.compose(z.Chart,z.Legend,z.Point,z.Series,z.SVGElement,z.RangeSelector)})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[at(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},5118:(ot,nt,at)=>{at.d(nt,{A:()=>E});var ct=at(6956),pt=at(4089),ut=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,B=at(3269);function et(M,k){if(typeof M!="function"||k!=null&&typeof k!="function")throw new TypeError("Expected a function");var y=function(){var h=arguments,u=k?k.apply(this,h):h[0],g=y.cache;if(g.has(u))return g.get(u);var d=M.apply(this,h);return y.cache=g.set(u,d)||g,d};return y.cache=new(et.Cache||B.A),y}et.Cache=B.A;var W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R=/\\(\\)?/g;const H=(V=et(function(M){var k=[];return M.charCodeAt(0)===46&&k.push(""),M.replace(W,function(y,h,u,g){k.push(u?g.replace(R,"$1"):h||y)}),k},function(M){return $.size===500&&$.clear(),M}),$=V.cache,V);var V,$,Z=at(3516),U=Z.A?Z.A.prototype:void 0,z=U?U.toString:void 0;const I=function M(k){if(typeof k=="string")return k;if((0,ct.A)(k))return function(h,u){for(var g=-1,d=h==null?0:h.length,v=Array(d);++g<d;)v[g]=u(h[g],g,h);return v}(k,M)+"";if((0,pt.A)(k))return z?z.call(k):"";var y=k+"";return y=="0"&&1/k==-1/0?"-0":y},E=function(M,k){return(0,ct.A)(M)?M:function(y,h){if((0,ct.A)(y))return!1;var u=typeof y;return!(u!="number"&&u!="symbol"&&u!="boolean"&&y!=null&&!(0,pt.A)(y))||ft.test(y)||!ut.test(y)||h!=null&&y in Object(h)}(M,k)?[M]:H(function(y){return y==null?"":I(y)}(M))}},5134:function(ot,nt,at){var ct,pt,ut;pt=typeof window!="undefined"?window:this,ut=function(ft){var B={};function et(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&ft.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}return et(B,"Core/Globals.js",[],function(){var W;return function(R){R.SVG_NS="http://www.w3.org/2000/svg",R.product="Highcharts",R.version="10.3.3",R.win=ft!==void 0?ft:{},R.doc=R.win.document,R.svg=R.doc&&R.doc.createElementNS&&!!R.doc.createElementNS(R.SVG_NS,"svg").createSVGRect,R.userAgent=R.win.navigator&&R.win.navigator.userAgent||"",R.isChrome=R.userAgent.indexOf("Chrome")!==-1,R.isFirefox=R.userAgent.indexOf("Firefox")!==-1,R.isMS=/(edge|msie|trident)/i.test(R.userAgent)&&!R.win.opera,R.isSafari=!R.isChrome&&R.userAgent.indexOf("Safari")!==-1,R.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(R.userAgent),R.isWebKit=R.userAgent.indexOf("AppleWebKit")!==-1,R.deg2rad=2*Math.PI/360,R.hasBidiBug=R.isFirefox&&parseInt(R.userAgent.split("Firefox/")[1],10)<4,R.hasTouch=!!R.win.TouchEvent,R.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],R.noop=function(){},R.supportsPassiveEvents=function(){var H=!1;if(!R.isMS){var V=Object.defineProperty({},"passive",{get:function(){H=!0}});R.win.addEventListener&&R.win.removeEventListener&&(R.win.addEventListener("testPassive",R.noop,V),R.win.removeEventListener("testPassive",R.noop,V))}return H}(),R.charts=[],R.dateFormats={},R.seriesTypes={},R.symbolSizes={},R.chartCount=0}(W||(W={})),W}),et(B,"Core/Utilities.js",[B["Core/Globals.js"]],function(W){var R=W.charts,H=W.doc,V=W.win;function $(e,s,n,l){var b=s?"Highcharts error":"Highcharts warning";e===32&&(e=b+": Deprecated member");var T=k(e),D=T?b+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString();if(l!==void 0){var p="";T&&(D+="?"),c(l,function(x,A){p+=`
|
|
100
|
-
- `.concat(A,": ").concat(x),T&&(D+=encodeURI(A)+"="+encodeURI(x))}),D+=p}r(W,"displayError",{chart:n,code:e,message:D,params:l},function(){if(s)throw new Error(D);V.console&&$.messages.indexOf(D)===-1&&console.warn(D)}),$.messages.push(D)}function Z(e,s){return parseInt(e,s||10)}function U(e){return typeof e=="string"}function z(e){var s=Object.prototype.toString.call(e);return s==="[object Array]"||s==="[object Array Iterator]"}function I(e,s){return!(!e||typeof e!="object"||s&&z(e))}function E(e){return I(e)&&typeof e.nodeType=="number"}function M(e){var s=e&&e.constructor;return!(!I(e,!0)||E(e)||!s||!s.name||s.name==="Object")}function k(e){return typeof e=="number"&&!isNaN(e)&&e<1/0&&e>-1/0}function y(e){return e!=null}function h(e,s,n){var l,b=U(s)&&!y(n),T=function(D,p){y(D)?e.setAttribute(p,D):b?(l=e.getAttribute(p))||p!=="class"||(l=e.getAttribute(p+"Name")):e.removeAttribute(p)};return U(s)?T(n,s):c(s,T),l}function u(e,s){var n;for(n in e||(e={}),s)e[n]=s[n];return e}function g(){for(var e=arguments,s=e.length,n=0;n<s;n++){var l=e[n];if(l!=null)return l}}function d(e,s){W.isMS&&!W.svg&&s&&y(s.opacity)&&(s.filter="alpha(opacity=".concat(100*s.opacity,")")),u(e.style,s)}function v(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function w(e,s){return e>1e14?e:parseFloat(e.toPrecision(s||14))}(function(e){e.messages=[]})($||($={})),Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var S,C=Array.prototype.find?function(e,s){return e.find(s)}:function(e,s){var n,l=e.length;for(n=0;n<l;n++)if(s(e[n],n))return e[n]};function c(e,s,n){for(var l in e)Object.hasOwnProperty.call(e,l)&&s.call(n||e[l],e[l],l,e)}function f(e,s,n){function l(x,A){var N=e.removeEventListener||W.removeEventListenerPolyfill;N&&N.call(e,x,A,!1)}function b(x){var A,N;e.nodeName&&(s?(A={})[s]=!0:A=x,c(A,function(_,L){if(x[L])for(N=x[L].length;N--;)l(L,x[L][N].fn)}))}var T=typeof e=="function"&&e.prototype||e;if(Object.hasOwnProperty.call(T,"hcEvents")){var D=T.hcEvents;if(s){var p=D[s]||[];n?(D[s]=p.filter(function(x){return n!==x.fn}),l(s,n)):(b(D),D[s]=[])}else b(D),delete T.hcEvents}}function r(e,s,n,l){var b;if(n=n||{},H.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==W))(b=H.createEvent("Events")).initEvent(s,!0,!0),n=u(b,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(s,n);else if(e.hcEvents){n.target||u(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:s});for(var T=[],D=e,p=!1;D.hcEvents;)Object.hasOwnProperty.call(D,"hcEvents")&&D.hcEvents[s]&&(T.length&&(p=!0),T.unshift.apply(T,D.hcEvents[s])),D=Object.getPrototypeOf(D);p&&T.sort(function(x,A){return x.order-A.order}),T.forEach(function(x){x.fn.call(e,n)===!1&&n.preventDefault()})}l&&!n.defaultPrevented&&l.call(e,n)}c({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,s){W[s]=function(n){var l;return $(32,!1,void 0,((l={})["Highcharts.".concat(s)]="use Array.".concat(e),l)),Array.prototype[e].apply(n,[].slice.call(arguments,1))}});var a,t,i=(a=Math.random().toString(36).substring(2,9)+"-",t=0,function(){return"highcharts-"+(S?"":a)+t++});V.jQuery;var o={addEvent:function(e,s,n,l){l===void 0&&(l={});var b=typeof e=="function"&&e.prototype||e;Object.hasOwnProperty.call(b,"hcEvents")||(b.hcEvents={});var T=b.hcEvents;W.Point&&e instanceof W.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var D=e.addEventListener||W.addEventListenerPolyfill;D&&D.call(e,s,n,!!W.supportsPassiveEvents&&{passive:l.passive===void 0?s.indexOf("touch")!==-1:l.passive,capture:!1}),T[s]||(T[s]=[]);var p={fn:n,order:typeof l.order=="number"?l.order:1/0};return T[s].push(p),T[s].sort(function(x,A){return x.order-A.order}),function(){f(e,s,n)}},arrayMax:function(e){for(var s=e.length,n=e[0];s--;)e[s]>n&&(n=e[s]);return n},arrayMin:function(e){for(var s=e.length,n=e[0];s--;)e[s]<n&&(n=e[s]);return n},attr:h,clamp:function(e,s,n){return e>s?e<n?e:n:s},cleanRecursively:function e(s,n){var l={};return c(s,function(b,T){var D;I(s[T],!0)&&!s.nodeType&&n[T]?(D=e(s[T],n[T]),Object.keys(D).length&&(l[T]=D)):(I(s[T])||s[T]!==n[T]||T in s&&!(T in n))&&(l[T]=s[T])}),l},clearTimeout:function(e){y(e)&&clearTimeout(e)},correctFloat:w,createElement:function(e,s,n,l,b){var T=H.createElement(e);return s&&u(T,s),b&&d(T,{padding:"0",border:"none",margin:"0"}),n&&d(T,n),l&&l.appendChild(T),T},css:d,defined:y,destroyObjectProperties:function(e,s){c(e,function(n,l){n&&n!==s&&n.destroy&&n.destroy(),delete e[l]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,s){for(var n=e.length;n--;)if(e[n]===s){e.splice(n,1);break}},error:$,extend:u,extendClass:function(e,s){var n=function(){};return u(n.prototype=new e,s),n},find:C,fireEvent:r,getMagnitude:v,getNestedProperty:function(e,s){for(var n=e.split(".");n.length&&y(s);){var l=n.shift();if(l===void 0||l==="__proto__")return;var b=s[l];if(!y(b)||typeof b=="function"||typeof b.nodeType=="number"||b===V)return;s=b}return s},getStyle:function e(s,n,l){var b,T=W.getStyle||e;if(n==="width"){var D=Math.min(s.offsetWidth,s.scrollWidth),p=s.getBoundingClientRect&&s.getBoundingClientRect().width;return p<D&&p>=D-1&&(D=Math.floor(p)),Math.max(0,D-(T(s,"padding-left",!0)||0)-(T(s,"padding-right",!0)||0))}if(n==="height")return Math.max(0,Math.min(s.offsetHeight,s.scrollHeight)-(T(s,"padding-top",!0)||0)-(T(s,"padding-bottom",!0)||0));V.getComputedStyle||$(27,!0);var x=V.getComputedStyle(s,void 0);return x&&(b=x.getPropertyValue(n),g(l,n!=="opacity")&&(b=Z(b))),b},inArray:function(e,s,n){return $(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),s.indexOf(e,n)},isArray:z,isClass:M,isDOMElement:E,isFunction:function(e){return typeof e=="function"},isNumber:k,isObject:I,isString:U,keys:function(e){return $(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(e)},merge:function(){var e,s=arguments,n={},l=function(T,D){return typeof T!="object"&&(T={}),c(D,function(p,x){x!=="__proto__"&&x!=="constructor"&&(!I(p,!0)||M(p)||E(p)?T[x]=D[x]:T[x]=l(T[x]||{},p))}),T};s[0]===!0&&(n=s[1],s=Array.prototype.slice.call(s,2));var b=s.length;for(e=0;e<b;e++)n=l(n,s[e]);return n},normalizeTickInterval:function(e,s,n,l,b){var T,D=e,p=e/(n=g(n,v(e)));for(s||(s=b?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],l===!1&&(n===1?s=s.filter(function(x){return x%1==0}):n<=.1&&(s=[1/n]))),T=0;T<s.length&&(D=s[T],!(b&&D*n>=e||!b&&p<=(s[T]+(s[T+1]||s[T]))/2));T++);return w(D*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:c,offset:function(e){var s=H.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(V.pageYOffset||s.scrollTop)-(s.clientTop||0),left:n.left+(V.pageXOffset||s.scrollLeft)-(s.clientLeft||0),width:n.width,height:n.height}},pad:function(e,s,n){return new Array((s||2)+1-String(e).replace("-","").length).join(n||"0")+e},pick:g,pInt:Z,relativeLength:function(e,s,n){return/%$/.test(e)?s*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:f,splat:function(e){return z(e)?e:[e]},stableSort:function(e,s){var n,l,b=e.length;for(l=0;l<b;l++)e[l].safeI=l;for(e.sort(function(T,D){return(n=s(T,D))===0?T.safeI-D.safeI:n}),l=0;l<b;l++)delete e[l].safeI},syncTimeout:function(e,s,n){return s>0?setTimeout(e,s,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:i,useSerialIds:function(e){return S=g(e,S)},wrap:function(e,s,n){var l=e[s];e[s]=function(){var b=arguments,T=this;return n.apply(this,[function(){return l.apply(T,arguments.length?arguments:b)}].concat([].slice.call(arguments)))}}};return o}),et(B,"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(B,"Core/Color/Color.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=R.isNumber,V=R.merge,$=R.pInt;return function(){function Z(U){this.rgba=[NaN,NaN,NaN,NaN],this.input=U;var z=W.Color;return z&&z!==Z?new z(U):this instanceof Z?void this.init(U):new Z(U)}return Z.parse=function(U){return U?new Z(U):Z.None},Z.prototype.init=function(U){var z,I,E,M;if(typeof U=="object"&&U.stops!==void 0)this.stops=U.stops.map(function(h){return new Z(h[1])});else if(typeof U=="string"){if(this.input=U=Z.names[U.toLowerCase()]||U,U.charAt(0)==="#"){var k=U.length,y=parseInt(U.substr(1),16);k===7?I=[(16711680&y)>>16,(65280&y)>>8,255&y,1]:k===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;)(z=(M=Z.parsers[E]).regex.exec(U))&&(I=M.parse(z))}I&&(this.rgba=I)},Z.prototype.get=function(U){var z=this.input,I=this.rgba;if(typeof z=="object"&&this.stops!==void 0){var E=V(z);return E.stops=[].slice.call(E.stops),this.stops.forEach(function(M,k){E.stops[k]=[E.stops[k][0],M.get(U)]}),E}return I&&H(I[0])?U==="rgb"||!U&&I[3]===1?"rgb("+I[0]+","+I[1]+","+I[2]+")":U==="a"?"".concat(I[3]):"rgba("+I.join(",")+")":z},Z.prototype.brighten=function(U){var z=this.rgba;if(this.stops)this.stops.forEach(function(E){E.brighten(U)});else if(H(U)&&U!==0)for(var I=0;I<3;I++)z[I]+=$(255*U),z[I]<0&&(z[I]=0),z[I]>255&&(z[I]=255);return this},Z.prototype.setOpacity=function(U){return this.rgba[3]=U,this},Z.prototype.tweenTo=function(U,z){var I=this.rgba,E=U.rgba;if(!H(I[0])||!H(E[0]))return U.input||"none";var M=E[3]!==1||I[3]!==1;return(M?"rgba(":"rgb(")+Math.round(E[0]+(I[0]-E[0])*(1-z))+","+Math.round(E[1]+(I[1]-E[1])*(1-z))+","+Math.round(E[2]+(I[2]-E[2])*(1-z))+(M?","+(E[3]+(I[3]-E[3])*(1-z)):"")+")"},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(U){return[$(U[1]),$(U[2]),$(U[3]),parseFloat(U[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(U){return[$(U[1]),$(U[2]),$(U[3]),1]}}],Z.None=new Z(""),Z}()}),et(B,"Core/Color/Palettes.js",[],function(){return{colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]}}),et(B,"Core/Time.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.win,V=R.defined,$=R.error,Z=R.extend,U=R.isObject,z=R.merge,I=R.objectEach,E=R.pad,M=R.pick,k=R.splat,y=R.timeUnits,h=W.isSafari&&H.Intl&&H.Intl.DateTimeFormat.prototype.formatRange,u=W.isSafari&&H.Intl&&!H.Intl.DateTimeFormat.prototype.formatRange,g=function(){function d(v){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=H.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(v)}return d.prototype.get=function(v,w){if(this.variableTimezone||this.timezoneOffset){var S=w.getTime(),C=S-this.getTimezoneOffset(w);w.setTime(C);var c=w["getUTC"+v]();return w.setTime(S),c}return this.useUTC?w["getUTC"+v]():w["get"+v]()},d.prototype.set=function(v,w,S){if(this.variableTimezone||this.timezoneOffset){if(v==="Milliseconds"||v==="Seconds"||v==="Minutes"&&this.getTimezoneOffset(w)%36e5==0)return w["setUTC"+v](S);var C=this.getTimezoneOffset(w),c=w.getTime()-C;w.setTime(c),w["setUTC"+v](S);var f=this.getTimezoneOffset(w);return c=w.getTime()+f,w.setTime(c)}return this.useUTC||h&&v==="FullYear"?w["setUTC"+v](S):w["set"+v](S)},d.prototype.update=function(v){v===void 0&&(v={});var w=M(v.useUTC,!0);this.options=v=z(!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)},d.prototype.makeTime=function(v,w,S,C,c,f){var r,a,t;return this.useUTC?(r=this.Date.UTC.apply(0,arguments),r+=a=this.getTimezoneOffset(r),a!==(t=this.getTimezoneOffset(r))?r+=t-a:a-36e5!==this.getTimezoneOffset(r-36e5)||u||(r-=36e5)):r=new this.Date(v,w,M(S,1),M(C,0),M(c,0),M(f,0)).getTime(),r},d.prototype.timezoneOffsetFunction=function(){var v=this,w=this.options,S=w.getTimezoneOffset,C=w.moment||H.moment;if(!this.useUTC)return function(c){return 6e4*new Date(c.toString()).getTimezoneOffset()};if(w.timezone){if(C)return function(c){return 6e4*-C.tz(c,w.timezone).utcOffset()};$(25)}return this.useUTC&&S?function(c){return 6e4*S(c.valueOf())}:function(){return 6e4*(v.timezoneOffset||0)}},d.prototype.dateFormat=function(v,w,S){if(!V(w)||isNaN(w))return W.defaultOptions.lang&&W.defaultOptions.lang.invalidDate||"";v=M(v,"%Y-%m-%d %H:%M:%S");var C=this,c=new this.Date(w),f=this.get("Hours",c),r=this.get("Day",c),a=this.get("Date",c),t=this.get("Month",c),i=this.get("FullYear",c),o=W.defaultOptions.lang,e=o&&o.weekdays,s=o&&o.shortWeekdays,n=Z({a:s?s[r]:e[r].substr(0,3),A:e[r],d:E(a),e:E(a,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",c)),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:E(c.getSeconds()),L:E(Math.floor(w%1e3),3)},W.dateFormats);return I(n,function(l,b){for(;v.indexOf("%"+b)!==-1;)v=v.replace("%"+b,typeof l=="function"?l.call(C,w):l)}),S?v.substr(0,1).toUpperCase()+v.substr(1):v},d.prototype.resolveDTLFormat=function(v){return U(v,!0)?v:{main:(v=k(v))[0],from:v[1],to:v[2]}},d.prototype.getTimeTicks=function(v,w,S,C){var c,f,r,a,t=this,i=t.Date,o=[],e={},s=new i(w),n=v.unitRange,l=v.count||1;if(C=M(C,1),V(w)){t.set("Milliseconds",s,n>=y.second?0:l*Math.floor(t.get("Milliseconds",s)/l)),n>=y.second&&t.set("Seconds",s,n>=y.minute?0:l*Math.floor(t.get("Seconds",s)/l)),n>=y.minute&&t.set("Minutes",s,n>=y.hour?0:l*Math.floor(t.get("Minutes",s)/l)),n>=y.hour&&t.set("Hours",s,n>=y.day?0:l*Math.floor(t.get("Hours",s)/l)),n>=y.day&&t.set("Date",s,n>=y.month?1:Math.max(1,l*Math.floor(t.get("Date",s)/l))),n>=y.month&&(t.set("Month",s,n>=y.year?0:l*Math.floor(t.get("Month",s)/l)),f=t.get("FullYear",s)),n>=y.year&&(f-=f%l,t.set("FullYear",s,f)),n===y.week&&(a=t.get("Day",s),t.set("Date",s,t.get("Date",s)-a+C+(a<C?-7:0))),f=t.get("FullYear",s);var b=t.get("Month",s),T=t.get("Date",s),D=t.get("Hours",s);w=s.getTime(),!t.variableTimezone&&t.useUTC||!V(S)||(r=S-w>4*y.month||t.getTimezoneOffset(w)!==t.getTimezoneOffset(S));var p=s.getTime();for(c=1;p<S;)o.push(p),n===y.year?p=t.makeTime(f+c*l,0):n===y.month?p=t.makeTime(f,b+c*l):!r||n!==y.day&&n!==y.week?r&&n===y.hour&&l>1?p=t.makeTime(f,b,T,D+c*l):p+=n*l:p=t.makeTime(f,b,T+c*l*(n===y.day?1:7)),c++;o.push(p),n<=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:n*l}),o},d.prototype.getDateFormat=function(v,w,S,C){var c=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},a="millisecond",t=a;for(a in y){if(v===y.week&&+this.dateFormat("%w",w)===S&&c.substr(6)===f.substr(6)){a="week";break}if(y[a]>v){a=t;break}if(r[a]&&c.substr(r[a])!==f.substr(r[a]))break;a!=="week"&&(t=a)}return this.resolveDTLFormat(C[a]).main},d}();return g}),et(B,"Core/Defaults.js",[B["Core/Chart/ChartDefaults.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Color/Palettes.js"],B["Core/Time.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=R.parse,z=H.isTouchDevice,I=H.svg,E=Z.merge,M={colors:V.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:W,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:z?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:U("#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"}};M.chart.styledMode=!1;var k=new $(E(M.global,M.time));return{defaultOptions:M,defaultTime:k,getOptions:function(){return M},setOptions:function(y){return E(!0,M,y),(y.time||y.global)&&(H.time?H.time.update(E(M.global,M.time,y.global,y.time)):H.time=k),M}}}),et(B,"Core/Animation/Fx.js",[B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.parse,$=R.win,Z=H.isNumber,U=H.objectEach,z=function(){function I(E,M,k){this.pos=NaN,this.options=M,this.elem=E,this.prop=k}return I.prototype.dSetter=function(){var E=this.paths,M=E&&E[0],k=E&&E[1],y=this.now||0,h=[];if(y!==1&&M&&k)if(M.length===k.length&&y<1)for(var u=0;u<k.length;u++){for(var g=M[u],d=k[u],v=[],w=0;w<d.length;w++){var S=g[w],C=d[w];Z(S)&&Z(C)&&(d[0]!=="A"||w!==4&&w!==5)?v[w]=S+y*(C-S):v[w]=C}h.push(v)}else h=k;else h=this.toD||[];this.elem.attr("d",h,void 0,!0)},I.prototype.update=function(){var E=this.elem,M=this.prop,k=this.now,y=this.options.step;this[M+"Setter"]?this[M+"Setter"]():E.attr?E.element&&E.attr(M,k,null,!0):E.style[M]=k+this.unit,y&&y.call(E,k,this)},I.prototype.run=function(E,M,k){var y=this,h=y.options,u=function(v){return!u.stopped&&y.step(v)},g=$.requestAnimationFrame||function(v){setTimeout(v,13)},d=function(){for(var v=0;v<I.timers.length;v++)I.timers[v]()||I.timers.splice(v--,1);I.timers.length&&g(d)};E!==M||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=E,this.end=M,this.unit=k,this.now=this.start,this.pos=0,u.elem=this.elem,u.prop=this.prop,u()&&I.timers.push(u)===1&&g(d)):(delete h.curAnim[this.prop],h.complete&&Object.keys(h.curAnim).length===0&&h.complete.call(this.elem))},I.prototype.step=function(E){var M,k,y=+new Date,h=this.options,u=this.elem,g=h.complete,d=h.duration,v=h.curAnim;return u.attr&&!u.element?M=!1:E||y>=d+this.startTime?(this.now=this.end,this.pos=1,this.update(),v[this.prop]=!0,k=!0,U(v,function(w){w!==!0&&(k=!1)}),k&&g&&g.call(u),M=!1):(this.pos=h.easing((y-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),M=!0),M},I.prototype.initPath=function(E,M,k){var y,h,u,g,d=E.startX,v=E.endX,w=k.slice(),S=E.isArea,C=S?2:1,c=M&&M.slice();if(!c)return[w,w];function f(a,t){for(;a.length<h;){var i=a[0],o=t[h-a.length];if(o&&i[0]==="M"&&(o[0]==="C"?a[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:a[0]=["L",i[1],i[2]]),a.unshift(i),S){var e=a.pop();a.push(a[a.length-1],e)}}}function r(a,t){for(;a.length<h;){var i=a[Math.floor(a.length/C)-1].slice();if(i[0]==="C"&&(i[1]=i[5],i[2]=i[6]),S){var o=a[Math.floor(a.length/C)].slice();a.splice(a.length/2,0,i,o)}else a.push(i)}}if(d&&v&&v.length){for(u=0;u<d.length;u++){if(d[u]===v[0]){y=u;break}if(d[0]===v[v.length-d.length+u]){y=u,g=!0;break}if(d[d.length-1]===v[v.length-d.length+u]){y=d.length-u;break}}y===void 0&&(c=[])}return c.length&&Z(y)&&(h=w.length+y*C,g?(f(c,w),r(w)):(f(w,c),r(c))),[c,w]},I.prototype.fillSetter=function(){I.prototype.strokeSetter.apply(this,arguments)},I.prototype.strokeSetter=function(){this.elem.attr(this.prop,V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)},I.timers=[],I}();return z}),et(B,"Core/Animation/AnimationUtilities.js",[B["Core/Animation/Fx.js"],B["Core/Utilities.js"]],function(W,R){var H=R.defined,V=R.getStyle,$=R.isArray,Z=R.isNumber,U=R.isObject,z=R.merge,I=R.objectEach,E=R.pick;function M(h){return U(h)?z({duration:500,defer:0},h):{duration:h?500:0,defer:0}}function k(h,u){for(var g=W.timers.length;g--;)W.timers[g].elem!==h||u&&u!==W.timers[g].prop||(W.timers[g].stopped=!0)}var y={animate:function(h,u,g){var d,v,w,S,C="";U(g)||(g={duration:(S=arguments)[2],easing:S[3],complete:S[4]}),Z(g.duration)||(g.duration=400),g.easing=typeof g.easing=="function"?g.easing:Math[g.easing]||Math.easeInOutSine,g.curAnim=z(u),I(u,function(c,f){k(h,f),w=new W(h,g,f),v=void 0,f==="d"&&$(u.d)?(w.paths=w.initPath(h,h.pathArray,u.d),w.toD=u.d,d=0,v=1):h.attr?d=h.attr(f):(d=parseFloat(V(h,f))||0,f!=="opacity"&&(C="px")),v||(v=c),typeof v=="string"&&v.match("px")&&(v=v.replace(/px/g,"")),w.run(d,v,C)})},animObject:M,getDeferredAnimation:function(h,u,g){var d=M(u),v=g?[g]:h.series,w=0,S=0;return v.forEach(function(C){var c=M(C.options.animation);w=u&&H(u.defer)?d.defer:Math.max(w,c.duration+c.defer),S=Math.min(d.duration,c.duration)}),h.renderer.forExport&&(w=0),{defer:Math.max(0,w-S),duration:Math.min(w,S)}},setAnimation:function(h,u){u.renderer.globalAnimation=E(h,u.options.chart.animation,!0)},stop:k};return y}),et(B,"Core/Renderer/HTML/AST.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.SVG_NS,V=W.win,$=R.attr,Z=R.createElement,U=R.css,z=R.error,I=R.isFunction,E=R.isString,M=R.objectEach,k=R.splat,y=V.trustedTypes,h=y&&I(y.createPolicy)&&y.createPolicy("highcharts",{createHTML:function(d){return d}}),u=h?h.createHTML(""):"",g=function(){try{return!!new DOMParser().parseFromString(u,"text/html")}catch(d){return!1}}();return function(){function d(v){this.nodes=typeof v=="string"?this.parseMarkup(v):v}return d.filterUserAttributes=function(v){return M(v,function(w,S){var C=!0;d.allowedAttributes.indexOf(S)===-1&&(C=!1),["background","dynsrc","href","lowsrc","src"].indexOf(S)!==-1&&(C=E(w)&&d.allowedReferences.some(function(c){return w.indexOf(c)===0})),C||(z(33,!1,void 0,{"Invalid attribute in config":"".concat(S)}),delete v[S]),E(w)&&v[S]&&(v[S]=w.replace(/</g,"<"))}),v},d.parseStyle=function(v){return v.split(";").reduce(function(w,S){var C=S.split(":").map(function(f){return f.trim()}),c=C.shift();return c&&C.length&&(w[c.replace(/-([a-z])/g,function(f){return f[1].toUpperCase()})]=C.join(":")),w},{})},d.setElementHTML=function(v,w){v.innerHTML=d.emptyHTML,w&&new d(w).addToDOM(v)},d.prototype.addToDOM=function(v){return function w(S,C){var c;return k(S).forEach(function(f){var r,a=f.tagName,t=f.textContent?W.doc.createTextNode(f.textContent):void 0,i=d.bypassHTMLFiltering;if(a)if(a==="#text")r=t;else if(d.allowedTags.indexOf(a)!==-1||i){var o=a==="svg"?H:C.namespaceURI||H,e=W.doc.createElementNS(o,a),s=f.attributes||{};M(f,function(n,l){l!=="tagName"&&l!=="attributes"&&l!=="children"&&l!=="style"&&l!=="textContent"&&(s[l]=n)}),$(e,i?s:d.filterUserAttributes(s)),f.style&&U(e,f.style),t&&e.appendChild(t),w(f.children||[],e),r=e}else z(33,!1,void 0,{"Invalid tagName in config":a});r&&C.appendChild(r),c=r}),c}(this.nodes,v)},d.prototype.parseMarkup=function(v){var w,S=[];if(v=v.trim().replace(/ style=(["'])/g," data-style=$1"),g)w=new DOMParser().parseFromString(h?h.createHTML(v):v,"text/html");else{var C=Z("div");C.innerHTML=v,w={body:C}}var c=function(f,r){var a=f.nodeName.toLowerCase(),t={tagName:a};a==="#text"&&(t.textContent=f.textContent||"");var i=f.attributes;if(i){var o={};[].forEach.call(i,function(s){s.name==="data-style"?t.style=d.parseStyle(s.value):o[s.name]=s.value}),t.attributes=o}if(f.childNodes.length){var e=[];[].forEach.call(f.childNodes,function(s){c(s,e)}),e.length&&(t.children=e)}r.push(t)};return[].forEach.call(w.body.childNodes,function(f){return c(f,S)}),S},d.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"],d.allowedReferences=["https://","http://","mailto:","/","../","./","#"],d.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"],d.emptyHTML=u,d.bypassHTMLFiltering=!1,d}()}),et(B,"Core/FormatUtilities.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R){var H=W.defaultOptions,V=W.defaultTime,$=R.getNestedProperty,Z=R.isNumber,U=R.pick,z=R.pInt;function I(E,M,k,y){var h,u;E=+E||0,M=+M;var g=H.lang,d=(E.toString().split(".")[1]||"").split("e")[0].length,v=E.toString().split("e"),w=M;M===-1?M=Math.min(d,20):Z(M)?M&&v[1]&&v[1]<0&&((u=M+ +v[1])>=0?(v[0]=(+v[0]).toExponential(u).split("e")[0],M=u):(v[0]=v[0].split(".")[0]||0,E=M<20?(v[0]*Math.pow(10,v[1])).toFixed(M):0,v[1]=0)):M=2;var S=(Math.abs(v[1]?v[0]:E)+Math.pow(10,-Math.max(M,d)-1)).toFixed(M),C=String(z(S)),c=C.length>3?C.length%3:0;return k=U(k,g.decimalPoint),y=U(y,g.thousandsSep),h=E<0?"-":"",h+=c?C.substr(0,c)+y:"",+v[1]<0&&!w?h="0":h+=C.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+y),M&&(h+=k+S.slice(-M)),v[1]&&+h!=0&&(h+="e"+v[1]),h}return{dateFormat:function(E,M,k){return V.dateFormat(E,M,k)},format:function(E,M,k){for(var y,h,u,g,d="{",v=!1,w=/f$/,S=/\.([0-9])/,C=H.lang,c=k&&k.time||V,f=k&&k.numberFormatter||I,r=[];E&&(g=E.indexOf(d))!==-1;){if(y=E.slice(0,g),v){if(h=y.split(":"),u=$(h.shift()||"",M),h.length&&typeof u=="number")if(y=h.join(":"),w.test(y)){var a=parseInt((y.match(S)||["","-1"])[1],10);u!==null&&(u=f(u,a,C.decimalPoint,y.indexOf(",")>-1?C.thousandsSep:""))}else u=c.dateFormat(y,u);r.push(u)}else r.push(y);E=E.slice(g+1),d=(v=!v)?"}":"{"}return r.push(E),r.join("")},numberFormat:I}}),et(B,"Core/Renderer/RendererUtilities.js",[B["Core/Utilities.js"]],function(W){var R,H=W.clamp,V=W.pick,$=W.stableSort;return function(Z){Z.distribute=function U(z,I,E){var M,k,y,h=z,u=h.reducedLen||I,g=function(S,C){return S.target-C.target},d=!0,v=[],w=0;for(M=z.length;M--;)w+=z[M].size;if(w>u){for($(z,function(S,C){return(C.rank||0)-(S.rank||0)}),M=0,w=0;w<=u;)w+=z[M].size,M++;v=z.splice(M-1,z.length)}for($(z,g),z=z.map(function(S){return{size:S.size,targets:[S.target],align:V(S.align,.5)}});d;){for(M=z.length;M--;)k=z[M],y=(Math.min.apply(0,k.targets)+Math.max.apply(0,k.targets))/2,k.pos=H(y-k.size*k.align,0,I-k.size);for(M=z.length,d=!1;M--;)M>0&&z[M-1].pos+z[M-1].size>z[M].pos&&(z[M-1].size+=z[M].size,z[M-1].targets=z[M-1].targets.concat(z[M].targets),z[M-1].align=.5,z[M-1].pos+z[M-1].size>I&&(z[M-1].pos=I-z[M-1].size),z.splice(M,1),d=!0)}return h.push.apply(h,v),M=0,z.some(function(S){var C=0;return(S.targets||[]).some(function(){return h[M].pos=S.pos+C,E!==void 0&&Math.abs(h[M].pos-h[M].target)>E?(h.slice(0,M+1).forEach(function(c){return delete c.pos}),h.reducedLen=(h.reducedLen||I)-.1*I,h.reducedLen>.1*I&&U(h,I,E),!0):(C+=h[M].size,M++,!1)})}),$(h,g),h}}(R||(R={})),R}),et(B,"Core/Renderer/SVG/SVGElement.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.animate,Z=W.animObject,U=W.stop,z=H.deg2rad,I=H.doc,E=H.svg,M=H.SVG_NS,k=H.win,y=V.addEvent,h=V.attr,u=V.createElement,g=V.css,d=V.defined,v=V.erase,w=V.extend,S=V.fireEvent,C=V.isArray,c=V.isFunction,f=V.isString,r=V.merge,a=V.objectEach,t=V.pick,i=V.pInt,o=V.syncTimeout,e=V.uniqueKey,s=function(){function n(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=M,this.symbolCustomAttribs=["x","y","width","height","r","start","end","innerR","anchorX","anchorY","rounded"]}return n.prototype._defaultGetter=function(l){var b=t(this[l+"Value"],this[l],this.element?this.element.getAttribute(l):null,0);return/^[\-0-9\.]+$/.test(b)&&(b=parseFloat(b)),b},n.prototype._defaultSetter=function(l,b,T){T.setAttribute(b,l)},n.prototype.add=function(l){var b,T=this.renderer,D=this.element;return l&&(this.parentGroup=l),this.textStr!==void 0&&this.element.nodeName==="text"&&T.buildText(this),this.added=!0,(!l||l.handleZ||this.zIndex)&&(b=this.zIndexSetter()),b||(l?l.element:T.box).appendChild(D),this.onAdd&&this.onAdd(),this},n.prototype.addClass=function(l,b){var T=b?"":this.attr("class")||"";return(l=(l||"").split(/ /g).reduce(function(D,p){return T.indexOf(p)===-1&&D.push(p),D},T?[T]:[]).join(" "))!==T&&this.attr("class",l),this},n.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},n.prototype.align=function(l,b,T){var D,p,x,A,N,_={},L=this.renderer,O=L.alignedObjects;l?(this.alignOptions=l,this.alignByTranslate=b,T&&!f(T)||(this.alignTo=x=T||"renderer",v(O,this),O.push(this),T=void 0)):(l=this.alignOptions,b=this.alignByTranslate,x=this.alignTo),T=t(T,L[x],x==="scrollablePlotBox"?L.plotBox:void 0,L);var j=l.align,Y=l.verticalAlign;return D=(T.x||0)+(l.x||0),p=(T.y||0)+(l.y||0),j==="right"?A=1:j==="center"&&(A=2),A&&(D+=(T.width-(l.width||0))/A),_[b?"translateX":"x"]=Math.round(D),Y==="bottom"?N=1:Y==="middle"&&(N=2),N&&(p+=(T.height-(l.height||0))/N),_[b?"translateY":"y"]=Math.round(p),this[this.placed?"animate":"attr"](_),this.placed=!0,this.alignAttr=_,this},n.prototype.alignSetter=function(l){var b={left:"start",center:"middle",right:"end"};b[l]&&(this.alignValue=l,this.element.setAttribute("text-anchor",b[l]))},n.prototype.animate=function(l,b,T){var D=this,p=Z(t(b,this.renderer.globalAnimation,!0)),x=p.defer;return t(I.hidden,I.msHidden,I.webkitHidden,!1)&&(p.duration=0),p.duration!==0?(T&&(p.complete=T),o(function(){D.element&&$(D,l,p)},x)):(this.attr(l,void 0,T||p.complete),a(l,function(A,N){p.step&&p.step.call(this,A,{prop:N,pos:1,elem:this})},this)),this},n.prototype.applyTextOutline=function(l){var b=this.element;l.indexOf("contrast")!==-1&&(l=l.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));var T=l.split(" "),D=T[T.length-1],p=T[0];if(p&&p!=="none"&&H.svg){this.fakeTS=!0,p=p.replace(/(^[\d\.]+)(.*?)$/g,function(L,O,j){return 2*Number(O)+j}),this.removeTextOutline();var x=I.createElementNS(M,"tspan");h(x,{class:"highcharts-text-outline",fill:D,stroke:D,"stroke-width":p,"stroke-linejoin":"round"});var A=b.querySelector("textPath")||b;[].forEach.call(A.childNodes,function(L){var O=L.cloneNode(!0);O.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(j){return O.removeAttribute(j)}),x.appendChild(O)});var N=0;[].forEach.call(A.querySelectorAll("text tspan"),function(L){N+=Number(L.getAttribute("dy"))});var _=I.createElementNS(M,"tspan");_.textContent="",h(_,{x:Number(b.getAttribute("x")),dy:-N}),x.appendChild(_),A.insertBefore(x,A.firstChild)}},n.prototype.attr=function(l,b,T,D){var p,x,A,N,_=this.element,L=this.symbolCustomAttribs,O=this;return typeof l=="string"&&b!==void 0&&(p=l,(l={})[p]=b),typeof l=="string"?O=(this[l+"Getter"]||this._defaultGetter).call(this,l,_):(a(l,function(j,Y){A=!1,D||U(this,Y),this.symbolName&&L.indexOf(Y)!==-1&&(x||(this.symbolAttr(l),x=!0),A=!0),!this.rotation||Y!=="x"&&Y!=="y"||(this.doTransform=!0),A||((N=this[Y+"Setter"]||this._defaultSetter).call(this,j,Y,_),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(Y)&&this.updateShadows(Y,j,N))},this),this.afterSetters()),T&&T.call(this),O},n.prototype.clip=function(l){return this.attr("clip-path",l?"url("+this.renderer.url+"#"+l.id+")":"none")},n.prototype.crisp=function(l,b){var T=this;b=b||l.strokeWidth||0;var D=Math.round(b)%2/2;return l.x=Math.floor(l.x||T.x||0)+D,l.y=Math.floor(l.y||T.y||0)+D,l.width=Math.floor((l.width||T.width||0)-2*D),l.height=Math.floor((l.height||T.height||0)-2*D),d(l.strokeWidth)&&(l.strokeWidth=b),l},n.prototype.complexColor=function(l,b,T){var D,p,x,A,N,_,L,O,j,Y,X,G=this.renderer,q=[];S(this.renderer,"complexColor",{args:arguments},function(){if(l.radialGradient?p="radialGradient":l.linearGradient&&(p="linearGradient"),p){if(x=l[p],N=G.gradients,_=l.stops,j=T.radialReference,C(x)&&(l[p]=x={x1:x[0],y1:x[1],x2:x[2],y2:x[3],gradientUnits:"userSpaceOnUse"}),p==="radialGradient"&&j&&!d(x.gradientUnits)&&(A=x,x=r(x,G.getRadialAttr(j,A),{gradientUnits:"userSpaceOnUse"})),a(x,function(J,rt){rt!=="id"&&q.push(rt,J)}),a(_,function(J){q.push(J)}),q=q.join(","),N[q])Y=N[q].attr("id");else{x.id=Y=e();var Q=N[q]=G.createElement(p).attr(x).add(G.defs);Q.radAttr=A,Q.stops=[],_.forEach(function(J){J[1].indexOf("rgba")===0?(D=R.parse(J[1]),L=D.get("rgb"),O=D.get("a")):(L=J[1],O=1);var rt=G.createElement("stop").attr({offset:J[0],"stop-color":L,"stop-opacity":O}).add(Q);Q.stops.push(rt)})}X="url("+G.url+"#"+Y+")",T.setAttribute(b,X),T.gradient=q,l.toString=function(){return X}}})},n.prototype.css=function(l){var b,T=this.styles,D={},p=this.element,x=!T;if(l.color&&(l.fill=l.color),T&&a(l,function(N,_){T&&T[_]!==N&&(D[_]=N,x=!0)}),x){T&&(l=w(T,D)),l.width===null||l.width==="auto"?delete this.textWidth:p.nodeName.toLowerCase()==="text"&&l.width&&(b=this.textWidth=i(l.width)),this.styles=l,b&&!E&&this.renderer.forExport&&delete l.width;var A=r(l);p.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(N){return A&&delete A[N]}),g(p,A),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),l.textOutline&&this.applyTextOutline(l.textOutline))}return this},n.prototype.dashstyleSetter=function(l){var b,T=this["stroke-width"];if(T==="inherit"&&(T=1),l=l&&l.toLowerCase()){var D=l.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=D.length;b--;)D[b]=""+i(D[b])*t(T,NaN);l=D.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",l)}},n.prototype.destroy=function(){var l,b,T=this,D=T.element||{},p=T.renderer,x=D.ownerSVGElement,A=p.isSVG&&D.nodeName==="SPAN"&&T.parentGroup||void 0;if(D.onclick=D.onmouseout=D.onmouseover=D.onmousemove=D.point=null,U(T),T.clipPath&&x){var N=T.clipPath;[].forEach.call(x.querySelectorAll("[clip-path],[CLIP-PATH]"),function(_){_.getAttribute("clip-path").indexOf(N.element.id)>-1&&_.removeAttribute("clip-path")}),T.clipPath=N.destroy()}if(T.stops){for(b=0;b<T.stops.length;b++)T.stops[b].destroy();T.stops.length=0,T.stops=void 0}for(T.safeRemoveChild(D),p.styledMode||T.destroyShadows();A&&A.div&&A.div.childNodes.length===0;)l=A.parentGroup,T.safeRemoveChild(A.div),delete A.div,A=l;T.alignTo&&v(p.alignedObjects,T),a(T,function(_,L){T[L]&&T[L].parentGroup===T&&T[L].destroy&&T[L].destroy(),delete T[L]})},n.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(l){this.safeRemoveChild(l)},this),this.shadows=void 0},n.prototype.dSetter=function(l,b,T){C(l)&&(typeof l[0]=="string"&&(l=this.renderer.pathToSegments(l)),this.pathArray=l,l=l.reduce(function(D,p,x){return p&&p.join?(x?D+" ":"")+p.join(" "):(p||"").toString()},"")),/(NaN| {2}|^$)/.test(l)&&(l="M 0 0"),this[b]!==l&&(T.setAttribute(b,l),this[b]=l)},n.prototype.fadeOut=function(l){var b=this;b.animate({opacity:0},{duration:t(l,150),complete:function(){b.hide()}})},n.prototype.fillSetter=function(l,b,T){typeof l=="string"?T.setAttribute(b,l):l&&this.complexColor(l,b,T)},n.prototype.getBBox=function(l,b){var T,D,p,x,A,N=this,_=N.alignValue,L=N.element,O=N.renderer,j=N.styles,Y=N.textStr,X=O.cache,G=O.cacheKeys,q=L.namespaceURI===N.SVG_NS,Q=t(b,N.rotation,0),J=O.styledMode?L&&n.prototype.getStyle.call(L,"font-size"):j&&j.fontSize;if(d(Y)&&((A=Y.toString()).indexOf("<")===-1&&(A=A.replace(/[0-9]/g,"0")),A+=["",Q,J,N.textWidth,_,j&&j.textOverflow,j&&j.fontWeight].join(",")),A&&!l&&(T=X[A]),!T){if(q||O.forExport){try{x=this.fakeTS&&function(Tt){var Lt=L.querySelector(".highcharts-text-outline");Lt&&g(Lt,{display:Tt})},c(x)&&x("none"),T=L.getBBox?w({},L.getBBox()):{width:L.offsetWidth,height:L.offsetHeight,x:0,y:0},c(x)&&x("")}catch(Tt){}(!T||T.width<0)&&(T={x:0,y:0,width:0,height:0})}else T=N.htmlGetBBox();if(O.isSVG&&(D=T.width,p=T.height,q&&(T.height=p={"11px,17":14,"13px,20":16}[""+(J||"")+",".concat(Math.round(p))]||p),Q)){var rt=Number(L.getAttribute("y")||0)-T.y,lt={right:1,center:.5}[_||0]||0,gt=Q*z,mt=(Q-90)*z,bt=D*Math.cos(gt),yt=D*Math.sin(gt),ht=Math.cos(mt),it=Math.sin(mt),st=T.x+lt*(D-bt)+rt*ht,dt=st+bt,vt=dt-p*ht,Ct=vt-bt,xt=T.y+rt-lt*yt+rt*it,wt=xt+yt,Mt=wt-p*it,St=Mt-yt;T.x=Math.min(st,dt,vt,Ct),T.y=Math.min(xt,wt,Mt,St),T.width=Math.max(st,dt,vt,Ct)-T.x,T.height=Math.max(xt,wt,Mt,St)-T.y}if(A&&(Y===""||T.height>0)){for(;G.length>250;)delete X[G.shift()];X[A]||G.push(A),X[A]=T}}return T},n.prototype.getStyle=function(l){return k.getComputedStyle(this.element||this,"").getPropertyValue(l)},n.prototype.hasClass=function(l){return(""+this.attr("class")).split(" ").indexOf(l)!==-1},n.prototype.hide=function(){return this.attr({visibility:"hidden"})},n.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},n.prototype.init=function(l,b){this.element=b==="span"?u(b):I.createElementNS(this.SVG_NS,b),this.renderer=l,S(this,"afterInit")},n.prototype.on=function(l,b){var T=this.onEvents;return T[l]&&T[l](),T[l]=y(this.element,l,b),this},n.prototype.opacitySetter=function(l,b,T){var D=Number(Number(l).toFixed(3));this.opacity=D,T.setAttribute(b,D)},n.prototype.removeClass=function(l){return this.attr("class",(""+this.attr("class")).replace(f(l)?new RegExp("(^| )".concat(l,"( |$)")):l," ").replace(/ +/g," ").trim())},n.prototype.removeTextOutline=function(){var l=this.element.querySelector("tspan.highcharts-text-outline");l&&this.safeRemoveChild(l)},n.prototype.safeRemoveChild=function(l){var b=l.parentNode;b&&b.removeChild(l)},n.prototype.setRadialReference=function(l){var b=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=l,b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(l,b.radAttr)),this},n.prototype.setTextPath=function(l,b){var T=this;b=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},b);var D=this.renderer.url,p=this.text||this,x=p.textPath,A=b.attributes,N=b.enabled;if(l=l||x&&x.path,x&&x.undo(),l&&N){var _=y(p,"afterModifyTree",function(L){if(l&&N){var O=l.attr("id");O||l.attr("id",O=e());var j={x:0,y:0};d(A.dx)&&(j.dx=A.dx,delete A.dx),d(A.dy)&&(j.dy=A.dy,delete A.dy),p.attr(j),T.attr({transform:""}),T.box&&(T.box=T.box.destroy());var Y=L.nodes.slice(0);L.nodes.length=0,L.nodes[0]={tagName:"textPath",attributes:w(A,{"text-anchor":A.textAnchor,href:""+D+"#".concat(O)}),children:Y}}});p.textPath={path:l,undo:_}}else p.attr({dx:0,dy:0}),delete p.textPath;return this.added&&(p.textCache="",this.renderer.buildText(p)),this},n.prototype.shadow=function(l,b,T){var D,p,x,A,N,_,L=[],O=this,j=O.element,Y=O.oldShadowOptions,X=O.parentGroup,G=X&&X.rotation===90,q={color:"#000000",offsetX:G?-1:1,offsetY:G?-1:1,opacity:.15,width:3},Q=!1;if(l===!0?_=q:typeof l=="object"&&(_=w(q,l)),_&&(_&&Y&&a(_,function(J,rt){J!==Y[rt]&&(Q=!0)}),Q&&this.destroyShadows(),this.oldShadowOptions=_),_){if(!this.shadows){for(A=_.opacity/_.width,N=G?"translate(".concat(_.offsetY,", ").concat(_.offsetX,")"):"translate(".concat(_.offsetX,", ").concat(_.offsetY,")"),D=1;D<=_.width;D++)p=j.cloneNode(!1),x=2*_.width+1-2*D,h(p,{stroke:l.color||"#000000","stroke-opacity":A*D,"stroke-width":x,transform:N,fill:"none"}),p.setAttribute("class",(p.getAttribute("class")||"")+" highcharts-shadow"),T&&(h(p,"height",Math.max(h(p,"height")-x,0)),p.cutHeight=x),b?b.element.appendChild(p):j.parentNode&&j.parentNode.insertBefore(p,j),L.push(p);this.shadows=L}}else this.destroyShadows();return this},n.prototype.show=function(l){return l===void 0&&(l=!0),this.attr({visibility:l?"inherit":"visible"})},n.prototype["stroke-widthSetter"]=function(l,b,T){this[b]=l,T.setAttribute(b,l)},n.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var l,b=this.getStyle("stroke-width"),T=0;return b.indexOf("px")===b.length-2?T=i(b):b!==""&&(l=I.createElementNS(M,"rect"),h(l,{width:b,"stroke-width":0}),this.element.parentNode.appendChild(l),T=l.getBBox().width,l.parentNode.removeChild(l)),T},n.prototype.symbolAttr=function(l){var b=this;["x","y","r","start","end","width","height","innerR","anchorX","anchorY","clockwise"].forEach(function(T){b[T]=t(l[T],b[T])}),b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},n.prototype.textSetter=function(l){l!==this.textStr&&(delete this.textPxLength,this.textStr=l,this.added&&this.renderer.buildText(this))},n.prototype.titleSetter=function(l){var b=this.element,T=b.getElementsByTagName("title")[0]||I.createElementNS(this.SVG_NS,"title");b.insertBefore?b.insertBefore(T,b.firstChild):b.appendChild(T),T.textContent=String(t(l,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},n.prototype.toFront=function(){var l=this.element;return l.parentNode.appendChild(l),this},n.prototype.translate=function(l,b){return this.attr({translateX:l,translateY:b})},n.prototype.updateShadows=function(l,b,T){var D=this.shadows;if(D)for(var p=D.length;p--;)T.call(D[p],l==="height"?Math.max(b-(D[p].cutHeight||0),0):l==="d"?this.d:b,l,D[p])},n.prototype.updateTransform=function(){var l=this,b=l.element,T=l.matrix,D=l.rotation,p=D===void 0?0:D,x=l.scaleX,A=l.scaleY,N=l.translateX,_=N===void 0?0:N,L=l.translateY,O=["translate("+_+","+(L===void 0?0:L)+")"];d(T)&&O.push("matrix("+T.join(",")+")"),p&&O.push("rotate("+p+" "+t(this.rotationOriginX,b.getAttribute("x"),0)+" "+t(this.rotationOriginY,b.getAttribute("y")||0)+")"),(d(x)||d(A))&&O.push("scale("+t(x,1)+" "+t(A,1)+")"),O.length&&!(this.text||this).textPath&&b.setAttribute("transform",O.join(" "))},n.prototype.visibilitySetter=function(l,b,T){l==="inherit"?T.removeAttribute(b):this[b]!==l&&T.setAttribute(b,l),this[b]=l},n.prototype.xGetter=function(l){return this.element.nodeName==="circle"&&(l==="x"?l="cx":l==="y"&&(l="cy")),this._defaultGetter(l)},n.prototype.zIndexSetter=function(l,b){var T,D,p,x,A,N=this.renderer,_=this.parentGroup,L=(_||N).element||N.box,O=this.element,j=L===N.box,Y=!1,X=this.added;if(d(l)?(O.setAttribute("data-z-index",l),l=+l,this[b]===l&&(X=!1)):d(this[b])&&O.removeAttribute("data-z-index"),this[b]=l,X){for((l=this.zIndex)&&_&&(_.handleZ=!0),A=(T=L.childNodes).length-1;A>=0&&!Y;A--)p=(D=T[A]).getAttribute("data-z-index"),x=!d(p),D!==O&&(l<0&&x&&!j&&!A?(L.insertBefore(O,T[A]),Y=!0):(i(p)<=l||x&&(!d(l)||l>=0))&&(L.insertBefore(O,T[A+1]||null),Y=!0));Y||(L.insertBefore(O,T[j?3:0]||null),Y=!0)}return Y},n}();return s.prototype.strokeSetter=s.prototype.fillSetter,s.prototype.yGetter=s.prototype.xGetter,s.prototype.matrixSetter=s.prototype.rotationOriginXSetter=s.prototype.rotationOriginYSetter=s.prototype.rotationSetter=s.prototype.scaleXSetter=s.prototype.scaleYSetter=s.prototype.translateXSetter=s.prototype.translateYSetter=s.prototype.verticalAlignSetter=function(n,l){this[l]=n,this.doTransform=!0},s}),et(B,"Core/Renderer/RendererRegistry.js",[B["Core/Globals.js"]],function(W){var R;return function(H){var V;H.rendererTypes={},H.getRendererType=function($){return $===void 0&&($=V),H.rendererTypes[$]||H.rendererTypes[V]},H.registerRendererType=function($,Z,U){H.rendererTypes[$]=Z,V&&!U||(V=$,W.Renderer=Z)}}(R||(R={})),R}),et(B,"Core/Renderer/SVG/SVGLabel.js",[B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,k){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},H(M,k)},function(M,k){function y(){this.constructor=M}H(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}),$=R.defined,Z=R.extend,U=R.isNumber,z=R.merge,I=R.pick,E=R.removeEvent;return function(M){function k(y,h,u,g,d,v,w,S,C,c){var f,r=M.call(this)||this;return r.paddingLeftSetter=r.paddingSetter,r.paddingRightSetter=r.paddingSetter,r.init(y,"g"),r.textStr=h,r.x=u,r.y=g,r.anchorX=v,r.anchorY=w,r.baseline=C,r.className=c,r.addClass(c==="button"?"highcharts-no-tooltip":"highcharts-label"),c&&r.addClass("highcharts-"+c),r.text=y.text(void 0,0,0,S).attr({zIndex:1}),typeof d=="string"&&((f=/^url\((.*?)\)$/.test(d))||r.renderer.symbols[d])&&(r.symbolKey=d),r.bBox=k.emptyBBox,r.padding=3,r.baselineOffset=0,r.needsBox=y.styledMode||f,r.deferredAttr={},r.alignFactor=0,r}return V(k,M),k.prototype.alignSetter=function(y){var h={left:0,center:.5,right:1}[y];h!==this.alignFactor&&(this.alignFactor=h,this.bBox&&U(this.xSetting)&&this.attr({x:this.xSetting}))},k.prototype.anchorXSetter=function(y,h){this.anchorX=y,this.boxAttr(h,Math.round(y)-this.getCrispAdjust()-this.xSetting)},k.prototype.anchorYSetter=function(y,h){this.anchorY=y,this.boxAttr(h,y-this.ySetting)},k.prototype.boxAttr=function(y,h){this.box?this.box.attr(y,h):this.deferredAttr[y]=h},k.prototype.css=function(y){if(y){var h={};y=z(y),k.textProps.forEach(function(u){y[u]!==void 0&&(h[u]=y[u],delete y[u])}),this.text.css(h),"fontSize"in h||"fontWeight"in h?this.updateTextPadding():("width"in h||"textOverflow"in h)&&this.updateBoxSize()}return W.prototype.css.call(this,y)},k.prototype.destroy=function(){E(this.element,"mouseenter"),E(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),W.prototype.destroy.call(this)},k.prototype.fillSetter=function(y,h){y&&(this.needsBox=!0),this.fill=y,this.boxAttr(h,y)},k.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var y=this.padding,h=I(this.paddingLeft,y);return{width:this.width,height:this.height,x:this.bBox.x-h,y:this.bBox.y-y}},k.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},k.prototype.heightSetter=function(y){this.heightSetting=y},k.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})},k.prototype.paddingSetter=function(y,h){U(y)?y!==this[h]&&(this[h]=y,this.updateTextPadding()):this[h]=void 0},k.prototype.rSetter=function(y,h){this.boxAttr(h,y)},k.prototype.shadow=function(y){return y&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(y)),this},k.prototype.strokeSetter=function(y,h){this.stroke=y,this.boxAttr(h,y)},k.prototype["stroke-widthSetter"]=function(y,h){y&&(this.needsBox=!0),this["stroke-width"]=y,this.boxAttr(h,y)},k.prototype["text-alignSetter"]=function(y){this.textAlign=y},k.prototype.textSetter=function(y){y!==void 0&&this.text.attr({text:y}),this.updateTextPadding()},k.prototype.updateBoxSize=function(){var y,h=this.text,u=h.element.style,g={},d=this.padding,v=this.bBox=U(this.widthSetting)&&U(this.heightSetting)&&!this.textAlign||!$(h.textStr)?k.emptyBBox:h.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||v.height||0)+2*d;var w=this.renderer.fontMetrics(u&&u.fontSize,h);if(this.baselineOffset=d+Math.min((this.text.firstLineMetrics||w).b,v.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-w.h)/2),this.needsBox&&!h.textPath){if(!this.box){var S=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();S.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),S.add(this)}y=this.getCrispAdjust(),g.x=y,g.y=(this.baseline?-this.baselineOffset:0)+y,g.width=Math.round(this.width),g.height=Math.round(this.height),this.box.attr(Z(g,this.deferredAttr)),this.deferredAttr={}}},k.prototype.updateTextPadding=function(){var y=this.text;if(!y.textPath){this.updateBoxSize();var h=this.baseline?0:this.baselineOffset,u=I(this.paddingLeft,this.padding);$(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(u+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),u===y.x&&h===y.y||(y.attr("x",u),y.hasBoxWidthChanged&&(this.bBox=y.getBBox(!0)),h!==void 0&&y.attr("y",h)),y.x=u,y.y=h}},k.prototype.widthSetter=function(y){this.widthSetting=U(y)?y:void 0},k.prototype.getPaddedWidth=function(){var y=this.padding,h=I(this.paddingLeft,y),u=I(this.paddingRight,y);return(this.widthSetting||this.bBox.width||0)+h+u},k.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)},k.prototype.ySetter=function(y){this.ySetting=this.y=Math.round(y),this.attr("translateY",this.ySetting)},k.emptyBBox={width:0,height:0,x:0,y:0},k.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","width"],k}(W)}),et(B,"Core/Renderer/SVG/Symbols.js",[B["Core/Utilities.js"]],function(W){var R=W.defined,H=W.isNumber,V=W.pick;function $(z,I,E,M,k){var y=[];if(k){var h=k.start||0,u=V(k.r,E),g=V(k.r,M||E),d=.001,v=Math.abs((k.end||0)-h-2*Math.PI)<d,w=(k.end||0)-d,S=k.innerR,C=V(k.open,v),c=Math.cos(h),f=Math.sin(h),r=Math.cos(w),a=Math.sin(w),t=V(k.longArc,w-h-Math.PI<d?0:1);y.push(["M",z+u*c,I+g*f],["A",u,g,0,t,V(k.clockwise,1),z+u*r,I+g*a]),R(S)&&y.push(C?["M",z+S*r,I+S*a]:["L",z+S*r,I+S*a],["A",S,S,0,t,R(k.clockwise)?1-k.clockwise:0,z+S*c,I+S*f]),C||y.push(["Z"])}return y}function Z(z,I,E,M,k){return k&&k.r?U(z,I,E,M,k):[["M",z,I],["L",z+E,I],["L",z+E,I+M],["L",z,I+M],["Z"]]}function U(z,I,E,M,k){var y=k&&k.r||0;return[["M",z+y,I],["L",z+E-y,I],["C",z+E,I,z+E,I,z+E,I+y],["L",z+E,I+M-y],["C",z+E,I+M,z+E,I+M,z+E-y,I+M],["L",z+y,I+M],["C",z,I+M,z,I+M,z,I+M-y],["L",z,I+y],["C",z,I,z,I,z+y,I]]}return{arc:$,callout:function(z,I,E,M,k){var y=Math.min(k&&k.r||0,E,M),h=y+6,u=k&&k.anchorX,g=k&&k.anchorY||0,d=U(z,I,E,M,{r:y});return H(u)&&(z+u>=E?g>I+h&&g<I+M-h?d.splice(3,1,["L",z+E,g-6],["L",z+E+6,g],["L",z+E,g+6],["L",z+E,I+M-y]):d.splice(3,1,["L",z+E,M/2],["L",u,g],["L",z+E,M/2],["L",z+E,I+M-y]):z+u<=0?g>I+h&&g<I+M-h?d.splice(7,1,["L",z,g+6],["L",z-6,g],["L",z,g-6],["L",z,I+y]):d.splice(7,1,["L",z,M/2],["L",u,g],["L",z,M/2],["L",z,I+y]):g&&g>M&&u>z+h&&u<z+E-h?d.splice(5,1,["L",u+6,I+M],["L",u,I+M+6],["L",u-6,I+M],["L",z+y,I+M]):g&&g<0&&u>z+h&&u<z+E-h&&d.splice(1,1,["L",u-6,I],["L",u,I-6],["L",u+6,I],["L",E-y,I])),d},circle:function(z,I,E,M){return $(z+E/2,I+M/2,E/2,M/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M/2],["L",z+E/2,I+M],["L",z,I+M/2],["Z"]]},rect:Z,roundedRect:U,square:Z,triangle:function(z,I,E,M){return[["M",z+E/2,I],["L",z+E,I+M],["L",z,I+M],["Z"]]},"triangle-down":function(z,I,E,M){return[["M",z,I],["L",z+E,I],["L",z+E/2,I+M],["Z"]]}}}),et(B,"Core/Renderer/SVG/TextBuilder.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=R.doc,$=R.SVG_NS,Z=R.win,U=H.attr,z=H.extend,I=H.fireEvent,E=H.isString,M=H.objectEach,k=H.pick;return function(){function y(h){var u=h.styles;this.renderer=h.renderer,this.svgElement=h,this.width=h.textWidth,this.textLineHeight=u&&u.lineHeight,this.textOutline=u&&u.textOutline,this.ellipsis=!!(u&&u.textOverflow==="ellipsis"),this.noWrap=!!(u&&u.whiteSpace==="nowrap"),this.fontSize=u&&u.fontSize}return y.prototype.buildSVG=function(){var h=this.svgElement,u=h.element,g=h.renderer,d=k(h.textStr,"").toString(),v=d.indexOf("<")!==-1,w=u.childNodes,S=this.width&&!h.added&&g.box,C=[d,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join(",");if(C!==h.textCache){h.textCache=C,delete h.actualWidth;for(var c=w.length;c--;)u.removeChild(w[c]);if(v||this.ellipsis||this.width||h.textPath||d.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(d))){if(d!==""){S&&S.appendChild(u);var f=new W(d);this.modifyTree(f.nodes),f.addToDOM(u),this.modifyDOM(),this.ellipsis&&(u.textContent||"").indexOf("…")!==-1&&h.attr("title",this.unescapeEntities(h.textStr||"",["<",">"])),S&&S.removeChild(u)}}else u.appendChild(V.createTextNode(this.unescapeEntities(d)));E(this.textOutline)&&h.applyTextOutline&&h.applyTextOutline(this.textOutline)}},y.prototype.modifyDOM=function(){var h,u=this,g=this.svgElement,d=U(g.element,"x");for(g.firstLineMetrics=void 0;(h=g.element.firstChild)&&/^[\s\u200B]*$/.test(h.textContent||" ");)g.element.removeChild(h);[].forEach.call(g.element.querySelectorAll("tspan.highcharts-br"),function(S,C){S.nextSibling&&S.previousSibling&&(C===0&&S.previousSibling.nodeType===1&&(g.firstLineMetrics=g.renderer.fontMetrics(void 0,S.previousSibling)),U(S,{dy:u.getLineHeight(S.nextSibling),x:d}))});var v=this.width||0;if(v){var w=function(S){[].slice.call(S.childNodes).forEach(function(C){C.nodeType===Z.Node.TEXT_NODE?function(c,f){var r=c.textContent||"",a=r.replace(/([^\^])-/g,"$1- ").split(" "),t=!u.noWrap&&(a.length>1||g.element.childNodes.length>1),i=u.getLineHeight(f),o=0,e=g.actualWidth;if(u.ellipsis)r&&u.truncate(c,r,void 0,0,Math.max(0,v-parseInt(u.fontSize||12,10)),function(l,b){return l.substring(0,b)+"…"});else if(t){for(var s=[],n=[];f.firstChild&&f.firstChild!==c;)n.push(f.firstChild),f.removeChild(f.firstChild);for(;a.length;)a.length&&!u.noWrap&&o>0&&(s.push(c.textContent||""),c.textContent=a.join(" ").replace(/- /g,"-")),u.truncate(c,void 0,a,o===0&&e||0,v,function(l,b){return a.slice(0,b).join(" ").replace(/- /g,"-")}),e=g.actualWidth,o++;n.forEach(function(l){f.insertBefore(l,c)}),s.forEach(function(l){f.insertBefore(V.createTextNode(l),c);var b=V.createElementNS($,"tspan");b.textContent="",U(b,{dy:i,x:d}),f.insertBefore(b,c)})}}(C,S):(C.className.baseVal.indexOf("highcharts-br")!==-1&&(g.actualWidth=0),w(C))})};w(g.element)}},y.prototype.getLineHeight=function(h){var u,g=h.nodeType===Z.Node.TEXT_NODE?h.parentElement:h;return this.renderer.styledMode||(u=g&&/(px|em)$/.test(g.style.fontSize)?g.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(u,g||this.svgElement.element).h},y.prototype.modifyTree=function(h){var u=this,g=function(d,v){var w=d.attributes,S=w===void 0?{}:w,C=d.children,c=d.style,f=c===void 0?{}:c,r=d.tagName,a=u.renderer.styledMode;if(r==="b"||r==="strong"?a?S.class="highcharts-strong":f.fontWeight="bold":r!=="i"&&r!=="em"||(a?S.class="highcharts-emphasized":f.fontStyle="italic"),f&&f.color&&(f.fill=f.color),r==="br"){S.class="highcharts-br",d.textContent="";var t=h[v+1];t&&t.textContent&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else r==="a"&&C&&C.some(function(i){return i.tagName==="#text"})&&(d.children=[{children:C,tagName:"tspan"}]);r!=="#text"&&r!=="a"&&(d.tagName="tspan"),z(d,{attributes:S,style:f}),C&&C.filter(function(i){return i.tagName!=="#text"}).forEach(g)};h.forEach(g),I(this.svgElement,"afterModifyTree",{nodes:h})},y.prototype.truncate=function(h,u,g,d,v,w){var S,C,c=this.svgElement,f=c.renderer,r=c.rotation,a=[],t=g?1:0,i=(u||g||"").length,o=i,e=function(s,n){var l=n||s,b=h.parentNode;if(b&&a[l]===void 0)if(b.getSubStringLength)try{a[l]=d+b.getSubStringLength(0,g?l+1:l)}catch(T){}else f.getSpanWidth&&(h.textContent=w(u||g,s),a[l]=d+f.getSpanWidth(c,h));return a[l]};if(c.rotation=0,C=e(h.textContent.length),d+C>v){for(;t<=i;)o=Math.ceil((t+i)/2),g&&(S=w(g,o)),C=e(o,S&&S.length-1),t===i?t=i+1:C>v?i=o-1:t=o;i===0?h.textContent="":u&&i===u.length-1||(h.textContent=S||w(u||g,o))}g&&g.splice(0,o),c.actualWidth=C,c.rotation=r},y.prototype.unescapeEntities=function(h,u){return M(this.renderer.escapes,function(g,d){u&&u.indexOf(g)!==-1||(h=h.toString().replace(new RegExp(g,"g"),d))}),h},y}()}),et(B,"Core/Renderer/SVG/SVGRenderer.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGLabel.js"],B["Core/Renderer/SVG/Symbols.js"],B["Core/Renderer/SVG/TextBuilder.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=H.charts,k=H.deg2rad,y=H.doc,h=H.isFirefox,u=H.isMS,g=H.isWebKit,d=H.noop,v=H.SVG_NS,w=H.symbolSizes,S=H.win,C=I.addEvent,c=I.attr,f=I.createElement,r=I.css,a=I.defined,t=I.destroyObjectProperties,i=I.extend,o=I.isArray,e=I.isNumber,s=I.isObject,n=I.isString,l=I.merge,b=I.pick,T=I.pInt,D=I.uniqueKey,p=function(){function x(A,N,_,L,O,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(A,N,_,L,O,j,Y)}return x.prototype.init=function(A,N,_,L,O,j,Y){var X,G,q=this,Q=q.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),J=Q.element;Y||Q.css(this.getStyle(L)),A.appendChild(J),c(A,"dir","ltr"),A.innerHTML.indexOf("xmlns")===-1&&c(J,"xmlns",this.SVG_NS),q.isSVG=!0,this.box=J,this.boxWrapper=Q,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=O,q.styledMode=Y,q.gradients={},q.cache={},q.cacheKeys=[],q.imgCount=0,q.setSize(N,_,!1),h&&A.getBoundingClientRect&&((X=function(){r(A,{left:0,top:0}),G=A.getBoundingClientRect(),r(A,{left:Math.ceil(G.left)-G.left+"px",top:Math.ceil(G.top)-G.top+"px"})})(),q.unSubPixelFix=C(S,"resize",X))},x.prototype.definition=function(A){return new W([A]).addToDOM(this.defs.element)},x.prototype.getReferenceURL=function(){if((h||g)&&y.getElementsByTagName("base").length){if(!a(E)){var A=D(),N=new W([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:A},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(A,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body);r(N,{position:"fixed",top:0,left:0,zIndex:9e5});var _=y.elementFromPoint(6,6);E=(_&&_.id)==="hitme",y.body.removeChild(N)}if(E)return S.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},x.prototype.getStyle=function(A){return this.style=i({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},A),this.style},x.prototype.setStyle=function(A){this.boxWrapper.css(this.getStyle(A))},x.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},x.prototype.destroy=function(){var A=this,N=A.defs;return A.box=null,A.boxWrapper=A.boxWrapper.destroy(),t(A.gradients||{}),A.gradients=null,N&&(A.defs=N.destroy()),A.unSubPixelFix&&A.unSubPixelFix(),A.alignedObjects=null,null},x.prototype.createElement=function(A){var N=new this.Element;return N.init(this,A),N},x.prototype.getRadialAttr=function(A,N){return{cx:A[0]-A[2]/2+(N.cx||0)*A[2],cy:A[1]-A[2]/2+(N.cy||0)*A[2],r:(N.r||0)*A[2]}},x.prototype.buildText=function(A){new z(A).buildSVG()},x.prototype.getContrast=function(A){var N=R.parse(A).rgba.map(function(L){var O=L/255;return O<=.03928?O/12.92:Math.pow((O+.055)/1.055,2.4)}),_=.2126*N[0]+.7152*N[1]+.0722*N[2];return 1.05/(_+.05)>(_+.05)/.05?"#FFFFFF":"#000000"},x.prototype.button=function(A,N,_,L,O,j,Y,X,G,q){O===void 0&&(O={});var Q=this.label(A,N,_,G,void 0,void 0,q,void 0,"button"),J=this.styledMode,rt=O.states||{},lt=0;delete(O=l(O)).states;var gt=l({color:"#333333",cursor:"pointer",fontWeight:"normal"},O.style);delete O.style;var mt,bt,yt,ht=W.filterUserAttributes(O);return Q.attr(l({padding:8,r:2},ht)),J||(ht=l({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},ht),j=l(ht,{fill:"#e6e6e6"},W.filterUserAttributes(j||rt.hover||{})),mt=j.style,delete j.style,Y=l(ht,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},W.filterUserAttributes(Y||rt.select||{})),bt=Y.style,delete Y.style,X=l(ht,{style:{color:"#cccccc"}},W.filterUserAttributes(X||rt.disabled||{})),yt=X.style,delete X.style),C(Q.element,u?"mouseover":"mouseenter",function(){lt!==3&&Q.setState(1)}),C(Q.element,u?"mouseout":"mouseleave",function(){lt!==3&&Q.setState(lt)}),Q.setState=function(it){if(it!==1&&(Q.state=lt=it),Q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][it||0]),!J){Q.attr([ht,j,Y,X][it||0]);var st=[gt,mt,bt,yt][it||0];s(st)&&Q.css(st)}},J||(Q.attr(ht).css(i({cursor:"default"},gt)),q&&Q.text.css({pointerEvents:"none"})),Q.on("touchstart",function(it){return it.stopPropagation()}).on("click",function(it){lt!==3&&L.call(Q,it)})},x.prototype.crispLine=function(A,N,_){_===void 0&&(_="round");var L=A[0],O=A[1];return a(L[1])&&L[1]===O[1]&&(L[1]=O[1]=Math[_](L[1])-N%2/2),a(L[2])&&L[2]===O[2]&&(L[2]=O[2]=Math[_](L[2])+N%2/2),A},x.prototype.path=function(A){var N=this.styledMode?{}:{fill:"none"};return o(A)?N.d=A:s(A)&&i(N,A),this.createElement("path").attr(N)},x.prototype.circle=function(A,N,_){var L=s(A)?A:A===void 0?{}:{x:A,y:N,r:_},O=this.createElement("circle");return O.xSetter=O.ySetter=function(j,Y,X){X.setAttribute("c"+Y,j)},O.attr(L)},x.prototype.arc=function(A,N,_,L,O,j){var Y;s(A)?(N=(Y=A).y,_=Y.r,L=Y.innerR,O=Y.start,j=Y.end,A=Y.x):Y={innerR:L,start:O,end:j};var X=this.symbol("arc",A,N,_,_,Y);return X.r=_,X},x.prototype.rect=function(A,N,_,L,O,j){O=s(A)?A.r:O;var Y=this.createElement("rect"),X=s(A)?A:A===void 0?{}:{x:A,y:N,width:Math.max(_,0),height:Math.max(L,0)};return this.styledMode||(j!==void 0&&(X["stroke-width"]=j,X=Y.crisp(X)),X.fill="none"),O&&(X.r=O),Y.rSetter=function(G,q,Q){Y.r=G,c(Q,{rx:G,ry:G})},Y.rGetter=function(){return Y.r||0},Y.attr(X)},x.prototype.setSize=function(A,N,_){var L=this;L.width=A,L.height=N,L.boxWrapper.animate({width:A,height:N},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(_,!0)?void 0:0}),L.alignElements()},x.prototype.g=function(A){var N=this.createElement("g");return A?N.attr({class:"highcharts-"+A}):N},x.prototype.image=function(A,N,_,L,O,j){var Y={preserveAspectRatio:"none"},X=function(J,rt){J.setAttributeNS?J.setAttributeNS("http://www.w3.org/1999/xlink","href",rt):J.setAttribute("hc-svg-href",rt)};e(N)&&(Y.x=N),e(_)&&(Y.y=_),e(L)&&(Y.width=L),e(O)&&(Y.height=O);var G=this.createElement("image").attr(Y),q=function(J){X(G.element,A),j.call(G,J)};if(j){X(G.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var Q=new S.Image;C(Q,"load",q),Q.src=A,Q.complete&&q({})}else X(G.element,A);return G},x.prototype.symbol=function(A,N,_,L,O,j){var Y,X,G,q,Q=this,J=/^url\((.*?)\)$/,rt=J.test(A),lt=!rt&&(this.symbols[A]?A:"circle"),gt=lt&&this.symbols[lt];if(gt)typeof N=="number"&&(X=gt.call(this.symbols,Math.round(N||0),Math.round(_||0),L||0,O||0,j)),Y=this.path(X),Q.styledMode||Y.attr("fill","none"),i(Y,{symbolName:lt||void 0,x:N,y:_,width:L,height:O}),j&&i(Y,j);else if(rt){G=A.match(J)[1];var mt=Y=this.image(G);mt.imgwidth=b(w[G]&&w[G].width,j&&j.width),mt.imgheight=b(w[G]&&w[G].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,ht){this[ht]=yt;var it=this,st=it.alignByTranslate,dt=it.element,vt=it.width,Ct=it.height,xt=it.imgwidth,wt=it.imgheight,Mt=this["img"+ht];if(a(Mt)){var St=1;j&&j.backgroundSize==="within"&&vt&&Ct?(St=Math.min(vt/xt,Ct/wt),Mt=Math.round(Mt*St),c(dt,{width:Math.round(xt*St),height:Math.round(wt*St)})):dt&&dt.setAttribute(ht,Mt),st||this.translate(((vt||0)-Mt*St)/2,((Ct||0)-Mt*St)/2)}}}),a(N)&&mt.attr({x:N,y:_}),mt.isImg=!0,a(mt.imgwidth)&&a(mt.imgheight)?q(mt):(mt.attr({width:0,height:0}),f("img",{onload:function(){var bt=M[Q.chartIndex];this.width===0&&(r(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),w[G]={width:this.width,height:this.height},mt.imgwidth=this.width,mt.imgheight=this.height,mt.element&&q(mt),this.parentNode&&this.parentNode.removeChild(this),Q.imgCount--,Q.imgCount||!bt||bt.hasLoaded||bt.onload()},src:G}),this.imgCount++)}return Y},x.prototype.clipRect=function(A,N,_,L){var O=D()+"-",j=this.createElement("clipPath").attr({id:O}).add(this.defs),Y=this.rect(A,N,_,L,0).add(j);return Y.id=O,Y.clipPath=j,Y.count=0,Y},x.prototype.text=function(A,N,_,L){var O=this,j={};if(L&&(O.allowHTML||!O.forExport))return O.html(A,N,_);j.x=Math.round(N||0),_&&(j.y=Math.round(_)),a(A)&&(j.text=A);var Y=O.createElement("text").attr(j);return(!L||O.forExport&&!O.allowHTML)&&(Y.xSetter=function(X,G,q){for(var Q=q.getElementsByTagName("tspan"),J=q.getAttribute(G),rt=0,lt=void 0;rt<Q.length;rt++)(lt=Q[rt]).getAttribute(G)===J&<.setAttribute(G,X);q.setAttribute(G,X)}),Y},x.prototype.fontMetrics=function(A,N){A=!this.styledMode&&/px/.test(A)||!S.getComputedStyle?A||N&&N.style&&N.style.fontSize||this.style&&this.style.fontSize:N&&$.prototype.getStyle.call(N,"font-size");var _=(A=/px/.test(A)?T(A):12)<24?A+3:Math.round(1.2*A);return{h:_,b:Math.round(.8*_),f:A}},x.prototype.rotCorr=function(A,N,_){var L=A;return N&&_&&(L=Math.max(L*Math.cos(N*k),4)),{x:-A/3*Math.sin(N*k),y:L}},x.prototype.pathToSegments=function(A){for(var N=[],_=[],L={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},O=0;O<A.length;O++)n(_[0])&&e(A[O])&&_.length===L[_[0].toUpperCase()]&&A.splice(O,0,_[0].replace("M","L").replace("m","l")),typeof A[O]=="string"&&(_.length&&N.push(_.slice(0)),_.length=0),_.push(A[O]);return N.push(_.slice(0)),N},x.prototype.label=function(A,N,_,L,O,j,Y,X,G){return new Z(this,A,N,_,L,O,j,Y,X,G)},x.prototype.alignElements=function(){this.alignedObjects.forEach(function(A){return A.align()})},x}();return i(p.prototype,{Element:$,SVG_NS:v,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:U,draw:d}),V.registerRendererType("svg",p,!0),p}),et(B,"Core/Renderer/HTML/HTMLElement.js",[B["Core/Globals.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(g,d){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var S in w)w.hasOwnProperty(S)&&(v[S]=w[S])},V(g,d)},function(g,d){function v(){this.constructor=g}V(g,d),g.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}),Z=W.isFirefox,U=W.isMS,z=W.isWebKit,I=W.win,E=H.css,M=H.defined,k=H.extend,y=H.pick,h=H.pInt,u=function(g){function d(){return g!==null&&g.apply(this,arguments)||this}return $(d,g),d.compose=function(v){if(d.composedClasses.indexOf(v)===-1){d.composedClasses.push(v);var w=d.prototype,S=v.prototype;S.getSpanCorrection=w.getSpanCorrection,S.htmlCss=w.htmlCss,S.htmlGetBBox=w.htmlGetBBox,S.htmlUpdateTransform=w.htmlUpdateTransform,S.setSpanRotation=w.setSpanRotation}return v},d.prototype.getSpanCorrection=function(v,w,S){this.xCorr=-v*S,this.yCorr=-w},d.prototype.htmlCss=function(v){var w,S=this,C=S.element.tagName==="SPAN"&&v&&"width"in v,c=y(C&&v.width,void 0);return C&&(delete v.width,S.textWidth=c,w=!0),v&&v.textOverflow==="ellipsis"&&(v.whiteSpace="nowrap",v.overflow="hidden"),S.styles=k(S.styles,v),E(S.element,v),w&&S.htmlUpdateTransform(),S},d.prototype.htmlGetBBox=function(){var v=this.element;return{x:v.offsetLeft,y:v.offsetTop,width:v.offsetWidth,height:v.offsetHeight}},d.prototype.htmlUpdateTransform=function(){if(this.added){var v=this,w=v.renderer,S=v.element,C=v.translateX||0,c=v.translateY||0,f=v.x||0,r=v.y||0,a=v.textAlign||"left",t={left:0,center:.5,right:1}[a],i=v.styles,o=i&&i.whiteSpace;if(E(S,{marginLeft:C,marginTop:c}),!w.styledMode&&v.shadows&&v.shadows.forEach(function(D){E(D,{marginLeft:C+1,marginTop:c+1})}),v.inverted&&[].forEach.call(S.childNodes,function(D){w.invertChild(D,S)}),S.tagName==="SPAN"){var e=v.rotation,s=v.textWidth&&h(v.textWidth),n=[e,a,S.innerHTML,v.textWidth,v.textAlign].join(","),l=void 0,b=!1;if(s!==v.oldTextWidth){var T=v.textPxLength?v.textPxLength:(E(S,{width:"",whiteSpace:o||"nowrap"}),S.offsetWidth);(s>v.oldTextWidth||T>s)&&(/[ \-]/.test(S.textContent||S.innerText)||S.style.textOverflow==="ellipsis")&&(E(S,{width:T>s||e?s+"px":"auto",display:"block",whiteSpace:o||"normal"}),v.oldTextWidth=s,b=!0)}v.hasBoxWidthChanged=b,n!==v.cTT&&(l=w.fontMetrics(S.style.fontSize,S).b,!M(e)||e===(v.oldRotation||0)&&a===v.oldAlign||v.setSpanRotation(e,t,l),v.getSpanCorrection(!M(e)&&v.textPxLength||S.offsetWidth,l,t,e,a)),E(S,{left:f+(v.xCorr||0)+"px",top:r+(v.yCorr||0)+"px"}),v.cTT=n,v.oldRotation=e,v.oldAlign=a}}else this.alignOnAdd=!0},d.prototype.setSpanRotation=function(v,w,S){var C={},c=U&&!/Edge/.test(I.navigator.userAgent)?"-ms-transform":z?"-webkit-transform":Z?"MozTransform":I.opera?"-o-transform":void 0;c&&(C[c]=C.transform="rotate("+v+"deg)",C[c+(Z?"Origin":"-origin")]=C.transformOrigin=100*w+"% "+S+"px",E(this.element,C))},d.composedClasses=[],d}(R);return u}),et(B,"Core/Renderer/HTML/HTMLRenderer.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(k,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var g in u)u.hasOwnProperty(g)&&(h[g]=u[g])},$(k,y)},function(k,y){function h(){this.constructor=k}$(k,y),k.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),U=V.attr,z=V.createElement,I=V.extend,E=V.pick,M=function(k){function y(){return k!==null&&k.apply(this,arguments)||this}return Z(y,k),y.compose=function(h){if(y.composedClasses.indexOf(h)===-1){y.composedClasses.push(h);var u=y.prototype;h.prototype.html=u.html}return h},y.prototype.html=function(h,u,g){var d=this.createElement("span"),v=d.element,w=d.renderer,S=w.isSVG,C=function(c,f){["opacity","visibility"].forEach(function(r){c[r+"Setter"]=function(a,t,i){var o=c.div?c.div.style:f;R.prototype[r+"Setter"].call(this,a,t,i),o&&(o[t]=a)}}),c.addedSetters=!0};return d.textSetter=function(c){c!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,W.setElementHTML(this.element,E(c,"")),this.textStr=c,d.doTransform=!0)},S&&C(d,d.element.style),d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(c,f){f==="align"?d.alignValue=d.textAlign=c:d[f]=c,d.doTransform=!0},d.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},d.attr({text:h,x:Math.round(u),y:Math.round(g)}).css({position:"absolute"}),w.styledMode||d.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),v.style.whiteSpace="nowrap",d.css=d.htmlCss,S&&(d.add=function(c){var f,r,a=w.box.parentNode,t=[];if(this.parentGroup=c,c){if(!(f=c.div)){for(r=c;r;)t.push(r),r=r.parentGroup;t.reverse().forEach(function(i){var o=U(i.element,"class");function e(l,b){i[b]=l,b==="translateX"?n.left=l+"px":n.top=l+"px",i.doTransform=!0}var s=i.styles||{},n=(f=i.div=i.div||z("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:s.cursor,pointerEvents:s.pointerEvents,visibility:i.visibility},f||a)).style;I(i,{classSetter:function(l){return function(b){this.element.setAttribute("class",b),l.className=b}}(f),on:function(){return t[0].div&&d.on.apply({element:t[0].div,onEvents:i.onEvents},arguments),i},translateXSetter:e,translateYSetter:e}),i.addedSetters||C(i)})}}else f=a;return f.appendChild(v),d.added=!0,d.alignOnAdd&&d.htmlUpdateTransform(),d}),d},y.composedClasses=[],y}(H);return M}),et(B,"Core/Axis/AxisDefaults.js",[],function(){var W;return function(R){R.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"},R.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},R.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},R.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},R.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},R.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(W||(W={})),W}),et(B,"Core/Foundation.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.isFunction,$=W.objectEach,Z=W.removeEvent;return function(U){U.registerEventOptions=function(z,I){z.eventOptions=z.eventOptions||{},$(I.events,function(E,M){z.eventOptions[M]!==E&&(z.eventOptions[M]&&(Z(z,M,z.eventOptions[M]),delete z.eventOptions[M]),V(E)&&(z.eventOptions[M]=E,H(z,M,E)))})}}(R||(R={})),R}),et(B,"Core/Axis/Tick.js",[B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=R.deg2rad,$=H.clamp,Z=H.correctFloat,U=H.defined,z=H.destroyObjectProperties,I=H.extend,E=H.fireEvent,M=H.isNumber,k=H.merge,y=H.objectEach,h=H.pick;return function(){function u(g,d,v,w,S){this.isNew=!0,this.isNewLabel=!0,this.axis=g,this.pos=d,this.type=v||"",this.parameters=S||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,E(this,"init"),v||w||this.addLabel()}return u.prototype.addLabel=function(){var g,d,v,w=this,S=w.axis,C=S.options,c=S.chart,f=S.categories,r=S.logarithmic,a=S.names,t=w.pos,i=h(w.options&&w.options.labels,C.labels),o=S.tickPositions,e=t===o[0],s=t===o[o.length-1],n=(!i.step||i.step===1)&&S.tickInterval===1,l=o.info,b=w.label,T=this.parameters.category||(f?h(f[t],a[t],t):t);r&&M(T)&&(T=Z(r.lin2log(T))),S.dateTime&&(l?g=(d=c.time.resolveDTLFormat(C.dateTimeLabelFormats[!C.grid&&l.higherRanks[t]||l.unitName])).main:M(T)&&(g=S.dateTime.getXDateFormat(T,C.dateTimeLabelFormats||{}))),w.isFirst=e,w.isLast=s;var D={axis:S,chart:c,dateTimeLabelFormat:g,isFirst:e,isLast:s,pos:t,tick:w,tickPositionInfo:l,value:T};E(this,"labelFormat",D);var p=function(N){return i.formatter?i.formatter.call(N,N):i.format?(N.text=S.defaultLabelFormatter.call(N,N),W.format(i.format,N,c)):S.defaultLabelFormatter.call(N,N)},x=p.call(D,D),A=d&&d.list;w.shortenLabel=A?function(){for(v=0;v<A.length;v++)if(I(D,{dateTimeLabelFormat:A[v]}),b.attr({text:p.call(D,D)}),b.getBBox().width<S.getSlotWidth(w)-2*i.padding)return;b.attr({text:""})}:void 0,n&&S._addedPlotLB&&w.moveLabel(x,i),U(b)||w.movedLabel?b&&b.textStr!==x&&!n&&(!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)},u.prototype.createLabel=function(g,d,v){var w=this.axis,S=w.chart,C=U(d)&&v.enabled?S.renderer.text(d,g.x,g.y,v.useHTML).add(w.labelGroup):null;return C&&(S.styledMode||C.css(k(v.style)),C.textPxLength=C.getBBox().width),C},u.prototype.destroy=function(){z(this,this.axis)},u.prototype.getPosition=function(g,d,v,w){var S=this.axis,C=S.chart,c=w&&C.oldChartHeight||C.chartHeight,f={x:g?Z(S.translate(d+v,void 0,void 0,w)+S.transB):S.left+S.offset+(S.opposite?(w&&C.oldChartWidth||C.chartWidth)-S.right-S.left:0),y:g?c-S.bottom+S.offset-(S.opposite?S.height:0):Z(c-S.translate(d+v,void 0,void 0,w)-S.transB)};return f.y=$(f.y,-1e5,1e5),E(this,"afterGetPosition",{pos:f}),f},u.prototype.getLabelPosition=function(g,d,v,w,S,C,c,f){var r,a,t=this.axis,i=t.transA,o=t.isLinked&&t.linkedParent?t.linkedParent.reversed:t.reversed,e=t.staggerLines,s=t.tickRotCorr||{x:0,y:0},n=w||t.reserveSpaceDefault?0:-t.labelOffset*(t.labelAlign==="center"?.5:1),l={};return r=t.side===0?v.rotation?-8:-v.getBBox().height:t.side===2?s.y+8:Math.cos(v.rotation*V)*(s.y-v.getBBox(!1,0).height/2),U(S.y)&&(r=t.side===0&&t.horiz?S.y+r:S.y),g=g+S.x+n+s.x-(C&&w?C*i*(o?-1:1):0),d=d+r-(C&&!w?C*i*(o?1:-1):0),e&&(a=c/(f||1)%e,t.opposite&&(a=e-a-1),d+=a*(t.labelOffset/e)),l.x=g,l.y=Math.round(d),E(this,"afterGetLabelPosition",{pos:l,tickmarkOffset:C,index:c}),l},u.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},u.prototype.getMarkPath=function(g,d,v,w,S,C){return C.crispLine([["M",g,d],["L",g+(S?0:-v),d+(S?v:0)]],w)},u.prototype.handleOverflow=function(g){var d,v,w=this,S=this.axis,C=S.options.labels,c=g.x,f=S.chart.chartWidth,r=S.chart.spacing,a=h(S.labelLeft,Math.min(S.pos,r[3])),t=h(S.labelRight,Math.max(S.isRadial?0:S.pos+S.len,f-r[1])),i=this.label,o=this.rotation,e={left:0,center:.5,right:1}[S.labelAlign||i.attr("align")],s=i.getBBox().width,n=S.getSlotWidth(w),l=e,b={},T=n,D=1;o||C.overflow!=="justify"?o<0&&c-e*s<a?v=Math.round(c/Math.cos(o*V)-a):o>0&&c+e*s>t&&(v=Math.round((f-c)/Math.cos(o*V))):(d=c+(1-e)*s,c-e*s<a?T=g.x+T*(1-e)-a:d>t&&(T=t-g.x+T*e,D=-1),(T=Math.min(n,T))<n&&S.labelAlign==="center"&&(g.x+=D*(n-T-l*(n-Math.min(s,T)))),(s>T||S.autoRotation&&(i.styles||{}).width)&&(v=T)),v&&(w.shortenLabel?w.shortenLabel():(b.width=Math.floor(v)+"px",(C.style||{}).textOverflow||(b.textOverflow="ellipsis"),i.css(b)))},u.prototype.moveLabel=function(g,d){var v,w,S,C=this,c=C.label,f=C.axis,r=f.reversed,a=!1;c&&c.textStr===g?(C.movedLabel=c,a=!0,delete C.label):y(f.ticks,function(t){a||t.isNew||t===C||!t.label||t.label.textStr!==g||(C.movedLabel=t.label,a=!0,t.labelPos=C.movedLabel.xy,delete t.label)}),a||!C.labelPos&&!c||(v=C.labelPos||c.xy,w=f.horiz?r?0:f.width+f.left:v.x,S=f.horiz?v.y:r?f.width+f.left:0,C.movedLabel=C.createLabel({x:w,y:S},g,d),C.movedLabel&&C.movedLabel.attr({opacity:0}))},u.prototype.render=function(g,d,v){var w=this,S=w.axis,C=S.horiz,c=w.pos,f=h(w.tickmarkOffset,S.tickmarkOffset),r=w.getPosition(C,c,f,d),a=r.x,t=r.y,i=C&&a===S.pos+S.len||!C&&t===S.pos?-1:1,o=h(v,w.label&&w.label.newOpacity,1);v=h(v,1),this.isActive=!0,this.renderGridLine(d,v,i),this.renderMark(r,v,i),this.renderLabel(r,d,o,g),w.isNew=!1,E(this,"afterRender")},u.prototype.renderGridLine=function(g,d,v){var w,S=this,C=S.axis,c=C.options,f={},r=S.pos,a=S.type,t=h(S.tickmarkOffset,C.tickmarkOffset),i=C.chart.renderer,o=S.gridLine,e=c.gridLineWidth,s=c.gridLineColor,n=c.gridLineDashStyle;S.type==="minor"&&(e=c.minorGridLineWidth,s=c.minorGridLineColor,n=c.minorGridLineDashStyle),o||(C.chart.styledMode||(f.stroke=s,f["stroke-width"]=e||0,f.dashstyle=n),a||(f.zIndex=1),g&&(d=0),S.gridLine=o=i.path().attr(f).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(C.gridGroup)),o&&(w=C.getPlotLinePath({value:r+t,lineWidth:o.strokeWidth()*v,force:"pass",old:g,acrossPanes:!1}))&&o[g||S.isNew?"attr":"animate"]({d:w,opacity:d})},u.prototype.renderMark=function(g,d,v){var w=this,S=w.axis,C=S.options,c=S.chart.renderer,f=w.type,r=S.tickSize(f?f+"Tick":"tick"),a=g.x,t=g.y,i=h(C[f!=="minor"?"tickWidth":"minorTickWidth"],!f&&S.isXAxis?1:0),o=C[f!=="minor"?"tickColor":"minorTickColor"],e=w.mark,s=!e;r&&(S.opposite&&(r[0]=-r[0]),e||(w.mark=e=c.path().addClass("highcharts-"+(f?f+"-":"")+"tick").add(S.axisGroup),S.chart.styledMode||e.attr({stroke:o,"stroke-width":i})),e[s?"attr":"animate"]({d:w.getMarkPath(a,t,r[0],e.strokeWidth()*v,S.horiz,c),opacity:d}))},u.prototype.renderLabel=function(g,d,v,w){var S=this,C=S.axis,c=C.horiz,f=C.options,r=S.label,a=f.labels,t=a.step,i=h(S.tickmarkOffset,C.tickmarkOffset),o=g.x,e=g.y,s=!0;r&&M(o)&&(r.xy=g=S.getLabelPosition(o,e,r,c,a,i,w,t),S.isFirst&&!S.isLast&&!f.showFirstLabel||S.isLast&&!S.isFirst&&!f.showLastLabel?s=!1:!c||a.step||a.rotation||d||v===0||S.handleOverflow(g),t&&w%t&&(s=!1),s&&M(g.y)?(g.opacity=v,r[S.isNewLabel?"attr":"animate"](g).show(!0),S.isNewLabel=!1):(r.hide(),S.isNewLabel=!0))},u.prototype.replaceMovedLabel=function(){var g,d,v=this,w=v.label,S=v.axis,C=S.reversed;w&&!v.isNew&&(g=S.horiz?C?S.left:S.width+S.left:w.xy.x,d=S.horiz?w.xy.y:C?S.width+S.top:S.top,w.animate({x:g,y:d,opacity:0},void 0,w.destroy),delete v.label),S.isDirty=!0,v.label=v.movedLabel,delete v.movedLabel},u}()}),et(B,"Core/Axis/Axis.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/AxisDefaults.js"],B["Core/Color/Color.js"],B["Core/Defaults.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Axis/Tick.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I=W.animObject,E=V.defaultOptions,M=$.registerEventOptions,k=Z.deg2rad,y=z.arrayMax,h=z.arrayMin,u=z.clamp,g=z.correctFloat,d=z.defined,v=z.destroyObjectProperties,w=z.erase,S=z.error,C=z.extend,c=z.fireEvent,f=z.isArray,r=z.isNumber,a=z.isString,t=z.merge,i=z.normalizeTickInterval,o=z.objectEach,e=z.pick,s=z.relativeLength,n=z.removeEvent,l=z.splat,b=z.syncTimeout,T=function(D,p){return i(p,void 0,void 0,e(D.options.allowDecimals,p<.5||D.tickAmount!==void 0),!!D.tickAmount)};return function(){function D(p,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(p,x)}return D.prototype.init=function(p,x){var A=x.isX,N=this;N.chart=p,N.horiz=p.inverted&&!N.isZAxis?!A:A,N.isXAxis=A,N.coll=N.coll||(A?"xAxis":"yAxis"),c(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 _=this.options,L=_.labels,O=_.type;N.userOptions=x,N.minPixelPadding=0,N.reversed=e(_.reversed,N.reversed),N.visible=_.visible,N.zoomEnabled=_.zoomEnabled,N.hasNames=O==="category"||_.categories===!0,N.categories=_.categories||(N.hasNames?[]:void 0),N.names||(N.names=[],N.names.keys={}),N.plotLinesAndBandsGroups={},N.positiveValuesOnly=!!N.logarithmic,N.isLinked=d(_.linkedTo),N.ticks={},N.labelEdge=[],N.minorTicks={},N.plotLinesAndBands=[],N.alternateBands={},N.len=0,N.minRange=N.userMinRange=_.minRange||_.maxZoom,N.range=_.range,N.offset=_.offset||0,N.max=null,N.min=null;var j=e(_.crosshair,l(p.options.tooltip.crosshairs)[A?0:1]);N.crosshair=j===!0?{}:j,p.axes.indexOf(N)===-1&&(A?p.axes.splice(p.xAxis.length,0,N):p.axes.push(N),p[N.coll].push(N)),N.series=N.series||[],p.inverted&&!N.isZAxis&&A&&N.reversed===void 0&&(N.reversed=!0),N.labelRotation=r(L.rotation)?L.rotation:void 0,M(N,_),c(this,"afterInit")},D.prototype.setOptions=function(p){this.options=t(R.defaultXAxisOptions,this.coll==="yAxis"&&R.defaultYAxisOptions,[R.defaultTopAxisOptions,R.defaultRightAxisOptions,R.defaultBottomAxisOptions,R.defaultLeftAxisOptions][this.side],t(E[this.coll],p)),c(this,"afterSetOptions",{userOptions:p})},D.prototype.defaultLabelFormatter=function(p){var x,A,N=this.axis,_=this.chart.numberFormatter,L=r(this.value)?this.value:NaN,O=N.chart.time,j=N.categories,Y=this.dateTimeLabelFormat,X=E.lang,G=X.numericSymbols,q=X.numericSymbolMagnitude||1e3,Q=N.logarithmic?Math.abs(L):N.tickInterval,J=G&&G.length;if(j)A="".concat(this.value);else if(Y)A=O.dateFormat(Y,L);else if(J&&Q>=1e3)for(;J--&&A===void 0;)Q>=(x=Math.pow(q,J+1))&&10*L%x==0&&G[J]!==null&&L!==0&&(A=_(L/x,-1)+G[J]);return A===void 0&&(A=Math.abs(L)>=1e4?_(L,-1):_(L,-1,void 0,"")),A},D.prototype.getSeriesExtremes=function(){var p,x=this,A=x.chart;c(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||!A.options.chart.ignoreHiddenSeries){var _=N.options,L=void 0,O=_.threshold,j=void 0,Y=void 0;if(x.hasVisibleSeries=!0,x.positiveValuesOnly&&O<=0&&(O=null),x.isXAxis)(L=N.xData).length&&(L=x.logarithmic?L.filter(x.validatePositiveValue):L,j=(p=N.getXExtremes(L)).min,Y=p.max,r(j)||j instanceof Date||(L=L.filter(r),j=(p=N.getXExtremes(L)).min,Y=p.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)),d(O)&&(x.threshold=O),_.softThreshold&&!x.positiveValuesOnly||(x.softThreshold=!1)}}})}),c(this,"afterGetSeriesExtremes")},D.prototype.translate=function(p,x,A,N,_,L){var O=this.linkedParent||this,j=N&&O.old?O.old.min:O.min;if(!r(j))return NaN;var Y=O.minPixelPadding,X=(O.isOrdinal||O.brokenAxis&&O.brokenAxis.hasBreaks||O.logarithmic&&_)&&O.lin2val,G=1,q=0,Q=N&&O.old?O.old.transA:O.transA,J=0;if(Q||(Q=O.transA),A&&(G*=-1,q=O.len),O.reversed&&(q-=(G*=-1)*(O.sector||O.len)),x)p=p*G+q,J=(p-=Y)/Q+j,X&&(J=O.lin2val(J));else{X&&(p=O.val2lin(p));var rt=G*(p-j)*Q;J=(O.isRadial?rt:g(rt))+q+G*Y+(r(L)?Q*L:0)}return J},D.prototype.toPixels=function(p,x){return this.translate(p,!1,!this.horiz,void 0,!0)+(x?0:this.pos)},D.prototype.toValue=function(p,x){return this.translate(p-(x?0:this.pos),!0,!this.horiz,void 0,!0)},D.prototype.getPlotLinePath=function(p){var x,A,N,_,L,O=this,j=O.chart,Y=O.left,X=O.top,G=p.old,q=p.value,Q=p.lineWidth,J=G&&j.oldChartHeight||j.chartHeight,rt=G&&j.oldChartWidth||j.chartWidth,lt=O.transB,gt=p.translatedValue,mt=p.force;function bt(ht,it,st){return mt!=="pass"&&(ht<it||ht>st)&&(mt?ht=u(ht,it,st):L=!0),ht}var yt={value:q,lineWidth:Q,old:G,force:mt,acrossPanes:p.acrossPanes,translatedValue:gt};return c(this,"getPlotLinePath",yt,function(ht){gt=e(gt,O.translate(q,void 0,void 0,G)),gt=u(gt,-1e5,1e5),x=N=Math.round(gt+lt),A=_=Math.round(J-gt-lt),r(gt)?O.horiz?(A=X,_=J-O.bottom,x=N=bt(x,Y,Y+O.width)):(x=Y,N=rt-O.right,A=_=bt(A,X,X+O.height)):(L=!0,mt=!1),ht.path=L&&!mt?null:j.renderer.crispLine([["M",x,A],["L",N,_]],Q||1)}),yt.path},D.prototype.getLinearTickPositions=function(p,x,A){var N,_,L,O=g(Math.floor(x/p)*p),j=g(Math.ceil(A/p)*p),Y=[];if(g(O+p)===O&&(L=20),this.single)return[x];for(N=O;N<=j&&(Y.push(N),(N=g(N+p,L))!==_);)_=N;return Y},D.prototype.getMinorTickInterval=function(){var p=this.options;return p.minorTicks===!0?e(p.minorTickInterval,"auto"):p.minorTicks===!1?null:p.minorTickInterval},D.prototype.getMinorTickPositions=function(){var p,x=this,A=x.options,N=x.tickPositions,_=x.minorTickInterval,L=x.pointRangePadding||0,O=x.min-L,j=x.max+L,Y=j-O,X=[];if(Y&&Y/_<x.len/3){var G=x.logarithmic;if(G)this.paddedTicks.forEach(function(q,Q,J){Q&&X.push.apply(X,G.getLogTickPositions(_,J[Q-1],J[Q],!0))});else if(x.dateTime&&this.getMinorTickInterval()==="auto")X=X.concat(x.getTimeTicks(x.dateTime.normalizeTimeTickInterval(_),O,j,A.startOfWeek));else for(p=O+(N[0]-O)%_;p<=j&&p!==X[0];p+=_)X.push(p)}return X.length!==0&&x.trimTicks(X),X},D.prototype.adjustForMinRange=function(){var p,x,A,N,_,L,O,j,Y,X=this,G=X.options,q=X.logarithmic,Q=X.min,J=X.max,rt=0;X.isXAxis&&X.minRange===void 0&&!q&&(d(G.min)||d(G.max)||d(G.floor)||d(G.ceiling)?X.minRange=null:(X.series.forEach(function(lt){if(_=lt.xData,L=lt.xIncrement?1:_.length-1,_.length>1)for(A=L;A>0;A--)N=_[A]-_[A-1],(!rt||N<rt)&&(rt=N)}),X.minRange=Math.min(5*rt,X.dataMax-X.dataMin))),J-Q<X.minRange&&(x=X.dataMax-X.dataMin>=X.minRange,O=[Q-(p=((Y=X.minRange)-J+Q)/2),e(G.min,Q-p)],x&&(O[2]=X.logarithmic?X.logarithmic.log2lin(X.dataMin):X.dataMin),j=[(Q=y(O))+Y,e(G.max,Q+Y)],x&&(j[2]=q?q.log2lin(X.dataMax):X.dataMax),(J=h(j))-Q<Y&&(O[0]=J-Y,O[1]=e(G.min,J-Y),Q=y(O))),X.min=Q,X.max=J},D.prototype.getClosest=function(){var p;return this.categories?p=1:this.series.forEach(function(x){var A=x.closestPointRange,N=x.visible||!x.chart.options.chart.ignoreHiddenSeries;!x.noSharedTooltip&&d(A)&&N&&(p=d(p)?Math.min(p,A):A)}),p},D.prototype.nameToX=function(p){var x,A=f(this.options.categories),N=A?this.categories:this.names,_=p.options.x;return p.series.requireSorting=!1,d(_)||(_=this.options.uniqueNames&&N?A?N.indexOf(p.name):e(N.keys[p.name],-1):p.series.autoIncrement()),_===-1?!A&&N&&(x=N.length):x=_,x!==void 0?(this.names[x]=p.name,this.names.keys[p.name]=x):p.x&&(x=p.x),x},D.prototype.updateNames=function(){var p=this,x=this.names;x.length>0&&(Object.keys(x.keys).forEach(function(A){delete x.keys[A]}),x.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(A){A.xIncrement=null,A.points&&!A.isDirtyData||(p.max=Math.max(p.max,A.xData.length-1),A.processData(),A.generatePoints()),A.data.forEach(function(N,_){var L;N&&N.options&&N.name!==void 0&&(L=p.nameToX(N))!==void 0&&L!==N.x&&(N.x=L,A.xData[_]=L)})}))},D.prototype.setAxisTranslation=function(){var p,x,A=this,N=A.max-A.min,_=A.linkedParent,L=!!A.categories,O=A.isXAxis,j=A.axisPointRange||0,Y=0,X=0,G=A.transA;(O||L||j)&&(p=A.getClosest(),_?(Y=_.minPointOffset,X=_.pointRangePadding):A.series.forEach(function(q){var Q=L?1:O?e(q.options.pointRange,p,0):A.axisPointRange||0,J=q.options.pointPlacement;if(j=Math.max(j,Q),!A.single||L){var rt=q.is("xrange")?!O:O;Y=Math.max(Y,rt&&a(J)?0:Q/2),X=Math.max(X,rt&&J==="on"?0:Q)}}),x=A.ordinal&&A.ordinal.slope&&p?A.ordinal.slope/p:1,A.minPointOffset=Y*=x,A.pointRangePadding=X*=x,A.pointRange=Math.min(j,A.single&&L?1:N),O&&(A.closestPointRange=p)),A.translationSlope=A.transA=G=A.staticScale||A.len/(N+X||1),A.transB=A.horiz?A.left:A.bottom,A.minPixelPadding=G*Y,c(this,"afterSetAxisTranslation")},D.prototype.minFromRange=function(){return this.max-this.range},D.prototype.setTickInterval=function(p){var x,A,N,_,L,O,j=this,Y=j.chart,X=j.logarithmic,G=j.options,q=j.isXAxis,Q=j.isLinked,J=G.tickPixelInterval,rt=j.categories,lt=j.softThreshold,gt=G.maxPadding,mt=G.minPadding,bt=r(G.tickInterval)&&G.tickInterval>=0?G.tickInterval:void 0,yt=r(j.threshold)?j.threshold:null;if(j.dateTime||rt||Q||this.getTickAmount(),L=e(j.userMin,G.min),O=e(j.userMax,G.max),Q?(j.linkedParent=Y[j.coll][G.linkedTo],A=j.linkedParent.getExtremes(),j.min=e(A.min,A.dataMin),j.max=e(A.max,A.dataMax),G.type!==j.linkedParent.options.type&&S(11,1,Y)):(lt&&d(yt)&&(j.dataMin>=yt?(N=yt,mt=0):j.dataMax<=yt&&(_=yt,gt=0)),j.min=e(L,N,j.dataMin),j.max=e(O,_,j.dataMax)),X&&(j.positiveValuesOnly&&!p&&Math.min(j.min,e(j.dataMin,j.min))<=0&&S(10,1,Y),j.min=g(X.log2lin(j.min),16),j.max=g(X.log2lin(j.max),16)),j.range&&d(j.max)&&(j.userMin=j.min=L=Math.max(j.dataMin,j.minFromRange()),j.userMax=O=j.max,j.range=null),c(j,"foundExtremes"),j.beforePadding&&j.beforePadding(),j.adjustForMinRange(),rt||j.axisPointRange||j.stacking&&j.stacking.usePercentage||Q||!d(j.min)||!d(j.max)||(x=j.max-j.min)&&(!d(L)&&mt&&(j.min-=x*mt),!d(O)&>&&(j.max+=x*gt)),r(j.userMin)||(r(G.softMin)&&G.softMin<j.min&&(j.min=L=G.softMin),r(G.floor)&&(j.min=Math.max(j.min,G.floor))),r(j.userMax)||(r(G.softMax)&&G.softMax>j.max&&(j.max=O=G.softMax),r(G.ceiling)&&(j.max=Math.min(j.max,G.ceiling))),lt&&d(j.dataMin)&&(yt=yt||0,!d(L)&&j.min<yt&&j.dataMin>=yt?j.min=j.options.minRange?Math.min(yt,j.max-j.minRange):yt:!d(O)&&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&&(d(j.options.min)?j.max=j.min:d(j.options.max)&&(j.min=j.max)),j.min===j.max||j.min===void 0||j.max===void 0?j.tickInterval=1:Q&&j.linkedParent&&!bt&&J===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,rt?1:(j.max-j.min)*J/Math.max(j.len,J)),q&&!p){var ht=j.min!==(j.old&&j.old.min)||j.max!==(j.old&&j.old.max);j.series.forEach(function(st){st.forceCrop=st.forceCropping&&st.forceCropping(),st.processData(ht)}),c(this,"postProcessData",{hasExtremesChanged:ht})}j.setAxisTranslation(),c(this,"initialAxisTranslation"),j.pointRange&&!bt&&(j.tickInterval=Math.max(j.pointRange,j.tickInterval));var it=e(G.minTickInterval,j.dateTime&&!j.series.some(function(st){return st.noSharedTooltip})?j.closestPointRange:0);!bt&&j.tickInterval<it&&(j.tickInterval=it),j.dateTime||j.logarithmic||bt||(j.tickInterval=T(j,j.tickInterval)),this.tickAmount||(j.tickInterval=j.unsquish()),this.setTickPositions()},D.prototype.setTickPositions=function(){var p,x=this,A=this.options,N=A.tickPositions,_=A.tickPositioner,L=this.getMinorTickInterval(),O=this.hasVerticalPanning(),j=this.coll==="colorAxis",Y=(j||!O)&&A.startOnTick,X=(j||!O)&&A.endOnTick,G=[];if(this.tickmarkOffset=this.categories&&A.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=L==="auto"&&this.tickInterval?this.tickInterval/5:L,this.single=this.min===this.max&&d(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||A.allowDecimals!==!1),N)G=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)G=x.getTimeTicks(x.dateTime.normalizeTimeTickInterval(this.tickInterval,A.units),this.min,this.max,A.startOfWeek,x.ordinal&&x.ordinal.positions,this.closestPointRange,!0);else if(x.logarithmic)G=x.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var q=this.tickInterval,Q=q;Q<=2*q&&(G=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&G.length>this.tickAmount);)this.tickInterval=T(this,Q*=1.1);else G=[this.min,this.max],S(19,!1,this.chart);G.length>this.len&&(G=[G[0],G[G.length-1]])[0]===G[1]&&(G.length=1),_&&(this.tickPositions=G,(p=_.apply(x,[this.min,this.max]))&&(G=p))}this.tickPositions=G,this.paddedTicks=G.slice(0),this.trimTicks(G,Y,X),!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&G.length<2&&!this.categories&&!this.series.some(function(J){return J.is("heatmap")&&J.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),N||p||this.adjustTickAmount()),c(this,"afterSetTickPositions")},D.prototype.trimTicks=function(p,x,A){var N=p[0],_=p[p.length-1],L=!this.isOrdinal&&this.minPointOffset||0;if(c(this,"trimTicks"),!this.isLinked){if(x&&N!==-1/0)this.min=N;else for(;this.min-L>p[0];)p.shift();if(A)this.max=_;else for(;this.max+L<p[p.length-1];)p.pop();p.length===0&&d(N)&&!this.options.tickPositions&&p.push((_+N)/2)}},D.prototype.alignToOthers=function(){var p,x=this,A=[this],N=x.options,_=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,L=[];if(x.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&N.alignTicks||_)&&N.startOnTick!==!1&&N.endOnTick!==!1&&!x.logarithmic){var O=function(X){var G=X.horiz,q=X.options;return[G?q.left:q.top,q.width,q.height,q.pane].join(",")},j=O(this);this.chart[this.coll].forEach(function(X){var G=X.series;G.length&&G.some(function(q){return q.visible})&&X!==x&&O(X)===j&&(p=!0,A.push(X))})}if(p&&_){A.forEach(function(X){var G=X.getThresholdAlignment(x);r(G)&&L.push(G)});var Y=L.length>1?L.reduce(function(X,G){return X+G},0)/L.length:void 0;A.forEach(function(X){X.thresholdAlignment=Y})}return p},D.prototype.getThresholdAlignment=function(p){if((!r(this.dataMin)||this!==p&&this.series.some(function(A){return A.isDirty||A.isDirtyData}))&&this.getSeriesExtremes(),r(this.threshold)){var x=u((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(x=1-x),x}},D.prototype.getTickAmount=function(){var p=this.options,x=p.tickPixelInterval,A=p.tickAmount;!d(p.tickInterval)&&!A&&this.len<x&&!this.isRadial&&!this.logarithmic&&p.startOnTick&&p.endOnTick&&(A=2),!A&&this.alignToOthers()&&(A=Math.ceil(this.len/x)+1),A<4&&(this.finalTickAmt=A,A=5),this.tickAmount=A},D.prototype.adjustTickAmount=function(){var p,x,A,N=this,_=N.finalTickAmt,L=N.max,O=N.min,j=N.options,Y=N.tickPositions,X=N.tickAmount,G=N.thresholdAlignment,q=Y&&Y.length,Q=e(N.threshold,N.softThreshold?0:null),J=N.tickInterval,rt=function(){return Y.push(g(Y[Y.length-1]+J))},lt=function(){return Y.unshift(g(Y[0]-J))};if(r(G)&&(A=G<.5?Math.ceil(G*(X-1)):Math.floor(G*(X-1)),j.reversed&&(A=X-1-A)),N.hasData()&&r(O)&&r(L)){var gt=function(){N.transA*=(q-1)/(X-1),N.min=j.startOnTick?Y[0]:Math.min(O,Y[0]),N.max=j.endOnTick?Y[Y.length-1]:Math.max(L,Y[Y.length-1])};if(r(A)&&r(N.threshold)){for(;Y[A]!==Q||Y.length!==X||Y[0]>O||Y[Y.length-1]<L;){for(Y.length=0,Y.push(N.threshold);Y.length<X;)Y[A]===void 0||Y[A]>N.threshold?lt():rt();if(J>8*N.tickInterval)break;J*=2}gt()}else if(q<X){for(;Y.length<X;)Y.length%2||O===Q?rt():lt();gt()}if(d(_)){for(x=p=Y.length;x--;)(_===3&&x%2==1||_<=2&&x>0&&x<p-1)&&Y.splice(x,1);N.finalTickAmt=void 0}}},D.prototype.setScale=function(){var p=this,x=!1,A=!1;p.series.forEach(function(_){x=x||_.isDirtyData||_.isDirty,A=A||_.xAxis&&_.xAxis.isDirty||!1}),p.setAxisSize();var N=p.len!==(p.old&&p.old.len);N||x||A||p.isLinked||p.forceRedraw||p.userMin!==(p.old&&p.old.userMin)||p.userMax!==(p.old&&p.old.userMax)||p.alignToOthers()?(p.stacking&&(p.stacking.resetStacks(),p.stacking.buildStacks()),p.forceRedraw=!1,p.getSeriesExtremes(),p.setTickInterval(),p.isDirty||(p.isDirty=N||p.min!==(p.old&&p.old.min)||p.max!==(p.old&&p.old.max))):p.stacking&&p.stacking.cleanStacks(),x&&p.panningState&&(p.panningState.isDirty=!0),c(this,"afterSetScale")},D.prototype.setExtremes=function(p,x,A,N,_){var L=this,O=L.chart;A=e(A,!0),L.series.forEach(function(j){delete j.kdTree}),_=C(_,{min:p,max:x}),c(L,"setExtremes",_,function(){L.userMin=p,L.userMax=x,L.eventArgs=_,A&&O.redraw(N)})},D.prototype.zoom=function(p,x){var A=this,N=this.dataMin,_=this.dataMax,L=this.options,O=Math.min(N,e(L.min,N)),j=Math.max(_,e(L.max,_)),Y={newMin:p,newMax:x};return c(this,"zoom",Y,function(X){var G=X.newMin,q=X.newMax;G===A.min&&q===A.max||(A.allowZoomOutside||(d(N)&&(G<O&&(G=O),G>j&&(G=j)),d(_)&&(q<O&&(q=O),q>j&&(q=j))),A.displayBtn=G!==void 0||q!==void 0,A.setExtremes(G,q,!1,void 0,{trigger:"zoom"})),X.zoomed=!0}),Y.zoomed},D.prototype.setAxisSize=function(){var p=this.chart,x=this.options,A=x.offsets||[0,0,0,0],N=this.horiz,_=this.width=Math.round(s(e(x.width,p.plotWidth-A[3]+A[1]),p.plotWidth)),L=this.height=Math.round(s(e(x.height,p.plotHeight-A[0]+A[2]),p.plotHeight)),O=this.top=Math.round(s(e(x.top,p.plotTop+A[0]),p.plotHeight,p.plotTop)),j=this.left=Math.round(s(e(x.left,p.plotLeft+A[3]),p.plotWidth,p.plotLeft));this.bottom=p.chartHeight-L-O,this.right=p.chartWidth-_-j,this.len=Math.max(N?_:L,0),this.pos=N?j:O},D.prototype.getExtremes=function(){var p=this,x=p.logarithmic;return{min:x?g(x.lin2log(p.min)):p.min,max:x?g(x.lin2log(p.max)):p.max,dataMin:p.dataMin,dataMax:p.dataMax,userMin:p.userMin,userMax:p.userMax}},D.prototype.getThreshold=function(p){var x=this,A=x.logarithmic,N=A?A.lin2log(x.min):x.min,_=A?A.lin2log(x.max):x.max;return p===null||p===-1/0?p=N:p===1/0?p=_:N>p?p=N:_<p&&(p=_),x.translate(p,0,1,0,1)},D.prototype.autoLabelAlign=function(p){var x=(e(p,0)-90*this.side+720)%360,A={align:"center"};return c(this,"autoLabelAlign",A,function(N){x>15&&x<165?N.align="right":x>195&&x<345&&(N.align="left")}),A.align},D.prototype.tickSize=function(p){var x,A=this.options,N=e(A[p==="tick"?"tickWidth":"minorTickWidth"],p==="tick"&&this.isXAxis&&!this.categories?1:0),_=A[p==="tick"?"tickLength":"minorTickLength"];N&&_&&(A[p+"Position"]==="inside"&&(_=-_),x=[_,N]);var L={tickSize:x};return c(this,"afterTickSize",L),L.tickSize},D.prototype.labelMetrics=function(){var p=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[p]&&this.ticks[p].label)},D.prototype.unsquish=function(){var p,x,A=this.options.labels,N=this.horiz,_=this.tickInterval,L=this.len/(((this.categories?1:0)+this.max-this.min)/_),O=A.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)*_>Y&&mt!==1/0&&L!==1/0&&Y&&(bt=Math.ceil(Y/_)),g(bt*_)},G=_,q=Number.MAX_VALUE;if(N){if(A.staggerLines||(r(O)?x=[O]:L<A.autoRotationLimit&&(x=A.autoRotation)),x)for(var Q=void 0,J=void 0,rt=0,lt=x;rt<lt.length;rt++){var gt=lt[rt];(gt===O||gt&>>=-90&><=90)&&(J=(Q=X(Math.abs(j.h/Math.sin(k*gt))))+Math.abs(gt/360))<q&&(q=J,p=gt,G=Q)}}else G=X(j.h);return this.autoRotation=x,this.labelRotation=e(p,r(O)?O:0),A.step?_:G},D.prototype.getSlotWidth=function(p){var x=this.chart,A=this.horiz,N=this.options.labels,_=Math.max(this.tickPositions.length-(this.categories?0:1),1),L=x.margin[3];if(p&&r(p.slotWidth))return p.slotWidth;if(A&&N.step<2)return N.rotation?0:(this.staggerLines||1)*this.len/_;if(!A){var O=N.style.width;if(O!==void 0)return parseInt(String(O),10);if(L)return L-x.spacing[3]}return .33*x.chartWidth},D.prototype.renderUnsquish=function(){var p,x,A,N,_,L=this.chart,O=L.renderer,j=this.tickPositions,Y=this.ticks,X=this.options.labels,G=X.style,q=this.horiz,Q=this.getSlotWidth(),J=Math.max(1,Math.round(Q-2*X.padding)),rt={},lt=this.labelMetrics(),gt=G.textOverflow,mt=0;if(a(X.rotation)||(rt.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>J&&mt>lt.h?rt.rotation=this.labelRotation:this.labelRotation=0;else if(Q&&(p=J,!gt))for(x="clip",N=j.length;!q&&N--;)_=j[N],(A=Y[_].label)&&(A.styles&&A.styles.textOverflow==="ellipsis"?A.css({textOverflow:"clip"}):A.textPxLength>Q&&A.css({width:Q+"px"}),A.getBBox().height>this.len/j.length-(lt.h-lt.f)&&(A.specificTextOverflow="ellipsis"));rt.rotation&&(p=mt>.5*L.chartHeight?.33*L.chartHeight:mt,gt||(x="ellipsis")),this.labelAlign=X.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(rt.align=this.labelAlign),j.forEach(function(bt){var yt=Y[bt],ht=yt&&yt.label,it=G.width,st={};ht&&(ht.attr(rt),yt.shortenLabel?yt.shortenLabel():p&&!it&&G.whiteSpace!=="nowrap"&&(p<ht.textPxLength||ht.element.tagName==="SPAN")?(st.width=p+"px",gt||(st.textOverflow=ht.specificTextOverflow||x),ht.css(st)):ht.styles&&ht.styles.width&&!st.width&&!it&&ht.css({width:null}),delete ht.specificTextOverflow,yt.rotation=rt.rotation)},this),this.tickRotCorr=O.rotCorr(lt.b,this.labelRotation||0,this.side!==0)},D.prototype.hasData=function(){return this.series.some(function(p){return p.hasData()})||this.options.showEmpty&&d(this.min)&&d(this.max)},D.prototype.addTitle=function(p){var x,A=this,N=A.chart.renderer,_=A.horiz,L=A.opposite,O=A.options.title,j=A.chart.styledMode;A.axisTitle||((x=O.textAlign)||(x=(_?{low:"left",middle:"center",high:"right"}:{low:L?"right":"left",middle:"center",high:L?"left":"right"})[O.align]),A.axisTitle=N.text(O.text||"",0,0,O.useHTML).attr({zIndex:7,rotation:O.rotation,align:x}).addClass("highcharts-axis-title"),j||A.axisTitle.css(t(O.style)),A.axisTitle.add(A.axisGroup),A.axisTitle.isNew=!0),j||O.style.width||A.isRadial||A.axisTitle.css({width:A.len+"px"}),A.axisTitle[p?"show":"hide"](p)},D.prototype.generateTick=function(p){var x=this.ticks;x[p]?x[p].addLabel():x[p]=new U(this,p)},D.prototype.getOffset=function(){var p,x,A,N,_=this,L=this,O=L.chart,j=L.horiz,Y=L.options,X=L.side,G=L.ticks,q=L.tickPositions,Q=L.coll,J=L.axisParent,rt=O.renderer,lt=O.inverted&&!L.isZAxis?[1,0,3,2][X]:X,gt=L.hasData(),mt=Y.title,bt=Y.labels,yt=O.axisOffset,ht=O.clipOffset,it=[-1,1,1,-1][X],st=Y.className,dt=0,vt=0,Ct=0;if(L.showAxis=p=gt||Y.showEmpty,L.staggerLines=L.horiz&&bt.staggerLines||void 0,!L.axisGroup){var xt=function(St,Tt,Lt){return rt.g(St).attr({zIndex:Lt}).addClass("highcharts-".concat(Q.toLowerCase()).concat(Tt," ")+(_.isRadial?"highcharts-radial-axis".concat(Tt," "):"")+(st||"")).add(J)};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(St){L.generateTick(St)}),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(St){Ct=Math.max(G[St].getLabelSize(),Ct)}),L.staggerLines&&(Ct*=L.staggerLines),L.labelOffset=Ct*(L.opposite?-1:1)):o(G,function(St,Tt){St.destroy(),delete G[Tt]}),mt&&mt.text&&mt.enabled!==!1&&(L.addTitle(p),p&&mt.reserveSpace!==!1&&(L.titleOffset=dt=L.axisTitle.getBBox()[j?"height":"width"],x=mt.offset,vt=d(x)?0:e(mt.margin,j?5:10))),L.renderLine(),L.offset=it*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,A=Math.abs(Ct)+vt,Ct&&(A-=N,A+=it*(j?e(bt.y,L.tickRotCorr.y+8*it):bt.x)),L.axisTitleMargin=e(x,A),L.getMaxLabelDimensions&&(L.maxLabelDimensions=L.getMaxLabelDimensions(G,q)),Q!=="colorAxis"){var wt=this.tickSize("tick");yt[X]=Math.max(yt[X],(L.axisTitleMargin||0)+dt+it*L.offset,A,q&&q.length&&wt?wt[0]+it*L.offset:0);var Mt=!L.axisLine||Y.offset?0:2*Math.floor(L.axisLine.strokeWidth()/2);ht[lt]=Math.max(ht[lt],Mt)}c(this,"afterGetOffset")},D.prototype.getLinePath=function(p){var x=this.chart,A=this.opposite,N=this.offset,_=this.horiz,L=this.left+(A?this.width:0)+N,O=x.chartHeight-this.bottom-(A?this.height:0)+N;return A&&(p*=-1),x.renderer.crispLine([["M",_?this.left:L,_?O:this.top],["L",_?x.chartWidth-this.right:L,_?O:x.chartHeight-this.bottom]],p)},D.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}))},D.prototype.getTitlePosition=function(){var p=this.horiz,x=this.left,A=this.top,N=this.len,_=this.options.title,L=p?x:A,O=this.opposite,j=this.offset,Y=_.x,X=_.y,G=this.axisTitle,q=this.chart.renderer.fontMetrics(_.style.fontSize,G),Q=G?Math.max(G.getBBox(!1,0).height-q.h-1,0):0,J={low:L+(p?0:N),middle:L+N/2,high:L+(p?N:0)}[_.align],rt=(p?A+this.height:x)+(p?1:-1)*(O?-1:1)*(this.axisTitleMargin||0)+[-Q,Q,q.f,-Q][this.side],lt={x:p?J+Y:rt+(O?this.width:0)+j+Y,y:p?rt+X-(O?this.height:0)+j:J+X};return c(this,"afterGetTitlePosition",{titlePosition:lt}),lt},D.prototype.renderMinorTick=function(p,x){var A=this.minorTicks;A[p]||(A[p]=new U(this,p,"minor")),x&&A[p].isNew&&A[p].render(null,!0),A[p].render(null,!1,1)},D.prototype.renderTick=function(p,x,A){var N=this,_=N.isLinked,L=N.ticks;(!_||p>=N.min&&p<=N.max||N.grid&&N.grid.isColumn)&&(L[p]||(L[p]=new U(N,p)),A&&L[p].isNew&&L[p].render(x,!0,-1),L[p].render(x))},D.prototype.render=function(){var p,x,A=this,N=A.chart,_=A.logarithmic,L=N.renderer,O=A.options,j=A.isLinked,Y=A.tickPositions,X=A.axisTitle,G=A.ticks,q=A.minorTicks,Q=A.alternateBands,J=O.stackLabels,rt=O.alternateGridColor,lt=A.tickmarkOffset,gt=A.axisLine,mt=A.showAxis,bt=I(L.globalAnimation);if(A.labelEdge.length=0,A.overlap=!1,[G,q,Q].forEach(function(it){o(it,function(st){st.isActive=!1})}),A.hasData()||j){var yt=A.chart.hasRendered&&A.old&&r(A.old.min);A.minorTickInterval&&!A.categories&&A.getMinorTickPositions().forEach(function(it){A.renderMinorTick(it,yt)}),Y.length&&(Y.forEach(function(it,st){A.renderTick(it,st,yt)}),lt&&(A.min===0||A.single)&&(G[-1]||(G[-1]=new U(A,-1,null,!0)),G[-1].render(-1))),rt&&Y.forEach(function(it,st){x=Y[st+1]!==void 0?Y[st+1]+lt:A.max-lt,st%2==0&&it<A.max&&x<=A.max+(N.polar?-lt:lt)&&(Q[it]||(Q[it]=new Z.PlotLineOrBand(A)),p=it+lt,Q[it].options={from:_?_.lin2log(p):p,to:_?_.lin2log(x):x,color:rt,className:"highcharts-alternate-grid"},Q[it].render(),Q[it].isActive=!0)}),A._addedPlotLB||(A._addedPlotLB=!0,(O.plotLines||[]).concat(O.plotBands||[]).forEach(function(it){A.addPlotBandOrLine(it)}))}if([G,q,Q].forEach(function(it){var st=[],dt=bt.duration;o(it,function(vt,Ct){vt.isActive||(vt.render(Ct,!1,0),vt.isActive=!1,st.push(Ct))}),b(function(){for(var vt=st.length;vt--;)it[st[vt]]&&!it[st[vt]].isActive&&(it[st[vt]].destroy(),delete it[st[vt]])},it!==Q&&N.hasRendered&&dt?dt:0)}),gt&&(gt[gt.isPlaced?"animate":"attr"]({d:this.getLinePath(gt.strokeWidth())}),gt.isPlaced=!0,gt[mt?"show":"hide"](mt)),X&&mt){var ht=A.getTitlePosition();X[X.isNew?"attr":"animate"](ht),X.isNew=!1}J&&J.enabled&&A.stacking&&A.stacking.renderStackTotals(),A.old={len:A.len,max:A.max,min:A.min,transA:A.transA,userMax:A.userMax,userMin:A.userMin},A.isDirty=!1,c(this,"afterRender")},D.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(p){p.render()})),this.series.forEach(function(p){p.isDirty=!0})},D.prototype.getKeepProps=function(){return this.keepProps||D.keepProps},D.prototype.destroy=function(p){var x=this,A=x.plotLinesAndBands,N=this.eventOptions;if(c(this,"destroy",{keepEvents:p}),p||n(x),[x.ticks,x.minorTicks,x.alternateBands].forEach(function(O){v(O)}),A)for(var _=A.length;_--;)A[_].destroy();for(var L in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(O){x[O]&&(x[O]=x[O].destroy())}),x.plotLinesAndBandsGroups)x.plotLinesAndBandsGroups[L]=x.plotLinesAndBandsGroups[L].destroy();o(x,function(O,j){x.getKeepProps().indexOf(j)===-1&&delete x[j]}),this.eventOptions=N},D.prototype.drawCrosshair=function(p,x){var A,N,_,L,O=this.crosshair,j=e(O&&O.snap,!0),Y=this.chart,X=this.cross;if(c(this,"drawCrosshair",{e:p,point:x}),p||(p=this.cross&&this.cross.e),O&&(d(x)||!j)!==!1){if(j?d(x)&&(N=e(this.coll!=="colorAxis"?x.crosshairPos:null,this.isXAxis?x.plotX:this.len-x.plotY)):N=p&&(this.horiz?p.chartX-this.pos:this.len-p.chartY+this.pos),d(N)&&(L={value:x&&(this.isXAxis?x.x:e(x.stackY,x.y)),translatedValue:N},Y.polar&&C(L,{isCrosshair:!0,chartX:p&&p.chartX,chartY:p&&p.chartY,point:x}),A=this.getPlotLinePath(L)||null),!d(A))return void this.hideCrosshair();_=this.categories&&!this.isRadial,X||(this.cross=X=Y.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(_?"category ":"thin ")+(O.className||"")).attr({zIndex:e(O.zIndex,2)}).add(),Y.styledMode||(X.attr({stroke:O.color||(_?H.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":e(O.width,1)}).css({"pointer-events":"none"}),O.dashStyle&&X.attr({dashstyle:O.dashStyle}))),X.show().attr({d:A}),_&&!O.width&&X.attr({"stroke-width":this.transA}),this.cross.e=p}else this.hideCrosshair();c(this,"afterDrawCrosshair",{e:p,point:x})},D.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),c(this,"afterHideCrosshair")},D.prototype.hasVerticalPanning=function(){var p=this.chart.options.chart.panning;return!!(p&&p.enabled&&/y/.test(p.type))},D.prototype.validatePositiveValue=function(p){return r(p)&&p>0},D.prototype.update=function(p,x){var A=this.chart;p=t(this.userOptions,p),this.destroy(!0),this.init(A,p),A.isDirtyBox=!0,e(x,!0)&&A.redraw()},D.prototype.remove=function(p){for(var x=this.chart,A=this.coll,N=this.series,_=N.length;_--;)N[_]&&N[_].remove(!1);w(x.axes,this),w(x[A],this),x[A].forEach(function(L,O){L.options.index=L.userOptions.index=O}),this.destroy(),x.isDirtyBox=!0,e(p,!0)&&x.redraw()},D.prototype.setTitle=function(p,x){this.update({title:p},x)},D.prototype.setCategories=function(p,x){this.update({categories:p},x)},D.defaultOptions=R.defaultXAxisOptions,D.keepProps=["extKey","hcEvents","names","series","userMax","userMin"],D}()}),et(B,"Core/Axis/DateTimeAxis.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.getMagnitude,$=W.normalizeTickInterval,Z=W.timeUnits;return function(U){var z=[];function I(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function E(k){var y=this;k.userOptions.type==="datetime"?y.dateTime||(y.dateTime=new M(y)):y.dateTime=void 0}U.compose=function(k){return z.indexOf(k)===-1&&(z.push(k),k.keepProps.push("dateTime"),k.prototype.getTimeTicks=I,H(k,"init",E)),k};var M=function(){function k(y){this.axis=y}return k.prototype.normalizeTimeTickInterval=function(y,h){var u,g=h||[["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]],d=g[g.length-1],v=Z[d[0]],w=d[1];for(u=0;u<g.length&&(d=g[u],v=Z[d[0]],w=d[1],!(g[u+1]&&y<=(v*w[w.length-1]+Z[g[u+1][0]])/2));u++);return v===Z.year&&y<5*v&&(w=[1,2,5]),{unitRange:v,count:$(y/v,w,d[0]==="year"?Math.max(V(y/v),1):1),unitName:d[0]}},k.prototype.getXDateFormat=function(y,h){var u=this.axis,g=u.chart.time;return u.closestPointRange?g.getDateFormat(u.closestPointRange,y,u.options.startOfWeek,h)||g.resolveDTLFormat(h.year).main:g.resolveDTLFormat(h.day).main},k}();U.Additions=M}(R||(R={})),R}),et(B,"Core/Axis/LogarithmicAxis.js",[B["Core/Utilities.js"]],function(W){var R,H=W.addEvent,V=W.normalizeTickInterval,$=W.pick;return function(Z){var U=[];function z(M){var k=this,y=M.userOptions,h=k.logarithmic;y.type!=="logarithmic"?k.logarithmic=void 0:h||(h=k.logarithmic=new E(k))}function I(){var M=this,k=M.logarithmic;k&&(M.lin2val=function(y){return k.lin2log(y)},M.val2lin=function(y){return k.log2lin(y)})}Z.compose=function(M){return U.indexOf(M)===-1&&(U.push(M),M.keepProps.push("logarithmic"),H(M,"init",z),H(M,"afterInit",I)),M};var E=function(){function M(k){this.axis=k}return M.prototype.getLogTickPositions=function(k,y,h,u){var g=this,d=g.axis,v=d.len,w=d.options,S=[];if(u||(g.minorAutoInterval=void 0),k>=.5)k=Math.round(k),S=d.getLinearTickPositions(k,y,h);else if(k>=.08){var C,c=void 0,f=void 0,r=void 0,a=void 0,t=void 0,i=void 0;for(C=k>.3?[1,2,4]:k>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],c=Math.floor(y);c<h+1&&!i;c++)for(r=C.length,f=0;f<r&&!i;f++)(a=g.log2lin(g.lin2log(c)*C[f]))>y&&(!u||t<=h)&&t!==void 0&&S.push(t),t>h&&(i=!0),t=a}else{var o=g.lin2log(y),e=g.lin2log(h),s=u?d.getMinorTickInterval():w.tickInterval,n=s==="auto"?null:s,l=w.tickPixelInterval/(u?5:1),b=u?v/d.tickPositions.length:v;k=$(n,g.minorAutoInterval,(e-o)*l/(b||1)),k=V(k),S=d.getLinearTickPositions(k,o,e).map(g.log2lin),u||(g.minorAutoInterval=k/5)}return u||(d.tickInterval=k),S},M.prototype.lin2log=function(k){return Math.pow(10,k)},M.prototype.log2lin=function(k){return Math.log(k)/Math.LN10},M}();Z.Additions=E}(R||(R={})),R}),et(B,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[B["Core/Utilities.js"]],function(W){var R,H=W.erase,V=W.extend,$=W.isNumber;return function(Z){var U,z=[];Z.compose=function(E,M){return U||(U=E),z.indexOf(M)===-1&&(z.push(M),V(M.prototype,I.prototype)),M};var I=function(){function E(){}return E.prototype.getPlotBandPath=function(M,k,y){y===void 0&&(y=this.options);var h,u,g=this.getPlotLinePath({value:k,force:!0,acrossPanes:y.acrossPanes}),d=[],v=this.horiz,w=!$(this.min)||!$(this.max)||M<this.min&&k<this.min||M>this.max&&k>this.max,S=this.getPlotLinePath({value:M,force:!0,acrossPanes:y.acrossPanes}),C=1;if(S&&g)for(w&&(u=S.toString()===g.toString(),C=0),h=0;h<S.length;h+=2){var c=S[h],f=S[h+1],r=g[h],a=g[h+1];c[0]!=="M"&&c[0]!=="L"||f[0]!=="M"&&f[0]!=="L"||r[0]!=="M"&&r[0]!=="L"||a[0]!=="M"&&a[0]!=="L"||(v&&r[1]===c[1]?(r[1]+=C,a[1]+=C):v||r[2]!==c[2]||(r[2]+=C,a[2]+=C),d.push(["M",c[1],c[2]],["L",f[1],f[2]],["L",a[1],a[2]],["L",r[1],r[2]],["Z"])),d.isFlat=u}else S=null;return d},E.prototype.addPlotBand=function(M){return this.addPlotBandOrLine(M,"plotBands")},E.prototype.addPlotLine=function(M){return this.addPlotBandOrLine(M,"plotLines")},E.prototype.addPlotBandOrLine=function(M,k){var y=this,h=this.userOptions,u=new U(this,M);if(this.visible&&(u=u.render()),u){if(this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(d){y.addPlotBandOrLine(d)})),k){var g=h[k]||[];g.push(M),h[k]=g}this.plotLinesAndBands.push(u)}return u},E.prototype.removePlotBandOrLine=function(M){var k=this.plotLinesAndBands,y=this.options,h=this.userOptions;if(k){for(var u=k.length;u--;)k[u].id===M&&k[u].destroy();[y.plotLines||[],h.plotLines||[],y.plotBands||[],h.plotBands||[]].forEach(function(g){for(u=g.length;u--;)(g[u]||{}).id===M&&H(g,g[u])})}},E.prototype.removePlotBand=function(M){this.removePlotBandOrLine(M)},E.prototype.removePlotLine=function(M){this.removePlotBandOrLine(M)},E}()}(R||(R={})),R}),et(B,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[B["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],B["Core/Utilities.js"]],function(W,R){var H=R.arrayMax,V=R.arrayMin,$=R.defined,Z=R.destroyObjectProperties,U=R.erase,z=R.fireEvent,I=R.merge,E=R.objectEach,M=R.pick;return function(){function k(y,h){this.axis=y,h&&(this.options=h,this.id=h.id)}return k.compose=function(y){return W.compose(k,y)},k.prototype.render=function(){z(this,"render");var y,h=this,u=h.axis,g=u.horiz,d=u.logarithmic,v=h.options,w=v.color,S=M(v.zIndex,0),C=v.events,c={},f=u.chart.renderer,r=v.label,a=h.label,t=v.to,i=v.from,o=v.value,e=h.svgElem,s=[],n=$(i)&&$(t),l=$(o),b=!e,T={class:"highcharts-plot-"+(n?"band ":"line ")+(v.className||"")},D=n?"bands":"lines";if(d&&(i=d.log2lin(i),t=d.log2lin(t),o=d.log2lin(o)),u.chart.styledMode||(l?(T.stroke=w||"#999999",T["stroke-width"]=M(v.width,1),v.dashStyle&&(T.dashstyle=v.dashStyle)):n&&(T.fill=w||"#e6ebf5",v.borderWidth&&(T.stroke=v.borderColor,T["stroke-width"]=v.borderWidth))),c.zIndex=S,D+="-"+S,(y=u.plotLinesAndBandsGroups[D])||(u.plotLinesAndBandsGroups[D]=y=f.g("plot-"+D).attr(c).add()),b&&(h.svgElem=e=f.path().attr(T).add(y)),l)s=u.getPlotLinePath({value:o,lineWidth:e.strokeWidth(),acrossPanes:v.acrossPanes});else{if(!n)return;s=u.getPlotBandPath(i,t,v)}return!h.eventsAdded&&C&&(E(C,function(p,x){e.on(x,function(A){C[x].apply(h,[A])})}),h.eventsAdded=!0),(b||!e.d)&&s&&s.length?e.attr({d:s}):e&&(s?(e.show(),e.animate({d:s})):e.d&&(e.hide(),a&&(h.label=a=a.destroy()))),r&&($(r.text)||$(r.formatter))&&s&&s.length&&u.width>0&&u.height>0&&!s.isFlat?(r=I({align:g&&n&&"center",x:g?!n&&4:10,verticalAlign:!g&&n&&"middle",y:g?n?16:10:n?6:-4,rotation:g&&!n&&90},r),this.renderLabel(r,s,n,S)):a&&a.hide(),h},k.prototype.renderLabel=function(y,h,u,g){var d=this,v=d.axis,w=v.chart.renderer,S=d.label;S||(d.label=S=w.text(this.getLabelText(y),0,0,y.useHTML).attr({align:y.textAlign||y.align,rotation:y.rotation,class:"highcharts-plot-"+(u?"band":"line")+"-label "+(y.className||""),zIndex:g}).add(),v.chart.styledMode||S.css(I({textOverflow:"ellipsis"},y.style)));var C=h.xBounds||[h[0][1],h[1][1],u?h[2][1]:h[0][1]],c=h.yBounds||[h[0][2],h[1][2],u?h[2][2]:h[0][2]],f=V(C),r=V(c);if(S.align(y,!1,{x:f,y:r,width:H(C)-f,height:H(c)-r}),!S.alignValue||S.alignValue==="left"){var a=y.clip?v.width:v.chart.chartWidth;S.css({width:(S.rotation===90?v.height-(S.alignAttr.y-v.top):a-(S.alignAttr.x-v.left))+"px"})}S.show(!0)},k.prototype.getLabelText=function(y){return $(y.formatter)?y.formatter.call(this):y.text},k.prototype.destroy=function(){U(this.axis.plotLinesAndBands,this),delete this.axis,Z(this)},k}()}),et(B,"Core/Tooltip.js",[B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.format,U=R.doc,z=H.distribute,I=$.clamp,E=$.css,M=$.discardElement,k=$.extend,y=$.fireEvent,h=$.isArray,u=$.isNumber,g=$.isString,d=$.merge,v=$.pick,w=$.splat,S=$.syncTimeout;return function(){function C(c,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=c,this.init(c,f)}return C.prototype.applyFilter=function(){var c=this.chart;c.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+c.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(c){return c.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(c){this.chart.series.forEach(function(f){var r=f&&f.tt;r&&(!r.isActive||c?f.tt=r.destroy():r.isActive=!1)})},C.prototype.defaultFormatter=function(c){var f,r=this.points||w(this);return(f=(f=[c.tooltipFooterHeaderFormatter(r[0])]).concat(c.bodyFormatter(r))).push(c.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(),M(this.container)),$.clearTimeout(this.hideTimer),$.clearTimeout(this.tooltipTimeout)},C.prototype.getAnchor=function(c,f){var r,a=this.chart,t=a.pointer,i=a.inverted,o=a.plotTop,e=a.plotLeft;if((c=w(c))[0].series&&c[0].series.yAxis&&!c[0].series.yAxis.options.reversedStacks&&(c=c.slice().reverse()),this.followPointer&&f)f.chartX===void 0&&(f=t.normalize(f)),r=[f.chartX-e,f.chartY-o];else if(c[0].tooltipPos)r=c[0].tooltipPos;else{var s=0,n=0;c.forEach(function(l){var b=l.pos(!0);b&&(s+=b[0],n+=b[1])}),s/=c.length,n/=c.length,this.shared&&c.length>1&&f&&(i?s=f.chartX:n=f.chartY),r=[s-e,n-o]}return r.map(Math.round)},C.prototype.getClassName=function(c,f,r){var a=this.options,t=c.series,i=t.options;return[a.className,"highcharts-label",r&&"highcharts-tooltip-header",f?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+v(c.colorIndex,t.colorIndex),i&&i.className].filter(g).join(" ")},C.prototype.getLabel=function(){var c,f=this,r=this.chart.styledMode,a=this.options,t=this.split&&this.allowShared,i=a.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 s=this.chart.options.chart.style,n=V.getRendererType();this.container=c=R.doc.createElement("div"),c.className="highcharts-tooltip-container",E(c,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(s&&s.zIndex||0)+3)}),R.doc.body.appendChild(c),this.renderer=o=new n(c,0,0,s,void 0,void 0,o.styledMode)}if(t?this.label=o.g("tooltip"):(this.label=o.label("",0,0,a.shape,void 0,void 0,a.useHTML,void 0,"tooltip").attr({padding:a.padding,r:a.borderRadius}),r||this.label.attr({fill:a.backgroundColor,"stroke-width":a.borderWidth}).css(a.style).css({pointerEvents:i}).shadow(a.shadow)),r&&a.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),f.outside&&!f.split){var l=this.label,b=l.xSetter,T=l.ySetter;l.xSetter=function(D){b.call(l,f.distance),c.style.left=D+"px"},l.ySetter=function(D){T.call(l,f.distance),c.style.top=D+"px"}}this.label.attr({zIndex:8}).add()}return this.label},C.prototype.getPosition=function(c,f,r){var a,t=this.chart,i=this.distance,o={},e=t.inverted&&r.h||0,s=this.outside,n=s?U.documentElement.clientWidth-2*i:t.chartWidth,l=s?Math.max(U.body.scrollHeight,U.documentElement.scrollHeight,U.body.offsetHeight,U.documentElement.offsetHeight,U.documentElement.clientHeight):t.chartHeight,b=t.pointer.getChartPosition(),T=function(X){return X*b.scaleX},D=function(X){return X*b.scaleY},p=function(X){var G=X==="x";return[X,G?n:l,G?c:f].concat(s?[G?T(c):D(f),G?b.left-i+T(r.plotX+t.plotLeft):b.top-i+D(r.plotY+t.plotTop),0,G?n:l]:[G?c:f,G?r.plotX+t.plotLeft:r.plotY+t.plotTop,G?t.plotLeft:t.plotTop,G?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])},x=p("y"),A=p("x"),N=!!r.negative;!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(N=!N);var _=!this.followPointer&&v(r.ttBelow,!t.inverted===N),L=function(X,G,q,Q,J,rt,lt){var gt=s?X==="y"?D(i):T(i):i,mt=(q-Q)/2,bt=Q<J-i,yt=J+i+Q<G,ht=J-gt-q+mt,it=J+gt-mt;if(_&&yt)o[X]=it;else if(!_&&bt)o[X]=ht;else if(bt)o[X]=Math.min(lt-Q,ht-e<0?ht:ht-e);else{if(!yt)return!1;o[X]=Math.max(rt,it+e+q>G?it:it+e)}},O=function(X,G,q,Q,J){var rt;return J<i||J>G-i?rt=!1:o[X]=J<q/2?1:J>G-Q/2?G-Q-2:J-q/2,rt},j=function(X){var G=x;x=A,A=G,a=X},Y=function(){L.apply(0,x)!==!1?O.apply(0,A)!==!1||a||(j(!0),Y()):a?o.x=o.y=0:(j(!0),Y())};return(t.inverted||this.len>1)&&j(),Y(),o},C.prototype.hide=function(c){var f=this;$.clearTimeout(this.hideTimer),c=v(c,this.options.hideDelay),this.isHidden||(this.hideTimer=S(function(){f.getLabel().fadeOut(c&&void 0),f.isHidden=!0},c))},C.prototype.init=function(c,f){this.chart=c,this.options=f,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=f.split&&!c.inverted&&!c.polar,this.shared=f.shared||this.split,this.outside=v(f.outside,!!(c.scrollablePixelsX||c.scrollablePixelsY))},C.prototype.shouldStickOnContact=function(c){return!(this.followPointer||!this.options.stickOnContact||c&&!this.chart.pointer.inClass(c.target,"highcharts-tooltip"))},C.prototype.move=function(c,f,r,a){var t=this,i=t.now,o=t.options.animation!==!1&&!t.isHidden&&(Math.abs(c-i.x)>1||Math.abs(f-i.y)>1),e=t.followPointer||t.len>1;k(i,{x:o?(2*i.x+c)/3:c,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+a)/2:a}),t.getLabel().attr(i),t.drawTracker(),o&&($.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){t&&t.move(c,f,r,a)},32))},C.prototype.refresh=function(c,f){var r=this,a=this.chart,t=r.options,i=a.pointer,o=w(c),e=o[0],s=[],n=t.formatter||r.defaultFormatter,l=r.shared,b=a.styledMode,T={};if(t.enabled&&e.series){$.clearTimeout(this.hideTimer),r.allowShared=!(!h(c)&&c.series&&c.series.noSharedTooltip),r.followPointer=!r.split&&e.series.tooltipOptions.followPointer;var D=r.getAnchor(c,f),p=D[0],x=D[1];l&&r.allowShared?(i.applyInactiveState(o),o.forEach(function(j){j.setState("hover"),s.push(j.getLabelConfig())}),(T={x:e.category,y:e.y}).points=s):T=e.getLabelConfig(),this.len=s.length;var A=n.call(T,r),N=e.series;if(this.distance=v(N.tooltipOptions.distance,16),A===!1)this.hide();else{if(r.split&&r.allowShared)this.renderSplit(A,o);else{var _=p,L=x;if(f&&i.isDirectTouch&&(_=f.chartX-a.plotLeft,L=f.chartY-a.plotTop),!a.polar&&N.options.clip!==!1&&!o.some(function(j){return i.isDirectTouch||j.series.shouldShowTooltip(_,L)}))return void r.hide();var O=r.getLabel();t.style.width&&!b||O.css({width:a.spacingBox.width+"px"}),O.attr({text:A&&A.join?A.join(""):A}),O.addClass(r.getClassName(e),!0),b||O.attr({stroke:t.borderColor||e.color||N.color||"#666666"}),r.updatePosition({plotX:p,plotY:x,negative:e.negative,ttBelow:e.ttBelow,h:D[2]||0})}r.isHidden&&r.label&&r.label.attr({opacity:1}).show(),r.isHidden=!1}y(this,"refresh")}},C.prototype.renderSplit=function(c,f){var r=this,a=r.chart,t=r.chart,i=t.chartWidth,o=t.chartHeight,e=t.plotHeight,s=t.plotLeft,n=t.plotTop,l=t.pointer,b=t.scrollablePixelsY,T=b===void 0?0:b,D=t.scrollablePixelsX,p=t.scrollingContainer,x=p===void 0?{scrollLeft:0,scrollTop:0}:p,A=x.scrollLeft,N=x.scrollTop,_=t.styledMode,L=r.distance,O=r.options,j=r.options.positioner,Y=r.outside&&typeof D!="number"?U.documentElement.getBoundingClientRect():{left:A,right:A+i,top:N,bottom:N+o},X=r.getLabel(),G=this.renderer||a.renderer,q=!!(a.xAxis[0]&&a.xAxis[0].opposite),Q=l.getChartPosition(),J=Q.left,rt=Q.top,lt=n+N,gt=0,mt=e-T;function bt(St,Tt,Lt,Pt,Dt){var jt,Ot;return Dt===void 0&&(Dt=!0),Lt?(jt=q?0:mt,Ot=I(St-Pt/2,Y.left,Y.right-Pt-(r.outside?J:0))):(jt=Tt-lt,Ot=I(Ot=Dt?St-Pt-L:St+L,Dt?Ot:Y.left,Y.right)),{x:Ot,y:jt}}g(c)&&(c=[!1,c]);var yt=c.slice(0,f.length+1).reduce(function(St,Tt,Lt){if(Tt!==!1&&Tt!==""){var Pt=f[Lt-1]||{isHeader:!0,plotX:f[0].plotX,plotY:e,series:{}},Dt=Pt.isHeader,jt=Dt?r:Pt.series,Ot=jt.tt=function(Ut,te,ye){var Et=Ut,Gt=te.isHeader,Yt=te.series;if(!Et){var $t={padding:O.padding,r:O.borderRadius};_||($t.fill=O.backgroundColor,$t["stroke-width"]=O.borderWidth),Et=G.label("",0,0,O[Gt?"headerShape":"shape"],void 0,void 0,O.useHTML).addClass(r.getClassName(te,!0,Gt)).attr($t).add(X)}return Et.isActive=!0,Et.attr({text:ye}),_||Et.css(O.style).shadow(O.shadow).attr({stroke:O.borderColor||te.color||Yt.color||"#333333"}),Et}(jt.tt,Pt,Tt.toString()),It=Ot.getBBox(),Nt=It.width+Ot.strokeWidth();Dt&&(gt=It.height,mt+=gt,q&&(lt-=gt));var Zt=function(Ut){var te,ye,Et=Ut.isHeader,Gt=Ut.plotX,Yt=Gt===void 0?0:Gt,$t=Ut.plotY,ce=$t===void 0?0:$t,pe=Ut.series;if(Et)te=s+Yt,ye=n+e/2;else{var Wt=pe.xAxis,At=pe.yAxis;te=Wt.pos+I(Yt,-L,Wt.len+L),pe.shouldShowTooltip(0,At.pos-n+ce,{ignoreX:!0})&&(ye=At.pos+ce)}return{anchorX:te=I(te,Y.left-L,Y.right+L),anchorY:ye}}(Pt),zt=Zt.anchorX,Ht=Zt.anchorY;if(typeof Ht=="number"){var Kt=It.height+1,me=j?j.call(r,Nt,Kt,Pt):bt(zt,Ht,Dt,Nt);St.push({align:j?0:void 0,anchorX:zt,anchorY:Ht,boxWidth:Nt,point:Pt,rank:v(me.rank,Dt?1:0),size:Kt,target:me.y,tt:Ot,x:me.x})}else Ot.isActive=!1}return St},[]);!j&&yt.some(function(St){var Tt=(r.outside?J:0)+St.anchorX;return Tt<Y.left&&Tt+St.boxWidth<Y.right||Tt<J-Y.left+St.boxWidth&&Y.right-Tt>Tt})&&(yt=yt.map(function(St){var Tt=bt(St.anchorX,St.anchorY,St.point.isHeader,St.boxWidth,!1),Lt=Tt.x,Pt=Tt.y;return k(St,{target:Pt,x:Lt})})),r.cleanSplit(),z(yt,mt);var ht={left:J,right:J};yt.forEach(function(St){var Tt=St.x,Lt=St.boxWidth,Pt=St.isHeader;Pt||(r.outside&&J+Tt<ht.left&&(ht.left=J+Tt),!Pt&&r.outside&&ht.left+Lt>ht.right&&(ht.right=J+Tt))}),yt.forEach(function(St){var Tt=St.x,Lt=St.anchorX,Pt=St.anchorY,Dt=St.pos,jt=St.point.isHeader,Ot={visibility:Dt===void 0?"hidden":"inherit",x:Tt,y:(Dt||0)+lt,anchorX:Lt,anchorY:Pt};if(r.outside&&Tt<Lt){var It=J-ht.left;It>0&&(jt||(Ot.x=Tt+It,Ot.anchorX=Lt+It),jt&&(Ot.x=(ht.right-ht.left)/2,Ot.anchorX=Lt+It))}St.tt.attr(Ot)});var it=r.container,st=r.outside,dt=r.renderer;if(st&&it&&dt){var vt=X.getBBox(),Ct=vt.width,xt=vt.height,wt=vt.x,Mt=vt.y;dt.setSize(Ct+wt,xt+Mt,!1),it.style.left=ht.left+"px",it.style.top=rt+"px"}},C.prototype.drawTracker=function(){var c=this;if(this.shouldStickOnContact()){var f=c.chart,r=c.label,a=c.shared?f.hoverPoints:f.hoverPoint;if(r&&a){var t={x:0,y:0,width:0,height:0},i=this.getAnchor(a),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),c.tracker?c.tracker.attr(t):(c.tracker=r.renderer.rect(t).addClass("highcharts-tracker").add(r),f.styledMode||c.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else c.tracker&&c.tracker.destroy()},C.prototype.styledModeFormat=function(c){return c.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(c,f){var r=c.series,a=r.tooltipOptions,t=r.xAxis,i=t&&t.dateTime,o={isFooter:f,labelConfig:c},e=a.xDateFormat,s=a[f?"footerFormat":"headerFormat"];return y(this,"headerFormatter",o,function(n){i&&!e&&u(c.key)&&(e=i.getXDateFormat(c.key,a.dateTimeLabelFormats)),i&&e&&(c.point&&c.point.tooltipDateKeys||["key"]).forEach(function(l){s=s.replace("{point."+l+"}","{point."+l+":"+e+"}")}),r.chart.styledMode&&(s=this.styledModeFormat(s)),n.text=Z(s,{point:c,series:r},this.chart)}),o.text},C.prototype.update=function(c){this.destroy(),d(!0,this.chart.options.tooltip.userOptions,c),this.init(this.chart,d(!0,this.options,c))},C.prototype.updatePosition=function(c){var f,r=this,a=r.chart,t=r.distance,i=r.options,o=a.pointer,e=this.getLabel(),s=o.getChartPosition(),n=s.left,l=s.top,b=s.scaleX,T=s.scaleY,D=(i.positioner||this.getPosition).call(this,e.width,e.height,c),p=(c.plotX||0)+a.plotLeft,x=(c.plotY||0)+a.plotTop;this.outside&&(i.positioner&&(D.x+=n-t,D.y+=l-t),f=i.borderWidth+2*t,this.renderer.setSize(e.width+f,e.height+f,!1),b===1&&T===1||(E(this.container,{transform:"scale(".concat(b,", ").concat(T,")")}),p*=b,x*=T),p+=n-D.x,x+=l-D.y),this.move(Math.round(D.x),Math.round(D.y||0),p,x)},C}()}),et(B,"Core/Series/Point.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Animation/AnimationUtilities.js"],B["Core/Defaults.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=R.animObject,U=H.defaultOptions,z=V.format,I=$.addEvent,E=$.defined,M=$.erase,k=$.extend,y=$.fireEvent,h=$.getNestedProperty,u=$.isArray,g=$.isFunction,d=$.isNumber,v=$.isObject,w=$.merge,S=$.objectEach,C=$.pick,c=$.syncTimeout,f=$.removeEvent,r=$.uniqueKey;return function(){function a(){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 a.prototype.animateBeforeDestroy=function(){var t=this,i={x:t.startXPos,opacity:0},o=t.getGraphicalProps();o.singular.forEach(function(e){var s=e==="dataLabel";t[e]=t[e].animate(s?{x:t[e].startXPos,y:t[e].startYPos,opacity:0}:i)}),o.plural.forEach(function(e){t[e].forEach(function(s){s.element&&s.animate(k({x:t.startXPos},s.startYPos?{x:s.startXPos,y:s.startYPos}:{}))})})},a.prototype.applyOptions=function(t,i){var o=this,e=o.series,s=e.options.pointValKey||e.pointValKey;return t=a.prototype.optionsToObject.call(this,t),k(o,t),o.options=o.options?k(o.options,t):t,t.group&&delete o.group,t.dataLabels&&delete o.dataLabels,s&&(o.y=a.prototype.getNestedProperty.call(o,s)),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:d(t.x)&&e.options.relativeXValue&&(o.x=e.autoIncrement(t.x)),o},a.prototype.destroy=function(){var t,i=this,o=i.series,e=o.chart,s=o.options.dataSorting,n=e.hoverPoints,l=i.series.chart.renderer.globalAnimation,b=Z(l);function T(){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),n&&(i.setState(),M(n,i),n.length||(e.hoverPoints=null)),i===e.hoverPoint&&i.onMouseOut(),s&&s.enabled?(this.animateBeforeDestroy(),c(T,b.duration)):T(),e.pointCount--},a.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(s){s&&s.element&&s.destroy()}),delete i[e]})},a.prototype.firePointEvent=function(t,i,o){var e=this,s=this.series.options;(s.point.events[t]||e.options&&e.options.events&&e.options.events[t])&&e.importEvents(),t==="click"&&s.allowPointSelect&&(o=function(n){e.select&&e.select(null,n.ctrlKey||n.metaKey||n.shiftKey)}),y(e,t,i,o)},a.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",""):"")},a.prototype.getGraphicalProps=function(t){var i,o,e=this,s=[],n={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&s.push("graphic","shadowGroup"),t.dataLabel&&s.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),o=s.length;o--;)i=s[o],e[i]&&n.singular.push(i);return["graphic","dataLabel","connector"].forEach(function(l){var b=l+"s";t[l]&&e[b]&&n.plural.push(b)}),n},a.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}},a.prototype.getNestedProperty=function(t){if(t)return t.indexOf("custom.")===0?h(t,this.options):this[t]},a.prototype.getZone=function(){var t,i=this.series,o=i.zones,e=i.zoneAxis||"y",s=0;for(t=o[s];this[e]>=t.value;)t=o[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},a.prototype.hasNewShapeType=function(){var t=this;return(t.graphic&&(t.graphic.symbolName||t.graphic.element.nodeName))!==this.shapeType},a.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},a.prototype.isValid=function(){return this.x!==null&&d(this.y)},a.prototype.optionsToObject=function(t){var i,o=this.series,e=o.options.keys,s=e||o.pointArrayMap||["y"],n=s.length,l={},b=0,T=0;if(d(t)||t===null)l[s[0]]=t;else if(u(t))for(!e&&t.length>n&&((i=typeof t[0])=="string"?l.name=t[0]:i==="number"&&(l.x=t[0]),b++);T<n;)e&&t[b]===void 0||(s[T].indexOf(".")>0?a.prototype.setNestedProperty(l,t[b],s[T]):l[s[T]]=t[b]),b++,T++;else typeof t=="object"&&(l=t,t.dataLabels&&(o._hasPointLabels=!0),t.marker&&(o._hasPointMarkers=!0));return l},a.prototype.pos=function(t,i){i===void 0&&(i=this.plotY);var o=this.plotX,e=this.series,s=e.chart,n=e.xAxis,l=e.yAxis,b=0,T=0;if(d(o)&&d(i))return t&&(b=n?n.pos:s.plotLeft,T=l?l.pos:s.plotTop),s.inverted&&n&&l?[l.len-i+T,n.len-o+b]:[o+b,i+T]},a.prototype.resolveColor=function(){var t,i,o,e=this.series,s=e.chart.options.chart,n=e.chart.styledMode,l=s.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(n||(t=(i=e.options.colors||e.chart.options.colors)[e.colorCounter],l=i.length),o=e.colorCounter,e.colorCounter++,e.colorCounter===l&&(e.colorCounter=0)):(n||(t=e.color),o=e.colorIndex),this.colorIndex=C(this.options.colorIndex,o),this.color=C(this.options.color,t)},a.prototype.setNestedProperty=function(t,i,o){return o.split(".").reduce(function(e,s,n,l){var b=l.length-1===n;return e[s]=b?i:v(e[s],!0)?e[s]:{},e[s]},t),t},a.prototype.shouldDraw=function(){return!this.isNull},a.prototype.tooltipFormatter=function(t){var i=this.series,o=i.tooltipOptions,e=C(o.valueDecimals,""),s=o.valuePrefix||"",n=o.valueSuffix||"";return i.chart.styledMode&&(t=i.chart.tooltip.styledModeFormat(t)),(i.pointArrayMap||["y"]).forEach(function(l){l="{point."+l,(s||n)&&(t=t.replace(RegExp(l+"}","g"),s+l+"}"+n)),t=t.replace(RegExp(l+"}","g"),l+":,."+e+"f}")}),z(t,{point:this,series:this.series},i.chart)},a.prototype.update=function(t,i,o,e){var s,n=this,l=n.series,b=n.graphic,T=l.chart,D=l.options;function p(){n.applyOptions(t);var x=b&&n.hasMockGraphic,A=n.y===null?!x:x;b&&A&&(n.graphic=b.destroy(),delete n.hasMockGraphic),v(t,!0)&&(b&&b.element&&t&&t.marker&&t.marker.symbol!==void 0&&(n.graphic=b.destroy()),t&&t.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy())),s=n.index,l.updateParallelArrays(n,s),D.data[s]=v(D.data[s],!0)||v(t,!0)?n.options:C(t,D.data[s]),l.isDirty=l.isDirtyData=!0,!l.fixedBox&&l.hasCartesianSeries&&(T.isDirtyBox=!0),D.legendType==="point"&&(T.isDirtyLegend=!0),i&&T.redraw(o)}i=C(i,!0),e===!1?p():n.firePointEvent("update",{options:t},p)},a.prototype.remove=function(t,i){this.series.removePoint(this.series.data.indexOf(this),t,i)},a.prototype.select=function(t,i){var o=this,e=o.series,s=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||s.getSelectedPoints().forEach(function(n){var l=n.series;n.selected&&n!==o&&(n.selected=n.options.selected=!1,l.options.data[l.data.indexOf(n)]=n.options,n.setState(s.hoverPoints&&l.options.inactiveOtherPoints?"inactive":""),n.firePointEvent("unselect"))})}),delete this.selectedStaging},a.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)},a.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},a.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,i=w(t.series.options.point,t.options).events;t.events=i,S(i,function(o,e){g(o)&&I(t,e,o)}),this.hasImportedEvents=!0}},a.prototype.setState=function(t,i){var o,e,s,n,l=this,b=l.series,T=l.state,D=b.options.states[t||"normal"]||{},p=U.plotOptions[b.type].marker&&b.options.marker,x=p&&p.enabled===!1,A=p&&p.states&&p.states[t||"normal"]||{},N=A.enabled===!1,_=l.marker||{},L=b.chart,O=p&&b.markerAttribs,j=b.halo,Y=b.stateMarkerGraphic;if(!((t=t||"")===l.state&&!i||l.selected&&t!=="select"||D.enabled===!1||t&&(N||x&&A.enabled===!1)||t&&_.states&&_.states[t]&&_.states[t].enabled===!1)){if(l.state=t,O&&(o=b.markerAttribs(l,t)),l.graphic&&!l.hasMockGraphic){if(T&&l.graphic.removeClass("highcharts-point-"+T),t&&l.graphic.addClass("highcharts-point-"+t),!L.styledMode){e=b.pointAttribs(l,t),s=C(L.options.chart.animation,D.animation);var X=e.opacity;b.options.inactiveOtherPoints&&d(X)&&((l.dataLabels||[]).forEach(function(J){J&&!J.hasClass("highcharts-data-label-hidden")&&J.animate({opacity:X},s)}),l.connector&&l.connector.animate({opacity:X},s)),l.graphic.animate(e,s)}o&&l.graphic.animate(o,C(L.options.chart.animation,A.animation,p.animation)),Y&&Y.hide()}else t&&A&&(n=_.symbol||b.symbol,Y&&Y.currentSymbol!==n&&(Y=Y.destroy()),o&&(Y?Y[i?"animate":"attr"]({x:o.x,y:o.y}):n&&(b.stateMarkerGraphic=Y=L.renderer.symbol(n,o.x,o.y,o.width,o.height).add(b.markerGroup),Y.currentSymbol=n)),!L.styledMode&&Y&&l.state!=="inactive"&&Y.attr(b.pointAttribs(l,t))),Y&&(Y[t&&l.isInside?"show":"hide"](),Y.element.point=l,Y.addClass(l.getClassName(),!0));var G=D.halo,q=l.graphic||Y,Q=q&&q.visibility||"inherit";G&&G.size&&q&&Q!=="hidden"&&!l.isCluster?(j||(b.halo=j=L.renderer.path().add(q.parentGroup)),j.show()[i?"animate":"attr"]({d:l.haloPath(G.size)}),j.attr({class:"highcharts-halo highcharts-color-"+C(l.colorIndex,b.colorIndex)+(l.className?" "+l.className:""),visibility:Q,zIndex:-1}),j.point=l,L.styledMode||j.attr(k({fill:l.color||b.color,"fill-opacity":G.opacity},W.filterUserAttributes(G.attributes||{})))):j&&j.point&&j.point.haloPath&&j.animate({d:j.point.haloPath(0)},null,j.hide),y(l,"afterSetState",{state:t})}},a.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):[]},a}()}),et(B,"Core/Pointer.js",[B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Tooltip.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=R.charts,U=R.noop,z=V.addEvent,I=V.attr,E=V.css,M=V.defined,k=V.extend,y=V.find,h=V.fireEvent,u=V.isNumber,g=V.isObject,d=V.objectEach,v=V.offset,w=V.pick,S=V.splat;return function(){function C(c,f){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=c,this.hasDragged=!1,this.options=f,this.init(c,f)}return C.prototype.applyInactiveState=function(c){var f,r=[];(c||[]).forEach(function(a){f=a.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(a){r.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},C.prototype.destroy=function(){var c=this;this.eventsToUnbind.forEach(function(f){return f()}),this.eventsToUnbind=[],R.chartCount||(C.unbindDocumentMouseUp&&(C.unbindDocumentMouseUp=C.unbindDocumentMouseUp()),C.unbindDocumentTouchEnd&&(C.unbindDocumentTouchEnd=C.unbindDocumentTouchEnd())),clearInterval(c.tooltipTimeout),d(c,function(f,r){c[r]=void 0})},C.prototype.getSelectionMarkerAttrs=function(c,f){var r=this,a={args:{chartX:c,chartY:f},attrs:{},shapeType:"rect"};return h(this,"getSelectionMarkerAttrs",a,function(t){var i,o=r,e=o.chart,s=o.mouseDownX,n=s===void 0?0:s,l=o.mouseDownY,b=l===void 0?0:l,T=o.zoomHor,D=o.zoomVert,p=t.attrs;p.x=e.plotLeft,p.y=e.plotTop,p.width=T?1:e.plotWidth,p.height=D?1:e.plotHeight,T&&(i=c-n,p.width=Math.abs(i),p.x=(i>0?0:i)+n),D&&(i=f-b,p.height=Math.abs(i),p.y=(i>0?0:i)+b)}),a},C.prototype.drag=function(c){var f,r=this.chart,a=r.options.chart,t=r.plotLeft,i=r.plotTop,o=r.plotWidth,e=r.plotHeight,s=this.mouseDownX||0,n=this.mouseDownY||0,l=g(a.panning)?a.panning&&a.panning.enabled:a.panning,b=a.panKey&&c[a.panKey+"Key"],T=c.chartX,D=c.chartY,p=this.selectionMarker;if((!p||!p.touch)&&(T<t?T=t:T>t+o&&(T=t+o),D<i?D=i:D>i+e&&(D=i+e),this.hasDragged=Math.sqrt(Math.pow(s-T,2)+Math.pow(n-D,2)),this.hasDragged>10)){f=r.isInsidePlot(s-t,n-i,{visiblePlotOnly:!0});var x=this.getSelectionMarkerAttrs(T,D),A=x.shapeType,N=x.attrs;(r.hasCartesianSeries||r.mapView)&&(this.zoomX||this.zoomY)&&f&&!b&&(p||(this.selectionMarker=p=r.renderer[A](),p.attr({class:"highcharts-selection-marker",zIndex:7}).add(),r.styledMode||p.attr({fill:a.selectionMarkerFill||$("#335cad").setOpacity(.25).get()}))),p&&p.attr(N),f&&!p&&l&&r.pan(c,a.panning)}},C.prototype.dragStart=function(c){var f=this.chart;f.mouseIsDown=c.type,f.cancelClick=!1,f.mouseDownX=this.mouseDownX=c.chartX,f.mouseDownY=this.mouseDownY=c.chartY},C.prototype.getSelectionBox=function(c){var f={args:{marker:c},result:{}};return h(this,"getSelectionBox",f,function(r){r.result={x:c.attr?+c.attr("x"):c.x,y:c.attr?+c.attr("y"):c.y,width:c.attr?c.attr("width"):c.width,height:c.attr?c.attr("height"):c.height}}),f.result},C.prototype.drop=function(c){var f=this,r=this.chart,a=this.hasPinched;if(this.selectionMarker){var t=this.getSelectionBox(this.selectionMarker),i=t.x,o=t.y,e=t.width,s=t.height,n={originalEvent:c,xAxis:[],yAxis:[],x:i,y:o,width:e,height:s},l=!!r.mapView;(this.hasDragged||a)&&(r.axes.forEach(function(b){if(b.zoomEnabled&&M(b.min)&&(a||f[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&u(i)&&u(o)&&u(e)&&u(s)){var T=b.horiz,D=c.type==="touchend"?b.minPixelPadding:0,p=b.toValue((T?i:o)+D),x=b.toValue((T?i+e:o+s)-D);n[b.coll].push({axis:b,min:Math.min(p,x),max:Math.max(p,x)}),l=!0}}),l&&h(r,"selection",n,function(b){r.zoom(k(b,a?{animation:!1}:null))})),u(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),a&&this.scaleGroups()}r&&u(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(c,f,r){var a;return c.forEach(function(t){var i,o,e,s,n,l=!(t.noSharedTooltip&&f)&&t.options.findNearestPointBy.indexOf("y")<0,b=t.searchPoint(r,l);g(b,!0)&&b.series&&(!g(a,!0)||(o=b,e=(i=a).distX-o.distX,s=i.dist-o.dist,n=(o.series.group&&o.series.group.zIndex)-(i.series.group&&i.series.group.zIndex),(e!==0&&f?e:s!==0?s:n!==0?n:i.series.index>o.series.index?-1:1)>0))&&(a=b)}),a},C.prototype.getChartCoordinatesFromPoint=function(c,f){var r=c.series,a=r.xAxis,t=r.yAxis,i=c.shapeArgs;if(a&&t){var o=w(c.clientX,c.plotX),e=c.plotY||0;return c.isNode&&i&&u(i.x)&&u(i.y)&&(o=i.x,e=i.y),f?{chartX:t.len+t.pos-e,chartY:a.len+a.pos-o}:{chartX:o+a.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 c=this.chart.container,f=v(c);this.chartPosition={left:f.left,top:f.top,scaleX:1,scaleY:1};var r=c.offsetWidth,a=c.offsetHeight;return r>2&&a>2&&(this.chartPosition.scaleX=f.width/r,this.chartPosition.scaleY=f.height/a),this.chartPosition},C.prototype.getCoordinates=function(c){var f={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){f[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(c[r.horiz?"chartX":"chartY"])})}),f},C.prototype.getHoverData=function(c,f,r,a,t,i){var o,e=[],s=!(!a||!c),n=function(D){return D.visible&&!(!t&&D.directTouch)&&w(D.options.enableMouseTracking,!0)},l=f,b={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:t};h(this,"beforeGetHoverData",b),o=l&&!l.stickyTracking?[l]:r.filter(function(D){return D.stickyTracking&&(b.filter||n)(D)});var T=s||!i?c:this.findNearestKDPoint(o,t,i);return l=T&&T.series,T&&(t&&!l.noSharedTooltip?(o=r.filter(function(D){return b.filter?b.filter(D):n(D)&&!D.noSharedTooltip})).forEach(function(D){var p=y(D.points,function(x){return x.x===T.x&&!x.isNull});g(p)&&(D.boosted&&D.boost&&(p=D.boost.getPoint(p)),e.push(p))}):e.push(T)),h(this,"afterGetHoverData",b={hoverPoint:T}),{hoverPoint:b.hoverPoint,hoverSeries:l,hoverPoints:e}},C.prototype.getPointFromEvent=function(c){for(var f,r=c.target;r&&!f;)f=r.point,r=r.parentNode;return f},C.prototype.onTrackerMouseOut=function(c){var f=this.chart,r=c.relatedTarget||c.toElement,a=f.hoverSeries;this.isDirectTouch=!1,!a||!r||a.stickyTracking||this.inClass(r,"highcharts-tooltip")||this.inClass(r,"highcharts-series-"+a.index)&&this.inClass(r,"highcharts-tracker")||a.onMouseOut()},C.prototype.inClass=function(c,f){for(var r,a=c;a;){if(r=I(a,"class")){if(r.indexOf(f)!==-1)return!0;if(r.indexOf("highcharts-container")!==-1)return!1}a=a.parentElement}},C.prototype.init=function(c,f){this.options=f,this.chart=c,this.runChartClick=!!(f.chart.events&&f.chart.events.click),this.pinchDown=[],this.lastValidTouch={},H&&(c.tooltip=new H(c,f.tooltip)),this.setDOMEvents()},C.prototype.normalize=function(c,f){var r=c.touches,a=r?r.length?r.item(0):w(r.changedTouches,c.changedTouches)[0]:c;f||(f=this.getChartPosition());var t=a.pageX-f.left,i=a.pageY-f.top;return t/=f.scaleX,i/=f.scaleY,k(c,{chartX:Math.round(t),chartY:Math.round(i)})},C.prototype.onContainerClick=function(c){var f=this.chart,r=f.hoverPoint,a=this.normalize(c),t=f.plotLeft,i=f.plotTop;f.cancelClick||(r&&this.inClass(a.target,"highcharts-tracker")?(h(r.series,"click",k(a,{point:r})),f.hoverPoint&&r.firePointEvent("click",a)):(k(a,this.getCoordinates(a)),f.isInsidePlot(a.chartX-t,a.chartY-i,{visiblePlotOnly:!0})&&h(f,"click",a)))},C.prototype.onContainerMouseDown=function(c){var f=!(1&~(c.buttons||c.button));c=this.normalize(c),R.isFirefox&&c.button!==0&&this.onContainerMouseMove(c),(c.button===void 0||f)&&(this.zoomOption(c),f&&c.preventDefault&&c.preventDefault(),this.dragStart(c))},C.prototype.onContainerMouseLeave=function(c){var f=Z[w(C.hoverChartIndex,-1)],r=this.chart.tooltip;c=this.normalize(c),f&&(c.relatedTarget||c.toElement)&&(f.pointer.reset(),f.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},C.prototype.onContainerMouseEnter=function(c){delete this.chartPosition},C.prototype.onContainerMouseMove=function(c){var f=this.chart,r=f.tooltip,a=this.normalize(c);this.setHoverChartIndex(),a.preventDefault||(a.returnValue=!1),(f.mouseIsDown==="mousedown"||this.touchSelect(a))&&this.drag(a),f.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(a)||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))},C.prototype.onDocumentTouchEnd=function(c){var f=Z[w(C.hoverChartIndex,-1)];f&&f.pointer.drop(c)},C.prototype.onContainerTouchMove=function(c){this.touchSelect(c)?this.onContainerMouseMove(c):this.touch(c)},C.prototype.onContainerTouchStart=function(c){this.touchSelect(c)?this.onContainerMouseDown(c):(this.zoomOption(c),this.touch(c,!0))},C.prototype.onDocumentMouseMove=function(c){var f=this.chart,r=f.tooltip,a=this.chartPosition,t=this.normalize(c,a);!a||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(c){var f=Z[w(C.hoverChartIndex,-1)];f&&f.pointer.drop(c)},C.prototype.pinch=function(c){var f=this,r=f.chart,a=f.pinchDown,t=c.touches||[],i=t.length,o=f.lastValidTouch,e=f.hasZoom,s={},n=i===1&&(f.inClass(c.target,"highcharts-tracker")&&r.runTrackerClick||f.runChartClick),l={},b=f.chart.tooltip,T=i===1&&w(b&&b.options.followTouchMove,!0),D=f.selectionMarker;i>1?f.initiated=!0:T&&(f.initiated=!1),e&&f.initiated&&!n&&c.cancelable!==!1&&c.preventDefault(),[].map.call(t,function(p){return f.normalize(p)}),c.type==="touchstart"?([].forEach.call(t,function(p,x){a[x]={chartX:p.chartX,chartY:p.chartY}}),o.x=[a[0].chartX,a[1]&&a[1].chartX],o.y=[a[0].chartY,a[1]&&a[1].chartY],r.axes.forEach(function(p){if(p.zoomEnabled){var x=r.bounds[p.horiz?"h":"v"],A=p.minPixelPadding,N=p.toPixels(Math.min(w(p.options.min,p.dataMin),p.dataMin)),_=p.toPixels(Math.max(w(p.options.max,p.dataMax),p.dataMax)),L=Math.min(N,_),O=Math.max(N,_);x.min=Math.min(p.pos,L-A),x.max=Math.max(p.pos+p.len,O+A)}}),f.res=!0):T?this.runPointActions(f.normalize(c)):a.length&&(h(r,"touchpan",{originalEvent:c},function(){D||(f.selectionMarker=D=k({destroy:U,touch:!0},r.plotBox)),f.pinchTranslate(a,t,s,D,l,o),f.hasPinched=e,f.scaleGroups(s,l)}),f.res&&(f.res=!1,this.reset(!1,0)))},C.prototype.pinchTranslate=function(c,f,r,a,t,i){this.zoomHor&&this.pinchTranslateDirection(!0,c,f,r,a,t,i),this.zoomVert&&this.pinchTranslateDirection(!1,c,f,r,a,t,i)},C.prototype.pinchTranslateDirection=function(c,f,r,a,t,i,o,e){var s,n,l,b,T=this.chart,D=c?"x":"y",p=c?"X":"Y",x="chart"+p,A=c?"width":"height",N=T["plot"+(c?"Left":"Top")],_=T.inverted,L=T.bounds[c?"h":"v"],O=f.length===1,j=f[0][x],Y=!O&&f[1][x],X=function(){typeof Q=="number"&&Math.abs(j-Y)>20&&(G=e||Math.abs(q-Q)/Math.abs(j-Y)),l=(N-q)/G+j,s=T["plot"+(c?"Width":"Height")]/G},G=e||1,q=r[0][x],Q=!O&&r[1][x];X(),(n=l)<L.min?(n=L.min,b=!0):n+s>L.max&&(n=L.max-s,b=!0),b?(q-=.8*(q-o[D][0]),typeof Q=="number"&&(Q-=.8*(Q-o[D][1])),X()):o[D]=[q,Q],_||(i[D]=l-N,i[A]=s);var J=_?c?"scaleY":"scaleX":"scale"+p,rt=_?1/G:G;t[A]=s,t[D]=n,a[J]=G,a["translate"+p]=rt*N+(q-rt*j)},C.prototype.reset=function(c,f){var r=this,a=r.chart,t=a.hoverSeries,i=a.hoverPoint,o=a.hoverPoints,e=a.tooltip,s=e&&e.shared?o:i;c&&s&&S(s).forEach(function(n){n.series.isCartesian&&n.plotX===void 0&&(c=!1)}),c?e&&s&&S(s).length&&(e.refresh(s),e.shared&&o?o.forEach(function(n){n.setState(n.state,!0),n.series.isCartesian&&(n.series.xAxis.crosshair&&n.series.xAxis.drawCrosshair(null,n),n.series.yAxis.crosshair&&n.series.yAxis.drawCrosshair(null,n))}):i&&(i.setState(i.state,!0),a.axes.forEach(function(n){n.crosshair&&i.series[n.coll]===n&&n.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),o&&o.forEach(function(n){n.setState()}),t&&t.onMouseOut(),e&&e.hide(f),r.unDocMouseMove&&(r.unDocMouseMove=r.unDocMouseMove()),a.axes.forEach(function(n){n.hideCrosshair()}),r.hoverX=a.hoverPoints=a.hoverPoint=null)},C.prototype.runPointActions=function(c,f,r){var a=this,t=a.chart,i=t.series,o=t.tooltip&&t.tooltip.options.enabled?t.tooltip:void 0,e=!!o&&o.shared,s=f||t.hoverPoint,n=s&&s.series||t.hoverSeries,l=(!c||c.type!=="touchmove")&&(!!f||n&&n.directTouch&&a.isDirectTouch),b=this.getHoverData(s,n,i,l,e,c);s=b.hoverPoint,n=b.hoverSeries;var T=b.hoverPoints,D=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split,p=e&&n&&!n.noSharedTooltip;if(s&&(r||s!==t.hoverPoint||o&&o.isHidden)){if((t.hoverPoints||[]).forEach(function(A){T.indexOf(A)===-1&&A.setState()}),t.hoverSeries!==n&&n.onMouseOver(),a.applyInactiveState(T),(T||[]).forEach(function(A){A.setState("hover")}),t.hoverPoint&&t.hoverPoint.firePointEvent("mouseOut"),!s.series)return;t.hoverPoints=T,t.hoverPoint=s,s.firePointEvent("mouseOver",void 0,function(){o&&s&&o.refresh(p?T:s,c)})}else if(D&&o&&!o.isHidden){var x=o.getAnchor([{}],c);t.isInsidePlot(x[0],x[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:x[0],plotY:x[1]})}a.unDocMouseMove||(a.unDocMouseMove=z(t.container.ownerDocument,"mousemove",function(A){var N=Z[C.hoverChartIndex];N&&N.pointer.onDocumentMouseMove(A)}),a.eventsToUnbind.push(a.unDocMouseMove)),t.axes.forEach(function(A){var N,_=w((A.crosshair||{}).snap,!0);_&&((N=t.hoverPoint)&&N.series[A.coll]===A||(N=y(T,function(L){return L.series&&L.series[A.coll]===A}))),N||!_?A.drawCrosshair(c,N):A.hideCrosshair()})},C.prototype.scaleGroups=function(c,f){var r=this.chart;r.series.forEach(function(a){var t=c||a.getPlotBox();a.group&&(a.xAxis&&a.xAxis.zoomEnabled||r.mapView)&&(a.group.attr(t),a.markerGroup&&(a.markerGroup.attr(t),a.markerGroup.clip(f?r.clipRect:null)),a.dataLabelsGroup&&a.dataLabelsGroup.attr(t))}),r.clipRect.attr(f||r.clipBox)},C.prototype.setDOMEvents=function(){var c=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(z(f,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(z(f,"mouseleave",this.onContainerMouseLeave.bind(this))),C.unbindDocumentMouseUp||(C.unbindDocumentMouseUp=z(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var a=this.chart.renderTo.parentElement;a&&a.tagName!=="BODY";)this.eventsToUnbind.push(z(a,"scroll",function(){delete c.chartPosition})),a=a.parentElement;R.hasTouch&&(this.eventsToUnbind.push(z(f,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(z(f,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),C.unbindDocumentTouchEnd||(C.unbindDocumentTouchEnd=z(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},C.prototype.setHoverChartIndex=function(){var c=this.chart,f=R.charts[w(C.hoverChartIndex,-1)];f&&f!==c&&f.pointer.onContainerMouseLeave({relatedTarget:c.container}),f&&f.mouseIsDown||(C.hoverChartIndex=c.index)},C.prototype.touch=function(c,f){var r,a,t=this.chart;this.setHoverChartIndex(),c.touches.length===1?(c=this.normalize(c),t.isInsidePlot(c.chartX-t.plotLeft,c.chartY-t.plotTop,{visiblePlotOnly:!0})&&!t.openMenu?(f&&this.runPointActions(c),c.type==="touchmove"&&(r=!!(a=this.pinchDown)[0]&&Math.sqrt(Math.pow(a[0].chartX-c.chartX,2)+Math.pow(a[0].chartY-c.chartY,2))>=4),w(r,!0)&&this.pinch(c)):f&&this.reset()):c.touches.length===2&&this.pinch(c)},C.prototype.touchSelect=function(c){return!!(this.chart.options.chart.zooming.singleTouch&&c.touches&&c.touches.length===1)},C.prototype.zoomOption=function(c){var f,r,a=this.chart,t=a.options.chart,i=a.inverted,o=t.zooming.type||"";/touch/.test(c.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(B,"Core/MSPointer.js",[B["Core/Globals.js"],B["Core/Pointer.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(w,S){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,c){C.__proto__=c}||function(C,c){for(var f in c)c.hasOwnProperty(f)&&(C[f]=c[f])},V(w,S)},function(w,S){function C(){this.constructor=w}V(w,S),w.prototype=S===null?Object.create(S):(C.prototype=S.prototype,new C)}),Z=W.charts,U=W.doc,z=W.noop,I=W.win,E=H.addEvent,M=H.css,k=H.objectEach,y=H.pick,h=H.removeEvent,u={},g=!!I.PointerEvent;function d(w,S,C,c){var f,r=Z[R.hoverChartIndex||NaN];if((w.pointerType==="touch"||w.pointerType===w.MSPOINTER_TYPE_TOUCH)&&r){var a=r.pointer;c(w),a[S]({type:C,target:w.currentTarget,preventDefault:z,touches:(f=[],f.item=function(t){return this[t]},k(u,function(t){f.push({pageX:t.pageX,pageY:t.pageY,target:t.target})}),f)})}}var v=function(w){function S(){return w!==null&&w.apply(this,arguments)||this}return $(S,w),S.isRequired=function(){return!(W.hasTouch||!I.PointerEvent&&!I.MSPointerEvent)},S.prototype.batchMSEvents=function(C){C(this.chart.container,g?"pointerdown":"MSPointerDown",this.onContainerPointerDown),C(this.chart.container,g?"pointermove":"MSPointerMove",this.onContainerPointerMove),C(U,g?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},S.prototype.destroy=function(){this.batchMSEvents(h),w.prototype.destroy.call(this)},S.prototype.init=function(C,c){w.prototype.init.call(this,C,c),this.hasZoom&&M(C.container,{"-ms-touch-action":"none","touch-action":"none"})},S.prototype.onContainerPointerDown=function(C){d(C,"onContainerTouchStart","touchstart",function(c){u[c.pointerId]={pageX:c.pageX,pageY:c.pageY,target:c.currentTarget}})},S.prototype.onContainerPointerMove=function(C){d(C,"onContainerTouchMove","touchmove",function(c){u[c.pointerId]={pageX:c.pageX,pageY:c.pageY},u[c.pointerId].target||(u[c.pointerId].target=c.currentTarget)})},S.prototype.onDocumentPointerUp=function(C){d(C,"onDocumentTouchEnd","touchend",function(c){delete u[c.pointerId]})},S.prototype.setDOMEvents=function(){var C=this.chart.tooltip;w.prototype.setDOMEvents.call(this),(this.hasZoom||y(C&&C.options.followTouchMove,!0))&&this.batchMSEvents(E)},S}(R);return v}),et(B,"Core/Legend/Legend.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Series/Point.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=W.animObject,z=W.setAnimation,I=R.format,E=H.marginNames,M=$.distribute,k=Z.addEvent,y=Z.createElement,h=Z.css,u=Z.defined,g=Z.discardElement,d=Z.find,v=Z.fireEvent,w=Z.isNumber,S=Z.merge,C=Z.pick,c=Z.relativeLength,f=Z.stableSort,r=Z.syncTimeout;return function(){function a(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 a.prototype.init=function(t,i){this.chart=t,this.setOptions(i),i.enabled&&(this.render(),k(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=k(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},a.prototype.setOptions=function(t){var i=C(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=S(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},a.prototype.update=function(t,i){var o=this.chart;this.setOptions(S(!0,this.options,t)),this.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,C(i,!0)&&o.redraw(),v(this,"afterUpdate")},a.prototype.colorizeItem=function(t,i){var o=t.legendItem||{},e=o.group,s=o.label,n=o.line,l=o.symbol;if(e&&e[i?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var b=this.options,T=this.itemHiddenStyle.color,D=i?b.itemStyle.color:T,p=i&&t.color||T,x=t.options&&t.options.marker,A={fill:p};s&&s.css({fill:D,color:D}),n&&n.attr({stroke:p}),l&&(x&&l.isMarker&&(A=t.pointAttribs(),i||(A.stroke=A.fill=T)),l.attr(A))}v(this,"afterColorizeItem",{item:t,visible:i})},a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},a.prototype.positionItem=function(t){var i=this,o=t.legendItem||{},e=o.group,s=o.x,n=s===void 0?0:s,l=o.y,b=l===void 0?0:l,T=this.options,D=T.symbolPadding,p=!T.rtl,x=t.checkbox;if(e&&e.element){var A={translateX:p?n:this.legendWidth-n-2*D-4,translateY:b};e[u(e.translateY)?"animate":"attr"](A,void 0,function(){v(i,"afterPositionItem",{item:t})})}x&&(x.x=n,x.y=b)},a.prototype.destroyItem=function(t){for(var i=t.checkbox,o=t.legendItem||{},e=0,s=["group","label","line","symbol"];e<s.length;e++){var n=s[e];o[n]&&(o[n]=o[n].destroy())}i&&g(i),t.legendItem=void 0},a.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 s=0,n=["clipRect","up","down","pager","nav","box","title","group"];s<n.length;s++){var l=n[s];t[l]&&(t[l]=t[l].destroy())}this.display=null},a.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(s){var n,l=s.checkbox;l&&(n=t+e+l.y+(this.scrollOffset||0)+3,h(l,{left:i.translateX+s.checkboxOffset+l.x-20+"px",top:n+"px",display:this.proximate||n>t-6&&n<t+o-6?"":"none"}))},this))},a.prototype.renderTitle=function(){var t,i=this.options,o=this.padding,e=i.title,s=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"}),s=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:s})),this.titleHeight=s},a.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)})},a.prototype.renderItem=function(t){var i=this,o=t.legendItem=t.legendItem||{},e=i.chart,s=e.renderer,n=i.options,l=n.layout==="horizontal",b=i.symbolWidth,T=n.symbolPadding||0,D=i.itemStyle,p=i.itemHiddenStyle,x=l?C(n.itemDistance,20):0,A=!n.rtl,N=!t.series,_=!N&&t.series.drawLegendSymbol?t.series:t,L=_.options,O=i.createCheckboxForItem&&L&&L.showCheckbox,j=n.useHTML,Y=t.options.className,X=o.label,G=b+T+x+(O?20:0);X||(o.group=s.g("legend-item").addClass("highcharts-"+_.type+"-series highcharts-color-"+t.colorIndex+(Y?" "+Y:"")+(N?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(i.scrollGroup),o.label=X=s.text("",A?b+T:-T,i.baseline||0,j),e.styledMode||X.css(S(t.visible?D:p)),X.attr({align:A?"left":"right",zIndex:2}).add(o.group),i.baseline||(i.fontMetrics=s.fontMetrics(e.styledMode?12:D.fontSize,X),i.baseline=i.fontMetrics.f+3+i.itemMarginTop,X.attr("y",i.baseline),i.symbolHeight=n.symbolHeight||i.fontMetrics.f,n.squareSymbol&&(i.symbolWidth=C(n.symbolWidth,Math.max(i.symbolHeight,16)),G=i.symbolWidth+T+x+(O?20:0),A&&X.attr("x",i.symbolWidth+T))),_.drawLegendSymbol(i,t),i.setItemEvents&&i.setItemEvents(t,X,j)),O&&!t.checkbox&&i.createCheckboxForItem&&i.createCheckboxForItem(t),i.colorizeItem(t,t.visible),!e.styledMode&&D.width||X.css({width:(n.itemWidth||i.widthOption||e.spacingBox.width)-G+"px"}),i.setText(t);var q=X.getBBox(),Q=i.fontMetrics&&i.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=n.itemWidth||o.labelWidth||q.width+G,i.maxItemWidth=Math.max(i.maxItemWidth,t.itemWidth),i.totalItemWidth+=t.itemWidth,i.itemHeight=t.itemHeight=Math.round(o.labelHeight||(q.height>1.5*Q?q.height:Q))},a.prototype.layoutItem=function(t){var i=this.options,o=this.padding,e=i.layout==="horizontal",s=t.itemHeight,n=this.itemMarginBottom,l=this.itemMarginTop,b=e?C(i.itemDistance,20):0,T=this.maxLegendWidth,D=i.alignColumns&&this.totalItemWidth>T?this.maxItemWidth:t.itemWidth,p=t.legendItem||{};e&&this.itemX-o+D>T&&(this.itemX=o,this.lastLineHeight&&(this.itemY+=l+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=l+this.itemY+n,this.lastLineHeight=Math.max(s,this.lastLineHeight),p.x=this.itemX,p.y=this.itemY,e?this.itemX+=D:(this.itemY+=l+s+n,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((e?this.itemX-o-(t.checkbox?0:b):D)+o,this.offsetWidth)},a.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(i){var o=i&&i.options;i&&C(o.showInLegend,!u(o.linkedTo)&&void 0,!0)&&(t=t.concat((i.legendItem||{}).labels||(o.legendType==="point"?i.data:i)))}),v(this,"afterGetAllItems",{allItems:t}),t},a.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)},a.prototype.adjustMargins=function(t,i){var o=this.chart,e=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,l){n.test(s)&&!u(t[l])&&(o[E[l]]=Math.max(o[E[l]],o.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*e[l%2?"x":"y"]+C(e.margin,12)+i[l]+(o.titleOffset[l]||0)))})},a.prototype.proximatePositions=function(){var t,i=this.chart,o=[],e=this.options.align==="left";this.allItems.forEach(function(b){var T,D,p,x,A=e;b.yAxis&&(b.xAxis.options.reversed&&(A=!A),b.points&&(T=d(A?b.points:b.points.slice(0).reverse(),function(N){return w(N.plotY)})),D=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom,x=b.yAxis.top-i.plotTop,b.visible?(p=T?T.plotY:b.yAxis.height,p+=x-.3*D):p=x+b.yAxis.height,o.push({target:p,size:D,item:b}))},this);for(var s=0,n=M(o,i.plotHeight);s<n.length;s++){var l=n[s];t=l.item.legendItem||{},w(l.pos)&&(t.y=i.plotTop-i.spacing[0]+l.pos)}},a.prototype.render=function(){var t,i,o,e,s=this,n=s.chart,l=n.renderer,b=s.options,T=s.padding,D=s.getAllItems(),p=s.group,x=s.box;s.itemX=T,s.itemY=s.initialItemY,s.offsetWidth=0,s.lastItemY=0,s.widthOption=c(b.width,n.spacingBox.width-T),e=n.spacingBox.width-2*T-b.x,["rm","lm"].indexOf(s.getAlignment().substring(0,2))>-1&&(e/=2),s.maxLegendWidth=s.widthOption||e,p||(s.group=p=l.g("legend").addClass(b.className||"").attr({zIndex:7}).add(),s.contentGroup=l.g().attr({zIndex:1}).add(p),s.scrollGroup=l.g().add(s.contentGroup)),s.renderTitle(),f(D,function(A,N){return(A.options&&A.options.legendIndex||0)-(N.options&&N.options.legendIndex||0)}),b.reversed&&D.reverse(),s.allItems=D,s.display=t=!!D.length,s.lastLineHeight=0,s.maxItemWidth=0,s.totalItemWidth=0,s.itemHeight=0,D.forEach(s.renderItem,s),D.forEach(s.layoutItem,s),i=(s.widthOption||s.offsetWidth)+T,o=s.lastItemY+s.lastLineHeight+s.titleHeight,o=s.handleOverflow(o),o+=T,x||(s.box=x=l.rect().addClass("highcharts-legend-box").attr({r:b.borderRadius}).add(p)),n.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())),p[t?"show":"hide"](),n.styledMode&&p.getStyle("display")==="none"&&(i=o=0),s.legendWidth=i,s.legendHeight=o,t&&s.align(),this.proximate||this.positionItems(),v(this,"afterRender")},a.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=S(t,{y:e})),i.hasRendered||(this.group.placed=!1),this.group.align(S(o,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":o.verticalAlign}),!0,t)},a.prototype.handleOverflow=function(t){var i,o,e,s=this,n=this.chart,l=n.renderer,b=this.options,T=b.y,D=b.verticalAlign==="top",p=this.padding,x=b.maxHeight,A=b.navigation,N=C(A.animation,!0),_=A.arrowSize||12,L=this.pages,O=this.allItems,j=function(Q){typeof Q=="number"?q.attr({height:Q}):q&&(s.clipRect=q.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=Q?"rect("+p+"px,9999px,"+(p+Q)+"px,0)":"auto")},Y=function(Q){return s[Q]=l.circle(0,0,1.3*_).translate(_/2,_/2).add(G),n.styledMode||s[Q].attr("fill","rgba(0,0,0,0.0001)"),s[Q]},X=n.spacingBox.height+(D?-T:T)-p,G=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&&A.enabled!==!1?(this.clipHeight=i=Math.max(X-20-this.titleHeight-p,0),this.currentPage=C(this.currentPage,1),this.fullHeight=t,O.forEach(function(Q,J){var rt=(e=Q.legendItem||{}).y||0,lt=Math.round(e.label.getBBox().height),gt=L.length;(!gt||rt-L[gt-1]>i&&(o||rt)!==L[gt-1])&&(L.push(o||rt),gt++),e.pageIx=gt-1,o&&((O[J-1].legendItem||{}).pageIx=gt-1),J===O.length-1&&rt+lt-L[gt-1]>i&<<=i&&(L.push(rt),e.pageIx=gt),rt!==o&&(o=rt)}),q||(q=s.clipRect=l.clipRect(0,p,9999,0),s.contentGroup.clip(q)),j(i),G||(this.nav=G=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,_,_).add(G),Y("upTracker").on("click",function(){s.scroll(-1,N)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&A.style&&this.pager.css(A.style),this.pager.add(G),this.down=l.symbol("triangle-down",0,0,_,_).add(G),Y("downTracker").on("click",function(){s.scroll(1,N)})),s.scroll(0),t=X):G&&(j(),this.nav=G.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},a.prototype.scroll=function(t,i){var o=this,e=this.chart,s=this.pages,n=s.length,l=this.clipHeight,b=this.options.navigation,T=this.pager,D=this.padding,p=this.currentPage+t;if(p>n&&(p=n),p>0){i!==void 0&&z(i,e),this.nav.attr({translateX:D,translateY:l+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(A){A.attr({class:p===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),T.attr({text:p+"/"+n}),[this.down,this.downTracker].forEach(function(A){A.attr({x:18+this.pager.getBBox().width,class:p===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:p===1?b.inactiveColor:b.activeColor}),this.upTracker.css({cursor:p===1?"default":"pointer"}),this.down.attr({fill:p===n?b.inactiveColor:b.activeColor}),this.downTracker.css({cursor:p===n?"default":"pointer"})),this.scrollOffset=-s[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes();var x=U(C(i,e.renderer.globalAnimation,!0));r(function(){v(o,"afterScroll",{currentPage:p})},x.duration)}},a.prototype.setItemEvents=function(t,i,o){for(var e=this,s=t.legendItem||{},n=e.chart.renderer.boxWrapper,l=t instanceof V,b="highcharts-legend-"+(l?"point":"series")+"-active",T=e.chart.styledMode,D=o?[i,s.symbol]:[s.group],p=function(_){e.allItems.forEach(function(L){t!==L&&[L].concat(L.linkedSeries||[]).forEach(function(O){O.setState(_,!l)})})},x=0,A=D;x<A.length;x++){var N=A[x];N&&N.on("mouseover",function(){t.visible&&p("inactive"),t.setState("hover"),t.visible&&n.addClass(b),T||i.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||i.css(S(t.visible?e.itemStyle:e.itemHiddenStyle)),p(""),n.removeClass(b),t.setState()}).on("click",function(_){var L="legendItemClick",O=function(){t.setVisible&&t.setVisible(),p(t.visible?"inactive":"")};n.removeClass(b),_={browserEvent:_},t.firePointEvent?t.firePointEvent(L,_,O):v(t,L,_,O)})}},a.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),k(t.checkbox,"click",function(i){var o=i.target;v(t.series||t,"checkboxClick",{checked:o.checked,item:t},function(){t.select()})})},a}()}),et(B,"Core/Series/SeriesRegistry.js",[B["Core/Globals.js"],B["Core/Defaults.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.defaultOptions,U=V.extendClass,z=V.merge;return function(I){function E(M,k){var y=Z.plotOptions||{},h=k.defaultOptions,u=k.prototype;u.type=M,u.pointClass||(u.pointClass=H),h&&(y[M]=h),I.seriesTypes[M]=k}I.seriesTypes=W.seriesTypes,I.registerSeriesType=E,I.seriesType=function(M,k,y,h,u){var g=Z.plotOptions||{};return k=k||"",g[M]=z(g[k],y),E(M,U(I.seriesTypes[k]||function(){},h)),I.seriesTypes[M].prototype.type=M,u&&(I.seriesTypes[M].prototype.pointClass=U(H,u)),I.seriesTypes[M]}}($||($={})),$}),et(B,"Core/Chart/Chart.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/FormatUtilities.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Legend/Legend.js"],B["Core/MSPointer.js"],B["Core/Pointer.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Time.js"],B["Core/Utilities.js"],B["Core/Renderer/HTML/AST.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,k,y,h,u){var g=W.animate,d=W.animObject,v=W.setAnimation,w=H.defaultOptions,S=H.defaultTime,C=V.numberFormat,c=$.registerEventOptions,f=Z.charts,r=Z.doc,a=Z.marginNames,t=Z.svg,i=Z.win,o=M.seriesTypes,e=h.addEvent,s=h.attr,n=h.cleanRecursively,l=h.createElement,b=h.css,T=h.defined,D=h.discardElement,p=h.erase,x=h.error,A=h.extend,N=h.find,_=h.fireEvent,L=h.getStyle,O=h.isArray,j=h.isNumber,Y=h.isObject,X=h.isString,G=h.merge,q=h.objectEach,Q=h.pick,J=h.pInt,rt=h.relativeLength,lt=h.removeEvent,gt=h.splat,mt=h.syncTimeout,bt=h.uniqueKey,yt=function(){function ht(it,st,dt){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(it,st,dt)}return ht.chart=function(it,st,dt){return new ht(it,st,dt)},ht.prototype.getArgs=function(it,st,dt){X(it)||it.nodeName?(this.renderTo=it,this.init(st,dt)):this.init(it,st)},ht.prototype.init=function(it,st){var dt=it.plotOptions||{};_(this,"init",{args:arguments},function(){var vt=G(w,it),Ct=vt.chart;q(vt.plotOptions,function(Mt,St){Y(Mt)&&(Mt.tooltip=dt[St]&&G(dt[St].tooltip)||void 0)}),vt.tooltip.userOptions=it.chart&&it.chart.forExport&&it.tooltip.userOptions||it.tooltip,this.userOptions=it,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=st,this.isResizing=0;var xt=Ct.zooming=Ct.zooming||{};it.chart&&!it.chart.zooming&&(xt.resetButton=Ct.resetZoomButton),xt.key=Q(xt.key,Ct.zoomKey),xt.pinchType=Q(xt.pinchType,Ct.pinchType),xt.singleTouch=Q(xt.singleTouch,Ct.zoomBySingleTouch),xt.type=Q(xt.type,Ct.zoomType),this.options=vt,this.axes=[],this.series=[],this.time=it.time&&Object.keys(it.time).length?new y(it.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++,c(this,Ct),wt.xAxis=[],wt.yAxis=[],wt.pointCount=wt.colorCounter=wt.symbolCounter=0,_(wt,"afterInit"),wt.firstRender()})},ht.prototype.initSeries=function(it){var st=this,dt=st.options.chart,vt=it.type||dt.type||dt.defaultSeriesType,Ct=o[vt];Ct||x(17,!0,st,{missingModuleFor:vt});var xt=new Ct;return typeof xt.init=="function"&&xt.init(st,it),xt},ht.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(it){it.points||it.data||!it.enabledDataSorting||it.setData(it.options.data,!1)})},ht.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(it,st){return it.linkedSeries.length||st.linkedSeries.length?st.linkedSeries.length-it.linkedSeries.length:0})},ht.prototype.orderSeries=function(it){for(var st=this.series,dt=it||0,vt=st.length;dt<vt;++dt)st[dt]&&(st[dt].index=dt,st[dt].name=st[dt].getName())},ht.prototype.isInsidePlot=function(it,st,dt){var vt;dt===void 0&&(dt={});var Ct=this,xt=Ct.inverted,wt=Ct.plotBox,Mt=Ct.plotLeft,St=Ct.plotTop,Tt=Ct.scrollablePlotBox,Lt=0,Pt=0;dt.visiblePlotOnly&&this.scrollingContainer&&(Lt=(vt=this.scrollingContainer).scrollLeft,Pt=vt.scrollTop);var Dt=dt.series,jt=dt.visiblePlotOnly&&Tt||wt,Ot=dt.inverted?st:it,It=dt.inverted?it:st,Nt={x:Ot,y:It,isInsidePlot:!0,options:dt};if(!dt.ignoreX){var Zt=Dt&&(xt&&!this.polar?Dt.yAxis:Dt.xAxis)||{pos:Mt,len:1/0},zt=dt.paneCoordinates?Zt.pos+Ot:Mt+Ot;zt>=Math.max(Lt+Mt,Zt.pos)&&zt<=Math.min(Lt+Mt+jt.width,Zt.pos+Zt.len)||(Nt.isInsidePlot=!1)}if(!dt.ignoreY&&Nt.isInsidePlot){var Ht=dt.axis&&!dt.axis.isXAxis&&dt.axis||Dt&&(xt?Dt.xAxis:Dt.yAxis)||{pos:St,len:1/0},Kt=dt.paneCoordinates?Ht.pos+It:St+It;Kt>=Math.max(Pt+St,Ht.pos)&&Kt<=Math.min(Pt+St+jt.height,Ht.pos+Ht.len)||(Nt.isInsidePlot=!1)}return _(this,"afterIsInsidePlot",Nt),Nt.isInsidePlot},ht.prototype.redraw=function(it){_(this,"beforeRedraw");var st,dt,vt,Ct,xt=this,wt=xt.hasCartesianSeries?xt.axes:xt.colorAxis||[],Mt=xt.series,St=xt.pointer,Tt=xt.legend,Lt=xt.userOptions.legend,Pt=xt.renderer,Dt=Pt.isHidden(),jt=[],Ot=xt.isDirtyBox,It=xt.isDirtyLegend;for(xt.setResponsive&&xt.setResponsive(!1),v(!!xt.hasRendered&&it,xt),Dt&&xt.temporaryDisplay(),xt.layOutTitles(),vt=Mt.length;vt--;)if(((Ct=Mt[vt]).options.stacking||Ct.options.centerInCategory)&&(dt=!0,Ct.isDirty)){st=!0;break}if(st)for(vt=Mt.length;vt--;)(Ct=Mt[vt]).options.stacking&&(Ct.isDirty=!0);Mt.forEach(function(Nt){Nt.isDirty&&(Nt.options.legendType==="point"?(typeof Nt.updateTotals=="function"&&Nt.updateTotals(),It=!0):Lt&&(Lt.labelFormatter||Lt.labelFormat)&&(It=!0)),Nt.isDirtyData&&_(Nt,"updatedData")}),It&&Tt&&Tt.options.enabled&&(Tt.render(),xt.isDirtyLegend=!1),dt&&xt.getStacks(),wt.forEach(function(Nt){Nt.updateNames(),Nt.setScale()}),xt.getMargins(),wt.forEach(function(Nt){Nt.isDirty&&(Ot=!0)}),wt.forEach(function(Nt){var Zt=Nt.min+","+Nt.max;Nt.extKey!==Zt&&(Nt.extKey=Zt,jt.push(function(){_(Nt,"afterSetExtremes",A(Nt.eventArgs,Nt.getExtremes())),delete Nt.eventArgs})),(Ot||dt)&&Nt.redraw()}),Ot&&xt.drawChartBox(),_(xt,"predraw"),Mt.forEach(function(Nt){(Ot||Nt.isDirty)&&Nt.visible&&Nt.redraw(),Nt.isDirtyData=!1}),St&&St.reset(!0),Pt.draw(),_(xt,"redraw"),_(xt,"render"),Dt&&xt.temporaryDisplay(!0),jt.forEach(function(Nt){Nt.call()})},ht.prototype.get=function(it){var st=this.series;function dt(xt){return xt.id===it||xt.options&&xt.options.id===it}for(var vt=N(this.axes,dt)||N(this.series,dt),Ct=0;!vt&&Ct<st.length;Ct++)vt=N(st[Ct].points||[],dt);return vt},ht.prototype.getAxes=function(){var it=this,st=this.options,dt=st.xAxis=gt(st.xAxis||{}),vt=st.yAxis=gt(st.yAxis||{});_(this,"getAxes"),dt.forEach(function(Ct,xt){Ct.index=xt,Ct.isX=!0}),vt.forEach(function(Ct,xt){Ct.index=xt}),dt.concat(vt).forEach(function(Ct){new R(it,Ct)}),_(this,"afterGetAxes")},ht.prototype.getSelectedPoints=function(){return this.series.reduce(function(it,st){return st.getPointsCollection().forEach(function(dt){Q(dt.selectedStaging,dt.selected)&&it.push(dt)}),it},[])},ht.prototype.getSelectedSeries=function(){return this.series.filter(function(it){return it.selected})},ht.prototype.setTitle=function(it,st,dt){this.applyDescription("title",it),this.applyDescription("subtitle",st),this.applyDescription("caption",void 0),this.layOutTitles(dt)},ht.prototype.applyDescription=function(it,st){var dt=this,vt=it==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"},Ct=this.options[it]=G(!this.styledMode&&{style:vt},this.options[it],st),xt=this[it];xt&&st&&(this[it]=xt=xt.destroy()),Ct&&!xt&&((xt=this.renderer.text(Ct.text,0,0,Ct.useHTML).attr({align:Ct.align,class:"highcharts-"+it,zIndex:Ct.zIndex||4}).add()).update=function(wt){dt[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[it]](wt)},this.styledMode||xt.css(Ct.style),this[it]=xt)},ht.prototype.layOutTitles=function(it){var st=[0,0,0],dt=this.renderer,vt=this.spacingBox;["title","subtitle","caption"].forEach(function(xt){var wt,Mt,St=this[xt],Tt=this.options[xt],Lt=Tt.verticalAlign||"top",Pt=xt==="title"?Lt==="top"?-3:0:Lt==="top"?st[0]+2:0;St&&(this.styledMode||(wt=Tt.style&&Tt.style.fontSize),wt=dt.fontMetrics(wt,St).b,St.css({width:(Tt.width||vt.width+(Tt.widthAdjust||0))+"px"}),Mt=Math.round(St.getBBox(Tt.useHTML).height),St.align(A({y:Lt==="bottom"?wt:Pt+wt,height:Mt},Tt),!1,"spacingBox"),Tt.floating||(Lt==="top"?st[0]=Math.ceil(st[0]+Mt):Lt==="bottom"&&(st[2]=Math.ceil(st[2]+Mt))))},this),st[0]&&(this.options.title.verticalAlign||"top")==="top"&&(st[0]+=this.options.title.margin),st[2]&&this.options.caption.verticalAlign==="bottom"&&(st[2]+=this.options.caption.margin);var Ct=!this.titleOffset||this.titleOffset.join(",")!==st.join(",");this.titleOffset=st,_(this,"afterLayOutTitles"),!this.isDirtyBox&&Ct&&(this.isDirtyBox=this.isDirtyLegend=Ct,this.hasRendered&&Q(it,!0)&&this.isDirtyBox&&this.redraw())},ht.prototype.getChartSize=function(){var it=this,st=it.options.chart,dt=st.width,vt=st.height,Ct=it.renderTo;T(dt)||(it.containerWidth=L(Ct,"width")),T(vt)||(it.containerHeight=L(Ct,"height")),it.chartWidth=Math.max(0,dt||it.containerWidth||600),it.chartHeight=Math.max(0,rt(vt,it.chartWidth)||(it.containerHeight>1?it.containerHeight:400))},ht.prototype.temporaryDisplay=function(it){var st,dt=this.renderTo;if(it)for(;dt&&dt.style;)dt.hcOrigStyle&&(b(dt,dt.hcOrigStyle),delete dt.hcOrigStyle),dt.hcOrigDetached&&(r.body.removeChild(dt),dt.hcOrigDetached=!1),dt=dt.parentNode;else for(;dt&&dt.style&&(r.body.contains(dt)||dt.parentNode||(dt.hcOrigDetached=!0,r.body.appendChild(dt)),(L(dt,"display",!1)==="none"||dt.hcOricDetached)&&(dt.hcOrigStyle={display:dt.style.display,height:dt.style.height,overflow:dt.style.overflow},st={display:"block",overflow:"hidden"},dt!==this.renderTo&&(st.height=0),b(dt,st),dt.offsetWidth||dt.style.setProperty("display","block","important")),(dt=dt.parentNode)!==r.body););},ht.prototype.setClassName=function(it){this.container.className="highcharts-container "+(it||"")},ht.prototype.getContainer=function(){var it,st=this,dt=st.options,vt=dt.chart,Ct="data-highcharts-chart",xt=bt(),wt=st.renderTo;wt||(st.renderTo=wt=vt.renderTo),X(wt)&&(st.renderTo=wt=r.getElementById(wt)),wt||x(13,!0,st);var Mt=J(s(wt,Ct));j(Mt)&&f[Mt]&&f[Mt].hasRendered&&f[Mt].destroy(),s(wt,Ct,st.index),wt.innerHTML=u.emptyHTML,vt.skipClone||wt.offsetWidth||st.temporaryDisplay(),st.getChartSize();var St=st.chartWidth,Tt=st.chartHeight;b(wt,{overflow:"hidden"}),st.styledMode||(it=A({position:"relative",overflow:"hidden",width:St+"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 Lt=l("div",{id:xt},it,wt);st.container=Lt,st._cursor=Lt.style.cursor;var Pt=vt.renderer||!t?E.getRendererType(vt.renderer):k;if(st.renderer=new Pt(Lt,St,Tt,void 0,vt.forExport,dt.exporting&&dt.exporting.allowHTML,st.styledMode),v(void 0,st),st.setClassName(vt.className),st.styledMode)for(var Dt in dt.defs)this.renderer.definition(dt.defs[Dt]);else st.renderer.setStyle(vt.style);st.renderer.chartIndex=st.index,_(this,"afterGetContainer")},ht.prototype.getMargins=function(it){var st=this,dt=st.spacing,vt=st.margin,Ct=st.titleOffset;this.resetMargins(),Ct[0]&&!T(vt[0])&&(this.plotTop=Math.max(this.plotTop,Ct[0]+dt[0])),Ct[2]&&!T(vt[2])&&(this.marginBottom=Math.max(this.marginBottom,Ct[2]+dt[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(vt,dt),_(this,"getMargins"),it||this.getAxisMargins()},ht.prototype.getAxisMargins=function(){var it=this,st=it.axisOffset=[0,0,0,0],dt=it.colorAxis,vt=it.margin,Ct=function(xt){xt.forEach(function(wt){wt.visible&&wt.getOffset()})};it.hasCartesianSeries?Ct(it.axes):dt&&dt.length&&Ct(dt),a.forEach(function(xt,wt){T(vt[wt])||(it[xt]+=st[wt])}),it.setChartSize()},ht.prototype.reflow=function(it){var st=this,dt=st.options.chart,vt=st.renderTo,Ct=T(dt.width)&&T(dt.height),xt=dt.width||L(vt,"width"),wt=dt.height||L(vt,"height"),Mt=it?it.target:i;delete st.pointer.chartPosition,Ct||st.isPrinting||!xt||!wt||Mt!==i&&Mt!==r||(xt===st.containerWidth&&wt===st.containerHeight||(h.clearTimeout(st.reflowTimeout),st.reflowTimeout=mt(function(){st.container&&st.setSize(void 0,void 0,!1)},it?100:0)),st.containerWidth=xt,st.containerHeight=wt)},ht.prototype.setReflow=function(it){var st=this;it===!1||this.unbindReflow?it===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=e(i,"resize",function(dt){st.options&&st.reflow(dt)}),e(this,"destroy",this.unbindReflow))},ht.prototype.setSize=function(it,st,dt){var vt=this,Ct=vt.renderer;vt.isResizing+=1,v(dt,vt);var xt=Ct.globalAnimation;vt.oldChartHeight=vt.chartHeight,vt.oldChartWidth=vt.chartWidth,it!==void 0&&(vt.options.chart.width=it),st!==void 0&&(vt.options.chart.height=st),vt.getChartSize(),vt.styledMode||(xt?g: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,_(vt,"resize"),mt(function(){vt&&_(vt,"endResize",null,function(){vt.isResizing-=1})},d(xt).duration)},ht.prototype.setChartSize=function(it){var st,dt,vt,Ct,xt=this,wt=xt.inverted,Mt=xt.renderer,St=xt.chartWidth,Tt=xt.chartHeight,Lt=xt.options.chart,Pt=xt.spacing,Dt=xt.clipOffset;xt.plotLeft=st=Math.round(xt.plotLeft),xt.plotTop=dt=Math.round(xt.plotTop),xt.plotWidth=vt=Math.max(0,Math.round(St-st-xt.marginRight)),xt.plotHeight=Ct=Math.max(0,Math.round(Tt-dt-xt.marginBottom)),xt.plotSizeX=wt?Ct:vt,xt.plotSizeY=wt?vt:Ct,xt.plotBorderWidth=Lt.plotBorderWidth||0,xt.spacingBox=Mt.spacingBox={x:Pt[3],y:Pt[0],width:St-Pt[3]-Pt[1],height:Tt-Pt[0]-Pt[2]},xt.plotBox=Mt.plotBox={x:st,y:dt,width:vt,height:Ct};var jt=2*Math.floor(xt.plotBorderWidth/2),Ot=Math.ceil(Math.max(jt,Dt[3])/2),It=Math.ceil(Math.max(jt,Dt[0])/2);xt.clipBox={x:Ot,y:It,width:Math.floor(xt.plotSizeX-Math.max(jt,Dt[1])/2-Ot),height:Math.max(0,Math.floor(xt.plotSizeY-Math.max(jt,Dt[2])/2-It))},it||(xt.axes.forEach(function(Nt){Nt.setAxisSize(),Nt.setAxisTranslation()}),Mt.alignElements()),_(xt,"afterSetChartSize",{skipAxes:it})},ht.prototype.resetMargins=function(){_(this,"resetMargins");var it=this,st=it.options.chart;["margin","spacing"].forEach(function(dt){var vt=st[dt],Ct=Y(vt)?vt:[vt,vt,vt,vt];["Top","Right","Bottom","Left"].forEach(function(xt,wt){it[dt][wt]=Q(st[dt+xt],Ct[wt])})}),a.forEach(function(dt,vt){it[dt]=Q(it.margin[vt],it.spacing[vt])}),it.axisOffset=[0,0,0,0],it.clipOffset=[0,0,0,0]},ht.prototype.drawChartBox=function(){var it,st,dt,vt=this,Ct=vt.options.chart,xt=vt.renderer,wt=vt.chartWidth,Mt=vt.chartHeight,St=vt.styledMode,Tt=vt.plotBGImage,Lt=Ct.backgroundColor,Pt=Ct.plotBackgroundColor,Dt=Ct.plotBackgroundImage,jt=vt.plotLeft,Ot=vt.plotTop,It=vt.plotWidth,Nt=vt.plotHeight,Zt=vt.plotBox,zt=vt.clipRect,Ht=vt.clipBox,Kt=vt.chartBackground,me=vt.plotBackground,Ut=vt.plotBorder,te="animate";Kt||(vt.chartBackground=Kt=xt.rect().addClass("highcharts-background").add(),te="attr"),St?it=st=Kt.strokeWidth():(st=(it=Ct.borderWidth||0)+(Ct.shadow?8:0),dt={fill:Lt||"none"},(it||Kt["stroke-width"])&&(dt.stroke=Ct.borderColor,dt["stroke-width"]=it),Kt.attr(dt).shadow(Ct.shadow)),Kt[te]({x:st/2,y:st/2,width:wt-st-it%2,height:Mt-st-it%2,r:Ct.borderRadius}),te="animate",me||(te="attr",vt.plotBackground=me=xt.rect().addClass("highcharts-plot-background").add()),me[te](Zt),St||(me.attr({fill:Pt||"none"}).shadow(Ct.plotShadow),Dt&&(Tt?(Dt!==Tt.attr("href")&&Tt.attr("href",Dt),Tt.animate(Zt)):vt.plotBGImage=xt.image(Dt,jt,Ot,It,Nt).add())),zt?zt.animate({width:Ht.width,height:Ht.height}):vt.clipRect=xt.clipRect(Ht),te="animate",Ut||(te="attr",vt.plotBorder=Ut=xt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),St||Ut.attr({stroke:Ct.plotBorderColor,"stroke-width":Ct.plotBorderWidth||0,fill:"none"}),Ut[te](Ut.crisp({x:jt,y:Ot,width:It,height:Nt},-Ut.strokeWidth())),vt.isDirtyBox=!1,_(this,"afterDrawChartBox")},ht.prototype.propFromSeries=function(){var it,st,dt,vt=this,Ct=vt.options.chart,xt=vt.options.series;["inverted","angular","polar"].forEach(function(wt){for(st=o[Ct.type||Ct.defaultSeriesType],dt=Ct[wt]||st&&st.prototype[wt],it=xt&&xt.length;!dt&&it--;)(st=o[xt[it].type])&&st.prototype[wt]&&(dt=!0);vt[wt]=dt})},ht.prototype.linkSeries=function(){var it=this,st=it.series;st.forEach(function(dt){dt.linkedSeries.length=0}),st.forEach(function(dt){var vt=dt.options.linkedTo;X(vt)&&(vt=vt===":previous"?it.series[dt.index-1]:it.get(vt))&&vt.linkedParent!==dt&&(vt.linkedSeries.push(dt),dt.linkedParent=vt,vt.enabledDataSorting&&dt.setDataSortingOptions(),dt.visible=Q(dt.options.visible,vt.options.visible,dt.visible))}),_(this,"afterLinkSeries")},ht.prototype.renderSeries=function(){this.series.forEach(function(it){it.translate(),it.render()})},ht.prototype.renderLabels=function(){var it=this,st=it.options.labels;st.items&&st.items.forEach(function(dt){var vt=A(st.style,dt.style),Ct=J(vt.left)+it.plotLeft,xt=J(vt.top)+it.plotTop+12;delete vt.left,delete vt.top,it.renderer.text(dt.html,Ct,xt).attr({zIndex:2}).css(vt).add()})},ht.prototype.render=function(){var it=this,st=it.axes,dt=it.colorAxis,vt=it.renderer,Ct=it.options,xt=function(Pt){Pt.forEach(function(Dt){Dt.visible&&Dt.render()})},wt=0;it.setTitle(),it.legend=new U(it,Ct.legend),it.getStacks&&it.getStacks(),it.getMargins(!0),it.setChartSize();var Mt=it.plotWidth;st.some(function(Pt){if(Pt.horiz&&Pt.visible&&Pt.options.labels.enabled&&Pt.series.length)return wt=21,!0}),it.plotHeight=Math.max(it.plotHeight-wt,0);var St=it.plotHeight;st.forEach(function(Pt){Pt.setScale()}),it.getAxisMargins();var Tt=Mt/it.plotWidth>1.1,Lt=St/it.plotHeight>1.05;(Tt||Lt)&&(st.forEach(function(Pt){(Pt.horiz&&Tt||!Pt.horiz&&Lt)&&Pt.setTickInterval(!0)}),it.getMargins()),it.drawChartBox(),it.hasCartesianSeries?xt(st):dt&&dt.length&&xt(dt),it.seriesGroup||(it.seriesGroup=vt.g("series-group").attr({zIndex:3}).add()),it.renderSeries(),it.renderLabels(),it.addCredits(),it.setResponsive&&it.setResponsive(),it.hasRendered=!0},ht.prototype.addCredits=function(it){var st=this,dt=G(!0,this.options.credits,it);dt.enabled&&!this.credits&&(this.credits=this.renderer.text(dt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){dt.href&&(i.location.href=dt.href)}).attr({align:dt.position.align,zIndex:8}),st.styledMode||this.credits.css(dt.style),this.credits.add().align(dt.position),this.credits.update=function(vt){st.credits=st.credits.destroy(),st.addCredits(vt)})},ht.prototype.destroy=function(){var it,st=this,dt=st.axes,vt=st.series,Ct=st.container,xt=Ct&&Ct.parentNode;for(_(st,"destroy"),st.renderer.forExport?p(f,st):f[st.index]=void 0,Z.chartCount--,st.renderTo.removeAttribute("data-highcharts-chart"),lt(st),it=dt.length;it--;)dt[it]=dt[it].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),it=vt.length;it--;)vt[it]=vt[it].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(wt){var Mt=st[wt];Mt&&Mt.destroy&&(st[wt]=Mt.destroy())}),Ct&&(Ct.innerHTML=u.emptyHTML,lt(Ct),xt&&D(Ct)),q(st,function(wt,Mt){delete st[Mt]})},ht.prototype.firstRender=function(){var it=this,st=it.options;it.isReadyToRender&&!it.isReadyToRender()||(it.getContainer(),it.resetMargins(),it.setChartSize(),it.propFromSeries(),it.getAxes(),(O(st.series)?st.series:[]).forEach(function(dt){it.initSeries(dt)}),it.linkSeries(),it.setSeriesData(),_(it,"beforeRender"),I&&(z.isRequired()?it.pointer=new z(it,st):it.pointer=new I(it,st)),it.render(),it.pointer.getChartPosition(),it.renderer.imgCount||it.hasLoaded||it.onload(),it.temporaryDisplay(!0))},ht.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(it){it&&this.index!==void 0&&it.apply(this,[this])},this),_(this,"load"),_(this,"render"),T(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},ht.prototype.warnIfA11yModuleNotLoaded=function(){var it=this.options,st=this.title;it&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(st&&st.element.textContent||"").replace(/</g,"<")}),it.accessibility&&it.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))},ht.prototype.addSeries=function(it,st,dt){var vt,Ct=this;return it&&(st=Q(st,!0),_(Ct,"addSeries",{options:it},function(){vt=Ct.initSeries(it),Ct.isDirtyLegend=!0,Ct.linkSeries(),vt.enabledDataSorting&&vt.setData(it.data,!1),_(Ct,"afterAddSeries",{series:vt}),st&&Ct.redraw(dt)})),vt},ht.prototype.addAxis=function(it,st,dt,vt){return this.createAxis(st?"xAxis":"yAxis",{axis:it,redraw:dt,animation:vt})},ht.prototype.addColorAxis=function(it,st,dt){return this.createAxis("colorAxis",{axis:it,redraw:st,animation:dt})},ht.prototype.createAxis=function(it,st){var dt=new R(this,G(st.axis,{index:this[it].length,isX:it==="xAxis"}));return Q(st.redraw,!0)&&this.redraw(st.animation),dt},ht.prototype.showLoading=function(it){var st=this,dt=st.options,vt=dt.loading,Ct=function(){xt&&b(xt,{left:st.plotLeft+"px",top:st.plotTop+"px",width:st.plotWidth+"px",height:st.plotHeight+"px"})},xt=st.loadingDiv,wt=st.loadingSpan;xt||(st.loadingDiv=xt=l("div",{className:"highcharts-loading highcharts-loading-hidden"},null,st.container)),wt||(st.loadingSpan=wt=l("span",{className:"highcharts-loading-inner"},null,xt),e(st,"redraw",Ct)),xt.className="highcharts-loading",u.setElementHTML(wt,Q(it,dt.lang.loading,"")),st.styledMode||(b(xt,A(vt.style,{zIndex:10})),b(wt,vt.labelStyle),st.loadingShown||(b(xt,{opacity:0,display:""}),g(xt,{opacity:vt.style.opacity||.5},{duration:vt.showDuration||0}))),st.loadingShown=!0,Ct()},ht.prototype.hideLoading=function(){var it=this.options,st=this.loadingDiv;st&&(st.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(st,{opacity:0},{duration:it.loading.hideDuration||100,complete:function(){b(st,{display:"none"})}})),this.loadingShown=!1},ht.prototype.update=function(it,st,dt,vt){var Ct,xt,wt,Mt=this,St={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Tt=it.isResponsiveOptions,Lt=[];_(Mt,"update",{options:it}),Tt||Mt.setResponsive(!1,!0),it=n(it,Mt.options),Mt.userOptions=G(Mt.userOptions,it);var Pt=it.chart;Pt&&(G(!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&&c(this,Pt),q(Pt,function(Ot,It){Mt.propsRequireUpdateSeries.indexOf("chart."+It)!==-1&&(xt=!0),Mt.propsRequireDirtyBox.indexOf(It)!==-1&&(Mt.isDirtyBox=!0),Mt.propsRequireReflow.indexOf(It)!==-1&&(Tt?Mt.isDirtyBox=!0:wt=!0)}),!Mt.styledMode&&Pt.style&&Mt.renderer.setStyle(Mt.options.chart.style||{})),!Mt.styledMode&&it.colors&&(this.options.colors=it.colors),it.time&&(this.time===S&&(this.time=new y(it.time)),G(!0,Mt.options.time,it.time)),q(it,function(Ot,It){Mt[It]&&typeof Mt[It].update=="function"?Mt[It].update(Ot,!1):typeof Mt[St[It]]=="function"?Mt[St[It]](Ot):It!=="colors"&&Mt.collectionsWithUpdate.indexOf(It)===-1&&G(!0,Mt.options[It],it[It]),It!=="chart"&&Mt.propsRequireUpdateSeries.indexOf(It)!==-1&&(xt=!0)}),this.collectionsWithUpdate.forEach(function(Ot){var It;it[Ot]&&(It=[],Mt[Ot].forEach(function(Nt,Zt){Nt.options.isInternal||It.push(Q(Nt.options.index,Zt))}),gt(it[Ot]).forEach(function(Nt,Zt){var zt,Ht=T(Nt.id);Ht&&(zt=Mt.get(Nt.id)),!zt&&Mt[Ot]&&(zt=Mt[Ot][It?It[Zt]:Zt])&&Ht&&T(zt.options.id)&&(zt=void 0),zt&&zt.coll===Ot&&(zt.update(Nt,!1),dt&&(zt.touched=!0)),!zt&&dt&&Mt.collectionsWithInit[Ot]&&(Mt.collectionsWithInit[Ot][0].apply(Mt,[Nt].concat(Mt.collectionsWithInit[Ot][1]||[]).concat([!1])).touched=!0)}),dt&&Mt[Ot].forEach(function(Nt){Nt.touched||Nt.options.isInternal?delete Nt.touched:Lt.push(Nt)}))}),Lt.forEach(function(Ot){Ot.chart&&Ot.remove&&Ot.remove(!1)}),Ct&&Mt.axes.forEach(function(Ot){Ot.update({},!1)}),xt&&Mt.getSeriesOrderByLinks().forEach(function(Ot){Ot.chart&&Ot.update({},!1)},this);var Dt=Pt&&Pt.width,jt=Pt&&(X(Pt.height)?rt(Pt.height,Dt||Mt.chartWidth):Pt.height);wt||j(Dt)&&Dt!==Mt.chartWidth||j(jt)&&jt!==Mt.chartHeight?Mt.setSize(Dt,jt,vt):Q(st,!0)&&Mt.redraw(vt),_(Mt,"afterUpdate",{options:it,redraw:st,animation:vt})},ht.prototype.setSubtitle=function(it,st){this.applyDescription("subtitle",it),this.layOutTitles(st)},ht.prototype.setCaption=function(it,st){this.applyDescription("caption",it),this.layOutTitles(st)},ht.prototype.showResetZoom=function(){var it=this,st=w.lang,dt=it.options.chart.zooming.resetButton,vt=dt.theme,Ct=dt.relativeTo==="chart"||dt.relativeTo==="spacingBox"?null:"scrollablePlotBox";function xt(){it.zoomOut()}_(this,"beforeShowResetZoom",null,function(){it.resetZoomButton=it.renderer.button(st.resetZoom,null,null,xt,vt).attr({align:dt.position.align,title:st.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(dt.position,!1,Ct)}),_(this,"afterShowResetZoom")},ht.prototype.zoomOut=function(){_(this,"selection",{resetSelection:!0},this.zoom)},ht.prototype.zoom=function(it){var st,dt=this,vt=dt.pointer,Ct=!1;!it||it.resetSelection?(dt.axes.forEach(function(wt){st=wt.zoom()}),vt.initiated=!1):it.xAxis.concat(it.yAxis).forEach(function(wt){var Mt=wt.axis,St=Mt.isXAxis;(vt[St?"zoomX":"zoomY"]&&T(vt.mouseDownX)&&T(vt.mouseDownY)&&dt.isInsidePlot(vt.mouseDownX-dt.plotLeft,vt.mouseDownY-dt.plotTop,{axis:Mt})||!T(dt.inverted?vt.mouseDownX:vt.mouseDownY))&&(st=Mt.zoom(wt.min,wt.max),Mt.displayBtn&&(Ct=!0))});var xt=dt.resetZoomButton;Ct&&!xt?dt.showResetZoom():!Ct&&Y(xt)&&(dt.resetZoomButton=xt.destroy()),st&&dt.redraw(Q(dt.options.chart.animation,it&&it.animation,dt.pointCount<100))},ht.prototype.pan=function(it,st){var dt=this,vt=dt.hoverPoints,Ct=typeof st=="object"?st:{enabled:st,type:"x"},xt=dt.options.chart;xt&&xt.panning&&(xt.panning=Ct);var wt,Mt=Ct.type;_(this,"pan",{originalEvent:it},function(){vt&&vt.forEach(function(Lt){Lt.setState()});var St=dt.xAxis;Mt==="xy"?St=St.concat(dt.yAxis):Mt==="y"&&(St=dt.yAxis);var Tt={};St.forEach(function(Lt){if(Lt.options.panningEnabled&&!Lt.options.isInternal){var Pt,Dt=Lt.horiz,jt=it[Dt?"chartX":"chartY"],Ot=Dt?"mouseDownX":"mouseDownY",It=dt[Ot],Nt=Lt.minPointOffset||0,Zt=Lt.reversed&&!dt.inverted||!Lt.reversed&&dt.inverted?-1:1,zt=Lt.getExtremes(),Ht=Lt.toValue(It-jt,!0)+Nt*Zt,Kt=Lt.toValue(It+Lt.len-jt,!0)-(Nt*Zt||Lt.isXAxis&&Lt.pointRangePadding||0),me=Kt<Ht,Ut=Lt.hasVerticalPanning(),te=me?Kt:Ht,ye=me?Ht:Kt,Et=Lt.panningState;!Ut||Lt.isXAxis||Et&&!Et.isDirty||Lt.series.forEach(function($t){var ce=$t.getProcessedData(!0),pe=$t.getExtremes(ce.yData,!0);Et||(Et={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(pe.dataMin)&&j(pe.dataMax)&&(Et.startMin=Math.min(Q($t.options.threshold,1/0),pe.dataMin,Et.startMin),Et.startMax=Math.max(Q($t.options.threshold,-1/0),pe.dataMax,Et.startMax))});var Gt=Math.min(Q(Et&&Et.startMin,zt.dataMin),Nt?zt.min:Lt.toValue(Lt.toPixels(zt.min)-Lt.minPixelPadding)),Yt=Math.max(Q(Et&&Et.startMax,zt.dataMax),Nt?zt.max:Lt.toValue(Lt.toPixels(zt.max)+Lt.minPixelPadding));Lt.panningState=Et,Lt.isOrdinal||((Pt=Gt-te)>0&&(ye+=Pt,te=Gt),(Pt=ye-Yt)>0&&(ye=Yt,te-=Pt),Lt.series.length&&te!==zt.min&&ye!==zt.max&&te>=Gt&&ye<=Yt&&(Lt.setExtremes(te,ye,!1,!1,{trigger:"pan"}),!dt.resetZoomButton&&te!==Gt&&ye!==Yt&&Mt.match("y")&&(dt.showResetZoom(),Lt.displayBtn=!1),wt=!0),Tt[Ot]=jt)}}),q(Tt,function(Lt,Pt){dt[Pt]=Lt}),wt&&dt.redraw(!1),b(dt.container,{cursor:"move"})})},ht}();return A(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(B,"Core/Legend/LegendSymbol.js",[B["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.merge,$=W.pick;return function(Z){Z.drawLineMarker=function(U){var z,I=this.legendItem=this.legendItem||{},E=this.options,M=U.symbolWidth,k=U.symbolHeight,y=k/2,h=this.chart.renderer,u=I.group,g=U.baseline-Math.round(.3*U.fontMetrics.b),d={},v=E.marker,w=0;if(this.chart.styledMode||(d={"stroke-width":Math.min(E.lineWidth||0,24)},E.dashStyle?d.dashstyle=E.dashStyle:E.linecap!=="square"&&(d["stroke-linecap"]="round")),I.line=h.path().addClass("highcharts-graph").attr(d).add(u),d["stroke-linecap"]&&(w=Math.min(I.line.strokeWidth(),M)/2),I.line.attr({d:[["M",w,g],["L",M-w,g]]}),v&&v.enabled!==!1&&M){var S=Math.min($(v.radius,y),y);this.symbol.indexOf("url")===0&&(v=V(v,{width:k,height:k}),S=0),I.symbol=z=h.symbol(this.symbol,M/2-S,g-S,2*S,2*S,H({context:"legend"},v)).addClass("highcharts-point").add(u),z.isMarker=!0}},Z.drawRectangle=function(U,z){var I=z.legendItem||{},E=U.options,M=U.symbolHeight,k=E.squareSymbol,y=k?M:U.symbolWidth;I.symbol=this.chart.renderer.rect(k?(U.symbolWidth-M)/2:0,U.baseline-M+1,y,M,$(U.options.symbolRadius,M/2)).addClass("highcharts-point").attr({zIndex:3}).add(I.group)}}(R||(R={})),R}),et(B,"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 W=this.series.chart.numberFormatter;return typeof this.y!="number"?"":W(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(B,"Core/Series/Series.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Defaults.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M=W.animObject,k=W.setAnimation,y=R.defaultOptions,h=H.registerEventOptions,u=V.hasTouch,g=V.svg,d=V.win,v=z.seriesTypes,w=E.arrayMax,S=E.arrayMin,C=E.clamp,c=E.cleanRecursively,f=E.correctFloat,r=E.defined,a=E.erase,t=E.error,i=E.extend,o=E.find,e=E.fireEvent,s=E.getNestedProperty,n=E.isArray,l=E.isNumber,b=E.isString,T=E.merge,D=E.objectEach,p=E.pick,x=E.removeEvent,A=E.splat,N=E.syncTimeout,_=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(O,j){e(this,"init",{options:j});var Y=this,X=O.series;this.eventsToUnbind=[],Y.chart=O,Y.options=Y.setOptions(j);var G=Y.options;Y.linkedSeries=[],Y.bindAxes(),i(Y,{name:G.name,state:"",visible:G.visible!==!1,selected:G.selected===!0}),h(this,G);var q,Q=G.events;(Q&&Q.click||G.point&&G.point.events&&G.point.events.click||G.allowPointSelect)&&(O.runTrackerClick=!0),Y.getColor(),Y.getSymbol(),Y.parallelArrays.forEach(function(J){Y[J+"Data"]||(Y[J+"Data"]=[])}),Y.isCartesian&&(O.hasCartesianSeries=!0),X.length&&(q=X[X.length-1]),Y._i=p(q&&q._i,-1)+1,Y.opacity=Y.options.opacity,O.orderSeries(this.insert(X)),G.dataSorting&&G.dataSorting.enabled?Y.setDataSortingOptions():Y.points||Y.data||Y.setData(G.data,!1),e(this,"afterInit")},L.prototype.is=function(O){return v[O]&&this instanceof v[O]},L.prototype.insert=function(O){var j,Y=this.options.index;if(l(Y)){for(j=O.length;j--;)if(Y>=p(O[j].options.index,O[j]._i)){O.splice(j+1,0,this);break}j===-1&&O.unshift(this),j+=1}else O.push(this);return p(j,O.length-1)},L.prototype.bindAxes=function(){var O,j=this,Y=j.options,X=j.chart;e(this,"bindAxes",null,function(){(j.axisTypes||[]).forEach(function(G){var q=0;X[G].forEach(function(Q){O=Q.options,(Y[G]===q&&!O.isInternal||Y[G]!==void 0&&Y[G]===O.id||Y[G]===void 0&&O.index===0)&&(j.insert(Q.series),j[G]=Q,Q.isDirty=!0),O.isInternal||q++}),j[G]||j.optionalAxis===G||t(18,!0,X)})}),e(this,"afterBindAxes")},L.prototype.updateParallelArrays=function(O,j){var Y=O.series,X=arguments,G=l(j)?function(q){var Q=q==="y"&&Y.toYData?Y.toYData(O):O[q];Y[q+"Data"][j]=Q}:function(q){Array.prototype[j].apply(Y[q+"Data"],Array.prototype.slice.call(X,2))};Y.parallelArrays.forEach(G)},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(O){var j,Y,X=this.options,G=X.pointIntervalUnit,q=X.relativeXValue,Q=this.chart.time,J=this.xIncrement;return J=p(J,X.pointStart,0),this.pointInterval=Y=p(this.pointInterval,X.pointInterval,1),q&&l(O)&&(Y*=O),G&&(j=new Q.Date(J),G==="day"?Q.set("Date",j,Q.get("Date",j)+Y):G==="month"?Q.set("Month",j,Q.get("Month",j)+Y):G==="year"&&Q.set("FullYear",j,Q.get("FullYear",j)+Y),Y=j.getTime()-J),q&&l(O)?J+Y:(this.xIncrement=J+Y,J)},L.prototype.setDataSortingOptions=function(){var O=this.options;i(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),r(O.pointRange)||(O.pointRange=1)},L.prototype.setOptions=function(O){var j,Y=this.chart,X=Y.options,G=X.plotOptions,q=Y.userOptions||{},Q=T(O),J=Y.styledMode,rt={plotOptions:G,userOptions:Q};e(this,"setOptions",rt);var lt=rt.plotOptions[this.type],gt=q.plotOptions||{};this.userOptions=rt.userOptions;var mt=T(lt,G.series,q.plotOptions&&q.plotOptions[this.type],Q);this.tooltipOptions=T(y.tooltip,y.plotOptions.series&&y.plotOptions.series.tooltip,y.plotOptions[this.type].tooltip,X.tooltip.userOptions,G.series&&G.series.tooltip,G[this.type].tooltip,Q.tooltip),this.stickyTracking=p(Q.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"},J||(j.color=mt.negativeColor,j.fillColor=mt.negativeFillColor),bt.push(j)),bt.length&&r(bt[bt.length-1].value)&&bt.push(J?{}:{color:this.color,fillColor:this.fillColor}),e(this,"afterSetOptions",{options:mt}),mt},L.prototype.getName=function(){return p(this.options.name,"Series "+(this.index+1))},L.prototype.getCyclic=function(O,j,Y){var X,G,q=this.chart,Q=this.userOptions,J=O+"Index",rt=O+"Counter",lt=Y?Y.length:p(q.options.chart[O+"Count"],q[O+"Count"]);j||(G=p(Q[J],Q["_"+J]),r(G)?X=G:(q.series.length||(q[rt]=0),Q["_"+J]=X=q[rt]%lt,q[rt]+=1),Y&&(j=Y[X])),X!==void 0&&(this[J]=X),this[O]=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 O=this.options.marker;this.getCyclic("symbol",O.symbol,this.chart.options.symbols)},L.prototype.findPointIndex=function(O,j){var Y,X,G,q=O.id,Q=O.x,J=this.points,rt=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===O.index};if(rt&&rt.matchByName?gt=function(mt){return!mt.touched&&mt.name===O.name}:this.options.relativeXValue&&(gt=function(mt){return!mt.touched&&mt.options.x===O.x}),!(Y=o(J,gt)))return}return Y&&(G=Y&&Y.index)!==void 0&&(X=!0),G===void 0&&l(Q)&&(G=this.xData.indexOf(Q,j)),G!==-1&&G!==void 0&&this.cropped&&(G=G>=this.cropStart?G-this.cropStart:G),!X&&l(G)&&J[G]&&J[G].touched&&(G=void 0),G},L.prototype.updateData=function(O,j){var Y,X,G,q,Q=this.options,J=Q.dataSorting,rt=this.points,lt=[],gt=this.requireSorting,mt=O.length===rt.length,bt=!0;if(this.xIncrement=null,O.forEach(function(yt,ht){var it,st=r(yt)&&this.pointClass.prototype.optionsToObject.call({series:this},yt)||{},dt=st.x;st.id||l(dt)?((it=this.findPointIndex(st,q))===-1||it===void 0?lt.push(yt):rt[it]&&yt!==Q.data[it]?(rt[it].update(yt,!1,null,!1),rt[it].touched=!0,gt&&(q=it+1)):rt[it]&&(rt[it].touched=!0),(!mt||ht!==it||J&&J.enabled||this.hasDerivedData)&&(Y=!0)):lt.push(yt)},this),Y)for(X=rt.length;X--;)(G=rt[X])&&!G.touched&&G.remove&&G.remove(!1,j);else!mt||J&&J.enabled?bt=!1:(O.forEach(function(yt,ht){yt!==rt[ht].y&&rt[ht].update&&rt[ht].update(yt,!1,null,!1)}),lt.length=0);return rt.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(O,j,Y,X){j===void 0&&(j=!0);var G,q,Q,J,rt=this,lt=rt.points,gt=lt&<.length||0,mt=rt.options,bt=rt.chart,yt=mt.dataSorting,ht=rt.xAxis,it=mt.turboThreshold,st=this.xData,dt=this.yData,vt=rt.pointArrayMap,Ct=vt&&vt.length,xt=mt.keys,wt=0,Mt=1,St=null;bt.options.chart.allowMutatingData||(mt.data&&delete rt.options.data,rt.userOptions.data&&delete rt.userOptions.data,J=T(!0,O));var Tt=(O=J||O||[]).length;if(yt&&yt.enabled&&(O=this.sortData(O)),bt.options.chart.allowMutatingData&&X!==!1&&Tt&>&&!rt.cropped&&!rt.hasGroupedData&&rt.visible&&!rt.boosted&&(Q=this.updateData(O,Y)),!Q){if(rt.xIncrement=null,rt.colorCounter=0,this.parallelArrays.forEach(function(Lt){rt[Lt+"Data"].length=0}),it&&Tt>it)if(St=rt.getFirstValidPoint(O),l(St))for(G=0;G<Tt;G++)st[G]=this.autoIncrement(),dt[G]=O[G];else if(n(St))if(Ct)if(St.length===Ct)for(G=0;G<Tt;G++)st[G]=this.autoIncrement(),dt[G]=O[G];else for(G=0;G<Tt;G++)q=O[G],st[G]=q[0],dt[G]=q.slice(1,Ct+1);else if(xt&&(wt=(wt=xt.indexOf("x"))>=0?wt:0,Mt=(Mt=xt.indexOf("y"))>=0?Mt:1),St.length===1&&(Mt=0),wt===Mt)for(G=0;G<Tt;G++)st[G]=this.autoIncrement(),dt[G]=O[G][Mt];else for(G=0;G<Tt;G++)q=O[G],st[G]=q[wt],dt[G]=q[Mt];else t(12,!1,bt);else for(G=0;G<Tt;G++)O[G]!==void 0&&(q={series:rt},rt.pointClass.prototype.applyOptions.apply(q,[O[G]]),rt.updateParallelArrays(q,G));for(dt&&b(dt[0])&&t(14,!0,bt),rt.data=[],rt.options.data=rt.userOptions.data=O,G=gt;G--;)lt[G]&<[G].destroy&<[G].destroy();ht&&(ht.minRange=ht.userMinRange),rt.isDirty=bt.isDirtyBox=!0,rt.isDirtyData=!!lt,Y=!1}mt.legendType==="point"&&(this.processData(),this.generatePoints()),j&&bt.redraw(Y)},L.prototype.sortData=function(O){var j=this,Y=j.options.dataSorting.sortKey||"y",X=function(G,q){return r(q)&&G.pointClass.prototype.optionsToObject.call({series:G},q)||{}};return O.forEach(function(G,q){O[q]=X(j,G),O[q].index=q},this),O.concat().sort(function(G,q){var Q=s(Y,G),J=s(Y,q);return J<Q?-1:J>Q?1:0}).forEach(function(G,q){G.x=q},this),j.linkedSeries&&j.linkedSeries.forEach(function(G){var q=G.options,Q=q.data;q.dataSorting&&q.dataSorting.enabled||!Q||(Q.forEach(function(J,rt){Q[rt]=X(G,J),O[rt]&&(Q[rt].x=O[rt].x,Q[rt].index=rt)}),G.setData(Q,!1))}),O},L.prototype.getProcessedData=function(O){var j,Y,X,G,q,Q,J,rt,lt=this,gt=lt.xAxis,mt=lt.options,bt=mt.cropThreshold,yt=O||lt.getExtremesFromAll||mt.getExtremesFromAll,ht=lt.isCartesian,it=gt&>.val2lin,st=!(!gt||!gt.logarithmic),dt=0,vt=lt.xData,Ct=lt.yData,xt=lt.requireSorting,wt=!1,Mt=vt.length;for(gt&&(J=(Q=gt.getExtremes()).min,rt=Q.max,wt=!(!gt.categories||gt.names.length)),ht&<.sorted&&!yt&&(!bt||Mt>bt||lt.forceCrop)&&(vt[Mt-1]<J||vt[0]>rt?(vt=[],Ct=[]):lt.yData&&(vt[0]<J||vt[Mt-1]>rt)&&(vt=(j=this.cropData(lt.xData,lt.yData,J,rt)).xData,Ct=j.yData,dt=j.start,Y=!0)),q=vt.length||1;--q;)(X=st?it(vt[q])-it(vt[q-1]):vt[q]-vt[q-1])>0&&(G===void 0||X<G)?G=X:X<0&&xt&&!wt&&(t(15,!1,lt.chart),xt=!1);return{xData:vt,yData:Ct,cropped:Y,cropStart:dt,closestPointRange:G}},L.prototype.processData=function(O){var j=this,Y=j.xAxis;if(j.isCartesian&&!j.isDirty&&!Y.isDirty&&!j.yAxis.isDirty&&!O)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(O,j,Y,X,G){var q,Q,J=O.length,rt=0,lt=J;for(G=p(G,this.cropShoulder),q=0;q<J;q++)if(O[q]>=Y){rt=Math.max(0,q-G);break}for(Q=q;Q<J;Q++)if(O[Q]>X){lt=Q+G;break}return{xData:O.slice(rt,lt),yData:j.slice(rt,lt),start:rt,end:lt}},L.prototype.generatePoints=function(){var O,j,Y,X,G=this,q=G.options,Q=G.processedData||q.data,J=G.processedXData,rt=G.processedYData,lt=G.pointClass,gt=J.length,mt=G.cropStart||0,bt=G.hasGroupedData,yt=q.keys,ht=[],it=q.dataGrouping&&q.dataGrouping.groupAll?mt:0,st=G.data;if(!st&&!bt){var dt=[];dt.length=Q.length,st=G.data=dt}for(yt&&bt&&(G.options.keys=!1),X=0;X<gt;X++)j=mt+X,bt?((Y=new lt().init(G,[J[X]].concat(A(rt[X])))).dataGroup=G.groupMap[it+X],Y.dataGroup.options&&(Y.options=Y.dataGroup.options,i(Y,Y.dataGroup.options),delete Y.dataLabels)):(Y=st[j])||Q[j]===void 0||(st[j]=Y=new lt().init(G,Q[j],J[X])),Y&&(Y.index=bt?it+X:j,ht[X]=Y);if(G.options.keys=yt,st&&(gt!==(O=st.length)||bt))for(X=0;X<O;X++)X!==mt||bt||(X+=gt),st[X]&&(st[X].destroyElements(),st[X].plotX=void 0);G.data=st,G.points=ht,e(this,"afterGeneratePoints")},L.prototype.getXExtremes=function(O){return{min:S(O),max:w(O)}},L.prototype.getExtremes=function(O,j){var Y,X,G,q,Q,J,rt,lt=this.xAxis,gt=this.yAxis,mt=this.processedXData||this.xData,bt=[],yt=this.requireSorting?this.cropShoulder:0,ht=!!gt&>.positiveValuesOnly,it=0,st=0,dt=0,vt=(O=O||this.stackedYData||this.processedYData||[]).length;for(lt&&(it=(Y=lt.getExtremes()).min,st=Y.max),J=0;J<vt;J++)if(q=mt[J],Q=O[J],X=(l(Q)||n(Q))&&(Q.length||Q>0||!ht),G=j||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!lt||(mt[J+yt]||q)>=it&&(mt[J-yt]||q)<=st,X&&G)if(rt=Q.length)for(;rt--;)l(Q[rt])&&(bt[dt++]=Q[rt]);else bt[dt++]=Q;var Ct={activeYData:bt,dataMin:S(bt),dataMax:w(bt)};return e(this,"afterGetExtremes",{dataExtremes:Ct}),Ct},L.prototype.applyExtremes=function(){var O=this.getExtremes();return this.dataMin=O.dataMin,this.dataMax=O.dataMax,O},L.prototype.getFirstValidPoint=function(O){for(var j=O.length,Y=0,X=null;X===null&&Y<j;)X=O[Y],Y++;return X},L.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var O,j,Y,X,G=this,q=G.options,Q=q.stacking,J=G.xAxis,rt=J.categories,lt=G.enabledDataSorting,gt=G.yAxis,mt=G.points,bt=mt.length,yt=G.pointPlacementToXValue(),ht=!!yt,it=q.threshold,st=q.startFromThreshold?it:0,dt=this.zoneAxis||"y",vt=Number.MAX_VALUE;function Ct(jt){return C(jt,-1e5,1e5)}for(O=0;O<bt;O++){var xt=mt[O],wt=xt.x,Mt=void 0,St=void 0,Tt=xt.y,Lt=xt.low,Pt=Q&>.stacking&>.stacking.stacks[(G.negStacks&&Tt<(st?0:it)?"-":"")+G.stackKey];if((gt.positiveValuesOnly&&!gt.validatePositiveValue(Tt)||J.positiveValuesOnly&&!J.validatePositiveValue(wt))&&(xt.isNull=!0),xt.plotX=j=f(Ct(J.translate(wt,0,0,0,1,yt,this.type==="flags"))),Q&&G.visible&&Pt&&Pt[wt]&&(X=G.getStackIndicator(X,wt,G.index),!xt.isNull&&X.key&&(St=(Mt=Pt[wt]).points[X.key]),Mt&&n(St)&&(Lt=St[0],Tt=St[1],Lt===st&&X.key===Pt[wt].base&&(Lt=p(l(it)?it:gt.min)),gt.positiveValuesOnly&&r(Lt)&&Lt<=0&&(Lt=void 0),xt.total=xt.stackTotal=p(Mt.total),xt.percentage=r(xt.y)&&Mt.total?xt.y/Mt.total*100:void 0,xt.stackY=Tt,G.irregularWidths||Mt.setOffset(G.pointXOffset||0,G.barW||0,void 0,void 0,void 0,G.xAxis))),xt.yBottom=r(Lt)?Ct(gt.translate(Lt,0,1,0,1)):void 0,G.dataModify&&(Tt=G.dataModify.modifyValue(Tt,O)),xt.plotY=void 0,l(Tt)){var Dt=gt.translate(Tt,!1,!0,!1,!0);Dt!==void 0&&(xt.plotY=Ct(Dt))}xt.isInside=this.isPointInside(xt),xt.clientX=ht?f(J.translate(wt,0,0,0,1,yt)):j,xt.negative=xt[dt]<(q[dt+"Threshold"]||it||0),xt.category=p(rt&&rt[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&&G.group&<&&(xt.isNew=!0)}G.closestPointRangePx=vt,e(this,"afterTranslate")},L.prototype.getValidPoints=function(O,j,Y){var X=this.chart;return(O||this.points||[]).filter(function(G){return!(j&&!X.isInsidePlot(G.plotX,G.plotY,{inverted:X.inverted}))&&G.visible!==!1&&(Y||!G.isNull)})},L.prototype.getClipBox=function(){var O=this,j=O.chart,Y=O.xAxis,X=O.yAxis,G=T(j.clipBox);return Y&&Y.len!==j.plotSizeX&&(G.width=Y.len),X&&X.len!==j.plotSizeY&&(G.height=X.len),G},L.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},L.prototype.setClip=function(){var O=this,j=O.chart,Y=O.group,X=O.markerGroup,G=j.sharedClips,q=j.renderer,Q=this.getClipBox(),J=this.getSharedClipKey(),rt=G[J];rt?rt.animate(Q):G[J]=rt=q.clipRect(Q),Y&&Y.clip(this.options.clip===!1?void 0:rt),X&&X.clip()},L.prototype.animate=function(O){var j=this,Y=j.chart,X=j.group,G=j.markerGroup,q=Y.inverted,Q=M(this.options.animation),J=[this.getSharedClipKey(),Q.duration,Q.easing,Q.defer].join(","),rt=Y.sharedClips[J],lt=Y.sharedClips[J+"m"];if(O&&X){var gt=this.getClipBox();if(rt)rt.attr("height",gt.height);else{gt.width=0,q&&(gt.x=Y.plotHeight),rt=Y.renderer.clipRect(gt),Y.sharedClips[J]=rt;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[J+"m"]=lt}X.clip(rt),G&&G.clip(lt)}else if(rt&&!rt.hasClass("highcharts-animating")){var bt=this.getClipBox(),yt=Q.step;G&&G.element.childNodes.length&&(Q.step=function(ht,it){yt&&yt.apply(it,arguments),it.prop==="width"&<&<.element&<.attr(q?"height":"width",ht+99)}),rt.addClass("highcharts-animating").animate(bt,Q)}},L.prototype.afterAnimate=function(){var O=this;this.setClip(),D(this.chart.sharedClips,function(j,Y,X){j&&!O.chart.container.querySelector('[clip-path="url(#'.concat(j.id,')"]'))&&(j.destroy(),delete X[Y])}),this.finishedAnimating=!0,e(this,"afterAnimate")},L.prototype.drawPoints=function(O){O===void 0&&(O=this.points);var j,Y,X,G,q,Q,J,rt=this,lt=rt.chart,gt=lt.styledMode,mt=rt.colorAxis,bt=rt.options.marker,yt=rt[rt.specialGroup||"markerGroup"],ht=rt.xAxis,it=p(bt.enabled,!(ht&&!ht.isRadial)||null,rt.closestPointRangePx>=bt.enabledThreshold*bt.radius);if(bt.enabled!==!1||rt._hasPointMarkers)for(j=0;j<O.length;j++)if(G=(X=(Y=O[j]).graphic)?"animate":"attr",q=Y.marker||{},Q=!!Y.marker,(it&&q.enabled===void 0||q.enabled)&&!Y.isNull&&Y.visible!==!1){var st=p(q.symbol,rt.symbol,"rect");J=rt.markerAttribs(Y,Y.selected&&"select"),rt.enabledDataSorting&&(Y.startXPos=ht.reversed?-(J.width||0):ht.width);var dt=Y.isInside!==!1;if(!X&&dt&&((J.width||0)>0||Y.hasImage)&&(Y.graphic=X=lt.renderer.symbol(st,J.x,J.y,J.width,J.height,Q?q:bt).add(yt),rt.enabledDataSorting&<.hasRendered&&(X.attr({x:Y.startXPos}),G="animate")),X&&G==="animate"&&X[dt?"show":"hide"](dt).animate(J),X){var vt=rt.pointAttribs(Y,gt||!Y.selected?void 0:"select");gt?mt&&X.css({fill:vt.fill}):X[G](vt)}X&&X.addClass(Y.getClassName(),!0)}else X&&(Y.graphic=X.destroy())},L.prototype.markerAttribs=function(O,j){var Y,X,G=this.options,q=G.marker,Q=O.marker||{},J=Q.symbol||q.symbol,rt={},lt=p(Q.radius,q&&q.radius);j&&(Y=q.states[j],X=Q.states&&Q.states[j],lt=p(X&&X.radius,Y&&Y.radius,lt&<+(Y&&Y.radiusPlus||0))),O.hasImage=J&&J.indexOf("url")===0,O.hasImage&&(lt=0);var gt=O.pos();return l(lt)&>&&(rt.x=gt[0]-lt,rt.y=gt[1]-lt,G.crisp&&(rt.x=Math.floor(rt.x))),lt&&(rt.width=rt.height=2*lt),rt},L.prototype.pointAttribs=function(O,j){var Y,X,G,q,Q=this.options.marker,J=O&&O.options,rt=J&&J.marker||{},lt=J&&J.color,gt=O&&O.color,mt=O&&O.zone&&O.zone.color,bt=this.color,yt=p(rt.lineWidth,Q.lineWidth),ht=1;return bt=lt||mt||gt||bt,G=rt.fillColor||Q.fillColor||bt,q=rt.lineColor||Q.lineColor||bt,(j=j||"normal")&&(Y=Q.states[j]||{},X=rt.states&&rt.states[j]||{},yt=p(X.lineWidth,Y.lineWidth,yt+p(X.lineWidthPlus,Y.lineWidthPlus,0)),G=X.fillColor||Y.fillColor||G,q=X.lineColor||Y.lineColor||q,ht=p(X.opacity,Y.opacity,ht)),{stroke:q,"stroke-width":yt,fill:G,opacity:ht}},L.prototype.destroy=function(O){var j,Y,X,G=this,q=G.chart,Q=/AppleWebKit\/533/.test(d.navigator.userAgent),J=G.data||[];for(e(G,"destroy",{keepEventsForUpdate:O}),this.removeEvents(O),(G.axisTypes||[]).forEach(function(rt){(X=G[rt])&&X.series&&(a(X.series,G),X.isDirty=X.forceRedraw=!0)}),G.legendItem&&G.chart.legend.destroyItem(G),j=J.length;j--;)(Y=J[j])&&Y.destroy&&Y.destroy();G.clips&&G.clips.forEach(function(rt){return rt.destroy()}),E.clearTimeout(G.animationTimeout),D(G,function(rt,lt){rt instanceof I&&!rt.survive&&rt[Q&<==="group"?"hide":"destroy"]()}),q.hoverSeries===G&&(q.hoverSeries=void 0),a(q.series,G),q.orderSeries(),D(G,function(rt,lt){O&<==="hcEvents"||delete G[lt]})},L.prototype.applyZones=function(){var O,j,Y,X,G,q,Q,J,rt,lt,gt,mt=this,bt=this.chart,yt=bt.renderer,ht=this.zones,it=this.clips||[],st=this.graph,dt=this.area,vt=Math.max(bt.plotWidth,bt.plotHeight),Ct=this[(this.zoneAxis||"y")+"Axis"],xt=bt.inverted,wt=!1;ht.length&&(st||dt)&&Ct&&Ct.min!==void 0?(G=Ct.reversed,q=Ct.horiz,st&&!this.showLine&&st.hide(),dt&&dt.hide(),X=Ct.getExtremes(),ht.forEach(function(Mt,St){O=G?q?bt.plotWidth:0:q?0:Ct.toPixels(X.min)||0,O=C(p(j,O),0,vt),j=C(Math.round(Ct.toPixels(p(Mt.value,X.max),!0)||0),0,vt),wt&&(O=j=Ct.toPixels(X.max)),Q=Math.abs(O-j),J=Math.min(O,j),rt=Math.max(O,j),Ct.isXAxis?(Y={x:xt?rt:J,y:0,width:Q,height:vt},q||(Y.x=bt.plotHeight-Y.x)):(Y={x:0,y:xt?rt:J,width:vt,height:Q},q&&(Y.y=bt.plotWidth-Y.y)),xt&&yt.isVML&&(Y=Ct.isXAxis?{x:0,y:G?J:rt,height:Y.width,width:bt.chartWidth}:{x:Y.y-bt.plotLeft-bt.spacingBox.x,y:0,width:Y.height,height:bt.chartHeight}),it[St]?it[St].animate(Y):it[St]=yt.clipRect(Y),lt=mt["zone-area-"+St],gt=mt["zone-graph-"+St],st&>&>.clip(it[St]),dt&<&<.clip(it[St]),wt=Mt.value>X.max,mt.resetZones&&j===0&&(j=void 0)}),this.clips=it):mt.visible&&(st&&st.show(),dt&&dt.show())},L.prototype.plotGroup=function(O,j,Y,X,G){var q=this[O],Q=!q,J={visibility:Y,zIndex:X||.1};return this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(J.opacity=this.opacity),Q&&(this[O]=q=this.chart.renderer.g().add(G)),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(J)[Q?"attr":"animate"](this.getPlotBox(j)),q},L.prototype.getPlotBox=function(O){var j=this.xAxis,Y=this.yAxis,X=this.chart,G=X.inverted&&!X.polar&&j&&this.invertible!==!1&&O==="series";return X.inverted&&(j=Y,Y=this.xAxis),{translateX:j?j.left:X.plotLeft,translateY:Y?Y.top:X.plotTop,rotation:G?90:0,rotationOriginX:G?(j.len-Y.len)/2:0,rotationOriginY:G?(j.len+Y.len)/2:0,scaleX:G?-1:1,scaleY:1}},L.prototype.removeEvents=function(O){var j=this;O||x(j),j.eventsToUnbind.length&&(j.eventsToUnbind.forEach(function(Y){Y()}),j.eventsToUnbind.length=0)},L.prototype.render=function(){var O=this,j=O.chart,Y=O.options,X=M(Y.animation),G=O.visible?"inherit":"hidden",q=Y.zIndex,Q=O.hasRendered,J=j.seriesGroup,rt=!O.finishedAnimating&&j.renderer.isSVG?X.duration:0;e(this,"render"),O.plotGroup("group","series",G,q,J),O.markerGroup=O.plotGroup("markerGroup","markers",G,q,J),Y.clip!==!1&&O.setClip(),O.animate&&rt&&O.animate(!0),O.drawGraph&&(O.drawGraph(),O.applyZones()),O.visible&&O.drawPoints(),O.drawDataLabels&&O.drawDataLabels(),O.redrawPoints&&O.redrawPoints(),O.drawTracker&&O.options.enableMouseTracking!==!1&&O.drawTracker(),O.animate&&rt&&O.animate(),Q||(rt&&X.defer&&(rt+=X.defer),O.animationTimeout=N(function(){O.afterAnimate()},rt||0)),O.isDirty=!1,O.hasRendered=!0,e(O,"afterRender")},L.prototype.redraw=function(){var O=this.isDirty||this.isDirtyData;this.translate(),this.render(),O&&delete this.kdTree},L.prototype.searchPoint=function(O,j){var Y=this,X=Y.xAxis,G=Y.yAxis,q=Y.chart.inverted;return this.searchKDTree({clientX:q?X.len-O.chartY+X.pos:O.chartX-X.pos,plotY:q?G.len-O.chartX+G.pos:O.chartY-G.pos},j,O)},L.prototype.buildKDTree=function(O){this.buildingKdTree=!0;var j=this,Y=j.options.findNearestPointBy.indexOf("y")>-1?2:1;function X(G,q,Q){var J,rt,lt=G&&G.length;if(lt)return J=j.kdAxisArray[q%Q],G.sort(function(gt,mt){return gt[J]-mt[J]}),{point:G[rt=Math.floor(lt/2)],left:X(G.slice(0,rt),q+1,Q),right:X(G.slice(rt+1),q+1,Q)}}delete j.kdTree,N(function(){j.kdTree=X(j.getValidPoints(null,!j.directTouch),Y,Y),j.buildingKdTree=!1},j.options.kdNow||O&&O.type==="touchstart"?0:1)},L.prototype.searchKDTree=function(O,j,Y){var X=this,G=this.kdAxisArray[0],q=this.kdAxisArray[1],Q=j?"distX":"dist",J=X.options.findNearestPointBy.indexOf("y")>-1?2:1;if(this.kdTree||this.buildingKdTree||this.buildKDTree(Y),this.kdTree)return function rt(lt,gt,mt,bt){var yt,ht,it,st,dt,vt,Ct=gt.point,xt=X.kdAxisArray[mt%bt],wt=Ct;st=Ct,vt=((dt=r((it=lt)[G])&&r(st[G])?Math.pow(it[G]-st[G],2):null)||0)+((r(it[q])&&r(st[q])?Math.pow(it[q]-st[q],2):null)||0),st.dist=r(vt)?Math.sqrt(vt):Number.MAX_VALUE,st.distX=r(dt)?Math.sqrt(dt):Number.MAX_VALUE;var Mt=lt[xt]-Ct[xt],St=Mt<0?"left":"right",Tt=Mt<0?"right":"left";return gt[St]&&(wt=(yt=rt(lt,gt[St],mt+1,bt))[Q]<wt[Q]?yt:Ct),gt[Tt]&&Math.sqrt(Mt*Mt)<wt[Q]&&(wt=(ht=rt(lt,gt[Tt],mt+1,bt))[Q]<wt[Q]?ht:wt),wt}(O,this.kdTree,J,J)},L.prototype.pointPlacementToXValue=function(){var O=this.options,j=O.pointPlacement,Y=O.pointRange,X=this.xAxis,G=j;return G==="between"&&(G=X.reversed?-.5:.5),l(G)?G*(Y||X.pointRange):0},L.prototype.isPointInside=function(O){var j=this,Y=j.chart,X=j.xAxis,G=j.yAxis;return O.plotY!==void 0&&O.plotX!==void 0&&O.plotY>=0&&O.plotY<=(G?G.len:Y.plotHeight)&&O.plotX>=0&&O.plotX<=(X?X.len:Y.plotWidth)},L.prototype.drawTracker=function(){var O=this,j=O.options,Y=j.trackByArea,X=[].concat(Y?O.areaPath:O.graphPath),G=O.chart,q=G.pointer,Q=G.renderer,J=G.options.tooltip.snap,rt=O.tracker,lt=function(mt){G.hoverSeries!==O&&O.onMouseOver()},gt="rgba(192,192,192,"+(g?1e-4:.002)+")";rt?rt.attr({d:X}):O.graph&&(O.tracker=Q.path(X).attr({visibility:O.visible?"inherit":"hidden",zIndex:2}).addClass(Y?"highcharts-tracker-area":"highcharts-tracker-line").add(O.group),G.styledMode||O.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:gt,fill:Y?gt:"none","stroke-width":O.graph.strokeWidth()+(Y?0:2*J)}),[O.tracker,O.markerGroup,O.dataLabelsGroup].forEach(function(mt){mt&&(mt.addClass("highcharts-tracker").on("mouseover",lt).on("mouseout",function(bt){q.onTrackerMouseOut(bt)}),j.cursor&&!G.styledMode&&mt.css({cursor:j.cursor}),u&&mt.on("touchstart",lt))})),e(this,"afterDrawTracker")},L.prototype.addPoint=function(O,j,Y,X,G){var q,Q,J=this,rt=J.options,lt=J.data,gt=J.chart,mt=J.xAxis,bt=mt&&mt.hasNames&&mt.names,yt=rt.data,ht=J.xData;j=p(j,!0);var it={series:J};J.pointClass.prototype.applyOptions.apply(it,[O]);var st=it.x;if(Q=ht.length,J.requireSorting&&st<ht[Q-1])for(q=!0;Q&&ht[Q-1]>st;)Q--;J.updateParallelArrays(it,"splice",Q,0,0),J.updateParallelArrays(it,Q),bt&&it.name&&(bt[st]=it.name),yt.splice(Q,0,O),(q||J.processedData)&&(J.data.splice(Q,0,null),J.processData()),rt.legendType==="point"&&J.generatePoints(),Y&&(lt[0]&<[0].remove?lt[0].remove(!1):(lt.shift(),J.updateParallelArrays(it,"shift"),yt.shift())),G!==!1&&e(J,"addPoint",{point:it}),J.isDirty=!0,J.isDirtyData=!0,j&>.redraw(X)},L.prototype.removePoint=function(O,j,Y){var X=this,G=X.data,q=G[O],Q=X.points,J=X.chart,rt=function(){Q&&Q.length===G.length&&Q.splice(O,1),G.splice(O,1),X.options.data.splice(O,1),X.updateParallelArrays(q||{series:X},"splice",O,1),q&&q.destroy(),X.isDirty=!0,X.isDirtyData=!0,j&&J.redraw()};k(Y,J),j=p(j,!0),q?q.firePointEvent("remove",null,rt):rt()},L.prototype.remove=function(O,j,Y,X){var G=this,q=G.chart;function Q(){G.destroy(X),q.isDirtyLegend=q.isDirtyBox=!0,q.linkSeries(),p(O,!0)&&q.redraw(j)}Y!==!1?e(G,"remove",null,Q):Q()},L.prototype.update=function(O,j){O=c(O,this.userOptions),e(this,"update",{options:O});var Y,X,G=this,q=G.chart,Q=G.userOptions,J=G.initialType||G.type,rt=q.options.plotOptions,lt=v[J].prototype,gt=G.finishedAnimating&&{animation:!1},mt={},bt=["eventOptions","navigatorSeries","baseSeries"],yt=O.type||Q.type||q.options.chart.type,ht=!(this.hasDerivedData||yt&&yt!==this.type||O.pointStart!==void 0||O.pointInterval!==void 0||O.relativeXValue!==void 0||O.joinBy||O.mapData||G.hasOptionChanged("dataGrouping")||G.hasOptionChanged("pointStart")||G.hasOptionChanged("pointInterval")||G.hasOptionChanged("pointIntervalUnit")||G.hasOptionChanged("keys"));yt=yt||J,ht&&(bt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),O.visible!==!1&&bt.push("area","graph"),G.parallelArrays.forEach(function(St){bt.push(St+"Data")}),O.data&&(O.dataSorting&&i(G.options.dataSorting,O.dataSorting),this.setData(O.data,!1))),O=T(Q,gt,{index:Q.index===void 0?G.index:Q.index,pointStart:p(rt&&rt.series&&rt.series.pointStart,Q.pointStart,G.xData[0])},!ht&&{data:G.options.data},O),ht&&O.data&&(O.data=G.options.data),(bt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(bt)).forEach(function(St){bt[St]=G[St],delete G[St]});var it=!1;if(v[yt]){if(it=yt!==G.type,G.remove(!1,!1,!1,!0),it)if(Object.setPrototypeOf)Object.setPrototypeOf(G,v[yt].prototype);else{var st=Object.hasOwnProperty.call(G,"hcEvents")&&G.hcEvents;for(X in lt)G[X]=void 0;i(G,v[yt].prototype),st?G.hcEvents=st:delete G.hcEvents}}else t(17,!0,q,{missingModuleFor:yt});if(bt.forEach(function(St){G[St]=bt[St]}),G.init(q,O),ht&&this.points){if((Y=G.options).visible===!1)mt.graphic=1,mt.dataLabel=1;else if(!G._hasPointLabels){var dt=Y.marker,vt=Y.dataLabels,Ct=Q.marker||{};!dt||dt.enabled!==!1&&Ct.symbol===dt.symbol&&Ct.height===dt.height&&Ct.width===dt.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))}}G.initialType=J,q.linkSeries(),it&&G.linkedSeries.length&&(G.isDirtyData=!0),e(this,"afterUpdate"),p(j,!0)&&q.redraw(!!ht&&void 0)},L.prototype.setName=function(O){this.name=this.options.name=this.userOptions.name=O,this.chart.isDirtyLegend=!0},L.prototype.hasOptionChanged=function(O){var j=this.chart,Y=this.options[O],X=j.options.plotOptions,G=this.userOptions[O];return G?Y!==G:Y!==p(X&&X[this.type]&&X[this.type][O],X&&X.series&&X.series[O],Y)},L.prototype.onMouseOver=function(){var O=this,j=O.chart,Y=j.hoverSeries;j.pointer.setHoverChartIndex(),Y&&Y!==O&&Y.onMouseOut(),O.options.events.mouseOver&&e(O,"mouseOver"),O.setState("hover"),j.hoverSeries=O},L.prototype.onMouseOut=function(){var O=this,j=O.options,Y=O.chart,X=Y.tooltip,G=Y.hoverPoint;Y.hoverSeries=null,G&&G.onMouseOut(),O&&j.events.mouseOut&&e(O,"mouseOut"),!X||O.stickyTracking||X.shared&&!O.noSharedTooltip||X.hide(),Y.series.forEach(function(q){q.setState("",!0)})},L.prototype.setState=function(O,j){var Y,X=this,G=X.options,q=X.graph,Q=G.inactiveOtherPoints,J=G.states,rt=p(J[O||"normal"]&&J[O||"normal"].animation,X.chart.options.chart.animation),lt=G.lineWidth,gt=0,mt=G.opacity;if(O=O||"",X.state!==O&&([X.group,X.markerGroup,X.dataLabelsGroup].forEach(function(bt){bt&&(X.state&&bt.removeClass("highcharts-series-"+X.state),O&&bt.addClass("highcharts-series-"+O))}),X.state=O,!X.chart.styledMode)){if(J[O]&&J[O].enabled===!1)return;if(O&&(lt=J[O].lineWidth||lt+(J[O].lineWidthPlus||0),mt=p(J[O].opacity,mt)),q&&!q.dashstyle&&l(lt))for(Y={"stroke-width":lt},q.animate(Y,rt);X["zone-graph-"+gt];)X["zone-graph-"+gt].animate(Y,rt),gt+=1;Q||[X.group,X.markerGroup,X.dataLabelsGroup,X.labelBySeries].forEach(function(bt){bt&&bt.animate({opacity:mt},rt)})}j&&Q&&X.points&&X.setAllPointsToState(O||void 0)},L.prototype.setAllPointsToState=function(O){this.points.forEach(function(j){j.setState&&j.setState(O)})},L.prototype.setVisible=function(O,j){var Y=this,X=Y.chart,G=X.options.chart.ignoreHiddenSeries,q=Y.visible;Y.visible=O=Y.options.visible=Y.userOptions.visible=O===void 0?!q:O;var Q=O?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(J){Y[J]&&Y[J][Q]()}),X.hoverSeries!==Y&&(X.hoverPoint&&X.hoverPoint.series)!==Y||Y.onMouseOut(),Y.legendItem&&X.legend.colorizeItem(Y,O),Y.isDirty=!0,Y.options.stacking&&X.series.forEach(function(J){J.options.stacking&&J.visible&&(J.isDirty=!0)}),Y.linkedSeries.forEach(function(J){J.setVisible(O,!1)}),G&&(X.isDirtyBox=!0),e(Y,Q),j!==!1&&X.redraw()},L.prototype.show=function(){this.setVisible(!0)},L.prototype.hide=function(){this.setVisible(!1)},L.prototype.select=function(O){var j=this;j.selected=O=this.options.selected=O===void 0?!j.selected:O,j.checkbox&&(j.checkbox.checked=O),e(j,O?"select":"unselect")},L.prototype.shouldShowTooltip=function(O,j,Y){return Y===void 0&&(Y={}),Y.series=this,Y.visiblePlotOnly=!0,this.chart.isInsidePlot(O,j,Y)},L.defaultOptions=U,L.types=z.seriesTypes,L.registerType=z.registerSeriesType,L}();return i(_.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}),z.series=_,_}),et(B,"Extensions/ScrollablePlotArea.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Series/Series.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=W.stop,z=Z.addEvent,I=Z.createElement,E=Z.defined,M=Z.merge,k=Z.pick;z(H,"afterSetChartSize",function(y){var h,u,g,d=this.options.chart.scrollablePlotArea,v=d&&d.minWidth,w=d&&d.minHeight;this.renderer.forExport||(v?(this.scrollablePixelsX=h=Math.max(0,v-this.chartWidth),h&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.width=this.plotWidth+=h,this.inverted?this.clipBox.height+=h:this.clipBox.width+=h,g={1:{name:"right",value:h}})):w&&(this.scrollablePixelsY=u=Math.max(0,w-this.chartHeight),E(u)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=M(this.plotBox),this.plotBox.height=this.plotHeight+=u,this.inverted?this.clipBox.width+=u:this.clipBox.height+=u,g={2:{name:"bottom",value:u}})),g&&!y.skipAxes&&this.axes.forEach(function(S){g[S.side]?S.getPlotLinePath=function(){var C,c=g[S.side].name,f=g[S.side].value,r=this[c];return this[c]=r-f,C=R.prototype.getPlotLinePath.apply(this,arguments),this[c]=r,C}:(S.setAxisSize(),S.setAxisTranslation())}))}),z(H,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),H.prototype.setUpScrolling=function(){var y,h=this,u={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(u.overflowX="auto"),this.scrollablePixelsY&&(u.overflowY="auto"),this.scrollingParent=I("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=I("div",{className:"highcharts-scrolling"},u,this.scrollingParent),z(this.scrollingContainer,"scroll",function(){h.pointer&&(delete h.pointer.chartPosition,h.hoverPoint&&(y=h.hoverPoint),h.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,h=this.container,u=this.fixedRenderer,g=[".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&&g.push(y+":not(.highcharts-radial-axis)",y+"-labels:not(.highcharts-radial-axis-labels)"),g.forEach(function(d){[].forEach.call(h.querySelectorAll(d),function(v){(v.namespaceURI===u.SVG_NS?u.box:u.box.parentNode).appendChild(v),v.style.pointerEvents="auto"})})},H.prototype.applyFixed=function(){var y,h,u,g=!this.fixedDiv,d=this.options.chart,v=d.scrollablePlotArea,w=$.getRendererType();g?(this.fixedDiv=I("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(d.style&&d.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":k(v.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),z(this,"afterShowResetZoom",this.moveFixedElements),z(this,"afterApplyDrilldown",this.moveFixedElements),z(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||g)&&(this.scrollableDirty=!1,this.moveFixedElements()),h=this.chartWidth+(this.scrollablePixelsX||0),u=this.chartHeight+(this.scrollablePixelsY||0),U(this.container),this.container.style.width=h+"px",this.container.style.height=u+"px",this.renderer.boxWrapper.attr({width:h,height:u,viewBox:[0,0,h,u].join(" ")}),this.chartBackground.attr({width:h,height:u}),this.scrollingContainer.style.height=this.chartHeight+"px",g&&(v.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*v.scrollPositionX),v.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*v.scrollPositionY));var S,C=this.axisOffset,c=this.plotTop-C[0]-1,f=this.plotLeft-C[3]-1,r=this.plotTop+this.plotHeight+C[2]+1,a=this.plotLeft+this.plotWidth+C[1]+1,t=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),i=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);S=this.scrollablePixelsX?[["M",0,c],["L",this.plotLeft-1,c],["L",this.plotLeft-1,r],["L",0,r],["Z"],["M",t,c],["L",this.chartWidth,c],["L",this.chartWidth,r],["L",t,r],["Z"]]:this.scrollablePixelsY?[["M",f,0],["L",f,this.plotTop-1],["L",a,this.plotTop-1],["L",a,0],["Z"],["M",f,i],["L",f,this.chartHeight],["L",a,this.chartHeight],["L",a,i],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:S})},z(R,"afterInit",function(){this.chart.scrollableDirty=!0}),z(V,"show",function(){this.chart.scrollableDirty=!0})}),et(B,"Core/Axis/Stacking/StackItem.js",[B["Core/FormatUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.format,$=R.series,Z=H.destroyObjectProperties,U=H.pick,z=H.isNumber;return function(){function I(E,M,k,y,h){var u=E.chart.inverted,g=E.reversed;this.axis=E;var d=this.isNegative=!!k!=!!g;this.options=M=M||{},this.x=y,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=h,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:M.align||(u?d?"left":"right":"center"),verticalAlign:M.verticalAlign||(u?"middle":d?"bottom":"top"),y:M.y,x:M.x},this.textAlign=M.textAlign||(u?d?"right":"left":"center")}return I.prototype.destroy=function(){Z(this,this.axis)},I.prototype.render=function(E){var M=this.axis.chart,k=this.options,y=k.format,h=y?V(y,this,M):k.formatter.call(this);if(this.label)this.label.attr({text:h,visibility:"hidden"});else{this.label=M.renderer.label(h,null,void 0,k.shape,void 0,void 0,k.useHTML,!1,"stack-labels");var u={r:k.borderRadius||0,text:h,padding:U(k.padding,5),visibility:"hidden"};M.styledMode||(u.fill=k.backgroundColor,u.stroke=k.borderColor,u["stroke-width"]=k.borderWidth,this.label.css(k.style||{})),this.label.attr(u),this.label.added||this.label.add(E)}this.label.labelrank=M.plotSizeY},I.prototype.setOffset=function(E,M,k,y,h,u){var g=this,d=g.alignOptions,v=g.axis,w=g.label,S=g.options,C=g.textAlign,c=v.chart,f=this.getStackBox({xOffset:E,width:M,boxBottom:k,boxTop:y,defaultX:h,xAxis:u}),r=d.verticalAlign;if(w&&f){var a=w.getBBox(),t=w.padding,i=U(S.overflow,"justify")==="justify",o=void 0;d.x=S.x||0,d.y=S.y||0;var e=this.adjustStackPosition({labelBox:a,verticalAlign:r,textAlign:C}),s=e.x,n=e.y;f.x-=s,f.y-=n,w.align(d,!1,f),(o=c.isInsidePlot(w.alignAttr.x+d.x+s,w.alignAttr.y+d.y+n))||(i=!1),i&&$.prototype.justifyDataLabel.call(v,w,d,w.alignAttr,a,f),w.attr({x:w.alignAttr.x,y:w.alignAttr.y,rotation:S.rotation,rotationOriginX:a.width/2,rotationOriginY:a.height/2}),U(!i&&S.crop,!0)&&(o=z(w.x)&&z(w.y)&&c.isInsidePlot(w.x-t+w.width,w.y)&&c.isInsidePlot(w.x+t,w.y)),w[o?"show":"hide"]()}},I.prototype.adjustStackPosition=function(E){var M=E.labelBox,k=E.verticalAlign,y=E.textAlign,h={bottom:0,middle:1,top:2,right:1,center:0,left:-1},u=h[k],g=h[y];return{x:M.width/2+M.width/2*g,y:M.height/2*u}},I.prototype.getStackBox=function(E){var M=this.axis,k=M.chart,y=E.boxTop,h=E.defaultX,u=E.xOffset,g=E.width,d=E.boxBottom,v=M.stacking.usePercentage?100:U(y,this.total,0),w=M.toPixels(v),S=E.xAxis||k.xAxis[0],C=U(h,S.toPixels(this.x))+u,c=M.toPixels(d||0),f=Math.abs(w-c),r=k.inverted,a=this.isNegative;return r?{x:(a?w:w-f)-k.plotLeft,y:C-k.plotTop,width:f,height:g}:{x:C-k.plotLeft,y:(a?w-f:w)-k.plotTop,width:g,height:f}},I}()}),et(B,"Core/Axis/Stacking/StackingAxis.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.getDeferredAnimation,U=H.series.prototype,z=$.addEvent,I=$.correctFloat,E=$.defined,M=$.destroyObjectProperties,k=$.fireEvent,y=$.isArray,h=$.isNumber,u=$.objectEach,g=$.pick;function d(){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 s=e.xAxis&&e.xAxis.options||{};!e.options.stacking||e.visible!==!0&&i.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=[e.type,g(e.options.stack,""),o?s.top:s.left,o?s.height:s.width].join(","))})}function v(){var i=this.stacking;if(i){var o=i.stacks;u(o,function(e,s){M(e),o[s]=null}),i&&i.stackTotalGroup&&i.stackTotalGroup.destroy()}}function w(){this.coll!=="yAxis"||this.stacking||(this.stacking=new t(this))}function S(i,o,e,s){return!E(i)||i.x!==o||s&&i.stackKey!==s?i={x:o,index:0,key:s,stackKey:s}:i.index++,i.key=[e,o,i.index].join(","),i}function C(){var i,o=this,e=o.yAxis,s=o.stackKey,n=e.stacking.stacks,l=o.processedXData,b=o.options.stacking,T=o[b+"Stacker"];T&&[s,"-"+s].forEach(function(D){for(var p,x,A,N=l.length;N--;)p=l[N],i=o.getStackIndicator(i,p,o.index,D),(A=(x=n[D]&&n[D][p])&&x.points[i.key])&&T.call(o,A,x,N)})}function c(i,o,e){var s=o.total?100/o.total:0;i[0]=I(i[0]*s),i[1]=I(i[1]*s),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?U.setStackedPoints.call(this,"group"):i&&u(i.stacks,function(o,e){e.slice(-5)==="group"&&(u(o,function(s){return s.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 s,n,l,b,T,D,p,x,A,N=this,_=N.processedXData,L=N.processedYData,O=[],j=L.length,Y=N.options,X=Y.threshold,G=g(Y.startFromThreshold&&X,0),q=Y.stack,Q=i?""+N.type+",".concat(e):N.stackKey,J="-"+Q,rt=N.negStacks,lt=e==="group"?o.yAxis[0]:N.yAxis,gt=lt.stacking.stacks,mt=lt.stacking.oldStacks;for(lt.stacking.stacksTouched+=1,p=0;p<j;p++)x=_[p],A=L[p],D=(s=N.getStackIndicator(s,x,N.index)).key,gt[T=(n=rt&&A<(G?0:X))?J:Q]||(gt[T]={}),gt[T][x]||(mt[T]&&mt[T][x]?(gt[T][x]=mt[T][x],gt[T][x].total=null):gt[T][x]=new V(lt,lt.options.stackLabels,!!n,x,q)),l=gt[T][x],A!==null?(l.points[D]=l.points[N.index]=[g(l.cumulative,G)],E(l.cumulative)||(l.base=D),l.touched=lt.stacking.stacksTouched,s.index>0&&N.singleStacks===!1&&(l.points[D][0]=l.points[N.index+","+x+",0"][0])):l.points[D]=l.points[N.index]=null,e==="percent"?(b=n?Q:J,rt&>[b]&>[b][x]?(b=gt[b][x],l.total=b.total=Math.max(b.total,l.total)+Math.abs(A)||0):l.total=I(l.total+(Math.abs(A)||0))):e==="group"?(y(A)&&(A=A[0]),A!==null&&(l.total=(l.total||0)+1)):l.total=I(l.total+(A||0)),l.cumulative=e==="group"?(l.total||1)-1:g(l.cumulative,G)+(A||0),A!==null&&(l.points[D].push(l.cumulative),O[p]=l.cumulative,l.hasValidPoints=!0);e==="percent"&&(lt.stacking.usePercentage=!0),e!=="group"&&(this.stackedYData=O),lt.stacking.oldStacks={}}}var a,t=function(){function i(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}return i.prototype.buildStacks=function(){var o,e,s=this.axis,n=s.series,l=s.options.reversedStacks,b=n.length;for(this.usePercentage=!1,e=b;e--;)(o=n[l?e:b-e-1]).setStackedPoints(),o.setGroupedPoints();for(e=0;e<b;e++)n[e].modifyStacks();k(s,"afterBuildStacks")},i.prototype.cleanStacks=function(){var o,e=this;e.oldStacks&&(o=e.stacks=e.oldStacks),u(o,function(s){u(s,function(n){n.cumulative=n.total})})},i.prototype.resetStacks=function(){var o=this;u(this.stacks,function(e){u(e,function(s,n){h(s.touched)&&s.touched<o.stacksTouched?(s.destroy(),delete e[n]):(s.total=null,s.cumulative=null)})})},i.prototype.renderStackTotals=function(){var o=this,e=o.axis,s=e.chart,n=s.renderer,l=o.stacks,b=e.options.stackLabels&&e.options.stackLabels.animation,T=Z(s,b||!1),D=o.stackTotalGroup=o.stackTotalGroup||n.g("stack-labels").attr({zIndex:6,opacity:0}).add();D.translate(s.plotLeft,s.plotTop),u(l,function(p){u(p,function(x){x.render(D)})}),D.animate({opacity:1},T)},i}();return function(i){var o=[];i.compose=function(e,s,n){if(o.indexOf(e)===-1&&(o.push(e),z(e,"init",w),z(e,"destroy",v)),o.indexOf(s)===-1&&(o.push(s),s.prototype.getStacks=d),o.indexOf(n)===-1){o.push(n);var l=n.prototype;l.getStackIndicator=S,l.modifyStacks=C,l.percentStacker=c,l.setGroupedPoints=f,l.setStackedPoints=r}}}(a||(a={})),a}),et(B,"Series/Line/LineSeries.js",[B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,k){M.__proto__=k}||function(M,k){for(var y in k)k.hasOwnProperty(y)&&(M[y]=k[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=H.defined,U=H.merge,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return $(E,I),E.prototype.drawGraph=function(){var M=this,k=this.options,y=(this.gappedPath||this.getGraphPath).call(this),h=this.chart.styledMode,u=[["graph","highcharts-graph"]];h||u[0].push(k.lineColor||this.color||"#cccccc",k.dashStyle),(u=M.getZonesGraphs(u)).forEach(function(g,d){var v,w=g[0],S=M[w],C=S?"animate":"attr";S?(S.endX=M.preventGraphAnimation?null:y.xMap,S.animate({d:y})):y.length&&(M[w]=S=M.chart.renderer.path(y).addClass(g[1]).attr({zIndex:1}).add(M.group)),S&&!h&&(v={stroke:g[2],"stroke-width":k.lineWidth||0,fill:M.fillGraph&&M.color||"none"},g[3]?v.dashstyle=g[3]:k.linecap!=="square"&&(v["stroke-linecap"]=v["stroke-linejoin"]="round"),S[C](v).shadow(d<2&&k.shadow)),S&&(S.startX=y.xMap,S.isArea=y.isArea)})},E.prototype.getGraphPath=function(M,k,y){var h,u=this,g=u.options,d=[],v=[],w=g.step,S=(M=M||u.points).reversed;return S&&M.reverse(),(w={right:1,center:2}[w]||w&&3)&&S&&(w=4-w),(M=this.getValidPoints(M,!1,!(g.connectNulls&&!k&&!y))).forEach(function(C,c){var f,r=C.plotX,a=C.plotY,t=M[c-1];(C.leftCliff||t&&t.rightCliff)&&!y&&(h=!0),C.isNull&&!Z(k)&&c>0?h=!g.connectNulls:C.isNull&&!k?h=!0:(c===0||h?f=[["M",C.plotX,C.plotY]]:u.getPointSpline?f=[u.getPointSpline(M,C,c)]:w?(f=w===1?[["L",t.plotX,a]]:w===2?[["L",(t.plotX+r)/2,t.plotY],["L",(t.plotX+r)/2,a]]:[["L",r,t.plotY]]).push(["L",r,a]):f=[["L",r,a]],v.push(C.x),w&&(v.push(C.x),w===2&&v.push(C.x)),d.push.apply(d,f),h=!1)}),d.xMap=v,u.graphPath=d,d},E.prototype.getZonesGraphs=function(M){return this.zones.forEach(function(k,y){var h=["zone-graph-"+y,"highcharts-graph highcharts-zone-graph-"+y+" "+(k.className||"")];this.chart.styledMode||h.push(k.color||this.color,k.dashStyle||this.options.dashStyle),M.push(h)},this),M},E.defaultOptions=U(W.defaultOptions,{}),E}(W);return R.registerSeriesType("line",z),z}),et(B,"Series/Area/AreaSeries.js",[B["Core/Color/Color.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(h,u){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,d){g.__proto__=d}||function(g,d){for(var v in d)d.hasOwnProperty(v)&&(g[v]=d[v])},$(h,u)},function(h,u){function g(){this.constructor=h}$(h,u),h.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),U=W.parse,z=H.seriesTypes.line,I=V.extend,E=V.merge,M=V.objectEach,k=V.pick,y=function(h){function u(){var g=h!==null&&h.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return Z(u,h),u.prototype.drawGraph=function(){this.areaPath=[],h.prototype.drawGraph.apply(this);var g=this,d=this.areaPath,v=this.options,w=this.zones,S=[["area","highcharts-area",this.color,v.fillColor]];w.forEach(function(C,c){S.push(["zone-area-"+c,"highcharts-area highcharts-zone-area-"+c+" "+C.className,C.color||g.color,C.fillColor||v.fillColor])}),S.forEach(function(C){var c=C[0],f={},r=g[c],a=r?"animate":"attr";r?(r.endX=g.preventGraphAnimation?null:d.xMap,r.animate({d})):(f.zIndex=0,(r=g[c]=g.chart.renderer.path(d).addClass(C[1]).add(g.group)).isArea=!0),g.chart.styledMode||(f.fill=k(C[3],U(C[2]).setOpacity(k(v.fillOpacity,.75)).get())),r[a](f),r.startX=d.xMap,r.shiftUnit=v.step?2:1})},u.prototype.getGraphPath=function(g){var d,v,w,S=z.prototype.getGraphPath,C=this.options,c=C.stacking,f=this.yAxis,r=[],a=[],t=this.index,i=f.stacking.stacks[this.stackKey],o=C.threshold,e=Math.round(f.getThreshold(C.threshold)),s=k(C.connectNulls,c==="percent"),n=function(N,_,L){var O,j,Y=g[N],X=c&&i[Y.x].points[t],G=Y[L+"Null"]||0,q=Y[L+"Cliff"]||0,Q=!0;q||G?(O=(G?X[0]:X[1])+q,j=X[0]+q,Q=!!G):!c&&g[_]&&g[_].isNull&&(O=j=o),O!==void 0&&(a.push({plotX:d,plotY:O===null?e:f.getThreshold(O),isNull:Q,isCliff:!0}),r.push({plotX:d,plotY:j===null?e:f.getThreshold(j),doCurve:!1}))};g=g||this.points,c&&(g=this.getStackPoints(g));for(var l=0,b=g.length;l<b;++l)c||(g[l].leftCliff=g[l].rightCliff=g[l].leftNull=g[l].rightNull=void 0),v=g[l].isNull,d=k(g[l].rectPlotX,g[l].plotX),w=c?k(g[l].yBottom,e):e,v&&!s||(s||n(l,l-1,"left"),v&&!c&&s||(a.push(g[l]),r.push({x:l,plotX:d,plotY:w})),s||n(l,l+1,"right"));var T=S.call(this,a,!0,!0);r.reversed=!0;var D=S.call(this,r,!0,!0),p=D[0];p&&p[0]==="M"&&(D[0]=["L",p[1],p[2]]);var x=T.concat(D);x.length&&x.push(["Z"]);var A=S.call(this,a,!1,s);return x.xMap=T.xMap,this.areaPath=x,A},u.prototype.getStackPoints=function(g){var d=this,v=[],w=[],S=this.xAxis,C=this.yAxis,c=C.stacking.stacks[this.stackKey],f={},r=C.series,a=r.length,t=C.options.reversedStacks?1:-1,i=r.indexOf(d);if(g=g||this.points,this.options.stacking){for(var o=0;o<g.length;o++)g[o].leftNull=g[o].rightNull=void 0,f[g[o].x]=g[o];M(c,function(s,n){s.total!==null&&w.push(n)}),w.sort(function(s,n){return s-n});var e=r.map(function(s){return s.visible});w.forEach(function(s,n){var l,b,T=0;if(f[s]&&!f[s].isNull)v.push(f[s]),[-1,1].forEach(function(x){var A=x===1?"rightNull":"leftNull",N=x===1?"rightCliff":"leftCliff",_=c[w[n+x]],L=0;if(_)for(var O=i;O>=0&&O<a;){var j=r[O].index;(l=_.points[j])||(j===d.index?f[s][A]=!0:e[O]&&(b=c[s].points[j])&&(L-=b[1]-b[0])),O+=t}f[s][N]=L});else{for(var D=i;D>=0&&D<a;){var p=r[D].index;if(l=c[s].points[p]){T=l[1];break}D+=t}T=k(T,0),T=C.translate(T,0,1,0,1),v.push({isNull:!0,plotX:S.translate(s,0,0,0,1),x:s,plotY:T,yBottom:T})}})}return v},u.defaultOptions=E(z.defaultOptions,{threshold:0}),u}(z);return I(y.prototype,{singleStacks:!1,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("area",y),y}),et(B,"Series/Spline/SplineSeries.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(I,E){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,k){M.__proto__=k}||function(M,k){for(var y in k)k.hasOwnProperty(y)&&(M[y]=k[y])},H(I,E)},function(I,E){function M(){this.constructor=I}H(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),$=W.seriesTypes.line,Z=R.merge,U=R.pick,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return V(E,I),E.prototype.getPointSpline=function(M,k,y){var h,u,g,d,v=1.5,w=2.5,S=k.plotX||0,C=k.plotY||0,c=M[y-1],f=M[y+1];function r(n){return n&&!n.isNull&&n.doCurve!==!1&&!k.isCliff}if(r(c)&&r(f)){var a=c.plotX||0,t=c.plotY||0,i=f.plotX||0,o=f.plotY||0,e=0;u=(v*C+t)/w,d=(v*C+o)/w,(g=(v*S+i)/w)!=(h=(v*S+a)/w)&&(e=(d-u)*(g-S)/(g-h)+C-d),d+=e,(u+=e)>t&&u>C?d=2*C-(u=Math.max(t,C)):u<t&&u<C&&(d=2*C-(u=Math.min(t,C))),d>o&&d>C?u=2*C-(d=Math.max(o,C)):d<o&&d<C&&(u=2*C-(d=Math.min(o,C))),k.rightContX=g,k.rightContY=d}var s=["C",U(c.rightContX,c.plotX,0),U(c.rightContY,c.plotY,0),U(h,S,0),U(u,C,0),S,C];return c.rightContX=c.rightContY=void 0,s},E.defaultOptions=Z($.defaultOptions),E}($);return W.registerSeriesType("spline",z),z}),et(B,"Series/AreaSpline/AreaSplineSeries.js",[B["Series/Spline/SplineSeries.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},$(y,h)},function(y,h){function u(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),U=H.seriesTypes,z=U.area,I=U.area.prototype,E=V.extend,M=V.merge,k=function(y){function h(){var u=y!==null&&y.apply(this,arguments)||this;return u.data=void 0,u.points=void 0,u.options=void 0,u}return Z(h,y),h.defaultOptions=M(W.defaultOptions,z.defaultOptions),h}(W);return E(k.prototype,{getGraphPath:I.getGraphPath,getStackPoints:I.getStackPoints,drawGraph:I.drawGraph,drawLegendSymbol:R.drawRectangle}),H.registerSeriesType("areaspline",k),k}),et(B,"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(B,"Series/Column/ColumnSeries.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Series/Column/ColumnSeriesDefaults.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(a,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(a,t)},function(a,t){function i(){this.constructor=a}I(a,t),a.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),M=W.animObject,k=R.parse,y=V.hasTouch,h=V.noop,u=z.clamp,g=z.defined,d=z.extend,v=z.fireEvent,w=z.isArray,S=z.isNumber,C=z.merge,c=z.pick,f=z.objectEach,r=function(a){function t(){var i=a!==null&&a.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,a),t.prototype.animate=function(i){var o,e,s=this,n=this.yAxis,l=s.options,b=this.chart.inverted,T={},D=b?"translateX":"translateY";i?(T.scaleY=.001,e=u(n.toPixels(l.threshold),n.pos,n.pos+n.len),b?T.translateX=e-n.len:T.translateY=e,s.clipBox&&s.setClip(),s.group.attr(T)):(o=Number(s.group.attr(D)),s.group.animate({scaleY:1},d(M(s.options.animation),{step:function(p,x){s.group&&(T[D]=o+x.pos*(n.pos-o),s.group.attr(T))}})))},t.prototype.init=function(i,o){a.prototype.init.apply(this,arguments);var e=this;(i=e.chart).hasRendered&&i.series.forEach(function(s){s.type===e.type&&(s.isDirty=!0)})},t.prototype.getColumnMetrics=function(){var i,o=this,e=o.options,s=o.xAxis,n=o.yAxis,l=s.options.reversedStacks,b=s.reversed&&!l||!s.reversed&&l,T={},D=0;e.grouping===!1?D=1:o.chart.series.forEach(function(L){var O,j=L.yAxis,Y=L.options;L.type!==o.type||!L.visible&&o.chart.options.chart.ignoreHiddenSeries||n.len!==j.len||n.pos!==j.pos||(Y.stacking&&Y.stacking!=="group"?(i=L.stackKey,T[i]===void 0&&(T[i]=D++),O=T[i]):Y.grouping!==!1&&(O=D++),L.columnIndex=O)});var p=Math.min(Math.abs(s.transA)*(s.ordinal&&s.ordinal.slope||e.pointRange||s.closestPointRange||s.tickInterval||1),s.len),x=p*e.groupPadding,A=(p-2*x)/(D||1),N=Math.min(e.maxPointWidth||s.len,c(e.pointWidth,A*(1-2*e.pointPadding))),_=(A-N)/2+(x+((o.columnIndex||0)+(b?1:0))*A-p/2)*(b?-1:1);return o.columnMetrics={width:N,offset:_,paddedWidth:A,columnCount:D},o.columnMetrics},t.prototype.crispCol=function(i,o,e,s){var n=this.chart,l=this.borderWidth,b=-(l%2?.5:0),T=l%2?.5:1;n.inverted&&n.renderer.isVML&&(T+=1),this.options.crisp&&(e=Math.round(i+e)+b-(i=Math.round(i)+b));var D=Math.round(o+s)+T,p=Math.abs(o)<=.5&&D>.5;return s=D-(o=Math.round(o)+T),p&&s&&(o-=1,s+=1),{x:i,y:o,width:e,height:s}},t.prototype.adjustForMissingColumns=function(i,o,e,s){var n=this,l=this.options.stacking;if(!e.isNull&&s.columnCount>1){var b=this.yAxis.options.reversedStacks,T=0,D=b?0:-s.columnCount;f(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(x){if(typeof e.x=="number"){var A=x[e.x.toString()];if(A){var N=A.points[n.index];if(l)N&&(T=D),A.hasValidPoints&&(b?D++:D--);else if(w(N)){var _=Object.keys(A.points).filter(function(L){return!L.match(",")&&A.points[L]&&A.points[L].length>1}).map(parseFloat).sort(function(L,O){return O-L});T=_.indexOf(n.index),D=_.length}}}});var p=(D-1)*s.paddedWidth+o;i=(e.plotX||0)+p/2-o-T*s.paddedWidth}return i},t.prototype.translate=function(){var i=this,o=i.chart,e=i.options,s=i.dense=i.closestPointRange*i.xAxis.transA<2,n=i.borderWidth=c(e.borderWidth,s?0:1),l=i.xAxis,b=i.yAxis,T=e.threshold,D=i.translatedThreshold=b.getThreshold(T),p=c(e.minPointLength,5),x=i.getColumnMetrics(),A=x.width,N=i.pointXOffset=x.offset,_=i.dataMin,L=i.dataMax,O=i.barW=Math.max(A,1+2*n);o.inverted&&(D-=.5),e.pointPadding&&(O=Math.ceil(O)),Z.prototype.translate.apply(i),i.points.forEach(function(j){var Y,X=c(j.yBottom,D),G=999+Math.abs(X),q=j.plotX||0,Q=u(j.plotY,-G,b.len+G),J=Math.min(Q,X),rt=Math.max(Q,X)-J,lt=A,gt=q+N,mt=O;p&&Math.abs(rt)<p&&(rt=p,Y=!b.reversed&&!j.negative||b.reversed&&j.negative,S(T)&&S(L)&&j.y===T&&L<=T&&(b.min||0)<T&&(_!==L||(b.max||0)<=T)&&(Y=!Y),J=Math.abs(J-D)>p?X-p:D-(Y?p:0)),g(j.options.pointWidth)&&(lt=mt=Math.ceil(j.options.pointWidth),gt-=Math.round((lt-A)/2)),e.centerInCategory&&(gt=i.adjustForMissingColumns(gt,lt,j,x)),j.barX=gt,j.pointWidth=lt,j.tooltipPos=o.inverted?[u(b.len+b.pos-o.plotLeft-Q,b.pos-o.plotLeft,b.len+b.pos-o.plotLeft),l.len+l.pos-o.plotTop-gt-mt/2,rt]:[l.left-o.plotLeft+gt+mt/2,u(Q+b.pos-o.plotTop,b.pos-o.plotTop,b.len+b.pos-o.plotTop),rt],j.shapeType=i.pointClass.prototype.shapeType||"rect",j.shapeArgs=i.crispCol.apply(i,j.isNull?[gt,D,mt,0]:[gt,J,mt,rt])})},t.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},t.prototype.pointAttribs=function(i,o){var e,s,n,l=this.options,b=this.pointAttrToOptions||{},T=b.stroke||"borderColor",D=b["stroke-width"]||"borderWidth",p=i&&i.color||this.color,x=i&&i[T]||l[T]||p,A=i&&i.options.dashStyle||l.dashStyle,N=i&&i[D]||l[D]||this[D]||0,_=c(i&&i.opacity,l.opacity,1);i&&this.zones.length&&(s=i.getZone(),p=i.options.color||s&&(s.color||i.nonZonedColor)||this.color,s&&(x=s.borderColor||x,A=s.dashStyle||A,N=s.borderWidth||N)),o&&i&&(n=(e=C(l.states[o],i.options.states&&i.options.states[o]||{})).brightness,p=e.color||n!==void 0&&k(p).brighten(e.brightness).get()||p,x=e[T]||x,N=e[D]||N,A=e.dashStyle||A,_=c(e.opacity,_));var L={fill:p,stroke:x,"stroke-width":N,opacity:_};return A&&(L.dashstyle=A),L},t.prototype.drawPoints=function(i){i===void 0&&(i=this.points);var o,e=this,s=this.chart,n=e.options,l=s.renderer,b=n.animationLimit||250;i.forEach(function(T){var D=T.plotY,p=T.graphic,x=!!p,A=p&&s.pointCount<b?"animate":"attr";S(D)&&T.y!==null?(o=T.shapeArgs,p&&T.hasNewShapeType()&&(p=p.destroy()),e.enabledDataSorting&&(T.startXPos=e.xAxis.reversed?-(o&&o.width||0):e.xAxis.width),p||(T.graphic=p=l[T.shapeType](o).add(T.group||e.group),p&&e.enabledDataSorting&&s.hasRendered&&s.pointCount<b&&(p.attr({x:T.startXPos}),x=!0,A="animate")),p&&x&&p[A](C(o)),n.borderRadius&&p[A]({r:n.borderRadius}),s.styledMode||p[A](e.pointAttribs(T,T.selected&&"select")).shadow(T.allowShadow!==!1&&n.shadow,null,n.stacking&&!n.borderRadius),p&&(p.addClass(T.getClassName(),!0),p.attr({visibility:T.visible?"inherit":"hidden"}))):p&&(T.graphic=p.destroy())})},t.prototype.drawTracker=function(i){i===void 0&&(i=this.points);var o,e=this,s=e.chart,n=s.pointer,l=function(b){var T=n.getPointFromEvent(b);T!==void 0&&(n.isDirectTouch=!0,T.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(T){T.div?T.div.point=b:T.element.point=b})}),e._hasTracking||(e.trackerGroups.forEach(function(b){e[b]&&(e[b].addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(T){n.onTrackerMouseOut(T)}),y&&e[b].on("touchstart",l),!s.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 d(r.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:$.drawRectangle,getSymbol:h,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("column",r),r}),et(B,"Core/Series/DataLabel.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.getDeferredAnimation,Z=R.format,U=H.defined,z=H.extend,I=H.fireEvent,E=H.isArray,M=H.isString,k=H.merge,y=H.objectEach,h=H.pick,u=H.splat;return function(g){var d=[];function v(f,r,a,t,i){var o,e,s,n=this,l=this.chart,b=this.isCartesian&&l.inverted,T=this.enabledDataSorting,D=f.plotX,p=f.plotY,x=a.rotation,A=a.align,N=U(D)&&U(p)&&l.isInsidePlot(D,Math.round(p),{inverted:b,paneCoordinates:!0,series:n}),_=function(Q){T&&n.xAxis&&!L&&n.setDataLabelStartPos(f,r,i,N,Q)},L=h(a.overflow,T?"none":"justify")==="justify",O=this.visible&&f.visible!==!1&&U(D)&&(f.series.forceDL||T&&!L||N||h(a.inside,!!this.options.stacking)&&t&&l.isInsidePlot(D,b?t.x+1:t.y+t.height-1,{inverted:b,paneCoordinates:!0,series:n})),j=f.pos();if(O&&j){x&&r.attr({align:A});var Y=r.getBBox(!0),X=[0,0];if(o=l.renderer.fontMetrics(l.styledMode?void 0:a.style.fontSize,r).b,t=z({x:j[0],y:Math.round(j[1]),width:0,height:0},t),z(a,{width:Y.width,height:Y.height}),x?(L=!1,e=l.renderer.rotCorr(o,x),s={x:t.x+(a.x||0)+t.width/2+e.x,y:t.y+(a.y||0)+{top:0,middle:.5,bottom:1}[a.verticalAlign]*t.height},X=[Y.x-Number(r.attr("x")),Y.y-Number(r.attr("y"))],_(s),r[i?"attr":"animate"](s)):(_(t),r.align(a,void 0,t),s=r.alignAttr),L&&t.height>=0)this.justifyDataLabel(r,a,s,Y,t,i);else if(h(a.crop,!0)){var G=s.x,q=s.y;G+=X[0],q+=X[1],O=l.isInsidePlot(G,q,{paneCoordinates:!0,series:n})&&l.isInsidePlot(G+Y.width,q+Y.height,{paneCoordinates:!0,series:n})}a.shape&&!x&&r[i?"attr":"animate"]({anchorX:j[0],anchorY:j[1]})}i&&T&&(r.placed=!1),O||T&&!L?r.show():(r.hide(),r.placed=!1)}function w(f){f===void 0&&(f=this.points);var r,a=this,t=a.chart,i=a.options,o=a.hasRendered||0,e=t.renderer,s=t.options.chart,n=s.backgroundColor,l=s.plotBackgroundColor,b=e.getContrast(M(l)&&l||M(n)&&n||"#000000"),T=i.dataLabels,D=T.animation,p=T.defer?$(t,D,a):{defer:0,duration:0};if(T=C(C(t.options.plotOptions&&t.options.plotOptions.series&&t.options.plotOptions.series.dataLabels,t.options.plotOptions&&t.options.plotOptions[a.type]&&t.options.plotOptions[a.type].dataLabels),T),I(this,"drawDataLabels"),E(T)||T.enabled||a._hasPointLabels){if((r=a.plotGroup("dataLabelsGroup","data-labels",o?"inherit":"hidden",T.zIndex||6)).attr({opacity:+o}),!o){var x=a.dataLabelsGroup;x&&(a.visible&&r.show(),x[i.animation?"animate":"attr"]({opacity:1},p))}f.forEach(function(A){u(C(T,A.dlOptions||A.options&&A.options.dataLabels)).forEach(function(N,_){var L,O,j,Y,X,G,q=N.enabled&&(!A.isNull||A.dataLabelOnNull)&&function(yt,ht){var it=ht.filter;if(it){var st=it.operator,dt=yt[it.property],vt=it.value;return st===">"&&dt>vt||st==="<"&&dt<vt||st===">="&&dt>=vt||st==="<="&&dt<=vt||st==="=="&&dt==vt||st==="==="&&dt===vt}return!0}(A,N),Q=A.connectors?A.connectors[_]:A.connector,J=A.dataLabels?A.dataLabels[_]:A.dataLabel,rt=!J,lt=h(N.distance,A.labelDistance);if(q){if(L=A.getLabelConfig(),O=h(N[A.formatPrefix+"Format"],N.format),j=U(O)?Z(O,L,t):(N[A.formatPrefix+"Formatter"]||N.formatter).call(L,N),Y=N.style,X=N.rotation,t.styledMode||(Y.color=h(N.color,Y.color,a.color,"#000000"),Y.color==="contrast"?(A.contrastColor=e.getContrast(A.color||a.color),Y.color=!U(lt)&&N.inside||lt<0||i.stacking?A.contrastColor:b):delete A.contrastColor,i.cursor&&(Y.cursor=i.cursor)),G={r:N.borderRadius||0,rotation:X,padding:N.padding,zIndex:1},!t.styledMode){var gt=N.backgroundColor,mt=N.borderColor;G.fill=gt==="auto"?A.color:gt,G.stroke=mt==="auto"?A.color:mt,G["stroke-width"]=N.borderWidth}y(G,function(yt,ht){yt===void 0&&delete G[ht]})}if(!J||q&&U(j)&&!!J.div==!!N.useHTML&&(J.rotation&&N.rotation||J.rotation===N.rotation)||(rt=!0,A.dataLabel=J=A.dataLabel&&A.dataLabel.destroy(),A.dataLabels&&(A.dataLabels.length===1?delete A.dataLabels:delete A.dataLabels[_]),_||delete A.dataLabel,Q&&(A.connector=A.connector.destroy(),A.connectors&&(A.connectors.length===1?delete A.connectors:delete A.connectors[_]))),q&&U(j)){J?G.text=j:(A.dataLabels=A.dataLabels||[],J=A.dataLabels[_]=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"),_||(A.dataLabel=J),J.addClass(" highcharts-data-label-color-"+A.colorIndex+" "+(N.className||"")+(N.useHTML?" highcharts-tracker":""))),J.options=N,J.attr(G),t.styledMode||J.css(Y).shadow(N.shadow);var bt=N[A.formatPrefix+"TextPath"]||N.textPath;bt&&!N.useHTML&&(J.setTextPath(A.getDataLabelPath&&A.getDataLabelPath(J)||A.graphic,bt),A.dataLabelPath&&!bt.enabled&&(A.dataLabelPath=A.dataLabelPath.destroy())),J.added||J.add(r),a.alignDataLabel(A,J,N,null,rt)}else J&&J.hide()})})}I(this,"afterDrawDataLabels")}function S(f,r,a,t,i,o){var e,s,n=this.chart,l=r.align,b=r.verticalAlign,T=f.box?0:f.padding||0,D=r.x,p=D===void 0?0:D,x=r.y,A=x===void 0?0:x;return(e=(a.x||0)+T)<0&&(l==="right"&&p>=0?(r.align="left",r.inside=!0):p-=e,s=!0),(e=(a.x||0)+t.width-T)>n.plotWidth&&(l==="left"&&p<=0?(r.align="right",r.inside=!0):p+=n.plotWidth-e,s=!0),(e=a.y+T)<0&&(b==="bottom"&&A>=0?(r.verticalAlign="top",r.inside=!0):A-=e,s=!0),(e=(a.y||0)+t.height-T)>n.plotHeight&&(b==="top"&&A<=0?(r.verticalAlign="bottom",r.inside=!0):A+=n.plotHeight-e,s=!0),s&&(r.x=p,r.y=A,f.placed=!o,f.align(r,void 0,i)),s}function C(f,r){var a,t=[];if(E(f)&&!E(r))t=f.map(function(i){return k(i,r)});else if(E(r)&&!E(f))t=r.map(function(i){return k(f,i)});else if(E(f)||E(r))for(a=Math.max(f.length,r.length);a--;)t[a]=k(f[a],r[a]);else t=k(f,r);return t}function c(f,r,a,t,i){var o=this.chart,e=o.inverted,s=this.xAxis,n=s.reversed,l=e?r.height/2:r.width/2,b=f.pointWidth,T=b?b/2:0;r.startXPos=e?i.x:n?-l-T:s.width-l+T,r.startYPos=e?n?this.yAxis.height-l+T:-l-T: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&&(a&&r.attr({x:r.startXPos,y:r.startYPos}),r.placed=!0)}g.compose=function(f){if(d.indexOf(f)===-1){var r=f.prototype;d.push(f),r.alignDataLabel=v,r.drawDataLabels=w,r.justifyDataLabel=S,r.setDataLabelStartPos=c}}}(V||(V={})),V}),et(B,"Series/Column/ColumnDataLabel.js",[B["Core/Series/DataLabel.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=R.series,Z=H.merge,U=H.pick;return function(z){var I=[];function E(M,k,y,h,u){var g,d=this.chart.inverted,v=M.series,w=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0,S=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0,C=M.dlBox||M.shapeArgs,c=U(M.below,M.plotY>U(this.translatedThreshold,S)),f=U(y.inside,!!this.options.stacking);C&&((h=Z(C)).y<0&&(h.height+=h.y,h.y=0),(g=h.y+h.height-S)>0&&g<h.height&&(h.height-=g),d&&(h={x:S-h.y-h.height,y:w-h.x-h.width,width:h.height,height:h.width}),f||(d?(h.x+=c?0:h.width,h.width=0):(h.y+=c?h.height:0,h.height=0))),y.align=U(y.align,!d||f?"center":c?"right":"left"),y.verticalAlign=U(y.verticalAlign,d||f?"middle":c?"top":"bottom"),$.prototype.alignDataLabel.call(this,M,k,y,h,u),y.inside&&M.contrastColor&&k.css({color:M.contrastColor})}z.compose=function(M){W.compose($),I.indexOf(M)===-1&&(I.push(M),M.prototype.alignDataLabel=E)}}(V||(V={})),V}),et(B,"Series/Bar/BarSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,k){M.__proto__=k}||function(M,k){for(var y in k)k.hasOwnProperty(y)&&(M[y]=k[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=H.extend,U=H.merge,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return $(E,I),E.defaultOptions=U(W.defaultOptions,{}),E}(W);return Z(z.prototype,{inverted:!0}),R.registerSeriesType("bar",z),z}),et(B,"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(B,"Series/Scatter/ScatterSeries.js",[B["Series/Scatter/ScatterSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(y,h){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},V(y,h)},function(y,h){function u(){this.constructor=y}V(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),Z=R.seriesTypes,U=Z.column,z=Z.line,I=H.addEvent,E=H.extend,M=H.merge,k=function(y){function h(){var u=y!==null&&y.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return $(h,y),h.prototype.applyJitter=function(){var u=this,g=this.options.jitter,d=this.points.length;g&&this.points.forEach(function(v,w){["x","y"].forEach(function(S,C){var c,f,r,a,t,i,o="plot"+S.toUpperCase();g[S]&&!v.isNull&&(c=u[S+"Axis"],a=g[S]*c.transA,c&&!c.isLog&&(f=Math.max(0,v[o]-a),r=Math.min(c.len,v[o]+a),v[o]=f+(r-f)*(t=w+C*d,(i=1e4*Math.sin(t))-Math.floor(i)),S==="x"&&(v.clientX=v.plotX)))})})},h.prototype.drawGraph=function(){this.options.lineWidth?y.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},h.defaultOptions=M(z.defaultOptions,W),h}(z);return E(k.prototype,{drawTracker:U.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),I(k,"afterTranslate",function(){this.applyJitter()}),R.registerSeriesType("scatter",k),k}),et(B,"Series/CenteredUtilities.js",[B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.deg2rad,Z=H.fireEvent,U=H.isNumber,z=H.pick,I=H.relativeLength;return function(E){E.getCenter=function(){var M,k,y,h=this.options,u=this.chart,g=2*(h.slicedOffset||0),d=u.plotWidth-2*g,v=u.plotHeight-2*g,w=h.center,S=Math.min(d,v),C=h.thickness,c=h.size,f=h.innerSize||0;typeof c=="string"&&(c=parseFloat(c)),typeof f=="string"&&(f=parseFloat(f));var r=[z(w[0],"50%"),z(w[1],"50%"),z(c&&c<0?void 0:h.size,"100%"),z(f&&f<0?void 0:h.innerSize||0,"0%")];for(!u.angular||this instanceof R||(r[3]=0),k=0;k<4;++k)y=r[k],M=k<2||k===2&&/%$/.test(y),r[k]=I(y,[d,v,S,r[2]][k])+(M?g:0);return r[3]>r[2]&&(r[3]=r[2]),U(C)&&2*C<r[2]&&C>0&&(r[3]=r[2]-2*C),Z(this,"afterGetCenter",{positions:r}),r},E.getStartAndEndRadians=function(M,k){var y=U(M)?M:0,h=U(k)&&k>y&&k-y<360?k:y+360;return{start:$*(y+-90),end:$*(h+-90)}}}(V||(V={})),V}),et(B,"Series/Pie/PiePoint.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(h,u){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,d){g.__proto__=d}||function(g,d){for(var v in d)d.hasOwnProperty(v)&&(g[v]=d[v])},V(h,u)},function(h,u){function g(){this.constructor=h}V(h,u),h.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),Z=W.setAnimation,U=H.addEvent,z=H.defined,I=H.extend,E=H.isNumber,M=H.pick,k=H.relativeLength,y=function(h){function u(){var g=h!==null&&h.apply(this,arguments)||this;return g.labelDistance=void 0,g.options=void 0,g.series=void 0,g}return $(u,h),u.prototype.getConnectorPath=function(){var g=this.labelPosition,d=this.series.options.dataLabels,v=this.connectorShapes,w=d.connectorShape;return v[w]&&(w=v[w]),w.call(this,{x:g.final.x,y:g.final.y,alignment:g.alignment},g.connectorPosition,d)},u.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},u.prototype.haloPath=function(g){var d=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(d.x,d.y,d.r+g,d.r+g,{innerR:d.r-1,start:d.start,end:d.end})},u.prototype.init=function(){var g=this;h.prototype.init.apply(this,arguments),this.name=M(this.name,"Slice");var d=function(v){g.slice(v.type==="select")};return U(this,"select",d),U(this,"unselect",d),this},u.prototype.isValid=function(){return E(this.y)&&this.y>=0},u.prototype.setVisible=function(g,d){var v=this,w=this.series,S=w.chart,C=w.options.ignoreHiddenPoint;d=M(d,C),g!==this.visible&&(this.visible=this.options.visible=g=g===void 0?!this.visible:g,w.options.data[w.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(c){v[c]&&v[c][g?"show":"hide"](g)}),this.legendItem&&S.legend.colorizeItem(this,g),g||this.state!=="hover"||this.setState(""),C&&(w.isDirty=!0),d&&S.redraw())},u.prototype.slice=function(g,d,v){var w=this.series,S=w.chart;Z(v,S),d=M(d,!0),this.sliced=this.options.sliced=g=z(g)?g:!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())},u}(R);return I(y.prototype,{connectorShapes:{fixedOffset:function(h,u,g){var d=u.breakAt,v=u.touchingSliceAt,w=g.softConnector?["C",h.x+(h.alignment==="left"?-5:5),h.y,2*d.x-v.x,2*d.y-v.y,d.x,d.y]:["L",d.x,d.y];return[["M",h.x,h.y],w,["L",v.x,v.y]]},straight:function(h,u){var g=u.touchingSliceAt;return[["M",h.x,h.y],["L",g.x,g.y]]},crookedLine:function(h,u,g){var d=u.touchingSliceAt,v=this.series,w=v.center[0],S=v.chart.plotWidth,C=v.chart.plotLeft,c=h.alignment,f=this.shapeArgs.r,r=k(g.crookDistance,1),a=c==="left"?w+f+(S+C-w-f)*(1-r):C+(w-f)*r,t=["L",a,h.y],i=!0;(c==="left"?a>h.x||a<d.x:a<h.x||a>d.x)&&(i=!1);var o=[["M",h.x,h.y]];return i&&o.push(t),o.push(["L",d.x,d.y]),o}}}),y}),et(B,"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(B,"Series/Pie/PieSeries.js",[B["Series/CenteredUtilities.js"],B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Series/Pie/PiePoint.js"],B["Series/Pie/PieSeriesDefaults.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/Symbols.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M,k=this&&this.__extends||(M=function(c,f){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var t in a)a.hasOwnProperty(t)&&(r[t]=a[t])},M(c,f)},function(c,f){function r(){this.constructor=c}M(c,f),c.prototype=f===null?Object.create(f):(r.prototype=f.prototype,new r)}),y=W.getStartAndEndRadians,h=H.noop,u=E.clamp,g=E.extend,d=E.fireEvent,v=E.merge,w=E.pick,S=E.relativeLength,C=function(c){function f(){var r=c!==null&&c.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 k(f,c),f.prototype.animate=function(r){var a=this,t=a.points,i=a.startAngleRad;r||t.forEach(function(o){var e=o.graphic,s=o.shapeArgs;e&&s&&(e.attr({r:w(o.startR,a.center&&a.center[3]/2),start:i,end:i}),e.animate({r:s.r,start:s.start,end:s.end},a.options.animation))})},f.prototype.drawEmpty=function(){var r,a,t=this.startAngleRad,i=this.endAngleRad,o=this.options;this.total===0&&this.center?(r=this.center[0],a=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(r,a,this.center[1]/2,0,t,i).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(r,a,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(a){a.graphic&&a.hasNewShapeType()&&(a.graphic=a.graphic.destroy()),a.graphic||(a.graphic=r[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})},f.prototype.generatePoints=function(){c.prototype.generatePoints.call(this),this.updateTotals()},f.prototype.getX=function(r,a,t){var i=this.center,o=this.radii?this.radii[t.index]||0:i[2]/2,e=Math.asin(u((r-i[1])/(o+t.labelDistance),-1,1));return i[0]+(a?-1:1)*(Math.cos(e)*(o+t.labelDistance))+(t.labelDistance>0?(a?-1:1)*this.options.dataLabels.padding:0)},f.prototype.hasData=function(){return!!this.processedXData.length},f.prototype.redrawPoints=function(){var r,a,t,i,o=this,e=o.chart,s=e.renderer,n=o.options.shadow;this.drawEmpty(),!n||o.shadowGroup||e.styledMode||(o.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach(function(l){var b={};if(a=l.graphic,!l.isNull&&a){var T=void 0;i=l.shapeArgs,r=l.getTranslate(),e.styledMode||(T=l.shadowGroup,n&&!T&&(T=l.shadowGroup=s.g("shadow").add(o.shadowGroup)),T&&T.attr(r),t=o.pointAttribs(l,l.selected&&"select")),l.delayedRendering?(a.setRadialReference(o.center).attr(i).attr(r),e.styledMode||a.attr(t).attr({"stroke-linejoin":"round"}).shadow(n,T),l.delayedRendering=!1):(a.setRadialReference(o.center),e.styledMode||v(!0,b,t),v(!0,b,i,r),a.animate(b)),a.attr({visibility:l.visible?"inherit":"hidden"}),a.addClass(l.getClassName(),!0)}else a&&(l.graphic=a.destroy())})},f.prototype.sortByAngle=function(r,a){r.sort(function(t,i){return t.angle!==void 0&&(i.angle-t.angle)*a})},f.prototype.translate=function(r){d(this,"translate"),this.generatePoints();var a,t,i,o,e,s,n,l,b=this,T=1e3,D=b.options,p=D.slicedOffset,x=p+(D.borderWidth||0),A=y(D.startAngle,D.endAngle),N=b.startAngleRad=A.start,_=(b.endAngleRad=A.end)-N,L=b.points,O=D.dataLabels.distance,j=D.ignoreHiddenPoint,Y=L.length,X=0;for(r||(b.center=r=b.getCenter()),n=0;n<Y;n++){t=N+X*_,!(l=L[n]).isValid()||j&&!l.visible||(X+=l.percentage/100),i=N+X*_;var G={x:r[0],y:r[1],r:r[2]/2,innerR:r[3]/2,start:Math.round(t*T)/T,end:Math.round(i*T)/T};l.shapeType="arc",l.shapeArgs=G,l.labelDistance=w(l.options.dataLabels&&l.options.dataLabels.distance,O),l.labelDistance=S(l.labelDistance,G.r),b.maxLabelDistance=Math.max(b.maxLabelDistance||0,l.labelDistance),(o=(i+t)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(o)*p),translateY:Math.round(Math.sin(o)*p)},e=Math.cos(o)*r[2]/2,s=Math.sin(o)*r[2]/2,l.tooltipPos=[r[0]+.7*e,r[1]+.7*s],l.half=o<-Math.PI/2||o>Math.PI/2?1:0,l.angle=o,a=Math.min(x,l.labelDistance/5),l.labelPosition={natural:{x:r[0]+e+Math.cos(o)*l.labelDistance,y:r[1]+s+Math.sin(o)*l.labelDistance},final:{},alignment:l.labelDistance<0?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:r[0]+e+Math.cos(o)*a,y:r[1]+s+Math.sin(o)*a},touchingSliceAt:{x:r[0]+e,y:r[1]+s}}}}d(b,"afterTranslate")},f.prototype.updateTotals=function(){var r,a,t=this.points,i=t.length,o=this.options.ignoreHiddenPoint,e=0;for(r=0;r<i;r++)!(a=t[r]).isValid()||o&&!a.visible||(e+=a.y);for(this.total=e,r=0;r<i;r++)(a=t[r]).percentage=e>0&&(a.visible||!o)?a.y/e*100:0,a.total=e},f.defaultOptions=v(U.defaultOptions,Z),f}(U);return g(C.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:V.drawRectangle,drawTracker:R.prototype.drawTracker,getCenter:W.getCenter,getSymbol:h,isCartesian:!1,noSharedTooltip:!0,pointAttribs:R.prototype.pointAttribs,pointClass:$,requireSorting:!1,searchPoint:h,trackerGroups:["group","dataLabelsGroup"]}),z.registerSeriesType("pie",C),C}),et(B,"Series/Pie/PieDataLabel.js",[B["Core/Series/DataLabel.js"],B["Core/Globals.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=R.noop,z=H.distribute,I=V.series,E=$.arrayMax,M=$.clamp,k=$.defined,y=$.merge,h=$.pick,u=$.relativeLength;return function(g){var d=[],v={radialDistributionY:function(c){return c.top+c.distributeBox.pos},radialDistributionX:function(c,f,r,a){return c.getX(r<f.top+2||r>f.bottom-2?a:r,f.half,f)},justify:function(c,f,r){return r[0]+(c.half?-1:1)*(f+c.labelDistance)},alignToPlotEdges:function(c,f,r,a){var t=c.getBBox().width;return f?t+a:r-t-a},alignToConnectors:function(c,f,r,a){var t,i=0;return c.forEach(function(o){(t=o.dataLabel.getBBox().width)>i&&(i=t)}),f?i+a:r-i-a}};function w(){var c,f,r,a,t,i,o,e,s,n,l,b,T=this,D=T.data,p=T.chart,x=T.options.dataLabels||{},A=x.connectorPadding,N=p.plotWidth,_=p.plotHeight,L=p.plotLeft,O=Math.round(p.chartWidth/3),j=T.center,Y=j[2]/2,X=j[1],G=[[],[]],q=[0,0,0,0],Q=T.dataLabelPositioners;T.visible&&(x.enabled||T._hasPointLabels)&&(D.forEach(function(J){J.dataLabel&&J.visible&&J.dataLabel.shortened&&(J.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),J.dataLabel.shortened=!1)}),I.prototype.drawDataLabels.apply(T),D.forEach(function(J){J.dataLabel&&(J.visible?(G[J.half].push(J),J.dataLabel._pos=null,k(x.style.width)||k(J.options.dataLabels&&J.options.dataLabels.style&&J.options.dataLabels.style.width)||J.dataLabel.getBBox().width>O&&(J.dataLabel.css({width:Math.round(.7*O)+"px"}),J.dataLabel.shortened=!0)):(J.dataLabel=J.dataLabel.destroy(),J.dataLabels&&J.dataLabels.length===1&&delete J.dataLabels))}),G.forEach(function(J,rt){var lt,gt,mt,bt,yt,ht,it=J.length,st=[];if(it)for(T.sortByAngle(J,rt-.5),T.maxLabelDistance>0&&(lt=Math.max(0,X-Y-T.maxLabelDistance),gt=Math.min(X+Y+T.maxLabelDistance,p.plotHeight),J.forEach(function(dt){dt.labelDistance>0&&dt.dataLabel&&(dt.top=Math.max(0,X-Y-dt.labelDistance),dt.bottom=Math.min(X+Y+dt.labelDistance,p.plotHeight),yt=dt.dataLabel.getBBox().height||21,dt.distributeBox={target:dt.labelPosition.natural.y-dt.top+yt/2,size:yt,rank:dt.y},st.push(dt.distributeBox))}),z(st,ht=gt+yt-lt,ht/5)),l=0;l<it;l++){if(c=J[l],i=c.labelPosition,a=c.dataLabel,n=c.visible===!1?"hidden":"inherit",mt=i.natural.y,s=mt,st&&k(c.distributeBox)&&(c.distributeBox.pos===void 0?n="hidden":(o=c.distributeBox.size,s=Q.radialDistributionY(c))),delete c.positionIndex,x.justify)e=Q.justify(c,Y,j);else switch(x.alignTo){case"connectors":e=Q.alignToConnectors(J,rt,N,L);break;case"plotEdges":e=Q.alignToPlotEdges(a,rt,N,L);break;default:e=Q.radialDistributionX(T,c,s,mt)}a._attr={visibility:n,align:i.alignment},b=c.options.dataLabels||{},a._pos={x:e+h(b.x,x.x)+({left:A,right:-A}[i.alignment]||0),y:s+h(b.y,x.y)-10},i.final.x=e,i.final.y=s,h(x.crop,!0)&&(t=a.getBBox().width,bt=null,e-t<A&&rt===1?(bt=Math.round(t-e+A),q[3]=Math.max(bt,q[3])):e+t>N-A&&rt===0&&(bt=Math.round(e+t-N+A),q[1]=Math.max(bt,q[1])),s-o/2<0?q[0]=Math.max(Math.round(o/2-s),q[0]):s+o/2>_&&(q[2]=Math.max(Math.round(s+o/2-_),q[2])),a.sideOverflow=bt)}}),(E(q)===0||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(J){if(b=y(x,J.options.dataLabels),f=h(b.connectorWidth,1)){var rt=void 0;r=J.connector,(a=J.dataLabel)&&a._pos&&J.visible&&J.labelDistance>0?(n=a._attr.visibility,(rt=!r)&&(J.connector=r=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+J.colorIndex+(J.className?" "+J.className:"")).add(T.dataLabelsGroup),p.styledMode||r.attr({"stroke-width":f,stroke:b.connectorColor||J.color||"#666666"})),r[rt?"attr":"animate"]({d:J.getConnectorPath()}),r.attr("visibility",n)):r&&(J.connector=r.destroy())}})))}function S(){this.points.forEach(function(c){var f,r=c.dataLabel;r&&c.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 c.distributeBox},this)}function C(c){var f=this.center,r=this.options,a=r.center,t=r.minSize||80,i=t,o=r.size!==null;return o||(a[0]!==null?i=Math.max(f[2]-Math.max(c[1],c[3]),t):(i=Math.max(f[2]-c[1]-c[3],t),f[0]+=(c[3]-c[1])/2),a[1]!==null?i=M(i,t,f[2]-Math.max(c[0],c[2])):(i=M(i,t,f[2]-c[0]-c[2]),f[1]+=(c[0]-c[2])/2),i<f[2]?(f[2]=i,f[3]=Math.min(r.thickness?Math.max(0,i-2*r.thickness):Math.max(0,u(r.innerSize||0,i)),i),this.translate(f),this.drawDataLabels&&this.drawDataLabels()):o=!0),o}g.compose=function(c){if(W.compose(I),d.indexOf(c)===-1){d.push(c);var f=c.prototype;f.dataLabelPositioners=v,f.alignDataLabel=U,f.drawDataLabels=w,f.placeDataLabels=S,f.verifyDataLabelOverflow=C}}}(Z||(Z={})),Z}),et(B,"Extensions/OverlappingDataLabels.js",[B["Core/Chart/Chart.js"],B["Core/Utilities.js"]],function(W,R){var H=R.addEvent,V=R.fireEvent,$=R.isArray,Z=R.isNumber,U=R.objectEach,z=R.pick;function I(E,M){var k,y,h=!1;return E&&(y=E.newOpacity,E.oldOpacity!==y&&(E.alignAttr&&E.placed?(E[y?"removeClass":"addClass"]("highcharts-data-label-hidden"),k=function(){M.styledMode||E.css({pointerEvents:y?"auto":"none"})},h=!0,E.alignAttr.opacity=y,E[E.isOld?"animate":"attr"](E.alignAttr,null,k),V(M,"afterHideOverlappingLabel")):E.attr({opacity:y})),E.isOld=!0),h}H(W,"render",function(){var E=this,M=[];(this.labelCollectors||[]).forEach(function(k){M=M.concat(k())}),(this.yAxis||[]).forEach(function(k){k.stacking&&k.options.stackLabels&&!k.options.stackLabels.allowOverlap&&U(k.stacking.stacks,function(y){U(y,function(h){h.label&&M.push(h.label)})})}),(this.series||[]).forEach(function(k){var y=k.options.dataLabels;if(k.visible&&(y.enabled!==!1||k._hasPointLabels)){var h=function(u){return u.forEach(function(g){g.visible&&($(g.dataLabels)?g.dataLabels:g.dataLabel?[g.dataLabel]:[]).forEach(function(d){var v=d.options;d.labelrank=z(v.labelrank,g.labelrank,g.shapeArgs&&g.shapeArgs.height),v.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,I(d,E)):M.push(d)})})};h(k.nodes||[]),h(k.points)}}),this.hideOverlappingLabels(M)}),W.prototype.hideOverlappingLabels=function(E){var M,k,y,h,u,g,d,v=this,w=E.length,S=v.renderer,C=!1,c=function(r,a){return!(a.x>=r.x+r.width||a.x+a.width<=r.x||a.y>=r.y+r.height||a.y+a.height<=r.y)},f=function(r){var a,t,i,o,e,s=r.box?0:r.padding||0,n=0,l=0;if(r&&(!r.alignAttr||r.placed))return a=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,n=S.fontMetrics(null,r.element).h),o=r.width-2*s,(e={left:"0",center:"0.5",right:"1"}[r.alignValue])?l=+e*o:Z(r.x)&&Math.round(r.x)!==r.translateX&&(l=r.x-r.translateX),{x:a.x+(t.translateX||0)+s-(l||0),y:a.y+(t.translateY||0)+s-n,width:r.width-2*s,height:r.height-2*s}};for(k=0;k<w;k++)(M=E[k])&&(M.oldOpacity=M.opacity,M.newOpacity=1,M.absoluteBox=f(M));for(E.sort(function(r,a){return(a.labelrank||0)-(r.labelrank||0)}),k=0;k<w;k++)for(g=(h=E[k])&&h.absoluteBox,y=k+1;y<w;++y)d=(u=E[y])&&u.absoluteBox,g&&d&&h!==u&&h.newOpacity!==0&&u.newOpacity!==0&&h.visibility!=="hidden"&&u.visibility!=="hidden"&&c(g,d)&&((h.labelrank<u.labelrank?h:u).newOpacity=0);E.forEach(function(r){I(r,v)&&(C=!0)}),C&&V(v,"afterHideAllOverlappingLabels")}}),et(B,"Core/Responsive.js",[B["Core/Utilities.js"]],function(W){var R,H=W.extend,V=W.find,$=W.isArray,Z=W.isObject,U=W.merge,z=W.objectEach,I=W.pick,E=W.splat,M=W.uniqueKey;return function(k){var y=[];k.compose=function(u){return y.indexOf(u)===-1&&(y.push(u),H(u.prototype,h.prototype)),u};var h=function(){function u(){}return u.prototype.currentOptions=function(g){var d=this,v={};return function w(S,C,c,f){var r;z(S,function(a,t){if(!f&&d.collectionsWithUpdate.indexOf(t)>-1&&C[t])for(a=E(a),c[t]=[],r=0;r<Math.max(a.length,C[t].length);r++)C[t][r]&&(a[r]===void 0?c[t][r]=C[t][r]:(c[t][r]={},w(a[r],C[t][r],c[t][r],f+1)));else Z(a)?(c[t]=$(a)?[]:{},w(a,C[t]||{},c[t],f+1)):C[t]===void 0?c[t]=null:c[t]=C[t]})}(g,this.options,v,0),v},u.prototype.matchResponsiveRule=function(g,d){var v=g.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)&&d.push(g._id)},u.prototype.setResponsive=function(g,d){var v,w=this,S=this.options.responsive,C=this.currentResponsive,c=[];!d&&S&&S.rules&&S.rules.forEach(function(a){a._id===void 0&&(a._id=M()),w.matchResponsiveRule(a,c)},this);var f=U.apply(void 0,c.map(function(a){return V((S||{}).rules||[],function(t){return t._id===a})}).map(function(a){return a&&a.chartOptions}));f.isResponsiveOptions=!0,c=c.toString()||void 0;var r=C&&C.ruleIds;c!==r&&(C&&this.update(C.undoOptions,g,!0),c?((v=this.currentOptions(f)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:c,mergedOptions:f,undoOptions:v},this.update(f,g,!0)):this.currentResponsive=void 0)},u}()}(R||(R={})),R}),et(B,"masters/highcharts.src.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/Defaults.js"],B["Core/Animation/Fx.js"],B["Core/Animation/AnimationUtilities.js"],B["Core/Renderer/HTML/AST.js"],B["Core/FormatUtilities.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Renderer/HTML/HTMLElement.js"],B["Core/Renderer/HTML/HTMLRenderer.js"],B["Core/Axis/Axis.js"],B["Core/Axis/DateTimeAxis.js"],B["Core/Axis/LogarithmicAxis.js"],B["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],B["Core/Axis/Tick.js"],B["Core/Tooltip.js"],B["Core/Series/Point.js"],B["Core/Pointer.js"],B["Core/MSPointer.js"],B["Core/Legend/Legend.js"],B["Core/Chart/Chart.js"],B["Core/Axis/Stacking/StackingAxis.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Column/ColumnSeries.js"],B["Series/Column/ColumnDataLabel.js"],B["Series/Pie/PieSeries.js"],B["Series/Pie/PieDataLabel.js"],B["Core/Series/DataLabel.js"],B["Core/Responsive.js"],B["Core/Color/Color.js"],B["Core/Time.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,k,y,h,u,g,d,v,w,S,C,c,f,r,a,t,i,o,e,s,n,l,b,T,D){var p=W;return p.animate=$.animate,p.animObject=$.animObject,p.getDeferredAnimation=$.getDeferredAnimation,p.setAnimation=$.setAnimation,p.stop=$.stop,p.timers=V.timers,p.AST=Z,p.Axis=y,p.Chart=f,p.chart=f.chart,p.Fx=V,p.Legend=c,p.PlotLineOrBand=g,p.Point=w,p.Pointer=C.isRequired()?C:S,p.Series=t,p.StackItem=a,p.SVGElement=I,p.SVGRenderer=E,p.Tick=d,p.Time=D,p.Tooltip=v,p.Color=T,p.color=T.parse,k.compose(E),M.compose(I),p.defaultOptions=H.defaultOptions,p.getOptions=H.getOptions,p.time=H.defaultTime,p.setOptions=H.setOptions,p.dateFormat=U.dateFormat,p.format=U.format,p.numberFormat=U.numberFormat,p.addEvent=R.addEvent,p.arrayMax=R.arrayMax,p.arrayMin=R.arrayMin,p.attr=R.attr,p.clearTimeout=R.clearTimeout,p.correctFloat=R.correctFloat,p.createElement=R.createElement,p.css=R.css,p.defined=R.defined,p.destroyObjectProperties=R.destroyObjectProperties,p.discardElement=R.discardElement,p.distribute=z.distribute,p.erase=R.erase,p.error=R.error,p.extend=R.extend,p.extendClass=R.extendClass,p.find=R.find,p.fireEvent=R.fireEvent,p.getMagnitude=R.getMagnitude,p.getStyle=R.getStyle,p.inArray=R.inArray,p.isArray=R.isArray,p.isClass=R.isClass,p.isDOMElement=R.isDOMElement,p.isFunction=R.isFunction,p.isNumber=R.isNumber,p.isObject=R.isObject,p.isString=R.isString,p.keys=R.keys,p.merge=R.merge,p.normalizeTickInterval=R.normalizeTickInterval,p.objectEach=R.objectEach,p.offset=R.offset,p.pad=R.pad,p.pick=R.pick,p.pInt=R.pInt,p.relativeLength=R.relativeLength,p.removeEvent=R.removeEvent,p.seriesType=i.seriesType,p.splat=R.splat,p.stableSort=R.stableSort,p.syncTimeout=R.syncTimeout,p.timeUnits=R.timeUnits,p.uniqueKey=R.uniqueKey,p.useSerialIds=R.useSerialIds,p.wrap=R.wrap,e.compose(o),l.compose(t),h.compose(y),u.compose(y),n.compose(s),g.compose(y),b.compose(f),r.compose(y,f,t),p}),et(B,"Core/Axis/BrokenAxis.js",[B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.find,Z=R.fireEvent,U=R.isArray,z=R.isNumber,I=R.pick;return function(E){var M=[];function k(){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 h(){var C=this,c=C.brokenAxis;if(c&&c.hasBreaks){for(var f=C.tickPositions,r=C.tickPositions.info,a=[],t=0;t<f.length;t++)c.isInAnyBreak(f[t])||a.push(f[t]);C.tickPositions=a,C.tickPositions.info=r}}function u(){var C=this;C.brokenAxis||(C.brokenAxis=new S(C))}function g(){var C=this,c=C.isDirty,f=C.options.connectNulls,r=C.points,a=C.xAxis,t=C.yAxis;if(c)for(var i=r.length;i--;){var o=r[i],e=!(o.y===null&&f===!1)&&(a&&a.brokenAxis&&a.brokenAxis.isInAnyBreak(o.x,!0)||t&&t.brokenAxis&&t.brokenAxis.isInAnyBreak(o.y,!0));o.visible=!e&&o.options.visible!==!1}}function d(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,I(this.pointArrayMap,["y"]))}function v(C,c){var f,r,a,t,i=this,o=i.points;if(C&&C.brokenAxis&&C.brokenAxis.hasBreaks){var e=C.brokenAxis;c.forEach(function(s){f=e&&e.breakArray||[],r=C.isXAxis?C.min:I(i.options.threshold,C.min),o.forEach(function(n){t=I(n["stack"+s.toUpperCase()],n[s]),f.forEach(function(l){z(r)&&z(t)&&(a=!1,r<l.from&&t>l.to||r>l.from&&t<l.from?a="pointBreak":(r<l.from&&t>l.from&&t<l.to||r>l.from&&t>l.to&&t<l.from)&&(a="pointInBreak"),a&&Z(C,a,{point:n,brk:l}))})})})}}function w(){var C=this.currentDataGrouping,c=C&&C.gapSize,f=this.points.slice(),r=this.yAxis,a=this.options.gapSize,t=f.length-1;if(a&&t>0){this.options.gapUnit!=="value"&&(a*=this.basePointRange),c&&c>a&&c>=this.basePointRange&&(a=c);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>a){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 W(r,r.options.stackLabels,!1,e,this.stack)).total=0)}o=i}}return this.getGraphPath(f)}E.compose=function(C,c){if(M.indexOf(C)===-1&&(M.push(C),C.keepProps.push("brokenAxis"),V(C,"init",u),V(C,"afterInit",k),V(C,"afterSetTickPositions",h),V(C,"afterSetOptions",y)),M.indexOf(c)===-1){M.push(c);var f=c.prototype;f.drawBreaks=v,f.gappedPath=w,V(c,"afterGeneratePoints",g),V(c,"afterRender",d)}return C};var S=function(){function C(c){this.hasBreaks=!1,this.axis=c}return C.isInBreak=function(c,f){var r=c.repeat||1/0,a=c.from,t=c.to-c.from,i=f>=a?(f-a)%r:r-(a-f)%r;return c.inclusive?i<=t:i<t&&i!==0},C.lin2Val=function(c){var f=this.brokenAxis,r=f&&f.breakArray;if(!r||!z(c))return c;var a,t,i=c;for(t=0;t<r.length&&!((a=r[t]).from>=i);t++)(a.to<i||C.isInBreak(a,i))&&(i+=a.len);return i},C.val2Lin=function(c){var f=this.brokenAxis,r=f&&f.breakArray;if(!r||!z(c))return c;var a,t,i=c;for(t=0;t<r.length;t++)if((a=r[t]).to<=c)i-=a.len;else{if(a.from>=c)break;if(C.isInBreak(a,c)){i-=c-a.from;break}}return i},C.prototype.findBreakAt=function(c,f){return $(f,function(r){return r.from<c&&c<r.to})},C.prototype.isInAnyBreak=function(c,f){var r,a,t,i=this.axis,o=i.options.breaks||[],e=o.length;if(e&&z(c)){for(;e--;)C.isInBreak(o[e],c)&&(r=!0,a||(a=I(o[e].showPoints,!i.isXAxis)));t=r&&f?r&&!a:r}return t},C.prototype.setBreaks=function(c,f){var r=this,a=r.axis,t=U(c)&&!!c.length;a.isDirty=r.hasBreaks!==t,r.hasBreaks=t,a.options.breaks=a.userOptions.breaks=c,a.forceRedraw=!0,a.series.forEach(function(i){i.isDirty=!0}),t||a.val2lin!==C.val2Lin||(delete a.val2lin,delete a.lin2val),t&&(a.userOptions.ordinal=!1,a.lin2val=C.lin2Val,a.val2lin=C.val2Lin,a.setExtremes=function(i,o,e,s,n){if(r.hasBreaks){for(var l=this.options.breaks||[],b=void 0;b=r.findBreakAt(i,l);)i=b.to;for(;b=r.findBreakAt(o,l);)o=b.from;o<i&&(o=i)}a.constructor.prototype.setExtremes.call(this,i,o,e,s,n)},a.setAxisTranslation=function(){if(a.constructor.prototype.setAxisTranslation.call(this),r.unitLength=void 0,r.hasBreaks){var i,o,e,s,n=a.options.breaks||[],l=[],b=[],T=I(a.pointRangePadding,0),D=0,p=a.userMin||a.min,x=a.userMax||a.max;n.forEach(function(A){o=A.repeat||1/0,z(p)&&z(x)&&(C.isInBreak(A,p)&&(p+=A.to%o-p%o),C.isInBreak(A,x)&&(x-=x%o-A.from%o))}),n.forEach(function(A){if(e=A.from,o=A.repeat||1/0,z(p)&&z(x)){for(;e-o>p;)e-=o;for(;e<p;)e+=o;for(s=e;s<x;s+=o)l.push({value:s,move:"in"}),l.push({value:s+A.to-A.from,move:"out",size:A.breakSize})}}),l.sort(function(A,N){return A.value===N.value?(A.move==="in"?0:1)-(N.move==="in"?0:1):A.value-N.value}),i=0,e=p,l.forEach(function(A){(i+=A.move==="in"?1:-1)===1&&A.move==="in"&&(e=A.value),i===0&&z(e)&&(b.push({from:e,to:A.value,len:A.value-e-(A.size||0)}),D+=A.value-e-(A.size||0))}),r.breakArray=b,z(p)&&z(x)&&z(a.min)&&(r.unitLength=x-p-D+T,Z(a,"afterBreaks"),a.staticScale?a.transA=a.staticScale:r.unitLength&&(a.transA*=(x-a.min+T)/r.unitLength),T&&(a.minPixelPadding=a.transA*(a.minPointOffset||0)),a.min=p,a.max=x)}}),I(f,!0)&&a.chart.redraw()},C}();E.Additions=S}(H||(H={})),H}),et(B,"masters/modules/broken-axis.src.js",[B["Core/Globals.js"],B["Core/Axis/BrokenAxis.js"]],function(W,R){var H=W;R.compose(H.Axis,H.Series)}),et(B,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),et(B,"Extensions/DataGrouping/ApproximationDefaults.js",[B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H=R.arrayMax,V=R.arrayMin,$=R.correctFloat,Z=R.extend,U=R.isNumber;function z(M){var k=M.length,y=I(M);return U(y)&&k&&(y=$(y/k)),y}function I(M){var k,y=M.length;if(!y&&M.hasNulls)k=null;else if(y)for(k=0;y--;)k+=M[y];return k}var E={average:z,averages:function(){var M=[];return[].forEach.call(arguments,function(k){M.push(z(k))}),M[0]===void 0?void 0:M},close:function(M){return M.length?M[M.length-1]:M.hasNulls?null:void 0},high:function(M){return M.length?H(M):M.hasNulls?null:void 0},hlc:function(M,k,y){if(M=W.high(M),k=W.low(k),y=W.close(y),U(M)||U(k)||U(y))return[M,k,y]},low:function(M){return M.length?V(M):M.hasNulls?null:void 0},ohlc:function(M,k,y,h){if(M=W.open(M),k=W.high(k),y=W.low(y),h=W.close(h),U(M)||U(k)||U(y)||U(h))return[M,k,y,h]},open:function(M){return M.length?M[0]:M.hasNulls?null:void 0},range:function(M,k){return M=W.low(M),k=W.high(k),U(M)||U(k)?[M,k]:M===null&&k===null?null:void 0},sum:I};return Z(W,E),E}),et(B,"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(B,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.extend,Z=R.merge,U=R.pick,z=[];function I(y){var h=this,u=h.series;u.forEach(function(g){g.groupPixelWidth=void 0}),u.forEach(function(g){g.groupPixelWidth=h.getGroupPixelWidth&&h.getGroupPixelWidth(),g.groupPixelWidth&&(g.hasProcessed=!0),g.applyGrouping(!!y.hasExtremesChanged)})}function E(){for(var y,h,u=this.series,g=u.length,d=0,v=!1;g--;)(h=u[g].options.dataGrouping)&&(d=Math.max(d,U(h.groupPixelWidth,W.common.groupPixelWidth)),y=(u[g].processedXData||u[g].data).length,(u[g].groupPixelWidth||y>this.chart.plotSizeX/d||y&&h.forced)&&(v=!0));return v?d:0}function M(){this.series.forEach(function(y){y.hasProcessed=!1})}function k(y,h){var u;if(h=U(h,!0),y||(y={forced:!1,units:null}),this instanceof H)for(u=this.series.length;u--;)this.series[u].update({dataGrouping:y},!1);else this.chart.options.series.forEach(function(g){g.dataGrouping=typeof y=="boolean"?y:Z(y,g.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),h&&this.chart.redraw()}return{compose:function(y){H=y,z.indexOf(y)===-1&&(z.push(y),V(y,"afterSetScale",M),V(y,"postProcessData",I),$(y.prototype,{applyGrouping:I,getGroupPixelWidth:E,setDataGrouping:k}))}}}),et(B,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Core/Axis/DateTimeAxis.js"],B["Core/Defaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=$.series.prototype,z=Z.addEvent,I=Z.defined,E=Z.error,M=Z.extend,k=Z.isNumber,y=Z.merge,h=Z.pick,u=U.generatePoints,g=[];function d(f){var r,a,t=this,i=t.chart,o=t.options.dataGrouping,e=t.allowDG!==!1&&o&&h(o.enabled,i.options.isStock),s=t.visible||!i.options.chart.ignoreHiddenSeries,n=this.currentDataGrouping,l=!1;e&&!t.requireSorting&&(t.requireSorting=l=!0);var b=function(lt,gt){return!(lt.isCartesian&&!lt.isDirty&&!lt.xAxis.isDirty&&!lt.yAxis.isDirty&&!gt)}(t,f)===!1||!e;if(l&&(t.requireSorting=!1),!b){t.destroyGroupedData();var T=o.groupAll?t.xData:t.processedXData,D=o.groupAll?t.yData:t.processedYData,p=i.plotSizeX,x=t.xAxis,A=x.options.ordinal,N=t.groupPixelWidth,_=void 0,L=void 0;if(N&&T&&T.length&&p){L=!0,t.isDirty=!0,t.points=null;var O=x.getExtremes(),j=O.min,Y=O.max,X=N*(Y-j)/p*(A&&x.ordinal&&x.ordinal.getGroupIntervalFactor(j,Y,t)||1),G=x.getTimeTicks(H.Additions.prototype.normalizeTimeTickInterval(X,o.units||R.units),Math.min(j,T[0]),Math.max(Y,T[T.length-1]),x.options.startOfWeek,T,t.closestPointRange),q=U.groupData.apply(t,[T,D,G,o.approximation]),Q=q.groupedXData,J=q.groupedYData,rt=0;for(o&&o.smoothed&&Q.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,ht=lt.currentDataGrouping&<.currentDataGrouping.gapSize;if(yt&<.xData&&ht&<.groupMap){var it=gt.length-1,st=yt.anchor,dt=h(yt.firstAnchor,st),vt=h(yt.lastAnchor,st);if(st&&st!=="start"){var Ct=ht*{middle:.5,end:1}[st];for(bt=gt.length-1;bt--&&bt>0;)gt[bt]+=Ct}if(dt&&dt!=="start"&<.xData[0]>=gt[0]){var xt=lt.groupMap[0].start,wt=lt.groupMap[0].length,Mt=void 0;k(xt)&&k(wt)&&(Mt=xt+(wt-1)),gt[0]={middle:gt[0]+.5*ht,end:gt[0]+ht,firstPoint:lt.xData[0],lastPoint:Mt&<.xData[Mt]}[dt]}if(vt&&vt!=="start"&&ht&>[it]>=mt-ht){var St=lt.groupMap[lt.groupMap.length-1].start;gt[it]={middle:gt[it]+.5*ht,end:gt[it]+ht,firstPoint:St&<.xData[St],lastPoint:lt.xData[lt.xData.length-1]}[vt]}}}(t,Q,Y),_=1;_<G.length;_++)G.info.segmentStarts&&G.info.segmentStarts.indexOf(_)!==-1||(rt=Math.max(G[_]-G[_-1],rt));(r=G.info).gapSize=rt,t.closestPointRange=G.info.totalRange,t.groupMap=q.groupMap,s&&function(lt,gt){I(gt[0])&&k(lt.min)&&k(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])&&k(lt.max)&&k(lt.dataMax)&>[gt.length-1]>lt.max&&((!I(lt.options.max)&&k(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,Q),o.groupAll&&(t.allGroupedData=J,Q=(a=t.cropData(Q,J,x.min,x.max,1)).xData,J=a.yData,t.cropStart=a.start),t.processedXData=Q,t.processedYData=J}else t.groupMap=null;t.hasGroupedData=L,t.currentDataGrouping=r,t.preventGraphAnimation=(n&&n.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(){u.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function S(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function C(f,r,a,t){var i,o,e,s=this,n=s.data,l=s.options&&s.options.data,b=[],T=[],D=[],p=f.length,x=!!r,A=[],N=s.pointArrayMap,_=N&&N.length,L=["x"].concat(N||["y"]),O=this.options.dataGrouping&&this.options.dataGrouping.groupAll,j=0,Y=0,X=typeof t=="function"?t:t&&W[t]?W[t]:W[s.getDGApproximation&&s.getDGApproximation()||"average"];if(_)for(var G=N.length;G--;)A.push([]);else A.push([]);for(var q=_||1,Q=0;Q<=p;Q++)if(!(f[Q]<a[0])){for(;a[j+1]!==void 0&&f[Q]>=a[j+1]||Q===p;){i=a[j],s.dataGroupInfo={start:O?Y:s.cropStart+Y,length:A[0].length},e=X.apply(s,A),s.pointClass&&!I(s.dataGroupInfo.options)&&(s.dataGroupInfo.options=y(s.pointClass.prototype.optionsToObject.call({series:s},s.options.data[s.cropStart+Y])),L.forEach(function(mt){delete s.dataGroupInfo.options[mt]})),e!==void 0&&(b.push(i),T.push(e),D.push(s.dataGroupInfo)),Y=Q;for(var J=0;J<q;J++)A[J].length=0,A[J].hasNulls=!1;if(j+=1,Q===p)break}if(Q===p)break;if(N){var rt=s.options.dataGrouping&&s.options.dataGrouping.groupAll?Q:s.cropStart+Q,lt=n&&n[rt]||s.pointClass.prototype.applyOptions.apply({series:s},[l[rt]]),gt=void 0;for(J=0;J<_;J++)gt=lt[N[J]],k(gt)?A[J].push(gt):gt===null&&(A[J].hasNulls=!0)}else o=x?r[Q]:null,k(o)?A[0].push(o):o===null&&(A[0].hasNulls=!0)}return{groupedXData:b,groupedYData:T,groupMap:D}}function c(f){var r=f.options,a=this.type,t=this.chart.options.plotOptions,i=this.useCommonDataGrouping&&R.common,o=R.seriesSpecific,e=V.defaultOptions.plotOptions[a].dataGrouping;if(t&&(o[a]||i)){var s=this.chart.rangeSelector;e||(e=y(R.common,o[a])),r.dataGrouping=y(i,e,t.series&&t.series.dataGrouping,t[a].dataGrouping,this.userOptions.dataGrouping,!r.isInternal&&s&&k(s.selected)&&s.buttonOptions[s.selected].dataGrouping)}}return{compose:function(f){var r=f.prototype.pointClass;g.indexOf(r)===-1&&(g.push(r),z(r,"update",function(){if(this.dataGroup)return E(24,!1,this.series.chart),!1})),g.indexOf(f)===-1&&(g.push(f),z(f,"afterSetOptions",c),z(f,"destroy",v),M(f.prototype,{applyGrouping:d,destroyGroupedData:v,generatePoints:w,getDGApproximation:S,groupData:C}))},groupData:C}}),et(B,"Extensions/DataGrouping/DataGrouping.js",[B["Extensions/DataGrouping/DataGroupingAxisComposition.js"],B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=V.format,U=$.addEvent,z=$.extend,I=$.isNumber,E=[];function M(k){var y,h,u,g,d,v=this.chart,w=v.time,S=k.labelConfig,C=S.series,c=C.options,f=C.tooltipOptions,r=c.dataGrouping,a=C.xAxis,t=f.xDateFormat,i=f[k.isFooter?"footerFormat":"headerFormat"];a&&a.options.type==="datetime"&&r&&I(S.key)&&(h=C.currentDataGrouping,u=r.dateTimeLabelFormats||R.common.dateTimeLabelFormats,h?(g=u[h.unitName],h.count===1?t=g[0]:(t=g[1],y=g[2])):!t&&u&&a.dateTime&&(t=a.dateTime.getXDateFormat(S.x,f.dateTimeLabelFormats)),d=w.dateFormat(t,S.key),y&&(d+=w.dateFormat(y,S.key+h.totalRange-1)),C.chart.styledMode&&(i=this.styledModeFormat(i)),k.text=Z(i,{point:z(S.point,{key:d}),series:C},v),k.preventDefault())}return{compose:function(k,y,h){W.compose(k),H.compose(y),E.indexOf(h)===-1&&(E.push(h),U(h,"headerFormatter",M))},groupData:H.groupData}}),et(B,"masters/modules/datagrouping.src.js",[B["Core/Globals.js"],B["Extensions/DataGrouping/ApproximationDefaults.js"],B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Extensions/DataGrouping/DataGrouping.js"]],function(W,R,H,V){var $=W;$.dataGrouping={approximationDefaults:R,approximations:H},V.compose($.Axis,$.Series,$.Tooltip)}),et(B,"Series/DataModifyComposition.js",[B["Core/Axis/Axis.js"],B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.prototype.tooltipFormatter,U=V.addEvent,z=V.arrayMax,I=V.arrayMin,E=V.correctFloat,M=V.defined,k=V.isArray,y=V.isNumber,h=V.isString,u=V.pick;return function(g){var d=[];function v(o,e,s){this.isXAxis||(this.series.forEach(function(n){o==="compare"&&typeof e!="boolean"?n.setCompare(e,!1):o!=="cumulative"||h(e)||n.setCumulative(e,!1)}),u(s,!0)&&this.chart.redraw())}function w(o){var e=this,s=e.series.chart.numberFormatter,n=function(l){o=o.replace("{point."+l+"}",(e[l]>0&&l==="change"?"+":"")+s(e[l],u(e.series.tooltipOptions.changeDecimals,2)))};return M(e.change)&&n("change"),M(e.cumulativeSum)&&n("cumulativeSum"),Z.apply(this,[o])}function S(){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,s=e.activeYData;if(this.dataModify&&e){var n=void 0;this.options.compare?n=[this.dataModify.modifyValue(e.dataMin),this.dataModify.modifyValue(e.dataMax)]:this.options.cumulative&&k(s)&&s.length>=2&&(n=i.getCumulativeExtremes(s)),n&&(e.dataMin=I(n),e.dataMax=z(n))}}function c(o,e){this.options.compare=this.userOptions.compare=o,this.update({},u(e,!0)),!this.dataModify||o!=="value"&&o!=="percent"?this.points.forEach(function(s){delete s.change}):this.dataModify.initCompare(o)}function f(){var o=this;if(o.xAxis&&o.processedYData&&o.dataModify){var e=o.processedXData,s=o.processedYData,n=s.length,l=o.options.compareStart===!0?0:1,b=-1,T=void 0;for(o.pointArrayMap&&(b=o.pointArrayMap.indexOf(o.options.pointValKey||o.pointValKey||"y")),T=0;T<n-l;T++){var D=s[T]&&b>-1?s[T][b]:s[T];if(y(D)&&D!==0&&e[T+l]>=(o.xAxis.min||0)){o.dataModify.compareValue=D;break}}}}function r(o,e){this.setModifier("compare",o,e)}function a(o,e){o=u(o,!1),this.options.cumulative=this.userOptions.cumulative=o,this.update({},u(e,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(s){delete s.cumulativeSum})}function t(o,e){this.setModifier("cumulative",o,e)}g.compose=function(o,e,s){if(d.indexOf(o)===-1){d.push(o);var n=o.prototype;n.setCompare=c,n.setCumulative=a,U(o,"afterInit",S),U(o,"afterGetExtremes",C),U(o,"afterProcessData",f)}if(d.indexOf(e)===-1){d.push(e);var l=e.prototype;l.setCompare=r,l.setModifier=v,l.setCumulative=t}return d.indexOf(s)===-1&&(d.push(s),s.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 s=1/0,n=-1/0;return e.reduce(function(l,b){var T=l+b;return s=Math.min(s,T,l),n=Math.max(n,T,l),T}),[s,n]},o.prototype.initCompare=function(e){this.modifyValue=function(s,n){s===null&&(s=0);var l=this.compareValue;if(s!==void 0&&l!==void 0){if(e==="value"?s-=l:s=s/l*100-(this.series.options.compareBase===100?0:100),n!==void 0){var b=this.series.points[n];b&&(b.change=s)}return s}return 0}},o.prototype.initCumulative=function(){this.modifyValue=function(e,s){if(e===null&&(e=0),e!==void 0&&s!==void 0){var n=s>0?this.series.points[s-1]:null;n&&n.cumulativeSum&&(e=E(n.cumulativeSum+e));var l=this.series.points[s];return l&&(l.cumulativeSum=e),e}return 0}},o}();g.Additions=i}($||($={})),$}),et(B,"Core/Axis/NavigatorAxisComposition.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.isTouchDevice,V=R.addEvent,$=R.correctFloat,Z=R.defined,U=R.isNumber,z=R.pick,I=[];function E(){var y=this;y.navigatorAxis||(y.navigatorAxis=new k(y))}function M(y){var h=this,u=h.chart.options,g=u.navigator,d=h.navigatorAxis,v=u.chart.zooming.pinchType,w=u.rangeSelector,S=u.chart.zooming.type;if(h.isXAxis&&(g&&g.enabled||w&&w.enabled)){if(S==="y")y.zoomed=!1;else if((!H&&S==="xy"||H&&v==="xy")&&h.options.range){var C=d.previousZoom;Z(y.newMin)?d.previousZoom=[h.min,h.max]:C&&(y.newMin=C[0],y.newMax=C[1],d.previousZoom=void 0)}}y.zoomed!==void 0&&y.preventDefault()}var k=function(){function y(h){this.axis=h}return y.compose=function(h){I.indexOf(h)===-1&&(I.push(h),h.keepProps.push("navigatorAxis"),V(h,"init",E),V(h,"zoom",M))},y.prototype.destroy=function(){this.axis=void 0},y.prototype.toFixedRange=function(h,u,g,d){var v=this.axis,w=v.chart,S=z(g,v.translate(h,!0,!v.horiz)),C=z(d,v.translate(u,!0,!v.horiz)),c=w&&w.fixedRange,f=(v.pointRange||0)/2,r=c&&(C-S)/c;return Z(g)||(S=$(S+f)),Z(d)||(C=$(C-f)),r>.7&&r<1.3&&(d?S=C-c:C=S+c),U(S)&&U(C)||(S=C=void 0),{min:S,max:C}},y}();return k}),et(B,"Stock/Navigator/NavigatorDefaults.js",[B["Core/Color/Color.js"],B["Core/Series/SeriesRegistry.js"]],function(W,R){var H=W.parse,V=R.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:V.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(B,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(W,R,H,V,$){$===void 0&&($={});var Z=$.width?$.width/2:H,U=Math.round(Z/3)+.5;return[["M",-Z-1,.5],["L",Z,.5],["L",Z,(V=$.height||V)+.5],["L",-Z-1,V+.5],["L",-Z-1,.5],["M",-U,4],["L",-U,V-3],["M",U-1,4],["L",U-1,V-3]]}}}),et(B,"Stock/Navigator/NavigatorComposition.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/NavigatorAxisComposition.js"],B["Stock/Navigator/NavigatorDefaults.js"],B["Stock/Navigator/NavigatorSymbols.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z,I=W.defaultOptions,E=W.setOptions,M=R.isTouchDevice,k=Z.getRendererType,y=U.addEvent,h=U.extend,u=U.merge,g=U.pick,d=[];function v(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function w(){var t,i,o,e,s=this.legend,n=this.navigator;n&&(i=s&&s.options,o=n.xAxis,e=n.yAxis,t=n.scrollbarHeight,this.inverted?(n.left=n.opposite?this.chartWidth-t-n.height:this.spacing[3]+t,n.top=this.plotTop+t):(n.left=g(o.left,this.plotLeft+t),n.top=n.navigatorOptions.top||this.chartHeight-n.height-t-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&i.verticalAlign==="bottom"&&i.layout!=="proximate"&&i.enabled&&!i.floating?s.legendHeight+g(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&e&&(this.inverted?o.options.left=e.options.left=n.left:o.options.top=e.options.top=n.top,o.setAxisSize(),e.setAxisSize()))}function S(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new z(this),g(t.redraw,!0)&&this.redraw(t.animation))}function C(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new z(this))}function c(){var t=this.options,i=t.navigator,o=t.rangeSelector;if((i&&i.enabled||o&&o.enabled)&&(!M&&t.chart.zooming.type==="x"||M&&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||(u(!0,this.options.navigator,i),u(!0,this.options.scrollbar,o),delete t.options.navigator,delete t.options.scrollbar)}function a(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(t,i,o,e){H.compose(t),z=o,d.indexOf(i)===-1&&(d.push(i),i.prototype.callbacks.push(f),y(i,"afterAddSeries",v),y(i,"afterSetChartSize",w),y(i,"afterUpdate",S),y(i,"beforeRender",C),y(i,"beforeShowResetZoom",c),y(i,"update",r)),d.indexOf(e)===-1&&(d.push(e),y(e,"afterUpdate",a)),d.indexOf(k)===-1&&(d.push(k),h(k().prototype.symbols,$)),d.indexOf(E)===-1&&(d.push(E),h(I,{navigator:V}))}}}),et(B,"Core/Axis/ScrollbarAxis.js",[B["Core/Utilities.js"]],function(W){var R=W.addEvent,H=W.defined,V=W.pick;return function(){function $(){}return $.compose=function(Z,U){if($.composed.indexOf(Z)!==-1)return Z;$.composed.push(Z);var z=function(I){var E=V(I.options&&I.options.min,I.min),M=V(I.options&&I.options.max,I.max);return{axisMin:E,axisMax:M,scrollMin:H(I.dataMin)?Math.min(E,I.min,I.dataMin,V(I.threshold,1/0)):E,scrollMax:H(I.dataMax)?Math.max(M,I.max,I.dataMax,V(I.threshold,-1/0)):M}};return R(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 U(I.chart.renderer,I.options.scrollbar,I.chart),R(I.scrollbar,"changed",function(E){var M,k,y=z(I),h=y.axisMin,u=y.axisMax,g=y.scrollMin,d=y.scrollMax-g;H(h)&&H(u)&&(I.horiz&&!I.reversed||!I.horiz&&I.reversed?(M=g+d*this.to,k=g+d*this.from):(M=g+d*(1-this.from),k=g+d*(1-this.to)),this.shouldUpdateExtremes(E.DOMType)?I.setExtremes(k,M,!0,E.DOMType!=="mousemove"&&E.DOMType!=="touchmove",E):this.setRange(this.from,this.to))}))}),R(Z,"afterRender",function(){var I,E,M,k=this,y=z(k),h=y.scrollMin,u=y.scrollMax,g=k.scrollbar,d=k.axisTitleMargin+(k.titleOffset||0),v=k.chart.scrollbarsOffsets,w=k.options.margin||0;if(g){if(k.horiz)k.opposite||(v[1]+=d),g.position(k.left,k.top+k.height+2+v[1]-(k.opposite?w:0),k.width,k.height),k.opposite||(v[1]+=w),I=1;else{k.opposite&&(v[0]+=d);var S;S=g.options.opposite?k.left+k.width+2+v[0]-(k.opposite?0:w):k.opposite?0:w,g.position(S,k.top,k.width,k.height),k.opposite&&(v[0]+=w),I=0}v[I]+=g.size+g.options.margin,isNaN(h)||isNaN(u)||!H(k.min)||!H(k.max)||k.min===k.max?g.setRange(0,1):(E=(k.min-h)/(u-h),M=(k.max-h)/(u-h),k.horiz&&!k.reversed||!k.horiz&&k.reversed?g.setRange(E,M):g.setRange(1-M,1-E))}}),R(Z,"afterGetOffset",function(){var I=this,E=I.scrollbar&&!I.scrollbar.options.opposite,M=I.horiz?2:E?3:1,k=I.scrollbar;k&&(I.chart.scrollbarsOffsets=[0,0],I.chart.axisOffset[M]+=k.size+k.options.margin)}),Z},$.composed=[],$}()}),et(B,"Stock/Scrollbar/ScrollbarDefaults.js",[B["Core/Globals.js"]],function(W){return{height:W.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(B,"Stock/Scrollbar/Scrollbar.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/ScrollbarAxis.js"],B["Stock/Scrollbar/ScrollbarDefaults.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=W.defaultOptions,U=$.addEvent,z=$.correctFloat,I=$.defined,E=$.destroyObjectProperties,M=$.fireEvent,k=$.merge,y=$.pick,h=$.removeEvent,u=function(){function g(d,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(d,v,w)}return g.compose=function(d){H.compose(d,g)},g.swapXY=function(d,v){return v&&d.forEach(function(w){for(var S,C=w.length,c=0;c<C;c+=2)typeof(S=w[c+1])=="number"&&(w[c+1]=w[c+2],w[c+2]=S)}),d},g.prototype.addEvents=function(){var d=this.options.inverted?[1,0]:[0,1],v=this.scrollbarButtons,w=this.scrollbarGroup.element,S=this.track.element,C=this.mouseDownHandler.bind(this),c=this.mouseMoveHandler.bind(this),f=this.mouseUpHandler.bind(this),r=[[v[d[0]].element,"click",this.buttonToMinClick.bind(this)],[v[d[1]].element,"click",this.buttonToMaxClick.bind(this)],[S,"click",this.trackClick.bind(this)],[w,"mousedown",C],[w.ownerDocument,"mousemove",c],[w.ownerDocument,"mouseup",f]];R.hasTouch&&r.push([w,"touchstart",C],[w.ownerDocument,"touchmove",c],[w.ownerDocument,"touchend",f]),r.forEach(function(a){U.apply(null,a)}),this._events=r},g.prototype.buttonToMaxClick=function(d){var v=this,w=(v.to-v.from)*y(v.options.step,.2);v.updatePosition(v.from+w,v.to+w),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:d})},g.prototype.buttonToMinClick=function(d){var v=this,w=z(v.to-v.from)*y(v.options.step,.2);v.updatePosition(z(v.from-w),z(v.to-w)),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:d})},g.prototype.cursorToScrollbarPosition=function(d){var v=this,w=v.options,S=w.minWidth>v.calculatedWidth?w.minWidth:0;return{chartX:(d.chartX-v.x-v.xOffset)/(v.barWidth-S),chartY:(d.chartY-v.y-v.yOffset)/(v.barWidth-S)}},g.prototype.destroy=function(){var d=this,v=d.chart.scroller;d.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(w){d[w]&&d[w].destroy&&(d[w]=d[w].destroy())}),v&&d===v.scrollbar&&(v.scrollbar=null,E(v.scrollbarButtons))},g.prototype.drawScrollbarButton=function(d){var v,w=this,S=w.renderer,C=w.scrollbarButtons,c=w.options,f=w.size,r=S.g().add(w.group);C.push(r),v=S.rect().addClass("highcharts-scrollbar-button").add(r),w.chart.styledMode||v.attr({stroke:c.buttonBorderColor,"stroke-width":c.buttonBorderWidth,fill:c.buttonBackgroundColor}),v.attr(v.crisp({x:-.5,y:-.5,width:f+1,height:f+1,r:c.buttonBorderRadius},v.strokeWidth())),v=S.path(g.swapXY([["M",f/2+(d?-1:1),f/2-3],["L",f/2+(d?-1:1),f/2+3],["L",f/2+(d?2:-2),f/2]],c.vertical)).addClass("highcharts-scrollbar-arrow").add(C[d]),w.chart.styledMode||v.attr({fill:c.buttonArrowColor})},g.prototype.init=function(d,v,w){var S=this;S.scrollbarButtons=[],S.renderer=d,S.userOptions=v,S.options=k(V,Z.scrollbar,v),S.chart=w,S.size=y(S.options.size,S.options.height),v.enabled&&(S.render(),S.addEvents())},g.prototype.mouseDownHandler=function(d){var v=this,w=v.chart.pointer.normalize(d),S=v.cursorToScrollbarPosition(w);v.chartX=S.chartX,v.chartY=S.chartY,v.initPositions=[v.from,v.to],v.grabbedCenter=!0},g.prototype.mouseMoveHandler=function(d){var v,w=this,S=w.chart.pointer.normalize(d),C=w.options.vertical?"chartY":"chartX",c=w.initPositions||[];!w.grabbedCenter||d.touches&&d.touches[0][C]===0||(v=w.cursorToScrollbarPosition(S)[C]-w[C],w.hasDragged=!0,w.updatePosition(c[0]+v,c[1]+v),w.hasDragged&&M(w,"changed",{from:w.from,to:w.to,trigger:"scrollbar",DOMType:d.type,DOMEvent:d}))},g.prototype.mouseUpHandler=function(d){var v=this;v.hasDragged&&M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMType:d.type,DOMEvent:d}),v.grabbedCenter=v.hasDragged=v.chartX=v.chartY=null},g.prototype.position=function(d,v,w,S){var C=this,c=C.options.vertical,f=C.rendered?"animate":"attr",r=S,a=0;C.group.show(),C.x=d,C.y=v+this.trackBorderWidth,C.width=w,C.height=S,C.xOffset=r,C.yOffset=a,c?(C.width=C.yOffset=w=a=C.size,C.xOffset=r=0,C.barWidth=S-2*w,C.x=d+=C.options.margin):(C.height=C.xOffset=S=r=C.size,C.barWidth=w-2*S,C.y=C.y+C.options.margin),C.group[f]({translateX:d,translateY:C.y}),C.track[f]({width:w,height:S}),C.scrollbarButtons[1][f]({translateX:c?0:w-r,translateY:c?S-a:0})},g.prototype.removeEvents=function(){this._events.forEach(function(d){h.apply(null,d)}),this._events.length=0},g.prototype.render=function(){var d=this,v=d.renderer,w=d.options,S=d.size,C=d.chart.styledMode,c=v.g("scrollbar").attr({zIndex:w.zIndex}).hide().add();d.group=c,d.track=v.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:w.trackBorderRadius||0,height:S,width:S}).add(c),C||d.track.attr({fill:w.trackBackgroundColor,stroke:w.trackBorderColor,"stroke-width":w.trackBorderWidth}),d.trackBorderWidth=d.track.strokeWidth(),d.track.attr({y:-this.trackBorderWidth%2/2}),d.scrollbarGroup=v.g().add(c),d.scrollbar=v.rect().addClass("highcharts-scrollbar-thumb").attr({height:S,width:S,r:w.barBorderRadius||0}).add(d.scrollbarGroup),d.scrollbarRifles=v.path(g.swapXY([["M",-3,S/4],["L",-3,2*S/3],["M",0,S/4],["L",0,2*S/3],["M",3,S/4],["L",3,2*S/3]],w.vertical)).addClass("highcharts-scrollbar-rifles").add(d.scrollbarGroup),C||(d.scrollbar.attr({fill:w.barBackgroundColor,stroke:w.barBorderColor,"stroke-width":w.barBorderWidth}),d.scrollbarRifles.attr({stroke:w.rifleColor,"stroke-width":1})),d.scrollbarStrokeWidth=d.scrollbar.strokeWidth(),d.scrollbarGroup.translate(-d.scrollbarStrokeWidth%2/2,-d.scrollbarStrokeWidth%2/2),d.drawScrollbarButton(0),d.drawScrollbarButton(1)},g.prototype.setRange=function(d,v){var w=this,S=w.options,C=S.vertical,c=S.minWidth,f=w.barWidth,r=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(I(f)){var a,t,i=f*Math.min(v,1);d=Math.max(d,0),a=Math.ceil(f*d),w.calculatedWidth=t=z(i-a),t<c&&(a=(f-c+t)*d,t=c);var o=Math.floor(a+w.xOffset+w.yOffset),e=t/2-.5;w.from=d,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(),S.showFull===!1&&(d<=0&&v>=1?w.group.hide():w.group.show()),w.rendered=!0}},g.prototype.shouldUpdateExtremes=function(d){return y(this.options.liveRedraw,R.svg&&!R.isTouchDevice&&!this.chart.boosted)||d==="mouseup"||d==="touchend"||!I(d)},g.prototype.trackClick=function(d){var v=this,w=v.chart.pointer.normalize(d),S=v.to-v.from,C=v.y+v.scrollbarTop,c=v.x+v.scrollbarLeft;v.options.vertical&&w.chartY>C||!v.options.vertical&&w.chartX>c?v.updatePosition(v.from+S,v.to+S):v.updatePosition(v.from-S,v.to-S),M(v,"changed",{from:v.from,to:v.to,trigger:"scrollbar",DOMEvent:d})},g.prototype.update=function(d){this.destroy(),this.init(this.chart.renderer,k(!0,this.options,d),this.chart)},g.prototype.updatePosition=function(d,v){v>1&&(d=z(1-z(v-d)),v=1),d<0&&(v=z(v-d),d=0),this.from=d,this.to=v},g.defaultOptions=V,g}();return Z.scrollbar=k(!0,u.defaultOptions,Z.scrollbar),u}),et(B,"Stock/Navigator/Navigator.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/NavigatorAxisComposition.js"],B["Stock/Navigator/NavigatorComposition.js"],B["Stock/Scrollbar/Scrollbar.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z=R.defaultOptions,I=H.hasTouch,E=H.isTouchDevice,M=U.addEvent,k=U.clamp,y=U.correctFloat,h=U.defined,u=U.destroyObjectProperties,g=U.erase,d=U.extend,v=U.find,w=U.isArray,S=U.isNumber,C=U.merge,c=U.pick,f=U.removeEvent,r=U.splat;function a(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var e=[].filter.call(i,S);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,s){var n=this,l=n.navigatorOptions.handles.height;n.handles[o][s](e?{translateX:Math.round(n.left+n.height/2),translateY:Math.round(n.top+parseInt(i,10)+.5-l)}:{translateX:Math.round(n.left+parseInt(i,10)),translateY:Math.round(n.top+n.height/2-l/2-1)})},t.prototype.drawOutline=function(i,o,e,s){var n,l,b=this,T=b.navigatorOptions.maskInside,D=b.outline.strokeWidth(),p=D/2,x=D%2/2,A=b.outlineHeight,N=b.scrollbarHeight||0,_=b.size,L=b.left-N,O=b.top;e?(l=[["M",(L-=p)+A,O-N-x],["L",L+A,n=O+o+x],["L",L,n],["L",L,o=O+i+x],["L",L+A,o],["L",L+A,O+_+N]],T&&l.push(["M",L+A,n-p],["L",L+A,o+p])):(l=[["M",L,O+=p],["L",i+=L+N-x,O],["L",i,O+A],["L",o+=L+N-x,O+A],["L",o,O],["L",L+_+2*N,O]],T&&l.push(["M",i-p,O],["L",o+p,O])),b.outline[s]({d:l})},t.prototype.drawMasks=function(i,o,e,s){var n,l,b,T,D=this,p=D.left,x=D.top,A=D.height;e?(b=[p,p,p],T=[x,x+i,x+o],l=[A,A,A],n=[i,o-i,D.size-o]):(b=[p,p+i,p+o],T=[x,x,x],l=[i,o-i,D.size-o],n=[A,A,A]),D.shades.forEach(function(N,_){N[s]({x:b[_],y:T[_],width:l[_],height:n[_]})})},t.prototype.renderElements=function(){var i=this,o=i.navigatorOptions,e=o.maskInside,s=i.chart,n=s.inverted,l=s.renderer,b={cursor:n?"ns-resize":"ew-resize"},T=i.navigatorGroup=l.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!e,e,!e].forEach(function(A,N){var _=l.rect().addClass("highcharts-navigator-mask"+(N===1?"-inside":"-outside")).add(T);s.styledMode||(_.attr({fill:A?o.maskFill:"rgba(0,0,0,0)"}),N===1&&_.css(b)),i.shades[N]=_}),i.outline=l.path().addClass("highcharts-navigator-outline").add(T),s.styledMode||i.outline.attr({"stroke-width":o.outlineWidth,stroke:o.outlineColor}),o.handles&&o.handles.enabled){var D=o.handles,p=D.height,x=D.width;[0,1].forEach(function(A){i.handles[A]=l.symbol(D.symbols[A],-x/2-1,0,x,p,D),s.inverted&&i.handles[A].attr({rotation:90,rotationOriginX:Math.floor(-x/2),rotationOriginY:(p+x)/2}),i.handles[A].attr({zIndex:7-A}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][A]).add(T),s.styledMode||i.handles[A].attr({fill:D.backgroundColor,stroke:D.borderColor,"stroke-width":D.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,s){var n,l,b,T,D,p=this,x=p.chart,A=p.xAxis,N=A.pointRange||0,_=A.navigatorAxis.fake?x.xAxis[0]:A,L=p.navigatorEnabled,O=p.rendered,j=x.inverted,Y=x.xAxis[0].minRange,X=x.xAxis[0].options.maxRange,G=p.scrollbarHeight;if(!this.hasDragged||h(e)){if(i=y(i-N/2),o=y(o+N/2),!S(i)||!S(o)){if(!O)return;e=0,s=c(A.width,_.width)}p.left=c(A.left,x.plotLeft+G+(j?x.plotWidth:0));var q=p.size=T=c(A.len,(j?x.plotHeight:x.plotWidth)-2*G);n=j?G:T+2*G,e=c(e,A.toPixels(i,!0)),s=c(s,A.toPixels(o,!0)),S(e)&&Math.abs(e)!==1/0||(e=0,s=n);var Q=A.toValue(e,!0),J=A.toValue(s,!0),rt=Math.abs(y(J-Q));rt<Y?this.grabbedLeft?e=A.toPixels(J-Y-N,!0):this.grabbedRight&&(s=A.toPixels(Q+Y+N,!0)):h(X)&&y(rt-N)>X&&(this.grabbedLeft?e=A.toPixels(J-X-N,!0):this.grabbedRight&&(s=A.toPixels(Q+X+N,!0))),p.zoomedMax=k(Math.max(e,s),0,q),p.zoomedMin=k(p.fixedWidth?p.zoomedMax-p.fixedWidth:Math.min(e,s),0,q),p.range=p.zoomedMax-p.zoomedMin,q=Math.round(p.zoomedMax);var lt=Math.round(p.zoomedMin);L&&(p.navigatorGroup.attr({visibility:"inherit"}),D=O&&!p.hasDragged?"animate":"attr",p.drawMasks(lt,q,j,D),p.drawOutline(lt,q,j,D),p.navigatorOptions.handles.enabled&&(p.drawHandle(lt,0,j,D),p.drawHandle(q,1,j,D))),p.scrollbar&&(j?(b=p.top-G,l=p.left-G+(L||!_.opposite?0:(_.titleOffset||0)+_.axisTitleMargin),G=T+2*G):(b=p.top+(L?p.height:-G),l=p.left-G),p.scrollbar.position(l,b,n,G),p.scrollbar.setRange(p.zoomedMin/(T||1),p.zoomedMax/(T||1))),p.rendered=!0}},t.prototype.addMouseEvents=function(){var i,o,e=this,s=e.chart,n=s.container,l=[];e.mouseMoveHandler=i=function(b){e.onMouseMove(b)},e.mouseUpHandler=o=function(b){e.onMouseUp(b)},(l=e.getPartsEvents("mousedown")).push(M(s.renderTo,"mousemove",i),M(n.ownerDocument,"mouseup",o)),I&&(l.push(M(s.renderTo,"touchmove",i),M(n.ownerDocument,"touchend",o)),l.concat(e.getPartsEvents("touchstart"))),e.eventsToUnbind=l,e.series&&e.series[0]&&l.push(M(e.series[0].xAxis,"foundExtremes",function(){s.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(i){var o=this,e=[];return["shades","handles"].forEach(function(s){o[s].forEach(function(n,l){e.push(M(n.element,i,function(b){o[s+"Mousedown"](b,l)}))})}),e},t.prototype.shadesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e,s,n,l,b=this,T=b.chart,D=b.xAxis,p=b.zoomedMin,x=b.size,A=b.range,N=b.left,_=i.chartX;T.inverted&&(_=i.chartY,N=b.top),o===1?(b.grabbedCenter=_,b.fixedWidth=A,b.dragOffset=_-p):(l=_-N-A/2,o===0?l=Math.max(0,l):o===2&&l+A>=x&&(l=x-A,b.reversedExtremes?(l-=A,s=b.getUnionExtremes().dataMin):e=b.getUnionExtremes().dataMax),l!==p&&(b.fixedWidth=A,n=D.navigatorAxis.toFixedRange(l,l+A,s,e),h(n.min)&&T.xAxis[0].setExtremes(Math.min(n.min,n.max),Math.max(n.min,n.max),!0,null,{trigger:"navigator"})))},t.prototype.handlesMousedown=function(i,o){i=this.chart.pointer.normalize(i);var e=this,s=e.chart,n=s.xAxis[0],l=e.reversedExtremes;o===0?(e.grabbedLeft=!0,e.otherHandlePos=e.zoomedMax,e.fixedExtreme=l?n.min:n.max):(e.grabbedRight=!0,e.otherHandlePos=e.zoomedMin,e.fixedExtreme=l?n.max:n.min),s.fixedRange=null},t.prototype.onMouseMove=function(i){var o,e=this,s=e.chart,n=e.navigatorSize,l=e.range,b=e.dragOffset,T=s.inverted,D=e.left;i.touches&&i.touches[0].pageX===0||(o=(i=s.pointer.normalize(i)).chartX,T&&(D=e.top,o=i.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,o-D,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,o-D)):e.grabbedCenter&&(e.hasDragged=!0,o<b?o=b:o>n+b-l&&(o=n+b-l),e.render(0,0,o-b,o-b+l)),e.hasDragged&&e.scrollbar&&c(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,s,n,l,b,T=this,D=T.chart,p=T.xAxis,x=T.scrollbar,A=i.DOMEvent||i,N=D.inverted,_=T.rendered&&!T.hasDragged?"animate":"attr";(!T.hasDragged||x&&x.hasDragged)&&i.trigger!=="scrollbar"||(s=T.getUnionExtremes(),T.zoomedMin===T.otherHandlePos?n=T.fixedExtreme:T.zoomedMax===T.otherHandlePos&&(l=T.fixedExtreme),T.zoomedMax===T.size&&(l=T.reversedExtremes?s.dataMin:s.dataMax),T.zoomedMin===0&&(n=T.reversedExtremes?s.dataMax:s.dataMin),b=p.navigatorAxis.toFixedRange(T.zoomedMin,T.zoomedMax,n,l),h(b.min)&&D.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,!T.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:A})),i.DOMType!=="mousemove"&&i.DOMType!=="touchmove"&&(T.grabbedLeft=T.grabbedRight=T.grabbedCenter=T.fixedWidth=T.fixedExtreme=T.otherHandlePos=T.hasDragged=T.dragOffset=null),T.navigatorEnabled&&S(T.zoomedMin)&&S(T.zoomedMax)&&(e=Math.round(T.zoomedMin),o=Math.round(T.zoomedMax),T.shades&&T.drawMasks(e,o,N,_),T.outline&&T.drawOutline(e,o,N,_),T.navigatorOptions.handles.enabled&&Object.keys(T.handles).length===T.handles.length&&(T.drawHandle(e,0,N,_),T.drawHandle(o,1,N,_)))},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||{},s=e.enabled,n=o.scrollbar||{},l=n.enabled,b=s&&e.height||0,T=l&&n.height||0;this.handles=[],this.shades=[],this.chart=i,this.setBaseSeries(),this.height=b,this.scrollbarHeight=T,this.scrollbarEnabled=l,this.navigatorEnabled=s,this.navigatorOptions=e,this.scrollbarOptions=n,this.outlineHeight=b+T,this.opposite=c(e.opposite,!!(!s&&i.inverted));var D=this,p=D.baseSeries,x=i.xAxis.length,A=i.yAxis.length,N=p&&p[0]&&p[0].xAxis||i.xAxis[0]||{options:{}};i.isDirtyBox=!0,D.navigatorEnabled?(D.xAxis=new W(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:[T,0,-T,0],width:b}:{offsets:[0,-T,0,T],height:b})),D.yAxis=new W(i,C(e.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:A,isInternal:!0,reversed:c(e.yAxis&&e.yAxis.reversed,i.yAxis[0]&&i.yAxis[0].reversed,!1),zoomEnabled:!1},i.inverted?{width:b}:{height:b})),p||e.series.data?D.updateNavigatorSeries(!1):i.series.length===0&&(D.unbindRedraw=M(i,"beforeRedraw",function(){i.series.length>0&&!D.series&&(D.setBaseSeries(),D.unbindRedraw())})),D.reversedExtremes=i.inverted&&!D.xAxis.reversed||!i.inverted&&D.xAxis.reversed,D.renderElements(),D.addMouseEvents()):(D.xAxis={chart:i,navigatorAxis:{fake:!0},translate:function(_,L){var O=i.xAxis[0],j=O.getExtremes(),Y=O.len-2*T,X=a("min",O.options.min,j.dataMin),G=a("max",O.options.max,j.dataMax)-X;return L?_*G/Y+X:Y*(_-X)/G},toPixels:function(_){return this.translate(_)},toValue:function(_){return this.translate(_,!0)}},D.xAxis.navigatorAxis.axis=D.xAxis,D.xAxis.navigatorAxis.toFixedRange=V.prototype.toFixedRange.bind(D.xAxis.navigatorAxis)),i.options.scrollbar.enabled&&(i.scrollbar=D.scrollbar=new Z(i.renderer,C(i.options.scrollbar,{margin:D.navigatorEnabled?0:10,vertical:i.inverted}),i),M(D.scrollbar,"changed",function(_){var L=D.size,O=L*this.to,j=L*this.from;D.hasDragged=D.scrollbar.hasDragged,D.render(0,0,j,O),this.shouldUpdateExtremes(_.DOMType)&&setTimeout(function(){D.onMouseUp(_)})})),D.addBaseSeriesEvents(),D.addChartEvents()},t.prototype.getUnionExtremes=function(i){var o,e=this.chart.xAxis[0],s=this.xAxis,n=s.options,l=e.options;return i&&e.dataMin===null||(o={dataMin:c(n&&n.min,a("min",l.min,e.dataMin,s.dataMin,s.min)),dataMax:c(n&&n.max,a("max",l.max,e.dataMax,s.dataMax,s.max))}),o},t.prototype.setBaseSeries=function(i,o){var e=this.chart,s=this.baseSeries=[];i=i||e.options&&e.options.navigator.baseSeries||(e.series.length?v(e.series,function(n){return!n.options.isInternal}).index:0),(e.series||[]).forEach(function(n,l){n.options.isInternal||!n.options.showInNavigator&&(l!==i&&n.options.id!==i||n.options.showInNavigator===!1)||s.push(n)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,o)},t.prototype.updateNavigatorSeries=function(i,o){var e,s,n,l=this,b=l.chart,T=l.baseSeries,D={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}}},p=l.series=(l.series||[]).filter(function(A){var N=A.baseSeries;return!(T.indexOf(N)<0&&(N&&(f(N,"updatedData",l.updatedDataHandler),delete N.navigatorSeries),A.chart&&A.destroy(),1))}),x=l.navigatorOptions.series;T&&T.length&&T.forEach(function(A){var N=A.navigatorSeries,_=d({color:A.color,visible:A.visible},w(x)?z.navigator.series:x);if(!N||l.navigatorOptions.adaptToUpdatedData!==!1){D.name="Navigator "+T.length,e=A.options||{},n=e.navigatorOptions||{},_.dataLabels=r(_.dataLabels),(s=C(e,D,_,n)).pointRange=c(_.pointRange,n.pointRange,z.plotOptions[s.type||"line"].pointRange);var L=n.data||_.data;l.hasNavigatorData=l.hasNavigatorData||!!L,s.data=L||e.data&&e.data.slice(0),N&&N.options?N.update(s,o):(A.navigatorSeries=b.initSeries(s),A.navigatorSeries.baseSeries=A,p.push(A.navigatorSeries))}}),(!x.data||T&&T.length)&&!w(x)||(l.hasNavigatorData=!1,(x=r(x)).forEach(function(A,N){D.name="Navigator "+(p.length+1),(s=C(z.navigator.series,{color:b.series[N]&&!b.series[N].options.isInternal&&b.series[N].color||b.options.colors[N]||b.options.colors[0]},D,A)).data=A.data,s.data&&(l.hasNavigatorData=!0,p.push(b.initSeries(s)))})),i&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var i=this,o=this,e=o.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(M(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(function(s){s.eventsToUnbind.push(M(s,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),s.eventsToUnbind.push(M(s,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),i.navigatorOptions.adaptToUpdatedData!==!1&&s.xAxis&&s.eventsToUnbind.push(M(s,"updatedData",i.updatedDataHandler)),s.eventsToUnbind.push(M(s,"remove",function(){this.navigatorSeries&&(g(o.series,this.navigatorSeries),h(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,s=e.chart.navigator,n=e.getExtremes(),l=n.min,b=n.max,T=n.dataMin,D=n.dataMax,p=b-l,x=s.stickToMin,A=s.stickToMax,N=c(e.options.overscroll,0),_=s.series&&s.series[0],L=!!e.setExtremes;e.eventArgs&&e.eventArgs.trigger==="rangeSelectorButton"||(x&&(i=(o=T)+p),A&&(i=D+N,x||(o=Math.max(T,i-p,s.getBaseSeriesMin(_&&_.xData?_.xData[0]:-Number.MAX_VALUE)))),L&&(x||A)&&S(o)&&(e.min=e.userMin=o,e.max=e.userMax=i)),s.stickToMin=s.stickToMax=null},t.prototype.updatedDataHandler=function(){var i=this.chart.navigator,o=this,e=this.navigatorSeries,s=i.reversedExtremes?Math.round(i.zoomedMin)===0:Math.round(i.zoomedMax)>=Math.round(i.size);i.stickToMax=c(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,s),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]),s=i.xAxis,n=s.max,l=s.min,b=s.options.range;return!(!S(n)||!S(l))&&(b&&n-e>0?n-e<b:l<=e)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(M(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)}),M(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&&(g(this.chart.xAxis,this.xAxis),g(this.chart.axes,this.xAxis)),this.yAxis&&(g(this.chart.yAxis,this.yAxis),g(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){u(o)})},t}()}),et(B,"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(B,"Stock/RangeSelector/RangeSelectorComposition.js",[B["Core/Defaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.defaultOptions,Z=W.setOptions,U=H.addEvent,z=H.defined,I=H.extend,E=H.find,M=H.isNumber,k=H.merge,y=H.pick,h=[],u=[];function g(){var r,a,t=this.range,i=t.type,o=this.max,e=this.chart.time,s=function(l,b){var T=i==="year"?"FullYear":"Month",D=new e.Date(l),p=e.get(T,D);return e.set(T,D,p+b),p===e.get(T,D)&&e.set("Date",D,0),D.getTime()-l};M(t)?(r=o-t,a=t):t&&(r=o+s(o,-(t.count||1)),this.chart&&(this.chart.fixedRange=o-r));var n=y(this.dataMin,Number.MIN_VALUE);return M(r)||(r=n),r<=n&&(r=n,a===void 0&&(a=s(r,t.count)),this.newMax=Math.min(r+a,y(this.dataMax,Number.MAX_VALUE))),M(o)?!M(t)&&t&&t._offsetMin&&(r+=t._offsetMin):r=void 0,r}function d(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new V(this))}function v(){var r=this,a=r.axes,t=r.rangeSelector;if(t){M(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),a.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 a,t,i,o,e=r.rangeSelector,s=function(){e&&(a=r.xAxis[0].getExtremes(),t=r.legend,o=e&&e.options.verticalAlign,M(a.min)&&e.render(a.min,a.max),t.display&&o==="top"&&o===t.options.verticalAlign&&(i=k(r.spacingBox),t.options.layout==="vertical"?i.y=r.plotTop:i.y+=e.getHeight(),t.group.placed=!1,t.align(i)))};e&&(E(h,function(n){return n[0]===r})||h.push([r,[U(r.xAxis[0],"afterSetExtremes",function(n){e&&e.render(n.min,n.max)}),U(r,"redraw",s)]]),s())}function S(){for(var r=0,a=h.length;r<a;++r){var t=h[r];if(t[0]===this)return t[1].forEach(function(i){return i()}),void h.splice(r,1)}}function C(){var r=this.rangeSelector;if(r){var a=r.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function c(){var r=this.rangeSelector;if(r&&!r.options.floating){r.render();var a=r.options.verticalAlign;a==="bottom"?this.extraBottomMargin=!0:a!=="middle"&&(this.extraTopMargin=!0)}}function f(r){var a=r.options.rangeSelector,t=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(a&&a.enabled&&!z(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new V(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){w(this);var e=a&&a.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,a,t){V=t,u.indexOf(r)===-1&&(u.push(r),r.prototype.minFromRange=g),u.indexOf(a)===-1&&(u.push(a),U(a,"afterGetContainer",d),U(a,"beforeRender",v),U(a,"destroy",S),U(a,"getMargins",C),U(a,"render",c),U(a,"update",f),a.prototype.callbacks.push(w)),u.indexOf(Z)===-1&&(I($,{rangeSelector:R.rangeSelector}),I($.lang,R.lang))}}}),et(B,"Stock/RangeSelector/RangeSelector.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Stock/RangeSelector/RangeSelectorComposition.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U=R.defaultOptions,z=Z.addEvent,I=Z.createElement,E=Z.css,M=Z.defined,k=Z.destroyObjectProperties,y=Z.discardElement,h=Z.extend,u=Z.fireEvent,g=Z.isNumber,d=Z.merge,v=Z.objectEach,w=Z.pad,S=Z.pick,C=Z.pInt,c=Z.splat,f=function(){function r(a){this.buttons=void 0,this.buttonOptions=r.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=a,this.init(a)}return r.compose=function(a,t){V.compose(a,t,r)},r.prototype.clickButton=function(a,t){var i,o,e,s,n,l,b,T=this,D=T.chart,p=T.buttonOptions[a],x=D.xAxis[0],A=D.scroller&&D.scroller.getUnionExtremes()||x||{},N=p.type,_=p.dataGrouping,L=A.dataMin,O=A.dataMax,j=x&&Math.round(Math.min(x.max,S(O,x.max))),Y=p._range,X=!0;if(L!==null&&O!==null){if(D.fixedRange=Y,T.setSelected(a),_&&(this.forcedDataGrouping=!0,W.prototype.setDataGrouping.call(x||{chart:this.chart},_,!1),this.frozenStates=p.preserveDataGrouping),N==="month"||N==="year")x?(l={range:p,max:j,chart:D,dataMin:L,dataMax:O},i=x.minFromRange.call(l),g(l.newMax)&&(j=l.newMax),X=!1):Y=p;else if(Y)i=Math.max(j-Y,L),j=Math.min(i+Y,O),X=!1;else if(N==="ytd"){if(!x)return void(T.deferredYTDClick=a);O!==void 0&&L!==void 0||(L=Number.MAX_VALUE,O=Number.MIN_VALUE,D.series.forEach(function(G){var q=G.xData;q&&(L=Math.min(q[0],L),O=Math.max(q[q.length-1],O))}),t=!1),i=e=(b=T.getYTDExtremes(O,L,D.time.useUTC)).min,j=b.max}else N==="all"&&x&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),i=L,j=O);X&&p._offsetMin&&M(i)&&(i+=p._offsetMin),p._offsetMax&&M(j)&&(j+=p._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=a+1),x?x.setExtremes(i,j,S(t,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:p}):(o=c(D.options.xAxis)[0],n=o.range,o.range=Y,s=o.min,o.min=e,z(D,"load",function(){o.range=n,o.min=s})),u(this,"afterBtnClick")}},r.prototype.setSelected=function(a){this.selected=this.options.selected=a},r.prototype.init=function(a){var t=this,i=a.options.rangeSelector,o=i.buttons||t.defaultButtons.slice(),e=i.selected,s=function(){var n=t.minInput,l=t.maxInput;n&&n.blur&&u(n,"blur"),l&&l.blur&&u(l,"blur")};t.chart=a,t.options=i,t.buttons=[],t.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(z(a.container,"mousedown",s)),this.eventsToUnbind.push(z(a,"resize",s)),o.forEach(t.computeButtonRange),e!==void 0&&o[e]&&this.clickButton(e,!1),this.eventsToUnbind.push(z(a,"load",function(){a.xAxis&&a.xAxis[0]&&z(a.xAxis[0],"setExtremes",function(n){this.max-this.min!==a.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)})}))},r.prototype.updateButtonStates=function(){var a=this,t=this.chart,i=this.dropdown,o=t.xAxis[0],e=Math.round(o.max-o.min),s=!o.hasVisibleSeries,n=864e5,l=t.scroller&&t.scroller.getUnionExtremes()||o,b=l.dataMin,T=l.dataMax,D=a.getYTDExtremes(T,b,t.time.useUTC),p=D.min,x=D.max,A=a.selected,N=a.options.allButtonsEnabled,_=a.buttons,L=g(A);a.buttonOptions.forEach(function(O,j){var Y=O._range,X=O.type,G=O.count||1,q=_[j],Q=O._offsetMax-O._offsetMin,J=j===A,rt=Y>T-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]*n*G-Q&&e-36e5<={month:31,year:366}[X]*n*G+Q?yt=!0:X==="ytd"?(yt=x-p+Q===e,mt=!J):X==="all"&&(yt=o.max-o.min>=T-b,bt=!J&&L&&yt);var ht=!N&&(rt||lt||bt||s),it=J&&yt||yt&&!L&&!mt||J&&a.frozenStates;ht?gt=3:it&&(L=!0,gt=2),q.state!==gt&&(q.setState(gt),i&&(i.options[j+1].disabled=ht,gt===2&&(i.selectedIndex=j+1)),gt===0&&A===j&&a.setSelected())})},r.prototype.computeButtonRange=function(a){var t=a.type,i=a.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[t]?a._range=o[t]*i:t!=="month"&&t!=="year"||(a._range=24*{month:30,year:365}[t]*36e5*i),a._offsetMin=S(a.offsetMin,0),a._offsetMax=S(a.offsetMax,0),a._range+=a._offsetMax-a._offsetMin},r.prototype.getInputValue=function(a){var t=a==="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(a,t){var i=this.options,o=this.chart.time,e=a==="min"?this.minInput:this.maxInput,s=a==="min"?this.minDateBox:this.maxDateBox;if(e){var n=e.getAttribute("data-hc-time"),l=M(n)?Number(n):void 0;if(M(t)){var b=l;M(b)&&e.setAttribute("data-hc-time-previous",b),e.setAttribute("data-hc-time",t),l=t}e.value=o.dateFormat(this.inputTypeFormats[e.type]||i.inputEditDateFormat,l),s&&s.attr({text:o.dateFormat(i.inputDateFormat,l)})}},r.prototype.setInputExtremes=function(a,t,i){var o=a==="min"?this.minInput:this.maxInput;if(o){var e=this.inputTypeFormats[o.type],s=this.chart.time;if(e){var n=s.dateFormat(e,t);o.min!==n&&(o.min=n);var l=s.dateFormat(e,i);o.max!==l&&(o.max=l)}}},r.prototype.showInput=function(a){var t=a==="min"?this.minDateBox:this.maxDateBox,i=a==="min"?this.minInput:this.maxInput;if(i&&t&&this.inputGroup){var o=i.type==="text",e=this.inputGroup,s=e.translateX,n=e.translateY,l=this.options.inputBoxWidth;E(i,{width:o?t.width+(l?-2:20)+"px":"auto",height:o?t.height-2+"px":"auto",border:"2px solid silver"}),E(i,o&&l?{left:s+t.x+"px",top:n+"px"}:{left:Math.min(Math.round(t.x+s-(i.offsetWidth-t.width)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:n-(i.offsetHeight-t.height)/2+"px"})}},r.prototype.hideInput=function(a){var t=a==="min"?this.minInput:this.maxInput;t&&E(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},r.prototype.defaultInputDateParser=function(a,t,i){var o,e=a.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 s=new Date(e).getTimezoneOffset()/60;e+=s<=0?"+".concat(w(-s),":00"):"-".concat(w(s),":00")}var n=Date.parse(e);if(!g(n)){var l=a.split("-");n=Date.UTC(C(l[0]),C(l[1])-1,C(l[2]))}return i&&t&&g(n)&&(n+=i.getTimezoneOffset(n)),n},r.prototype.drawInput=function(a){var t=this,i=t.chart,o=t.div,e=t.inputGroup,s=this,n=i.renderer.style||{},l=i.renderer,b=i.options.rangeSelector,T=U.lang,D=a==="min";function p(){var O=s.maxInput,j=s.minInput,Y=i.xAxis[0],X=i.scroller&&i.scroller.xAxis?i.scroller.xAxis:Y,G=X.dataMin,q=X.dataMax,Q=s.getInputValue(a);Q!==Number(_.getAttribute("data-hc-time-previous"))&&g(Q)&&(_.setAttribute("data-hc-time-previous",Q),D&&O&&g(G)?Q>Number(O.getAttribute("data-hc-time"))?Q=void 0:Q<G&&(Q=G):j&&g(q)&&(Q<Number(j.getAttribute("data-hc-time"))?Q=void 0:Q>q&&(Q=q)),Q!==void 0&&Y.setExtremes(D?Q:Y.min,D?Y.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}var x=T[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",A=l.label(x,0).addClass("highcharts-range-label").attr({padding:x?2:0,height:x?b.inputBoxHeight:0}).add(e),N=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:b.inputBoxWidth,height:b.inputBoxHeight,"text-align":"center"}).on("click",function(){s.showInput(a),s[a+"Input"].focus()});i.styledMode||N.attr({stroke:b.inputBoxBorderColor,"stroke-width":1}),N.add(e);var _=I("input",{name:a,className:"highcharts-range-selector"},void 0,o);_.setAttribute("type",function(O){if(O.indexOf("%L")!==-1)return"text";var j=["a","A","d","e","w","b","B","m","o","y","Y"].some(function(X){return O.indexOf("%"+X)!==-1}),Y=["H","k","I","l","M","S"].some(function(X){return O.indexOf("%"+X)!==-1});return j&&Y?"datetime-local":j?"date":Y?"time":"text"}(b.inputDateFormat||"%b %e, %Y")),i.styledMode||(A.css(d(n,b.labelStyle)),N.css(d({color:"#333333"},n,b.inputStyle)),E(_,h({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},b.inputStyle))),_.onfocus=function(){s.showInput(a)},_.onblur=function(){_===H.doc.activeElement&&p(),s.hideInput(a),s.setInputValue(a),_.blur()};var L=!1;return _.onchange=function(){L||(p(),s.hideInput(a),_.blur())},_.onkeypress=function(O){O.keyCode===13&&p()},_.onkeydown=function(O){L=!0,O.keyCode!==38&&O.keyCode!==40||p()},_.onkeyup=function(){L=!1},{dateBox:N,input:_,label:A}},r.prototype.getPosition=function(){var a=this.chart,t=a.options.rangeSelector,i=t.verticalAlign==="top"?a.plotTop-a.axisOffset[0]:0;return{buttonTop:i+t.buttonPosition.y,inputTop:i+t.inputPosition.y-10}},r.prototype.getYTDExtremes=function(a,t,i){var o=this.chart.time,e=new o.Date(a),s=o.get("FullYear",e),n=i?o.Date.UTC(s,0,1):+new o.Date(s,0,1),l=Math.max(t,n),b=e.getTime();return{max:Math.min(a||b,b),min:l}},r.prototype.render=function(a,t){var i=this.chart,o=i.renderer,e=i.container,s=i.options,n=s.rangeSelector,l=S(s.chart.style&&s.chart.style.zIndex,0)+1,b=n.inputEnabled,T=this.rendered;if(n.enabled!==!1){if(!T&&(this.group=o.g("range-selector-group").attr({zIndex:7}).add(),this.div=I("div",void 0,{position:"relative",height:0,zIndex:l}),this.buttonOptions.length&&this.renderButtons(),e.parentNode&&e.parentNode.insertBefore(this.div,e),b)){this.inputGroup=o.g("input-group").add(this.group);var D=this.drawInput("min");this.minDateBox=D.dateBox,this.minLabel=D.label,this.minInput=D.input;var p=this.drawInput("max");this.maxDateBox=p.dateBox,this.maxLabel=p.label,this.maxInput=p.input}if(b){this.setInputValue("min",a),this.setInputValue("max",t);var x=i.scroller&&i.scroller.getUnionExtremes()||i.xAxis[0]||{};if(M(x.dataMin)&&M(x.dataMax)){var A=i.xAxis[0].minRange||0;this.setInputExtremes("min",x.dataMin,Math.min(x.dataMax,this.getInputValue("max"))-A),this.setInputExtremes("max",Math.max(x.dataMin,this.getInputValue("min"))+A,x.dataMax)}if(this.inputGroup){var N=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(_){if(_){var L=_.getBBox().width;L&&(_.attr({x:N}),N+=L+n.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},r.prototype.renderButtons=function(){var a=this,t=this,i=t.buttons,o=t.chart,e=t.options,s=U.lang,n=o.renderer,l=d(e.buttonTheme),b=l&&l.states,T=l.width||28;delete l.width,delete l.states,this.buttonGroup=n.g("range-selector-buttons").add(this.group);var D=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);z(D,"touchstart",function(){D.style.fontSize="16px"}),[[H.isMS?"mouseover":"mouseenter"],[H.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(p){var x=p[0],A=p[1];z(D,x,function(){var N=i[a.currentButtonIndex()];N&&u(N.element,A||x)})}),this.zoomText=n.label(s&&s.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),l["stroke-width"]=S(l["stroke-width"],0)),I("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,D),this.buttonOptions.forEach(function(p,x){I("option",{textContent:p.title||p.text},void 0,D),i[x]=n.button(p.text,0,0,function(A){var N,_=p.events&&p.events.click;_&&(N=_.call(p,A)),N!==!1&&a.clickButton(x),a.isActive=!0},l,b&&b.hover,b&&b.select,b&&b.disabled).attr({"text-align":"center",width:T}).add(a.buttonGroup),p.title&&i[x].attr("title",p.title)})},r.prototype.alignElements=function(){var a=this,t=this,i=t.buttonGroup,o=t.buttons,e=t.chart,s=t.group,n=t.inputGroup,l=t.options,b=t.zoomText,T=e.options,D=T.exporting&&T.exporting.enabled!==!1&&T.navigation&&T.navigation.buttonOptions,p=l.buttonPosition,x=l.inputPosition,A=l.verticalAlign,N=function(mt,bt){return D&&a.titleCollision(e)&&A==="top"&&bt.align==="right"&&bt.y-mt.getBBox().height-12<(D.y||0)+(D.height||0)+e.spacing[0]?-40:0},_=e.plotLeft;if(s&&p&&x){var L=p.x-e.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var O=0;b&&(O+=b.getBBox().width+5),o.forEach(function(mt,bt){O+=mt.width,bt!==o.length-1&&(O+=l.buttonSpacing)}),this.initialButtonGroupWidth=O}_-=e.spacing[3],this.updateButtonStates();var j=N(i,p);this.alignButtonGroup(j),s.placed=i.placed=e.hasLoaded}var Y=0;n&&(Y=N(n,x),x.align==="left"?L=_:x.align==="right"&&(L=-Math.max(e.axisOffset[1],-Y)),n.align({y:x.y,width:n.getBBox().width,align:x.align,x:x.x+L-2},!0,e.spacingBox),n.placed=e.hasLoaded),this.handleCollision(Y),s.align({verticalAlign:A},!0,e.spacingBox);var X=s.alignAttr.translateY,G=s.getBBox().height+20,q=0;if(A==="bottom"){var Q=e.legend&&e.legend.options;q=X-(G=G+(Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?e.legend.legendHeight+S(Q.margin,10):0)-20)-(l.floating?0:l.y)-(e.titleOffset?e.titleOffset[2]:0)-10}A==="top"?(l.floating&&(q=0),e.titleOffset&&e.titleOffset[0]&&(q=e.titleOffset[0]),q+=e.margin[0]-e.spacing[0]||0):A==="middle"&&(x.y===p.y?q=X:(x.y||p.y)&&(x.y<0||p.y<0?q-=Math.min(x.y,p.y):q=X-G)),s.translate(l.x,l.y+Math.floor(q));var J=this,rt=J.minInput,lt=J.maxInput,gt=J.dropdown;l.inputEnabled&&rt&<&&(rt.style.marginTop=s.translateY+"px",lt.style.marginTop=s.translateY+"px"),gt&&(gt.style.marginTop=s.translateY+"px")}},r.prototype.alignButtonGroup=function(a,t){var i=this,o=i.chart,e=i.options,s=i.buttonGroup,n=e.buttonPosition,l=o.plotLeft-o.spacing[3],b=n.x-o.spacing[3];n.align==="right"?b+=a-l:n.align==="center"&&(b-=l/2),s&&s.align({y:n.y,width:S(t,this.initialButtonGroupWidth),align:n.align,x:b},!0,o.spacingBox)},r.prototype.positionButtons=function(){var a=this,t=a.buttons,i=a.chart,o=a.options,e=a.zoomText,s=i.hasLoaded?"animate":"attr",n=o.buttonPosition,l=i.plotLeft,b=l;e&&e.visibility!=="hidden"&&(e[s]({x:S(l+n.x,l)}),b+=n.x+e.getBBox().width+5);for(var T=0,D=this.buttonOptions.length;T<D;++T)t[T].visibility!=="hidden"?(t[T][s]({x:b}),b+=t[T].width+o.buttonSpacing):t[T][s]({x:l})},r.prototype.handleCollision=function(a){var t=this,i=this,o=i.chart,e=i.buttonGroup,s=i.inputGroup,n=this.options,l=n.buttonPosition,b=n.dropdown,T=n.inputPosition,D=function(){var A=0;return t.buttons.forEach(function(N){var _=N.getBBox();_.width>A&&(A=_.width)}),A},p=function(A){if(s&&e){var N=s.alignAttr.translateX+s.alignOptions.x-a+s.getBBox().x+2,_=s.alignOptions.width,L=e.alignAttr.translateX+e.getBBox().x;return L+A>N&&N+_>L&&l.y<T.y+s.getBBox().height}return!1},x=function(){s&&e&&s.attr({translateX:s.alignAttr.translateX+(o.axisOffset[1]>=-a?0:-a),translateY:s.alignAttr.translateY+e.getBBox().height+10})};if(e){if(b==="always")return this.collapseButtons(a),void(p(D())&&x());b==="never"&&this.expandButtons()}s&&e?T.align===l.align||p(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(a),p(D())&&x()):x():b==="responsive"&&this.expandButtons():e&&b==="responsive"&&(this.initialButtonGroupWidth>o.plotWidth?this.collapseButtons(a):this.expandButtons())},r.prototype.collapseButtons=function(a){var t=this,i=t.buttons,o=t.buttonOptions,e=t.chart,s=t.dropdown,n=t.options,l=t.zoomText,b=e.userOptions.rangeSelector&&e.userOptions.rangeSelector.buttonTheme||{},T=function(x){return{text:x?x+" ▾":"▾",width:"auto",paddingLeft:S(n.buttonTheme.paddingLeft,b.padding,8),paddingRight:S(n.buttonTheme.paddingRight,b.padding,8)}};l&&l.hide();var D=!1;o.forEach(function(x,A){var N=i[A];N.state!==2?N.hide():(N.show(),N.attr(T(x.text)),D=!0)}),D||(s&&(s.selectedIndex=0),i[0].show(),i[0].attr(T(this.zoomText&&this.zoomText.textStr)));var p=n.buttonPosition.align;this.positionButtons(),p!=="right"&&p!=="center"||this.alignButtonGroup(a,i[this.currentButtonIndex()].getBBox().width),this.showDropdown()},r.prototype.expandButtons=function(){var a=this,t=a.buttons,i=a.buttonOptions,o=a.options,e=a.zoomText;this.hideDropdown(),e&&e.show(),i.forEach(function(s,n){var l=t[n];l.show(),l.attr({text:s.text,width:o.buttonTheme.width||28,paddingLeft:S(o.buttonTheme.paddingLeft,"unset"),paddingRight:S(o.buttonTheme.paddingRight,"unset")}),l.state<2&&l.setState(0)}),this.positionButtons()},r.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&a.selectedIndex>0?a.selectedIndex-1:0},r.prototype.showDropdown=function(){var a=this,t=a.buttonGroup,i=a.buttons,o=a.chart,e=a.dropdown;if(t&&e){var s=t.translateX,n=t.translateY,l=i[this.currentButtonIndex()].getBBox();E(e,{left:o.plotLeft+s+"px",top:n+.5+"px",width:l.width+"px",height:l.height+"px"}),this.hasVisibleDropdown=!0}},r.prototype.hideDropdown=function(){var a=this.dropdown;a&&(E(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},r.prototype.getHeight=function(){var a=this.options,t=this.group,i=a.inputPosition,o=a.buttonPosition,e=a.y,s=o.y,n=i.y,l=0;if(a.height)return a.height;this.alignElements(),l=t?t.getBBox(!0).height+13+e:0;var b=Math.min(n,s);return(n<0&&s<0||n>0&&s>0)&&(l+=Math.abs(b)),l},r.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)},r.prototype.update=function(a){var t=this.chart;d(!0,t.options.rangeSelector,a),this.destroy(),this.init(t),this.render()},r.prototype.destroy=function(){var a=this,t=a.minInput,i=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(o){return o()}),a.eventsToUnbind=void 0),k(a.buttons),t&&(t.onfocus=t.onblur=t.onchange=null),i&&(i.onfocus=i.onblur=i.onchange=null),v(a,function(o,e){o&&e!=="chart"&&(o instanceof $?o.destroy():o instanceof ft.HTMLElement&&y(o)),o!==r.prototype[e]&&(a[e]=null)},this)},r}();return h(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(B,"Core/Axis/OrdinalAxis.js",[B["Core/Axis/Axis.js"],B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=V.addEvent,U=V.correctFloat,z=V.css,I=V.defined,E=V.error,M=V.pick,k=V.timeUnits,y=[];return function(h){function u(i,o,e,s,n,l,b){n===void 0&&(n=[]),l===void 0&&(l=0);var T,D,p,x,A,N={},_=this.options.tickPixelInterval,L=this.chart.time,O=[],j=0,Y=[],X=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!n||n.length<3||o===void 0)return L.getTimeTicks.apply(L,arguments);var G=n.length;for(T=0;T<G;T++){if(A=T&&n[T-1]>e,n[T]<o&&(j=T),T===G-1||n[T+1]-n[T]>5*l||A){if(n[T]>X){for(D=L.getTimeTicks(i,n[j],n[T],s);D.length&&D[0]<=X;)D.shift();D.length&&(X=D[D.length-1]),O.push(Y.length),Y=Y.concat(D)}j=T+1}if(A)break}if(D){if(x=D.info,b&&x.unitRange<=k.hour){for(T=Y.length-1,j=1;j<T;j++)L.dateFormat("%d",Y[j])!==L.dateFormat("%d",Y[j-1])&&(N[Y[j]]="day",p=!0);p&&(N[Y[0]]="day"),x.higherRanks=N}x.segmentStarts=O,Y.info=x}else E(12,!1,this.chart);if(b&&I(_)){for(var q=Y.length,Q=[],J=[],rt=void 0,lt=void 0,gt=void 0,mt=void 0,bt=void 0,yt=q;yt--;)lt=this.translate(Y[yt]),gt&&(J[yt]=gt-lt),Q[yt]=gt=lt;for(J.sort(),(mt=J[Math.floor(J.length/2)])<.6*_&&(mt=null),yt=Y[q-1]>e?q-1:q,gt=void 0;yt--;)lt=Q[yt],bt=Math.abs(gt-lt),gt&&bt<.8*_&&(mt===null||bt<.8*mt)?(N[Y[yt]]&&!N[Y[yt+1]]?(rt=yt+1,gt=lt):rt=yt,Y.splice(rt,1)):gt=lt}return Y}function g(i){var o=this.ordinal.positions;if(!o)return i;var e,s=o.length-1;return i<0?i=o[0]:i>s?i=o[s]:e=i-(s=Math.floor(i)),e!==void 0&&o[s]!==void 0?o[s]+(e?e*(o[s+1]-o[s]):0):i}function d(i){var o=this,e=o.ordinal,s=o.old?o.old.min:o.min,n=o.old?o.old.transA:o.transA,l=e.positions;if(!l)return i;var b=(i-s)*n+o.minPixelPadding;if(b>0&&b<o.left+o.len||(e.extendedOrdinalPositions||(e.extendedOrdinalPositions=e.getExtendedPositions()),l=e.extendedOrdinalPositions),l&&l.length){var T=e.getIndexOfPoint(b,l),D=U(T%1);if(T>=0&&T<l.length-1){var p=l[Math.floor(T)],x=l[Math.ceil(T)]-p;return l[Math.floor(T)]+D*x}var A=l.length,N=l[0],_=l[A-1],L=(_-N)/(A-1);return T<0?N+L*T:_+L*(T-A)}return i}function v(i,o){var e=h.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 h.Additions(i))}function S(){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 c(){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],s=e.options.overscroll,n=i.originalEvent.chartX,l=o.options.chart.panning,b=!1;if(l&&l.type!=="y"&&e.options.ordinal&&e.series.length){var T=o.mouseDownX,D=e.getExtremes(),p=D.dataMax,x=D.min,A=D.max,N=o.hoverPoints,_=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange,L=(T-n)/(e.translationSlope*(e.ordinal.slope||_)),O=e.ordinal.getExtendedPositions(),j={ordinal:{positions:O,extendedOrdinalPositions:O}},Y=e.index2val,X=e.val2lin,G=void 0,q=void 0,Q=void 0,J=void 0;j.ordinal.positions?Math.abs(L)>1&&(N&&N.forEach(function(rt){rt.setState()}),L<0?(Q=j,J=e.ordinal.positions?e:j):(Q=e.ordinal.positions?e:j,J=j),p>(q=J.ordinal.positions)[q.length-1]&&q.push(p),o.fixedRange=A-x,(G=e.navigatorAxis.toFixedRange(void 0,void 0,Y.apply(Q,[X.apply(Q,[x,!0])+L]),Y.apply(J,[X.apply(J,[A,!0])+L]))).min>=Math.min(D.dataMin,x)&&G.max<=Math.max(p,A)+s&&e.setExtremes(G.min,G.max,!0,!1,{trigger:"pan"}),o.mouseDownX=n,z(o.container,{cursor:"move"})):b=!0}else b=!0;b||l&&/y/.test(l.type)?s&&(e.max=e.dataMax+s):i.preventDefault()}function r(){var i=this.xAxis;i&&i.options.ordinal&&(delete i.ordinal.index,delete i.ordinal.extendedOrdinalPositions)}function a(i,o){var e=this.ordinal,s=e.positions,n=e.slope,l=e.extendedOrdinalPositions;if(!s)return i;var b,T=s.length;if(s[0]<=i&&s[T-1]>=i)b=v(s,i);else{if(l||(l=e.getExtendedPositions&&e.getExtendedPositions(),e.extendedOrdinalPositions=l),!l||!l.length)return i;var D=l.length;n||(n=(l[D-1]-l[0])/D);var p=v(l,s[0]);b=i>=l[0]&&i<=l[D-1]?v(l,i)-p:i<l[0]?-p-(l[0]-i)/n:(i-l[D-1])/n+D-p}return o?b:n*(b||0)+e.offset}h.compose=function(i,o,e){if(y.indexOf(i)===-1){y.push(i);var s=i.prototype;s.getTimeTicks=u,s.index2val=g,s.lin2val=d,s.val2lin=a,s.ordinal2lin=s.val2lin,Z(i,"afterInit",w),Z(i,"foundExtremes",S),Z(i,"afterSetScale",C),Z(i,"initialAxisTranslation",c)}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,s,n,l,b,T,D=this.axis,p=D.ordinal,x=D.getExtremes(),A=x.min,N=x.max,_=D.isXAxis&&!!D.options.breaks,L=D.options.ordinal,O=D.chart.options.chart.ignoreHiddenSeries,j=[],Y=Number.MAX_VALUE,X=!1,G=!1,q=!1;if(L||_){var Q=0;if(D.series.forEach(function(J,rt){if(e=[],rt>0&&J.options.id!=="highcharts-navigator-series"&&J.processedXData.length>1&&(G=Q!==J.processedXData[1]-J.processedXData[0]),Q=J.processedXData[1]-J.processedXData[0],J.boosted&&(q=J.boosted),(!O||J.visible!==!1)&&(J.takeOrdinalPosition!==!1||_)&&(j=j.concat(J.processedXData),o=j.length,j.sort(function(lt,gt){return lt-gt}),Y=Math.min(Y,M(J.closestPointRange,Y)),o)){for(rt=0;rt<o-1;)j[rt]!==j[rt+1]&&e.push(j[rt+1]),rt++;e[0]!==j[0]&&e.unshift(j[0]),j=e}}),G&&q&&(j.pop(),j.shift()),(o=j.length)>2){for(s=j[1]-j[0],T=o-1;T--&&!X;)j[T+1]-j[T]!==s&&(X=!0);!D.options.keepOrdinalPadding&&(j[0]-A>s||N-j[j.length-1]>s)&&(X=!0)}else D.options.overscroll&&(o===2?Y=j[1]-j[0]:o===1?(Y=D.options.overscroll,j=[j[0],j[0]+Y]):Y=p.overscrollPointsRange);X||D.forceOrdinal?(D.options.overscroll&&(p.overscrollPointsRange=Y,j=j.concat(p.getOverscrollPositions())),p.positions=j,n=D.ordinal2lin(Math.max(A,j[0]),!0),l=Math.max(D.ordinal2lin(Math.min(N,j[j.length-1]),!0),1),p.slope=b=(N-A)/(l-n),p.offset=A-n*b):(p.overscrollPointsRange=M(D.closestPointRange,p.overscrollPointsRange),p.positions=D.ordinal.slope=p.offset=void 0)}D.isOrdinal=L&&X,p.groupIntervalFactor=null},i.findIndexOf=function(o,e,s){for(var n,l=0,b=o.length-1;l<b;)o[n=Math.ceil((l+b)/2)]<=e?l=n:b=n-1;return o[l]===e||s?l:-1},i.prototype.getExtendedPositions=function(){var o,e=this,s=e.axis,n=s.constructor.prototype,l=s.chart,b=s.series[0].currentDataGrouping,T=b?b.count+b.unitName:"raw",D=s.options.overscroll,p=s.getExtremes(),x=void 0,A=e.index;return A||(A=e.index={}),A[T]||((o={series:[],chart:l,forceOrdinal:!1,getExtremes:function(){return{min:p.dataMin,max:p.dataMax+D}},getGroupPixelWidth:n.getGroupPixelWidth,getTimeTicks:n.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:n.ordinal2lin,getIndexOfPoint:n.getIndexOfPoint,val2lin:n.val2lin}).ordinal.axis=o,s.series.forEach(function(N){(x={xAxis:o,xData:N.xData.slice(),chart:l,destroyGroupedData:R.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),s.ordinal.beforeSetTickPositions.apply({axis:o}),A[T]=o.ordinal.positions),A[T]},i.prototype.getGroupIntervalFactor=function(o,e,s){var n,l,b=this,T=s.processedXData,D=T.length,p=[],x=b.groupIntervalFactor;if(!x){for(l=0;l<D-1;l++)p[l]=T[l+1]-T[l];p.sort(function(A,N){return A-N}),n=p[Math.floor(D/2)],o=Math.max(o,T[0]),e=Math.min(e,T[D-1]),b.groupIntervalFactor=x=D*n/(e-o)}return x},i.prototype.getIndexOfPoint=function(o,e){var s=this,n=s.axis,l=s.positions?s.positions[0]:0,b=n.series[0].points&&n.series[0].points[0]&&n.series[0].points[0].plotX||n.minPixelPadding;n.series.length>1&&n.series.forEach(function(p){p.points&&I(p.points[0])&&I(p.points[0].plotX)&&p.points[0].plotX<b&&p.points[0].plotX>=M(n.min,-1/0)&&(b=p.points[0].plotX)});var T=n.translationSlope*(s.slope||n.closestPointRange||s.overscrollPointsRange),D=(o-b)/T;return i.findIndexOf(e,l)+D},i.prototype.getOverscrollPositions=function(){var o=this.axis,e=o.options.overscroll,s=this.overscrollPointsRange,n=[],l=o.dataMax;if(I(s))for(;l<=o.dataMax+e;)l+=s,n.push(l);return n},i.prototype.postProcessTickInterval=function(o){var e=this.axis,s=this.slope;return s?e.options.breaks?e.closestPointRange||o:o/(s/e.closestPointRange):o},i}();h.Additions=t}($||($={})),$}),et(B,"Series/HLC/HLCPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.close=void 0,U.high=void 0,U.low=void 0,U.options=void 0,U.plotClose=void 0,U.series=void 0,U}return H(Z,$),Z}(W.seriesTypes.column.prototype.pointClass);return V}),et(B,"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(B,"Series/HLC/HLCSeries.js",[B["Series/HLC/HLCPoint.js"],B["Series/HLC/HLCSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(M,k){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},$(M,k)},function(M,k){function y(){this.constructor=M}$(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}),U=H.seriesTypes.column,z=V.extend,I=V.merge,E=function(M){function k(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y.yData=void 0,y}return Z(k,M),k.prototype.extendStem=function(y,h,u){var g=y[0],d=y[1];typeof g[2]=="number"&&(g[2]=Math.max(u+h,g[2])),typeof d[2]=="number"&&(d[2]=Math.min(u-h,d[2]))},k.prototype.getPointPath=function(y,h){var u=h.strokeWidth(),g=y.series,d=u%2/2,v=Math.round(y.plotX)-d,w=Math.round(y.shapeArgs.width/2),S=y.plotClose,C=[["M",v,Math.round(y.yBottom)],["L",v,Math.round(y.plotHigh)]];return y.close!==null&&(S=Math.round(y.plotClose)+d,C.push(["M",v,S],["L",v+w,S]),g.extendStem(C,u/2,S)),C},k.prototype.drawSinglePoint=function(y){var h,u=y.series,g=u.chart,d=y.graphic;y.plotY!==void 0&&(d||(y.graphic=d=g.renderer.path().add(u.group)),g.styledMode||d.attr(u.pointAttribs(y,y.selected&&"select")),h=u.getPointPath(y,d),d[d?"animate":"attr"]({d:h}).addClass(y.getClassName(),!0))},k.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},k.prototype.init=function(){M.prototype.init.apply(this,arguments),this.options.stacking=void 0},k.prototype.pointAttribs=function(y,h){var u=M.prototype.pointAttribs.call(this,y,h);return delete u.fill,u},k.prototype.toYData=function(y){return[y.high,y.low,y.close]},k.prototype.translate=function(){var y=this,h=y.yAxis,u=this.pointArrayMap&&this.pointArrayMap.slice()||[],g=u.map(function(d){return"plot".concat(d.charAt(0).toUpperCase()+d.slice(1))});g.push("yBottom"),u.push("low"),M.prototype.translate.apply(y),y.points.forEach(function(d){u.forEach(function(v,w){var S=d[v];S!==null&&(y.dataModify&&(S=y.dataModify.modifyValue(S)),d[g[w]]=h.toPixels(S,!0))}),d.tooltipPos[1]=d.plotHigh+h.pos-y.chart.plotTop})},k.defaultOptions=I(U.defaultOptions,R),k}(U);return z(E.prototype,{pointClass:W,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),H.registerSeriesType("hlc",E),E}),et(B,"Series/OHLC/OHLCPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.open=void 0,U.options=void 0,U.plotOpen=void 0,U.series=void 0,U}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 U=$.prototype.getZone.call(this);return this.resolveUpColor(),U},Z.prototype.applyOptions=function(){return $.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},Z}(W.seriesTypes.hlc.prototype.pointClass);return V}),et(B,"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(B,"Series/OHLC/OHLCSeries.js",[B["Series/OHLC/OHLCPoint.js"],B["Series/OHLC/OHLCSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(u,g){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,v){d.__proto__=v}||function(d,v){for(var w in v)v.hasOwnProperty(w)&&(d[w]=v[w])},$(u,g)},function(u,g){function d(){this.constructor=u}$(u,g),u.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}),U=H.seriesTypes.hlc,z=V.addEvent,I=V.extend,E=V.merge,M=[];function k(u){var g=u.options,d=g.dataGrouping;d&&g.useOhlcData&&g.id!=="highcharts-navigator-series"&&(d.approximation="ohlc")}function y(u){var g=u.options;g.useOhlcData&&g.id!=="highcharts-navigator-series"&&I(this,{pointValKey:h.prototype.pointValKey,pointArrayMap:h.prototype.pointArrayMap,toYData:h.prototype.toYData})}var h=function(u){function g(){var d=u!==null&&u.apply(this,arguments)||this;return d.data=void 0,d.options=void 0,d.points=void 0,d}return Z(g,u),g.compose=function(d){for(var v=[],w=1;w<arguments.length;w++)v[w-1]=arguments[w];M.indexOf(d)===-1&&(M.push(d),z(d,"afterSetOptions",k),z(d,"init",y))},g.prototype.getPointPath=function(d,v){var w=u.prototype.getPointPath.call(this,d,v),S=v.strokeWidth(),C=S%2/2,c=Math.round(d.plotX)-C,f=Math.round(d.shapeArgs.width/2),r=d.plotOpen;return d.open!==null&&(r=Math.round(d.plotOpen)+C,w.push(["M",c,r],["L",c-f,r]),u.prototype.extendStem.call(this,w,S/2,r)),w},g.prototype.pointAttribs=function(d,v){var w=u.prototype.pointAttribs.call(this,d,v),S=this.options;return delete w.fill,!d.options.color&&S.upColor&&d.open<d.close&&(w.stroke=S.upColor),w},g.prototype.toYData=function(d){return[d.open,d.high,d.low,d.close]},g.defaultOptions=E(U.defaultOptions,R),g}(U);return I(h.prototype,{pointClass:W,pointArrayMap:["open","high","low","close"]}),H.registerSeriesType("ohlc",h),h}),et(B,"Series/Candlestick/CandlestickSeriesDefaults.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),et(B,"Series/Candlestick/CandlestickSeries.js",[B["Series/Candlestick/CandlestickSeriesDefaults.js"],B["Core/Defaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},$(y,h)},function(y,h){function u(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),U=R.defaultOptions,z=H.seriesTypes,I=z.column,E=z.ohlc,M=V.merge,k=function(y){function h(){var u=y!==null&&y.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return Z(h,y),h.prototype.pointAttribs=function(u,g){var d=I.prototype.pointAttribs.call(this,u,g),v=this.options,w=u.open<u.close,S=v.lineColor||this.color,C=u.color||this.color;if(d["stroke-width"]=v.lineWidth,d.fill=u.options.color||w&&v.upColor||C,d.stroke=u.options.lineColor||w&&v.upLineColor||S,g){var c=v.states[g];d.fill=c.color||d.fill,d.stroke=c.lineColor||d.stroke,d["stroke-width"]=c.lineWidth||d["stroke-width"]}return d},h.prototype.drawPoints=function(){for(var u=this,g=u.points,d=u.chart,v=u.yAxis.reversed,w=0,S=g;w<S.length;w++){var C=S[w],c=C.graphic,f=void 0,r=void 0,a=void 0,t=void 0,i=void 0,o=void 0,e=void 0,s=void 0,n=void 0,l=void 0,b=!c;C.plotY!==void 0&&(c||(C.graphic=c=d.renderer.path().add(u.group)),u.chart.styledMode||c.attr(u.pointAttribs(C,C.selected&&"select")).shadow(u.options.shadow),e=c.strokeWidth()%2/2,s=Math.round(C.plotX)-e,f=C.plotOpen,r=C.plotClose,a=Math.min(f,r),t=Math.max(f,r),l=Math.round(C.shapeArgs.width/2),i=v?t!==C.yBottom:Math.round(a)!==Math.round(C.plotHigh),o=v?Math.round(a)!==Math.round(C.plotHigh):t!==C.yBottom,a=Math.round(a)+e,t=Math.round(t)+e,(n=[]).push(["M",s-l,t],["L",s-l,a],["L",s+l,a],["L",s+l,t],["Z"],["M",s,a],["L",s,i?Math.round(v?C.yBottom:C.plotHigh):a],["M",s,t],["L",s,o?Math.round(v?C.plotHigh:C.yBottom):t]),c[b?"attr":"animate"]({d:n}).addClass(C.getClassName(),!0))}},h.defaultOptions=M(E.defaultOptions,U.plotOptions,{tooltip:E.defaultOptions.tooltip},W),h}(E);return H.registerSeriesType("candlestick",k),k}),et(B,"Series/Flags/FlagsPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(z,I){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var k in M)M.hasOwnProperty(k)&&(E[k]=M[k])},H(z,I)},function(z,I){function E(){this.constructor=z}H(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=W.seriesTypes.column.prototype.pointClass,Z=R.isNumber,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E.ttBelow=!1,E}return V(I,z),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 U}),et(B,"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(B,"Series/Flags/FlagsSymbols.js",[B["Core/Renderer/RendererRegistry.js"]],function(W){var R;return function(H){var V=[];function $(U,z,I,E,M){var k=M&&M.anchorX||U,y=M&&M.anchorY||z,h=this.circle(k-1,y-1,2,2);return h.push(["M",k,y],["L",U,z+E],["L",U,z],["L",U+I,z],["L",U+I,z+E],["L",U,z+E],["Z"]),h}function Z(U,z){U[z+"pin"]=function(I,E,M,k,y){var h,u=y&&y.anchorX,g=y&&y.anchorY;if(z==="circle"&&k>M&&(I-=Math.round((k-M)/2),M=k),h=U[z](I,E,M,k),u&&g){var d=u;if(z==="circle")d=I+M/2;else{var v=h[0],w=h[1];v[0]==="M"&&w[0]==="L"&&(d=(v[1]+w[1])/2)}var S=E>g?E:E+k;h.push(["M",d,S],["L",u,g]),h=h.concat(U.circle(u-1,g-1,2,2))}return h}}H.compose=function(U){V.indexOf(U)===-1&&(V.push(U),(I=U.prototype.symbols).flag=$,Z(I,"circle"),Z(I,"square"));var z=W.getRendererType();if(V.indexOf(z)){V.push(z);var I=U.prototype.symbols,E=z.prototype.symbols;E.circlepin=I.circlepin,E.flag=I.flag.bind(I),E.squarepin=I.squarepin}}}(R||(R={})),R}),et(B,"Series/OnSeriesComposition.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=W.prototype,Z=R.prototype,U=H.defined,z=H.stableSort;return function(I){var E=[];function M(y){return Z.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,y)}function k(){$.translate.apply(this);var y,h,u,g,d,v,w,S=this,C=S.options,c=S.chart,f=S.points,r=C.onSeries,a=r&&c.get(r),t=a&&a.options.step,i=a&&a.points,o=c.inverted,e=S.xAxis,s=S.yAxis,n=f.length-1,l=C.onKey||"y",b=i&&i.length,T=0;if(a&&a.visible&&b)for(T=(a.pointXOffset||0)+(a.barW||0)/2,v=a.currentDataGrouping,g=i[b-1].x+(v?v.totalRange:0),z(f,function(D,p){return D.x-p.x}),l="plot"+l[0].toUpperCase()+l.substr(1);b--&&f[n]&&(u=i[b],(y=f[n]).y=u.y,!(u.x<=y.x&&u[l]!==void 0&&(y.x<=g&&(y.plotY=u[l],u.x<y.x&&!t&&(d=i[b+1])&&d[l]!==void 0&&(w=(y.x-u.x)/(d.x-u.x),y.plotY+=w*(d[l]-u[l]),y.y+=w*(d.y-u.y))),b++,--n<0))););f.forEach(function(D,p){var x;D.plotX+=T,(D.plotY===void 0||o)&&(D.plotX>=0&&D.plotX<=e.len?o?(D.plotY=e.translate(D.x,0,1,0,1),D.plotX=U(D.y)?s.translate(D.y,0,0,0,1):0):D.plotY=(e.opposite?0:S.yAxis.len)+e.offset:D.shapeArgs={}),(h=f[p-1])&&h.plotX===D.plotX&&(h.stackIndex===void 0&&(h.stackIndex=0),x=h.stackIndex+1),D.stackIndex=x}),this.onSeries=a}I.compose=function(y){if(E.indexOf(y)===-1){E.push(y);var h=y.prototype;h.getPlotBox=M,h.translate=k}return y},I.getPlotBox=M,I.translate=k}(V||(V={})),V}),et(B,"Series/Flags/FlagsSeries.js",[B["Series/Flags/FlagsPoint.js"],B["Series/Flags/FlagsSeriesDefaults.js"],B["Series/Flags/FlagsSymbols.js"],B["Core/Globals.js"],B["Series/OnSeriesComposition.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=this&&this.__extends||(E=function(f,r){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i])},E(f,r)},function(f,r){function a(){this.constructor=f}E(f,r),f.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}),k=V.noop,y=Z.distribute,h=U.series,u=U.seriesTypes.column,g=I.addEvent,d=I.defined,v=I.extend,w=I.merge,S=I.objectEach,C=I.wrap,c=function(f){function r(){var a=f!==null&&f.apply(this,arguments)||this;return a.data=void 0,a.options=void 0,a.points=void 0,a}return M(r,f),r.prototype.animate=function(a){a&&this.setClip()},r.prototype.drawPoints=function(){var a,t,i,o,e,s,n,l,b,T,D,p=this,x=p.points,A=p.chart,N=A.renderer,_=A.inverted,L=p.options,O=L.y,j=p.yAxis,Y={},X=[];for(o=x.length;o--;)e=x[o],T=(_?e.plotY:e.plotX)>p.xAxis.len,a=e.plotX,n=e.stackIndex,i=e.options.shape||L.shape,(t=e.plotY)!==void 0&&(t=e.plotY+O-(n!==void 0&&n*L.stackDistance)),e.anchorX=n?void 0:e.plotX,l=n?void 0:e.plotY,D=i!=="flag",s=e.graphic,t!==void 0&&a>=0&&!T?(s&&e.hasNewShapeType()&&(s=s.destroy()),s||(s=e.graphic=N.label("",null,null,i,null,null,L.useHTML).addClass("highcharts-point").add(p.markerGroup),e.graphic.div&&(e.graphic.div.point=e),s.isNew=!0),s.attr({align:D?"center":"left",width:L.width,height:L.height,"text-align":L.textAlign}),A.styledMode||s.attr(p.pointAttribs(e)).css(w(L.style,e.style)).shadow(L.shadow),a>0&&(a-=s.strokeWidth()%2),b={y:t,anchorY:l},L.allowOverlapX&&(b.x=a,b.anchorX=e.anchorX),s.attr({text:e.options.title||L.title||"A"})[s.isNew?"attr":"animate"](b),L.allowOverlapX||(Y[e.plotX]?Y[e.plotX].size=Math.max(Y[e.plotX].size,s.width):Y[e.plotX]={align:D?.5:0,size:s.width,target:a,anchorX:a}),e.tooltipPos=[a,t+j.pos-A.plotTop]):s&&(e.graphic=s.destroy());if(!L.allowOverlapX){var G=100;S(Y,function(mt){mt.plotX=mt.anchorX,X.push(mt),G=Math.max(mt.size,G)}),y(X,_?j.len:this.xAxis.len,G);for(var q=0,Q=x;q<Q.length;q++){var J=Q[q],rt=J.plotX,lt=J.graphic,gt=lt&&Y[rt];gt&<&&(d(gt.pos)?lt[lt.isNew?"attr":"animate"]({x:gt.pos+(gt.align||0)*gt.size,anchorX:J.anchorX}).show().isNew=!1:lt.hide().isNew=!0)}}L.useHTML&&p.markerGroup&&C(p.markerGroup,"on",function(mt){return z.prototype.on.apply(mt.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},r.prototype.drawTracker=function(){var a=this.points;f.prototype.drawTracker.call(this);for(var t=function(e){var s=e.graphic;s&&(e.unbindMouseOver&&e.unbindMouseOver(),e.unbindMouseOver=g(s.element,"mouseover",function(){e.stackIndex>0&&!e.raised&&(e._y=s.y,s.attr({y:e._y-8}),e.raised=!0);for(var n=0,l=a;n<l.length;n++){var b=l[n];b!==e&&b.raised&&b.graphic&&(b.graphic.attr({y:b._y}),b.raised=!1)}}))},i=0,o=a;i<o.length;i++)t(o[i])},r.prototype.pointAttribs=function(a,t){var i=this.options,o=a&&a.color||this.color,e=i.lineColor,s=a&&a.lineWidth,n=a&&a.fillColor||i.fillColor;return t&&(n=i.states[t].fillColor,e=i.states[t].lineColor,s=i.states[t].lineWidth),{fill:n||o,stroke:e||o,"stroke-width":s||i.lineWidth||0}},r.prototype.setClip=function(){h.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(u.defaultOptions,R),r}(u);return $.compose(c),v(c.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:W,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:k,init:h.prototype.init}),U.registerSeriesType("flags",c),c}),et(B,"Core/Chart/StockChart.js",[B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/FormatUtilities.js"],B["Core/Defaults.js"],B["Stock/Navigator/NavigatorDefaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Stock/Scrollbar/ScrollbarDefaults.js"],B["Core/Series/Series.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E){var M,k=this&&this.__extends||(M=function(o,e){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,n){s.__proto__=n}||function(s,n){for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l])},M(o,e)},function(o,e){function s(){this.constructor=o}M(o,e),o.prototype=e===null?Object.create(e):(s.prototype=e.prototype,new s)}),y=H.format,h=V.getOptions,u=E.addEvent,g=E.clamp,d=E.defined,v=E.extend,w=E.find,S=E.isNumber,C=E.isString,c=E.merge,f=E.pick,r=E.splat,a=function(o){function e(){return o!==null&&o.apply(this,arguments)||this}return k(e,o),e.prototype.init=function(s,n){var l=h(),b=s.xAxis,T=s.yAxis,D=f(s.navigator&&s.navigator.enabled,$.enabled,!0);s.xAxis=s.yAxis=void 0;var p=c({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:D},scrollbar:{enabled:f(U.enabled,!0)},rangeSelector:{enabled:f(Z.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},s,{isStock:!0});s.xAxis=b,s.yAxis=T,p.xAxis=r(s.xAxis||{}).map(function(x,A){return c(t("xAxis",x),l.xAxis,l.xAxis&&l.xAxis[A],x,i("xAxis",s))}),p.yAxis=r(s.yAxis||{}).map(function(x,A){return c(t("yAxis",x),l.yAxis,l.yAxis&&l.yAxis[A],x)}),o.prototype.init.call(this,p,n)},e.prototype.createAxis=function(s,n){return n.axis=c(t(s,n.axis),n.axis,i(s,this.userOptions)),o.prototype.createAxis.call(this,s,n)},e}(R);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 s={type:"datetime",categories:void 0};return f(e.navigator&&e.navigator.enabled,$.enabled,!0)&&(s.startOnTick=!1,s.endOnTick=!1),s}return{}}return function(o){o.stockChart=function(e,s,n){return new o(e,s,n)}}(a||(a={})),u(z,"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]=c(o.plotOptions[this.type],e)))}),u(W,"autoLabelAlign",function(o){var e,s=this.chart,n=this.options,l=s._labelPanes=s._labelPanes||{},b=this.options.labels;this.chart.options.isStock&&this.coll==="yAxis"&&!l[e=n.top+","+n.height]&&b.enabled&&(b.x===15&&(b.x=0),b.align===void 0&&(b.align="right"),l[e]=this,o.align="right",o.preventDefault())}),u(W,"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]}),u(W,"getPlotLinePath",function(o){var e,s,n,l,b,T,D,p,x,A=this,N=this.isLinked&&!this.series?this.linkedParent.series:this.series,_=A.chart,L=_.renderer,O=A.left,j=A.top,Y=[],X=[],G=o.translatedValue,q=o.value,Q=o.force;(_.options.isStock&&o.acrossPanes!==!1&&A.coll==="xAxis"||A.coll==="yAxis")&&(o.preventDefault(),D=A.coll,p=D==="xAxis"?"yAxis":"xAxis",x=A.options[p],X=S(x)?[_[p][x]]:C(x)?[_.get(x)]:N.map(function(J){return J[p]}),(A.isXAxis?_.yAxis:_.xAxis).forEach(function(J){if(!d(J.options.id)||J.options.id.indexOf("navigator")===-1){var rt=J.isXAxis?"yAxis":"xAxis",lt=d(J.options[rt])?_[rt][J.options[rt]]:_[rt][0];A===lt&&X.push(J)}}),b=X.length?[]:[A.isXAxis?_.yAxis[0]:_.xAxis[0]],X.forEach(function(J){b.indexOf(J)!==-1||w(b,function(rt){return rt.pos===J.pos&&rt.len===J.len})||b.push(J)}),T=f(G,A.translate(q,void 0,void 0,o.old)),S(T)&&(A.horiz?b.forEach(function(J){var rt;s=J.pos,l=s+J.len,e=n=Math.round(T+A.transB),Q!=="pass"&&(e<O||e>O+A.width)&&(Q?e=n=g(e,O,O+A.width):rt=!0),rt||Y.push(["M",e,s],["L",n,l])}):b.forEach(function(J){var rt;e=J.pos,n=e+J.len,s=l=Math.round(j+A.height-T),Q!=="pass"&&(s<j||s>j+A.height)&&(Q?s=l=g(s,j,j+A.height):rt=!0),rt||Y.push(["M",e,s],["L",n,l])})),o.path=Y.length>0?L.crispPolyLine(Y,o.lineWidth||1):null)}),I.prototype.crispPolyLine=function(o,e){for(var s=0;s<o.length;s+=2){var n=o[s],l=o[s+1];n[1]===l[1]&&(n[1]=l[1]=Math.round(n[1])-e%2/2),n[2]===l[2]&&(n[2]=l[2]=Math.round(n[2])+e%2/2)}return o},u(W,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),u(W,"afterDrawCrosshair",function(o){if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&S(this.min)&&S(this.max)){var e,s,n,l,b,T=this.chart,D=this.logarithmic,p=this.crosshair.label,x=this.horiz,A=this.opposite,N=this.left,_=this.top,L=this.crossLabel,O=p.format,j="",Y=this.options.tickPosition==="inside",X=this.crosshair.snap!==!1,G=0,q=o.e||this.cross&&this.cross.e,Q=o.point,J=this.min,rt=this.max;D&&(J=D.lin2log(J),rt=D.lin2log(rt)),b=x?"center":A?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center",L||(L=this.crossLabel=T.renderer.label("",0,void 0,p.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(Q&&Q.series?Q.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:p.align||b,padding:f(p.padding,8),r:f(p.borderRadius,3),zIndex:2}).add(this.labelGroup),T.styledMode||L.attr({fill:p.backgroundColor||Q&&Q.series&&Q.series.color||"#666666",stroke:p.borderColor||"","stroke-width":p.borderWidth||0}).css(v({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},p.style||{}))),x?(e=X?(Q.plotX||0)+N:q.chartX,s=_+(A?0:this.height)):(e=A?this.width+N:0,s=X?(Q.plotY||0)+_:q.chartY),O||p.formatter||(this.dateTime&&(j="%b %d, %Y"),O="{value"+(j?":"+j:"")+"}");var lt=X?this.isXAxis?Q.x:Q.y:this.toValue(x?q.chartX:q.chartY),gt=Q&&Q.series?Q.series.isPointInside(Q):S(lt)&<>J&<<rt,mt="";O?mt=y(O,{value:lt},T):p.formatter&&S(lt)&&(mt=p.formatter.call(this,lt)),L.attr({text:mt,x:e,y:s,visibility:gt?"inherit":"hidden"}),n=L.getBBox(),S(L.y)&&(x?(Y&&!A||!Y&&A)&&(s=L.y-n.height):s=L.y-n.height/2),l=x?{left:N-n.x,right:N+this.width-n.x}:{left:this.labelAlign==="left"?N:0,right:this.labelAlign==="right"?N+this.width:T.chartWidth},L.translateX<l.left&&(G=l.left-L.translateX),L.translateX+n.width>=l.right&&(G=-(L.translateX+n.width-l.right)),L.attr({x:e+G,y:s,anchorX:x?e:this.opposite?0:T.chartWidth,anchorY:x?this.opposite?T.chartHeight:0:s+n.height/2})}}),z.prototype.forceCropping=function(){var o=this.chart,e=this.options.dataGrouping;return this.allowDG!==!1&&e&&f(e.enabled,o.options.isStock)},u(R,"update",function(o){var e=o.options;"scrollbar"in e&&this.navigator&&(c(!0,this.options.scrollbar,e.scrollbar),this.navigator.update({}),delete e.scrollbar)}),a}),et(B,"masters/modules/stock.src.js",[B["Core/Globals.js"],B["Series/DataModifyComposition.js"],B["Stock/Navigator/Navigator.js"],B["Stock/RangeSelector/RangeSelector.js"],B["Stock/Scrollbar/Scrollbar.js"],B["Core/Axis/OrdinalAxis.js"],B["Series/OHLC/OHLCSeries.js"],B["Series/Flags/FlagsSeries.js"],B["Core/Chart/StockChart.js"]],function(W,R,H,V,$,Z,U,z,I){var E=W;E.Navigator=H,E.RangeSelector=V,E.Scrollbar=$,E.StockChart=E.stockChart=I.stockChart,R.compose(E.Series,E.Axis,E.Point),z.compose(E.Renderer),H.compose(E.Axis,E.Chart,E.Series),U.compose(E.Series),Z.compose(E.Axis,E.Series,E.Chart),V.compose(E.Axis,E.Chart),$.compose(E.Axis)}),et(B,"masters/highstock.src.js",[B["masters/highcharts.src.js"]],function(W){return W.product="Highstock",W}),B["masters/highstock.src.js"]._modules=B,B["masters/highstock.src.js"]},ot.exports?(ut.default=ut,ot.exports=pt.document?ut(pt):ut):(ct=function(){return ut(pt)}.call(nt,at,nt,ot))===void 0||(ot.exports=ct)},5322:(ot,nt)=>{Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=function(at){var ct=at.defaultOptions,pt=ct.plotOptions,ut={fillOpacity:.2,color:null,borderColor:null},ft={fillColor:null,lineColor:null,lineWidth:2};ct.plotOptions.column.states.select=ut,ct.plotOptions.area.states.select=ut,ct.plotOptions.bar.states.select=ut,ct.plotOptions.line.states.select=ut,ct.plotOptions.spline.states.select=ut,ct.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}}},ct.plotOptions.series={states:{select:ut}},pt.area.marker.states.select=ft,pt.line.marker.states.select=ft,pt.spline.marker.states.select=ft,pt.bubble.marker.states.select={fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1},at.timeUnits.month=26784e5,at.timeUnits.year=31556952e3}},5378:(ot,nt,at)=>{at.d(nt,{A:()=>pt});var ct=/^(?:0|[1-9]\d*)$/;const pt=function(ut,ft){var B=typeof ut;return!!(ft=ft==null?9007199254740991:ft)&&(B=="number"||B!="symbol"&&ct.test(ut))&&ut>-1&&ut%1==0&&ut<ft}},5436:(ot,nt,at)=>{at.d(nt,{A:()=>ut});var ct=at(123),pt=at(9600);const ut=(0,ct.A)(pt.A,"Map")},5860:(ot,nt,at)=>{at.r(nt),at.d(nt,{default:()=>ft});var ct=at(4044),pt=at(6956),ut=at(7313);const ft=function(B){return typeof B=="string"||!(0,pt.A)(B)&&(0,ut.A)(B)&&(0,ct.A)(B)=="[object String]"}},6096:(ot,nt,at)=>{at.d(nt,{A:()=>B});var ct=at(6979);const pt=function(et,W){for(var R=et.length;R--;)if((0,ct.A)(et[R][0],W))return R;return-1};var ut=Array.prototype.splice;function ft(et){var W=-1,R=et==null?0:et.length;for(this.clear();++W<R;){var H=et[W];this.set(H[0],H[1])}}ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(et){var W=this.__data__,R=pt(W,et);return!(R<0||(R==W.length-1?W.pop():ut.call(W,R,1),--this.size,0))},ft.prototype.get=function(et){var W=this.__data__,R=pt(W,et);return R<0?void 0:W[R][1]},ft.prototype.has=function(et){return pt(this.__data__,et)>-1},ft.prototype.set=function(et,W){var R=this.__data__,H=pt(R,et);return H<0?(++this.size,R.push([et,W])):R[H][1]=W,this};const B=ft},6124:(ot,nt,at)=>{at.d(nt,{A:()=>ft});var ct=at(9465),pt=at(6979),ut=Object.prototype.hasOwnProperty;const ft=function(B,et,W){var R=B[et];ut.call(B,et)&&(0,pt.A)(R,W)&&(W!==void 0||et in B)||(0,ct.A)(B,et,W)}},6236:(ot,nt,at)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function et(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}et(B,"Core/Axis/Color/ColorAxisComposition.js",[B["Core/Color/Color.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.parse,$=R.addEvent,Z=R.extend,U=R.merge,z=R.pick,I=R.splat;return function(E){var M,k=[];function y(){var f=this,r=this.options;this.colorAxis=[],r.colorAxis&&(r.colorAxis=I(r.colorAxis),r.colorAxis.forEach(function(a,t){a.index=t,new M(f,a)}))}function h(f){var r,a,t=this,i=this.chart.colorAxis||[],o=function(s){var n=f.allItems.indexOf(s);n!==-1&&(t.destroyItem(f.allItems[n]),f.allItems.splice(n,1))},e=[];for(i.forEach(function(s){(r=s.options)&&r.showInLegend&&(r.dataClasses&&r.visible?e=e.concat(s.getDataClassLegendSymbols()):r.visible&&e.push(s),s.series.forEach(function(n){n.options.showInLegend&&!r.dataClasses||(n.options.legendType==="point"?n.points.forEach(function(l){o(l)}):o(n))}))}),a=e.length;a--;)f.allItems.unshift(e[a])}function u(f){f.visible&&f.item.legendColor&&f.item.legendItem.symbol.attr({fill:f.item.legendColor})}function g(){var f=this.chart.colorAxis;f&&f.forEach(function(r){r.update({},arguments[2])})}function d(){(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,a=f?"show":"hide";r.visible=r.options.visible=!!f,["graphic","dataLabel"].forEach(function(t){r[t]&&r[t][a]()}),this.series.buildKDTree()}function S(){var f=this,r=this.data.length?this.data:this.points,a=this.options.nullColor,t=this.colorAxis,i=this.colorKey;r.forEach(function(o){var e=o.getNestedProperty(i),s=o.options.color||(o.isNull||o.value===null?a:t&&e!==void 0?t.toColor(e,o):o.color||f.color);s&&o.color!==s&&(o.color=s,f.options.legendType==="point"&&o.legendItem&&o.legendItem.label&&f.chart.legend.colorizeItem(o,o.visible))})}function C(){this.elem.attr("fill",V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)}function c(){this.elem.attr("stroke",V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)}E.compose=function(f,r,a,t,i){if(M||(M=f),k.indexOf(r)===-1){k.push(r);var o=r.prototype;o.collectionsWithUpdate.push("colorAxis"),o.collectionsWithInit.colorAxis=[o.addColorAxis],$(r,"afterGetAxes",y),function(s){var n=s.prototype.createAxis;s.prototype.createAxis=function(l,b){if(l!=="colorAxis")return n.apply(this,arguments);var T=new M(this,U(b.axis,{index:this[l].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(D){D.series=[]}),this.series.forEach(function(D){D.bindAxes(),D.isDirtyData=!0}),z(b.redraw,!0)&&this.redraw(b.animation),T}}(r)}if(k.indexOf(a)===-1){k.push(a);var e=a.prototype;e.fillSetter=C,e.strokeSetter=c}k.indexOf(t)===-1&&(k.push(t),$(t,"afterGetAllItems",h),$(t,"afterColorizeItem",u),$(t,"afterUpdate",g)),k.indexOf(i)===-1&&(k.push(i),Z(i.prototype,{optionalAxis:"colorAxis",translateColors:S}),Z(i.prototype.pointClass.prototype,{setVisible:w}),$(i,"afterTranslate",d,{order:1}),$(i,"bindAxes",v))},E.pointSetVisible=w}(H||(H={})),H}),et(B,"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(B,"Core/Axis/Color/ColorAxis.js",[B["Core/Axis/Axis.js"],B["Core/Color/Color.js"],B["Core/Axis/Color/ColorAxisComposition.js"],B["Core/Axis/Color/ColorAxisDefaults.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(v,w){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var c in C)C.hasOwnProperty(c)&&(S[c]=C[c])},I(v,w)},function(v,w){function S(){this.constructor=v}I(v,w),v.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}),M=R.parse,k=U.series,y=z.extend,h=z.isNumber,u=z.merge,g=z.pick,d=function(v){function w(S,C){var c=v.call(this,S,C)||this;return c.beforePadding=!1,c.chart=void 0,c.coll="colorAxis",c.dataClasses=void 0,c.name="",c.options=void 0,c.stops=void 0,c.visible=!0,c.init(S,C),c}return E(w,v),w.compose=function(S,C,c,f){H.compose(w,S,C,c,f)},w.prototype.init=function(S,C){var c=this,f=S.options.legend||{},r=C.layout?C.layout!=="vertical":f.layout!=="vertical",a=C.visible,t=u(w.defaultColorAxisOptions,C,{showEmpty:!1,title:null,visible:f.enabled&&a!==!1});c.coll="colorAxis",c.side=C.side||r?2:1,c.reversed=C.reversed||!r,c.opposite=!r,v.prototype.init.call(this,S,t),c.userOptions.visible=a,C.dataClasses&&c.initDataClasses(C),c.initStops(),c.horiz=r,c.zoomEnabled=!1},w.prototype.initDataClasses=function(S){var C,c=this,f=c.chart,r=c.legendItem=c.legendItem||{},a=S.dataClasses.length,t=c.options,i=0,o=f.options.chart.colorCount;c.dataClasses=C=[],r.labels=[],(S.dataClasses||[]).forEach(function(e,s){var n;e=u(e),C.push(e),!f.styledMode&&e.color||(t.dataClassColor==="category"?(f.styledMode||(n=f.options.colors,o=n.length,e.color=n[i]),e.colorIndex=i,++i===o&&(i=0)):e.color=M(t.minColor).tweenTo(M(t.maxColor),a<2?.5:s/(a-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 S=this;S.stops=S.options.stops||[[0,S.options.minColor],[1,S.options.maxColor]],S.stops.forEach(function(C){C.color=M(C[1])})},w.prototype.setOptions=function(S){v.prototype.setOptions.call(this,S),this.options.crosshair=this.options.marker},w.prototype.setAxisSize=function(){var S,C,c,f,r=this,a=r.legendItem&&r.legendItem.symbol,t=r.chart,i=t.options.legend||{};a?(this.left=S=a.attr("x"),this.top=C=a.attr("y"),this.width=c=a.attr("width"),this.height=f=a.attr("height"),this.right=t.chartWidth-S-c,this.bottom=t.chartHeight-C-f,this.len=this.horiz?c:f,this.pos=this.horiz?S:C):this.len=(this.horiz?i.symbolWidth:i.symbolHeight)||w.defaultLegendLength},w.prototype.normalizedValue=function(S){var C=this;return C.logarithmic&&(S=C.logarithmic.log2lin(S)),1-(C.max-S)/(C.max-C.min||1)},w.prototype.toColor=function(S,C){var c,f,r,a,t,i,o=this,e=o.dataClasses,s=o.stops;if(e){for(i=e.length;i--;)if(f=(t=e[i]).from,r=t.to,(f===void 0||S>=f)&&(r===void 0||S<=r)){a=t.color,C&&(C.dataClass=i,C.colorIndex=t.colorIndex);break}}else{for(c=o.normalizedValue(S),i=s.length;i--&&!(c>s[i][0]););f=s[i]||s[i+1],c=1-((r=s[i+1]||f)[0]-c)/(r[0]-f[0]||1),a=f.color.tweenTo(r.color,c)}return a},w.prototype.getOffset=function(){var S=this,C=S.legendItem&&S.legendItem.group,c=S.chart.axisOffset[S.side];if(C){S.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),S.added||(S.added=!0,S.labelLeft=0,S.labelRight=S.width),S.chart.axisOffset[S.side]=c}},w.prototype.setLegendColor=function(){var S=this,C=S.horiz,c=S.reversed,f=c?1:0,r=c?0:1,a=C?[f,0,r,0]:[0,r,0,f];S.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:S.stops}},w.prototype.drawLegendSymbol=function(S,C){var c=C.legendItem||{},f=S.padding,r=S.options,a=g(r.itemDistance,10),t=this.horiz,i=g(r.symbolWidth,t?w.defaultLegendLength:12),o=g(r.symbolHeight,t?12:w.defaultLegendLength),e=g(r.labelPadding,t?16:30);this.setLegendColor(),c.symbol||(c.symbol=this.chart.renderer.rect(0,S.baseline-11,i,o).attr({zIndex:1}).add(c.group)),c.labelWidth=i+f+(t?a:this.options.labels.x+this.maxLabelLength),c.labelHeight=o+f+(t?e:0)},w.prototype.setState=function(S){this.series.forEach(function(C){C.setState(S)})},w.prototype.setVisible=function(){},w.prototype.getSeriesExtremes=function(){var S,C,c,f,r,a,t,i,o=this.series,e=o.length;for(this.dataMin=1/0,this.dataMax=-1/0;e--;){if(C=(a=o[e]).colorKey=g(a.options.colorKey,a.colorKey,a.pointValKey,a.zoneAxis,"y"),f=a.pointArrayMap,r=a[C+"Min"]&&a[C+"Max"],a[C+"Data"])S=a[C+"Data"];else if(f){if(S=[],c=f.indexOf(C),t=a.yData,c>=0&&t)for(i=0;i<t.length;i++)S.push(g(t[i][c],t[i]))}else S=a.yData;if(r)a.minColorValue=a[C+"Min"],a.maxColorValue=a[C+"Max"];else{var s=k.prototype.getExtremes.call(a,S);a.minColorValue=s.dataMin,a.maxColorValue=s.dataMax}a.minColorValue!==void 0&&(this.dataMin=Math.min(this.dataMin,a.minColorValue),this.dataMax=Math.max(this.dataMax,a.maxColorValue)),r||k.prototype.applyExtremes.call(a)}},w.prototype.drawCrosshair=function(S,C){var c,f=this,r=f.legendItem||{},a=C&&C.plotX,t=C&&C.plotY,i=f.pos,o=f.len;C&&((c=f.toPixels(C.getNestedProperty(C.series.colorKey)))<i?c=i-2:c>i+o&&(c=i+o+2),C.plotX=c,C.plotY=f.len-c,v.prototype.drawCrosshair.call(this,S,C),C.plotX=a,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(S){var C=this,c=C.left,f=S.translatedValue,r=C.top;return h(f)?C.horiz?[["M",f-4,r-6],["L",f+4,r-6],["L",f,r],["Z"]]:[["M",c,f],["L",c-6,f+6],["L",c-6,f-6],["Z"]]:v.prototype.getPlotLinePath.call(this,S)},w.prototype.update=function(S,C){var c=this,f=c.chart.legend;this.series.forEach(function(r){r.isDirtyData=!0}),(S.dataClasses&&f.allItems||c.dataClasses)&&c.destroyItems(),v.prototype.update.call(this,S,C),c.legendItem&&c.legendItem.label&&(c.setLegendColor(),f.colorizeItem(this,!0))},w.prototype.destroyItems=function(){var S=this,C=S.chart,c=S.legendItem||{};if(c.label)C.legend.destroyItem(S);else if(c.labels)for(var f=0,r=c.labels;f<r.length;f++){var a=r[f];C.legend.destroyItem(a)}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(S){this.destroyItems(),v.prototype.remove.call(this,S)},w.prototype.getDataClassLegendSymbols=function(){var S,C=this,c=C.chart,f=C.legendItem&&C.legendItem.labels||[],r=c.options.legend,a=g(r.valueDecimals,-1),t=g(r.valueSuffix,""),i=function(o){return C.series.reduce(function(e,s){return e.push.apply(e,s.points.filter(function(n){return n.dataClass===o})),e},[])};return f.length||C.dataClasses.forEach(function(o,e){var s=o.from,n=o.to,l=c.numberFormatter,b=!0;S="",s===void 0?S="< ":n===void 0&&(S="> "),s!==void 0&&(S+=l(s,a)+t),s!==void 0&&n!==void 0&&(S+=" - "),n!==void 0&&(S+=l(n,a)+t),f.push(y({chart:c,name:S,options:{},drawLegendSymbol:Z.drawRectangle,visible:!0,isDataClass:!0,setState:function(T){for(var D=0,p=i(e);D<p.length;D++)p[D].setState(T)},setVisible:function(){this.visible=b=C.visible=!b;for(var T=0,D=i(e);T<D.length;T++)D[T].setVisible(b);c.legend.colorizeItem(this,b)}},o))}),f},w.defaultColorAxisOptions=V,w.defaultLegendLength=200,w.keepProps=["legendItem"],w}(W);return Array.prototype.push.apply(W.keepProps,d.keepProps),d}),et(B,"Maps/MapNavigationDefaults.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R){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,R.extend)(W.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"}),W.defaultOptions.mapNavigation=H,H}),et(B,"Maps/MapNavigation.js",[B["Core/Chart/Chart.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H){var V=R.doc,$=H.addEvent,Z=H.extend,U=H.isNumber,z=H.merge,I=H.objectEach,E=H.pick;function M(y){y&&(y.preventDefault&&y.preventDefault(),y.stopPropagation&&y.stopPropagation(),y.cancelBubble=!0)}function k(y){this.navButtons=[],this.init(y)}k.prototype.init=function(y){this.chart=y},k.prototype.update=function(y){var h,u=this,g=this.chart,d=g.options.mapNavigation,v=function(S){this.handler.call(g,S),M(S)},w=u.navButtons;for(y&&(d=g.options.mapNavigation=z(g.options.mapNavigation,y));w.length;)w.pop().destroy();E(d.enableButtons,d.enabled)&&!g.renderer.forExport&&(u.navButtonsGroup||(u.navButtonsGroup=g.renderer.g().attr({zIndex:4}).add()),I(d.buttons,function(S,C){S=z(d.buttonOptions,S),!g.styledMode&&S.theme&&((h=S.theme).style=z(S.theme.style,S.style));var c=g.renderer.button(S.text||"",0,0,v,h,void 0,void 0,void 0,C==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[C]).attr({width:S.width,height:S.height,title:g.options.lang[C],padding:S.padding,zIndex:5}).add(u.navButtonsGroup);if(c.handler=S.onclick,$(c.element,"dblclick",M),w.push(c),Z(S,{width:c.width,height:2*c.height}),g.hasLoaded)c.align(S,!1,S.alignTo);else var f=$(g,"load",function(){c.element&&c.align(S,!1,S.alignTo),f()})}),g.hasLoaded||$(g,"render",function(){var S,C,c=g.exportingGroup&&g.exportingGroup.getBBox();if(c){var f=u.navButtonsGroup.getBBox();if(S=c,!((C=f).x>=S.x+S.width||C.x+C.width<=S.x||C.y>=S.y+S.height||C.y+C.height<=S.y)){var r=-f.y-f.height+c.y-5,a=c.y+c.height-f.y+5,t=d.buttonOptions&&d.buttonOptions.verticalAlign;u.navButtonsGroup.attr({translateY:t==="bottom"?r:a})}}})),this.updateEvents(d)},k.prototype.updateEvents=function(y){var h=this.chart;E(y.enableDoubleClickZoom,y.enabled)||y.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||$(h.container,"dblclick",function(u){h.pointer.onContainerDblClick(u)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),E(y.enableMouseWheelZoom,y.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||$(h.container,V.onwheel!==void 0?"wheel":V.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",function(u){return h.pointer.inClass(u.target,"highcharts-no-mousewheel")||(h.pointer.onContainerMouseWheel(u),M(u)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},Z(W.prototype,{fitToBox:function(y,h){return[["x","width"],["y","height"]].forEach(function(u){var g=u[0],d=u[1];y[g]+y[d]>h[g]+h[d]&&(y[d]>h[d]?(y[d]=h[d],y[g]=h[g]):y[g]=h[g]+h[d]-y[d]),y[d]>h[d]&&(y[d]=h[d]),y[g]<h[g]&&(y[g]=h[g])}),y},mapZoom:function(y,h,u,g,d){this.mapView&&(U(y)&&(y=Math.log(y)/Math.log(.5)),this.mapView.zoomBy(y,U(h)&&U(u)?this.mapView.projection.inverse([h,u]):void 0,U(g)&&U(d)?[g,d]:void 0))}}),$(W,"beforeRender",function(){this.mapNavigation=new k(this),this.mapNavigation.update()}),R.MapNavigation=k}),et(B,"Maps/MapPointer.js",[B["Core/Pointer.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.defined,$=R.extend,Z=R.pick,U=R.wrap,z=W.prototype.normalize,I=0;$(W.prototype,{normalize:function(E,M){var k=this.chart;if(E=z.call(this,E,M),k&&k.mapView){var y=k.mapView.pixelsToLonLat({x:E.chartX-k.plotLeft,y:E.chartY-k.plotTop});y&&$(E,y)}return E},onContainerDblClick:function(E){var M=this.chart;E=this.normalize(E),M.options.mapNavigation.enableDoubleClickZoomTo?M.pointer.inClass(E.target,"highcharts-tracker")&&M.hoverPoint&&M.hoverPoint.zoomTo():M.isInsidePlot(E.chartX-M.plotLeft,E.chartY-M.plotTop)&&M.mapZoom(.5,void 0,void 0,E.chartX,E.chartY)},onContainerMouseWheel:function(E){var M=this.chart;E=this.normalize(E);var k=V(E.wheelDelta)&&-E.wheelDelta/120||E.deltaY||E.detail;Math.abs(k)>=1&&(I+=Math.abs(k),H&&clearTimeout(H),H=setTimeout(function(){I=0},50)),I<10&&M.isInsidePlot(E.chartX-M.plotLeft,E.chartY-M.plotTop)&&M.mapView&&M.mapView.zoomBy((M.options.mapNavigation.mouseWheelSensitivity-1)*-k,void 0,[E.chartX,E.chartY],!(Math.abs(k)<1)&&void 0)}}),U(W.prototype,"zoomOption",function(E){var M=this.chart.options.mapNavigation;Z(M.enableTouchZoom,M.enabled)&&(this.chart.options.chart.zooming.pinchType="xy"),E.apply(this,[].slice.call(arguments,1))}),U(W.prototype,"pinchTranslate",function(E,M,k,y,h,u,g){var d;E.call(this,M,k,y,h,u,g),this.chart.options.chart.type==="map"&&this.hasZoom&&(d=y.scaleX>y.scaleY,this.pinchTranslateDirection(!d,M,k,y,h,u,g,d?y.scaleX:y.scaleY))})}),et(B,"Series/ColorMapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.seriesTypes.column.prototype,$=R.addEvent,Z=R.defined;return function(U){var z=[];function I(E){var M=this;M.moveToTopOnHover&&M.graphic&&M.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}U.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))}},U.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var M={};return!Z(E.color)||E.state&&E.state!=="normal"||(M[this.colorProp||"fill"]=E.color),M},pointAttribs:V.pointAttribs},U.compose=function(E){var M=E.prototype.pointClass;return z.indexOf(M)===-1&&(z.push(M),$(M,"afterSetState",I)),E}}(H||(H={})),H}),et(B,"Maps/MapSymbols.js",[B["Core/Renderer/SVG/SVGRenderer.js"]],function(W){var R=W.prototype.symbols;function H(V,$,Z,U,z,I,E,M){return[["M",V+z,$],["L",V+Z-I,$],["C",V+Z-I/2,$,V+Z,$+I/2,V+Z,$+I],["L",V+Z,$+U-E],["C",V+Z,$+U-E/2,V+Z-E/2,$+U,V+Z-E,$+U],["L",V+M,$+U],["C",V+M/2,$+U,V,$+U-M/2,V,$+U-M],["L",V,$+z],["C",V,$+z/2,V+z/2,$,V+z,$],["Z"]]}return R.bottombutton=function(V,$,Z,U,z){var I=z&&z.r||0;return H(V-1,$-1,Z,U,0,0,I,I)},R.topbutton=function(V,$,Z,U,z){var I=z&&z.r||0;return H(V-1,$-1,Z,U,I,I,0,0)},R}),et(B,"Core/Chart/MapChart.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(M,k){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},$(M,k)},function(M,k){function y(){this.constructor=M}$(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}),U=R.getOptions,z=V.merge,I=V.pick,E=function(M){function k(){return M!==null&&M.apply(this,arguments)||this}return Z(k,M),k.prototype.init=function(y,h){var u=U().credits,g=z({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:I(u.mapText,' © <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:I(u.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},y);M.prototype.init.call(this,g,h)},k}(W);return function(M){M.maps={},M.mapChart=function(k,y,h){return new M(k,y,h)},M.splitPath=function(k){var y;return y=typeof k=="string"?(k=k.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(h){return/[A-za-z]/.test(h)?h:parseFloat(h)}):k,H.prototype.pathToSegments(y)}}(E||(E={})),E}),et(B,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(W){var R,H=-Number.MAX_VALUE,V=Number.MAX_VALUE,$=-Number.MAX_VALUE,Z=Number.MAX_VALUE;if(W.forEach(function(U){var z=U[U.length-2],I=U[U.length-1];typeof z=="number"&&typeof I=="number"&&(V=Math.min(V,z),H=Math.max(H,z),Z=Math.min(Z,I),$=Math.max($,I),R=!0)}),R)return{x1:V,y1:Z,x2:H,y2:$}},pointInPolygon:function(W,R){var H,V,$=!1,Z=W.x,U=W.y;for(H=0,V=R.length-1;H<R.length;V=H++)R[H][1]>U!=R[V][1]>U&&Z<(R[V][0]-R[H][0])*(U-R[H][1])/(R[V][1]-R[H][1])+R[H][0]&&($=!$);return $}}}),et(B,"Series/Map/MapPoint.js",[B["Series/ColorMapComposition.js"],B["Maps/MapUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},$(y,h)},function(y,h){function u(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),U=R.boundsFromPath,z=H.seriesTypes.scatter,I=V.extend,E=V.isNumber,M=V.pick,k=function(y){function h(){var u=y!==null&&y.apply(this,arguments)||this;return u.options=void 0,u.path=void 0,u.series=void 0,u}return Z(h,y),h.getProjectedPath=function(u,g){return u.projectedPath||(g&&u.geometry?(g.hasCoordinates=!0,u.projectedPath=g.path(u.geometry)):u.projectedPath=u.path),u.projectedPath||[]},h.prototype.applyOptions=function(u,g){var d=this.series,v=y.prototype.applyOptions.call(this,u,g),w=d.joinBy;if(d.mapData&&d.mapMap){var S=w[1],C=y.prototype.getNestedProperty.call(v,S),c=C!==void 0&&d.mapMap[C];c?I(v,c):d.pointArrayMap.indexOf("value")!==-1&&(v.value=v.value||null)}return v},h.prototype.getProjectedBounds=function(u){var g=h.getProjectedPath(this,u),d=U(g),v=this.properties;if(d){var w=v&&v["hc-middle-x"],S=v&&v["hc-middle-y"];d.midX=d.x1+(d.x2-d.x1)*M(this.middleX,E(w)?w:.5);var C=M(this.middleY,E(S)?S:.5);return this.geometry||(C=1-C),d.midY=d.y2-(d.y2-d.y1)*C,d}},h.prototype.onMouseOver=function(u){V.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?y.prototype.onMouseOver.call(this,u):this.series.onMouseOut(u)},h.prototype.setVisible=function(u){var g=u?"show":"hide";this.visible=this.options.visible=!!u,this.dataLabel&&this.dataLabel[g](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},h.prototype.zoomTo=function(){var u=this,g=u.series.chart,d=g.mapView,v=u.bounds;if(d&&v){var w=E(u.insetIndex)&&d.insets[u.insetIndex];if(w){var S=w.projectedUnitsToPixels({x:v.x1,y:v.y1}),C=w.projectedUnitsToPixels({x:v.x2,y:v.y2}),c=d.pixelsToProjectedUnits({x:S.x,y:S.y}),f=d.pixelsToProjectedUnits({x:C.x,y:C.y});v={x1:c.x,y1:c.y,x2:f.x,y2:f.y}}d.fitToBounds(v,void 0,!1),u.series.isDirty=!0,g.redraw()}},h}(z.prototype.pointClass);return I(k.prototype,{dataLabelOnNull:W.pointMembers.dataLabelOnNull,moveToTopOnHover:W.pointMembers.moveToTopOnHover,isValid:W.pointMembers.isValid}),k}),et(B,"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(B,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}),et(B,"Extensions/GeoJSON.js",[B["Core/Chart/Chart.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=R.format,Z=H.win,U=V.error,z=V.extend,I=V.merge,E=V.wrap;function M(y,h){h||(h=Object.keys(y.objects)[0]);var u=y.objects[h];if(u["hc-decoded-geojson"])return u["hc-decoded-geojson"];var g=y.arcs;if(y.transform){var d=y.transform,v=d.scale,w=d.translate;g=y.arcs.map(function(f){var r=0,a=0;return f.map(function(t){return(t=t.slice())[0]=(r+=t[0])*v[0]+w[0],t[1]=(a+=t[1])*v[1]+w[1],t})})}var S=function(f){return typeof f[0]=="number"?f.reduce(function(r,a,t){var i=a<0?g[~a]:g[a];return a<0?(i=i.slice(0,t===0?i.length:i.length-1)).reverse():t&&(i=i.slice(1)),r.concat(i)},[]):f.map(S)},C=u.geometries.map(function(f){return{type:"Feature",properties:f.properties,geometry:{type:f.type,coordinates:f.coordinates||S(f.arcs)}}}),c={type:"FeatureCollection",copyright:y.copyright,copyrightShort:y.copyrightShort,copyrightUrl:y.copyrightUrl,features:C,"hc-recommended-mapview":u["hc-recommended-mapview"],bbox:y.bbox,title:y.title};return u["hc-decoded-geojson"]=c,c}function k(y,h,u){h===void 0&&(h="map");var g=[],d=y.type==="Topology"?M(y):y;return d.features.forEach(function(v){var w,S=v.geometry||{},C=S.type,c=S.coordinates,f=v.properties;if((h!=="map"&&h!=="mapbubble"||C!=="Polygon"&&C!=="MultiPolygon")&&(h!=="mapline"||C!=="LineString"&&C!=="MultiLineString")?h==="mappoint"&&C==="Point"&&c.length&&(w={geometry:{coordinates:c,type:C}}):c.length&&(w={geometry:{coordinates:c,type:C}}),w){var r=f&&(f.name||f.NAME),a=f&&f.lon,t=f&&f.lat;g.push(z(w,{lat:typeof t=="number"?t:void 0,lon:typeof a=="number"?a:void 0,name:typeof r=="string"?r:void 0,properties:f}))}}),u&&d.copyrightShort&&(u.chart.mapCredits=$(u.chart.options.credits.mapText,{geojson:d}),u.chart.mapCreditsFull=$(u.chart.options.credits.mapTextFull,{geojson:d})),g}return W.prototype.transformFromLatLon=function(y,h){var u=this.options.chart.proj4||Z.proj4;if(u){var g=h.jsonmarginX,d=g===void 0?0:g,v=h.jsonmarginY,w=v===void 0?0:v,S=h.jsonres,C=S===void 0?1:S,c=h.scale,f=c===void 0?1:c,r=h.xoffset,a=r===void 0?0:r,t=h.xpan,i=t===void 0?0:t,o=h.yoffset,e=o===void 0?0:o,s=h.ypan,n=s===void 0?0:s,l=u(h.crs,[y.lon,y.lat]),b=h.cosAngle||h.rotation&&Math.cos(h.rotation),T=h.sinAngle||h.rotation&&Math.sin(h.rotation),D=h.rotation?[l[0]*b+l[1]*T,-l[0]*T+l[1]*b]:l;return{x:((D[0]-a)*f+i)*C+d,y:-(((e-D[1])*f+n)*C-w)}}U(21,!1,this)},W.prototype.transformToLatLon=function(y,h){var u=this.options.chart.proj4||Z.proj4;if(u){if(y.y!==null){var g=h.jsonmarginX,d=g===void 0?0:g,v=h.jsonmarginY,w=v===void 0?0:v,S=h.jsonres,C=S===void 0?1:S,c=h.scale,f=c===void 0?1:c,r=h.xoffset,a=r===void 0?0:r,t=h.xpan,i=t===void 0?0:t,o=h.yoffset,e=o===void 0?0:o,s=h.ypan,n=s===void 0?0:s,l={x:((y.x-d)/C-i)/f+a,y:((y.y-w)/C+n)/f+e},b=h.cosAngle||h.rotation&&Math.cos(h.rotation),T=h.sinAngle||h.rotation&&Math.sin(h.rotation),D=u(h.crs,"WGS84",h.rotation?{x:l.x*b+l.y*-T,y:l.x*T+l.y*b}:l);return{lat:D.y,lon:D.x}}}else U(21,!1,this)},W.prototype.fromPointToLatLon=function(y){return this.mapView&&this.mapView.projectedUnitsToLonLat(y)},W.prototype.fromLatLonToPoint=function(y){return this.mapView&&this.mapView.lonLatToProjectedUnits(y)},E(W.prototype,"addCredits",function(y,h){h=I(!0,this.options.credits,h),this.mapCredits&&(h.href=null),y.call(this,h),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}),H.geojson=k,H.topo2geo=M,{geojson:k,topo2geo:M}}),et(B,"Core/Geometry/PolygonClip.js",[],function(){var W,R=function(V,$,Z){return($[0]-V[0])*(Z[1]-V[1])>($[1]-V[1])*(Z[0]-V[0])},H=function(V,$,Z,U){var z=[V[0]-$[0],V[1]-$[1]],I=[Z[0]-U[0],Z[1]-U[1]],E=V[0]*$[1]-V[1]*$[0],M=Z[0]*U[1]-Z[1]*U[0],k=1/(z[0]*I[1]-z[1]*I[0]),y=[(E*I[0]-M*z[0])*k,(E*I[1]-M*z[1])*k];return y.isIntersection=!0,y};return function(V){V.clipLineString=function($,Z){for(var U=[],z=V.clipPolygon($,Z,!1),I=1;I<z.length;I++)z[I].isIntersection&&z[I-1].isIntersection&&(U.push(z.splice(0,I)),I=0),I===z.length-1&&U.push(z);return U},V.clipPolygon=function($,Z,U){U===void 0&&(U=!0);for(var z,I,E,M=Z[Z.length-1],k=$,y=0;y<Z.length;y++){var h=k;z=Z[y],k=[],I=U?h[h.length-1]:h[0];for(var u=0;u<h.length;u++)E=h[u],R(M,z,E)?(R(M,z,I)||k.push(H(M,z,I,E)),k.push(E)):R(M,z,I)&&k.push(H(M,z,I,E)),I=E;M=z}return k}}(W||(W={})),W}),et(B,"Maps/Projections/LambertConformalConic.js",[],function(){var W=Math.sign||function(U){return U===0?0:U>0?1:-1},R=63.78137,H=Math.PI/180,V=Math.PI/2,$=1e-6,Z=function(U){return Math.tan((V+U)/2)};return function(){function U(z){var I,E=(z.parallels||[]).map(function(u){return u*H}),M=E[0]||0,k=(I=E[1])!==null&&I!==void 0?I:M,y=Math.cos(M);typeof z.projectedBounds=="object"&&(this.projectedBounds=z.projectedBounds);var h=M===k?Math.sin(M):Math.log(y/Math.cos(k))/Math.log(Z(k)/Z(M));Math.abs(h)<1e-10&&(h=1e-10*(W(h)||1)),this.n=h,this.c=y*Math.pow(Z(M),h)/h}return U.prototype.forward=function(z){var I=z[0]*H,E=this,M=E.c,k=E.n,y=E.projectedBounds,h=z[1]*H;M>0?h<-V+$&&(h=-V+$):h>V-$&&(h=V-$);var u=M/Math.pow(Z(h),k),g=u*Math.sin(k*I)*R,d=(M-u*Math.cos(k*I))*R,v=[g,d];return y&&(g<y.x1||g>y.x2||d<y.y1||d>y.y2)&&(v.outside=!0),v},U.prototype.inverse=function(z){var I=z[0]/R,E=z[1]/R,M=this.c,k=this.n,y=M-E,h=W(k)*Math.sqrt(I*I+y*y),u=Math.atan2(I,Math.abs(y))*W(y);return y*k<0&&(u-=Math.PI*W(I)*W(y)),[u/k/H,(2*Math.atan(Math.pow(M/h,1/k))-V)/H]},U}()}),et(B,"Maps/Projections/EqualEarth.js",[],function(){var W=1.340264,R=-.081106,H=893e-6,V=.003796,$=Math.sqrt(3)/2,Z=74.03120656864502;return function(){function U(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return U.prototype.forward=function(z){var I=Math.PI/180,E=Math.asin($*Math.sin(z[1]*I)),M=E*E,k=M*M*M;return[z[0]*I*Math.cos(E)*Z/($*(W+3*R*M+k*(7*H+9*V*M))),E*Z*(W+R*M+k*(H+V*M))]},U.prototype.inverse=function(z){var I,E,M,k,y=z[0]/Z,h=z[1]/Z,u=180/Math.PI,g=h;for(k=0;k<12&&(g-=M=(g*(W+R*(I=g*g)+(E=I*I*I)*(H+V*I))-h)/(W+3*R*I+E*(7*H+9*V*I)),!(Math.abs(M)<1e-9));++k);return[u*$*y*(W+3*R*(I=g*g)+(E=I*I*I)*(7*H+9*V*I))/Math.cos(g),u*Math.asin(Math.sin(g)/$)]},U}()}),et(B,"Maps/Projections/Miller.js",[],function(){var W=Math.PI/4,R=Math.PI/180,H=63.78137;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return V.prototype.forward=function($){return[$[0]*R*H,79.7267125*Math.log(Math.tan(W+.4*$[1]*R))]},V.prototype.inverse=function($){return[$[0]/H/R,2.5*(Math.atan(Math.exp($[1]/H*.8))-W)/R]},V}()}),et(B,"Maps/Projections/Orthographic.js",[],function(){var W=Math.PI/180,R=63.78460826781007;return function(){function H(){this.antimeridianCutting=!1,this.bounds={x1:-R,x2:R,y1:-R,y2:R}}return H.prototype.forward=function(V){var $=V[0],Z=V[1]*W,U=[Math.cos(Z)*Math.sin($*W)*R,Math.sin(Z)*R];return($<-90||$>90)&&(U.outside=!0),U},H.prototype.inverse=function(V){var $=V[0]/R,Z=V[1]/R,U=Math.sqrt($*$+Z*Z),z=Math.asin(U),I=Math.sin(z),E=Math.cos(z);return[Math.atan2($*I,U*E)/W,Math.asin(U&&Z*I/U)/W]},H}()}),et(B,"Maps/Projections/WebMercator.js",[],function(){var W=85.0511287798,R=63.78137,H=Math.PI/180;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=W}return V.prototype.forward=function($){var Z=Math.sin($[1]*H),U=[R*$[0]*H,R*Math.log((1+Z)/(1-Z))/2];return Math.abs($[1])>W&&(U.outside=!0),U},V.prototype.inverse=function($){return[$[0]/(R*H),(2*Math.atan(Math.exp($[1]/R))-Math.PI/2)/H]},V}()}),et(B,"Maps/Projections/ProjectionRegistry.js",[B["Maps/Projections/LambertConformalConic.js"],B["Maps/Projections/EqualEarth.js"],B["Maps/Projections/Miller.js"],B["Maps/Projections/Orthographic.js"],B["Maps/Projections/WebMercator.js"]],function(W,R,H,V,$){return{EqualEarth:R,LambertConformalConic:W,Miller:H,Orthographic:V,WebMercator:$}}),et(B,"Maps/Projection.js",[B["Core/Geometry/PolygonClip.js"],B["Maps/Projections/ProjectionRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V=this&&this.__spreadArray||function(k,y,h){if(h||arguments.length===2)for(var u,g=0,d=y.length;g<d;g++)!u&&g in y||(u||(u=Array.prototype.slice.call(y,0,g)),u[g]=y[g]);return k.concat(u||Array.prototype.slice.call(y))},$=W.clipLineString,Z=W.clipPolygon,U=H.clamp,z=H.erase,I=2*Math.PI/360,E=1e-6,M=function(k){return k<-180&&(k+=360),k>180&&(k-=360),k};return function(){function k(y){y===void 0&&(y={}),this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=y;var h=y.name,u=y.projectedBounds,g=y.rotation;this.rotator=g?this.getRotator(g):void 0;var d=h?k.registry[h]:void 0;d&&(this.def=new d(y));var v=this.def,w=this.rotator;v&&(this.maxLatitude=v.maxLatitude||90,this.hasGeoProjection=!0),w&&v?(this.forward=function(S){return v.forward(w.forward(S))},this.inverse=function(S){return w.inverse(v.inverse(S))}):v?(this.forward=function(S){return v.forward(S)},this.inverse=function(S){return v.inverse(S)}):w&&(this.forward=w.forward,this.inverse=w.inverse),this.bounds=u==="world"?v&&v.bounds:u}return k.add=function(y,h){k.registry[y]=h},k.greatCircle=function(y,h,u){var g=Math.atan2,d=Math.cos,v=Math.sin,w=Math.sqrt,S=y[1]*I,C=y[0]*I,c=h[1]*I,f=h[0]*I,r=c-S,a=f-C,t=v(r/2)*v(r/2)+d(S)*d(c)*v(a/2)*v(a/2),i=2*g(w(t),w(1-t)),o=6371e3*i,e=Math.round(o/5e5),s=[];if(u&&s.push(y),e>1)for(var n=1/e,l=n;l<.999;l+=n){var b=v((1-l)*i)/v(i),T=v(l*i)/v(i),D=b*d(S)*d(C)+T*d(c)*d(f),p=b*d(S)*v(C)+T*d(c)*v(f),x=g(b*v(S)+T*v(c),w(D*D+p*p)),A=g(p,D);s.push([A/I,x/I])}return u&&s.push(h),s},k.insertGreatCircles=function(y){for(var h=y.length-1;h--;)if(Math.max(Math.abs(y[h][0]-y[h+1][0]),Math.abs(y[h][1]-y[h+1][1]))>10){var u=k.greatCircle(y[h],y[h+1]);u.length&&y.splice.apply(y,V([h+1,0],u,!1))}},k.toString=function(y){var h=y||{},u=h.name,g=h.rotation;return[u,g&&g.join(",")].join(";")},k.prototype.lineIntersectsBounds=function(y){var h,u=this.bounds||{},g=u.x1,d=u.x2,v=u.y1,w=u.y2,S=function(c,f,r){var a=c[0],t=c[1],i=f?0:1;if(typeof r=="number"&&a[f]>=r!=t[f]>=r){var o=(r-a[f])/(t[f]-a[f]),e=a[i]+o*(t[i]-a[i]);return f?[e,r]:[r,e]}},C=y[0];return((h=S(y,0,g))||(h=S(y,0,d)))&&(C=h,y[1]=h),((h=S(y,1,v))||(h=S(y,1,w)))&&(C=h),C},k.prototype.getRotator=function(y){var h=y[0]*I,u=(y[1]||0)*I,g=(y[2]||0)*I,d=Math.cos(u),v=Math.sin(u),w=Math.cos(g),S=Math.sin(g);if(h!==0||u!==0||g!==0)return{forward:function(C){var c=C[0]*I+h,f=C[1]*I,r=Math.cos(f),a=Math.cos(c)*r,t=Math.sin(c)*r,i=Math.sin(f),o=i*d+a*v;return[Math.atan2(t*w-o*S,a*d-i*v)/I,Math.asin(o*w+t*S)/I]},inverse:function(C){var c=C[0]*I,f=C[1]*I,r=Math.cos(f),a=Math.cos(c)*r,t=Math.sin(c)*r,i=Math.sin(f),o=i*w-t*S;return[(Math.atan2(t*w+i*S,a*d+o*v)-h)/I,Math.asin(o*d-a*v)/I]}}},k.prototype.forward=function(y){return y},k.prototype.inverse=function(y){return y},k.prototype.cutOnAntimeridian=function(y,h){var u,g=180,d=[],v=[y];if(y.forEach(function(T,D){var p=y[D-1];if(!D){if(!h)return;p=y[y.length-1]}var x=p[0],A=T[0];if((x<-90||x>90)&&(A<-90||A>90)&&x>0!=A>0){var N=U((g-(x+360)%360)/((A+360)%360-(x+360)%360),0,1),_=p[1]+N*(T[1]-p[1]);d.push({i:D,lat:_,direction:x<0?1:-1,previousLonLat:p,lonLat:T})}}),d.length)if(h){d.length%2==1&&(u=d.slice().sort(function(T,D){return Math.abs(D.lat)-Math.abs(T.lat)})[0],z(d,u));for(var w=d.length-2;w>=0;){var S=d[w].i,C=M(g+d[w].direction*E),c=M(g-d[w].direction*E);(b=y.splice.apply(y,V([S,d[w+1].i-S],k.greatCircle([C,d[w].lat],[C,d[w+1].lat],!0),!1))).push.apply(b,k.greatCircle([c,d[w+1].lat],[c,d[w].lat],!0)),v.push(b),w-=2}if(u)for(var f=0;f<v.length;f++){var r=u.direction,a=u.lat,t=v[f],i=t.indexOf(u.lonLat);if(i>-1){for(var o=(a<0?-1:1)*this.maxLatitude,e=M(g+r*E),s=M(g-r*E),n=k.greatCircle([e,a],[e,o],!0),l=e+120*r;l>-180&&l<180;l+=120*r)n.push([l,o]);n.push.apply(n,k.greatCircle([s,o],[s,u.lat],!0)),t.splice.apply(t,V([i,0],n,!1));break}}}else for(w=d.length;w--;){var b;S=d[w].i,(b=y.splice(S,y.length,[M(g+d[w].direction*E),d[w].lat])).unshift([M(g-d[w].direction*E),d[w].lat]),v.push(b)}return v},k.prototype.path=function(y){var h,u=this,g=this,d=g.bounds,v=g.def,w=g.rotator,S=[],C=y.type==="Polygon"||y.type==="MultiPolygon",c=this.hasGeoProjection,f=!v||v.antimeridianCutting!==!1,r=f?w:void 0,a=f&&v||this;d&&(h=[[d.x1,d.y1],[d.x2,d.y1],[d.x2,d.y2],[d.x1,d.y2]]);var t=function(i){var o=i.map(function(s){if(f){r&&(s=r.forward(s));var n=s[0];Math.abs(n-180)<E&&(n=n<180?179.999999:180.000001),s=[n,s[1]]}return s}),e=[o];c&&(k.insertGreatCircles(o),f&&(e=u.cutOnAntimeridian(o,C))),e.forEach(function(s){if(!(s.length<2)){var n,l,b=!1,T=!1,D=function(O){b?S.push(["L",O[0],O[1]]):(S.push(["M",O[0],O[1]]),b=!0)},p=!1,x=!1,A=s.map(function(O){var j=a.forward(O);return j.outside?p=!0:x=!0,j[1]===1/0?j[1]=1e10:j[1]===-1/0&&(j[1]=-1e10),j});if(f){if(C&&A.push(A[0]),p){if(!x)return;if(h){if(C)A=Z(A,h);else if(d)return void $(A,h).forEach(function(O){b=!1,O.forEach(D)})}}A.forEach(D)}else for(var N=0;N<A.length;N++){var _=s[N],L=A[N];L.outside?T=!0:(C&&!n&&(n=_,s.push(_),A.push(L)),T&&l&&(C&&c?k.greatCircle(l,_).forEach(function(O){return D(a.forward(O))}):b=!1),D(L),l=_,T=!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)}),S.length&&S.push(["Z"])):y.type==="MultiPolygon"&&(y.coordinates.forEach(function(i){i.forEach(function(o){return t(o)})}),S.length&&S.push(["Z"])),S},k.registry=R,k}()}),et(B,"Maps/MapView.js",[B["Maps/MapViewOptionsDefault.js"],B["Maps/MapViewInsetsOptionsDefault.js"],B["Extensions/GeoJSON.js"],B["Core/Chart/MapChart.js"],B["Maps/MapUtilities.js"],B["Maps/Projection.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z,I=this&&this.__extends||(z=function(e,s){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var b in l)l.hasOwnProperty(b)&&(n[b]=l[b])},z(e,s)},function(e,s){function n(){this.constructor=e}z(e,s),e.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}),E=this&&this.__spreadArray||function(e,s,n){if(n||arguments.length===2)for(var l,b=0,T=s.length;b<T;b++)!l&&b in s||(l||(l=Array.prototype.slice.call(s,0,b)),l[b]=s[b]);return e.concat(l||Array.prototype.slice.call(s))},M=H.topo2geo,k=V.maps,y=$.boundsFromPath,h=$.pointInPolygon,u=U.addEvent,g=U.clamp,d=U.fireEvent,v=U.isArray,w=U.isNumber,S=U.isObject,C=U.isString,c=U.merge,f=U.pick,r=U.relativeLength,a=400.979322,t=function(e,s){var n=s.width,l=s.height,b=Math.max((e.x2-e.x1)/(n/256),(e.y2-e.y1)/(l/256));return Math.log(a/b)/Math.log(2)},i=function(){function e(s,n){var l,b,T=this;if(this.insets=[],this.padding=[0,0,0,0],this.eventsToUnbind=[],!(this instanceof o)){var D=E([s.options.chart.map],(s.options.series||[]).map(function(X){return X.mapData}),!0).map(function(X){return T.getGeoMap(X)}),p=[];D.forEach(function(X){if(X&&(l||(l=X["hc-recommended-mapview"]),X.bbox)){var G=X.bbox,q=G[0],Q=G[1],J=G[2],rt=G[3];p.push({x1:q,y1:Q,x2:J,y2:rt})}});var x=p.length&&e.compositeBounds(p);if(x){var A=x.x1,N=x.y1,_=x.x2,L=x.y2;b=_-A>180&&L-N>90?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[N,L],rotation:[-(A+_)/2]}}this.geoMap=D[0]}this.userOptions=n||{};var O=c(W,{projection:b},l,n),j=l&&l.insets,Y=n&&n.insets;j&&Y&&(O.insets=e.mergeInsets(j,Y)),this.chart=s,this.center=O.center,this.options=O,this.projection=new Z(O.projection),this.playingField=s.plotBox,this.zoom=O.zoom||0,this.createInsets(),this.eventsToUnbind.push(u(s,"afterSetChartSize",function(){T.playingField=T.getField(),T.minZoom!==void 0&&T.minZoom!==T.zoom||(T.fitToBounds(void 0,void 0,!1),!T.chart.hasRendered&&w(T.userOptions.zoom)&&(T.zoom=T.userOptions.zoom),T.userOptions.center&&c(!0,T.center,T.userOptions.center))})),this.setUpEvents()}return e.mergeInsets=function(s,n){var l=function(T){var D={};return T.forEach(function(p,x){D[p&&p.id||"i".concat(x)]=p}),D},b=c(l(s),l(n));return Object.keys(b).map(function(T){return b[T]})},e.prototype.createInsets=function(){var s=this,n=this.options,l=n.insets;l&&l.forEach(function(b){var T=new o(s,c(n.insetOptions,b));s.insets.push(T)})},e.prototype.fitToBounds=function(s,n,l,b){l===void 0&&(l=!0);var T=s||this.getProjectedBounds();if(T){var D=f(n,s?0:this.options.padding),p=this.getField(!1),x=v(D)?D:[D,D,D,D];this.padding=[r(x[0],p.height),r(x[1],p.width),r(x[2],p.height),r(x[3],p.width)],this.playingField=this.getField();var A=t(T,this.playingField);s||(this.minZoom=A);var N=this.projection.inverse([(T.x2+T.x1)/2,(T.y2+T.y1)/2]);this.setView(N,A,l,b)}},e.prototype.getField=function(s){s===void 0&&(s=!0);var n=s?this.padding:[0,0,0,0];return{x:n[3],y:n[0],width:this.chart.plotWidth-n[1]-n[3],height:this.chart.plotHeight-n[0]-n[2]}},e.prototype.getGeoMap=function(s){if(C(s))return k[s];if(S(s,!0)){if(s.type==="FeatureCollection")return s;if(s.type==="Topology")return M(s)}},e.prototype.getMapBBox=function(){var s=this.getProjectedBounds(),n=this.getScale();if(s){var l=this.padding,b=this.projectedUnitsToPixels({x:s.x1,y:s.y2});return{width:(s.x2-s.x1)*n+l[1]+l[3],height:(s.y2-s.y1)*n+l[0]+l[2],x:b.x-l[3],y:b.y-l[0]}}},e.prototype.getProjectedBounds=function(){var s=this.projection,n=this.chart.series.reduce(function(p,x){var A=x.getProjectedBounds&&x.getProjectedBounds();return A&&x.options.affectsMapView!==!1&&p.push(A),p},[]),l=this.options.fitToGeometry;if(l){if(!this.fitToGeometryCache)if(l.type==="MultiPoint"){var b=l.coordinates.map(function(p){return s.forward(p)}),T=b.map(function(p){return p[0]}),D=b.map(function(p){return p[1]});this.fitToGeometryCache={x1:Math.min.apply(0,T),x2:Math.max.apply(0,T),y1:Math.min.apply(0,D),y2:Math.max.apply(0,D)}}else this.fitToGeometryCache=y(s.path(l));return this.fitToGeometryCache}return this.projection.bounds||e.compositeBounds(n)},e.prototype.getScale=function(){return 256/a*Math.pow(2,this.zoom)},e.prototype.getSVGTransform=function(){var s=this.playingField,n=s.x,l=s.y,b=s.width,T=s.height,D=this.projection.forward(this.center),p=this.projection.hasCoordinates?-1:1,x=this.getScale(),A=x*p;return{scaleX:x,scaleY:A,translateX:n+b/2-D[0]*x,translateY:l+T/2-D[1]*A}},e.prototype.lonLatToPixels=function(s){var n=this.lonLatToProjectedUnits(s);if(n)return this.projectedUnitsToPixels(n)},e.prototype.lonLatToProjectedUnits=function(s){var n=this.chart,l=n.mapTransforms;if(l){for(var b in l)if(Object.hasOwnProperty.call(l,b)&&l[b].hitZone){var T=n.transformFromLatLon(s,l[b]);if(T&&h(T,l[b].hitZone.coordinates[0]))return T}return n.transformFromLatLon(s,l.default)}for(var D=0,p=this.insets;D<p.length;D++){var x=p[D];if(x.options.geoBounds&&h({x:s.lon,y:s.lat},x.options.geoBounds.coordinates[0])){var A=x.projection.forward([s.lon,s.lat]),N=x.projectedUnitsToPixels({x:A[0],y:A[1]});return this.pixelsToProjectedUnits(N)}}var _=this.projection.forward([s.lon,s.lat]);if(!_.outside)return{x:_[0],y:_[1]}},e.prototype.projectedUnitsToLonLat=function(s){var n=this.chart,l=n.mapTransforms;if(l){for(var b in l)if(Object.hasOwnProperty.call(l,b)&&l[b].hitZone&&h(s,l[b].hitZone.coordinates[0]))return n.transformToLatLon(s,l[b]);return n.transformToLatLon(s,l.default)}for(var T=this.projectedUnitsToPixels(s),D=0,p=this.insets;D<p.length;D++){var x=p[D];if(x.hitZone&&h(T,x.hitZone.coordinates[0])){var A=x.pixelsToProjectedUnits(T),N=x.projection.inverse([A.x,A.y]);return{lon:N[0],lat:N[1]}}}var _=this.projection.inverse([s.x,s.y]);return{lon:_[0],lat:_[1]}},e.prototype.redraw=function(s){this.chart.series.forEach(function(n){n.useMapGeometry&&(n.isDirty=!0)}),this.chart.redraw(s)},e.prototype.setView=function(s,n,l,b){l===void 0&&(l=!0),s&&(this.center=s),typeof n=="number"&&(typeof this.minZoom=="number"&&(n=Math.max(n,this.minZoom)),typeof this.options.maxZoom=="number"&&(n=Math.min(n,this.options.maxZoom)),w(n)&&(this.zoom=n));var T=this.getProjectedBounds();if(T){var D=this.projection.forward(this.center),p=this.playingField,x=p.x,A=p.y,N=p.width,_=p.height,L=this.getScale(),O=this.projectedUnitsToPixels({x:T.x1,y:T.y1}),j=this.projectedUnitsToPixels({x:T.x2,y:T.y2}),Y=[(T.x1+T.x2)/2,(T.y1+T.y2)/2],X=O.x,G=j.y,q=j.x,Q=O.y;q-X<N?D[0]=Y[0]:X<x&&q<x+N?D[0]+=Math.max(X-x,q-N-x)/L:q>x+N&&X>x&&(D[0]+=Math.min(q-N-x,X-x)/L),Q-G<_?D[1]=Y[1]:G<A&&Q<A+_?D[1]-=Math.max(G-A,Q-_-A)/L:Q>A+_&&G>A&&(D[1]-=Math.min(Q-_-A,G-A)/L),this.center=this.projection.inverse(D),this.insets.forEach(function(J){J.options.field&&(J.hitZone=J.getHitZone(),J.playingField=J.getField())}),this.render()}d(this,"afterSetView"),l&&this.redraw(b)},e.prototype.projectedUnitsToPixels=function(s){var n=this.getScale(),l=this.projection.forward(this.center),b=this.playingField,T=b.x+b.width/2,D=b.y+b.height/2;return{x:T-n*(l[0]-s.x),y:D+n*(l[1]-s.y)}},e.prototype.pixelsToLonLat=function(s){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(s))},e.prototype.pixelsToProjectedUnits=function(s){var n=s.x,l=s.y,b=this.getScale(),T=this.projection.forward(this.center),D=this.playingField,p=D.x+D.width/2,x=D.y+D.height/2;return{x:T[0]+(n-p)/b,y:T[1]-(l-x)/b}},e.prototype.setUpEvents=function(){var s,n,l,b=this,T=this.chart,D=function(p){var x=T.pointer.pinchDown,A=b.projection,N=T.mouseDownX,_=T.mouseDownY;if(x.length===1&&(N=x[0].chartX,_=x[0].chartY),typeof N=="number"&&typeof _=="number"){var L=""+N+",".concat(_),O=p.originalEvent,j=O.chartX,Y=O.chartY;L!==n&&(n=L,s=b.projection.forward(b.center),l=(b.projection.options.rotation||[0,0]).slice());var X=A.def&&A.def.bounds,G=X&&t(X,b.playingField)||-1/0;if(A.options.name==="Orthographic"&&(b.minZoom||1/0)<1.1*G){var q=440/(b.getScale()*Math.min(T.plotWidth,T.plotHeight));if(l){var Q=(N-j)*q-l[0],J=g(-l[1]-(_-Y)*q,-80,80),rt=b.zoom;b.update({projection:{rotation:[-Q,-J]}},!1),b.zoom=rt,T.redraw(!1)}}else if(w(j)&&w(Y)){var lt=b.getScale(),gt=b.projection.hasCoordinates?1:-1,mt=b.projection.inverse([s[0]+(N-j)/lt,s[1]-(_-Y)/lt*gt]);b.setView(mt,void 0,!0,!1)}p.preventDefault()}};u(T,"pan",D),u(T,"touchpan",D),u(T,"selection",function(p){if(p.resetSelection)b.zoomBy();else{var x=p.x-T.plotLeft,A=p.y-T.plotTop,N=b.pixelsToProjectedUnits({x,y:A}),_=N.y,L=N.x,O=b.pixelsToProjectedUnits({x:x+p.width,y:A+p.height}),j=O.y,Y=O.x;b.fitToBounds({x1:L,y1:_,x2:Y,y2:j},void 0,!0,!p.originalEvent.touches&&void 0),/^touch/.test(p.originalEvent.type)||T.showResetZoom(),p.preventDefault()}})},e.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},e.prototype.update=function(s,n,l){n===void 0&&(n=!0);var b=s.projection,T=b&&Z.toString(b)!==Z.toString(this.options.projection),D=!1;c(!0,this.userOptions,s),c(!0,this.options,s),"insets"in s&&(this.insets.forEach(function(p){return p.destroy()}),this.insets.length=0,D=!0),(T||"fitToGeometry"in s)&&delete this.fitToGeometryCache,(T||D)&&(this.chart.series.forEach(function(p){var x=p.transformGroups;if(p.clearBounds&&p.clearBounds(),p.isDirty=!0,p.isDirtyData=!0,D&&x)for(;x.length>1;){var A=x.pop();A&&A.destroy()}}),T&&(this.projection=new Z(this.options.projection)),D&&this.createInsets(),s.center||w(s.zoom)||this.fitToBounds(void 0,void 0,!1)),s.center||w(s.zoom)?this.setView(this.options.center,s.zoom,!1):"fitToGeometry"in s&&this.fitToBounds(void 0,void 0,!1),n&&this.chart.redraw(l)},e.prototype.zoomBy=function(s,n,l,b){var T=this.chart,D=this.projection.forward(this.center),p=n?this.projection.forward(n):[],x=p[0],A=p[1];if(typeof s=="number"){var N=this.zoom+s,_=void 0;if(l){var L=l[0],O=l[1],j=this.getScale(),Y=L-T.plotLeft-T.plotWidth/2,X=O-T.plotTop-T.plotHeight/2;x=D[0]+Y/j,A=D[1]+X/j}typeof x=="number"&&typeof A=="number"&&(j=1-Math.pow(2,this.zoom)/Math.pow(2,N),Y=D[0]-x,X=D[1]-A,D[0]-=Y*j,D[1]+=X*j,_=this.projection.inverse(D)),this.setView(_,N,void 0,b)}else this.fitToBounds(void 0,void 0,void 0,b)},e.compositeBounds=function(s){if(s.length)return s.slice(1).reduce(function(n,l){return n.x1=Math.min(n.x1,l.x1),n.y1=Math.min(n.y1,l.y1),n.x2=Math.max(n.x2,l.x2),n.y2=Math.max(n.y2,l.y2),n},c(s[0]))},e}(),o=function(e){function s(n,l){var b=e.call(this,n.chart,l)||this;if(b.id=l.id,b.mapView=n,b.options=c(R,l),b.allBounds=[],b.options.geoBounds){var T=n.projection.path(b.options.geoBounds);b.geoBoundsProjectedBox=y(T),b.geoBoundsProjectedPolygon=T.map(function(D){return[D[1]||0,D[2]||0]})}return b}return I(s,e),s.prototype.getField=function(n){n===void 0&&(n=!0);var l=this.hitZone;if(l){var b=n?this.padding:[0,0,0,0],T=l.coordinates[0],D=T.map(function(L){return L[0]}),p=T.map(function(L){return L[1]}),x=Math.min.apply(0,D)+b[3],A=Math.max.apply(0,D)-b[1],N=Math.min.apply(0,p)+b[0],_=Math.max.apply(0,p)-b[2];if(w(x)&&w(N))return{x,y:N,width:A-x,height:_-N}}return e.prototype.getField.call(this,n)},s.prototype.getHitZone=function(){var n=this,l=n.chart,b=n.mapView,T=n.options,D=(T.field||{}).coordinates;if(D){var p=D[0];if(T.units==="percent"){var x=T.relativeTo==="mapBoundingBox"&&b.getMapBBox()||c(l.plotBox,{x:0,y:0});p=p.map(function(A){return[r(A[0]+"%",x.width,x.x),r(A[1]+"%",x.height,x.y)]})}return{type:"Polygon",coordinates:[p]}}},s.prototype.getProjectedBounds=function(){return i.compositeBounds(this.allBounds)},s.prototype.isInside=function(n){var l=this.geoBoundsProjectedBox,b=this.geoBoundsProjectedPolygon;return!!(l&&n.x>=l.x1&&n.x<=l.x2&&n.y>=l.y1&&n.y<=l.y2&&b&&h(n,b))},s.prototype.render=function(){var n=this,l=n.chart,b=n.mapView,T=n.options,D=T.borderPath||T.field;if(D&&b.group){var p=!0;this.border||(this.border=l.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),p=!1),l.styledMode||this.border.attr({stroke:T.borderColor,"stroke-width":T.borderWidth});var x=Math.round(this.border.strokeWidth())%2/2,A=T.relativeTo==="mapBoundingBox"&&b.getMapBBox()||b.playingField,N=(D.coordinates||[]).reduce(function(_,L){return L.reduce(function(O,j,Y){var X=j[0],G=j[1];return T.units==="percent"&&(X=l.plotLeft+r(X+"%",A.width,A.x),G=l.plotTop+r(G+"%",A.height,A.y)),X=Math.floor(X)+x,G=Math.floor(G)+x,O.push(Y===0?["M",X,G]:["L",X,G]),O},_)},[]);this.border[p?"animate":"attr"]({d:N})}},s.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(n){return n()})},s.prototype.setUpEvents=function(){},s}(i);return u(V,"afterInit",function(){this.mapView=new i(this,this.options.mapView)}),i}),et(B,"Series/Map/MapSeries.js",[B["Core/Animation/AnimationUtilities.js"],B["Series/ColorMapComposition.js"],B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Chart/MapChart.js"],B["Series/Map/MapPoint.js"],B["Maps/MapView.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,k){var y,h=this&&this.__extends||(y=function(T,D){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,x){p.__proto__=x}||function(p,x){for(var A in x)x.hasOwnProperty(A)&&(p[A]=x[A])},y(T,D)},function(T,D){function p(){this.constructor=T}y(T,D),T.prototype=D===null?Object.create(D):(p.prototype=D.prototype,new p)}),u=W.animObject,g=V.noop,d=Z.splitPath,v=E.seriesTypes,w=v.column,S=v.scatter,C=k.extend,c=k.find,f=k.fireEvent,r=k.getNestedProperty,a=k.isArray,t=k.defined,i=k.isNumber,o=k.isObject,e=k.merge,s=k.objectEach,n=k.pick,l=k.splat,b=function(T){function D(){var p=T!==null&&T.apply(this,arguments)||this;return p.chart=void 0,p.data=void 0,p.group=void 0,p.joinBy=void 0,p.options=void 0,p.points=void 0,p.processedData=[],p}return h(D,T),D.prototype.animate=function(p){var x=this.chart,A=this.group,N=u(this.options.animation);x.renderer.isSVG&&(p?A.attr({translateX:x.plotLeft+x.plotWidth/2,translateY:x.plotTop+x.plotHeight/2,scaleX:.001,scaleY:.001}):A.animate({translateX:x.plotLeft,translateY:x.plotTop,scaleX:1,scaleY:1},N))},D.prototype.animateDrilldown=function(p){var x=this.chart,A=this.group;x.renderer.isSVG&&(p?A.attr({translateX:x.plotLeft+x.plotWidth/2,translateY:x.plotTop+x.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(A.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)))},D.prototype.animateDrillupFrom=function(){var p=this.chart;p.renderer.isSVG&&this.group.animate({translateX:p.plotLeft+p.plotWidth/2,translateY:p.plotTop+p.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})},D.prototype.animateDrillupTo=function(p){w.prototype.animateDrillupTo.call(this,p)},D.prototype.clearBounds=function(){this.points.forEach(function(p){delete p.bounds,delete p.insetIndex,delete p.projectedPath}),delete this.bounds},D.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.hasRendered)},D.prototype.drawMapDataLabels=function(){I.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},D.prototype.drawPoints=function(){var p=this,x=this,A=this,N=A.chart,_=A.group,L=A.transformGroups,O=L===void 0?[]:L,j=N.mapView,Y=N.renderer;j&&(this.transformGroups=O,O[0]||(O[0]=Y.g().add(_)),j.insets.forEach(function(X,G){O[G+1]||O.push(Y.g().add(_))}),this.doFullTranslate()&&(this.points.forEach(function(X){var G=X.graphic,q=X.shapeArgs;X.group=O[typeof X.insetIndex=="number"?X.insetIndex+1:0],G&&G.parentGroup!==X.group&&G.add(X.group),q&&N.hasRendered&&!N.styledMode&&(q.fill=p.pointAttribs(X,X.state).fill)}),w.prototype.drawPoints.apply(this),this.points.forEach(function(X){var G=X.graphic;if(G){var q=G.animate,Q="";X.name&&(Q+="highcharts-name-"+X.name.replace(/ /g,"-").toLowerCase()),X.properties&&X.properties["hc-key"]&&(Q+=" highcharts-key-"+X.properties["hc-key"].toString().toLowerCase()),Q&&G.addClass(Q),N.styledMode&&G.css(p.pointAttribs(X,X.selected?"select":void 0)),G.animate=function(J,rt,lt){var gt=i(J["stroke-width"])&&!i(G["stroke-width"]),mt=i(G["stroke-width"])&&!i(J["stroke-width"]);if(gt||mt){var bt=n(x.getStrokeWidth(x.options),1)/(N.mapView&&N.mapView.getScale()||1);gt&&(G["stroke-width"]=bt),mt&&(J["stroke-width"]=bt)}var yt=q.call(G,J,rt,mt?function(){G.element.removeAttribute("stroke-width"),delete G["stroke-width"],lt&<.apply(this,arguments)}:lt);return yt}}})),O.forEach(function(X,G){var q=(G===0?j:j.insets[G-1]).getSVGTransform(),Q=n(p.getStrokeWidth(p.options),1),J=q.scaleX,rt=q.scaleY>0?1:-1,lt=function(yt){(x.points||[]).forEach(function(ht){var it,st=ht.graphic;st&&st["stroke-width"]&&(it=p.getStrokeWidth(ht.options))&&st.attr({"stroke-width":it/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,ht){var it=bt+(J-bt)*ht.pos;X.attr({translateX:gt+(q.translateX-gt)*ht.pos,translateY:mt+(q.translateY-mt)*ht.pos,scaleX:it,scaleY:it*rt,"stroke-width":Q/it}),lt(it)}})}else X.attr(e(q,{"stroke-width":Q/J})),lt(J)}),this.drawMapDataLabels())},D.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var p=this.chart.mapView,x=p.insets,A=p.projection,N=[];(this.points||[]).forEach(function(_){if(_.path||_.geometry){if(typeof _.path=="string"?_.path=d(_.path):a(_.path)&&_.path[0]==="M"&&(_.path=M.prototype.pathToSegments(_.path)),!_.bounds){var L=_.getProjectedBounds(A);if(L){_.labelrank=n(_.labelrank,(L.x2-L.x1)*(L.y2-L.y1));var O=L.midX,j=L.midY;if(x&&i(O)&&i(j)){var Y=c(x,function(X){return X.isInside({x:O,y:j})});Y&&(delete _.projectedPath,(L=_.getProjectedBounds(Y.projection))&&Y.allBounds.push(L),_.insetIndex=x.indexOf(Y))}_.bounds=L}}_.bounds&&_.insetIndex===void 0&&N.push(_.bounds)}}),this.bounds=z.compositeBounds(N)}return this.bounds},D.prototype.getStrokeWidth=function(p){var x=this.pointAttrToOptions;return p[x&&x["stroke-width"]||"borderWidth"]},D.prototype.hasData=function(){return!!this.processedXData.length},D.prototype.pointAttribs=function(p,x){var A=p.series.chart,N=A.mapView,_=A.styledMode?this.colorAttribs(p):w.prototype.pointAttribs.call(this,p,x),L=this.getStrokeWidth(p.options);if(x){var O=e(this.options.states[x],p.options.states&&p.options.states[x]||{}),j=this.getStrokeWidth(O);t(j)&&(L=j)}L&&N&&(L/=N.getScale());var Y=this.getStrokeWidth(this.options);return _.dashstyle&&N&&i(Y)&&(L=Y/N.getScale()),p.visible||(_.fill=this.options.nullColor),t(L)?_["stroke-width"]=L:delete _["stroke-width"],_["stroke-linecap"]=_["stroke-linejoin"]=this.options.linecap,_},D.prototype.updateData=function(){return!this.processedData&&T.prototype.updateData.apply(this,arguments)},D.prototype.setData=function(p,x,A,N){x===void 0&&(x=!0),delete this.bounds,T.prototype.setData.call(this,p,!1,void 0,N),this.processData(),this.generatePoints(),x&&this.chart.redraw(A)},D.prototype.processData=function(){var p,x,A,N,_=this.options,L=_.data,O=this.chart.options.chart,j=this.joinBy,Y=_.keys||this.pointArrayMap,X=[],G={},q=this.chart.mapView,Q=q&&(o(_.mapData,!0)?q.getGeoMap(_.mapData):q.geoMap),J=this.chart.mapTransforms;this.chart.mapTransforms=J=O.mapTransforms||Q&&Q["hc-transform"]||J,J&&s(J,function(bt){bt.rotation&&(bt.cosAngle=Math.cos(bt.rotation),bt.sinAngle=Math.sin(bt.rotation))}),a(_.mapData)?N=_.mapData:Q&&Q.type==="FeatureCollection"&&(this.mapTitle=Q.title,N=V.geojson(Q,this.type,this)),this.processedData=[];var rt=this.processedData;if(L&&L.forEach(function(bt,yt){var ht=0;if(i(bt))rt[yt]={value:bt};else if(a(bt)){rt[yt]={},!_.keys&&bt.length>Y.length&&typeof bt[0]=="string"&&(rt[yt]["hc-key"]=bt[0],++ht);for(var it=0;it<Y.length;++it,++ht)Y[it]&&bt[ht]!==void 0&&(Y[it].indexOf(".")>0?U.prototype.setNestedProperty(rt[yt],bt[ht],Y[it]):rt[yt][Y[it]]=bt[ht])}else rt[yt]=L[yt];j&&j[0]==="_i"&&(rt[yt]._i=yt)}),N){for(this.mapData=N,this.mapMap={},A=0;A<N.length;A++)x=(p=N[A]).properties,p._i=A,j[0]&&x&&x[j[0]]&&(p[j[0]]=x[j[0]]),G[p[j[0]]]=p;if(this.mapMap=G,j[1]){var lt=j[1];rt.forEach(function(bt){var yt=r(lt,bt);G[yt]&&X.push(G[yt])})}if(_.allAreas){if(j[1]){var gt=j[1];rt.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||rt.push(e(bt,{value:null}))})}}this.processedXData=new Array(rt.length)},D.prototype.setOptions=function(p){var x=I.prototype.setOptions.call(this,p),A=x.joinBy;return A===null&&(A="_i"),(A=this.joinBy=l(A))[1]||(A[1]=A[0]),x},D.prototype.translate=function(){var p=this,x=p.doFullTranslate(),A=this.chart.mapView,N=A&&A.projection;if(!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!A||A.userOptions.center||i(A.userOptions.zoom)?this.getProjectedBounds():A.fitToBounds(void 0,void 0,!1)),A){var _=A.getSVGTransform();p.points.forEach(function(L){var O=i(L.insetIndex)&&A.insets[L.insetIndex].getSVGTransform()||_;O&&L.bounds&&i(L.bounds.midX)&&i(L.bounds.midY)&&(L.plotX=L.bounds.midX*O.scaleX+O.translateX,L.plotY=L.bounds.midY*O.scaleY+O.translateY),x&&(L.shapeType="path",L.shapeArgs={d:U.getProjectedPath(L,N)})})}f(p,"afterTranslate")},D.defaultOptions=e(S.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var p=this.series.chart.numberFormatter,x=this.point.value;return i(x)?p(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"}}}),D}(S);return C(b.prototype,{type:"map",axisTypes:R.seriesMembers.axisTypes,colorAttribs:R.seriesMembers.colorAttribs,colorKey:R.seriesMembers.colorKey,directTouch:!0,drawDataLabels:g,drawGraph:g,drawLegendSymbol:$.drawRectangle,forceDL:!0,getCenter:H.getCenter,getExtremesFromAll:!0,getSymbol:g,isCartesian:!1,parallelArrays:R.seriesMembers.parallelArrays,pointArrayMap:R.seriesMembers.pointArrayMap,pointClass:U,preserveAspectRatio:!0,searchPoint:g,trackerGroups:R.seriesMembers.trackerGroups,useMapGeometry:!0}),R.compose(b),E.registerSeriesType("map",b),b}),et(B,"Series/MapLine/MapLineSeries.js",[B["Series/Map/MapSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(E,M){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,y){k.__proto__=y}||function(k,y){for(var h in y)y.hasOwnProperty(h)&&(k[h]=y[h])},V(E,M)},function(E,M){function k(){this.constructor=E}V(E,M),E.prototype=M===null?Object.create(M):(k.prototype=M.prototype,new k)}),Z=R.series,U=H.extend,z=H.merge,I=function(E){function M(){var k=E!==null&&E.apply(this,arguments)||this;return k.data=void 0,k.options=void 0,k.points=void 0,k}return $(M,E),M.prototype.pointAttribs=function(k,y){var h=W.prototype.pointAttribs.call(this,k,y);return h.fill=this.options.fillColor,h},M.defaultOptions=z(W.defaultOptions,{lineWidth:1,fillColor:"none"}),M}(W);return U(I.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:Z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),R.registerSeriesType("mapline",I),I}),et(B,"Series/MapPoint/MapPointPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(z,I){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var k in M)M.hasOwnProperty(k)&&(E[k]=M[k])},H(z,I)},function(z,I){function E(){this.constructor=z}H(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),$=W.seriesTypes.scatter,Z=R.isNumber,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return V(I,z),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 U}),et(B,"Series/MapPoint/MapPointSeries.js",[B["Core/Globals.js"],B["Series/MapPoint/MapPointPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(d,v){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var C in S)S.hasOwnProperty(C)&&(w[C]=S[C])},Z(d,v)},function(d,v){function w(){this.constructor=d}Z(d,v),d.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),z=W.noop,I=H.seriesTypes,E=I.map,M=I.scatter,k=$.extend,y=$.fireEvent,h=$.isNumber,u=$.merge,g=function(d){function v(){var w=d!==null&&d.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 U(v,d),v.prototype.drawDataLabels=function(){d.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},v.prototype.projectPoint=function(w){var S=this.chart.mapView;if(S){var C=w.geometry,c=w.lon,f=w.lat,r=C&&C.type==="Point"&&C.coordinates;if(h(c)&&h(f)&&(r=[c,f]),r)return S.lonLatToProjectedUnits({lon:r[0],lat:r[1]})}},v.prototype.translate=function(){var w=this,S=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),S){var C=S.getSVGTransform(),c=S.projection.hasCoordinates;this.points.forEach(function(f){var r,a=f.x,t=a===void 0?void 0:a,i=f.y,o=i===void 0?void 0:i,e=h(f.insetIndex)&&S.insets[f.insetIndex].getSVGTransform()||C,s=w.projectPoint(f.options)||f.properties&&w.projectPoint(f.properties);if(s?(t=s.x,o=s.y):f.bounds&&(t=f.bounds.midX,o=f.bounds.midY,e&&h(t)&&h(o)&&(f.plotX=t*e.scaleX+e.translateX,f.plotY=o*e.scaleY+e.translateY,r=!0)),h(t)&&h(o)){if(!r){var n=S.projectedUnitsToPixels({x:t,y:o});f.plotX=n.x,f.plotY=c?n.y:w.chart.plotHeight-n.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=u(M.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}}),v}(M);return V.prototype.symbols.mapmarker=function(d,v,w,S,C){var c,f,r=C&&C.context==="legend";r?(c=d+w/2,f=v+S):C&&typeof C.anchorX=="number"&&typeof C.anchorY=="number"?(c=C.anchorX,f=C.anchorY):(c=d+w/2,f=v+S/2,v-=S);var a=r?S/3:S/2;return[["M",c,f],["C",c,f,c-a,v+1.5*a,c-a,v+a],["A",a,a,1,1,1,c+a,v+a],["C",c+a,v+1.5*a,c,f,c,f],["Z"]]},k(g.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:R,searchPoint:z,useMapGeometry:!0}),H.registerSeriesType("mappoint",g),g}),et(B,"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(B,"Series/Bubble/BubbleLegendItem.js",[B["Core/Color/Color.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=H.noop,U=V.arrayMax,z=V.arrayMin,I=V.isNumber,E=V.merge,M=V.pick,k=V.stableSort;return function(){function y(h,u){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(h,u)}return y.prototype.init=function(h,u){this.options=h,this.visible=!0,this.chart=u.chart,this.legend=u},y.prototype.addToLegend=function(h){h.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(h){var u,g=this.chart,d=M(h.options.itemDistance,20),v=this.legendItem||{},w=this.options,S=w.ranges,C=w.connectorDistance;if(this.fontMetrics=g.renderer.fontMetrics(w.labels.style.fontSize),S&&S.length&&I(S[0].value)){k(S,function(a,t){return t.value-a.value}),this.ranges=S,this.setOptions(),this.render();var c=this.getMaxLabelSize(),f=this.ranges[0].radius,r=2*f;u=(u=C-f+c.width)>0?u:0,this.maxLabel=c,this.movementX=w.labels.align==="left"?u:0,v.labelWidth=r+u+d,v.labelHeight=r+this.fontMetrics.h/2}else h.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var h=this.ranges,u=this.options,g=this.chart.series[u.seriesIndex],d=this.legend.baseline,v={zIndex:u.zIndex,"stroke-width":u.borderWidth},w={zIndex:u.zIndex,"stroke-width":u.connectorWidth},S={align:this.legend.options.rtl||u.labels.align==="left"?"right":"left",zIndex:u.zIndex},C=g.options.marker.fillOpacity,c=this.chart.styledMode;h.forEach(function(f,r){c||(v.stroke=M(f.borderColor,u.borderColor,g.color),v.fill=M(f.color,u.color,C!==1?$(g.color).setOpacity(C).get("rgba"):g.color),w.stroke=M(f.connectorColor,u.connectorColor,g.color)),h[r].radius=this.getRangeRadius(f.value),h[r]=E(h[r],{center:h[0].radius-h[r].radius+d}),c||E(!0,h[r],{bubbleAttribs:E(v),connectorAttribs:E(w),labelAttribs:S})},this)},y.prototype.getRangeRadius=function(h){var u=this.options,g=this.options.seriesIndex,d=this.chart.series[g],v=u.ranges[0].value,w=u.ranges[u.ranges.length-1].value,S=u.minSize,C=u.maxSize;return d.getRadius.call(this,w,v,S,C,h)},y.prototype.render=function(){var h=this.legendItem||{},u=this.chart.renderer,g=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),h.symbol=u.g("bubble-legend"),h.label=u.g("bubble-legend-item"),h.symbol.translateX=0,h.symbol.translateY=0;for(var d=0,v=this.ranges;d<v.length;d++){var w=v[d];w.value>=g&&this.renderRange(w)}h.symbol.add(h.label),h.label.add(h.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(h){var u=this.ranges[0],g=this.legend,d=this.options,v=d.labels,w=this.chart,S=w.series[d.seriesIndex],C=w.renderer,c=this.symbols,f=c.labels,r=h.center,a=Math.abs(h.radius),t=d.connectorDistance||0,i=v.align,o=g.options.rtl,e=d.borderWidth,s=d.connectorWidth,n=u.radius||0,l=r-a-e/2+s/2,b=this.fontMetrics,T=b.f/2-(b.h-b.f)/2,D=(l%1?1:.5)-(s%2?0:.5),p=C.styledMode,x=o||i==="left"?-t:t;i==="center"&&(x=0,d.connectorDistance=0,h.labelAttribs.align="center");var A=l+d.labels.y,N=n+x+d.labels.x;c.bubbleItems.push(C.circle(n,r+D,a).attr(p?{}:h.bubbleAttribs).addClass((p?"highcharts-color-"+S.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(d.className||"")).add(this.legendItem.symbol)),c.connectors.push(C.path(C.crispLine([["M",n,l],["L",n+x,l]],d.connectorWidth)).attr(p?{}:h.connectorAttribs).addClass((p?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(d.connectorClassName||"")).add(this.legendItem.symbol));var _=C.text(this.formatLabel(h),N,A+T).attr(p?{}:h.labelAttribs).css(p?{}:v.style).addClass("highcharts-bubble-legend-labels "+(d.labels.className||"")).add(this.legendItem.symbol);f.push(_),_.placed=!0,_.alignAttr={x:N,y:A+T}},y.prototype.getMaxLabelSize=function(){var h,u;return this.symbols.labels.forEach(function(g){u=g.getBBox(!0),h=h?u.width>h.width?u:h:u}),h||{}},y.prototype.formatLabel=function(h){var u=this.options,g=u.labels.formatter,d=u.labels.format,v=this.chart.numberFormatter;return d?R.format(d,h):g?g.call(h):v(h.value,1)},y.prototype.hideOverlappingLabels=function(){var h=this.chart,u=this.options.labels.allowOverlap,g=this.symbols;!u&&g&&(h.hideOverlappingLabels(g.labels),g.labels.forEach(function(d,v){d.newOpacity?d.newOpacity!==d.oldOpacity&&g.connectors[v].show():g.connectors[v].hide()}))},y.prototype.getRanges=function(){var h,u,g=this.legend.bubbleLegend,d=g.chart.series,v=g.options.ranges,w=Number.MAX_VALUE,S=-Number.MAX_VALUE;return d.forEach(function(C){C.isBubble&&!C.ignoreSeries&&(u=C.zData.filter(I)).length&&(w=M(C.options.zMin,Math.min(w,Math.max(z(u),C.options.displayNegative===!1?C.options.zThreshold:-Number.MAX_VALUE))),S=M(C.options.zMax,Math.max(S,U(u))))}),h=w===S?[{value:S}]:[{value:w},{value:(w+S)/2},{value:S,autoRanges:!0}],v.length&&v[0].radius&&h.reverse(),h.forEach(function(C,c){v&&v[c]&&(h[c]=E(v[c],C))}),h},y.prototype.predictBubbleSizes=function(){var h,u=this.chart,g=this.fontMetrics,d=u.legend.options,v=d.floating,w=d.layout==="horizontal",S=w?u.legend.lastLineHeight:0,C=u.plotSizeX,c=u.plotSizeY,f=u.series[this.options.seriesIndex],r=f.getPxExtremes(),a=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(c,C),o=f.options.maxSize;return v||!/%$/.test(o)?h=t:(o=parseFloat(o),h=(i+S-g.h/2)*o/100/(o/100+1),(w&&c-h>=C||!w&&C-h>=c)&&(h=t)),[a,Math.ceil(h)]},y.prototype.updateRanges=function(h,u){var g=this.legend.options.bubbleLegend;g.minSize=h,g.maxSize=u,g.ranges=this.getRanges()},y.prototype.correctSizes=function(){var h=this.legend,u=this.chart.series[this.options.seriesIndex].getPxExtremes(),g=u.maxPxSize,d=this.options.maxSize;Math.abs(Math.ceil(g)-d)>1&&(this.updateRanges(this.options.minSize,u.maxPxSize),h.render())},y}()}),et(B,"Series/Bubble/BubbleLegendComposition.js",[B["Series/Bubble/BubbleLegendDefaults.js"],B["Series/Bubble/BubbleLegendItem.js"],B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=H.setOptions,Z=V.addEvent,U=V.objectEach,z=V.wrap,I=[];function E(g,d,v){var w,S,C,c=this,f=c.legend,r=M(c)>=0;f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&r?(w=f.bubbleLegend.options,S=f.bubbleLegend.predictBubbleSizes(),f.bubbleLegend.updateRanges(S[0],S[1]),w.placed||(f.group.placed=!1,f.allItems.forEach(function(a){(C=a.legendItem||{}).group&&(C.group.translateY=null)})),f.render(),c.getMargins(),c.axes.forEach(function(a){a.visible&&a.render(),w.placed||(a.setScale(),a.updateNames(),U(a.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),w.placed=!0,c.getMargins(),g.call(c,d,v),f.bubbleLegend.correctSizes(),u(f,k(f))):(g.call(c,d,v),f&&f.options.enabled&&f.bubbleLegend&&(f.render(),u(f,k(f))))}function M(g){for(var d=g.series,v=0;v<d.length;){if(d[v]&&d[v].isBubble&&d[v].visible&&d[v].zData.length)return v;v++}return-1}function k(g){var d,v,w,S=g.allItems,C=[],c=S.length,f=0,r=0;for(f=0;f<c;f++)if(v=S[f].legendItem||{},w=(S[f+1]||{}).legendItem||{},v.labelHeight&&(S[f].itemHeight=v.labelHeight),S[f]===S[c-1]||v.y!==w.y){for(C.push({height:0}),d=C[C.length-1];r<=f;r++)S[r].itemHeight>d.height&&(d.height=S[r].itemHeight);d.step=f}return C}function y(g){var d=this,v=d.bubbleLegend,w=d.options,S=w.bubbleLegend,C=M(d.chart);v&&v.ranges&&v.ranges.length&&(S.ranges.length&&(S.autoRanges=!!S.ranges[0].autoRanges),d.destroyItem(v)),C>=0&&w.enabled&&S.enabled&&(S.seriesIndex=C,d.bubbleLegend=new R(S,d),d.bubbleLegend.addToLegend(g.allItems))}function h(){var g,d=this,v=d.chart,w=d.visible,S=d.chart.legend;S&&S.bubbleLegend&&(d.visible=!w,d.ignoreSeries=w,g=M(v)>=0,S.bubbleLegend.visible!==g&&(S.update({bubbleLegend:{enabled:g}}),S.bubbleLegend.visible=g),d.visible=w)}function u(g,d){var v,w,S,C,c=g.allItems,f=g.options.rtl,r=0;c.forEach(function(a,t){(C=a.legendItem||{}).group&&(v=C.group.translateX||0,w=C.y||0,((S=a.movementX)||f&&a.ranges)&&(S=f?v-a.options.maxSize/2:v+S,C.group.attr({translateX:S})),t>d[r].step&&r++,C.group.attr({translateY:Math.round(w+d[r].height/2)}),C.y=w+d[r].height/2)})}return{compose:function(g,d,v){I.indexOf(g)===-1&&(I.push(g),$({legend:{bubbleLegend:W}}),z(g.prototype,"drawChartBox",E)),I.indexOf(d)===-1&&(I.push(d),Z(d,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",h))}}}),et(B,"Series/Bubble/BubblePoint.js",[B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,k){M.__proto__=k}||function(M,k){for(var y in k)k.hasOwnProperty(y)&&(M[y]=k[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=R.seriesTypes.scatter.prototype.pointClass,U=H.extend,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.options=void 0,M.series=void 0,M}return $(E,I),E.prototype.haloPath=function(M){return W.prototype.haloPath.call(this,M===0?0:(this.marker&&this.marker.radius||0)+M)},E}(Z);return U(z.prototype,{ttBelow:!1}),z}),et(B,"Series/Bubble/BubbleSeries.js",[B["Series/Bubble/BubbleLegendComposition.js"],B["Series/Bubble/BubblePoint.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(t,i){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},U(t,i)},function(t,i){function o(){this.constructor=t}U(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=H.parse,E=V.noop,M=$.series,k=$.seriesTypes,y=k.column.prototype,h=k.scatter,u=Z.addEvent,g=Z.arrayMax,d=Z.arrayMin,v=Z.clamp,w=Z.extend,S=Z.isNumber,C=Z.merge,c=Z.pick,f=[];function r(){var t,i=this,o=this.len,e=this.chart,s=this.isXAxis,n=s?"xData":"yData",l=this.min,b=this.max-l,T=0,D=o,p=o/b;this.series.forEach(function(x){if(x.bubblePadding&&(x.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var A=x[n];if(s&&((x.onPoint||x).getRadii(0,0,x),x.onPoint&&(x.radii=x.onPoint.radii)),b>0){for(var N=A.length;N--;)if(S(A[N])&&i.dataMin<=A[N]&&A[N]<=i.max){var _=x.radii&&x.radii[N]||0;T=Math.min((A[N]-l)*p-_,T),D=Math.max((A[N]-l)*p+_,D)}}}}),t&&b>0&&!this.logarithmic&&(D-=o,p*=(o+Math.max(0,T)-Math.min(D,o))/o,[["min","userMin",T],["max","userMax",D]].forEach(function(x){c(i.options[x[0]],i[x[1]])===void 0&&(i[x[0]]+=x[2]/p)}))}var a=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 z(i,t),i.compose=function(o,e,s,n){W.compose(e,s,n),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 s=e.graphic;s&&s.width&&(this.hasRendered||s.attr({x:e.plotX,y:e.plotY,width:1,height:1}),s.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,s,n=this,l=this.zData,b=this.yData,T=[],D=this.chart.bubbleZExtremes,p=this.getPxExtremes(),x=p.minPxSize,A=p.maxPxSize;if(!D){var N,_=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(O){if(O.bubblePadding&&(O.visible||!n.chart.options.chart.ignoreHiddenSeries)){var j=(O.onPoint||O).getZExtremes();j&&(_=Math.min(_||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(D={zMin:_,zMax:L},this.chart.bubbleZExtremes=D):D={zMin:0,zMax:0}}for(e=0,o=l.length;e<o;e++)s=l[e],T.push(this.getRadius(D.zMin,D.zMax,x,A,s,b&&b[e]));this.radii=T},i.prototype.getRadius=function(o,e,s,n,l,b){var T=this.options,D=T.sizeBy!=="width",p=T.zThreshold,x=e-o,A=.5;if(b===null||l===null)return null;if(S(l)){if(T.sizeByAbsoluteValue&&(l=Math.abs(l-p),e=x=Math.max(e-p,Math.abs(o-p)),o=0),l<o)return s/2-1;x>0&&(A=(l-o)/x)}return D&&A>=0&&(A=Math.sqrt(A)),Math.ceil(s+A*(n-s))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var s=this.options.marker.fillOpacity,n=M.prototype.pointAttribs.call(this,o,e);return s!==1&&(n.fill=I(n.fill).setOpacity(s).get("rgba")),n},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,s=this.getPxExtremes().minPxSize,n=o.length;n--;){var l=o[n],b=e?e[n]:0;S(b)&&b>=s/2?(l.marker=w(l.marker,{radius:b,width:2*b,height:2*b}),l.dlBox={x:l.plotX-b,y:l.plotY-b,width:2*b,height:2*b}):(l.shapeArgs=l.plotY=l.dlBox=void 0,l.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(n){var l;return typeof n=="string"&&(l=/%$/.test(n),n=parseInt(n,10)),l?o*n/100:n},s=e(c(this.options.minSize,8));return{minPxSize:s,maxPxSize:Math.max(e(c(this.options.maxSize,"20%")),s)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(S);if(e.length){var s=c(o.zMin,v(d(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),n=c(o.zMax,g(e));if(S(s)&&S(n))return{zMin:s,zMax:n}}},i.defaultOptions=C(h.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return S(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}(h);return w(a.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:R,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),u(a,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),u(a,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",a),a}),et(B,"Series/MapBubble/MapBubblePoint.js",[B["Series/Bubble/BubblePoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,k){M.__proto__=k}||function(M,k){for(var y in k)k.hasOwnProperty(y)&&(M[y]=k[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=R.seriesTypes.map.prototype.pointClass.prototype,U=H.extend,z=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}(W);return U(z.prototype,{applyOptions:Z.applyOptions,getProjectedBounds:Z.getProjectedBounds}),z}),et(B,"Series/MapBubble/MapBubbleSeries.js",[B["Series/Bubble/BubbleSeries.js"],B["Series/MapBubble/MapBubblePoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},$(y,h)},function(y,h){function u(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),U=H.seriesTypes,z=U.map.prototype,I=U.mappoint.prototype,E=V.extend,M=V.merge,k=function(y){function h(){var u=y!==null&&y.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u.clearBounds=z.clearBounds,u}return Z(h,y),h.prototype.searchPoint=function(u,g){return this.searchKDTree({clientX:u.chartX-this.chart.plotLeft,plotY:u.chartY-this.chart.plotTop},g,u)},h.prototype.translate=function(){I.translate.call(this),this.getRadii(),this.translateBubble()},h.defaultOptions=M(W.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),h}(W);return E(k.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:z.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:R,processData:z.processData,projectPoint:I.projectPoint,setData:z.setData,setOptions:z.setOptions,updateData:z.updateData,useMapGeometry:!0,xyFromShape:!0}),H.registerSeriesType("mapbubble",k),k}),et(B,"Series/Heatmap/HeatmapPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,k){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},H(M,k)},function(M,k){function y(){this.constructor=M}H(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}),$=W.seriesTypes.scatter.prototype.pointClass,Z=R.clamp,U=R.defined,z=R.extend,I=R.pick,E=function(M){function k(){var y=M!==null&&M.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 V(k,M),k.prototype.applyOptions=function(y,h){return(this.isNull||this.value===null)&&delete this.color,M.prototype.applyOptions.call(this,y,h),this.formatPrefix=this.isNull||this.value===null?"null":"point",this},k.prototype.getCellAttributes=function(){var y=this,h=y.series,u=h.options,g=(u.colsize||1)/2,d=(u.rowsize||1)/2,v=h.xAxis,w=h.yAxis,S=y.options.marker||h.options.marker,C=h.pointPlacementToXValue(),c=I(y.pointPadding,u.pointPadding,0),f={x1:Z(Math.round(v.len-v.translate(y.x-g,!1,!0,!1,!0,-C)),-v.len,2*v.len),x2:Z(Math.round(v.len-v.translate(y.x+g,!1,!0,!1,!0,-C)),-v.len,2*v.len),y1:Z(Math.round(w.translate(y.y-d,!1,!0,!1,!0)),-w.len,2*w.len),y2:Z(Math.round(w.translate(y.y+d,!1,!0,!1,!0)),-w.len,2*w.len)};return[["width","x"],["height","y"]].forEach(function(r){var a=r[0],t=r[1],i=t+"1",o=t+"2",e=Math.abs(f[i]-f[o]),s=S&&S.lineWidth||0,n=Math.abs(f[i]+f[o])/2,l=S&&S[a];if(U(l)&&l<e){var b=l/2+s/2;f[i]=n-b,f[o]=n+b}c&&(t==="y"&&(i=o,o=t+"1"),f[i]+=c,f[o]-=c)}),f},k.prototype.haloPath=function(y){if(!y)return[];var h=this.shapeArgs||{},u=h.x,g=u===void 0?0:u,d=h.y,v=d===void 0?0:d,w=h.width,S=w===void 0?0:w,C=h.height,c=C===void 0?0:C;return[["M",g-y,v-y],["L",g-y,v+c+y],["L",g+S+y,v+c+y],["L",g+S+y,v-y],["Z"]]},k.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},k}($);return z(E.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1}),E}),et(B,"Series/Heatmap/HeatmapSeries.js",[B["Core/Color/Color.js"],B["Series/ColorMapComposition.js"],B["Series/Heatmap/HeatmapPoint.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z,I=this&&this.__extends||(z=function(C,c){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,r){f.__proto__=r}||function(f,r){for(var a in r)r.hasOwnProperty(a)&&(f[a]=r[a])},z(C,c)},function(C,c){function f(){this.constructor=C}z(C,c),C.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),E=$.series,M=$.seriesTypes,k=M.column,y=M.scatter,h=Z.prototype.symbols,u=U.extend,g=U.fireEvent,d=U.isNumber,v=U.merge,w=U.pick,S=function(C){function c(){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(c,C),c.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"))}))},c.prototype.getExtremes=function(){var f=E.prototype.getExtremes.call(this,this.valueData),r=f.dataMin,a=f.dataMax;return d(r)&&(this.valueMin=r),d(a)&&(this.valueMax=a),E.prototype.getExtremes.call(this)},c.prototype.getValidPoints=function(f,r){return E.prototype.getValidPoints.call(this,f,r,!0)},c.prototype.hasData=function(){return!!this.processedXData.length},c.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,h.ellipse=h.circle,f.marker&&(f.marker.r=f.borderRadius)},c.prototype.markerAttribs=function(f,r){var a=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]||{},s=(e.width||o.width||a.width||0)+(e.widthPlus||o.widthPlus||0),n=(e.height||o.height||a.height||0)+(e.heightPlus||o.heightPlus||0);return{x:(a.x||0)+((a.width||0)-s)/2,y:(a.y||0)+((a.height||0)-n)/2,width:s,height:n}}return a},c.prototype.pointAttribs=function(f,r){var a=this,t=E.prototype.pointAttribs.call(a,f,r),i=a.options||{},o=a.chart.options.plotOptions||{},e=o.series||{},s=o.heatmap||{},n=f&&f.options.borderColor||i.borderColor||s.borderColor||e.borderColor,l=f&&f.options.borderWidth||i.borderWidth||s.borderWidth||e.borderWidth||t["stroke-width"];if(t.stroke=f&&f.marker&&f.marker.lineColor||i.marker&&i.marker.lineColor||n||this.color,t["stroke-width"]=l,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||W.parse(t.fill).brighten(b.brightness||0).get(),t.stroke=b.lineColor||t.stroke}return t},c.prototype.translate=function(){var f=this,r=f.options,a=r.marker&&r.marker.symbol||"rect",t=h[a]?a:"rect",i=["circle","square"].indexOf(t)!==-1;f.generatePoints(),f.points.forEach(function(o){var e=o.getCellAttributes(),s=Math.min(e.x1,e.x2),n=Math.min(e.y1,e.y2),l=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||a||"").indexOf("url")===0,i){var T=Math.abs(l-b);s=Math.min(e.x1,e.x2)+(l<b?0:T/2),n=Math.min(e.y1,e.y2)+(l<b?T/2:0),l=b=Math.min(l,b)}o.hasImage&&(o.marker={width:l,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:s,y:n,width:l,height:b},{d:h[t](s,n,l,b,{r:r.borderRadius})})}),g(f,"afterTranslate")},c.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 d(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}}}),c}(y);return u(S.prototype,{axisTypes:R.seriesMembers.axisTypes,colorKey:R.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:R.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:H,specialGroup:"group",trackerGroups:R.seriesMembers.trackerGroups,alignDataLabel:k.prototype.alignDataLabel,colorAttribs:R.seriesMembers.colorAttribs,drawLegendSymbol:V.drawRectangle,getSymbol:E.prototype.getSymbol}),R.compose(S),$.registerSeriesType("heatmap",S),S}),et(B,"masters/modules/map.src.js",[B["Core/Globals.js"],B["Core/Axis/Color/ColorAxis.js"],B["Series/MapBubble/MapBubbleSeries.js"],B["Core/Chart/MapChart.js"],B["Maps/MapView.js"],B["Maps/Projection.js"]],function(W,R,H,V,$,Z){var U=W;U.ColorAxis=R,U.MapChart=V,U.mapChart=U.Map=V.mapChart,U.MapView=$,U.maps=V.maps,U.Projection=Z,R.compose(U.Chart,U.Fx,U.Legend,U.Series),H.compose(U.Axis,U.Chart,U.Legend,U.Series)})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[at(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},6512:(ot,nt,at)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function et(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}et(B,"Series/ColorMapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.seriesTypes.column.prototype,$=R.addEvent,Z=R.defined;return function(U){var z=[];function I(E){var M=this;M.moveToTopOnHover&&M.graphic&&M.graphic.attr({zIndex:E&&E.state==="hover"?1:0})}U.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))}},U.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(E){var M={};return!Z(E.color)||E.state&&E.state!=="normal"||(M[this.colorProp||"fill"]=E.color),M},pointAttribs:V.pointAttribs},U.compose=function(E){var M=E.prototype.pointClass;return z.indexOf(M)===-1&&(z.push(M),$(M,"afterSetState",I)),E}}(H||(H={})),H}),et(B,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function W(R,H,V,$){this.height=R,this.width=H,this.plot=$,this.direction=V,this.startDirection=V,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,U){return Math.max(Z/U,U/Z)}}}return W.prototype.addElement=function(R){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+R,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(R)},W.prototype.reset=function(){this.nW=0,this.lW=0,this.elArr=[],this.total=0},W}()}),et(B,"Series/DrawPointUtilities.js",[B["Core/Utilities.js"]],function(W){return{draw:function(R,H){var V=H.animatableAttribs,$=H.onComplete,Z=H.css,U=H.renderer,z=R.series&&R.series.chart.hasRendered?void 0:R.series&&R.series.options.animation,I=R.graphic;if(H.attribs=H.attribs||{},H.attribs.class=R.getClassName(),R.shouldDraw())I||(R.graphic=I=H.shapeType==="text"?U.text():U[H.shapeType](H.shapeArgs||{}),I.add(H.group)),Z&&I.css(Z),I.attr(H.attribs).animate(V,!H.isNew&&z,$);else if(I){var E=function(){R.graphic=I=I&&I.destroy(),typeof $=="function"&&$()};Object.keys(V).length?I.animate(V,void 0,function(){return E()}):E()}}}}),et(B,"Series/Treemap/TreemapPoint.js",[B["Series/DrawPointUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(h,u){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,d){g.__proto__=d}||function(g,d){for(var v in d)d.hasOwnProperty(v)&&(g[v]=d[v])},V(h,u)},function(h,u){function g(){this.constructor=h}V(h,u),h.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),Z=R.series.prototype.pointClass,U=R.seriesTypes,z=U.pie.prototype.pointClass,I=U.scatter.prototype.pointClass,E=H.extend,M=H.isNumber,k=H.pick,y=function(h){function u(){var g=h!==null&&h.apply(this,arguments)||this;return g.name=void 0,g.node=void 0,g.options=void 0,g.series=void 0,g.shapeType="rect",g.value=void 0,g}return $(u,h),u.prototype.draw=function(g){W.draw(this,g)},u.prototype.getClassName=function(){var g=Z.prototype.getClassName.call(this),d=this.series,v=d.options;return this.node.level<=d.nodeMap[d.rootNode].level?g+=" highcharts-above-level":this.node.isLeaf||k(v.interactByLeaf,!v.allowTraversingTree)?this.node.isLeaf||(g+=" highcharts-internal-node"):g+=" highcharts-internal-node-interactive",g},u.prototype.isValid=function(){return!!(this.id||M(this.value))},u.prototype.setState=function(g){Z.prototype.setState.call(this,g),this.graphic&&this.graphic.attr({zIndex:g==="hover"?1:0})},u.prototype.shouldDraw=function(){return M(this.plotY)&&this.y!==null},u}(I);return E(y.prototype,{setVisible:z.prototype.setVisible}),y}),et(B,"Series/Treemap/TreemapUtilities.js",[B["Core/Utilities.js"]],function(W){var R,H=W.objectEach;return function(V){V.AXIS_MAX=100,V.isBoolean=function($){return typeof $=="boolean"},V.eachObject=function($,Z,U){U=U||this,H($,function(z,I){Z.call(U,z,I,$)})},V.recursive=function $(Z,U,z){var I;z===void 0&&(z=this),(I=U.call(z,Z))!==!1&&$(I,U,z)}}(R||(R={})),R}),et(B,"Series/TreeUtilities.js",[B["Core/Color/Color.js"],B["Core/Utilities.js"]],function(W,R){var H=R.extend,V=R.isArray,$=R.isNumber,Z=R.isObject,U=R.merge,z=R.pick;return{getColor:function(I,E){var M,k,y,h,u,g,d=E.index,v=E.mapOptionsToLevel,w=E.parentColor,S=E.parentColorIndex,C=E.series,c=E.colors,f=E.siblings,r=C.points,a=C.chart.options.chart;return I&&(M=r[I.i],k=v[I.level]||{},M&&k.colorByPoint&&(h=M.index%(c?c.length:a.colorCount),y=c&&c[h]),C.chart.styledMode||(u=z(M&&M.options.color,k&&k.color,y,w&&function(t){var i=k&&k.colorVariation;return i&&i.key==="brightness"&&d&&f?W.parse(t).brighten(i.to*(d/f)).get():t}(w),C.color)),g=z(M&&M.options.colorIndex,k&&k.colorIndex,h,S,E.colorIndex)),{color:u,colorIndex:g}},getLevelOptions:function(I){var E,M,k,y,h,u,g={};if(Z(I))for(y=$(I.from)?I.from:1,u=I.levels,M={},E=Z(I.defaults)?I.defaults:{},V(u)&&(M=u.reduce(function(d,v){var w,S,C;return Z(v)&&$(v.level)&&(C=U({},v),S=z(C.levelIsConstant,E.levelIsConstant),delete C.levelIsConstant,delete C.level,w=v.level+(S?0:y-1),Z(d[w])?U(!0,d[w],C):d[w]=C),d},{})),h=$(I.to)?I.to:1,k=0;k<=h;k++)g[k]=U({},E,Z(M[k])?M[k]:{});return g},setTreeValues:function I(E,M){var k=M.before,y=M.idRoot,h=M.mapIdToNode[y],u=M.levelIsConstant!==!1,g=M.points[E.i],d=g&&g.options||{},v=[],w=0;E.levelDynamic=E.level-(u?0:h.level),E.name=z(g&&g.name,""),E.visible=y===E.id||M.visible===!0,typeof k=="function"&&(E=k(E,M)),E.children.forEach(function(C,c){var f=H({},M);H(f,{index:c,siblings:E.children.length,visible:E.visible}),C=I(C,f),v.push(C),C.visible&&(w+=C.val)});var S=z(d.value,w);return E.visible=S>=0&&(w>0||E.visible),E.children=v,E.childrenTotal=w,E.isLeaf=E.visible&&!w,E.val=S,E},updateRootId:function(I){var E,M;return Z(I)&&(M=Z(I.options)?I.options:{},E=z(I.rootNode,M.rootId,""),Z(I.userOptions)&&(I.userOptions.rootId=E),I.rootNode=E),E}}}),et(B,"Extensions/Breadcrumbs.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/FormatUtilities.js"]],function(W,R,H,V,$){var Z=R.defaultOptions,U=$.format,z=V.addEvent,I=V.objectEach,E=V.extend,M=V.fireEvent,k=V.merge,y=V.pick,h=V.defined,u=V.isString;E(Z.lang,{mainBreadcrumb:"Main"});var g=function(){function d(v,w){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var S=k(v.options.drilldown&&v.options.drilldown.drillUpButton,d.defaultBreadcrumbsOptions,v.options.navigation&&v.options.navigation.breadcrumbs,w);this.chart=v,this.options=S||{}}return d.prototype.updateProperties=function(v){this.setList(v),this.setLevel(),this.isDirty=!0},d.prototype.setList=function(v){this.list=v},d.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},d.prototype.getLevel=function(){return this.level},d.prototype.getButtonText=function(v){var w=this.chart,S=this.options,C=w.options.lang,c=y(S.format,S.showFullPath?"{level.name}":"← {level.name}"),f=C&&y(C.drillUpText,C.mainBreadcrumb),r=S.formatter&&S.formatter(v)||U(c,{level:v.levelOptions},w)||"";return(u(r)&&!r.length||r==="← ")&&h(f)&&(r=S.showFullPath?f:"← "+f),r},d.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},d.prototype.render=function(){var v=this,w=v.chart,S=v.options;!v.group&&S&&(v.group=w.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:S.zIndex}).add()),S.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},d.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},d.prototype.renderSingleButton=function(){var v=this,w=v.chart,S=v.list,C=v.options.buttonSpacing;this.destroyListElements();var c=v.group?v.group.getBBox().width:C,f=C,r=S[S.length-2];!w.drillUpButton&&this.level>0?w.drillUpButton=v.renderButton(r,c,f):w.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},d.prototype.alignBreadcrumbsGroup=function(v){var w=this;if(w.group){var S=w.options,C=S.buttonTheme,c=S.position,f=S.relativeTo==="chart"||S.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",r=w.group.getBBox(),a=2*(C.padding||0)+S.buttonSpacing;c.width=r.width+a,c.height=r.height+a;var t=k(c);v&&(t.x+=v),w.options.rtl&&(t.x+=c.width),t.y=y(t.y,this.yOffset,0),w.group.align(t,!0,f)}},d.prototype.renderButton=function(v,w,S){var C=this,c=this.chart,f=C.options,r=k(f.buttonTheme),a=c.renderer.button(C.getButtonText(v),w,S,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,M(C,"up",t))},r).addClass("highcharts-breadcrumbs-button").add(C.group);return c.styledMode||a.attr(f.style),a},d.prototype.renderSeparator=function(v,w){var S=this.chart,C=this.options.separator,c=S.renderer.label(C.text,v,w,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return S.styledMode||c.css(C.style),c},d.prototype.update=function(v){k(!0,this.options,v),this.destroy(),this.isDirty=!0},d.prototype.updateSingleButton=function(){var v=this.chart,w=this.list[this.level-1];v.drillUpButton&&v.drillUpButton.attr({text:this.getButtonText(w)})},d.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},d.prototype.destroyListElements=function(v){var w=this.elementList;I(w,function(S,C){!v&&w[C].updated||((S=w[C]).button&&S.button.destroy(),S.separator&&S.separator.destroy(),delete S.button,delete S.separator,delete w[C])}),v&&(this.elementList={})},d.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},d.prototype.resetElementListState=function(){I(this.elementList,function(v){v.updated=!1})},d.prototype.updateListElements=function(){var v,w=this,S=w.elementList,C=w.options.buttonSpacing,c=w.list,f=w.options.rtl,r=f?-1:1,a=function(e,s){return r*e.getBBox().width+r*s},t=function(e,s,n){e.translate(s-e.getBBox().width,n)},i=w.group?a(w.group,C):C,o=C;c.forEach(function(e,s){var n,l,b=s===c.length-1;S[e.level]?(n=(v=S[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+=a(v.separator,C)),S[e.level].updated=!0):(n=w.renderButton(e,i,o),f&&t(n,i,o),i+=a(n,C),b||(l=w.renderSeparator(i,o),f&&t(l,i,o),i+=a(l,C)),S[e.level]={button:n,separator:l,updated:!0}),n&&n.setState(b?2:0)})},d.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},d}();return H.Breadcrumbs||(H.Breadcrumbs=g,z(W,"getMargins",function(){var d=this.breadcrumbs;if(d&&!d.options.floating&&d.level){var v=d.options,w=v.buttonTheme,S=(w.height||0)+2*(w.padding||0)+v.buttonSpacing,C=v.position.verticalAlign;C==="bottom"?(this.marginBottom=(this.marginBottom||0)+S,d.yOffset=S):C!=="middle"?(this.plotTop+=S,d.yOffset=-S):d.yOffset=void 0}}),z(W,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),z(W,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),z(W,"afterShowResetZoom",function(){var d=this;if(d.breadcrumbs){var v=d.resetZoomButton&&d.resetZoomButton.getBBox(),w=d.breadcrumbs.options;v&&w.position.align==="right"&&w.relativeTo==="plotBox"&&d.breadcrumbs.alignBreadcrumbsGroup(-v.width-w.buttonSpacing)}}),z(W,"selection",function(d){d.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),g}),et(B,"Series/Treemap/TreemapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Series/Treemap/TreemapUtilities.js"],B["Core/Utilities.js"]],function(W,R,H){var V=W.series,$=H.addEvent,Z=H.extend,U=!1;$(V,"afterBindAxes",function(){var z,I=this,E=I.xAxis,M=I.yAxis;E&&M&&(I.is("treemap")?(z={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:R.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},Z(M.options,z),Z(E.options,z),U=!0):U&&(M.setOptions(M.userOptions),E.setOptions(E.userOptions),U=!1))})}),et(B,"Series/Treemap/TreemapNode.js",[],function(){return function(){function W(){this.childrenTotal=0,this.visible=!1}return W.prototype.init=function(R,H,V,$,Z,U,z){return this.id=R,this.i=H,this.children=V,this.height=$,this.level=Z,this.series=U,this.parent=z,this},W}()}),et(B,"Series/Treemap/TreemapSeries.js",[B["Core/Color/Color.js"],B["Series/ColorMapComposition.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Treemap/TreemapAlgorithmGroup.js"],B["Series/Treemap/TreemapPoint.js"],B["Series/Treemap/TreemapUtilities.js"],B["Series/TreeUtilities.js"],B["Extensions/Breadcrumbs.js"],B["Core/Utilities.js"],B["Series/Treemap/TreemapNode.js"]],function(W,R,H,V,$,Z,U,z,I,E,M,k){var y,h=this&&this.__extends||(y=function(A,N){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,L){_.__proto__=L}||function(_,L){for(var O in L)L.hasOwnProperty(O)&&(_[O]=L[O])},y(A,N)},function(A,N){function _(){this.constructor=A}y(A,N),A.prototype=N===null?Object.create(N):(_.prototype=N.prototype,new _)}),u=W.parse,g=H.noop,d=$.series,v=$.seriesTypes,w=v.column,S=v.heatmap,C=v.scatter,c=I.getColor,f=I.getLevelOptions,r=I.updateRootId,a=M.addEvent,t=M.correctFloat,i=M.defined,o=M.error,e=M.extend,s=M.fireEvent,n=M.isArray,l=M.isObject,b=M.isString,T=M.merge,D=M.pick,p=M.stableSort,x=function(A){function N(){var _=A!==null&&A.apply(this,arguments)||this;return _.axisRatio=void 0,_.data=void 0,_.mapOptionsToLevel=void 0,_.nodeMap=void 0,_.nodeList=void 0,_.options=void 0,_.points=void 0,_.rootNode=void 0,_.tree=void 0,_.level=void 0,_}return h(N,A),N.prototype.algorithmCalcPoints=function(_,L,O,j){var Y,X,G,q,Q,J=O.lW,rt=O.lH,lt=O.plot,gt=0,mt=O.elArr.length-1;L?(J=O.nW,rt=O.nH):Q=O.elArr[O.elArr.length-1],O.elArr.forEach(function(bt){(L||gt<mt)&&(O.direction===0?(Y=lt.x,X=lt.y,q=bt/(G=J)):(Y=lt.x,X=lt.y,G=bt/(q=rt)),j.push({x:Y,y:X,width:G,height:t(q)}),O.direction===0?lt.y=lt.y+q:lt.x=lt.x+G),gt+=1}),O.reset(),O.direction===0?O.width=O.width-J:O.height=O.height-rt,lt.y=lt.parent.y+(lt.parent.height-O.height),lt.x=lt.parent.x+(lt.parent.width-O.width),_&&(O.direction=1-O.direction),L||O.addElement(Q)},N.prototype.algorithmFill=function(_,L,O){var j,Y,X,G,q,Q=[],J=L.direction,rt=L.x,lt=L.y,gt=L.width,mt=L.height;return O.forEach(function(bt){j=L.width*L.height*(bt.val/L.val),Y=rt,X=lt,J===0?(gt-=G=j/(q=mt),rt+=G):(mt-=q=j/(G=gt),lt+=q),Q.push({x:Y,y:X,width:G,height:q}),_&&(J=1-J)}),Q},N.prototype.algorithmLowAspectRatio=function(_,L,O){var j,Y=[],X=this,G={x:L.x,y:L.y,parent:L},q=L.direction,Q=0,J=O.length-1,rt=new Z(L.height,L.width,q,G);return O.forEach(function(lt){j=L.width*L.height*(lt.val/L.val),rt.addElement(j),rt.lP.nR>rt.lP.lR&&X.algorithmCalcPoints(_,!1,rt,Y,G),Q===J&&X.algorithmCalcPoints(_,!0,rt,Y,G),Q+=1}),Y},N.prototype.alignDataLabel=function(_,L,O){var j=O.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),_.dataLabel&&_.dataLabel.attr({zIndex:(_.node.zIndex||0)+1})},N.prototype.calculateChildrenAreas=function(_,L){var O,j,Y=this,X=Y.options,G=Y.mapOptionsToLevel[_.level+1],q=D(Y[G&&G.layoutAlgorithm]&&G.layoutAlgorithm,X.layoutAlgorithm),Q=X.alternateStartingDirection;j=_.children.filter(function(J){return!J.ignore}),G&&G.layoutStartingDirection&&(L.direction=G.layoutStartingDirection==="vertical"?0:1),O=Y[q](L,j),j.forEach(function(J,rt){var lt=O[rt];J.values=T(lt,{val:J.childrenTotal,direction:Q?1-L.direction:L.direction}),J.pointValues=T(lt,{x:lt.x/Y.axisRatio,y:z.AXIS_MAX-lt.y-lt.height,width:lt.width/Y.axisRatio}),J.children.length&&Y.calculateChildrenAreas(J,J.values)})},N.prototype.createList=function(_){var L=this.chart,O=L.breadcrumbs,j=[];if(O){var Y=0;j.push({level:Y,levelOptions:L.series[0]});for(var X=_.target.nodeMap[_.newRootId],G=[];X.parent||X.parent==="";)G.push(X),X=_.target.nodeMap[X.parent];G.reverse().forEach(function(q){j.push({level:++Y,levelOptions:q})}),j.length<=1&&(j.length=0)}return j},N.prototype.drawDataLabels=function(){var _,L,O=this,j=O.mapOptionsToLevel;O.points.filter(function(Y){return Y.node.visible}).forEach(function(Y){L=j[Y.node.level],_={style:{}},Y.node.isLeaf||(_.enabled=!1),L&&L.dataLabels&&(_=T(_,L.dataLabels),O._hasPointLabels=!0),Y.shapeArgs&&(_.style.width=Y.shapeArgs.width,Y.dataLabel&&Y.dataLabel.css({width:Y.shapeArgs.width+"px"})),Y.dlOptions=T(_,Y.options.dataLabels)}),d.prototype.drawDataLabels.call(this)},N.prototype.drawPoints=function(_){_===void 0&&(_=this.points);var L=this,O=L.chart,j=O.renderer,Y=O.styledMode,X=L.options,G=Y?{}:X.shadow,q=X.borderRadius,Q=O.pointCount<X.animationLimit,J=X.allowTraversingTree;_.forEach(function(rt){var lt=rt.node.levelDynamic,gt={},mt={},bt={},yt="level-group-"+rt.node.level,ht=!!rt.graphic,it=Q&&ht,st=rt.shapeArgs;rt.shouldDraw()&&(rt.isInside=!0,q&&(mt.r=q),T(!0,it?gt:mt,ht?st:{},Y?{}:L.pointAttribs(rt,rt.selected?"select":void 0)),L.colorAttribs&&Y&&e(bt,L.colorAttribs(rt)),L[yt]||(L[yt]=j.g(yt).attr({zIndex:1e3-(lt||0)}).add(L.group),L[yt].survive=!0)),rt.draw({animatableAttribs:gt,attribs:mt,css:bt,group:L[yt],renderer:j,shadow:G,shapeArgs:st,shapeType:rt.shapeType}),J&&rt.graphic&&(rt.drillId=X.interactByLeaf?L.drillToByLeaf(rt):L.drillToByGroup(rt))})},N.prototype.drillToByGroup=function(_){var L=!1;return _.node.level-this.nodeMap[this.rootNode].level!=1||_.node.isLeaf||(L=_.id),L},N.prototype.drillToByLeaf=function(_){var L,O=this,j=!1;if(_.node.parent!==O.rootNode&&_.node.isLeaf)for(L=_.node;!j;)(L=O.nodeMap[L.parent]).parent===O.rootNode&&(j=L.id);return j},N.prototype.drillToNode=function(_,L){o(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(_,L)},N.prototype.drillUp=function(){var _=this,L=_.nodeMap[_.rootNode];L&&b(L.parent)&&_.setRootNode(L.parent,!0,{trigger:"traverseUpButton"})},N.prototype.getExtremes=function(){var _=d.prototype.getExtremes.call(this,this.colorValueData),L=_.dataMin,O=_.dataMax;return this.valueMin=L,this.valueMax=O,d.prototype.getExtremes.call(this)},N.prototype.getListOfParents=function(_,L){var O=n(_)?_:[],j=n(L)?L:[],Y=O.reduce(function(X,G,q){var Q=D(G.parent,"");return X[Q]===void 0&&(X[Q]=[]),X[Q].push(q),X},{"":[]});return z.eachObject(Y,function(X,G,q){G!==""&&j.indexOf(G)===-1&&(X.forEach(function(Q){q[""].push(Q)}),delete q[G])}),Y},N.prototype.getTree=function(){var _=this,L=this.data.map(function(j){return j.id}),O=_.getListOfParents(this.data,L);return _.nodeMap={},_.nodeList=[],_.buildTree("",-1,0,O)},N.prototype.buildTree=function(_,L,O,j,Y){var X,G,q=this,Q=[],J=q.points[L],rt=0;return(j[_]||[]).forEach(function(lt){G=q.buildTree(q.points[lt].id,lt,O+1,j,_),rt=Math.max(G.height+1,rt),Q.push(G)}),X=new q.NodeClass().init(_,L,Q,rt,O,q,Y),Q.forEach(function(lt){lt.parentNode=X}),q.nodeMap[X.id]=X,q.nodeList.push(X),J&&(J.node=X,X.point=J),X},N.prototype.hasData=function(){return!!this.processedXData.length},N.prototype.init=function(_,L){var O,j=this,Y=T(L.drillUpButton,L.breadcrumbs);O=a(j,"setOptions",function(X){var G=X.userOptions;i(G.allowDrillToNode)&&!i(G.allowTraversingTree)&&(G.allowTraversingTree=G.allowDrillToNode,delete G.allowDrillToNode),i(G.drillUpButton)&&!i(G.traverseUpButton)&&(G.traverseUpButton=G.drillUpButton,delete G.drillUpButton)}),d.prototype.init.call(j,_,L),delete j.opacity,j.eventsToUnbind.push(O),j.options.allowTraversingTree&&(j.eventsToUnbind.push(a(j,"click",j.onClickDrillToNode)),j.eventsToUnbind.push(a(j,"setRootNode",function(X){var G=j.chart;G.breadcrumbs&&G.breadcrumbs.updateProperties(j.createList(X))})),j.eventsToUnbind.push(a(j,"update",function(X,G){var q=this.chart.breadcrumbs;q&&X.options.breadcrumbs&&q.update(X.options.breadcrumbs)})),j.eventsToUnbind.push(a(j,"destroy",function(X){var G=this.chart;G.breadcrumbs&&(G.breadcrumbs.destroy(),X.keepEventsForUpdate||(G.breadcrumbs=void 0))}))),_.breadcrumbs||(_.breadcrumbs=new E(_,Y)),j.eventsToUnbind.push(a(_.breadcrumbs,"up",function(X){for(var G=this.level-X.newLevel,q=0;q<G;q++)j.drillUp()}))},N.prototype.onClickDrillToNode=function(_){var L=_.point,O=L&&L.drillId;b(O)&&(L.setState(""),this.setRootNode(O,!0,{trigger:"click"}))},N.prototype.pointAttribs=function(_,L){var O,j,Y=l(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},X=_&&Y[_.node.level]||{},G=this.options,q=L&&G.states&&G.states[L]||{},Q=_&&_.getClassName()||"";return O={stroke:_&&_.borderColor||X.borderColor||q.borderColor||G.borderColor,"stroke-width":D(_&&_.borderWidth,X.borderWidth,q.borderWidth,G.borderWidth),dashstyle:_&&_.borderDashStyle||X.borderDashStyle||q.borderDashStyle||G.borderDashStyle,fill:_&&_.color||this.color},Q.indexOf("highcharts-above-level")!==-1?(O.fill="none",O["stroke-width"]=0):Q.indexOf("highcharts-internal-node-interactive")!==-1?(j=D(q.opacity,G.opacity),O.fill=u(O.fill).setOpacity(j).get(),O.cursor="pointer"):Q.indexOf("highcharts-internal-node")!==-1?O.fill="none":L&&(O.fill=u(O.fill).brighten(q.brightness).get()),O},N.prototype.setColorRecursive=function(_,L,O,j,Y){var X,G,q=this,Q=q&&q.chart,J=Q&&Q.options&&Q.options.colors;_&&(X=c(_,{colors:J,index:j,mapOptionsToLevel:q.mapOptionsToLevel,parentColor:L,parentColorIndex:O,series:q,siblings:Y}),(G=q.points[_.i])&&(G.color=X.color,G.colorIndex=X.colorIndex),(_.children||[]).forEach(function(rt,lt){q.setColorRecursive(rt,X.color,X.colorIndex,lt,_.children.length)}))},N.prototype.setPointValues=function(){var _=this,L=_.points,O=_.xAxis,j=_.yAxis,Y=_.chart.styledMode;L.forEach(function(X){var G=X.node,q=G.pointValues,Q=G.visible;if(q&&Q){var J=q.height,rt=q.width,lt=q.x,gt=q.y,mt=function(dt){return Y?0:(_.pointAttribs(dt)["stroke-width"]||0)%2/2}(X),bt=Math.round(O.toPixels(lt,!0))-mt,yt=Math.round(O.toPixels(lt+rt,!0))-mt,ht=Math.round(j.toPixels(gt,!0))-mt,it=Math.round(j.toPixels(gt+J,!0))-mt,st={x:Math.min(bt,yt),y:Math.min(ht,it),width:Math.abs(yt-bt),height:Math.abs(it-ht)};X.plotX=st.x+st.width/2,X.plotY=st.y+st.height/2,X.shapeArgs=st}else delete X.plotX,delete X.plotY})},N.prototype.setRootNode=function(_,L,O){var j=this,Y=e({newRootId:_,previousRootId:j.rootNode,redraw:D(L,!0),series:j},O);s(j,"setRootNode",Y,function(X){var G=X.series;G.idPreviousRoot=X.previousRootId,G.rootNode=X.newRootId,G.isDirty=!0,X.redraw&&G.chart.redraw()})},N.prototype.setState=function(_){this.options.inactiveOtherPoints=!0,d.prototype.setState.call(this,_,!1),this.options.inactiveOtherPoints=!1},N.prototype.setTreeValues=function(_){var L,O=this,j=O.options,Y=O.rootNode,X=O.nodeMap[Y],G=!z.isBoolean(j.levelIsConstant)||j.levelIsConstant,q=0,Q=[],J=O.points[_.i];return _.children.forEach(function(rt){rt=O.setTreeValues(rt),Q.push(rt),rt.ignore||(q+=rt.val)}),p(Q,function(rt,lt){return(rt.sortIndex||0)-(lt.sortIndex||0)}),L=D(J&&J.options.value,q),J&&(J.value=L),e(_,{children:Q,childrenTotal:q,ignore:!(D(J&&J.visible,!0)&&L>0),isLeaf:_.visible&&!q,levelDynamic:_.level-(G?0:X.level),name:D(J&&J.name,""),sortIndex:D(J&&J.sortIndex,-L),val:L}),_},N.prototype.sliceAndDice=function(_,L){return this.algorithmFill(!0,_,L)},N.prototype.squarified=function(_,L){return this.algorithmLowAspectRatio(!0,_,L)},N.prototype.strip=function(_,L){return this.algorithmLowAspectRatio(!1,_,L)},N.prototype.stripes=function(_,L){return this.algorithmFill(!1,_,L)},N.prototype.translate=function(){var _,L,O,j,Y,X=this,G=X.options,q=r(X);d.prototype.translate.call(X),j=X.tree=X.getTree(),_=X.nodeMap[q],q===""||_&&_.children.length||(X.setRootNode("",!1),q=X.rootNode,_=X.nodeMap[q]),X.mapOptionsToLevel=f({from:_.level+1,levels:G.levels,to:j.height,defaults:{levelIsConstant:X.options.levelIsConstant,colorByPoint:G.colorByPoint}}),z.recursive(X.nodeMap[X.rootNode],function(Q){var J=!1,rt=Q.parent;return Q.visible=!0,(rt||rt==="")&&(J=X.nodeMap[rt]),J}),z.recursive(X.nodeMap[X.rootNode].children,function(Q){var J=!1;return Q.forEach(function(rt){rt.visible=!0,rt.children.length&&(J=(J||[]).concat(rt.children))}),J}),X.setTreeValues(j),X.axisRatio=X.xAxis.len/X.yAxis.len,X.nodeMap[""].pointValues=L={x:0,y:0,width:z.AXIS_MAX,height:z.AXIS_MAX},X.nodeMap[""].values=O=T(L,{width:L.width*X.axisRatio,direction:G.layoutStartingDirection==="vertical"?0:1,val:j.val}),X.calculateChildrenAreas(j,O),X.colorAxis||G.colorByPoint||X.setColorRecursive(X.tree),G.allowTraversingTree&&(Y=_.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=T(C.defaultOptions,{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var _=this&&this.point?this.point:{};return b(_.name)?_.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:S?0:.1,halo:!1,opacity:.75,shadow:!1}}}),N}(C);return e(x.prototype,{buildKDTree:g,colorAttribs:R.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:V.drawRectangle,getExtremesFromAll:!0,getSymbol:g,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:U,NodeClass:k,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:z.recursive}}),R.compose(x),$.registerSeriesType("treemap",x),x}),et(B,"Series/Sunburst/SunburstPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(E,M){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,y){k.__proto__=y}||function(k,y){for(var h in y)y.hasOwnProperty(h)&&(k[h]=y[h])},H(E,M)},function(E,M){function k(){this.constructor=E}H(E,M),E.prototype=M===null?Object.create(M):(k.prototype=M.prototype,new k)}),$=W.series.prototype.pointClass,Z=W.seriesTypes.treemap.prototype.pointClass,U=R.correctFloat,z=R.extend,I=function(E){function M(){var k=E!==null&&E.apply(this,arguments)||this;return k.node=void 0,k.options=void 0,k.series=void 0,k.shapeExisting=void 0,k.shapeType=void 0,k}return V(M,E),M.prototype.getDataLabelPath=function(k){var y,h=this.series.chart.renderer,u=this.shapeExisting,g=u.start,d=u.end,v=g+(d-g)/2,w=v<0&&v>-Math.PI||v>Math.PI,S=u.r+(k.options.distance||0);return g===-Math.PI/2&&U(d)===U(1.5*Math.PI)&&(g=-Math.PI+Math.PI/360,d=-Math.PI/360,w=!0),d-g>Math.PI&&(w=!1,y=!0),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=h.arc({open:!0,longArc:y?1:0}).attr({start:w?g:d,end:w?d:g,clockwise:+w,x:u.x,y:u.y,r:(S+u.innerR)/2}).add(h.defs),this.dataLabelPath},M.prototype.isValid=function(){return!0},M}(Z);return z(I.prototype,{getClassName:$.prototype.getClassName,haloPath:$.prototype.haloPath,setState:$.prototype.setState}),I}),et(B,"Series/Sunburst/SunburstUtilities.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=W.seriesTypes.treemap,$=R.isNumber,Z=R.isObject,U=R.merge;return function(z){function I(E,M){var k,y=[];if($(E)&&$(M)&&E<=M)for(k=E;k<=M;k++)y.push(k);return y}z.recursive=V.prototype.utils.recursive,z.calculateLevelSizes=function(E,M){var k,y,h,u,g,d,v,w=Z(M)?M:{},S=0;return Z(E)&&(k=U({},E),d=$(w.from)?w.from:0,v=$(w.to)?w.to:0,h=I(d,v),u=Object.keys(k).filter(function(C){return h.indexOf(+C)===-1}),y=g=$(w.diffRadius)?w.diffRadius:0,h.forEach(function(C){var c=k[C],f=c.levelSize.unit,r=c.levelSize.value;f==="weight"?S+=r:f==="percentage"?(c.levelSize={unit:"pixels",value:r/100*y},g-=c.levelSize.value):f==="pixels"&&(g-=r)}),h.forEach(function(C){var c,f=k[C];f.levelSize.unit==="weight"&&(c=f.levelSize.value,k[C].levelSize={unit:"pixels",value:c/S*g})}),u.forEach(function(C){k[C].levelSize={value:0,unit:"pixels"}})),k},z.getLevelFromAndTo=function(E){var M=E.level;return{from:M>0?M:1,to:M+E.height}},z.range=I}(H||(H={})),H}),et(B,"Series/Sunburst/SunburstNode.js",[B["Series/Treemap/TreemapNode.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){return $!==null&&$.apply(this,arguments)||this}return H(Z,$),Z}(W);return V}),et(B,"Series/Sunburst/SunburstSeries.js",[B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Sunburst/SunburstPoint.js"],B["Series/Sunburst/SunburstUtilities.js"],B["Series/TreeUtilities.js"],B["Core/Utilities.js"],B["Series/Sunburst/SunburstNode.js"]],function(W,R,H,V,$,Z,U,z){var I,E=this&&this.__extends||(I=function(D,p){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,A){x.__proto__=A}||function(x,A){for(var N in A)A.hasOwnProperty(N)&&(x[N]=A[N])},I(D,p)},function(D,p){function x(){this.constructor=D}I(D,p),D.prototype=p===null?Object.create(p):(x.prototype=p.prototype,new x)}),M=W.getCenter,k=W.getStartAndEndRadians,y=R.noop,h=H.series,u=H.seriesTypes,g=u.column,d=u.treemap,v=Z.getColor,w=Z.getLevelOptions,S=Z.setTreeValues,C=Z.updateRootId,c=U.defined,f=U.error,r=U.extend,a=U.isNumber,t=U.isObject,i=U.isString,o=U.merge,e=U.splat,s=180/Math.PI,n=function(D,p,x,A){return{x:D+Math.cos(x)*A,y:p+Math.sin(x)*A}};function l(D,p,x){var A;return D.node.isLeaf||(A=p===D.id?x[p].parent:D.id),A}function b(D,p){var x=p.mapIdToNode,A=D.parent,N=A?x[A]:void 0,_=p.series,L=_.chart,O=_.points[D.i],j=_.options.colors||L&&L.options.colors,Y=v(D,{colors:j,colorIndex:_.colorIndex,index:p.index,mapOptionsToLevel:p.mapOptionsToLevel,parentColor:N&&N.color,parentColorIndex:N&&N.colorIndex,series:p.series,siblings:p.siblings});return D.color=Y.color,D.colorIndex=Y.colorIndex,O&&(O.color=D.color,O.colorIndex=D.colorIndex,D.sliced=D.id!==p.idRoot&&O.sliced),D}var T=function(D){function p(){var x=D!==null&&D.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(p,D),p.prototype.alignDataLabel=function(x,A,N){if(!N.textPath||!N.textPath.enabled)return D.prototype.alignDataLabel.apply(this,arguments)},p.prototype.animate=function(x){var A,N=this.chart,_=[N.plotWidth/2,N.plotHeight/2],L=N.plotLeft,O=N.plotTop,j=this.group;x?(A={translateX:_[0]+L,translateY:_[1]+O,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},j.attr(A)):(A={translateX:L,translateY:O,scaleX:1,scaleY:1,rotation:0,opacity:1},j.animate(A,this.options.animation))},p.prototype.drawPoints=function(){var x,A=this,N=A.mapOptionsToLevel,_=A.shapeRoot,L=A.group,O=A.hasRendered,j=A.rootNode,Y=A.idPreviousRoot,X=A.nodeMap,G=X[Y],q=G&&G.shapeArgs,Q=A.points,J=A.startAndEndRadians,rt=A.chart,lt=rt&&rt.options&&rt.options.chart||{},gt=typeof lt.animation!="boolean"||lt.animation,mt=A.center,bt={x:mt[0],y:mt[1]},yt=mt[3]/2,ht=A.chart.renderer,it=!1,st=!1,dt=!!(gt&&O&&j!==Y&&A.dataLabelsGroup);dt&&(A.dataLabelsGroup.attr({opacity:0}),x=function(){var vt=A;it=!0,vt.dataLabelsGroup&&vt.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),Q.forEach(function(vt){var Ct,xt,wt=vt.node,Mt=N[wt.level],St=vt.shapeExisting||{},Tt=wt.shapeArgs||{},Lt=!(!wt.visible||!wt.shapeArgs);Ct=O&>?function(Pt,Dt){var jt=Dt.point,Ot=Dt.radians,It=Dt.innerR,Nt=Dt.idRoot,Zt=Dt.idPreviousRoot,zt=Dt.shapeExisting,Ht=Dt.shapeRoot,Kt=Dt.shapePreviousRoot,me=Dt.visible,Ut={},te={end:Pt.end,start:Pt.start,innerR:Pt.innerR,r:Pt.r,x:Pt.x,y:Pt.y};return me?!jt.graphic&&Kt&&((Ut=Nt===jt.id?{start:Ot.start,end:Ot.end}:Kt.end<=Pt.start?{start:Ot.end,end:Ot.end}:{start:Ot.start,end:Ot.start}).innerR=Ut.r=It):jt.graphic&&(Zt===jt.id?te={innerR:It,r:It}:Ht&&(te=Ht.end<=zt.start?{innerR:It,r:It,start:Ot.end,end:Ot.end}:{innerR:It,r:It,start:Ot.start,end:Ot.start})),{from:Ut,to:te}}(Tt,{center:bt,point:vt,radians:J,innerR:yt,idRoot:j,idPreviousRoot:Y,shapeExisting:St,shapeRoot:_,shapePreviousRoot:q,visible:Lt}):{to:Tt,from:{}},r(vt,{shapeExisting:Tt,tooltipPos:[Tt.plotX,Tt.plotY],drillId:l(vt,j,X),name:""+(vt.name||vt.id||vt.index),plotX:Tt.plotX,plotY:Tt.plotY,value:wt.val,isInside:Lt,isNull:!Lt}),vt.dlOptions=function(Pt){var Dt,jt,Ot=Pt.point,It=t(Pt.shapeArgs)?Pt.shapeArgs:{},Nt=t(Pt.optionsPoint)?Pt.optionsPoint.dataLabels:{},Zt=e(t(Pt.level)?Pt.level.dataLabels:{})[0],zt=o({style:{}},Zt,Nt),Ht=zt.rotationMode;return a(zt.rotation)||(Ht!=="auto"&&Ht!=="circular"||(Ot.innerArcLength<1&&Ot.outerArcLength>It.radius?(Dt=0,Ot.dataLabelPath&&Ht==="circular"&&(zt.textPath={enabled:!0})):Ot.innerArcLength>1&&Ot.outerArcLength>1.5*It.radius?Ht==="circular"?zt.textPath={enabled:!0,attributes:{dy:5}}:Ht="parallel":(Ot.dataLabel&&Ot.dataLabel.textPath&&Ht==="circular"&&(zt.textPath={enabled:!1}),Ht="perpendicular")),Ht!=="auto"&&Ht!=="circular"&&(Dt=It.end-(It.end-It.start)/2),Ht==="parallel"?zt.style.width=Math.min(2.5*It.radius,(Ot.outerArcLength+Ot.innerArcLength)/2):!c(zt.style.width)&&It.radius&&(zt.style.width=Ot.node.level===1?2*It.radius:It.radius),Ht==="perpendicular"&&Ot.series.chart.renderer.fontMetrics(zt.style.fontSize).h>Ot.outerArcLength&&(zt.style.width=1),zt.style.width=Math.max(zt.style.width-2*(zt.padding||0),1),jt=Dt*s%180,Ht==="parallel"&&(jt-=90),jt>90?jt-=180:jt<-90&&(jt+=180),zt.rotation=jt),zt.textPath&&(Ot.shapeExisting.innerR===0&&zt.textPath.enabled?(zt.rotation=0,zt.textPath.enabled=!1,zt.style.width=Math.max(2*Ot.shapeExisting.r-2*(zt.padding||0),1)):Ot.dlOptions&&Ot.dlOptions.textPath&&!Ot.dlOptions.textPath.enabled&&Ht==="circular"&&(zt.textPath.enabled=!0),zt.textPath.enabled&&(zt.rotation=0,zt.style.width=Math.max((Ot.outerArcLength+Ot.innerArcLength)/2-2*(zt.padding||0),1))),zt.rotation===0&&(zt.rotation=.001),zt}({point:vt,level:Mt,optionsPoint:vt.options,shapeArgs:Tt}),!st&&Lt&&(st=!0,xt=x),vt.draw({animatableAttribs:Ct.to,attribs:r(Ct.from,!rt.styledMode&&A.pointAttribs(vt,vt.selected&&"select")),onComplete:xt,group:L,renderer:ht,shapeType:"arc",shapeArgs:Tt})}),dt&&st?(A.hasRendered=!1,A.options.dataLabels.defer=!0,h.prototype.drawDataLabels.call(A),A.hasRendered=!0,it&&x()):h.prototype.drawDataLabels.call(A)},p.prototype.layoutAlgorithm=function(x,A,N){var _=x.start,L=x.end-_,O=x.val,j=x.x,Y=x.y,X=N&&t(N.levelSize)&&a(N.levelSize.value)?N.levelSize.value:0,G=x.r,q=G+X,Q=N&&a(N.slicedOffset)?N.slicedOffset:0;return(A||[]).reduce(function(J,rt){var lt=1/O*rt.val*L,gt=n(j,Y,_+lt/2,Q),mt={x:rt.sliced?gt.x:j,y:rt.sliced?gt.y:Y,innerR:G,r:q,radius:X,start:_,end:_+lt};return J.push(mt),_=mt.end,J},[])},p.prototype.setShapeArgs=function(x,A,N){var _,L=x.level+1,O=N[L],j=x.children.filter(function(Y){return Y.visible});_=this.layoutAlgorithm(A,j,O),j.forEach(function(Y,X){var G=_[X],q=G.start+(G.end-G.start)/2,Q=G.innerR+(G.r-G.innerR)/2,J=G.end-G.start,rt=G.innerR===0&&J>6.28?{x:G.x,y:G.y}:n(G.x,G.y,q,Q),lt=Y.val?Y.childrenTotal>Y.val?Y.childrenTotal:Y.val:Y.childrenTotal;this.points[Y.i]&&(this.points[Y.i].innerArcLength=J*G.innerR,this.points[Y.i].outerArcLength=J*G.r),Y.shapeArgs=o(G,{plotX:rt.x,plotY:rt.y+4*Math.abs(Math.cos(q))}),Y.values=o(G,{val:lt}),Y.children.length&&this.setShapeArgs(Y,Y.values,N)},this)},p.prototype.translate=function(){var x,A,N,_,L=this,O=L.options,j=L.center=L.getCenter(),Y=L.startAndEndRadians=k(O.startAngle,O.endAngle),X=j[3]/2,G=j[2]/2-X,q=C(L),Q=L.nodeMap,J=Q&&Q[q],rt={};L.shapeRoot=J&&J.shapeArgs,h.prototype.translate.call(L),N=L.tree=L.getTree(),J=(Q=L.nodeMap)[q],A=Q[i(J.parent)?J.parent:""];var lt=$.getLevelFromAndTo(J),gt=lt.from,mt=lt.to;x=w({from:gt,levels:L.options.levels,to:mt,defaults:{colorByPoint:O.colorByPoint,dataLabels:O.dataLabels,levelIsConstant:O.levelIsConstant,levelSize:O.levelSize,slicedOffset:O.slicedOffset}}),x=$.calculateLevelSizes(x,{diffRadius:G,from:gt,to:mt}),S(N,{before:b,idRoot:q,levelIsConstant:O.levelIsConstant,mapOptionsToLevel:x,mapIdToNode:Q,points:L.points,series:L}),_=Q[""].shapeArgs={end:Y.end,r:X,start:Y.start,val:J.val,x:j[0],y:j[1]},this.setShapeArgs(A,_,x),L.mapOptionsToLevel=x,L.data.forEach(function(bt){rt[bt.id]&&f(31,!1,L.chart),rt[bt.id]=!0}),rt={}},p.defaultOptions=o(d.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}),p}(d);return r(T.prototype,{drawDataLabels:y,getCenter:M,onPointSupported:!0,pointAttribs:g.prototype.pointAttribs,pointClass:V,NodeClass:z,utils:$}),H.registerSeriesType("sunburst",T),T}),et(B,"masters/modules/sunburst.src.js",[],function(){})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[at(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},6545:function(ot,nt,at){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(at(605)),ut={xAxis:{labels:{style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily}},title:{style:{color:pt.default.textColor,fontFamily:pt.default.fontFamily}},crosshair:!1},yAxis:{labels:{style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily}},title:{style:{color:pt.default.textColor,fontFamily:pt.default.fontFamily}},crosshair:!1},zAxis:{labels:{style:{color:pt.default.labelColor,fontFamily:pt.default.fontFamily}},title:{style:{color:pt.default.textColor,fontFamily:pt.default.fontFamily}}}};nt.default=ut},6660:(ot,nt,at)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function et(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}et(B,"Core/HttpUtilities.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R){var H=W.doc,V=R.createElement,$=R.discardElement,Z=R.merge,U=R.objectEach,z={ajax:function(I){var E={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},M=new XMLHttpRequest;function k(y,h){I.error&&I.error(y,h)}if(!I.url)return!1;M.open((I.type||"get").toUpperCase(),I.url,!0),I.headers&&I.headers["Content-Type"]||M.setRequestHeader("Content-Type",E[I.dataType||"json"]||E.text),U(I.headers,function(y,h){M.setRequestHeader(h,y)}),I.responseType&&(M.responseType=I.responseType),M.onreadystatechange=function(){var y;if(M.readyState===4){if(M.status===200){if(I.responseType!=="blob"&&(y=M.responseText,I.dataType==="json"))try{y=JSON.parse(y)}catch(h){if(h instanceof Error)return k(M,h)}return I.success&&I.success(y,M)}k(M,M.responseText)}},I.data&&typeof I.data!="string"&&(I.data=JSON.stringify(I.data)),M.send(I.data)},getJSON:function(I,E){z.ajax({url:I,success:E,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(I,E,M){var k=V("form",Z({method:"post",action:I,enctype:"multipart/form-data"},M),{display:"none"},H.body);U(E,function(y,h){V("input",{type:"hidden",name:h,value:y},void 0,k)}),k.submit(),$(k)}};return z}),et(B,"Extensions/Data.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/HttpUtilities.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U){var z=R.getOptions,I=H.doc,E=V.ajax,M=Z.seriesTypes,k=U.addEvent,y=U.defined,h=U.extend,u=U.fireEvent,g=U.isNumber,d=U.merge,v=U.objectEach,w=U.pick,S=U.splat;function C(r){return!!(r&&(r.rowsURL||r.csvURL||r.columnsURL))}var c=function(){function r(a,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,s=+o[3];return s>e.getFullYear()-2e3?s+=1900:s+=2e3,Date.UTC(s,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=a,this.rawColumns=[],this.init(a,t,i)}return r.data=function(a,t,i){return t===void 0&&(t={}),new r(a,t,i)},r.rowsToColumns=function(a){var t,i,o,e,s;if(a)for(s=[],i=a.length,t=0;t<i;t++)for(e=a[t].length,o=0;o<e;o++)s[o]||(s[o]=[]),s[o][t]=a[t][o];return s},r.prototype.init=function(a,t,i){var o,e=a.decimalPoint;t&&(this.chartOptions=t),i&&(this.chart=i),e!=="."&&e!==","&&(e=void 0),this.options=a,this.columns=a.columns||this.rowsToColumns(a.rows)||[],this.firstRowAsNames=w(a.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(a)),o||(o=this.fetchLiveData()),o||(o=!!this.parseCSV().length),o||(o=!!this.parseTable().length),o||(o=this.parseGoogleSpreadsheet()),!o&&a.afterComplete&&a.afterComplete()},r.prototype.getColumnDistribution=function(){var a,t=this.chartOptions,i=this.options,o=[],e=function(x){return(M[x||"line"].prototype.pointArrayMap||[0]).length},s=function(x){return M[x||"line"].prototype.pointArrayMap},n=t&&t.chart&&t.chart.type,l=[],b=[],T=i&&i.seriesMapping||t&&t.series&&t.series.map(function(){return{x:0}})||[],D=0;(t&&t.series||[]).forEach(function(x){l.push(e(x.type||n))}),T.forEach(function(x){o.push(x.x||0)}),o.length===0&&o.push(0),T.forEach(function(x){var A=new f,N=l[D]||e(n),_=(t&&t.series||[])[D]||{},L=s(_.type||n),O=L||["y"];for((y(x.x)||_.isCartesian||!L)&&A.addColumnReader(x.x,"x"),v(x,function(j,Y){Y!=="x"&&A.addColumnReader(j,Y)}),a=0;a<N;a++)A.hasReader(O[a])||A.addColumnReader(void 0,O[a]);b.push(A),D++});var p=s(n);p===void 0&&(p=["y"]),this.valueCount={global:e(n),xColumns:o,individual:l,seriesBuilders:b,globalPointArrayMap:p}},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(a){var t,i,o=this,e=this.columns=[],s=a||this.options,n=s.startColumn!==void 0&&s.startColumn?s.startColumn:0,l=s.endColumn||Number.MAX_VALUE,b=[],T={",":0,";":0," ":0},D=s.csv,p=s.startRow!==void 0&&s.startRow?s.startRow:0,x=s.endRow||Number.MAX_VALUE,A=0;function N(L,O,j,Y){var X=0,G="",q="",Q="",J="",rt=0,lt=0;function gt(yt){G=L[yt],q=L[yt-1],Q=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(n>rt||rt>l)return++rt,void(J="");!isNaN(parseFloat(J))&&isFinite(J)?(J=parseFloat(J),mt("number")):isNaN(Date.parse(J))?mt("string"):(J=J.replace(/\//g,"-"),mt("date")),e.length<lt+1&&e.push([]),e[lt][O]=J,J="",++lt,++rt}if(L.trim().length&&L.trim()[0]!=="#"){for(;X<L.length;X++)if(gt(X),G==='"')for(gt(++X);X<L.length&&(G!=='"'||q==='"'||Q==='"');)(G!=='"'||G==='"'&&q!=='"')&&(J+=G),gt(++X);else G===t?bt():J+=G;bt()}}if(D&&s.beforeParse&&(D=s.beforeParse.call(this,D)),D){i=D.replace(/\r\n/g,`
|
|
101
|
-
`).replace(/\r/g,`
|
|
102
|
-
`).split(s.lineDelimiter||`
|
|
103
|
-
`),(!p||p<0)&&(p=0),(!x||x>=i.length)&&(x=i.length-1),s.itemDelimiter?t=s.itemDelimiter:(t=null,t=function(L){var O,j=0,Y=0;return L.some(function(X,G){var q,Q,J,rt=!1,lt="";if(G>13)return!0;for(var gt=0;gt<X.length;gt++){if(q=X[gt],Q=X[gt+1],J=X[gt-1],q==="#")return;if(q==='"')if(rt){if(J!=='"'&&Q!=='"'){for(;Q===" "&><X.length;)Q=X[++gt];T[Q]!==void 0&&T[Q]++,rt=!1}}else rt=!0;else T[q]!==void 0?(lt=lt.trim(),isNaN(Date.parse(lt))&&!isNaN(lt)&&isFinite(lt)||T[q]++,lt=""):lt+=q;q===","&&Y++,q==="."&&j++}}),O=T[";"]>T[","]?";":",",s.decimalPoint||(s.decimalPoint=j>Y?".":",",o.decimalRegex=new RegExp("^(-?[0-9]+)"+s.decimalPoint+"([0-9]+)$")),O}(i));var _=0;for(A=p;A<=x;A++)i[A][0]==="#"?_++:N(i[A],A-p-_);s.columnTypes&&s.columnTypes.length!==0||!b.length||!b[0].length||b[0][1]!=="date"||s.dateFormat||(s.dateFormat=function(L,O){var j,Y,X,G="YYYY/mm/dd",q=[],Q=[],J=[],rt=0,lt=!1;for((!O||O>L.length)&&(O=L.length);rt<O;rt++)if(L[rt]!==void 0&&L[rt]&&L[rt].length)for(j=L[rt].trim().replace(/\//g," ").replace(/\-/g," ").replace(/\./g," ").split(" "),J=["","",""],X=0;X<j.length;X++)X<J.length&&(j[X]=parseInt(j[X],10),j[X]&&(Q[X]=!Q[X]||Q[X]<j[X]?j[X]:Q[X],q[X]!==void 0?q[X]!==j[X]&&(q[X]=!1):q[X]=j[X],j[X]>31?j[X]<100?J[X]="YY":J[X]="YYYY":j[X]>12&&j[X]<=31?(J[X]="dd",lt=!0):J[X].length||(J[X]="mm")));if(lt){for(X=0;X<q.length;X++)q[X]!==!1?Q[X]>12&&J[X]!=="YY"&&J[X]!=="YYYY"&&(J[X]="YY"):Q[X]>12&&J[X]==="mm"&&(J[X]="dd");return J.length===3&&J[1]==="dd"&&J[2]==="dd"&&(J[2]="YY"),Y=J.join("/"),(s.dateFormats||o.dateFormats)[Y]?Y:(u("deduceDateFailed"),G)}return G}(e[0])),this.dataFound()}return e},r.prototype.parseTable=function(){var a=this.options,t=this.columns||[],i=a.startRow||0,o=a.endRow||Number.MAX_VALUE,e=a.startColumn||0,s=a.endColumn||Number.MAX_VALUE;if(a.table){var n=a.table;typeof n=="string"&&(n=I.getElementById(n)),[].forEach.call(n.getElementsByTagName("tr"),function(l,b){b>=i&&b<=o&&[].forEach.call(l.children,function(T,D){var p=t[D-e],x=1;if((T.tagName==="TD"||T.tagName==="TH")&&D>=e&&D<=s)for(t[D-e]||(t[D-e]=[]),t[D-e][b-i]=T.innerHTML;b-i>=x&&p[b-i-x]===void 0;)p[b-i-x]=null,x++})}),this.dataFound()}return t},r.prototype.fetchLiveData=function(){var a=this,t=this.chart,i=this.options,o=i.enablePolling,e=d(i),s=0,n=1e3*(i.dataRefreshRate||2);return!!C(i)&&(n<1e3&&(n=1e3),delete i.csvURL,delete i.rowsURL,delete i.columnsURL,function l(b){function T(D,p,x){if(!D||!/^(http|\/|\.\/|\.\.\/)/.test(D))return D&&i.error&&i.error("Invalid URL"),!1;function A(){o&&t.liveDataURL===D&&(a.liveDataTimeout=setTimeout(l,n))}return b&&(clearTimeout(a.liveDataTimeout),t.liveDataURL=D),E({url:D,dataType:x||"json",success:function(N){t&&t.series&&p(N),A()},error:function(N,_){return++s<3&&A(),i.error&&i.error(_,N)}}),!0}T(e.csvURL,function(D){t.update({data:{csv:D}})},"text")||T(e.rowsURL,function(D){t.update({data:{rows:D}})})||T(e.columnsURL,function(D){t.update({data:{columns:D}})})}(!0),C(i))},r.prototype.parseGoogleSpreadsheet=function(){var a=this,t=this.options,i=t.googleSpreadsheetKey,o=this.chart,e=Math.max(1e3*(t.dataRefreshRate||2),4e3),s=function(){if(t.googleSpreadsheetRange)return t.googleSpreadsheetRange;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZ",l=(n.charAt(t.startColumn||0)||"A")+((t.startRow||0)+1),b=n.charAt(w(t.endColumn,-1))||"ZZ";return y(t.endRow)&&(b+=t.endRow+1),""+l+":".concat(b)};return i&&(delete t.googleSpreadsheetKey,function n(l){var b=["https://sheets.googleapis.com/v4/spreadsheets",i,"values",s(),"?alt=json&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE&dateTimeRenderOption=FORMATTED_STRING&key="+t.googleAPIKey].join("/");E({url:b,dataType:"json",success:function(T){l(T),t.enablePolling&&(a.liveDataTimeout=setTimeout(function(){n(l)},e))},error:function(T,D){return t.error&&t.error(D,T)}})}(function(n){var l=n.values;if(!l||l.length===0)return!1;var b=l.reduce(function(T,D){return Math.max(T,D.length)},0);l.forEach(function(T){for(var D=0;D<b;D++)T[D]===void 0&&(T[D]=null)}),o&&o.series?o.update({data:{columns:l}}):(a.columns=l,a.dataFound())})),!1},r.prototype.trim=function(a,t){return typeof a=="string"&&(a=a.replace(/^\s+|\s+$/g,""),t&&/^[0-9\s]+$/.test(a)&&(a=a.replace(/\s/g,"")),this.decimalRegex&&(a=a.replace(this.decimalRegex,"$1.$2"))),a},r.prototype.parseTypes=function(){for(var a=this.columns||[],t=a.length;t--;)this.parseColumn(a[t],t)},r.prototype.parseColumn=function(a,t){var i,o,e,s,n,l,b,T=this.rawColumns,D=this.columns,p=this.firstRowAsNames,x=this.valueCount.xColumns.indexOf(t)!==-1,A=[],N=this.chartOptions,_=(this.options.columnTypes||[])[t],L=x&&(N&&N.xAxis&&S(N.xAxis)[0].type==="category"||_==="string"),O=y(a.name),j=a.length;for(T[t]||(T[t]=[]);j--;)i=A[j]||a[j],e=this.trim(i),s=this.trim(i,!0),o=parseFloat(s),T[t][j]===void 0&&(T[t][j]=e),L||j===0&&p&&!O?a[j]=""+e:+s===o?(a[j]=o,o>31536e6&&_!=="float"?a.isDatetime=!0:a.isNumeric=!0,a[j+1]!==void 0&&(b=o>a[j+1])):(e&&e.length&&(n=this.parseDate(i)),x&&g(n)&&_!=="float"?(A[j]=i,a[j]=n,a.isDatetime=!0,a[j+1]!==void 0&&((l=n>a[j+1])!==b&&b!==void 0&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,j=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),b=l)):(a[j]=e===""?null:e,j!==0&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));if(x&&a.mixed&&(D[t]=T[t]),x&&b&&this.options.sort)for(t=0;t<D.length;t++)D[t].reverse(),p&&D[t].unshift(D[t].pop())},r.prototype.parseDate=function(a){var t,i,o,e,s=this.options.parseDate,n=this.options.dateFormat||this.dateFormat;if(s)t=s(a);else if(typeof a=="string"){if(n)(o=this.dateFormats[n])||(o=this.dateFormats["YYYY/mm/dd"]),(e=a.match(o.regex))&&(t=o.parser(e));else for(i in this.dateFormats)if(o=this.dateFormats[i],e=a.match(o.regex)){this.dateFormat=n=i,this.alternativeFormat=o.alternative,t=o.parser(e);break}e||(a.match(/:.+(GMT|UTC|[Z+-])/)&&(a=a.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(a))=="object"&&e!==null&&e.getTime?t=e.getTime()-6e4*e.getTimezoneOffset():g(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 a,t,i,o,e,s,n,l,b,T,D,p,x=this.columns,A=this.options,N=[];if(A.complete||A.afterComplete){if(this.firstRowAsNames)for(o=0;o<x.length;o++){var _=x[o];y(_.name)||(_.name=w(_.shift(),"").toString())}for(t=[],T=function(L,O){var j,Y,X,G=[],q=[];for(Y=0;Y<L;Y+=1)G.push(!0);for(j=0;j<O.length;j+=1)for(X=O[j].getReferencedColumnIndexes(),Y=0;Y<X.length;Y+=1)G[X[Y]]=!1;for(Y=0;Y<G.length;Y+=1)G[Y]&&q.push(Y);return q}(x.length,this.valueCount.seriesBuilders),n=0;n<this.valueCount.seriesBuilders.length;n++)(b=this.valueCount.seriesBuilders[n]).populateColumns(T)&&N.push(b);for(;T.length>0;){for((b=new f).addColumnReader(0,"x"),(p=T.indexOf(0))!==-1&&T.splice(p,1),o=0;o<this.valueCount.global;o++)b.addColumnReader(void 0,this.valueCount.globalPointArrayMap[o]);b.populateColumns(T)&&N.push(b)}if(N.length>0&&N[0].readers.length>0&&(D=x[N[0].readers[0].columnIndex])!==void 0&&(D.isDatetime?a="datetime":D.isNumeric||(a="category")),a==="category")for(n=0;n<N.length;n++)for(b=N[n],s=0;s<b.readers.length;s++)b.readers[s].configName==="x"&&(b.readers[s].configName="name");for(n=0;n<N.length;n++){for(b=N[n],i=[],e=0;e<x[0].length;e++)i[e]=b.read(x,e);t[n]={data:i},b.name&&(t[n].name=b.name),a==="category"&&(t[n].turboThreshold=0)}l={series:t},a&&(l.xAxis={type:a},a==="category"&&(l.xAxis.uniqueNames=!1)),A.complete&&A.complete(l),A.afterComplete&&A.afterComplete(l)}},r.prototype.update=function(a,t){var i=this.chart,o=i.options;a&&(a.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))},d(!0,o.data,a),o.data&&o.data.googleSpreadsheetKey&&!a.columns&&delete o.data.columns,this.init(o.data))},r}();k(W,"init",function(r){var a=this,t=r.args[1],i=z().data,o=r.args[0]||{};if((i||o&&o.data)&&!a.hasDataDef){a.hasDataDef=!0;var e=d(i,o.data);a.data=new c(h(e,{afterComplete:function(s){var n,l;if(Object.hasOwnProperty.call(o,"series"))if(typeof o.series=="object")for(n=Math.max(o.series.length,s&&s.series?s.series.length:0);n--;)l=o.series[n]||{},o.series[n]=d(l,s&&s.series?s.series[n]:{});else delete o.series;o=d(s,o),a.init(o,t)}}),o,a),r.preventDefault()}});var f=function(){function r(){this.readers=[],this.pointIsArray=!0}return r.prototype.populateColumns=function(a){var t=!0;return this.readers.forEach(function(i){i.columnIndex===void 0&&(i.columnIndex=a.shift())}),this.readers.forEach(function(i){i.columnIndex===void 0&&(t=!1)}),t},r.prototype.read=function(a,t){var i,o=this,e=o.pointIsArray,s=e?[]:{};return o.readers.forEach(function(n){var l=a[n.columnIndex][t];e?s.push(l):n.configName.indexOf(".")>0?$.prototype.setNestedProperty(s,l,n.configName):s[n.configName]=l}),this.name===void 0&&o.readers.length>=2&&(i=o.getReferencedColumnIndexes()).length>=2&&(i.shift(),i.sort(function(n,l){return n-l}),this.name=a[i.shift()].name),s},r.prototype.addColumnReader=function(a,t){this.readers.push({columnIndex:a,configName:t}),t!=="x"&&t!=="y"&&t!==void 0&&(this.pointIsArray=!1)},r.prototype.getReferencedColumnIndexes=function(){var a,t,i=[];for(a=0;a<this.readers.length;a+=1)(t=this.readers[a]).columnIndex!==void 0&&i.push(t.columnIndex);return i},r.prototype.hasReader=function(a){var t;for(t=0;t<this.readers.length;t+=1)if(this.readers[t].configName===a)return!0},r}();return c}),et(B,"masters/modules/data.src.js",[B["Core/Globals.js"],B["Core/HttpUtilities.js"],B["Extensions/Data.js"]],function(W,R,H){var V=W;V.ajax=R.ajax,V.data=H.data,V.getJSON=R.getJSON,V.post=R.post,V.Data=H,V.HttpUtilities=R})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[at(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},6713:(ot,nt,at)=>{at.d(nt,{A:()=>ct});const ct=typeof zi=="object"&&zi&&zi.Object===Object&&zi},6725:(ot,nt,at)=>{var ct,pt,ut;ut=function(ft){var B=ft?ft._modules:{};function et(W,R,H,V){W.hasOwnProperty(R)||(W[R]=V.apply(null,H),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:R,module:W[R]}})))}et(B,"Extensions/Pane.js",[B["Core/Chart/Chart.js"],B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Pointer.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=$.addEvent,U=$.correctFloat,z=$.defined,I=$.extend,E=$.merge,M=$.pick,k=$.splat;W.prototype.collectionsWithUpdate.push("pane");var y=function(){function u(g,d){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(g,d)}return u.prototype.init=function(g,d){this.chart=d,this.background=[],d.pane.push(this),this.setOptions(g)},u.prototype.setOptions=function(g){this.options=g=E(this.defaultOptions,this.chart.angular?{background:{}}:void 0,g)},u.prototype.render=function(){var g,d,v=this.options,w=this.options.background,S=this.chart.renderer;if(this.group||(this.group=S.g("pane-group").attr({zIndex:v.zIndex||0}).add()),this.updateCenter(),w)for(w=k(w),g=Math.max(w.length,this.background.length||0),d=0;d<g;d++)w[d]&&this.axis?this.renderBackground(E(this.defaultBackgroundOptions,w[d]),d):this.background[d]&&(this.background[d]=this.background[d].destroy(),this.background.splice(d,1))},u.prototype.renderBackground=function(g,d){var v="animate",w={class:"highcharts-pane "+(g.className||"")};this.chart.styledMode||I(w,{fill:g.backgroundColor,stroke:g.borderColor,"stroke-width":g.borderWidth}),this.background[d]||(this.background[d]=this.chart.renderer.path().add(this.group),v="attr"),this.background[d][v]({d:this.axis.getPlotBandPath(g.from,g.to,g)}).attr(w)},u.prototype.updateCenter=function(g){this.center=(g||this.axis||{}).center=R.getCenter.call(this)},u.prototype.update=function(g,d){E(!0,this.options,g),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(v){v.pane===this&&(v.pane=null,v.update({},d))},this)},u}();function h(u,g,d,v,w){var S=!0,C=d[0],c=d[1],f=Math.sqrt(Math.pow(u-C,2)+Math.pow(g-c,2));if(z(v)&&z(w)){var r=Math.atan2(U(g-c,8),U(u-C,8));w!==v&&(S=v>w?r>=v&&r<=Math.PI||r<=w&&r>=-Math.PI:r>=v&&r<=U(w,8))}return f<=Math.ceil(d[2]/2)&&S}return W.prototype.getHoverPane=function(u){var g,d=this;return u&&d.pane.forEach(function(v){h(u.chartX-d.plotLeft,u.chartY-d.plotTop,v.center)&&(g=v)}),g},Z(W,"afterIsInsidePlot",function(u){var g;this.polar&&(u.options.inverted&&(g=[u.y,u.x],u.x=g[0],u.y=g[1]),u.isInsidePlot=this.pane.some(function(d){return h(u.x,u.y,d.center,d.axis&&d.axis.normalizedStartAngleRad,d.axis&&d.axis.normalizedEndAngleRad)}))}),Z(V,"beforeGetHoverData",function(u){var g=this.chart;g.polar?(g.hoverPane=g.getHoverPane(u),u.filter=function(d){return d.visible&&!(!u.shared&&d.directTouch)&&M(d.options.enableMouseTracking,!0)&&(!g.hoverPane||d.xAxis.pane===g.hoverPane)}):g.hoverPane=void 0}),Z(V,"afterGetHoverData",function(u){var g=this.chart;u.hoverPoint&&u.hoverPoint.plotX&&u.hoverPoint.plotY&&g.hoverPane&&!h(u.hoverPoint.plotX,u.hoverPoint.plotY,g.hoverPane.center)&&(u.hoverPoint=void 0)}),H.Pane=y,H.Pane}),et(B,"Series/AreaRange/AreaRangePoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,k){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},H(M,k)},function(M,k){function y(){this.constructor=M}H(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}),$=W.seriesTypes.area.prototype,Z=$.pointClass,U=$.pointClass.prototype,z=R.defined,I=R.isNumber,E=function(M){function k(){var y=M!==null&&M.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 V(k,M),k.prototype.setState=function(){var y=this.state,h=this.series,u=h.chart.polar;z(this.plotHigh)||(this.plotHigh=h.yAxis.toPixels(this.high,!0)),z(this.plotLow)||(this.plotLow=this.plotY=h.yAxis.toPixels(this.low,!0)),h.stateMarkerGraphic&&(h.lowerStateMarkerGraphic=h.stateMarkerGraphic,h.stateMarkerGraphic=h.upperStateMarkerGraphic),this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,u&&I(this.plotHighX)&&(this.plotX=this.plotHighX),U.setState.apply(this,arguments),this.state=y,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],u&&I(this.plotLowX)&&(this.plotX=this.plotLowX),h.stateMarkerGraphic&&(h.upperStateMarkerGraphic=h.stateMarkerGraphic,h.stateMarkerGraphic=h.lowerStateMarkerGraphic,h.lowerStateMarkerGraphic=void 0),U.setState.apply(this,arguments)},k.prototype.haloPath=function(){var y=this.series.chart.polar,h=[];return this.plotY=this.plotLow,y&&I(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(h=U.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,y&&I(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(h=h.concat(U.haloPath.apply(this,arguments))),h},k.prototype.isValid=function(){return I(this.low)&&I(this.high)},k}(Z);return E}),et(B,"Series/AreaRange/AreaRangeSeries.js",[B["Series/AreaRange/AreaRangePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(C,c){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,r){f.__proto__=r}||function(f,r){for(var a in r)r.hasOwnProperty(a)&&(f[a]=r[a])},$(C,c)},function(C,c){function f(){this.constructor=C}$(C,c),C.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}),U=R.noop,z=H.seriesTypes,I=z.area,E=z.area.prototype,M=z.column.prototype,k=V.addEvent,y=V.defined,h=V.extend,u=V.isArray,g=V.isNumber,d=V.pick,v=V.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}},S=function(C){function c(){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(c,C),c.prototype.toYData=function(f){return[f.low,f.high]},c.prototype.highToXY=function(f){var r=this.chart,a=this.xAxis.postTranslate(f.rectPlotX||0,this.yAxis.len-(f.plotHigh||0));f.plotHighX=a.x-r.plotLeft,f.plotHigh=a.y-r.plotTop,f.plotLowX=f.plotX},c.prototype.getGraphPath=function(f){var r,a,t,i=[],o=[],e=E.getGraphPath,s=this.options,n=this.chart.polar,l=n&&s.connectEnds!==!1,b=s.connectNulls,T=s.step;for(r=(f=f||this.points).length;r--;){a=f[r];var D=n?{plotX:a.rectPlotX,plotY:a.yBottom,doCurve:!1}:{plotX:a.plotX,plotY:a.plotY,doCurve:!1};a.isNull||l||b||f[r+1]&&!f[r+1].isNull||o.push(D),t={polarPlotY:a.polarPlotY,rectPlotX:a.rectPlotX,yBottom:a.yBottom,plotX:d(a.plotHighX,a.plotX),plotY:a.plotHigh,isNull:a.isNull},o.push(t),i.push(t),a.isNull||l||b||f[r-1]&&!f[r-1].isNull||o.push(D)}var p=e.call(this,f);T&&(T===!0&&(T="left"),s.step={left:"right",center:"center",right:"left"}[T]);var x=e.call(this,i),A=e.call(this,o);s.step=T;var N=[].concat(p,x);return!this.chart.polar&&A[0]&&A[0][0]==="M"&&(A[0]=["L",A[0][1],A[0][2]]),this.graphPath=N,this.areaPath=p.concat(A),N.isArea=!0,N.xMap=p.xMap,this.areaPath.xMap=p.xMap,N},c.prototype.drawDataLabels=function(){var f,r,a,t,i,o=this.points,e=o.length,s=[],n=this.options.dataLabels,l=this.chart.inverted;if(n){if(u(n)?(t=n[0]||{enabled:!1},i=n[1]||{enabled:!1}):((t=h({},n)).x=n.xHigh,t.y=n.yHigh,(i=h({},n)).x=n.xLow,i.y=n.yLow),t.enabled||this._hasPointLabels){for(f=e;f--;)if(r=o[f]){var b=r.plotHigh,T=b===void 0?0:b,D=r.plotLow,p=D===void 0?0:D;a=t.inside?T<p:T>p,r.y=r.high,r._plotY=r.plotY,r.plotY=T,s[f]=r.dataLabel,r.dataLabel=r.dataLabelUpper,r.below=a,l?t.align||(t.align=a?"right":"left"):t.verticalAlign||(t.verticalAlign=a?"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=s[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,A=(T=x===void 0?0:x,r.plotLow);p=A===void 0?0:A,a=i.inside?T<p:T>p,r.below=!a,l?i.align||(i.align=a?"left":"right"):i.verticalAlign||(i.verticalAlign=a?"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=n}},c.prototype.alignDataLabel=function(){M.alignDataLabel.apply(this,arguments)},c.prototype.drawPoints=function(){var f,r,a=this,t=a.points.length;for(E.drawPoints.apply(a,arguments),f=0;f<t;)(r=a.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=d(r.high,r.origProps.y),r.negative=r.y<(a.options.threshold||0),a.zones.length&&(r.zone=r.getZone()),a.chart.polar||(r.isInside=r.isTopInside=r.plotY!==void 0&&r.plotY>=0&&r.plotY<=a.yAxis.len&&r.plotX>=0&&r.plotX<=a.xAxis.len),f++;for(E.drawPoints.apply(a,arguments),f=0;f<t;)(r=a.points[f]).graphics=r.graphics||[],(r.graphic||r.graphics[1])&&(r.graphics[1]=r.graphic),r.graphic=r.graphics[0],r.origProps&&(h(r,r.origProps),delete r.origProps),f++},c.defaultOptions=v(I.defaultOptions,w),c}(I);return k(S,"afterTranslate",function(){var C=this;this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(function(c){var f=c.high,r=c.plotY;c.isNull?c.plotY=void 0:(c.plotLow=r,c.plotHigh=g(f)?C.yAxis.translate(C.dataModify?C.dataModify.modifyValue(f):f,!1,!0,void 0,!0):void 0,C.dataModify&&(c.yBottom=c.plotHigh))})},{order:0}),k(S,"afterTranslate",function(){var C=this;this.points.forEach(function(c){if(C.chart.polar)C.highToXY(c),c.plotLow=c.plotY,c.tooltipPos=[((c.plotHighX||0)+(c.plotLowX||0))/2,((c.plotHigh||0)+(c.plotLow||0))/2];else{var f=c.pos(!1,c.plotLow),r=c.pos(!1,c.plotHigh);f&&r&&(f[0]=(f[0]+r[0])/2,f[1]=(f[1]+r[1])/2),c.tooltipPos=f}})},{order:3}),h(S.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:W,pointValKey:"low",setStackedPoints:U}),H.registerSeriesType("arearange",S),S}),et(B,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[B["Series/AreaRange/AreaRangeSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(E,M){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,y){k.__proto__=y}||function(k,y){for(var h in y)y.hasOwnProperty(h)&&(k[h]=y[h])},V(E,M)},function(E,M){function k(){this.constructor=E}V(E,M),E.prototype=M===null?Object.create(M):(k.prototype=M.prototype,new k)}),Z=R.seriesTypes.spline.prototype,U=H.merge,z=H.extend,I=function(E){function M(){var k=E!==null&&E.apply(this,arguments)||this;return k.options=void 0,k.data=void 0,k.points=void 0,k}return $(M,E),M.defaultOptions=U(W.defaultOptions),M}(W);return z(I.prototype,{getPointSpline:Z.getPointSpline}),R.registerSeriesType("areasplinerange",I),I}),et(B,"Series/BoxPlot/BoxPlotSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(k,y){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var g in u)u.hasOwnProperty(g)&&(h[g]=u[g])},$(k,y)},function(k,y){function h(){this.constructor=k}$(k,y),k.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),U=R.noop,z=V.extend,I=V.merge,E=V.pick,M=function(k){function y(){var h=k!==null&&k.apply(this,arguments)||this;return h.data=void 0,h.options=void 0,h.points=void 0,h}return Z(y,k),y.prototype.pointAttribs=function(){return{}},y.prototype.translate=function(){var h=this,u=h.yAxis,g=h.pointArrayMap;k.prototype.translate.apply(h),h.points.forEach(function(d){g.forEach(function(v){d[v]!==null&&(d[v+"Plot"]=u.translate(d[v],0,1,0,1))}),d.plotHigh=d.highPlot})},y.prototype.drawPoints=function(){var h,u,g,d,v,w,S,C,c,f,r,a=this,t=a.points,i=a.options,o=a.chart,e=o.renderer,s=0,n=a.doQuartiles!==!1,l=a.options.whiskerLength;t.forEach(function(b){var T=b.graphic,D=T?"animate":"attr",p=b.shapeArgs,x={},A={},N={},_={},L=b.color||a.color;if(b.plotY!==void 0){S=Math.round(p.width),C=Math.floor(p.x),c=C+S,f=Math.round(S/2),h=Math.floor(n?b.q1Plot:b.lowPlot),u=Math.floor(n?b.q3Plot:b.lowPlot),g=Math.floor(b.highPlot),d=Math.floor(b.lowPlot),T||(b.graphic=T=e.g("point").add(a.group),b.stem=e.path().addClass("highcharts-boxplot-stem").add(T),l&&(b.whiskers=e.path().addClass("highcharts-boxplot-whisker").add(T)),n&&(b.box=e.path(void 0).addClass("highcharts-boxplot-box").add(T)),b.medianShape=e.path(void 0).addClass("highcharts-boxplot-median").add(T)),o.styledMode||(A.stroke=b.stemColor||i.stemColor||L,A["stroke-width"]=E(b.stemWidth,i.stemWidth,i.lineWidth),A.dashstyle=b.stemDashStyle||i.stemDashStyle||i.dashStyle,b.stem.attr(A),l&&(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)),n&&(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)),_.stroke=b.medianColor||i.medianColor||L,_["stroke-width"]=E(b.medianWidth,i.medianWidth,i.lineWidth),_.dashstyle=b.medianDashStyle||i.medianDashStyle||i.dashStyle,b.medianShape.attr(_));var O=void 0;w=b.stem.strokeWidth()%2/2,O=[["M",s=C+f+w,u],["L",s,g],["M",s,h],["L",s,d]],b.stem[D]({d:O}),n&&(w=b.box.strokeWidth()%2/2,h=Math.floor(h)+w,u=Math.floor(u)+w,O=[["M",C+=w,u],["L",C,h],["L",c+=w,h],["L",c,u],["L",C,u],["Z"]],b.box[D]({d:O})),l&&(w=b.whiskers.strokeWidth()%2/2,g+=w,d+=w,r=/%$/.test(l)?f*parseFloat(l)/100:l/2,O=[["M",s-r,g],["L",s+r,g],["M",s-r,d],["L",s+r,d]],b.whiskers[D]({d:O})),v=Math.round(b.medianPlot),w=b.medianShape.strokeWidth()%2/2,O=[["M",C,v+=w],["L",c,v]],b.medianShape[D]({d:O})}})},y.prototype.toYData=function(h){return[h.low,h.q1,h.median,h.q3,h.high]},y.defaultOptions=I(W.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}(W);return z(M.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:U,setStackedPoints:U}),H.registerSeriesType("boxplot",M),M}),et(B,"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(B,"Series/Bubble/BubbleLegendItem.js",[B["Core/Color/Color.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=W.parse,Z=H.noop,U=V.arrayMax,z=V.arrayMin,I=V.isNumber,E=V.merge,M=V.pick,k=V.stableSort;return function(){function y(h,u){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(h,u)}return y.prototype.init=function(h,u){this.options=h,this.visible=!0,this.chart=u.chart,this.legend=u},y.prototype.addToLegend=function(h){h.splice(this.options.legendIndex,0,this)},y.prototype.drawLegendSymbol=function(h){var u,g=this.chart,d=M(h.options.itemDistance,20),v=this.legendItem||{},w=this.options,S=w.ranges,C=w.connectorDistance;if(this.fontMetrics=g.renderer.fontMetrics(w.labels.style.fontSize),S&&S.length&&I(S[0].value)){k(S,function(a,t){return t.value-a.value}),this.ranges=S,this.setOptions(),this.render();var c=this.getMaxLabelSize(),f=this.ranges[0].radius,r=2*f;u=(u=C-f+c.width)>0?u:0,this.maxLabel=c,this.movementX=w.labels.align==="left"?u:0,v.labelWidth=r+u+d,v.labelHeight=r+this.fontMetrics.h/2}else h.options.bubbleLegend.autoRanges=!0},y.prototype.setOptions=function(){var h=this.ranges,u=this.options,g=this.chart.series[u.seriesIndex],d=this.legend.baseline,v={zIndex:u.zIndex,"stroke-width":u.borderWidth},w={zIndex:u.zIndex,"stroke-width":u.connectorWidth},S={align:this.legend.options.rtl||u.labels.align==="left"?"right":"left",zIndex:u.zIndex},C=g.options.marker.fillOpacity,c=this.chart.styledMode;h.forEach(function(f,r){c||(v.stroke=M(f.borderColor,u.borderColor,g.color),v.fill=M(f.color,u.color,C!==1?$(g.color).setOpacity(C).get("rgba"):g.color),w.stroke=M(f.connectorColor,u.connectorColor,g.color)),h[r].radius=this.getRangeRadius(f.value),h[r]=E(h[r],{center:h[0].radius-h[r].radius+d}),c||E(!0,h[r],{bubbleAttribs:E(v),connectorAttribs:E(w),labelAttribs:S})},this)},y.prototype.getRangeRadius=function(h){var u=this.options,g=this.options.seriesIndex,d=this.chart.series[g],v=u.ranges[0].value,w=u.ranges[u.ranges.length-1].value,S=u.minSize,C=u.maxSize;return d.getRadius.call(this,w,v,S,C,h)},y.prototype.render=function(){var h=this.legendItem||{},u=this.chart.renderer,g=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),h.symbol=u.g("bubble-legend"),h.label=u.g("bubble-legend-item"),h.symbol.translateX=0,h.symbol.translateY=0;for(var d=0,v=this.ranges;d<v.length;d++){var w=v[d];w.value>=g&&this.renderRange(w)}h.symbol.add(h.label),h.label.add(h.group),this.hideOverlappingLabels()},y.prototype.renderRange=function(h){var u=this.ranges[0],g=this.legend,d=this.options,v=d.labels,w=this.chart,S=w.series[d.seriesIndex],C=w.renderer,c=this.symbols,f=c.labels,r=h.center,a=Math.abs(h.radius),t=d.connectorDistance||0,i=v.align,o=g.options.rtl,e=d.borderWidth,s=d.connectorWidth,n=u.radius||0,l=r-a-e/2+s/2,b=this.fontMetrics,T=b.f/2-(b.h-b.f)/2,D=(l%1?1:.5)-(s%2?0:.5),p=C.styledMode,x=o||i==="left"?-t:t;i==="center"&&(x=0,d.connectorDistance=0,h.labelAttribs.align="center");var A=l+d.labels.y,N=n+x+d.labels.x;c.bubbleItems.push(C.circle(n,r+D,a).attr(p?{}:h.bubbleAttribs).addClass((p?"highcharts-color-"+S.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(d.className||"")).add(this.legendItem.symbol)),c.connectors.push(C.path(C.crispLine([["M",n,l],["L",n+x,l]],d.connectorWidth)).attr(p?{}:h.connectorAttribs).addClass((p?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(d.connectorClassName||"")).add(this.legendItem.symbol));var _=C.text(this.formatLabel(h),N,A+T).attr(p?{}:h.labelAttribs).css(p?{}:v.style).addClass("highcharts-bubble-legend-labels "+(d.labels.className||"")).add(this.legendItem.symbol);f.push(_),_.placed=!0,_.alignAttr={x:N,y:A+T}},y.prototype.getMaxLabelSize=function(){var h,u;return this.symbols.labels.forEach(function(g){u=g.getBBox(!0),h=h?u.width>h.width?u:h:u}),h||{}},y.prototype.formatLabel=function(h){var u=this.options,g=u.labels.formatter,d=u.labels.format,v=this.chart.numberFormatter;return d?R.format(d,h):g?g.call(h):v(h.value,1)},y.prototype.hideOverlappingLabels=function(){var h=this.chart,u=this.options.labels.allowOverlap,g=this.symbols;!u&&g&&(h.hideOverlappingLabels(g.labels),g.labels.forEach(function(d,v){d.newOpacity?d.newOpacity!==d.oldOpacity&&g.connectors[v].show():g.connectors[v].hide()}))},y.prototype.getRanges=function(){var h,u,g=this.legend.bubbleLegend,d=g.chart.series,v=g.options.ranges,w=Number.MAX_VALUE,S=-Number.MAX_VALUE;return d.forEach(function(C){C.isBubble&&!C.ignoreSeries&&(u=C.zData.filter(I)).length&&(w=M(C.options.zMin,Math.min(w,Math.max(z(u),C.options.displayNegative===!1?C.options.zThreshold:-Number.MAX_VALUE))),S=M(C.options.zMax,Math.max(S,U(u))))}),h=w===S?[{value:S}]:[{value:w},{value:(w+S)/2},{value:S,autoRanges:!0}],v.length&&v[0].radius&&h.reverse(),h.forEach(function(C,c){v&&v[c]&&(h[c]=E(v[c],C))}),h},y.prototype.predictBubbleSizes=function(){var h,u=this.chart,g=this.fontMetrics,d=u.legend.options,v=d.floating,w=d.layout==="horizontal",S=w?u.legend.lastLineHeight:0,C=u.plotSizeX,c=u.plotSizeY,f=u.series[this.options.seriesIndex],r=f.getPxExtremes(),a=Math.ceil(r.minPxSize),t=Math.ceil(r.maxPxSize),i=Math.min(c,C),o=f.options.maxSize;return v||!/%$/.test(o)?h=t:(o=parseFloat(o),h=(i+S-g.h/2)*o/100/(o/100+1),(w&&c-h>=C||!w&&C-h>=c)&&(h=t)),[a,Math.ceil(h)]},y.prototype.updateRanges=function(h,u){var g=this.legend.options.bubbleLegend;g.minSize=h,g.maxSize=u,g.ranges=this.getRanges()},y.prototype.correctSizes=function(){var h=this.legend,u=this.chart.series[this.options.seriesIndex].getPxExtremes(),g=u.maxPxSize,d=this.options.maxSize;Math.abs(Math.ceil(g)-d)>1&&(this.updateRanges(this.options.minSize,u.maxPxSize),h.render())},y}()}),et(B,"Series/Bubble/BubbleLegendComposition.js",[B["Series/Bubble/BubbleLegendDefaults.js"],B["Series/Bubble/BubbleLegendItem.js"],B["Core/Defaults.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $=H.setOptions,Z=V.addEvent,U=V.objectEach,z=V.wrap,I=[];function E(g,d,v){var w,S,C,c=this,f=c.legend,r=M(c)>=0;f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&r?(w=f.bubbleLegend.options,S=f.bubbleLegend.predictBubbleSizes(),f.bubbleLegend.updateRanges(S[0],S[1]),w.placed||(f.group.placed=!1,f.allItems.forEach(function(a){(C=a.legendItem||{}).group&&(C.group.translateY=null)})),f.render(),c.getMargins(),c.axes.forEach(function(a){a.visible&&a.render(),w.placed||(a.setScale(),a.updateNames(),U(a.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),w.placed=!0,c.getMargins(),g.call(c,d,v),f.bubbleLegend.correctSizes(),u(f,k(f))):(g.call(c,d,v),f&&f.options.enabled&&f.bubbleLegend&&(f.render(),u(f,k(f))))}function M(g){for(var d=g.series,v=0;v<d.length;){if(d[v]&&d[v].isBubble&&d[v].visible&&d[v].zData.length)return v;v++}return-1}function k(g){var d,v,w,S=g.allItems,C=[],c=S.length,f=0,r=0;for(f=0;f<c;f++)if(v=S[f].legendItem||{},w=(S[f+1]||{}).legendItem||{},v.labelHeight&&(S[f].itemHeight=v.labelHeight),S[f]===S[c-1]||v.y!==w.y){for(C.push({height:0}),d=C[C.length-1];r<=f;r++)S[r].itemHeight>d.height&&(d.height=S[r].itemHeight);d.step=f}return C}function y(g){var d=this,v=d.bubbleLegend,w=d.options,S=w.bubbleLegend,C=M(d.chart);v&&v.ranges&&v.ranges.length&&(S.ranges.length&&(S.autoRanges=!!S.ranges[0].autoRanges),d.destroyItem(v)),C>=0&&w.enabled&&S.enabled&&(S.seriesIndex=C,d.bubbleLegend=new R(S,d),d.bubbleLegend.addToLegend(g.allItems))}function h(){var g,d=this,v=d.chart,w=d.visible,S=d.chart.legend;S&&S.bubbleLegend&&(d.visible=!w,d.ignoreSeries=w,g=M(v)>=0,S.bubbleLegend.visible!==g&&(S.update({bubbleLegend:{enabled:g}}),S.bubbleLegend.visible=g),d.visible=w)}function u(g,d){var v,w,S,C,c=g.allItems,f=g.options.rtl,r=0;c.forEach(function(a,t){(C=a.legendItem||{}).group&&(v=C.group.translateX||0,w=C.y||0,((S=a.movementX)||f&&a.ranges)&&(S=f?v-a.options.maxSize/2:v+S,C.group.attr({translateX:S})),t>d[r].step&&r++,C.group.attr({translateY:Math.round(w+d[r].height/2)}),C.y=w+d[r].height/2)})}return{compose:function(g,d,v){I.indexOf(g)===-1&&(I.push(g),$({legend:{bubbleLegend:W}}),z(g.prototype,"drawChartBox",E)),I.indexOf(d)===-1&&(I.push(d),Z(d,"afterGetAllItems",y)),I.indexOf(v)===-1&&(I.push(v),Z(v,"legendItemClick",h))}}}),et(B,"Series/Bubble/BubblePoint.js",[B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(I,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,k){M.__proto__=k}||function(M,k){for(var y in k)k.hasOwnProperty(y)&&(M[y]=k[y])},V(I,E)},function(I,E){function M(){this.constructor=I}V(I,E),I.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),Z=R.seriesTypes.scatter.prototype.pointClass,U=H.extend,z=function(I){function E(){var M=I!==null&&I.apply(this,arguments)||this;return M.options=void 0,M.series=void 0,M}return $(E,I),E.prototype.haloPath=function(M){return W.prototype.haloPath.call(this,M===0?0:(this.marker&&this.marker.radius||0)+M)},E}(Z);return U(z.prototype,{ttBelow:!1}),z}),et(B,"Series/Bubble/BubbleSeries.js",[B["Series/Bubble/BubbleLegendComposition.js"],B["Series/Bubble/BubblePoint.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(t,i){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},U(t,i)},function(t,i){function o(){this.constructor=t}U(t,i),t.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}),I=H.parse,E=V.noop,M=$.series,k=$.seriesTypes,y=k.column.prototype,h=k.scatter,u=Z.addEvent,g=Z.arrayMax,d=Z.arrayMin,v=Z.clamp,w=Z.extend,S=Z.isNumber,C=Z.merge,c=Z.pick,f=[];function r(){var t,i=this,o=this.len,e=this.chart,s=this.isXAxis,n=s?"xData":"yData",l=this.min,b=this.max-l,T=0,D=o,p=o/b;this.series.forEach(function(x){if(x.bubblePadding&&(x.visible||!e.options.chart.ignoreHiddenSeries)){i.allowZoomOutside=!0,t=!0;var A=x[n];if(s&&((x.onPoint||x).getRadii(0,0,x),x.onPoint&&(x.radii=x.onPoint.radii)),b>0){for(var N=A.length;N--;)if(S(A[N])&&i.dataMin<=A[N]&&A[N]<=i.max){var _=x.radii&&x.radii[N]||0;T=Math.min((A[N]-l)*p-_,T),D=Math.max((A[N]-l)*p+_,D)}}}}),t&&b>0&&!this.logarithmic&&(D-=o,p*=(o+Math.max(0,T)-Math.min(D,o))/o,[["min","userMin",T],["max","userMax",D]].forEach(function(x){c(i.options[x[0]],i[x[1]])===void 0&&(i[x[0]]+=x[2]/p)}))}var a=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 z(i,t),i.compose=function(o,e,s,n){W.compose(e,s,n),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 s=e.graphic;s&&s.width&&(this.hasRendered||s.attr({x:e.plotX,y:e.plotY,width:1,height:1}),s.animate(this.markerAttribs(e),this.options.animation))},this)},i.prototype.getRadii=function(){var o,e,s,n=this,l=this.zData,b=this.yData,T=[],D=this.chart.bubbleZExtremes,p=this.getPxExtremes(),x=p.minPxSize,A=p.maxPxSize;if(!D){var N,_=Number.MAX_VALUE,L=-Number.MAX_VALUE;this.chart.series.forEach(function(O){if(O.bubblePadding&&(O.visible||!n.chart.options.chart.ignoreHiddenSeries)){var j=(O.onPoint||O).getZExtremes();j&&(_=Math.min(_||j.zMin,j.zMin),L=Math.max(L||j.zMax,j.zMax),N=!0)}}),N?(D={zMin:_,zMax:L},this.chart.bubbleZExtremes=D):D={zMin:0,zMax:0}}for(e=0,o=l.length;e<o;e++)s=l[e],T.push(this.getRadius(D.zMin,D.zMax,x,A,s,b&&b[e]));this.radii=T},i.prototype.getRadius=function(o,e,s,n,l,b){var T=this.options,D=T.sizeBy!=="width",p=T.zThreshold,x=e-o,A=.5;if(b===null||l===null)return null;if(S(l)){if(T.sizeByAbsoluteValue&&(l=Math.abs(l-p),e=x=Math.max(e-p,Math.abs(o-p)),o=0),l<o)return s/2-1;x>0&&(A=(l-o)/x)}return D&&A>=0&&(A=Math.sqrt(A)),Math.ceil(s+A*(n-s))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(o,e){var s=this.options.marker.fillOpacity,n=M.prototype.pointAttribs.call(this,o,e);return s!==1&&(n.fill=I(n.fill).setOpacity(s).get("rgba")),n},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,s=this.getPxExtremes().minPxSize,n=o.length;n--;){var l=o[n],b=e?e[n]:0;S(b)&&b>=s/2?(l.marker=w(l.marker,{radius:b,width:2*b,height:2*b}),l.dlBox={x:l.plotX-b,y:l.plotY-b,width:2*b,height:2*b}):(l.shapeArgs=l.plotY=l.dlBox=void 0,l.isInside=!1)}},i.prototype.getPxExtremes=function(){var o=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(n){var l;return typeof n=="string"&&(l=/%$/.test(n),n=parseInt(n,10)),l?o*n/100:n},s=e(c(this.options.minSize,8));return{minPxSize:s,maxPxSize:Math.max(e(c(this.options.maxSize,"20%")),s)}},i.prototype.getZExtremes=function(){var o=this.options,e=(this.zData||[]).filter(S);if(e.length){var s=c(o.zMin,v(d(e),o.displayNegative===!1?o.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),n=c(o.zMax,g(e));if(S(s)&&S(n))return{zMin:s,zMax:n}}},i.defaultOptions=C(h.defaultOptions,{dataLabels:{formatter:function(){var o=this.series.chart.numberFormatter,e=this.point.z;return S(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}(h);return w(a.prototype,{alignDataLabel:y.alignDataLabel,applyZones:E,bubblePadding:!0,buildKDTree:E,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:R,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),u(a,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),u(a,"remove",function(t){delete t.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",a),a}),et(B,"Series/ColumnRange/ColumnRangePoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R){var H,V=this&&this.__extends||(H=function(M,k){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},H(M,k)},function(M,k){function y(){this.constructor=M}H(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}),$=W.seriesTypes,Z=$.column.prototype.pointClass.prototype,U=$.arearange.prototype.pointClass,z=R.extend,I=R.isNumber,E=function(M){function k(){var y=M!==null&&M.apply(this,arguments)||this;return y.options=void 0,y.series=void 0,y}return V(k,M),k.prototype.isValid=function(){return I(this.low)},k}(U);return z(E.prototype,{setState:Z.setState}),E}),et(B,"Series/ColumnRange/ColumnRangeSeries.js",[B["Series/ColumnRange/ColumnRangePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(w,S){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,c){C.__proto__=c}||function(C,c){for(var f in c)c.hasOwnProperty(f)&&(C[f]=c[f])},$(w,S)},function(w,S){function C(){this.constructor=w}$(w,S),w.prototype=S===null?Object.create(S):(C.prototype=S.prototype,new C)}),U=R.noop,z=H.seriesTypes,I=z.arearange,E=z.column,M=z.column.prototype,k=V.clamp,y=V.extend,h=V.isNumber,u=V.merge,g=V.pick,d={pointRange:null,marker:null,states:{hover:{halo:!1}}},v=function(w){function S(){return w!==null&&w.apply(this,arguments)||this}return Z(S,w),S.prototype.setOptions=function(){return u(!0,arguments[0],{stacking:void 0}),I.prototype.setOptions.apply(this,arguments)},S.prototype.translate=function(){var C,c,f,r,a=this,t=this.yAxis,i=this.xAxis,o=i.startAngleRad,e=this.chart,s=this.xAxis.isRadial,n=Math.max(e.chartWidth,e.chartHeight)+999;function l(b){return k(b,-n,n)}M.translate.apply(this),this.points.forEach(function(b){var T=b.shapeArgs||{},D=a.options.minPointLength,p=b.plotY,x=t.translate(b.high,0,1,0,1);if(h(x)&&h(p))if(b.plotHigh=l(x),b.plotLow=l(p),r=b.plotHigh,C=g(b.rectPlotY,b.plotY)-b.plotHigh,Math.abs(C)<D?(C+=c=D-C,r-=c/2):C<0&&(r-=C*=-1),s&&a.polar)f=b.barX+o,b.shapeType="arc",b.shapeArgs=a.polar.arc(r+C,r,f,f+b.pointWidth);else{T.height=C,T.y=r;var A=T.x,N=A===void 0?0:A,_=T.width,L=_===void 0?0:_;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]}})},S.prototype.pointAttribs=function(){return M.pointAttribs.apply(this,arguments)},S.prototype.translate3dPoints=function(){return M.translate3dPoints.apply(this,arguments)},S.prototype.translate3dShapes=function(){return M.translate3dShapes.apply(this,arguments)},S.defaultOptions=u(E.defaultOptions,I.defaultOptions,d),S}(I);return y(v.prototype,{directTouch:!0,pointClass:W,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:M.adjustForMissingColumns,animate:M.animate,crispCol:M.crispCol,drawGraph:U,drawPoints:M.drawPoints,getSymbol:U,drawTracker:M.drawTracker,getColumnMetrics:M.getColumnMetrics}),H.registerSeriesType("columnrange",v),v}),et(B,"Series/ColumnPyramid/ColumnPyramidSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(M,k){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var u in h)h.hasOwnProperty(u)&&(y[u]=h[u])},V(M,k)},function(M,k){function y(){this.constructor=M}V(M,k),M.prototype=k===null?Object.create(k):(y.prototype=k.prototype,new y)}),Z=W.prototype,U=H.clamp,z=H.merge,I=H.pick,E=function(M){function k(){var y=M!==null&&M.apply(this,arguments)||this;return y.data=void 0,y.options=void 0,y.points=void 0,y}return $(k,M),k.prototype.translate=function(){var y=this,h=y.chart,u=y.options,g=y.dense=y.closestPointRange*y.xAxis.transA<2,d=y.borderWidth=I(u.borderWidth,g?0:1),v=y.yAxis,w=u.threshold,S=y.translatedThreshold=v.getThreshold(w),C=I(u.minPointLength,5),c=y.getColumnMetrics(),f=c.width,r=y.barW=Math.max(f,1+2*d),a=y.pointXOffset=c.offset;h.inverted&&(S-=.5),u.pointPadding&&(r=Math.ceil(r)),Z.translate.apply(y),y.points.forEach(function(t){var i,o,e,s,n,l,b,T,D,p,x,A,N=I(t.yBottom,S),_=999+Math.abs(N),L=U(t.plotY,-_,v.len+_),O=t.plotX+a,j=r/2,Y=Math.min(L,N),X=Math.max(L,N)-Y;t.barX=O,t.pointWidth=f,t.tooltipPos=h.inverted?[v.len+v.pos-h.plotLeft-L,y.xAxis.len-O-j,X]:[O+j,L+v.pos-h.plotTop,X],i=w+(t.total||t.y),u.stacking==="percent"&&(i=w+(t.y<0)?-100:100),e=v.toPixels(i,!0),b=O-(s=(o=h.plotHeight-e-(h.plotHeight-S))?j*(Y-e)/o:0)+j,T=O+s+j,D=O+(n=o?j*(Y+X-e)/o:0)+j,p=O-n+j,x=Y-C,A=Y+X,t.y<0&&(x=Y,A=Y+X+C),h.inverted&&(T=(b=O+j+(s=j*(e-(l=v.width-Y))/(o=e-(v.width-S))))-2*s,D=O-(n=j*(e-(l-X))/o)+j,p=O+n+j,x=Y,A=Y+X-C,t.y<0&&(A=Y+X+C)),t.shapeType="path",t.shapeArgs={x:b,y:x,width:T-b,height:X,d:[["M",b,x],["L",T,x],["L",D,A],["L",p,A],["Z"]]}})},k.defaultOptions=z(W.defaultOptions,{}),k}(W);return R.registerSeriesType("columnpyramid",E),E}),et(B,"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(B,"Series/ErrorBar/ErrorBarSeries.js",[B["Series/BoxPlot/BoxPlotSeries.js"],B["Series/Column/ColumnSeries.js"],B["Series/ErrorBar/ErrorBarSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z,U=this&&this.__extends||(Z=function(y,h){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},Z(y,h)},function(y,h){function u(){this.constructor=y}Z(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),z=V.seriesTypes.arearange,I=$.addEvent,E=$.merge,M=$.extend,k=function(y){function h(){var u=y!==null&&y.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return U(h,y),h.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||R.prototype.getColumnMetrics.call(this)},h.prototype.drawDataLabels=function(){var u=this.pointValKey;z&&(z.prototype.drawDataLabels.call(this),this.data.forEach(function(g){g.y=g[u]}))},h.prototype.toYData=function(u){return[u.low,u.high]},h.defaultOptions=E(W.defaultOptions,H),h}(W);return I(k,"afterTranslate",function(){this.points.forEach(function(y){y.plotLow=y.plotY})},{order:0}),M(k.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),V.registerSeriesType("errorbar",k),k}),et(B,"Series/Gauge/GaugePoint.js",[B["Core/Series/SeriesRegistry.js"]],function(W){var R,H=this&&this.__extends||(R=function($,Z){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var I in z)z.hasOwnProperty(I)&&(U[I]=z[I])},R($,Z)},function($,Z){function U(){this.constructor=$}R($,Z),$.prototype=Z===null?Object.create(Z):(U.prototype=Z.prototype,new U)}),V=function($){function Z(){var U=$!==null&&$.apply(this,arguments)||this;return U.options=void 0,U.series=void 0,U.shapeArgs=void 0,U}return H(Z,$),Z.prototype.setState=function(U){this.state=U},Z}(W.series.prototype.pointClass);return V}),et(B,"Series/Gauge/GaugeSeries.js",[B["Series/Gauge/GaugePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(d,v){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var C in S)S.hasOwnProperty(C)&&(w[C]=S[C])},$(d,v)},function(d,v){function w(){this.constructor=d}$(d,v),d.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}),U=R.noop,z=H.series,I=H.seriesTypes.column,E=V.clamp,M=V.isNumber,k=V.extend,y=V.merge,h=V.pick,u=V.pInt,g=function(d){function v(){var w=d!==null&&d.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,d),v.prototype.translate=function(){var w=this,S=w.yAxis,C=w.options,c=S.center;w.generatePoints(),w.points.forEach(function(f){var r=y(C.dial,f.dial),a=u(r.radius)*c[2]/200,t=u(r.baseLength)*a/100,i=u(r.rearLength)*a/100,o=r.baseWidth,e=r.topWidth,s=C.overshoot,n=S.startAngleRad+S.translate(f.y,void 0,void 0,void 0,!0);(M(s)||C.wrap===!1)&&(s=M(s)?s/180*Math.PI:0,n=E(n,S.startAngleRad-s,S.endAngleRad+s)),n=180*n/Math.PI,f.shapeType="path";var l=r.path||[["M",-i,-o/2],["L",t,-o/2],["L",a,-e/2],["L",a,e/2],["L",t,o/2],["L",-i,o/2],["Z"]];f.shapeArgs={d:l,translateX:c[0],translateY:c[1],rotation:n},f.plotX=c[0],f.plotY=c[1]})},v.prototype.drawPoints=function(){var w=this,S=w.chart,C=w.yAxis.center,c=w.pivot,f=w.options,r=f.pivot,a=S.renderer;w.points.forEach(function(t){var i=t.graphic,o=t.shapeArgs,e=o.d,s=y(f.dial,t.dial);i?(i.animate(o),o.d=e):t.graphic=a[t.shapeType](o).attr({rotation:o.rotation,zIndex:1}).addClass("highcharts-dial").add(w.group),S.styledMode||t.graphic[i?"animate":"attr"]({stroke:s.borderColor,"stroke-width":s.borderWidth,fill:s.backgroundColor})}),c?c.animate({translateX:C[0],translateY:C[1]}):r&&(w.pivot=a.circle(0,0,r.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(C[0],C[1]).add(w.group),S.styledMode||w.pivot.attr({fill:r.backgroundColor,stroke:r.borderColor,"stroke-width":r.borderWidth}))},v.prototype.animate=function(w){var S=this;w||S.points.forEach(function(C){var c=C.graphic;c&&(c.attr({rotation:180*S.yAxis.startAngleRad/Math.PI}),c.animate({rotation:C.shapeArgs.rotation},S.options.animation))})},v.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),z.prototype.render.call(this),this.group.clip(this.chart.clipRect)},v.prototype.setData=function(w,S){z.prototype.setData.call(this,w,!1),this.processData(),this.generatePoints(),h(S,!0)&&this.chart.redraw()},v.prototype.hasData=function(){return!!this.points.length},v.defaultOptions=y(z.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}(z);return k(g.prototype,{angular:!0,directTouch:!0,drawGraph:U,drawTracker:I.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:W,trackerGroups:["group","dataLabelsGroup"]}),H.registerSeriesType("gauge",g),g}),et(B,"Series/DragNodesComposition.js",[B["Core/Utilities.js"]],function(W){var R=W.addEvent,H=[];function V(){var $,Z,U,z=this;z.container&&($=R(z.container,"mousedown",function(I){var E=z.hoverPoint;E&&E.series&&E.series.hasDraggableNodes&&E.series.options.draggable&&(E.series.onMouseDown(E,I),Z=R(z.container,"mousemove",function(M){return E&&E.series&&E.series.onMouseMove(E,M)}),U=R(z.container.ownerDocument,"mouseup",function(M){return Z(),U(),E&&E.series&&E.series.onMouseUp(E,M)}))})),R(z,"destroy",function(){$()})}return{compose:function($){H.indexOf($)===-1&&(H.push($),R($,"load",V))},onMouseDown:function($,Z){var U=this.chart.pointer.normalize(Z);$.fixedPosition={chartX:U.chartX,chartY:U.chartY,plotX:$.plotX,plotY:$.plotY},$.inDragMode=!0},onMouseMove:function($,Z){if($.fixedPosition&&$.inDragMode){var U=this.chart,z=U.pointer.normalize(Z),I=$.fixedPosition.chartX-z.chartX,E=$.fixedPosition.chartY-z.chartY,M=U.graphLayoutsLookup,k=void 0,y=void 0;(Math.abs(I)>5||Math.abs(E)>5)&&(k=$.fixedPosition.plotX-I,y=$.fixedPosition.plotY-E,U.isInsidePlot(k,y)&&($.plotX=k,$.plotY=y,$.hasDragged=!0,this.redrawHalo($),M.forEach(function(h){h.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(B,"Series/GraphLayoutComposition.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Utilities.js"]],function(W,R){var H=W.setAnimation,V=R.addEvent,$=[];function Z(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation()}),this.redraw())}function U(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(E){E.updateSimulation(!1)}),this.redraw())}function z(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(E){E.stop()})}function I(){var E,M=!1,k=function(y){y.maxIterations--&&isFinite(y.temperature)&&!y.isStable()&&!y.enableSimulation&&(y.beforeStep&&y.beforeStep(),y.step(),E=!1,M=!0)};if(this.graphLayoutsLookup){for(H(!1,this),this.graphLayoutsLookup.forEach(function(y){return y.start()});!E;)E=!0,this.graphLayoutsLookup.forEach(k);M&&this.series.forEach(function(y){y&&y.layout&&y.render()})}}return{compose:function(E){$.indexOf(E)&&($.push(E),V(E,"afterPrint",Z),V(E,"beforePrint",U),V(E,"predraw",z),V(E,"render",I))},integrations:{},layouts:{}}}),et(B,"Series/PackedBubble/PackedBubblePoint.js",[B["Core/Chart/Chart.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(U,z){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,E){I.__proto__=E}||function(I,E){for(var M in E)E.hasOwnProperty(M)&&(I[M]=E[M])},V(U,z)},function(U,z){function I(){this.constructor=U}V(U,z),U.prototype=z===null?Object.create(z):(I.prototype=z.prototype,new I)}),Z=function(U){function z(){var I=U!==null&&U.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 $(z,U),z.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),R.prototype.destroy.apply(this,arguments)},z.prototype.firePointEvent=function(){var I=this.series.options;if(this.isParentNode&&I.parentNode){var E=I.allowPointSelect;I.allowPointSelect=I.parentNode.allowPointSelect,R.prototype.firePointEvent.apply(this,arguments),I.allowPointSelect=E}else R.prototype.firePointEvent.apply(this,arguments)},z.prototype.select=function(){var I=this.series.chart;this.isParentNode?(I.getSelectedPoints=I.getSelectedParentNodes,R.prototype.select.apply(this,arguments),I.getSelectedPoints=W.prototype.getSelectedPoints):R.prototype.select.apply(this,arguments)},z}(H.seriesTypes.bubble.prototype.pointClass);return Z}),et(B,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[B["Core/Utilities.js"]],function(W){var R=W.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,V=this.point.value;return R(V)?H(V,-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(B,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(W,R,H){var V=W.getMass(),$=-H.x*R*this.diffTemperature,Z=-H.y*R*this.diffTemperature;W.fromNode.fixedPosition||(W.fromNode.plotX-=$*V.fromNode/W.fromNode.degree,W.fromNode.plotY-=Z*V.fromNode/W.fromNode.degree),W.toNode.fixedPosition||(W.toNode.plotX+=$*V.toNode/W.toNode.degree,W.toNode.plotY+=Z*V.toNode/W.toNode.degree)},attractiveForceFunction:function(W,R){return(R-W)/W},barycenter:function(){var W=this.options.gravitationalConstant,R=this.barycenter.xFactor,H=this.barycenter.yFactor;R=(R-(this.box.left+this.box.width)/2)*W,H=(H-(this.box.top+this.box.height)/2)*W,this.nodes.forEach(function(V){V.fixedPosition||(V.plotX-=R/V.mass/V.degree,V.plotY-=H/V.mass/V.degree)})},getK:function(W){return Math.pow(W.box.width*W.box.height/W.nodes.length,.5)},integrate:function(W,R){var H=-W.options.friction,V=W.options.maxSpeed,$=R.prevX,Z=R.prevY,U=(R.plotX+R.dispX-$)*H,z=(R.plotY+R.dispY-Z)*H,I=Math.abs,E=I(U)/(U||1),M=I(z)/(z||1);U=E*Math.min(V,Math.abs(U)),z=M*Math.min(V,Math.abs(z)),R.prevX=R.plotX+R.dispX,R.prevY=R.plotY+R.dispY,R.plotX+=U,R.plotY+=z,R.temperature=W.vectorLength({x:U,y:z})},repulsive:function(W,R,H){var V=R*this.diffTemperature/W.mass/W.degree;W.fixedPosition||(W.plotX+=H.x*V,W.plotY+=H.y*V)},repulsiveForceFunction:function(W,R){return(R-W)/W*(R>W?1:0)}}}),et(B,"Series/PackedBubble/PackedBubbleIntegration.js",[B["Core/Globals.js"],B["Series/Networkgraph/VerletIntegration.js"]],function(W,R){return{barycenter:function(){for(var H,V,$=this,Z=$.options.gravitationalConstant,U=$.box,z=$.nodes,I=0,E=z;I<E.length;I++){var M=E[I];$.options.splitSeries&&!M.isParentNode?(H=M.series.parentNode.plotX,V=M.series.parentNode.plotY):(H=U.width/2,V=U.height/2),M.fixedPosition||(M.plotX-=(M.plotX-H)*Z/(M.mass*Math.sqrt(z.length)),M.plotY-=(M.plotY-V)*Z/(M.mass*Math.sqrt(z.length)))}},getK:W.noop,integrate:R.integrate,repulsive:function(H,V,$,Z){var U=V*this.diffTemperature/H.mass/H.degree,z=$.x*U,I=$.y*U;H.fixedPosition||(H.plotX+=z,H.plotY+=I),Z.fixedPosition||(Z.plotX-=z,Z.plotY-=I)},repulsiveForceFunction:function(H,V,$,Z){return Math.min(H,($.marker.radius+Z.marker.radius)/2)}}}),et(B,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(W,R,H,V){var $=W.getMass(),Z=H.x/V*R,U=H.y/V*R;W.fromNode.fixedPosition||(W.fromNode.dispX-=Z*$.fromNode/W.fromNode.degree,W.fromNode.dispY-=U*$.fromNode/W.fromNode.degree),W.toNode.fixedPosition||(W.toNode.dispX+=Z*$.toNode/W.toNode.degree,W.toNode.dispY+=U*$.toNode/W.toNode.degree)},attractiveForceFunction:function(W,R){return W*W/R},barycenter:function(){var W=this.options.gravitationalConstant,R=this.barycenter.xFactor,H=this.barycenter.yFactor;this.nodes.forEach(function(V){if(!V.fixedPosition){var $=V.getDegree(),Z=$*(1+$/2);V.dispX+=(R-V.plotX)*W*Z/V.degree,V.dispY+=(H-V.plotY)*W*Z/V.degree}})},getK:function(W){return Math.pow(W.box.width*W.box.height/W.nodes.length,.3)},integrate:function(W,R){var H;R.dispX+=R.dispX*W.options.friction,R.dispY+=R.dispY*W.options.friction,(H=R.temperature=W.vectorLength({x:R.dispX,y:R.dispY}))!==0&&(R.plotX+=R.dispX/H*Math.min(Math.abs(R.dispX),W.temperature),R.plotY+=R.dispY/H*Math.min(Math.abs(R.dispY),W.temperature))},repulsive:function(W,R,H,V){W.dispX+=H.x/V*R/W.degree,W.dispY+=H.y/V*R/W.degree},repulsiveForceFunction:function(W,R){return R*R/W}}}),et(B,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function W(R){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=R,this.boxSize=Math.min(R.width,R.height)}return W.prototype.divideBox=function(){var R=this.box.width/2,H=this.box.height/2;this.nodes[0]=new W({left:this.box.left,top:this.box.top,width:R,height:H}),this.nodes[1]=new W({left:this.box.left+R,top:this.box.top,width:R,height:H}),this.nodes[2]=new W({left:this.box.left+R,top:this.box.top+H,width:R,height:H}),this.nodes[3]=new W({left:this.box.left,top:this.box.top+H,width:R,height:H})},W.prototype.getBoxPosition=function(R){var H=R.plotX<this.box.left+this.box.width/2,V=R.plotY<this.box.top+this.box.height/2;return H?V?0:3:V?1:2},W.prototype.insert=function(R,H){var V;this.isInternal?this.nodes[this.getBoxPosition(R)].insert(R,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(R)].insert(R,H-1)):((V=new W({top:R.plotX||NaN,left:R.plotY||NaN,width:.1,height:.1})).body=R,V.isInternal=!1,this.nodes.push(V)):(this.isInternal=!1,this.body=R))},W.prototype.updateMassAndCenter=function(){var R=0,H=0,V=0;if(this.isInternal){for(var $=0,Z=this.nodes;$<Z.length;$++){var U=Z[$];U.isEmpty||(R+=U.mass,H+=U.plotX*U.mass,V+=U.plotY*U.mass)}H/=R,V/=R}else this.body&&(R=this.body.mass,H=this.body.plotX,V=this.body.plotY);this.mass=R,this.plotX=H,this.plotY=V},W}()}),et(B,"Series/Networkgraph/QuadTree.js",[B["Series/Networkgraph/QuadTreeNode.js"]],function(W){return function(){function R(H,V,$,Z){this.box={left:H,top:V,width:$,height:Z},this.maxDepth=25,this.root=new W(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return R.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(H){H.updateMassAndCenter()})},R.prototype.insertNodes=function(H){for(var V=0,$=H;V<$.length;V++){var Z=$[V];this.root.insert(Z,this.maxDepth)}},R.prototype.visitNodeRecursive=function(H,V,$){var Z;if(H||(H=this.root),H===this.root&&V&&(Z=V(H)),Z!==!1){for(var U=0,z=H.nodes;U<z.length;U++){var I=z[U];if(I.isInternal){if(V&&(Z=V(I)),Z===!1)continue;this.visitNodeRecursive(I,V,$)}else I.body&&V&&V(I.body);$&&$(I)}H===this.root&&$&&$(H)}},R}()}),et(B,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[B["Series/Networkgraph/EulerIntegration.js"],B["Core/Globals.js"],B["Series/GraphLayoutComposition.js"],B["Series/Networkgraph/QuadTree.js"],B["Core/Utilities.js"],B["Series/Networkgraph/VerletIntegration.js"]],function(W,R,H,V,$,Z){var U=R.win,z=$.clamp,I=$.defined,E=$.isFunction,M=$.pick,k=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(h){H.compose(h),H.integrations.euler=W,H.integrations.verlet=Z,H.layouts["reingold-fruchterman"]=y},y.prototype.init=function(h){this.options=h,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=H.integrations[h.integration],this.enableSimulation=h.enableSimulation,this.attractiveForce=M(h.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=M(h.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=h.approximation},y.prototype.updateSimulation=function(h){this.enableSimulation=M(h,this.options.enableSimulation)},y.prototype.start=function(){var h=this,u=this.series,g=this.options;h.currentStep=0,h.forces=u[0]&&u[0].forces||[],h.chart=u[0]&&u[0].chart,h.initialRendering&&(h.initPositions(),u.forEach(function(d){d.finishedAnimating=!0,d.render()})),h.setK(),h.resetSimulation(g),h.enableSimulation&&h.step()},y.prototype.step=function(){var h=this,u=this.series;this.currentStep++,this.approximation==="barnes-hut"&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var g=0,d=this.forces||[];g<d.length;g++)this[d[g]+"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=u;v<w.length;v++){var S=w[v];S.chart&&S.render()}this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&U.cancelAnimationFrame(this.simulation),this.simulation=U.requestAnimationFrame(function(){return h.step()})):this.simulation=!1}},y.prototype.stop=function(){this.simulation&&U.cancelAnimationFrame(this.simulation)},y.prototype.setArea=function(h,u,g,d){this.box={left:h,top:u,width:g,height:d}},y.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},y.prototype.addElementsToCollection=function(h,u){for(var g=0,d=h;g<d.length;g++){var v=d[g];u.indexOf(v)===-1&&u.push(v)}},y.prototype.removeElementFromCollection=function(h,u){var g=u.indexOf(h);g!==-1&&u.splice(g,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(h){this.maxIterations=M(h,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(h){this.initialRendering=h},y.prototype.createQuadTree=function(){this.quadTree=new V(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},y.prototype.initPositions=function(){var h=this.options.initialPositions;if(E(h)){h.call(this);for(var u=0,g=this.nodes;u<g.length;u++){var d=g[u];I(d.prevX)||(d.prevX=d.plotX),I(d.prevY)||(d.prevY=d.plotY),d.dispX=0,d.dispY=0}}else h==="circle"?this.setCircularPositions():this.setRandomPositions()},y.prototype.setCircularPositions=function(){for(var h,u=this.box,g=this.nodes,d=g.length+1,v=2*Math.PI/d,w=g.filter(function(l){return l.linksTo.length===0}),S={},C=this.options.initialPositionRadius,c=function(l){for(var b=0,T=l.linksFrom||[];b<T.length;b++){var D=T[b];S[D.toNode.id]||(S[D.toNode.id]=!0,f.push(D.toNode),c(D.toNode))}},f=[],r=0,a=w;r<a.length;r++){var t=a[r];f.push(t),c(t)}if(f.length)for(var i=0,o=g;i<o.length;i++){var e=o[i];f.indexOf(e)===-1&&f.push(e)}else f=g;for(var s=0,n=f.length;s<n;++s)(h=f[s]).plotX=h.prevX=M(h.plotX,u.width/2+C*Math.cos(s*v)),h.plotY=h.prevY=M(h.plotY,u.height/2+C*Math.sin(s*v)),h.dispX=0,h.dispY=0},y.prototype.setRandomPositions=function(){for(var h,u=this.box,g=this.nodes,d=g.length+1,v=function(C){var c=C*C/Math.PI;return c-Math.floor(c)},w=0,S=g.length;w<S;++w)(h=g[w]).plotX=h.prevX=M(h.plotX,u.width*v(w)),h.plotY=h.prevY=M(h.plotY,u.height*v(d+w)),h.dispX=0,h.dispY=0},y.prototype.force=function(h){for(var u=[],g=1;g<arguments.length;g++)u[g-1]=arguments[g];this.integration[h].apply(this,u)},y.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},y.prototype.getBarycenter=function(){for(var h=0,u=0,g=0,d=0,v=this.nodes;d<v.length;d++){var w=v[d];u+=w.plotX*w.mass,g+=w.plotY*w.mass,h+=w.mass}return this.barycenter={x:u,y:g,xFactor:u/h,yFactor:g/h},this.barycenter},y.prototype.barnesHutApproximation=function(h,u){var g,d,v=this.getDistXY(h,u),w=this.vectorLength(v);return h!==u&&w!==0&&(u.isInternal?u.boxSize/w<this.options.theta&&w!==0?(d=this.repulsiveForce(w,this.k),this.force("repulsive",h,d*u.mass,v,w),g=!1):g=!0:(d=this.repulsiveForce(w,this.k),this.force("repulsive",h,d*u.mass,v,w))),g},y.prototype.repulsiveForces=function(){var h=this;if(this.approximation==="barnes-hut")for(var u=function(o){g.quadTree.visitNodeRecursive(null,function(e){return h.barnesHutApproximation(o,e)})},g=this,d=0,v=this.nodes;d<v.length;d++)u(r=v[d]);else for(var w=void 0,S=void 0,C=void 0,c=0,f=this.nodes;c<f.length;c++)for(var r=f[c],a=0,t=this.nodes;a<t.length;a++){var i=t[a];r===i||r.fixedPosition||(C=this.getDistXY(r,i),(S=this.vectorLength(C))!==0&&(w=this.repulsiveForce(S,this.k),this.force("repulsive",r,w*i.mass,C,S)))}},y.prototype.attractiveForces=function(){for(var h,u,g,d=0,v=this.links;d<v.length;d++){var w=v[d];w.fromNode&&w.toNode&&(h=this.getDistXY(w.fromNode,w.toNode),(u=this.vectorLength(h))!==0&&(g=this.attractiveForce(u,this.k),this.force("attractive",w,g,h,u)))}},y.prototype.applyLimits=function(){for(var h=0,u=this.nodes;h<u.length;h++){var g=u[h];if(g.fixedPosition)return;this.integration.integrate(this,g),this.applyLimitBox(g,this.box),g.dispX=0,g.dispY=0}},y.prototype.applyLimitBox=function(h,u){var g=h.radius;h.plotX=z(h.plotX,u.left+g,u.width-g),h.plotY=z(h.plotY,u.top+g,u.height-g)},y.prototype.coolDown=function(h,u,g){return h-u*g},y.prototype.isStable=function(){return Math.abs(this.systemTemperature-this.prevSystemTemperature)<1e-5||this.temperature<=0},y.prototype.getSystemTemperature=function(){for(var h=0,u=0,g=this.nodes;u<g.length;u++)h+=g[u].temperature;return h},y.prototype.vectorLength=function(h){return Math.sqrt(h.x*h.x+h.y*h.y)},y.prototype.getDistR=function(h,u){var g=this.getDistXY(h,u);return this.vectorLength(g)},y.prototype.getDistXY=function(h,u){var g=h.plotX-u.plotX,d=h.plotY-u.plotY;return{x:g,y:d,absX:Math.abs(g),absY:Math.abs(d)}},y}();return k}),et(B,"Series/PackedBubble/PackedBubbleLayout.js",[B["Series/GraphLayoutComposition.js"],B["Series/PackedBubble/PackedBubbleIntegration.js"],B["Series/Networkgraph/ReingoldFruchtermanLayout.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(y,h){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var d in g)g.hasOwnProperty(d)&&(u[d]=g[d])},$(y,h)},function(y,h){function u(){this.constructor=y}$(y,h),y.prototype=h===null?Object.create(h):(u.prototype=h.prototype,new u)}),U=V.addEvent,z=V.pick,I=[];function E(){var y=this.series,h=[];return y.forEach(function(u){u.parentNode&&u.parentNode.selected&&h.push(u.parentNode)}),h}function M(){this.allDataPoints&&delete this.allDataPoints}var k=function(y){function h(){var u=y!==null&&y.apply(this,arguments)||this;return u.index=NaN,u.nodes=[],u.options=void 0,u.series=[],u}return Z(h,y),h.compose=function(u){H.compose(u),W.integrations.packedbubble=R,W.layouts.packedbubble=h,I.indexOf(u)===-1&&(I.push(u),U(u,"beforeRedraw",M),u.prototype.getSelectedParentNodes=E)},h.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(u){u&&u.calculateParentRadius()})},h.prototype.isStable=function(){var u=Math.abs(this.prevSystemTemperature-this.systemTemperature),g=10*this.systemTemperature/Math.sqrt(this.nodes.length);return Math.abs(g)<1&&u<1e-5||this.temperature<=0},h.prototype.setCircularPositions=function(){for(var u,g,d=this,v=d.box,w=d.nodes,S=w.length+1,C=2*Math.PI/S,c=d.options.initialPositionRadius,f=0,r=0,a=w;r<a.length;r++){var t=a[r];d.options.splitSeries&&!t.isParentNode?(u=t.series.parentNode.plotX,g=t.series.parentNode.plotY):(u=v.width/2,g=v.height/2),t.plotX=t.prevX=z(t.plotX,u+c*Math.cos(t.index||f*C)),t.plotY=t.prevY=z(t.plotY,g+c*Math.sin(t.index||f*C)),t.dispX=0,t.dispY=0,f++}},h.prototype.repulsiveForces=function(){var u,g,d,v=this,w=v.options.bubblePadding;v.nodes.forEach(function(S){S.degree=S.mass,S.neighbours=0,v.nodes.forEach(function(C){u=0,S===C||S.fixedPosition||!v.options.seriesInteraction&&S.series!==C.series||(d=v.getDistXY(S,C),(g=v.vectorLength(d)-(S.marker.radius+C.marker.radius+w))<0&&(S.degree+=.01,S.neighbours++,u=v.repulsiveForce(-g/Math.sqrt(S.neighbours),v.k,S,C)),v.force("repulsive",S,u*C.mass,d,C,g))})})},h.prototype.applyLimitBox=function(u,g){var d,v,w=this;w.options.splitSeries&&!u.isParentNode&&w.options.parentNodeLimit&&(d=w.getDistXY(u,u.series.parentNode),(v=u.series.parentNodeRadius-u.marker.radius-w.vectorLength(d))<0&&v>-2*u.marker.radius&&(u.plotX-=.01*d.x,u.plotY-=.01*d.y)),y.prototype.applyLimitBox.call(this,u,g)},h}(H);return W.layouts.packedbubble=k,k}),et(B,"Series/PackedBubble/PackedBubbleSeries.js",[B["Core/Color/Color.js"],B["Series/DragNodesComposition.js"],B["Series/GraphLayoutComposition.js"],B["Core/Globals.js"],B["Series/PackedBubble/PackedBubblePoint.js"],B["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],B["Series/PackedBubble/PackedBubbleLayout.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V,$,Z,U,z,I){var E,M=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 s in e)e.hasOwnProperty(s)&&(o[s]=e[s])},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)}),k=W.parse,y=V.noop,h=z.series.prototype,u=z.seriesTypes.bubble,g=I.addEvent,d=I.clamp,v=I.defined,w=I.extend,S=I.fireEvent,C=I.isArray,c=I.isNumber,f=I.merge,r=I.pick,a=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 M(i,t),i.compose=function(o,e,s,n){u.compose(o,e,s,n),R.compose(e),U.compose(e)},i.prototype.accumulateAllPoints=function(){for(var o,e=this.chart,s=[],n=0,l=e.series;n<l.length;n++){var b=l[n];if(b.is("packedbubble")&&b.visible||!e.options.chart.ignoreHiddenSeries){o=b.yData||[];for(var T=0;T<o.length;T++)s.push([null,null,o[T],b.index,T,{id:T,marker:{radius:0}}])}}return s},i.prototype.addLayout=function(){var o,e=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},s=e.type||"packedbubble",n=this.chart.options.chart,l=this.chart.graphLayoutsStorage,b=this.chart.graphLayoutsLookup;l||(this.chart.graphLayoutsStorage=l={},this.chart.graphLayoutsLookup=b=[]),(o=l[s])||(e.enableSimulation=v(n.forExport)?!n.forExport:e.enableSimulation,l[s]=o=new H.layouts[s],o.init(e),b.splice(o.index,0,o)),this.layout=o,this.points.forEach(function(T){T.mass=2,T.degree=1,T.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",s=this.chart.graphLayoutsStorage,n=this.chart.graphLayoutsLookup,l=f(o,o.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),b=s[e+"-series"];b||(s[e+"-series"]=b=new H.layouts[e],b.init(l),n.splice(b.index,0,b)),this.parentNodeLayout=b,this.createParentNodes()},i.prototype.calculateParentRadius=function(){var o=this.seriesBox();this.parentNodeRadius=d(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,s=this.options.zMax,n=1/0,l=-1/0;return e&&s?[e,s]:(o.forEach(function(b){b.yData.forEach(function(T){v(T)&&(T>l&&(l=T),T<n&&(n=T))})}),[e=r(e,n),s=r(s,l)])},i.prototype.checkOverlap=function(o,e){var s=o[0]-e[0],n=o[1]-e[1],l=o[2]+e[2];return Math.sqrt(s*s+n*n)-Math.abs(l)<-.001},i.prototype.createParentNodes=function(){var o,e=this,s=this.pointClass,n=this.chart,l=this.parentNodeLayout,b=this.layout.options,T=this.parentNode,D={radius:this.parentNodeRadius,lineColor:this.color,fillColor:k(this.color).brighten(.4).get()};b.parentNodeOptions&&(D=f(b.parentNodeOptions.marker||{},D)),this.parentNodeMass=0,this.points.forEach(function(p){e.parentNodeMass+=Math.PI*Math.pow(p.marker.radius,2)}),this.calculateParentRadius(),l.nodes.forEach(function(p){p.seriesIndex===e.index&&(o=!0)}),l.setArea(0,0,n.plotWidth,n.plotHeight),o||(T||(T=new s().init(this,{mass:this.parentNodeRadius/2,marker:D,dataLabels:{inside:!1},states:{normal:{marker:D},hover:{marker:D}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(T.plotX=this.parentNode.plotX,T.plotY=this.parentNode.plotY),this.parentNode=T,l.addElementsToCollection([this],l.series),l.addElementsToCollection([T],l.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())),h.destroy.apply(this,arguments)},i.prototype.drawDataLabels=function(){h.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",h.drawDataLabels.call(this,[this.parentNode]))},i.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var o,e=this.chart,s=this.layout.options.parentNodeOptions.marker,n={fill:s.fillColor||k(this.color).brighten(.4).get(),opacity:s.fillOpacity,stroke:s.lineColor||this.color,"stroke-width":r(s.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},n),this.parentNode.graphic||(this.graph=this.parentNode.graphic=e.renderer.symbol(n.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(s){s.div?s.div.point=e:s.element.point=e}))},i.prototype.getPointRadius=function(){var o,e,s,n,l=this,b=this.chart,T=b.plotWidth,D=b.plotHeight,p=this.options,x=p.useSimulation,A=Math.min(T,D),N={},_=[],L=b.allDataPoints||[],O=L.length;["minSize","maxSize"].forEach(function(Y){var X=parseInt(p[Y],10),G=/%$/.test(p[Y]);N[Y]=G?A*X/100:X*Math.sqrt(O)}),b.minRadius=o=N.minSize/Math.sqrt(O),b.maxRadius=e=N.maxSize/Math.sqrt(O);var j=x?this.calculateZExtremes():[o,e];L.forEach(function(Y,X){s=x?d(Y[2],j[0],j[1]):Y[2],(n=l.getRadius(j[0],j[1],o,e,s))===0&&(n=null),L[X][2]=n,_.push(n)}),this.radii=_},i.prototype.init=function(){return h.init.apply(this,arguments),this.eventsToUnbind.push(g(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 s,n=this.layout,l=this.parentNodeLayout;l&&n.options.dragBetweenSeries&&l.nodes.forEach(function(b){e&&e.marker&&b!==e.series.parentNode&&(s=n.getDistXY(e,b),n.vectorLength(s)-b.marker.radius-e.marker.radius<0&&(b.series.addPoint(f(e.options,{plotX:e.plotX,plotY:e.plotY}),!1),n.removeElementFromCollection(e,n.nodes),e.remove()))}),R.onMouseUp.apply(this,arguments)}},i.prototype.placeBubbles=function(o){var e,s,n=this.checkOverlap,l=this.positionBubble,b=[],T=1,D=0,p=0,x=[],A=o.sort(function(N,_){return _[2]-N[2]});if(A.length){if(b.push([[0,0,A[0][2],A[0][3],A[0][4]]]),A.length>1)for(b.push([[0,0-A[1][2]-A[0][2],A[1][2],A[1][3],A[1][4]]]),s=2;s<A.length;s++)A[s][2]=A[s][2]||1,n(e=l(b[T][D],b[T-1][p],A[s]),b[T][0])?(b.push([]),p=0,b[T+1].push(l(b[T][D],b[T][0],A[s])),T++,D=0):T>1&&b[T-1][p+1]&&n(e,b[T-1][p+1])?(p++,b[T].push(l(b[T][D],b[T-1][p],A[s])),D++):(D++,b[T].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 s=this.options,n=o&&o.isParentNode,l=s.marker;n&&s.layoutAlgorithm&&s.layoutAlgorithm.parentNodeOptions&&(l=s.layoutAlgorithm.parentNodeOptions.marker);var b=l.fillOpacity,T=h.pointAttribs.call(this,o,e);return b!==1&&(T["fill-opacity"]=b),T},i.prototype.positionBubble=function(o,e,s){var n=Math.sqrt,l=Math.asin,b=Math.acos,T=Math.pow,D=Math.abs,p=n(T(o[0]-e[0],2)+T(o[1]-e[1],2)),x=b((T(p,2)+T(s[2]+e[2],2)-T(s[2]+o[2],2))/(2*(s[2]+e[2])*p)),A=l(D(o[0]-e[0])/p),N=(o[1]-e[1]<0?0:Math.PI)+x+A*((o[0]-e[0])*(o[1]-e[1])<0?1:-1),_=Math.cos(N),L=Math.sin(N);return[e[0]+(e[2]+s[2])*L,e[1]-(e[2]+s[2])*_,s[2],s[3],s[4]]},i.prototype.render=function(){var o=[];h.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(e){C(e.dataLabels)&&e.dataLabels.forEach(function(s){o.push(s)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(o))},i.prototype.resizeRadius=function(){var o,e,s,n,l,b=this.chart,T=b.rawPositions,D=Math.min,p=Math.max,x=b.plotLeft,A=b.plotTop,N=b.plotHeight,_=b.plotWidth;o=s=Number.POSITIVE_INFINITY,e=n=Number.NEGATIVE_INFINITY;for(var L=0,O=T;L<O.length;L++)l=(Q=O[L])[2],o=D(o,Q[0]-l),e=p(e,Q[0]+l),s=D(s,Q[1]-l),n=p(n,Q[1]+l);var j=[e-o,n-s],Y=[(_-x)/j[0],(N-A)/j[1]],X=D.apply([],Y);if(Math.abs(X-1)>1e-10){for(var G=0,q=T;G<q.length;G++){var Q;(Q=q[G])[2]*=X}this.placeBubbles(T)}else b.diffY=N/2+A-s-(n-s)/2,b.diffX=_/2+x-o-(e-o)/2},i.prototype.seriesBox=function(){var o,e=this.chart,s=this.data,n=Math.max,l=Math.min,b=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return s.forEach(function(T){v(T.plotX)&&v(T.plotY)&&T.marker.radius&&(o=T.marker.radius,b[0]=l(b[0],T.plotX-o),b[1]=n(b[1],T.plotX+o),b[2]=l(b[2],T.plotY-o),b[3]=n(b[3],T.plotY+o))}),c(b.width/b.height)?b:null},i.prototype.setVisible=function(){var o=this;h.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,s,n=this.chart,l=this.data,b=this.index,T=this.options.useSimulation;this.processedXData=this.xData,this.generatePoints(),v(n.allDataPoints)||(n.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),T?s=n.allDataPoints:(s=this.placeBubbles(n.allDataPoints),this.options.draggable=!1);for(var D=0,p=s;D<p.length;D++){var x=p[D];x[3]===b&&(o=l[x[4]],e=r(x[2],void 0),T||(o.plotX=x[0]-n.plotLeft+n.diffX,o.plotY=x[1]-n.plotTop+n.diffY),c(e)&&(o.marker=w(o.marker,{radius:e,width:2*e,height:2*e}),o.radius=e))}T&&this.deferLayout(),S(this,"afterTranslate")},i.defaultOptions=f(u.defaultOptions,Z),i}(u);return w(a.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:h.alignDataLabel,indexateNodes:y,onMouseDown:R.onMouseDown,onMouseMove:R.onMouseMove,redrawHalo:R.redrawHalo,searchPoint:y}),z.registerSeriesType("packedbubble",a),a}),et(B,"Series/Polygon/PolygonSeries.js",[B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=this&&this.__extends||($=function(g,d){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var S in w)w.hasOwnProperty(S)&&(v[S]=w[S])},$(g,d)},function(g,d){function v(){this.constructor=g}$(g,d),g.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}),U=W.noop,z=H.series,I=H.seriesTypes,E=I.area,M=I.line,k=I.scatter,y=V.extend,h=V.merge,u=function(g){function d(){var v=g!==null&&g.apply(this,arguments)||this;return v.data=void 0,v.options=void 0,v.points=void 0,v}return Z(d,g),d.prototype.getGraphPath=function(){for(var v=M.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},d.prototype.drawGraph=function(){this.options.fillColor=this.color,E.prototype.drawGraph.call(this)},d.defaultOptions=h(k.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),d}(k);return y(u.prototype,{type:"polygon",drawLegendSymbol:R.drawRectangle,drawTracker:z.prototype.drawTracker,setStackedPoints:U}),H.registerSeriesType("polygon",u),u}),et(B,"Core/Axis/WaterfallAxis.js",[B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(W,R){var H,V=R.addEvent,$=R.objectEach;return function(Z){var U=function(){function k(y){this.axis=y,this.stacks={changed:!1}}return k.prototype.renderStackTotals=function(){var y=this.axis,h=y.waterfall.stacks,u=y.stacking&&y.stacking.stackTotalGroup,g=new W(y,y.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=g,u&&$(h,function(d){$(d,function(v,w){g.total=v.stackTotal,g.x=+w,v.label&&(g.label=v.label),W.prototype.render.call(g,u),v.label=g.label,delete g.label})}),g.total=null},k}();function z(){var k=this.waterfall.stacks;k&&(k.changed=!1,delete k.alreadyChanged)}function I(){var k=this,y=k.options.stackLabels;y&&y.enabled&&k.waterfall.stacks&&k.waterfall.renderStackTotals()}function E(){for(var k=this.axes,y=this.series,h=y.length;h--;)y[h].options.stacking&&(k.forEach(function(u){u.isXAxis||(u.waterfall.stacks.changed=!0)}),h=0)}function M(){var k=this;k.waterfall||(k.waterfall=new U(k))}Z.Composition=U,Z.compose=function(k,y){V(k,"init",M),V(k,"afterBuildStacks",z),V(k,"afterRender",I),V(y,"beforeRedraw",E)}}(H||(H={})),H}),et(B,"Series/Waterfall/WaterfallPoint.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(W,R,H){var V,$=this&&this.__extends||(V=function(z,I){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var k in M)M.hasOwnProperty(k)&&(E[k]=M[k])},V(z,I)},function(z,I){function E(){this.constructor=z}V(z,I),z.prototype=I===null?Object.create(I):(E.prototype=I.prototype,new E)}),Z=H.isNumber,U=function(z){function I(){var E=z!==null&&z.apply(this,arguments)||this;return E.options=void 0,E.series=void 0,E}return $(I,z),I.prototype.getClassName=function(){var E=R.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}(W.prototype.pointClass);return U}),et(B,"Series/Waterfall/WaterfallSeries.js",[B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"],B["Core/Axis/WaterfallAxis.js"],B["Series/Waterfall/WaterfallPoint.js"]],function(W,R,H,V,$,Z){var U,z=this&&this.__extends||(U=function(c,f){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var t in a)a.hasOwnProperty(t)&&(r[t]=a[t])},U(c,f)},function(c,f){function r(){this.constructor=c}U(c,f),c.prototype=f===null?Object.create(f):(r.prototype=f.prototype,new r)}),I=H.seriesTypes,E=I.column,M=I.line,k=V.arrayMax,y=V.arrayMin,h=V.correctFloat,u=V.extend,g=V.isNumber,d=V.merge,v=V.objectEach,w=V.pick;function S(c,f){return Object.hasOwnProperty.call(c,f)}var C=function(c){function f(){var r=c!==null&&c.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 z(f,c),f.prototype.generatePoints=function(){E.prototype.generatePoints.apply(this);for(var r=0,a=this.points.length;r<a;r++){var t=this.points[r],i=this.processedYData[r];g(i)&&(t.isIntermediateSum||t.isSum)&&(t.y=h(i))}},f.prototype.translate=function(){var r,a,t,i,o=this,e=o.options,s=o.yAxis,n=w(e.minPointLength,5),l=n/2,b=e.threshold||0,T=e.stacking,D=s.waterfall.stacks[o.stackKey],p=b,x=b;E.prototype.translate.apply(o);for(var A=o.points,N=0;N<A.length;N++){var _=A[N],L=o.processedYData[N],O=_.shapeArgs;if(O&&g(L)){var j=[0,L],Y=_.y;if(T){if(D){var X=D[N];T==="overlap"?(a=X.stackState[X.stateIndex--],r=Y>=0?a:a-Y,S(X,"absolutePos")&&delete X.absolutePos,S(X,"absoluteNeg")&&delete X.absoluteNeg):(Y>=0?(a=X.threshold+X.posTotal,X.posTotal-=Y,r=a):(a=X.threshold+X.negTotal,X.negTotal-=Y,r=a-Y),X.posTotal||g(X.absolutePos)&&S(X,"absolutePos")&&(X.posTotal=X.absolutePos,delete X.absolutePos),X.negTotal||g(X.absoluteNeg)&&S(X,"absoluteNeg")&&(X.negTotal=X.absoluteNeg,delete X.absoluteNeg)),_.isSum||(X.connectorThreshold=X.threshold+X.stackTotal),s.reversed?(t=Y>=0?r-Y:r+Y,i=r):(t=r,i=r-Y),_.below=t<=b,O.y=s.translate(t,!1,!0,!1,!0),O.height=Math.abs(O.y-s.translate(i,!1,!0,!1,!0));var G=s.waterfall.dummyStackItem;G&&(G.x=N,G.label=D[N].label,G.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],O.y=s.translate(r,!1,!0,!1,!0),_.isSum?(O.y=s.translate(j[1],!1,!0,!1,!0),O.height=Math.min(s.translate(j[0],!1,!0,!1,!0),s.len)-O.y,_.below=j[1]<=b):_.isIntermediateSum?(Y>=0?(t=j[1]+p,i=p):(t=p,i=j[1]+p),s.reversed&&(t^=i,t^=i^=t),O.y=s.translate(t,!1,!0,!1,!0),O.height=Math.abs(O.y-Math.min(s.translate(i,!1,!0,!1,!0),s.len)),p+=j[1],_.below=t<=b):(O.height=L>0?s.translate(x,!1,!0,!1,!0)-O.y:s.translate(x,!1,!0,!1,!0)-s.translate(x-L,!1,!0,!1,!0),x+=L,_.below=x<b),O.height<0&&(O.y+=O.height,O.height*=-1);_.plotY=O.y=Math.round(O.y||0)-o.borderWidth%2/2,O.height=Math.max(Math.round(O.height||0),.001),_.yBottom=O.y+O.height,O.height<=n&&!_.isNull?(O.height=n,O.y-=l,_.plotY=O.y,_.y<0?_.minPointLengthOffset=-l:_.minPointLengthOffset=l):(_.isNull&&(O.width=0),_.minPointLengthOffset=0);var q=_.plotY+(_.negative?O.height:0);_.below&&(_.plotY+=O.height),_.tooltipPos&&(o.chart.inverted?_.tooltipPos[0]=s.len-q:_.tooltipPos[1]=q),_.isInside=this.isPointInside(_)}}},f.prototype.processData=function(r){var a,t,i,o,e,s,n,l=this,b=l.options,T=l.yData,D=b.data,p=T.length,x=b.threshold||0;for(i=t=o=e=0,n=0;n<p;n++)s=T[n],a=D&&D[n]?D[n]:{},s==="sum"||a.isSum?T[n]=h(i):s==="intermediateSum"||a.isIntermediateSum?(T[n]=h(t),t=0):(i+=s,t+=s),o=Math.min(i,o),e=Math.max(i,e);c.prototype.processData.call(this,r),b.stacking||(l.dataMin=o+x,l.dataMax=e)},f.prototype.toYData=function(r){return r.isSum?"sum":r.isIntermediateSum?"intermediateSum":r.y},f.prototype.updateParallelArrays=function(r,a){c.prototype.updateParallelArrays.call(this,r,a),this.yData[0]!=="sum"&&this.yData[0]!=="intermediateSum"||(this.yData[0]=null)},f.prototype.pointAttribs=function(r,a){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,a);return delete i.dashstyle,i},f.prototype.getGraphPath=function(){return[["M",0,0]]},f.prototype.getCrispPath=function(){var r,a,t,i,o,e,s,n,l,b=this.data,T=this.yAxis,D=b.length,p=Math.round(this.graph.strokeWidth())%2/2,x=Math.round(this.borderWidth)%2/2,A=this.xAxis.reversed,N=this.yAxis.reversed,_=this.options.stacking,L=[];for(l=1;l<D;l++)if(n=b[l].shapeArgs,i=b[l-1],s=b[l-1].shapeArgs,a=T.waterfall.stacks[this.stackKey],e=i.y>0?-s.height:0,a&&s&&n&&(t=a[l-1],_?(r=t.connectorThreshold,o=Math.round(T.translate(r,!1,!0,!1,!0)+(N?e:0))-p):o=s.y+i.minPointLengthOffset+x-p,L.push(["M",(s.x||0)+(A?0:s.width||0),o],["L",(n.x||0)+(A&&n.width||0),o])),s&&L.length&&(!_&&i.y<0&&!N||i.y>0&&N)){var O=L[L.length-2];O&&typeof O[2]=="number"&&(O[2]+=s.height||0);var j=L[L.length-1];j&&typeof j[2]=="number"&&(j[2]+=s.height||0)}return L},f.prototype.drawGraph=function(){M.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},f.prototype.setStackedPoints=function(){var r,a,t,i,o,e,s,n,l,b,T,D,p=this,x=p.options,A=p.yAxis.waterfall.stacks,N=x.threshold||0,_=N,L=_,O=p.stackKey,j=p.xData,Y=j.length;function X(Q,J,rt,lt){if(r){if(o)for(;rt<o;rt++)r.stackState[rt]+=lt;else r.stackState[0]=Q,o=r.stackState.length;r.stackState.push(r.stackState[o-1]+J)}}if(p.yAxis.stacking.usePercentage=!1,a=t=i=_,p.visible||!p.chart.options.chart.ignoreHiddenSeries){D=A.changed,(T=A.alreadyChanged)&&T.indexOf(O)<0&&(D=!0),A[O]||(A[O]={});var G=A[O];if(G)for(var q=0;q<Y;q++)G[b=j[q]]&&!D||(G[b]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:D&&G[b]?G[b].label:void 0}),r=G[b],(l=p.yData[q])>=0?r.posTotal+=l:r.negTotal+=l,n=x.data[q],e=r.absolutePos=r.posTotal,s=r.absoluteNeg=r.negTotal,r.stackTotal=e+s,o=r.stackState.length,n&&n.isIntermediateSum?(X(i,t,0,i),i=t,t=N,_^=L,_^=L^=_):n&&n.isSum?(X(N,a,o,0),_=N):(X(_,l,0,a),n&&(a+=l,t+=l)),r.stateIndex++,r.threshold=_,_+=r.stackTotal;A.changed=!1,A.alreadyChanged||(A.alreadyChanged=[]),A.alreadyChanged.push(O)}},f.prototype.getExtremes=function(){var r,a,t,i=this.options.stacking;return i?(r=this.yAxis.waterfall.stacks,a=this.stackedYNeg=[],t=this.stackedYPos=[],v(r[this.stackKey],i==="overlap"?function(o){a.push(y(o.stackState)),t.push(k(o.stackState))}:function(o){a.push(o.negTotal+o.threshold),t.push(o.posTotal+o.threshold)}),{dataMin:y(a),dataMax:k(t)}):{dataMin:this.dataMin,dataMax:this.dataMax}},f.defaultOptions=d(E.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),f}(E);return u(C.prototype,{getZonesGraphs:M.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:Z}),H.registerSeriesType("waterfall",C),$.compose(W,R),C}),et(B,"Core/Axis/RadialAxis.js",[B["Core/Axis/AxisDefaults.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(W,R,H,V){var $,Z=R.defaultOptions,U=H.noop,z=V.addEvent,I=V.correctFloat,E=V.defined,M=V.extend,k=V.fireEvent,y=V.merge,h=V.pick,u=V.relativeLength,g=V.wrap;return function(d){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},S={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 c(){this.autoConnect=this.isCircular&&h(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 G=this;return function(){if(G.isRadial&&G.tickPositions&&G.options.labels&&G.options.labels.allowOverlap!==!0)return G.tickPositions.map(function(q){return G.ticks[q]&&G.ticks[q].label}).filter(function(q){return!!q})}}function r(){return U}function a(G,q,Q){var J,rt,lt,gt=this.pane.center,mt=G.value;return this.isCircular?(E(mt)?G.point&&(G.point.shapeArgs||{}).start&&(mt=this.chart.inverted?this.translate(G.point.rectPlotY,!0):G.point.x):(rt=G.chartX||0,lt=G.chartY||0,mt=this.translate(Math.atan2(lt-Q,rt-q)-this.startAngleRad,!0)),rt=(J=this.getPosition(mt)).x,lt=J.y):(E(mt)||(rt=G.chartX,lt=G.chartY),E(rt)&&E(lt)&&(Q=gt[1]+this.chart.plotTop,mt=this.translate(Math.min(Math.sqrt(Math.pow(rt-q,2)+Math.pow(lt-Q,2)),gt[2]/2)-gt[3]/2,!0))),[mt,rt||0,lt||0]}function t(G,q,Q){var J,rt,lt=this.pane.center,gt=this.chart,mt=this.left||0,bt=this.top||0,yt=h(q,lt[2]/2-this.offset);return Q===void 0&&(Q=this.horiz?0:this.center&&-this.center[3]/2),Q&&(yt+=Q),this.isCircular||q!==void 0?((rt=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]],rt.yBounds=[bt+lt[1]-yt]):(J=this.postTranslate(this.angleRad,yt),rt=[["M",this.center[0]+gt.plotLeft,this.center[1]+gt.plotTop],["L",J.x,J.y]]),rt}function i(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function o(G,q,Q){var J,rt,lt,gt,mt,bt,yt=this.chart,ht=function(jt){if(typeof jt=="string"){var Ot=parseInt(jt,10);return wt.test(jt)&&(Ot=Ot*dt/100),Ot}return jt},it=this.center,st=this.startAngleRad,dt=it[2]/2,vt=Math.min(this.offset,0),Ct=this.left||0,xt=this.top||0,wt=/%$/,Mt=this.isCircular,St=h(ht(Q.outerRadius),dt),Tt=ht(Q.innerRadius),Lt=h(ht(Q.thickness),10);if(this.options.gridLineInterpolation==="polygon")bt=this.getPlotLinePath({value:G}).concat(this.getPlotLinePath({value:q,reverse:!0}));else{G=Math.max(G,this.min),q=Math.min(q,this.max);var Pt=this.translate(G),Dt=this.translate(q);Mt||(St=Pt||0,Tt=Dt||0),Q.shape!=="circle"&&Mt?(J=st+(Pt||0),rt=st+(Dt||0)):(J=-Math.PI/2,rt=1.5*Math.PI,mt=!0),St-=vt,Lt-=vt,bt=yt.renderer.symbols.arc(Ct+it[0],xt+it[1],St,St,{start:Math.min(J,rt),end:Math.max(J,rt),innerR:h(Tt,St-Lt),open:mt}),Mt&&(lt=(rt+J)/2,gt=Ct+it[0]+it[2]/2*Math.cos(lt),bt.xBounds=lt>-Math.PI/2&<<Math.PI/2?[gt,yt.plotWidth]:[0,gt],bt.yBounds=[xt+it[1]+it[2]/2*Math.sin(lt)],bt.yBounds[0]+=lt>-Math.PI&<<0||lt>Math.PI?-10:10)}return bt}function e(G){var q,Q,J,rt,lt,gt,mt,bt,yt,ht=this,it=this.pane.center,st=this.chart,dt=st.inverted,vt=G.reverse,Ct=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},xt=Ct.innerRadius||"0%",wt=Ct.outerRadius||"100%",Mt=it[0]+st.plotLeft,St=it[1]+st.plotTop,Tt=this.height,Lt=G.isCrosshair,Pt=it[3]/2,Dt=G.value,jt=this.getPosition(Dt),Ot=jt.x,It=jt.y;if(Lt&&(Dt=(bt=this.getCrosshairPosition(G,Mt,St))[0],Ot=bt[1],It=bt[2]),this.isCircular)Q=Math.sqrt(Math.pow(Ot-Mt,2)+Math.pow(It-St,2)),J=typeof xt=="string"?u(xt,1):xt/Q,rt=typeof wt=="string"?u(wt,1):wt/Q,it&&Pt&&(J<(q=Pt/Q)&&(J=q),rt<q&&(rt=q)),yt=[["M",Mt+J*(Ot-Mt),St-J*(St-It)],["L",Ot-(1-rt)*(Ot-Mt),It+(1-rt)*(St-It)]];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=[],st[dt?"yAxis":"xAxis"].forEach(function(Zt){Zt.pane===ht.pane&&(lt=Zt)}),lt){mt=lt.tickPositions,lt.autoConnect&&(mt=mt.concat([mt[0]])),vt&&(mt=mt.slice().reverse()),Dt&&(Dt+=Pt);for(var Nt=0;Nt<mt.length;Nt++)gt=lt.getPosition(mt[Nt],Dt),yt.push(Nt?["L",gt.x,gt.y]:["M",gt.x,gt.y])}return yt}function s(G,q){var Q=this.translate(G);return this.postTranslate(this.isCircular?Q:this.angleRad,h(this.isCircular?q:Q<0?0:Q,this.center[2]/2)-this.offset)}function n(){var G=this.center,q=this.chart,Q=this.options.title;return{x:q.plotLeft+G[0]+(Q.x||0),y:q.plotTop+G[1]-{high:.5,middle:.25,low:0}[Q.align]*G[2]+(Q.y||0)}}function l(G){G.beforeSetTickPositions=c,G.createLabelCollector=f,G.getCrosshairPosition=a,G.getLinePath=t,G.getOffset=i,G.getPlotBandPath=o,G.getPlotLinePath=e,G.getPosition=s,G.getTitlePosition=n,G.postTranslate=_,G.setAxisSize=O,G.setAxisTranslation=j,G.setOptions=Y}function b(){var G=this.chart,q=this.options,Q=G.angular&&this.isXAxis,J=this.pane,rt=J&&J.options;if(!Q&&J&&(G.angular||G.polar)){var lt=2*Math.PI,gt=(h(rt.startAngle,0)-90)*Math.PI/180,mt=(h(rt.endAngle,h(rt.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 T(G){this.isRadial&&(G.align=void 0,G.preventDefault())}function D(){if(this.chart&&this.chart.labelCollectors){var G=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;G>=0&&this.chart.labelCollectors.splice(G,1)}}function p(G){var q,Q,J=this.chart,rt=J.inverted,lt=J.angular,gt=J.polar,mt=this.isXAxis,bt=this.coll,yt=lt&&mt,ht=G.userOptions.pane||0,it=this.pane=J.pane&&J.pane[ht];bt!=="colorAxis"?(lt?(yt?((Q=this).isHidden=!0,Q.createLabelCollector=r,Q.getOffset=U,Q.redraw=L,Q.render=L,Q.setScale=U,Q.setCategories=U,Q.setTitle=U):l(this),(q=!mt)&&(this.defaultPolarOptions=S)):gt&&(l(this),q=this.horiz,this.defaultPolarOptions=q?w:y(bt==="xAxis"?W.defaultXAxisOptions:W.defaultYAxisOptions,C),rt&&bt==="yAxis"&&(this.defaultPolarOptions.stackLabels=W.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),lt||gt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&J.labelCollectors.push(this.labelCollector)):this.isRadial=!1,it&&q&&(it.axis=this),this.isCircular=q):this.isRadial=!1}function x(){this.isRadial&&this.beforeSetTickPositions()}function A(G){var q=this.label;if(q){var Q,J=this.axis,rt=q.getBBox(),lt=J.options.labels,gt=(J.translate(this.pos)+J.startAngleRad+Math.PI/2)/Math.PI*180%360,mt=Math.round(gt),bt=E(lt.y)?0:.3*-rt.height,yt=lt.y,ht=20,it=lt.align,st="end",dt=mt<0?mt+360:mt,vt=dt,Ct=0,xt=0;J.isRadial&&(Q=J.getPosition(this.pos,J.center[2]/2+u(h(lt.distance,-25),J.center[2]/2,-J.center[2]/2)),lt.rotation==="auto"?q.attr({rotation:gt}):E(yt)||(yt=J.chart.renderer.fontMetrics(q.styles&&q.styles.fontSize).b-rt.height/2),E(it)||(J.isCircular?(rt.width>J.len*J.tickInterval/(J.max-J.min)&&(ht=0),it=gt>ht&><180-ht?"left":gt>180+ht&><360-ht?"right":"center"):it="center",q.attr({align:it})),it==="auto"&&J.tickPositions.length===2&&J.isCircular&&(dt>90&&dt<180?dt=180-dt:dt>270&&dt<=360&&(dt=540-dt),vt>180&&vt<=360&&(vt=360-vt),J.pane.options.startAngle!==mt&&J.pane.options.startAngle!==mt+360&&J.pane.options.startAngle!==mt-360||(st="start"),it=mt>=-90&&mt<=90||mt>=-360&&mt<=-270||mt>=270&&mt<=360?st==="start"?"right":"left":st==="start"?"left":"right",vt>70&&vt<110&&(it="center"),dt<15||dt>=180&&dt<195?Ct=.3*rt.height:dt>=15&&dt<=35?Ct=st==="start"?0:.75*rt.height:dt>=195&&dt<=215?Ct=st==="start"?.75*rt.height:0:dt>35&&dt<=90?Ct=st==="start"?.25*-rt.height:rt.height:dt>215&&dt<=270&&(Ct=st==="start"?rt.height:.25*-rt.height),vt<15?xt=st==="start"?.15*-rt.height:.15*rt.height:vt>165&&vt<=180&&(xt=st==="start"?.15*rt.height:.15*-rt.height),q.attr({align:it}),q.translate(xt,Ct+bt)),G.pos.x=Q.x+(lt.x||0),G.pos.y=Q.y+(yt||0))}}function N(G){this.axis.getPosition&&M(G.pos,this.axis.getPosition(this.pos))}function _(G,q){var Q=this.chart,J=this.center;return G=this.startAngleRad+G,{x:Q.plotLeft+J[0]+Math.cos(G)*q,y:Q.plotTop+J[1]+Math.sin(G)*q}}function L(){this.isDirty=!1}function O(){var G,q;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),G=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(q=this.postTranslate(this.angleRad,G[3]/2),G[0]=q.x-this.chart.plotLeft,G[1]=q.y-this.chart.plotTop),this.len=this.width=this.height=(G[2]-G[3])*h(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(G){var q=this.options=y(this.constructor.defaultOptions,this.defaultPolarOptions,Z[this.coll],G);q.plotBands||(q.plotBands=[]),k(this,"afterSetOptions")}function X(G,q,Q,J,rt,lt,gt){var mt,bt=this.axis;return bt.isRadial?["M",q,Q,"L",(mt=bt.getPosition(this.pos,bt.center[2]/2+J)).x,mt.y]:G.call(this,q,Q,J,rt,lt,gt)}d.compose=function(G,q){return v.indexOf(G)===-1&&(v.push(G),z(G,"afterInit",b),z(G,"autoLabelAlign",T),z(G,"destroy",D),z(G,"init",p),z(G,"initialAxisTranslation",x)),v.indexOf(q)===-1&&(v.push(q),z(q,"afterGetLabelPosition",A),z(q,"afterGetPosition",N),g(q.prototype,"getMarkPath",X)),G}}($||($={})),$}),et(B,"Series/PolarComposition.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Globals.js"],B["Extensions/Pane.js"],B["Core/Axis/RadialAxis.js"],B["Core/Utilities.js"]],function(W,R,H,V,$){var Z=this&&this.__spreadArray||function(p,x,A){if(A||arguments.length===2)for(var N,_=0,L=x.length;_<L;_++)!N&&_ in x||(N||(N=Array.prototype.slice.call(x,0,_)),N[_]=x[_]);return p.concat(N||Array.prototype.slice.call(x))},U=W.animObject,z=$.addEvent,I=$.defined,E=$.find,M=$.isNumber,k=$.pick,y=$.splat,h=$.uniqueKey,u=$.wrap,g=[];function d(p,x,A,N){var _,L,O,j,Y,X,G=1.5,q=2.5,Q=N?1:0,J=(_=x>=0&&x<=p.length-1?x:x<0?p.length-1+x:0)-1<0?p.length-(1+Q):_-1,rt=_+1>p.length-1?Q:_+1,lt=p[J],gt=p[rt],mt=lt.plotX,bt=lt.plotY,yt=gt.plotX,ht=gt.plotY,it=p[_].plotX,st=p[_].plotY;L=(G*it+mt)/q,O=(G*st+bt)/q,j=(G*it+yt)/q,Y=(G*st+ht)/q;var dt=Math.sqrt(Math.pow(L-it,2)+Math.pow(O-st,2)),vt=Math.sqrt(Math.pow(j-it,2)+Math.pow(Y-st,2)),Ct=Math.atan2(O-st,L-it),xt=Math.atan2(Y-st,j-it);X=Math.PI/2+(Ct+xt)/2,Math.abs(Ct-X)>Math.PI/2&&(X-=Math.PI),L=it+Math.cos(X)*dt,O=st+Math.sin(X)*dt;var wt={rightContX:j=it+Math.cos(Math.PI+X)*vt,rightContY:Y=st+Math.sin(Math.PI+X)*vt,leftContX:L,leftContY:O,plotX:it,plotY:st};return A&&(wt.prevPointCont=d(p,J,!1,N)),wt}function v(){(this.pane||[]).forEach(function(p){p.render()})}function w(p){var x=p.args[0].xAxis,A=p.args[0].yAxis,N=p.args[0].chart;x&&A&&(A.gridLineInterpolation==="polygon"?(x.startOnTick=!0,x.endOnTick=!0):x.gridLineInterpolation==="polygon"&&N.inverted&&(A.startOnTick=!0,A.endOnTick=!0))}function S(){var p=this;this.pane||(this.pane=[]),this.options.pane=y(this.options.pane),this.options.pane.forEach(function(x){new H(x,p)},this)}function C(p){var x=p.args.marker,A=this.chart.xAxis[0],N=this.chart.yAxis[0],_=this.chart.inverted,L=_?N:A,O=_?A:N;if(this.chart.polar){p.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,G=x.attr?x.attr("innerR"):x.innerR;p.result.x=j+L.pos,p.result.width=X-j,p.result.y=O.len+O.pos-G,p.result.height=G-Y}}function c(p){var x=this.chart;if(x.polar&&x.hoverPane&&x.hoverPane.axis){p.preventDefault();var A=x.hoverPane.center,N=this.mouseDownX||0,_=this.mouseDownY||0,L=p.args.chartY,O=p.args.chartX,j=2*Math.PI,Y=x.hoverPane.axis.startAngleRad,X=x.hoverPane.axis.endAngleRad,G=x.inverted?x.xAxis[0]:x.yAxis[0],q={},Q="arc";if(q.x=A[0]+x.plotLeft,q.y=A[1]+x.plotTop,this.zoomHor){var J=Y>0?X-Y:Math.abs(Y)+Math.abs(X),rt=Math.atan2(_-x.plotTop-A[1],N-x.plotLeft-A[0])-Y,lt=Math.atan2(L-x.plotTop-A[1],O-x.plotLeft-A[0])-Y;q.r=A[2]/2,q.innerR=A[3]/2,rt<=0&&(rt+=j),lt<=0&&(lt+=j),lt<rt&&(lt=[rt,rt=lt][0]),J<j&&Y+lt>X+(j-J)/2&&(lt=rt,rt=Y<=0?Y:0);var gt=q.start=Math.max(rt+Y,Y),mt=q.end=Math.min(lt+Y,X);if(G.options.gridLineInterpolation==="polygon"){(Tt=x.hoverPane.axis).tickInterval;var bt=gt-Tt.startAngleRad+Tt.pos,yt=mt-gt,ht=G.getPlotLinePath({value:G.max}),it=Tt.toValue(bt),st=Tt.toValue(bt+yt);if(it<Tt.getExtremes().min){var dt=Tt.getExtremes(),vt=dt.min;it=dt.max-(vt-it)}if(st<Tt.getExtremes().min){var Ct=Tt.getExtremes(),xt=Ct.min;st=Ct.max-(xt-st)}st<it&&(st=[it,it=st][0]),(ht=t(ht,it,st,Tt)).push(["L",A[0]+x.plotLeft,x.plotTop+A[1]]),q.d=ht,Q="path"}}if(this.zoomVert){var wt=x.inverted?x.xAxis[0]:x.yAxis[0],Mt=Math.sqrt(Math.pow(N-x.plotLeft-A[0],2)+Math.pow(_-x.plotTop-A[1],2)),St=Math.sqrt(Math.pow(O-x.plotLeft-A[0],2)+Math.pow(L-x.plotTop-A[1],2));St<Mt&&(Mt=[St,St=Mt][0]),St>A[2]/2&&(St=A[2]/2),Mt<A[3]/2&&(Mt=A[3]/2),this.zoomHor||(q.start=Y,q.end=X),q.r=St,q.innerR=Mt,wt.options.gridLineInterpolation==="polygon"&&(mt=wt.toValue(wt.len+wt.pos-Mt),gt=wt.toValue(wt.len+wt.pos-St),ht=wt.getPlotLinePath({value:gt}).concat(wt.getPlotLinePath({value:mt,reverse:!0})),q.d=ht,Q="path")}if(this.zoomHor&&this.zoomVert&&G.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,it=Tt.toValue(bt),st=Tt.toValue(bt+yt),q.d instanceof Array){var Lt=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;Lt=t(Lt,it,st,Dt),(Pt=t(Pt,it,st,Dt))&&(Pt[0][0]="L"),Pt=Z([],Pt,!0).reverse(),q.d=Lt.concat(Pt),Q="path"}}p.attrs=q,p.shapeType=Q}}function f(){var p=this.chart;p.polar&&(this.polar=new D(this),p.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function r(){if(this.chart.polar&&this.xAxis){var p=this,x=p.chart;p.kdByAngle=x.tooltip&&x.tooltip.shared,p.kdByAngle?p.searchPoint=a:p.options.findNearestPointBy="xy";for(var A=p.points,N=A.length;N--;)p.preventPostTranslate||p.polar.toXY(A[N]),x.hasParallelCoordinates||p.yAxis.reversed||(k(A[N].y,Number.MIN_VALUE)<p.yAxis.min||A[N].x<p.xAxis.min||A[N].x>p.xAxis.max?(A[N].isNull=!0,A[N].plotY=NaN):A[N].isNull=A[N].isValid&&!A[N].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!p.eventsToUnbind.push(z(p,"afterRender",function(){var _,L,O,j,Y,X,G,q,Q;x.polar&&(_=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:_[0],y:_[1],r:_[2]/2,innerR:_[3]/2}):this.clipCircle=(L=x.renderer,O=_[0],j=_[1],Y=_[2]/2,X=_[3]/2,G=h(),q=L.createElement("clipPath").attr({id:G}).add(L.defs),(Q=X?L.arc(O,j,Y,X,0,2*Math.PI).add(q):L.circle(O,j,Y).add(q)).id=G,Q.clipPath=q,Q),this.group.clip(this.clipCircle),this.setClip=R.noop)})))}}function a(p){var x=this,A=x.chart,N=x.xAxis,_=N.pane&&N.pane.center,L=p.chartX-(_&&_[0]||0)-A.plotLeft,O=p.chartY-(_&&_[1]||0)-A.plotTop;return x.searchKDTree({clientX:180+Math.atan2(L,O)*(-180/Math.PI)})}function t(p,x,A,N){var _=N.tickInterval,L=N.tickPositions,O=E(L,function(Y){return Y>=A}),j=E(Z([],L,!0).reverse(),function(Y){return Y<=x});return I(O)||(O=L[L.length-1]),I(j)||(j=L[0],O+=_,p[0][0]="L",p.unshift(p[p.length-3])),(p=p.slice(L.indexOf(j),L.indexOf(O)+1))[0][0]="M",p}function i(p,x){return E(this.pane||[],function(A){return A.options.id===x})||p.call(this,x)}function o(p,x,A,N,_,L){var O,j,Y,X=this.chart,G=k(N.inside,!!this.options.stacking);X.polar?(O=x.rectPlotX/Math.PI*180,X.inverted?(this.forceDL=X.isInsidePlot(x.plotX,x.plotY),G&&x.shapeArgs?(j=x.shapeArgs,_={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&&(_={x:x.tooltipPos[0],y:x.tooltipPos[1]}),N.align=k(N.align,"center"),N.verticalAlign=k(N.verticalAlign,"middle")):N=function(q,Q){var J,rt;return Q.align===null&&(J=q>20&&q<160?"left":q>200&&q<340?"right":"center",Q.align=J),Q.verticalAlign===null&&(rt=q<45||q>315?"bottom":q>135&&q<225?"top":"middle",Q.verticalAlign=rt),Q}(O,N),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,x,A,N,_,L),this.isRadialBar&&x.shapeArgs&&x.shapeArgs.start===x.shapeArgs.end?A.hide():A.show()):p.call(this,x,A,N,_,L)}function e(p){var x,A,N,_,L,O,j,Y,X,G,q,Q,J,rt=this,lt=rt.options,gt=lt.stacking,mt=rt.chart,bt=rt.xAxis,yt=rt.yAxis,ht=yt.reversed,it=yt.center,st=bt.startAngleRad,dt=bt.endAngleRad-st,vt=lt.threshold,Ct=0,xt=0,wt=0;if(rt.preventPostTranslate=!0,p.call(rt),bt.isRadial)for(N=(x=rt.points).length,_=yt.translate(yt.min),L=yt.translate(yt.max),vt=lt.threshold||0,mt.inverted&&M(vt)&&(Ct=yt.translate(vt),I(Ct)&&(Ct<0?Ct=0:Ct>dt&&(Ct=dt),rt.translatedThreshold=Ct+st));N--;)q=(A=x[N]).barX,j=A.x,Y=A.y,A.shapeType="arc",mt.inverted?(A.plotY=yt.translate(Y),gt&&yt.stacking?(G=yt.stacking.stacks[(Y<0?"-":"")+rt.stackKey],rt.visible&&G&&G[j]&&(A.isNull||(X=G[j].points[rt.getStackIndicator(void 0,j,rt.index).key],xt=yt.translate(X[0]),wt=yt.translate(X[1]),I(xt)&&(xt=$.clamp(xt,0,dt))))):(xt=Ct,wt=A.plotY),xt>wt&&(wt=[xt,xt=wt][0]),ht?wt>_?wt=_:xt<L?xt=L:(xt>_||wt<L)&&(xt=wt=dt):xt<_?xt=_:wt>L?wt=L:(wt<_||xt>L)&&(xt=wt=0),yt.min>yt.max&&(xt=wt=ht?dt:0),xt+=st,wt+=st,it&&(A.barX=q+=it[3]/2),Q=Math.max(q,0),J=Math.max(q+A.pointWidth,0),A.shapeArgs={x:it&&it[0],y:it&&it[1],r:J,innerR:Q,start:xt,end:wt},A.opacity=xt===wt?0:void 0,A.plotY=(I(rt.translatedThreshold)&&(xt<rt.translatedThreshold?xt:wt))-st):(xt=q+st,A.shapeArgs=rt.polar.arc(A.yBottom,A.plotY,xt,xt+A.pointWidth)),rt.polar.toXY(A),mt.inverted?(O=yt.postTranslate(A.rectPlotY,q+A.pointWidth/2),A.tooltipPos=[O.x-mt.plotLeft,O.y-mt.plotTop]):A.tooltipPos=[A.plotX,A.plotY],it&&(A.ttBelow=A.plotY>it[1])}function s(p,x){var A,N,_=this;if(this.chart.polar){x=x||this.points;for(var L=0;L<x.length;L++)if(!x[L].isNull){A=L;break}this.options.connectEnds!==!1&&A!==void 0&&(this.connectEnds=!0,x.splice(x.length,0,x[A]),N=!0),x.forEach(function(j){j.polarPlotY===void 0&&_.polar.toXY(j)})}var O=p.apply(this,[].slice.call(arguments,1));return N&&x.pop(),O}function n(p,x){var A=this.chart,N={xAxis:[],yAxis:[]};return A.polar?A.axes.forEach(function(_){if(_.coll!=="colorAxis"){var L=_.isXAxis,O=_.center,j=x.chartX-O[0]-A.plotLeft,Y=x.chartY-O[1]-A.plotTop;N[L?"xAxis":"yAxis"].push({axis:_,value:_.translate(L?Math.PI-Math.atan2(j,Y):Math.sqrt(Math.pow(j,2)+Math.pow(Y,2)),!0)})}}):N=p.call(this,x),N}function l(p,x){this.chart.polar||p.call(this,x)}function b(p,x){var A,N,_,L,O,j,Y=this,X=this.chart,G=this.group,q=this.markerGroup,Q=this.xAxis&&this.xAxis.center,J=X.plotLeft,rt=X.plotTop,lt=this.options.animation;X.polar?Y.isRadialBar?x||(Y.startAngleRad=k(Y.translatedThreshold,Y.xAxis.startAngleRad),R.seriesTypes.pie.prototype.animate.call(Y,x)):X.renderer.isSVG&&(lt=U(lt),Y.is("column")?x||(N=Q[3]/2,Y.points.forEach(function(gt){_=gt.graphic,L=gt.shapeArgs,O=L&&L.r,j=L&&L.innerR,_&&L&&(_.attr({r:N,innerR:N}),_.animate({r:O,innerR:j},Y.options.animation))})):x?(A={translateX:Q[0]+J,translateY:Q[1]+rt,scaleX:.001,scaleY:.001},G.attr(A),q&&q.attr(A)):(A={translateX:J,translateY:rt,scaleX:1,scaleY:1},G.animate(A,lt),q&&q.animate(A,lt))):p.call(this,x)}function T(p,x,A,N){var _,L;if(this.chart.polar)if(N){var O=(L=d(x,N,!0,this.connectEnds)).prevPointCont&&L.prevPointCont.rightContX,j=L.prevPointCont&&L.prevPointCont.rightContY;_=["C",M(O)?O:L.plotX,M(j)?j:L.plotY,M(L.leftContX)?L.leftContX:L.plotX,M(L.leftContY)?L.leftContY:L.plotY,L.plotX,L.plotY]}else _=["M",A.plotX,A.plotY];else _=p.call(this,x,A,N);return _}var D=function(){function p(x){this.series=x}return p.compose=function(x,A,N,_,L,O,j,Y,X){if(V.compose(x,L),g.indexOf(A)===-1){g.push(A),z(A,"afterDrawChartBox",v),z(A,"getAxes",S),z(A,"init",w);var G=A.prototype;u(G,"get",i)}if(g.indexOf(N)===-1){g.push(N);var q=N.prototype;u(q,"getCoordinates",n),u(q,"pinch",l),z(N,"getSelectionMarkerAttrs",c),z(N,"getSelectionBox",C)}if(g.indexOf(_)===-1){g.push(_),z(_,"afterInit",f),z(_,"afterTranslate",r,{order:2});var Q=_.prototype;u(Q,"animate",b)}if(j&&g.indexOf(j)===-1){g.push(j);var J=j.prototype;u(J,"alignDataLabel",o),u(J,"animate",b),u(J,"translate",e)}if(Y&&g.indexOf(Y)===-1){g.push(Y);var rt=Y.prototype;u(rt,"getGraphPath",s)}if(X&&g.indexOf(X)===-1){g.push(X);var lt=X.prototype;u(lt,"getPointSpline",T),O&&g.indexOf(O)===-1&&(g.push(O),O.prototype.getPointSpline=lt.getPointSpline)}},p.prototype.arc=function(x,A,N,_){var L=this.series,O=L.xAxis.center,j=L.yAxis.len,Y=O[3]/2,X=j-A+Y,G=j-k(x,j)+Y;return L.yAxis.reversed&&(X<0&&(X=Y),G<0&&(G=Y)),{x:O[0],y:O[1],r:X,innerR:G,start:N,end:_}},p.prototype.toXY=function(x){var A,N=this.series,_=N.chart,L=N.xAxis,O=N.yAxis,j=x.plotX,Y=_.inverted,X=x.y,G=x.plotY,q=Y?j:O.len-G;if(Y&&N&&!N.isRadialBar&&(x.plotY=G=M(X)?O.translate(X):0),x.rectPlotX=j,x.rectPlotY=G,O.center&&(q+=O.center[3]/2),M(G)){var Q=Y?O.postTranslate(G,q):L.postTranslate(j,q);x.plotX=x.polarPlotX=Q.x-_.plotLeft,x.plotY=x.polarPlotY=Q.y-_.plotTop}N.kdByAngle?((A=(j/Math.PI*180+L.pane.options.startAngle)%360)<0&&(A+=360),x.clientX=A):x.clientX=x.plotX},p}();return D}),et(B,"masters/highcharts-more.src.js",[B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Bubble/BubbleSeries.js"],B["Series/PackedBubble/PackedBubbleSeries.js"],B["Series/PolarComposition.js"]],function(W,R,H,V,$){var Z=W;H.compose(Z.Axis,Z.Chart,Z.Legend,Z.Series),V.compose(Z.Axis,Z.Chart,Z.Legend,Z.Series),$.compose(Z.Axis,Z.Chart,Z.Pointer,Z.Series,Z.Tick,R.seriesTypes.areasplinerange,R.seriesTypes.column,R.seriesTypes.line,R.seriesTypes.spline)})},ot.exports?(ut.default=ut,ot.exports=ut):(ct=[at(4783)],(pt=function(ft){return ut(ft),ut.Highcharts=ft,ut}.apply(nt,ct))===void 0||(ot.exports=pt))},6956:(ot,nt,at)=>{at.d(nt,{A:()=>ct});const ct=Array.isArray},6979:(ot,nt,at)=>{at.d(nt,{A:()=>ct});const ct=function(pt,ut){return pt===ut||pt!=pt&&ut!=ut}},7313:(ot,nt,at)=>{at.d(nt,{A:()=>ct});const ct=function(pt){return pt!=null&&typeof pt=="object"}},7783:function(ot,nt,at){var ct=this&&this.__createBinding||(Object.create?function(B,et,W,R){R===void 0&&(R=W);var H=Object.getOwnPropertyDescriptor(et,W);H&&!("get"in H?!et.__esModule:H.writable||H.configurable)||(H={enumerable:!0,get:function(){return et[W]}}),Object.defineProperty(B,R,H)}:function(B,et,W,R){R===void 0&&(R=W),B[R]=et[W]}),pt=this&&this.__exportStar||function(B,et){for(var W in B)W==="default"||Object.prototype.hasOwnProperty.call(et,W)||ct(et,B,W)},ut=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(nt,"__esModule",{value:!0});var ft=ut(at(4608));nt.default=ft.default,pt(at(4783),nt)},7942:(ot,nt,at)=>{at.d(nt,{A:()=>ct});const ct=function(pt){var ut=typeof pt;return pt!=null&&(ut=="object"||ut=="function")}},8552:(ot,nt,at)=>{at.r(nt),at.d(nt,{default:()=>ut});var ct=at(5118),pt=at(9322);const ut=function(ft,B,et){var W=ft==null?void 0:function(R,H){for(var V=0,$=(H=(0,ct.A)(H,R)).length;R!=null&&V<$;)R=R[(0,pt.A)(H[V++])];return V&&V==$?R:void 0}(ft,B);return W===void 0?et:W}},9170:function(ot,nt,at){var ct=this&&this.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(at(5134)),ut=ct(at(605)),ft={enabled:!0,overflow:"justify",style:{color:ut.default.labelColor,fontFamily:ut.default.fontFamily,fontSize:"13px",fontWeight:"normal",cursor:"default",lineHeight:"14px"}},B={series:{turboThreshold:1e3,dataLabels:pt.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:ut.default.labelColor,fontFamily:ut.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:pt.default.merge(ft,{align:"center",enabled:!1}),cropThreshold:300,pointRange:0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0},column:{maxPointWidth:82,dataLabels:pt.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"bottom",overflow:"justify"})},bar:{maxPointWidth:82,dataLabels:pt.default.merge(ft,{align:"center",enabled:!1,verticalAlign:"middle",overflow:"justify"})},pie:{dataLabels:{overflow:"ellipsis"}}};nt.default=B},9322:(ot,nt,at)=>{at.d(nt,{A:()=>pt});var ct=at(4089);const pt=function(ut){if(typeof ut=="string"||(0,ct.A)(ut))return ut;var ft=ut+"";return ft=="0"&&1/ut==-1/0?"-0":ft}},9465:(ot,nt,at)=>{at.d(nt,{A:()=>ut});var ct=at(123);const pt=function(){try{var ft=(0,ct.A)(Object,"defineProperty");return ft({},"",{}),ft}catch(B){}}(),ut=function(ft,B,et){B=="__proto__"&&pt?pt(ft,B,{configurable:!0,enumerable:!0,value:et,writable:!0}):ft[B]=et}},9600:(ot,nt,at)=>{at.d(nt,{A:()=>ut});var ct=at(6713),pt=typeof self=="object"&&self&&self.Object===Object&&self;const ut=ct.A||pt||Function("return this")()},9681:function(ot,nt,at){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(nt,"__esModule",{value:!0});var pt=ct(at(605)),ut={align:"center",itemHoverStyle:{color:pt.default.legendColor},itemStyle:{color:pt.default.legendColor,fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis",fontFamily:pt.default.fontFamily},navigation:{style:{color:pt.default.legendNavigationColor,fontFamily:pt.default.fontFamily},activeColor:pt.default.legendNavigationColor,inactiveColor:pt.default.legendNavigationSecondaryColor},alignColumns:!1};nt.default=ut}},K={};function tt(ot){var nt=K[ot];if(nt!==void 0)return nt.exports;var at=K[ot]={exports:{}};return F[ot].call(at.exports,at,at.exports,tt),at.exports}return tt.d=(ot,nt)=>{for(var at in nt)tt.o(nt,at)&&!tt.o(ot,at)&&Object.defineProperty(ot,at,{enumerable:!0,get:nt[at]})},tt.o=(ot,nt)=>Object.prototype.hasOwnProperty.call(ot,nt),tt.r=ot=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ot,"__esModule",{value:!0})},tt(938)})())})(Yr,Yr.exports);var Oy=Yr.exports;const ic=Zr(Oy),Dy="rgb(255, 255, 255)",ta="rgb(43, 51, 66)",Vo=20,$o=4,jy=2,Ur=1,Iy=Vo*2,Ny=26,By=20,ea=35,_y=Vo+$o-2,ia={key:"brightness",to:.15};ic.Series.types.treemap.prototype.squarifiedWithTopSpacing=function(m,P){const F=Gy(m.height,this.chart.plotHeight),K=this.squarified(m,P),tt=F(_y);return Wy(this.chart)?K.map((ot,nt)=>{const at=ot.height>=F(Iy);return P[nt].point.options.custom.bigLabelSpacing=at,at&&(ot.height=ot.height-tt,ot.y=ot.y+tt),ot}):K};function Ry(m,P,F){const K=zy();return K.forEach((tt,ot)=>{var at,ct,pt,ut,ft,B,et;const nt=tt.dataLabels;(at=P==null?void 0:P.labels)!=null&&at.category&&(nt.enabled=(ft=(ut=(pt=(ct=P.labels)==null?void 0:ct.category)==null?void 0:pt[ot])==null?void 0:ut.enabled)!=null?ft:!0),(B=F==null?void 0:F.typography)!=null&&B.fontFamily&&(nt.style.fontFamily=(et=F==null?void 0:F.typography)==null?void 0:et.fontFamily)}),m.breakBy.length===1&&(K[0].borderWidth=Ur,K[0].borderColor="black",K[0].layoutAlgorithm="strip",K[0].dataLabels=K[1].dataLabels),m.breakBy.length===2&&(K[1].borderWidth=Ur,K[1].borderColor="black"),m.breakBy.some(({isColored:tt})=>tt)&&(K[1].colorVariation=ia,K[2].colorVariation=ia),K}function wr(){var F,K;const m=no(Xe(this.color))>.4&&!((K=(F=this.point.options)==null?void 0:F.custom)!=null&&K.blur),{width:P}=rc(this.point);return Fy(this.point)?oc(this.point)?`<div
|
|
104
|
-
style="
|
|
105
|
-
width:${P-$o}px;
|
|
106
|
-
height: ${Vo}px;
|
|
107
|
-
background: #e6e6e6;
|
|
108
|
-
color: ${ta};
|
|
109
|
-
padding: 3px;
|
|
110
|
-
position: absolute;
|
|
111
|
-
top: -${Vo}px;
|
|
112
|
-
text-align: center;
|
|
113
|
-
overflow: hidden;
|
|
114
|
-
text-overflow: ellipsis;
|
|
115
|
-
left: ${$o/2}px;
|
|
116
|
-
"
|
|
117
|
-
>${this.key}</div>`:`<div style="fill:${m?Dy:ta};">${this.key}</div>`:""}function zy(){return[{level:1,borderWidth:$o,borderColor:"white",layoutAlgorithm:"squarifiedWithTopSpacing",dataLabels:{useHTML:!0,enabled:!0,align:"left",verticalAlign:"top",allowOverlap:!0,padding:0,style:{fontSize:"14px"},formatter:wr}},{level:2,borderWidth:jy,borderColor:"white",dataLabels:{enabled:!0,align:"left",verticalAlign:"top",style:{fontSize:"14px"},formatter:wr}},{level:3,borderColor:"black",borderWidth:Ur,dataLabels:{enabled:!0,align:"center",verticalAlign:"middle",style:{fontSize:"13px"},formatter:wr}}]}function oc(m){var P,F,K,tt;return((F=(P=m.options)==null?void 0:P.custom)==null?void 0:F.levelsCount)!==1&&((tt=(K=m.options)==null?void 0:K.custom)==null?void 0:tt.level)===1}function Fy(m){const{height:P,width:F}=rc(m),{level:K}=m.options.custom;return oc(m)?!!m.options.custom.bigLabelSpacing:K!==3?P>=Ny&&F>=ea:P>=By&&F>=ea}function Gy(m,P){return F=>{const K=P/m;return F/K}}function Wy(m){var K,tt,ot,nt,at,ct;const P=(tt=(K=m.options.series)==null?void 0:K[0])!=null?tt:{};return(ct=((at=(nt=(ot=P==null?void 0:P.levels)==null?void 0:ot[0])==null?void 0:nt.dataLabels)!=null?at:{}).enabled)!=null?ct:!0}function rc(m){var P,F,K,tt;return{width:(F=(P=m.shapeArgs)==null?void 0:P.width)!=null?F:0,height:(tt=(K=m.shapeArgs)==null?void 0:K.height)!=null?tt:0}}function nc(m,P,F){if(!m.series[0])return[];const K=Xy(m),tt=m.series[0].data.map(ot=>{var nt,at;return{value:ot.value,name:(nt=ot.xDisplayValue)==null?void 0:nt.slice(-1).toString(),parent:(at=ot.xValue)==null?void 0:at.slice(0,-1).join("_"),custom:_t(kt({},ot),{level:m.xAxisCount,levelsCount:m.xAxisCount})}});return Hy([...K,...tt],P,F)}function Xy(m){const P={};return m.xValues.forEach(F=>{F.rawValues.slice(0,-1).forEach((K,tt)=>{var nt;const ot=F.rawValues.slice(0,tt+1).join("_");P[ot]={id:ot,name:F.xValues[tt],parent:F.rawValues.slice(0,tt).join("_"),custom:{xValues:F.xValues.slice(0,tt+1),rawValues:(nt=F.rawValues)==null?void 0:nt.slice(0,tt+1),level:tt+1,levelsCount:m.xAxisCount}}})}),Object.values(P)}function Hy(m,P,F){const K=P.breakBy.map(ot=>ot.isColored).indexOf(!0)+1,tt=new Map;return m.map(ot=>{var nt;return ot.custom.level===K?(tt.has(ot.name)||tt.set(ot.name,tt.size),_t(kt({},ot),{color:(nt=rr(P,ot.name))!=null?nt:He(F==null?void 0:F.palette.variantColors,tt.get(ot.name))})):ot})}const Yy="rgb(0, 206, 230)",Uy={type:"treemap",layoutAlgorithm:"strip",layoutStartingDirection:"horizontal",clip:!1,color:Yy,dataLabels:{style:{textOutline:"none"}}},Vy={title:{text:null},chart:{type:"treemap",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[]};function $y(m,P,F,K,tt){return _t(kt({},Vy),{series:[_t(kt({},Uy),{name:P.y[0]?xe(P.y[0]):"",data:nc(m,P,tt),levels:Ry(P,F,tt)})],tooltip:ec(P,F,K)})}const Zy=(m,P,F,K,tt)=>{const ot=[];return{options:$y(m,F,P,K,tt),alerts:ot}},Ky=Object.freeze({1:80,2:70,3:60,4:50});function qy(m,P,F,K){var nt,at;const tt={level:1,color:(at=(nt=K==null?void 0:K.chart)==null?void 0:nt.backgroundColor)!=null?at:"white",dataLabels:{enabled:!0,useHTML:!0,className:"!csdk-overflow-visible",formatter(){var ut,ft,B,et,W,R;const ct=he((ft=(ut=P.y)==null?void 0:ut[0])==null?void 0:ft.numberFormatConfig),{value:pt}=this.point;return`
|
|
118
|
-
<div style="text-align: center; transform: translateY(calc(-50% + 15px))">
|
|
119
|
-
<div style="color: ${(et=(B=K==null?void 0:K.chart)==null?void 0:B.secondaryTextColor)!=null?et:"#9EA2AB"}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px">${this.point.name}</div>
|
|
120
|
-
${ti()}
|
|
121
|
-
<div style="
|
|
122
|
-
font-weight: 600;
|
|
123
|
-
font-size: 18px;
|
|
124
|
-
color: ${(R=(W=K==null?void 0:K.chart)==null?void 0:W.textColor)!=null?R:"#5B6372"}
|
|
125
|
-
"
|
|
126
|
-
>${mi(ct,pt)}</div>
|
|
127
|
-
</div>
|
|
128
|
-
`}},levelSize:{unit:"percentage",value:Ky[P.breakBy.length]||50}},ot=Array.from(new Array(m.xAxisCount)).map((ct,pt)=>{var ut,ft,B,et;return{level:pt+2,dataLabels:{enabled:(et=(B=(ft=(ut=F==null?void 0:F.labels)==null?void 0:ut.category)==null?void 0:ft[pt])==null?void 0:B.enabled)!=null?et:!1,formatter(){return`<span style="color: ${no(Xe(this.color))>.4?"white":"rgb(43, 51, 66)"}">${this.point.name}</span>`}}}});return[tt,...ot]}const Vr="SUNBURST_ROOT_PARENT_ID";function Jy(m,P,F){const K={id:Vr,name:xe(P.y[0]),custom:{level:0,levelsCount:m.xAxisCount}},tt=nc(m,P,F).map(at=>at.parent===""?_t(kt({},at),{parent:Vr}):at),ot=e0(tt),nt=Qy(ot,P,F);return[K,...nt]}function Qy(m,P,F){const tt=t0(P),ot=P.breakBy.map(()=>new Map);m.forEach(ct=>{var ut,ft,B,et;const pt=ot[ct.custom.level-1];if(pt){const W=(ut=pt.get(ct.name))!=null?ut:0,R=(et=(B=ct.value)!=null?B:(ft=ct.custom)==null?void 0:ft.subtotalValue)!=null?et:0;pt.set(ct.name,W+R)}});const at=ot.map(ct=>Array.from(ct.entries()).sort(([,pt],[,ut])=>pt-ut).map(([pt])=>pt)).map((ct,pt)=>{var W,R;const ut=new Map,ft=He(F==null?void 0:F.palette.variantColors,pt),B=((R=(W=P.breakBy[pt])==null?void 0:W.color)==null?void 0:R.color)||ft,et=Ku(Zi(B,.3),Zi(B,-.3),ct.length);return ct.forEach((H,V)=>{ut.set(H,et[V])}),ut});return m.map(ct=>{var ft,B,et;const pt=(B=tt[((ft=ct.custom)==null?void 0:ft.level)||""])==null?void 0:B[(ct==null?void 0:ct.name)||""],ut=(et=at[ct.custom.level-1])==null?void 0:et.get(ct.name);return _t(kt({},ct),{color:pt||ut})})}function t0(m){return m.breakBy.reduce((P,{column:F},K)=>{var tt;return(tt=m==null?void 0:m.seriesToColorMap)!=null&&tt[F.name]&&(P[K+1]=m.seriesToColorMap[F.name]),P},{})}function e0(m){const P=new Map,F=new Map;m.forEach(tt=>{tt.parent&&(P.has(tt.parent)||P.set(tt.parent,[]),P.get(tt.parent).push(tt))}),Array.from(P.values()).sort((tt,ot)=>{var nt,at,ct,pt,ut,ft;return((ct=(at=(nt=ot[0])==null?void 0:nt.custom)==null?void 0:at.level)!=null?ct:0)-((ft=(ut=(pt=tt[0])==null?void 0:pt.custom)==null?void 0:ut.level)!=null?ft:0)}).forEach(tt=>{tt.forEach(ot=>{var ct,pt;const nt=(pt=(ct=ot.value)!=null?ct:F.get(ot.id))!=null?pt:0,at=F.get(ot.parent)||0;F.set(ot.parent,at+nt),ot.id&&(ot.custom.subtotalValue=F.get(ot.id))})});const K=[];return P.forEach(tt=>{tt.sort((ot,nt)=>{var pt,ut,ft,B;const at=(ut=(pt=ot.value)!=null?pt:F.get(ot.id))!=null?ut:0,ct=(B=(ft=nt.value)!=null?ft:F.get(nt.id))!=null?B:0;return at-ct}),K.push(...tt)}),K}const i0={type:"sunburst",borderWidth:0,dataLabels:{style:{textOutline:"none"}}},o0={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(m){m.preventDefault()}}}}};function r0(m,P,F,K,tt){return _t(kt({},o0),{series:[_t(kt({},i0),{name:"Root",data:Jy(m,P,tt),levels:qy(m,P,F,tt),showInLegend:!1,turboThreshold:2e3}),...P.breakBy.map((ot,nt)=>{var at;return{name:xe(ot),showInLegend:!0,color:((at=ot==null?void 0:ot.color)==null?void 0:at.color)||He(tt==null?void 0:tt.palette.variantColors,nt),data:[],states:{hover:{enabled:!1}}}})],tooltip:ec(P,F,K,{displayTotalContribution:!0,displayColorCircles:!0,shouldSkip:ot=>{var nt;return((nt=ot.point.options)==null?void 0:nt.id)===Vr}}),legend:di(F.legend)})}const n0=(m,P,F,K,tt)=>{const ot=[];return{options:r0(m,F,P,K,tt),alerts:ot}},s0=(m,P,F,K,tt,ot)=>{switch(P){case"pie":return My(m,F,K,ot);case"funnel":return Ty(m,F,K,ot);case"treemap":return Zy(m,F,K,tt,ot);case"sunburst":return n0(m,F,K,tt,ot);default:throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:P})}},sc={scatterDefaultSize:10,scatterBubbleMinSize:12,scatterBubbleMaxSize:48},a0=(m,P)=>{var tt;if(!m.enabled)return{enabled:!1};const F=(tt=m.rotation)!=null?tt:0,K=kt({enabled:!0,align:"center",verticalAlign:"middle",types:{count:!1,relative:!0,totals:!0},rotation:F},jn(F)==="horizontal"?{y:-1}:null);return K.formatter=function(){var B,et;const ot=this,nt={maskedY:P.y,maskedX:P.x,maskedSize:P.size,maskedBreakByColor:P.breakByColor},ct=[P.y,P.x,P.size,P.breakByColor].find(W=>W&&qe(W)),pt=(B=Object.entries(nt).find(([,W])=>W===ct))==null?void 0:B[0],ut=((et=ot.point.custom)==null?void 0:et[pt])||"";if(isNaN(parseFloat(ut)))return ut;const ft=he(ct==null?void 0:ct.numberFormatConfig);return Ce(ft,parseFloat(ut))},K.style=_t(kt({},K.style),{fontWeight:"",textOutline:""}),K},l0=(m,P)=>({minSize:P?m.scatterBubbleMinSize:m.scatterDefaultSize,maxSize:P?m.scatterBubbleMaxSize:m.scatterDefaultSize}),h0=(m,P)=>{var K;const F=!!P.size;return{bubble:kt({animation:!1},l0((K=m.markerSize)!=null?K:sc,F)),series:{allowPointSelect:!1,boostThreshold:0,dataLabels:a0(m.valueLabel,P),stickyTracking:!1,turboThreshold:0}}},Ve="#d1d1d7";function ac(m,P,F){if(F&&F.length&&!F.includes(P))return"";const K=typeof P=="number"?P:parseFloat(P);return isNaN(K)?`${P}`:m&&!qe(m)&&!Rt.isNumber(m.column.type)?`${P}`:Ce(he(m==null?void 0:m.numberFormatConfig),K)}const c0=(m,P,F)=>[{type:m.type,startOnTick:!1,endOnTick:!(m.max||P),labels:{overflow:"justify",enabled:m.enabled&&m.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter:function(){return ac(F==null?void 0:F.x,this.value,this.axis.categories)}},categories:P||void 0,gridLineWidth:m.enabled&&m.gridLine?1:0,gridLineColor:Ve,gridLineDashStyle:"Dot",title:{enabled:m.enabled&&m.titleEnabled,margin:25,text:m.title||null},lineColor:Ve,lineWidth:1,minorTickColor:Ve,minorGridLineColor:Ve,minorGridLineDashStyle:"Dot",minorTickLength:0,tickLength:0,tickColor:Ve,tickmarkPlacement:"on",tickInterval:m.enabled?m.tickInterval:null,min:m.enabled?m.min:null,max:m.enabled?m.max:null}],p0=(m,P,F)=>[{type:m.type,startOnTick:!1,endOnTick:!(m.max||P),title:{enabled:m.enabled&&m.titleEnabled,text:m.title||null},labels:{enabled:m.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter:function(){return ac(F==null?void 0:F.y,this.value,this.axis.categories)}},categories:P||void 0,gridLineColor:Ve,gridLineDashStyle:"Dot",gridLineWidth:1,lineColor:Ve,lineWidth:1,maxPadding:.025,minPadding:.025,minorGridLineColor:Ve,minorGridLineDashStyle:"Dot",minorGridLineWidth:0,minorTickColor:Ve,minorTickWidth:0,opposite:!1,tickColor:Ve,tickWidth:0,tickmarkPlacement:"on",tickInterval:m.enabled?m.tickInterval:null,min:m.enabled?m.min:null,max:m.enabled?m.max:null}],lc="#00cee6",$r=m=>{const P=m.rawValue==null?Number(m.displayValue):Number(m.rawValue);return Number.isNaN(P)||P===void 0?null:P},d0=m=>m?$r(m):1,u0=(m,P)=>{const{xAxis:F,yAxis:K,breakByPoint:tt,breakByColor:ot,size:nt}=m,{xCategoriesMap:at,yCategoriesMap:ct}=P,pt=at.get(F.displayValue),ut=ct.get(K.displayValue),ft=F.blur||K.blur||(tt==null?void 0:tt.blur);return{x:pt!==void 0?pt:$r(F),y:ut!==void 0?ut:$r(K),z:d0(nt),maskedX:F.displayValue,maskedY:K.displayValue,maskedBreakByPoint:tt==null?void 0:tt.displayValue,maskedBreakByColor:ot==null?void 0:ot.displayValue,color:ot==null?void 0:ot.color,maskedSize:nt==null?void 0:nt.displayValue,selected:ft}},f0=(m,P,F)=>{var nt,at;const K=new Map;m.forEach(ct=>{var pt;if(ct.breakByColor){const{displayValue:ut,color:ft}=ct.breakByColor;if(ut&&!K.has(ut)){const B=ft||((pt=P==null?void 0:P.seriesToColorMap)==null?void 0:pt[ut]);K.set(ut,B)}}});const tt=new Map,ot=Rt.isNumber((at=(nt=P==null?void 0:P.breakByColor)==null?void 0:nt.column)==null?void 0:at.type)?"number":"string";return Array.from(K).sort(([ct],[pt])=>Xl(ct,pt,Uf.ASC,ot)).forEach(([ct,pt],ut)=>{tt.set(ct,{color:pt!=null?pt:He(F==null?void 0:F.palette.variantColors,ut),index:ut})}),tt},g0=(m,P,F)=>{const K={enabled:!0,fillOpacity:.7,lineWidth:1,states:{select:{fillOpacity:.3,lineWidth:1}}};return m.size?Array.from(m).map(([tt,{index:ot,color:nt}])=>({data:[],index:ot,marker:K,name:tt,showInLegend:!0,type:"bubble",color:nt})):[{data:[],index:0,marker:K,name:P,showInLegend:!!P,type:"bubble",color:dh(F)||lc}]},m0=(m,P)=>{const F=m.get(P);return F?F.index:0},y0=(m,P)=>{const F=bn({getValueFromDataStructure:K=>{var tt;return parseFloat(`${(tt=K.custom)==null?void 0:tt.maskedBreakByColor}`)},applyColorToDataStructure:(K,tt)=>_t(kt({},K),{color:tt})});return m.map(K=>_t(kt({},K),{data:F(K.data,P)}))},v0=m=>{if(m&&qe(m)&&m.color)return m.color},b0=(m,P,F,K)=>{for(const tt of P){const{x:ot,y:nt,z:at,maskedX:ct,maskedY:pt,maskedBreakByPoint:ut,maskedSize:ft,color:B,maskedBreakByColor:et,selected:W}=u0(tt,F);if(ot!==null&&nt!==null){const R=m[m0(K,et)],H={color:B||R.color||lc,x:ot,y:nt,z:at,custom:{maskedX:ct,maskedY:pt,maskedBreakByPoint:ut,maskedBreakByColor:et,maskedSize:ft},selected:W};R.data.push(H)}}return m},x0=m=>{const P=m==null?void 0:m.breakByColor,F=m==null?void 0:m.breakByPoint;return P&&xe(P)||F&&xe(F)||""},C0=(m,P,F,K)=>{const tt=F==null?void 0:F.breakByColor,ot=x0(F),nt=v0(tt),at=tt&&!qe(tt)?f0(m,F,K):new Map;let ct=g0(at,ot,nt);return ct=b0(ct,m,P,at),nt&&(ct=y0(ct,nt)),ct},w0=(m,P)=>P?m.slice(0,P):m,S0=(m,P,F,K,tt)=>{const ot=[],nt=C0(m,P,F,K);return tt&&nt.length>tt?(ot.push(vi(nt.length,tt)),{series:w0(nt,tt),alerts:ot}):{series:nt,alerts:ot}},M0={displayValue:"0"},Ri=(m,P)=>{if(P){for(let F=0;F<m.columns.length;F++)if(m.columns[F].name===P.column.name)return F}return-1},A0=(m,P)=>({x:Ri(P,m.x),y:Ri(P,m.y),breakByPoint:Ri(P,m.breakByPoint),breakByColor:Ri(P,m.breakByColor),size:Ri(P,m.size)}),oa=(m,P)=>P[m]||M0,T0=(m,P)=>{const F=new Set;return m.forEach(K=>{F.add(K[P].displayValue)}),Array.from(F.values())},ra=(m,P,F)=>{if(F&&!qe(F))return T0(m,P)},na=(m,P)=>[m,P],k0=(m,P)=>{const F=new Map(m==null?void 0:m.map(na)),K=new Map(P==null?void 0:P.map(na));return{xCategoriesMap:F,yCategoriesMap:K}},P0=(m,P)=>{var ot,nt;const F=A0(m,P),K=m!=null&&m.breakByPoint&&Rt.isNumber(m.breakByPoint.column.type)?he((ot=m.breakByPoint)==null?void 0:ot.numberFormatConfig):void 0,tt=m!=null&&m.breakByColor&&(qe(m.breakByColor)||Rt.isNumber(m.breakByColor.column.type))?he((nt=m.breakByColor)==null?void 0:nt.numberFormatConfig):void 0;return P.rows.map(at=>{const ct=kt({},at[F.breakByPoint]);K&&(ct.displayValue=Ce(K,ct.compareValue?ct.compareValue.value:parseFloat(ct.displayValue)));const pt=kt({},at[F.breakByColor]);return tt&&(pt.displayValue=Ce(tt,pt.compareValue?pt.compareValue.value:parseFloat(pt.displayValue))),{xAxis:oa(F.x,at),yAxis:oa(F.y,at),breakByPoint:ct,breakByColor:pt,size:at[F.size]}})},L0=(m,P)=>{const F=P0(m,P),{x:K,y:tt}=m,ot=ra(F,"xAxis",K),nt=ra(F,"yAxis",tt);return{type:"scatter",scatterDataTable:F,xCategories:ot,yCategories:nt}},Mo=20,E0=30,O0=m=>kt({symbolHeight:12,symbolWidth:12,itemMarginBottom:0,itemMarginTop:0},di(m)),D0=(m,P,F,K,tt)=>{const ot=[],nt=Li(P,F),at=K,{scatterDataTable:ct}=m,{seriesCapacity:pt,categoriesCapacity:ut}=F.dataLimits;let{xCategories:ft,yCategories:B}=m;ft&&ft.length>ut&&(ot.push(Yo("x",ft.length,ut)),ft=ft.slice(0,ut)),B&&B.length>ut&&(ot.push(Yo("y",B.length,ut)),B=B.slice(0,ut));const{series:et,alerts:W}=S0(ct,k0(ft,B),at,tt,pt);return ot.unshift(...W),{options:{title:{text:null},subtitle:{text:null},chart:{type:nt,spacing:[Mo,Mo,Mo,Mo],marginTop:E0,alignTicks:!1,polar:!1},xAxis:c0(F.xAxis,ft==null?void 0:ft.slice(0,ut),at),yAxis:p0(F.yAxis,B==null?void 0:B.slice(0,ut),at),legend:O0(F.legend),series:et,plotOptions:h0(F,at),tooltip:Lm(at)},alerts:ot}},j0=(m,P,F)=>{const K=[],[tt,ot]=m.series,{boxplotType:nt}=P,at=.15,ct=He(F,0),pt=ct,ut=Zi(ct,-1*at),ft=Zi(ct,-2*at),B=ml(ft,2*at),et=[_t(kt({},tt),{data:tt.data.map((W,R)=>{var H;return _t(kt({},W),{color:ft,fillColor:nt==="hollow"?"transparent":pt,innerBoxColor:nt==="hollow"?"transparent":ut,selected:(H=W.blur)!=null?H:!1,custom:{xValue:m.xValues[R].rawValues}})}),medianWidth:1,maxPointWidth:42,minPointWidth:20,whiskerWidth:1,whiskerLength:"100%",fillOpacity:.8,strokeOpacity:.8,showInLegend:!0,legendIndex:0,yAxis:0,color:ft})];return ot&&et.push(_t(kt({},ot),{data:ot.data.map(W=>_t(kt({},W),{marker:{lineColor:W.blur?B:ft},custom:{xValue:m.xValues[W.x].rawValues}})),type:"scatter",legendIndex:1,showInLegend:!1,marker:{enabled:!0,fillColor:"transparent",lineWidth:1,lineColor:ft},color:ft})),{series:et,alerts:K}},$e="#d1d1d7",I0=m=>m.series[0].data.reduce((P,{low:F,high:K})=>({min:Math.min(P.min,F),max:Math.max(P.max,K)}),{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY}),N0=(m,P,F)=>[{labels:{overflow:"none",enabled:m.enabled&&m.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter(){const{value:K}=this;if(F&&!qe(F)&&!Rt.isNumber(F.column.type))return`${K}`;const tt=typeof K=="number"?K:parseFloat(K);return isNaN(tt)?`${K}`:Ce(he(F==null?void 0:F.numberFormatConfig),tt)}},categories:P,title:{text:m.enabled&&m.titleEnabled&&m.title||null,margin:25},tickmarkPlacement:"on",gridLineWidth:m.enabled&&m.gridLine?1:0,minorTickLength:0,tickLength:0,startOnTick:!0,endOnTick:!0,lineColor:$e,tickColor:$e,minorTickColor:$e,gridLineColor:$e,gridLineDashStyle:"Dot",minorGridLineColor:$e,minorGridLineDashStyle:"Dot",min:m.enabled?m.min:null,max:m.enabled?m.max:null}],B0=(m,P,F)=>{const K=I0(P);return[{labels:{enabled:m.enabled&&m.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:we,formatter(){return Ce(he(F==null?void 0:F.numberFormatConfig),this.value)}},tickmarkPlacement:"on",title:{text:m.enabled&&m.titleEnabled&&m.title||null,margin:25,style:we},minorGridLineWidth:0,lineColor:$e,lineWidth:1,tickColor:$e,minorTickColor:$e,gridLineColor:$e,gridLineDashStyle:"Dot",gridLineWidth:m.enabled&&m.gridLine?1:0,minorGridLineColor:$e,minorGridLineDashStyle:"Dot",min:m.enabled&&Rr(m.min)?m.min:K.min,max:m.enabled&&Rr(m.max)?m.max:K.max,tickInterval:m.enabled?m.tickInterval:null}]},sa=m=>function(P,F){const K=F?this.point[F]:void 0;return K===void 0||isNaN(K)?"":Ce(he(m),K)},_0=m=>{var P,F,K,tt;return{series:{dataLabels:{enabled:(P=m.enabled)!=null?P:!1,style:{fontSize:"13px",fontWeight:"normal"},rotation:(F=m.rotation)!=null?F:0,align:"center",formatter:sa()},grouping:!1,stickyTracking:!1,turboThreshold:0,boostThreshold:0,softThreshold:!1},boxplot:{dataLabels:{enabled:(K=m.enabled)!=null?K:!1,style:{fontSize:"13px",fontWeight:"normal"},rotation:(tt=m.rotation)!=null?tt:0,align:"center",formatter:sa()}},scatter:{dataLabels:{enabled:!1}}}},R0=(m,P)=>({animation:!1,backgroundColor:ii,borderColor:ei,borderRadius:10,borderWidth:1,useHTML:!0,formatter(){const{x:F,y:K}=this,{high:tt,low:ot,q3:nt,q1:at,median:ct}=this.point,pt=gn(tt),ut=le(m.category,F,`${F}`);if(pt){const H=le(m.outliers,K,`${K}`);return yi(`
|
|
129
|
-
<div>${this.series.name}</div>
|
|
130
|
-
<div>${Me(H,this.point.color)}</div>
|
|
131
|
-
${m.category?`${ti()}<div>${ut}</div>`:""}
|
|
132
|
-
`)}const ft=le(m.whiskerMax,tt,`${tt}`),B=le(m.whiskerMin,ot,`${ot}`),et=le(m.boxMax,nt,`${nt}`),W=le(m.boxMin,at,`${at}`),R=le(m.boxMedian,ct,`${ct}`);return yi(`
|
|
133
|
-
<div>${P("boxplot.tooltip.whiskers")}</div>
|
|
134
|
-
<div class="csdk-boxplot-tooltip-row">
|
|
135
|
-
<span>${P("boxplot.tooltip.max")}</span>
|
|
136
|
-
${Me(ft,this.point.color)}
|
|
137
|
-
</div>
|
|
138
|
-
<div class="csdk-boxplot-tooltip-row">
|
|
139
|
-
<span>${P("boxplot.tooltip.min")}</span>
|
|
140
|
-
${Me(B,this.point.color)}
|
|
141
|
-
</div>
|
|
142
|
-
${ti()}
|
|
143
|
-
<div>${P("boxplot.tooltip.box")}</div>
|
|
144
|
-
<div class="csdk-boxplot-tooltip-row">
|
|
145
|
-
<span>${P("boxplot.tooltip.max")}</span>
|
|
146
|
-
${Me(et,this.point.color)}
|
|
147
|
-
</div>
|
|
148
|
-
<div class="csdk-boxplot-tooltip-row">
|
|
149
|
-
<span>${P("boxplot.tooltip.min")}</span>
|
|
150
|
-
${Me(W,this.point.color)}
|
|
151
|
-
</div>
|
|
152
|
-
<div class="csdk-boxplot-tooltip-row">
|
|
153
|
-
<span>${P("boxplot.tooltip.median")}</span>
|
|
154
|
-
${Me(R,this.point.color)}
|
|
155
|
-
</div>
|
|
156
|
-
${ti()}
|
|
157
|
-
<div>${m.category?ut:this.series.name}</div>
|
|
158
|
-
`)}}),z0=(m,P,F,K,tt)=>{const ot=Li("boxplot",P),{series:nt,alerts:at}=j0(m,P,tt==null?void 0:tt.palette.variantColors),ct=m.xValues.map(ut=>ut.key);return{options:{title:{text:null},chart:{type:ot,spacing:[25,20,20,20],polar:!1,zooming:{type:"x"},events:{load:function(){var et;const ut=this,ft=ut.chartWidth,B=jh(ot,P.autoZoom.enabled,m.xValues.length,ft);if(B.enabled&&((et=P.autoZoom)!=null&&et.scrollerLocation)){const{min:W,max:R}=P.autoZoom.scrollerLocation;Ih(ut,W,R)}ut.update({navigator:B},!0)},selection:ut=>{ut.preventDefault()}}},legend:di(P.legend),xAxis:N0(P.xAxis,ct,F.category),yAxis:B0(P.yAxis,m,F.whiskerMax),series:nt,plotOptions:_0(P.valueLabel),tooltip:R0(F,K)},alerts:at}},F0=(m,P,F)=>({animation:!1,crosshairs:!0,backgroundColor:ii,borderColor:ei,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){var $,Z,U,z;if(!this.point.low||!this.point.high)return Oh(this,P,F);let K;this.percentage&&(K=`${Math.round(this.percentage)}`);const tt=P,ot=($=tt.rangeValues)==null?void 0:$.find(tt.breakBy.length>0?I=>I[0].enabled:I=>xe(I[0])===this.series.name),[nt,at]=ot!=null?ot:[void 0,void 0],ct=Ll(nt),pt=le(nt,this.point.high,""),ut=le(at,this.point.low,""),ft=(z=(U=(Z=this.point)==null?void 0:Z.custom)==null?void 0:U.xDisplayValue)!=null?z:this.x,B=tt.x?le(tt.x[0],this.x,ft):ft,et=pt+(ct&&K?` / ${K}%`:""),W=ut+(ct&&K?` / ${K}%`:""),R=this.point.color||this.series.color,{upperPointName:H,lowerPointName:V}=this.point;return yi(`
|
|
159
|
-
<div>${this.series.name}</div>
|
|
160
|
-
<div class="csdk-range-tooltip-row">
|
|
161
|
-
<span>${H||F("arearange.tooltip.max")}</span>
|
|
162
|
-
${Me(et,R)}
|
|
163
|
-
</div>
|
|
164
|
-
<div class="csdk-range-tooltip-row">
|
|
165
|
-
<span>${V||F("arearange.tooltip.min")}</span>
|
|
166
|
-
${Me(W,R)}
|
|
167
|
-
</div>
|
|
168
|
-
${ti()}
|
|
169
|
-
<div>${B||""}</div>
|
|
170
|
-
`)}}),aa=(m,P,F,K,tt,ot,nt)=>{var E,M;const at=[],ct=[];K.seriesValues.forEach(k=>{ct.push(k),at.push(k)}),K.rangeValues.forEach(([k,y])=>{ct.push(y),at.push(k)});const ft=_t(kt({},K),{y:ct,seriesToColorMap:K.seriesToColorMap}),B=Uo(_t(kt({},m),{type:"cartesian"}),P,F,ft,tt,ot,nt),et={};B.options.series.forEach(k=>{et[k.name]=k});const W=_t(kt({},K),{y:at,seriesToColorMap:K.seriesToColorMap}),R=Uo(_t(kt({},m.seriesOther),{type:"cartesian"}),P,F,W,tt,ot,nt),H={};R.options.series.forEach(k=>{H[k.name]=k});let V=1/0,$=-1/0,Z=-1,U=0;if(B.options.series.forEach((k,y)=>{if(K.breakBy.length===0&&y<K.seriesValues.length)wi(k.name)&&(Z=Em(k,H,et)),k.zIndex=1,k.data.forEach(h=>{h.y&&h.y<V&&(V=h.y),h.y&&h.y>$&&($=h.y)});else{const h=H[k.name].data;k.yAxis=0;let u=0;K.breakBy.length===0&&(u=y-K.seriesValues.length);const g=K.rangeValues[u],d=g[0].column.name.indexOf("_")+1,v=g[1].column.name.substring(d),w=g[0].column.name.substring(d);k.type="arearange",wi(k.name)&&Om(k,H),U=Math.max(k.data.length,U),k.data=k.data.map((S,C)=>{const c=_t(kt({},S),{low:h[C].y,high:S.y,y:void 0,upperPointName:v,lowerPointName:w});return c.low&&c.low<V&&(V=c.low),c.high&&c.high>$&&($=c.high),c}),wi(k.name)&&Dm(k,H)}}),B.options.xAxis||(B.options.xAxis=[]),Z>0&&jm(B.options.xAxis,Z,U),P==="arearange"&&F.lineType==="smooth"){const k="areasplinerange";B.options.chart.type=k,(E=B.options.navigator)!=null&&E.series&&(B.options.navigator.series.type=k)}P==="arearange"&&(B.options.tooltip=F0(!1,K,tt));const[z]=(M=B.options.yAxis)!=null?M:[],I=_t(kt({},z),{min:V,max:$});return B.options.yAxis=[I],B},hc=(m,P)=>{const F=()=>_t(kt({},m),{y:[]}),K=F(),tt=F(),ot=1,nt=0;m.seriesValues.forEach(pt=>{K.y.push(pt),tt.y.push(pt)}),m.rangeValues.forEach(pt=>{const ut=pt[ot],ft=pt[nt];K.y.push(ut),tt.y.push(ft)});const at=Fr(K,P),ct=Fr(tt,P);return _t(kt({},at),{type:"range",seriesOther:ct})},cc=m=>m.rangeValues?!1:m.y.some(F=>wi(xe(F))),pc=m=>{const P=m.y.filter(ot=>wi(xe(ot))).map(ot=>{const nt=_t(kt({},ot),{column:Wo(ot.column,{title:ot.column.title&&Ho(ot.column.title),name:`${ot.column.name}_upper`})});return[_t(kt({},ot),{column:Wo(ot.column,{title:ot.column.title&&Ho(ot.column.title),name:`${ot.column.name}_lower`})}),nt]}),K=P.concat(m.y).flat(),tt=m.y;return _t(kt({},m),{rangeValues:P,seriesValues:tt,y:K})},G0=(m,P)=>{const F=pc(m);return _t(kt({},hc(F,P)),{type:"cartesian"})},W0=(m,P,F,K,tt,ot,nt)=>{switch(m.type){case"range":return aa(m,P,F,K,tt,ot,nt);case"cartesian":{const at=K,ct=cc(at)?aa(_t(kt({},m),{type:"range"}),P,F,pc(at),tt,ot,nt):Uo(m,P,F,at,tt,ot,nt);return Nm(ct.options.series),ct}case"categorical":return s0(m,P,F,K,tt,ot);case"scatter":return D0(m,P,F,K,ot);case"boxplot":return z0(m,F,K,tt,ot);default:throw new Rt.TranslatableError("errors.unexpectedChartType",{chartType:m.type})}},X0={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}},H0=()=>Rt.cloneDeep(X0),Y0=m=>Nl(m)?"cartesian":Bl(m)?"categorical":_l(m)?"scatter":Rl(m)?"scattermap":zl(m)?"indicator":Wl(m)?"areamap":Gl(m)?"boxplot":"table";exports.ALL_CHART_TYPES=Yf;exports.BOXPLOT_CHART_TYPES=Tn;exports.CARTESIAN_CHART_TYPES=Sn;exports.CATEGORICAL_CHART_TYPES=Mn;exports.CacheProvider=_p;exports.Color=ee;exports.DEFAULT_BACKGROUND_COLOR=Op;exports.DEFAULT_COLOR=Go;exports.DEFAULT_TEXT_COLOR=rn;exports.DefaultFunnelDirection=hh;exports.DefaultFunnelLabels=sh;exports.DefaultFunnelSize=ah;exports.DefaultFunnelType=lh;exports.DefaultPieLabels=th;exports.DefaultPieType=eh;exports.ERROR_COLOR=Dp;exports.Emotion$1=an;exports.Fragment=Ba;exports.Highcharts=ic;exports.I18nContext=pa;exports.NOT_AVAILABLE_DATA_VALUE=nn;exports.NOT_AVAILABLE_TEXT=jp;exports.QUERY_DEFAULT_LIMIT=Lp;exports.RANGE_CHART_TYPES=kn;exports.SCATTER_CHART_TYPES=An;exports.SYSTEM_TENANT_NAME=Ep;exports.TRIANGLE_COLOR_ADJUSTMENT=Hu;exports.ThemeContext=Na;exports.advancedAnalyticsData=G0;exports.applyFormat=mi;exports.applyFormatPlainText=Ce;exports.applyOpacity=ml;exports.baseTrim=Ea;exports.buildCategoriesMeta=zh;exports.buildXAxisSettings=Fh;exports.buildYAxisMeta=Rh;exports.buildYAxisMinMax=Hr;exports.cartesianData=Fr;exports.categoriesSliceWarning=Yo;exports.colorChineseSilver=ei;exports.colorWhite=ii;exports.combineHandlers=ir;exports.commonjsGlobal=zi;exports.composeTextWidgetToolbarHandlers=pf;exports.composeTitleHandlers=df;exports.composeToolbarHandlers=Sl;exports.createCache=xa;exports.createCompareValue=Ki;exports.createDataColoringFunction=bn;exports.createDataTableFromData=zg;exports.createEmotionProps=sn;exports.defaultScatterMarkerSize=sc;exports.deriveChartFamily=Y0;exports.determineHighchartsChartType=Li;exports.emptyTable=En;exports.extractForecastMeasures=_m;exports.extractTrendMeasures=Bm;exports.flow=Jo;exports.formatTooltipValue=le;exports.getAugmentedNamespace=mc;exports.getCartesianChartOptions=Uo;exports.getCartesianTooltipSettings=Dh;exports.getCategoryTooltipSettings=Bn;exports.getChartSubtype=vf;exports.getChartType=ff;exports.getColoringServiceByColorOptions=vl;exports.getColumnByName=ri;exports.getColumnsByName=qi;exports.getCompleteNumberFormatConfig=he;exports.getDarkFactor=no;exports.getData=hn;exports.getDataOptionGranularity=mn;exports.getDataOptionTitle=xe;exports.getDefaultDateFormat=vn;exports.getDefaultExportFromCjs=Zr;exports.getDefaultStyleOptions=H0;exports.getEnabledPanelItems=_f;exports.getFusionWidgetType=mf;exports.getIndexedRows=Ln;exports.getInternalWidgetType=Df;exports.getInterpolatorFn=yl;exports.getLegendSettings=di;exports.getOrderedXValues=fh;exports.getPaletteColor=He;exports.getPieAlerts=qh;exports.getPieConvolutionSeries=tc;exports.getPiePlotOptions=ih;exports.getPieSeries=Qh;exports.getRegisteredStyles=Ca;exports.getRootPanelItem=Pl;exports.getSlightlyDifferentColor=Zu;exports.getUniformColorOptionsFromString=fn;exports.getValue=Zl;exports.getValues=Pi;exports.getWidgetType=yf;exports.getYAxisSettings=Nh;exports.groupBy=Vl;exports.hasOwn=eo;exports.hasSecondaryYAxis=Gh;exports.highchartsOptionsService=W0;exports.insertStyles=wa;exports.isAreamap=Wl;exports.isBlurred=Kl;exports.isBoxplot=Gl;exports.isCartesian=Nl;exports.isCategorical=Bl;exports.isCell=ph;exports.isChartFusionWidget=Al;exports.isChartTypeFusionWidget=Pf;exports.isChartWidgetProps=or;exports.isContinuousDatetimeXAxis=_h;exports.isCustomWidget=kf;exports.isCustomWidgetProps=kl;exports.isDataTableEmpty=Rg;exports.isForecastChart=cc;exports.isIndicator=zl;exports.isIndicatorFusionWidget=Ef;exports.isLaziable=Pr;exports.isLegendOnRight=On;exports.isMeasureColumn=qe;exports.isNumber=Rr;exports.isPieChartFusionWidget=Lf;exports.isPivotTableFusionWidget=xn;exports.isPivotTableWidgetProps=wn;exports.isPivotWidget=Mf;exports.isRange=Hf;exports.isScatter=_l;exports.isScattermap=Rl;exports.isStyledColumn=yn;exports.isSupportedWidgetType=bf;exports.isTable=Xf;exports.isTableFusionWidget=wf;exports.isTableWidgetModel=Sf;exports.isTextFusionWidget=Cn;exports.isTextWidget=Af;exports.isTextWidgetProps=Tl;exports.isUndefined=gn;exports.jsx=se;exports.jsxs=si;exports.memoize=va;exports.merge=Be;exports.metaMap=kr;exports.noop=_a;exports.normalizeAnyColumn=hf;exports.normalizeColumn=bl;exports.normalizeMeasureColumn=xl;exports.orderBy=Ul;exports.over=wl;exports.parseISOWithTimezoneCheck=on;exports.purify=Th;exports.rangeData=hc;exports.registerDataPointClickHandler=jf;exports.registerDataPointContextMenuHandler=If;exports.registerDataPointsSelectedHandler=Nf;exports.registerRenderToolbarHandler=Bf;exports.registerStyles=tn;exports.requiredArgs=Ta;exports.rownumColumnName=Dn;exports.safeCombine=nf;exports.safeMerge=Wo;exports.scaleBrightness=Zi;exports.scatterData=L0;exports.selectColumns=$l;exports.serializeStyles=Ma;exports.seriesSliceWarning=vi;exports.sortDirection=uh;exports.splitColumn=so;exports.stackTotalFontStyleDefault=Qi;exports.toColor=Xe;exports.toFinite=Oa;exports.toGray=fl;exports.toInteger=Aa;exports.toInteger$1=Ra;exports.toNumber=en;exports.tooltipSeparator=ti;exports.tooltipWrapper=yi;exports.translateColumnToAttribute=sf;exports.translateColumnToMeasure=af;exports.useInsertionEffectAlwaysWithSyncFallback=Da;exports.useTranslation=Kr;exports.widgetTypeSupportsJtd=Cf;exports.withEmotionCache=Ia;exports.withPolarSpecificAxisSettings=Bh;exports.withXAxisLabelPositioning=Xh;exports.withYAxisLabelPositioning=Wh;exports.withYAxisNormalizationForPolar=py;
|