From 0d75e8ea28f19592c15a723e47423b267f59b6f0 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Fri, 15 Jun 2018 16:03:27 +0530 Subject: [PATCH 01/16] Multiple charts in a row Added docs --- lib/daru/view/adapters/googlecharts.rb | 28 +- .../view/adapters/googlecharts/display.rb | 51 +- .../googlecharts/multiple_charts_div.erb | 12 + spec/adapters/googlecharts/display_spec.rb | 3 + ...e Charts | Multiple Charts in a cell.ipynb | 953 ++++++++++++++++++ 5 files changed, 1036 insertions(+), 11 deletions(-) create mode 100644 lib/daru/view/templates/googlecharts/multiple_charts_div.erb create mode 100644 spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb diff --git a/lib/daru/view/adapters/googlecharts.rb b/lib/daru/view/adapters/googlecharts.rb index 75214a0..f73fd8b 100644 --- a/lib/daru/view/adapters/googlecharts.rb +++ b/lib/daru/view/adapters/googlecharts.rb @@ -57,14 +57,28 @@ module GooglechartsAdapter # data << query # options = {type: :area} # chart = Daru::View::Plot.new(data, options) + # + # @example Multiple Charts in a row + # Draw the Daru::View::Plot object with the data as an array of + # Daru::View::Plots(s) or Daru::View::Table(s) or both + # combined = Daru::View::Plot([line_chart, bar_chart]) def init(data=[], options={}) - @table = GoogleVisualr::DataTable.new - @table = get_table(data) unless data.is_a?(String) - validate_url(data) if data.is_a?(String) - @chart_type = extract_chart_type(options) - @chart = GoogleVisualr::Interactive.const_get( - @chart_type - ).new(@table, options) + # When multiple charts are shown in a row, @chart will contain the + # instance of GoogleVisular::BaseChart so that its data can contain + # the array of plots (this will be used in display.rb). Further, + # @chart will be used to call show_in_iruby and to_html. + if data.is_a?(Array) && + (data[0].is_a?(Daru::View::Plot) || data[0].is_a?(Daru::View::Table)) + @chart = GoogleVisualr::BaseChart.new(GoogleVisualr::DataTable.new) + else + @table = GoogleVisualr::DataTable.new + @table = get_table(data) + validate_url(data) if data.is_a?(String) + @chart_type = extract_chart_type(options) + @chart = GoogleVisualr::Interactive.const_get( + @chart_type + ).new(@table, options) + end @chart.data = data @chart end diff --git a/lib/daru/view/adapters/googlecharts/display.rb b/lib/daru/view/adapters/googlecharts/display.rb index 9dd1fc6..af7469c 100644 --- a/lib/daru/view/adapters/googlecharts/display.rb +++ b/lib/daru/view/adapters/googlecharts/display.rb @@ -75,18 +75,61 @@ def get_html_spreadsheet(data, dom) end def to_html(id=nil, options={}) + if data.is_a?(Array) && + (data[0].is_a?(Daru::View::Plot) || data[0].is_a?(Daru::View::Table)) + id, chart_script, path = extract_multiple_charts_id_script_path + else + id, chart_script, path = extract_chart_id_script_path(id) + end + template = File.read(path) + ERB.new(template).result(binding) + end + + def show_in_iruby(dom=SecureRandom.uuid) + IRuby.html(to_html(dom)) + end + + # @return [Array] Array of IDs of the multiple charts, Array of scripts + # of the multiple charts, path of the template used to render the + # multiple charts + def extract_multiple_charts_id_script_path + path = File.expand_path( + '../../templates/googlecharts/multiple_charts_div.erb', __dir__ + ) + id = [] + chart_script = [] + data.each_with_index do |plot, index| + id[index] ||= SecureRandom.uuid + chart_script[index] = set_chart_script(plot, id[index]) + end + [id, chart_script, path] + end + + # @param id [String] The ID of the DIV element that the Google Chart + # should be rendered in + # @return [Array] ID of the div element, script of the chart, path of + # the template which will be used to render the chart + def extract_chart_id_script_path(id=nil) path = File.expand_path( '../../templates/googlecharts/chart_div.erb', __dir__ ) - template = File.read(path) id ||= SecureRandom.uuid @html_id = id chart_script = show_script(id, script_tag: false) - ERB.new(template).result(binding) + [id, chart_script, path] end - def show_in_iruby(dom=SecureRandom.uuid) - IRuby.html(to_html(dom)) + # @param plot [Daru::View::Plot, Daru::View::Table] one of the plot or + # table objects that will be shown in a row + # @param id [String] The ID of the DIV element that the Google Chart + # should be rendered in + # @return [String] Javascript of the table or chart + def set_chart_script(plot, id) + if plot.is_a?(Daru::View::Plot) + plot.chart.show_script(id, script_tag: false) + else + plot.table.show_script(id, script_tag: false) + end end end diff --git a/lib/daru/view/templates/googlecharts/multiple_charts_div.erb b/lib/daru/view/templates/googlecharts/multiple_charts_div.erb new file mode 100644 index 0000000..98c0b1b --- /dev/null +++ b/lib/daru/view/templates/googlecharts/multiple_charts_div.erb @@ -0,0 +1,12 @@ + + + <% id.each do |div_id| %> + + <% end %> + +
+ diff --git a/spec/adapters/googlecharts/display_spec.rb b/spec/adapters/googlecharts/display_spec.rb index 1279af4..2a071b8 100644 --- a/spec/adapters/googlecharts/display_spec.rb +++ b/spec/adapters/googlecharts/display_spec.rb @@ -29,6 +29,9 @@ new(data_table.table, area_chart_options)} let(:column_chart_chart) {Daru::View::Plot. new(data_table.table, column_chart_options)} + let(:combined) { + Daru::View::Plot.new([data_table, area_chart_chart, column_chart_chart]) + } describe "#to_html" do it "generates valid JS of the Area Chart" do diff --git a/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb b/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb new file mode 100644 index 0000000..a029e45 --- /dev/null +++ b/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb @@ -0,0 +1,953 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "\n", + "Install the spreadsheet gem version ~>1.1.1 for using spreadsheet functions.\n", + "\n", + "Install the mechanize gem version ~>2.7.5 for using mechanize functions.\n" + ] + }, + { + "data": { + "text/plain": [ + "true" + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "require 'daru/view'" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "application/javascript": [ + "\n", + " /* BEGIN google_visualr.js */\n", + "\n", + "if(!window['googleLT_']){window['googleLT_']=(new Date()).getTime();}if (!window['google']) {\n", + "window['google'] = {};\n", + "}\n", + "if (!window['google']['loader']) {\n", + "window['google']['loader'] = {};\n", + "google.loader.ServiceBase = 'https://www.google.com/uds';\n", + "google.loader.GoogleApisBase = 'https://ajax.googleapis.com/ajax';\n", + "google.loader.ApiKey = 'notsupplied';\n", + "google.loader.KeyVerified = true;\n", + "google.loader.LoadFailure = false;\n", + "google.loader.Secure = true;\n", + "google.loader.GoogleLocale = 'www.google.com';\n", + "google.loader.ClientLocation = null;\n", + "google.loader.AdditionalParams = '';\n", + "(function() {function g(a){return a in l?l[a]:l[a]=-1!=navigator.userAgent.toLowerCase().indexOf(a)}var l={};function m(a,b){var c=function(){};c.prototype=b.prototype;a.ca=b.prototype;a.prototype=new c}function n(a,b,c){var d=Array.prototype.slice.call(arguments,2)||[];return function(){return a.apply(b,d.concat(Array.prototype.slice.call(arguments)))}}function p(a){a=Error(a);a.toString=function(){return this.message};return a}\n", + "function q(a,b){a=a.split(/\\./);for(var c=window,d=0;d\\x3c/script>\"):(g(\"safari\")||g(\"konqueror\"))&&window.setTimeout(B,10)),x.push(a)):y(window,\"load\",a)};t(\"google.setOnLoadCallback\",google.ba);\n", + "function y(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent(\"on\"+b,c);else{var d=a[\"on\"+b];a[\"on\"+b]=null!=d?C([c,d]):c}}function C(a){return function(){for(var b=0;b\\x3c/script>'):\"css\"==a&&document.write('')};\n", + "t(\"google.loader.writeLoadTag\",google.loader.f);google.loader.Z=function(a){w=a};t(\"google.loader.rfm\",google.loader.Z);google.loader.aa=function(a){for(var b in a)\"string\"==typeof b&&b&&\":\"==b.charAt(0)&&!v[b]&&(v[b]=new E(b.substring(1),a[b]))};t(\"google.loader.rpl\",google.loader.aa);google.loader.$=function(a){if((a=a.specs)&&a.length)for(var b=0;b\\x3c/script>')},K.Mi=function(b){var c=K.global.document,d=c.createElement(\"script\");d.type=C;d.src=b;d.defer=!1;d.async=!1;c.head.appendChild(d)},\n", + "K.Wl=function(b,c){if(K.tg()){var d=K.global.document;if(!K.Ge&&d.readyState==t){if(/\\bdeps.js$/.test(b))return!1;throw Error('Cannot write \"'+b+'\" after document load');}void 0===c?K.fi?(K.eh=!0,c=\" onreadystatechange='goog.onScriptLoad_(this, \"+ ++K.Sg+\")' \",d.write(n+b+'\"'+c+\">\\x3c/script>\")):K.Ge?K.Mi(b):K.Vl(b):d.write('\n" + ], + "text/plain": [ + "\"
\\n\\n\"" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "options = {\n", + " type: :pie,\n", + " title:'How Much Pizza Sarah Ate Last Night',\n", + " width:400,\n", + " height:300}\n", + "pizza_sarah = Daru::View::Plot.new(df_sarah, options)\n", + "pizza_sarah.show_in_iruby" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + " Daru::DataFrame(5x2) \n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "\n", + " \n", + "\n", + "
ToppingSlices
0Mushrooms2
1Onions2
2Olives2
3Zucchini0
4Pepperoni3
" + ], + "text/plain": [ + "#\n", + " Topping Slices\n", + " 0 Mushrooms 2\n", + " 1 Onions 2\n", + " 2 Olives 2\n", + " 3 Zucchini 0\n", + " 4 Pepperoni 3" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "idx = Daru::Index.new ['Topping', 'Slices']\n", + "data_rows = [\n", + " ['Mushrooms', 2],\n", + " ['Onions', 2],\n", + " ['Olives', 2],\n", + " ['Zucchini', 0],\n", + " ['Pepperoni', 3]\n", + "]\n", + "df_anthony = Daru::DataFrame.rows(data_rows)\n", + "df_anthony.vectors = idx\n", + "df_anthony" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n" + ], + "text/plain": [ + "\"
\\n\\n\"" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "options = {\n", + " type: :pie,\n", + " title:'How Much Pizza Anthony Ate Last Night',\n", + " width:400,\n", + " height:300}\n", + "pizza_anthony = Daru::View::Plot.new(df_anthony, options)\n", + "pizza_anthony.show_in_iruby" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "combined_pizza = Daru::View::Plot.new([pizza_sarah, pizza_anthony])\n", + "combined_pizza.show_in_iruby" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "pizza_sarah_table = Daru::View::Table.new(df_sarah)\n", + "combined = Daru::View::Plot.new([pizza_sarah_table, pizza_sarah])\n", + "combined.show_in_iruby" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "pizza_anthony_table = Daru::View::Table.new(df_anthony)\n", + "combined = Daru::View::Plot.new([pizza_anthony_table, pizza_anthony])\n", + "combined.show_in_iruby" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "pizza_sarah_table = Daru::View::Table.new(df_sarah)\n", + "pizza_anthony_table = Daru::View::Table.new(df_anthony)\n", + "combined_table = Daru::View::Plot.new([pizza_sarah_table, pizza_sarah, pizza_anthony_table, pizza_anthony])\n", + "combined_table.show_in_iruby" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "options = {\n", + " type: :bar,\n", + " title:'How Much Pizza Sarah Ate Last Night',\n", + " width:400,\n", + " height:300}\n", + "pizza_sarah_bar = Daru::View::Plot.new(df_sarah, options)\n", + "combined = Daru::View::Plot.new([pizza_sarah, pizza_sarah_bar])\n", + "combined.show_in_iruby" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Ruby 2.4.1", + "language": "ruby", + "name": "ruby" + }, + "language_info": { + "file_extension": ".rb", + "mimetype": "application/x-ruby", + "name": "ruby", + "version": "2.4.1" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} From e456894199264e0b3ba02b1c64a8935732c1a2be Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Sat, 16 Jun 2018 18:07:53 +0530 Subject: [PATCH 02/16] Resolve errors --- lib/daru/view/adapters/googlecharts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/daru/view/adapters/googlecharts.rb b/lib/daru/view/adapters/googlecharts.rb index f73fd8b..e56a54b 100644 --- a/lib/daru/view/adapters/googlecharts.rb +++ b/lib/daru/view/adapters/googlecharts.rb @@ -72,7 +72,7 @@ def init(data=[], options={}) @chart = GoogleVisualr::BaseChart.new(GoogleVisualr::DataTable.new) else @table = GoogleVisualr::DataTable.new - @table = get_table(data) + @table = get_table(data) unless data.is_a?(String) validate_url(data) if data.is_a?(String) @chart_type = extract_chart_type(options) @chart = GoogleVisualr::Interactive.const_get( From a291110d3147830437a5788a05166493fac921f6 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Sun, 17 Jun 2018 20:54:37 +0530 Subject: [PATCH 03/16] Added tests --- .../view/adapters/googlecharts/display.rb | 2 +- spec/adapters/googlecharts/display_spec.rb | 51 +++++++++++++++++++ spec/adapters/googlecharts_spec.rb | 10 +++- 3 files changed, 61 insertions(+), 2 deletions(-) diff --git a/lib/daru/view/adapters/googlecharts/display.rb b/lib/daru/view/adapters/googlecharts/display.rb index af7469c..49a1263 100644 --- a/lib/daru/view/adapters/googlecharts/display.rb +++ b/lib/daru/view/adapters/googlecharts/display.rb @@ -124,7 +124,7 @@ def extract_chart_id_script_path(id=nil) # @param id [String] The ID of the DIV element that the Google Chart # should be rendered in # @return [String] Javascript of the table or chart - def set_chart_script(plot, id) + def set_chart_script(plot, id=nil) if plot.is_a?(Daru::View::Plot) plot.chart.show_script(id, script_tag: false) else diff --git a/spec/adapters/googlecharts/display_spec.rb b/spec/adapters/googlecharts/display_spec.rb index 2a071b8..056db28 100644 --- a/spec/adapters/googlecharts/display_spec.rb +++ b/spec/adapters/googlecharts/display_spec.rb @@ -83,6 +83,57 @@ expect(js).to match( /data_table.addRow\(\[\{v: \"2013\"\}\]\);/i) end + it "generates valid js of the combined charts" do + js = combined.chart.to_html + expect(js).to match(/google.visualization.Table/) + expect(js).to match(/google.visualization.AreaChart/) + expect(js).to match(/google.visualization.ColumnChart/) + end + end + + describe "#extract_multiple_charts_id_script_path" do + it "returns correct path of the multiple_charts_div" do + id_script_path = combined.chart.extract_multiple_charts_id_script_path + expect(id_script_path[2]).to match( + /templates\/googlecharts\/multiple_charts_div.erb/ + ) + end + it "returns correct scripts of the multiple charts" do + id_script_path = combined.chart.extract_multiple_charts_id_script_path + expect(id_script_path[1][0]).to match(/google.visualization.Table/) + expect(id_script_path[1][1]).to match(/google.visualization.AreaChart/) + expect(id_script_path[1][2]).to match(/google.visualization.ColumnChart/) + end + end + + describe "#extract_chart_id_script_path" do + it "returns correct path of the chart_div" do + id_script_path = area_chart_chart.chart.extract_chart_id_script_path + expect(id_script_path[2]).to match( + /templates\/googlecharts\/chart_div.erb/ + ) + end + it "returns correct script of the chart" do + id_script_path = area_chart_chart.chart.extract_chart_id_script_path + expect(id_script_path[1]).to match( + /google.visualization.AreaChart/ + ) + end + it "returns correct id of the chart" do + id_script_path = area_chart_chart.chart.extract_chart_id_script_path('id') + expect(id_script_path[0]).to eq('id') + end + end + + describe "#set_chart_script" do + it "sets correct script of the data_table" do + js = data_table.table.set_chart_script(data_table, 'id') + expect(js).to match(/google.visualization.Table/) + end + it "sets correct script of the chart" do + js = area_chart_chart.chart.set_chart_script(area_chart_chart, 'id') + expect(js).to match(/google.visualization.AreaChart/) + end end describe "#show_script" do diff --git a/spec/adapters/googlecharts_spec.rb b/spec/adapters/googlecharts_spec.rb index 2465e6e..157da65 100644 --- a/spec/adapters/googlecharts_spec.rb +++ b/spec/adapters/googlecharts_spec.rb @@ -67,7 +67,9 @@ new(data_table.table, area_chart_options)} let(:column_chart_chart) {Daru::View::Plot. new(data_table.table, column_chart_options)} - + let(:combined) { + Daru::View::Plot.new([data_table, area_chart_chart, column_chart_chart]) + } describe "initialization Charts" do it "Default chart GoogleVisualr::Interactive::LineChart " do @@ -208,6 +210,12 @@ expect(js).to match(/google.visualization.ColumnChart/) expect(js).to match(/chart.draw\(data_table, \{width: 800\}/i) end + it "generates valid js of the combined charts" do + js = combined.adapter.generate_body(combined.chart) + expect(js).to match(/google.visualization.Table/) + expect(js).to match(/google.visualization.AreaChart/) + expect(js).to match(/google.visualization.ColumnChart/) + end end describe "#generate_html" do From 759b218c2b2f115e02f74dbc610f4c013362f149 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Sun, 24 Jun 2018 07:41:30 +0530 Subject: [PATCH 04/16] Add PlotList class --- lib/daru/view.rb | 5 +- lib/daru/view/plot_list.rb | 95 +++ spec/adapters/googlecharts/display_spec.rb | 8 +- spec/adapters/googlecharts_spec.rb | 4 +- ...e Charts | Multiple Charts in a cell.ipynb | 634 +++++++++--------- 5 files changed, 422 insertions(+), 324 deletions(-) create mode 100644 lib/daru/view/plot_list.rb diff --git a/lib/daru/view.rb b/lib/daru/view.rb index a1992f4..4ad33cd 100644 --- a/lib/daru/view.rb +++ b/lib/daru/view.rb @@ -1,5 +1,6 @@ require 'daru/view/version' require 'daru/view/plot' +require 'daru/view/plot_list' require 'daru/view/adapters/highcharts/display' require 'daru/view/adapters/nyaplot/display' require 'daru/view/adapters/googlecharts/display' @@ -18,6 +19,7 @@ module View # default Nyaplot library is used. @plotting_library = :nyaplot Daru::View::Plot.adapter = @plotting_library + Daru::View::PlotList.adapter = @plotting_library class << self attr_reader :plotting_library, :table_library @@ -28,7 +30,7 @@ def plotting_library=(lib) when :nyaplot, :highcharts, :googlecharts # plot charts @plotting_library = lib - Daru::View::Plot.adapter = lib + Daru::View::Plot.adapter = Daru::View::PlotList.adapter = lib if lib == :googlecharts # plot table drawing Daru::View::Table.adapter = lib @@ -53,6 +55,7 @@ def table_library=(lib) # plot chart and table drawing @plotting_library = @table_library = lib Daru::View::Plot.adapter = Daru::View::Table.adapter = lib + Daru::View::PlotList.adapter = lib when :datatables # only for table drawing @table_library = Daru::View::Table.adapter = lib diff --git a/lib/daru/view/plot_list.rb b/lib/daru/view/plot_list.rb new file mode 100644 index 0000000..d7a7165 --- /dev/null +++ b/lib/daru/view/plot_list.rb @@ -0,0 +1,95 @@ +module Daru + module View + class PlotList + attr_reader :charts, :data + attr_accessor :adapter + class << self + # class method + # + # @example + # + # Daru::View::PlotList.adapter = :googlecharts + # + # Plotting libraries are nyaplot, highcharts, googlecharts + def adapter=(adapter) + require "daru/view/adapters/#{adapter}" + # rubocop:disable Style/ClassVars + @@adapter = Daru::View::Adapter.const_get( + adapter.to_s.capitalize + 'Adapter' + ) + # rubocop:enable Style/ClassVars + end + end + + # @example + # + # Daru::View.plotting_library = :googlecharts + # + # df = Daru::DataFrame.new({a:['A', 'B', 'C', 'D', 'E'], b:[10,20,30,40,50]}) + # plot1 = Daru::View::Plot.new( + # df, type: :bar, x: :a, y: :b + # ) + # plot2 = Daru::View::Plot.new( + # df, type: :column, x: :a, y: :b + # ) + # plots = Daru::View::PlotList.new([plot1, plot2]) + # + def initialize(data=[]) + @data = data + @charts = plot_data(data) + end + + # instance method + def adapter=(adapter) + require "daru/view/adapters/#{adapter}" + @adapter = Daru::View::Adapter.const_get( + adapter.to_s.capitalize + 'Adapter' + ) + end + + # display in IRuby notebook + def show_in_iruby + @adapter.show_in_iruby @charts + end + + # dependent js file, to include in head tag using the plot object. + # @example: + # plot_obj.init_script + # + # Note : + # User can directly put the dependent script file into the head tag + # using `Daru::View.dependent_script(:highcharts), by default it loads + # Nyaplot JS files. + # + def init_script + @adapter.init_script + end + + # generat html code, to include in body tag + def div + @adapter.generate_body(@charts) + end + + # generat html file + def export_html_file(path='./plot.html') + @adapter.export_html_file(@charts, path) + end + + # load the corresponding JS files in IRuby notebook. + # This is done automatically when plotting library is set using + # Daru::View.plotting_library = :new_library + def init_iruby + @adapter.init_iruby + end + + private + + def plot_data(data) + # class variable @@aapter is used in instance variable @adapter. + # so in each object `adapter` variable can be accessed. + @adapter ||= @@adapter + @adapter.init(data) + end + end + end +end diff --git a/spec/adapters/googlecharts/display_spec.rb b/spec/adapters/googlecharts/display_spec.rb index 056db28..aee82be 100644 --- a/spec/adapters/googlecharts/display_spec.rb +++ b/spec/adapters/googlecharts/display_spec.rb @@ -30,7 +30,7 @@ let(:column_chart_chart) {Daru::View::Plot. new(data_table.table, column_chart_options)} let(:combined) { - Daru::View::Plot.new([data_table, area_chart_chart, column_chart_chart]) + Daru::View::PlotList.new([data_table, area_chart_chart, column_chart_chart]) } describe "#to_html" do @@ -84,7 +84,7 @@ /data_table.addRow\(\[\{v: \"2013\"\}\]\);/i) end it "generates valid js of the combined charts" do - js = combined.chart.to_html + js = combined.charts.to_html expect(js).to match(/google.visualization.Table/) expect(js).to match(/google.visualization.AreaChart/) expect(js).to match(/google.visualization.ColumnChart/) @@ -93,13 +93,13 @@ describe "#extract_multiple_charts_id_script_path" do it "returns correct path of the multiple_charts_div" do - id_script_path = combined.chart.extract_multiple_charts_id_script_path + id_script_path = combined.charts.extract_multiple_charts_id_script_path expect(id_script_path[2]).to match( /templates\/googlecharts\/multiple_charts_div.erb/ ) end it "returns correct scripts of the multiple charts" do - id_script_path = combined.chart.extract_multiple_charts_id_script_path + id_script_path = combined.charts.extract_multiple_charts_id_script_path expect(id_script_path[1][0]).to match(/google.visualization.Table/) expect(id_script_path[1][1]).to match(/google.visualization.AreaChart/) expect(id_script_path[1][2]).to match(/google.visualization.ColumnChart/) diff --git a/spec/adapters/googlecharts_spec.rb b/spec/adapters/googlecharts_spec.rb index 157da65..4014ecb 100644 --- a/spec/adapters/googlecharts_spec.rb +++ b/spec/adapters/googlecharts_spec.rb @@ -68,7 +68,7 @@ let(:column_chart_chart) {Daru::View::Plot. new(data_table.table, column_chart_options)} let(:combined) { - Daru::View::Plot.new([data_table, area_chart_chart, column_chart_chart]) + Daru::View::PlotList.new([data_table, area_chart_chart, column_chart_chart]) } describe "initialization Charts" do @@ -211,7 +211,7 @@ expect(js).to match(/chart.draw\(data_table, \{width: 800\}/i) end it "generates valid js of the combined charts" do - js = combined.adapter.generate_body(combined.chart) + js = combined.adapter.generate_body(combined.charts) expect(js).to match(/google.visualization.Table/) expect(js).to match(/google.visualization.AreaChart/) expect(js).to match(/google.visualization.ColumnChart/) diff --git a/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb b/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb index a029e45..b1206de 100644 --- a/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb +++ b/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb @@ -46,43 +46,43 @@ "}\n", "if (!window['google']['loader']) {\n", "window['google']['loader'] = {};\n", - "google.loader.ServiceBase = 'https://www.google.com/uds';\n", - "google.loader.GoogleApisBase = 'https://ajax.googleapis.com/ajax';\n", + "google.loader.ServiceBase = 'http://www.google.com/uds';\n", + "google.loader.GoogleApisBase = 'http://ajax.googleapis.com/ajax';\n", "google.loader.ApiKey = 'notsupplied';\n", "google.loader.KeyVerified = true;\n", "google.loader.LoadFailure = false;\n", - "google.loader.Secure = true;\n", + "google.loader.Secure = false;\n", "google.loader.GoogleLocale = 'www.google.com';\n", "google.loader.ClientLocation = null;\n", "google.loader.AdditionalParams = '';\n", - "(function() {function g(a){return a in l?l[a]:l[a]=-1!=navigator.userAgent.toLowerCase().indexOf(a)}var l={};function m(a,b){var c=function(){};c.prototype=b.prototype;a.ca=b.prototype;a.prototype=new c}function n(a,b,c){var d=Array.prototype.slice.call(arguments,2)||[];return function(){return a.apply(b,d.concat(Array.prototype.slice.call(arguments)))}}function p(a){a=Error(a);a.toString=function(){return this.message};return a}\n", - "function q(a,b){a=a.split(/\\./);for(var c=window,d=0;d\\x3c/script>\"):(g(\"safari\")||g(\"konqueror\"))&&window.setTimeout(B,10)),x.push(a)):y(window,\"load\",a)};t(\"google.setOnLoadCallback\",google.ba);\n", - "function y(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent(\"on\"+b,c);else{var d=a[\"on\"+b];a[\"on\"+b]=null!=d?C([c,d]):c}}function C(a){return function(){for(var b=0;b\\x3c/script>'):\"css\"==a&&document.write('')};\n", - "t(\"google.loader.writeLoadTag\",google.loader.f);google.loader.Z=function(a){w=a};t(\"google.loader.rfm\",google.loader.Z);google.loader.aa=function(a){for(var b in a)\"string\"==typeof b&&b&&\":\"==b.charAt(0)&&!v[b]&&(v[b]=new E(b.substring(1),a[b]))};t(\"google.loader.rpl\",google.loader.aa);google.loader.$=function(a){if((a=a.specs)&&a.length)for(var b=0;b\")&&(a=a.replace(q,\">\"));-1!=a.indexOf('\"')&&(a=a.replace(r,\""\"));-1!=a.indexOf(\"'\")&&(a=a.replace(t,\"'\"));-1!=a.indexOf(\"\\x00\")&&(a=a.replace(u,\"�\"))}return a},n=/&/g,p=//g,r=/\"/g,t=/'/g,u=/\\x00/g,v=/[\\x00&<>\"']/;var x=/^[\\w+/_-]+[=]{0,2}$/;function y(a){return a in z?z[a]:z[a]=-1!=navigator.userAgent.toLowerCase().indexOf(a)}var z={};function A(a,b){var c=function(){};c.prototype=b.prototype;a.da=b.prototype;a.prototype=new c}function C(a,b,c){var d=Array.prototype.slice.call(arguments,2)||[];return function(){return a.apply(b,d.concat(Array.prototype.slice.call(arguments)))}}function D(a){a=Error(a);a.toString=function(){return this.message};return a}\n", + "function E(a,b){a=a.split(/\\./);for(var c=window,d=0;d\\x3c/script>\"):(y(\"safari\")||y(\"konqueror\"))&&window.setTimeout(L,10)),I.push(a)):J(window,\"load\",a)};l(\"google.setOnLoadCallback\",google.ca);\n", + "function J(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent(\"on\"+b,c);else{var d=a[\"on\"+b];a[\"on\"+b]=null!=d?M([c,d]):c}}function M(a){return function(){for(var b=0;b\\x3c/script>\")):\"css\"==a&&(e='\"))};l(\"google.loader.writeLoadTag\",google.loader.f);google.loader.$=function(a){H=a};l(\"google.loader.rfm\",google.loader.$);google.loader.ba=function(a){for(var b in a)\"string\"==typeof b&&b&&\":\"==b.charAt(0)&&!G[b]&&(G[b]=new O(b.substring(1),a[b]))};\n", + "l(\"google.loader.rpl\",google.loader.ba);google.loader.aa=function(a){if((a=a.specs)&&a.length)for(var b=0;b\\x3c/script>')},K.Mi=function(b){var c=K.global.document,d=c.createElement(\"script\");d.type=C;d.src=b;d.defer=!1;d.async=!1;c.head.appendChild(d)},\n", - "K.Wl=function(b,c){if(K.tg()){var d=K.global.document;if(!K.Ge&&d.readyState==t){if(/\\bdeps.js$/.test(b))return!1;throw Error('Cannot write \"'+b+'\" after document load');}void 0===c?K.fi?(K.eh=!0,c=\" onreadystatechange='goog.onScriptLoad_(this, \"+ ++K.Sg+\")' \",d.write(n+b+'\"'+c+\">\\x3c/script>\")):K.Ge?K.Mi(b):K.Vl(b):d.write('\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 4, @@ -600,19 +600,19 @@ { "data": { "text/html": [ - "
\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 6, @@ -641,34 +641,34 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" ] }, "execution_count": 7, @@ -677,7 +677,7 @@ } ], "source": [ - "combined_pizza = Daru::View::Plot.new([pizza_sarah, pizza_anthony])\n", + "combined_pizza = Daru::View::PlotList.new([pizza_sarah, pizza_anthony])\n", "combined_pizza.show_in_iruby" ] }, @@ -692,9 +692,9 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -703,26 +703,26 @@ " \n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_ae0030d9_094e_440e_9a7e_8dfd14531b79});\n", - " function draw_ae0030d9_094e_440e_9a7e_8dfd14531b79() {\n", + " draw_78e34693_26e3_45b9_8f34_cb72b92234fb});\n", + " function draw_78e34693_26e3_45b9_8f34_cb72b92234fb() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('ae0030d9-094e-440e-9a7e-8dfd14531b79'));\n", + " document.getElementById('78e34693-26e3-45b9-8f34-cb72b92234fb'));\n", " table.draw(data_table, {}); \n", " };\n", " \n", " \n", - " google.load('visualization', '1.0', {packages: ['corechart'], callback: draw_7ac1a8f2_8489_440a_ba65_72ac6efeef17});\n", - " function draw_7ac1a8f2_8489_440a_ba65_72ac6efeef17() {\n", + " google.load('visualization', '1.0', {packages: ['corechart'], callback: draw_474c1edb_ea7f_4adc_93a9_d61a5b610908});\n", + " function draw_474c1edb_ea7f_4adc_93a9_d61a5b610908() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", - " var chart = new google.visualization.PieChart(document.getElementById('7ac1a8f2-8489-440a-ba65-72ac6efeef17'));\n", + " var chart = new google.visualization.PieChart(document.getElementById('474c1edb-ea7f-4adc-93a9-d61a5b610908'));\n", " chart.draw(data_table, {title: \"How Much Pizza Sarah Ate Last Night\", width: 400, height: 300});\n", " };\n", " \n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" ] }, "execution_count": 8, @@ -732,7 +732,7 @@ ], "source": [ "pizza_sarah_table = Daru::View::Table.new(df_sarah)\n", - "combined = Daru::View::Plot.new([pizza_sarah_table, pizza_sarah])\n", + "combined = Daru::View::PlotList.new([pizza_sarah_table, pizza_sarah])\n", "combined.show_in_iruby" ] }, @@ -747,9 +747,9 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -758,26 +758,26 @@ " \n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_97b188ca_596e_4b82_85bd_e3b89add4736});\n", - " function draw_97b188ca_596e_4b82_85bd_e3b89add4736() {\n", + " draw_da0802f1_228f_49c6_a56f_8f17a7ae797f});\n", + " function draw_da0802f1_228f_49c6_a56f_8f17a7ae797f() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('97b188ca-596e-4b82-85bd-e3b89add4736'));\n", + " document.getElementById('da0802f1-228f-49c6-a56f-8f17a7ae797f'));\n", " table.draw(data_table, {}); \n", " };\n", " \n", " \n", - " google.load('visualization', '1.0', {packages: ['corechart'], callback: draw_3c392772_da95_458d_b640_f5f3c53bb7f9});\n", - " function draw_3c392772_da95_458d_b640_f5f3c53bb7f9() {\n", + " google.load('visualization', '1.0', {packages: ['corechart'], callback: draw_7deab5c8_8789_4329_9a39_ed0604be24fc});\n", + " function draw_7deab5c8_8789_4329_9a39_ed0604be24fc() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", - " var chart = new google.visualization.PieChart(document.getElementById('3c392772-da95-458d-b640-f5f3c53bb7f9'));\n", + " var chart = new google.visualization.PieChart(document.getElementById('7deab5c8-8789-4329-9a39-ed0604be24fc'));\n", " chart.draw(data_table, {title: \"How Much Pizza Anthony Ate Last Night\", width: 400, height: 300});\n", " };\n", " \n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" ] }, "execution_count": 9, @@ -787,7 +787,7 @@ ], "source": [ "pizza_anthony_table = Daru::View::Table.new(df_anthony)\n", - "combined = Daru::View::Plot.new([pizza_anthony_table, pizza_anthony])\n", + "combined = Daru::View::PlotList.new([pizza_anthony_table, pizza_anthony])\n", "combined.show_in_iruby" ] }, @@ -802,13 +802,13 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -817,45 +817,45 @@ " \n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_1aa98328_9bb7_4536_9b6a_7c4a817849a6});\n", - " function draw_1aa98328_9bb7_4536_9b6a_7c4a817849a6() {\n", + " draw_1ea6beea_0db1_4da6_9a52_d1a473ca3e1b});\n", + " function draw_1ea6beea_0db1_4da6_9a52_d1a473ca3e1b() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('1aa98328-9bb7-4536-9b6a-7c4a817849a6'));\n", + " document.getElementById('1ea6beea-0db1-4da6-9a52-d1a473ca3e1b'));\n", " table.draw(data_table, {}); \n", " };\n", " \n", " \n", - " google.load('visualization', '1.0', {packages: ['corechart'], callback: draw_80360906_5087_4ce5_aac0_7b3c3ebdd470});\n", - " function draw_80360906_5087_4ce5_aac0_7b3c3ebdd470() {\n", + " google.load('visualization', '1.0', {packages: ['corechart'], callback: draw_4431ee5a_5bb4_4cec_a3ac_a16ca8272844});\n", + " function draw_4431ee5a_5bb4_4cec_a3ac_a16ca8272844() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", - " var chart = new google.visualization.PieChart(document.getElementById('80360906-5087-4ce5-aac0-7b3c3ebdd470'));\n", + " var chart = new google.visualization.PieChart(document.getElementById('4431ee5a-5bb4-4cec-a3ac-a16ca8272844'));\n", " chart.draw(data_table, {title: \"How Much Pizza Sarah Ate Last Night\", width: 400, height: 300});\n", " };\n", " \n", " \n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_a90acfe2_d9b0_4bb8_9972_e027f37ae887});\n", - " function draw_a90acfe2_d9b0_4bb8_9972_e027f37ae887() {\n", + " draw_2189bdd4_4194_45b1_9607_9a89d926ba3c});\n", + " function draw_2189bdd4_4194_45b1_9607_9a89d926ba3c() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('a90acfe2-d9b0-4bb8-9972-e027f37ae887'));\n", + " document.getElementById('2189bdd4-4194-45b1-9607-9a89d926ba3c'));\n", " table.draw(data_table, {}); \n", " };\n", " \n", " \n", - " google.load('visualization', '1.0', {packages: ['corechart'], callback: draw_ce054994_74cc_41d0_9267_4c3d3b6dbe2e});\n", - " function draw_ce054994_74cc_41d0_9267_4c3d3b6dbe2e() {\n", + " google.load('visualization', '1.0', {packages: ['corechart'], callback: draw_4219c6c7_7c25_4b99_a8fa_d3314c29edff});\n", + " function draw_4219c6c7_7c25_4b99_a8fa_d3314c29edff() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", - " var chart = new google.visualization.PieChart(document.getElementById('ce054994-74cc-41d0-9267-4c3d3b6dbe2e'));\n", + " var chart = new google.visualization.PieChart(document.getElementById('4219c6c7-7c25-4b99-a8fa-d3314c29edff'));\n", " chart.draw(data_table, {title: \"How Much Pizza Anthony Ate Last Night\", width: 400, height: 300});\n", " };\n", " \n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" ] }, "execution_count": 10, @@ -866,7 +866,7 @@ "source": [ "pizza_sarah_table = Daru::View::Table.new(df_sarah)\n", "pizza_anthony_table = Daru::View::Table.new(df_anthony)\n", - "combined_table = Daru::View::Plot.new([pizza_sarah_table, pizza_sarah, pizza_anthony_table, pizza_anthony])\n", + "combined_table = Daru::View::PlotList.new([pizza_sarah_table, pizza_sarah, pizza_anthony_table, pizza_anthony])\n", "combined_table.show_in_iruby" ] }, @@ -881,34 +881,34 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" ] }, "execution_count": 11, @@ -923,7 +923,7 @@ " width:400,\n", " height:300}\n", "pizza_sarah_bar = Daru::View::Plot.new(df_sarah, options)\n", - "combined = Daru::View::Plot.new([pizza_sarah, pizza_sarah_bar])\n", + "combined = Daru::View::PlotList.new([pizza_sarah, pizza_sarah_bar])\n", "combined.show_in_iruby" ] }, From 132cbf68bb616666b775d9dc47533f73c6975152 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Wed, 27 Jun 2018 08:39:07 +0530 Subject: [PATCH 05/16] Add plot_list_specs.rb --- lib/daru/view/adapters/googlecharts.rb | 4 +- lib/daru/view/plot_list.rb | 20 ------- .../templates/googlecharts/static_html.erb | 5 ++ spec/plot_list_spec.rb | 57 +++++++++++++++++++ spec/plot_spec.rb | 2 +- 5 files changed, 65 insertions(+), 23 deletions(-) create mode 100644 spec/plot_list_spec.rb diff --git a/lib/daru/view/adapters/googlecharts.rb b/lib/daru/view/adapters/googlecharts.rb index e56a54b..e21dd0f 100644 --- a/lib/daru/view/adapters/googlecharts.rb +++ b/lib/daru/view/adapters/googlecharts.rb @@ -59,9 +59,9 @@ module GooglechartsAdapter # chart = Daru::View::Plot.new(data, options) # # @example Multiple Charts in a row - # Draw the Daru::View::Plot object with the data as an array of + # Draw the Daru::View::PlotList object with the data as an array of # Daru::View::Plots(s) or Daru::View::Table(s) or both - # combined = Daru::View::Plot([line_chart, bar_chart]) + # combined = Daru::View::PlotList([line_chart, bar_chart]) def init(data=[], options={}) # When multiple charts are shown in a row, @chart will contain the # instance of GoogleVisular::BaseChart so that its data can contain diff --git a/lib/daru/view/plot_list.rb b/lib/daru/view/plot_list.rb index d7a7165..972ba2c 100644 --- a/lib/daru/view/plot_list.rb +++ b/lib/daru/view/plot_list.rb @@ -52,19 +52,6 @@ def show_in_iruby @adapter.show_in_iruby @charts end - # dependent js file, to include in head tag using the plot object. - # @example: - # plot_obj.init_script - # - # Note : - # User can directly put the dependent script file into the head tag - # using `Daru::View.dependent_script(:highcharts), by default it loads - # Nyaplot JS files. - # - def init_script - @adapter.init_script - end - # generat html code, to include in body tag def div @adapter.generate_body(@charts) @@ -75,13 +62,6 @@ def export_html_file(path='./plot.html') @adapter.export_html_file(@charts, path) end - # load the corresponding JS files in IRuby notebook. - # This is done automatically when plotting library is set using - # Daru::View.plotting_library = :new_library - def init_iruby - @adapter.init_iruby - end - private def plot_data(data) diff --git a/lib/daru/view/templates/googlecharts/static_html.erb b/lib/daru/view/templates/googlecharts/static_html.erb index b79a3ad..19ed77c 100644 --- a/lib/daru/view/templates/googlecharts/static_html.erb +++ b/lib/daru/view/templates/googlecharts/static_html.erb @@ -1,7 +1,12 @@ + <% if plot.data.is_a?(Array) && (plot.data[0].is_a?(Daru::View::Plot) || + plot.data[0].is_a?(Daru::View::Table)) %> + Multiple Charts + <% else %> Chart_<%= id %>_<%= @chart_type%> + <% end %> <%= initial_script %> diff --git a/spec/plot_list_spec.rb b/spec/plot_list_spec.rb new file mode 100644 index 0000000..b081e78 --- /dev/null +++ b/spec/plot_list_spec.rb @@ -0,0 +1,57 @@ +describe Daru::View::PlotList, 'Charts plotting with Googlecharts library' do + before { Daru::View.plotting_library = :googlecharts } + let(:options) {{width: 800, height: 720}} + let(:df) do + Daru::DataFrame.new( + { + a: [1, 2, 3, 4, 5, 6], + b: [1, 5, 2, 5, 1, 0], + c: [1, 6, 7, 2, 6, 0] + }, index: 'a'..'f' + ) + end + let(:plot_array) { [plot_df, plot_dv, table_array] } + let(:dv) { Daru::Vector.new [1, 2, 3] } + let(:plot_df) { Daru::View::Plot.new(df, options) } + let(:plot_dv) { Daru::View::Plot.new(dv, type: :bar) } + let(:table_array) { Daru::View::Table.new( + [['col1', 'col2', 'col3'],[1, 2, 3]], options) } + let(:combined) { Daru::View::PlotList.new(plot_array) } + context 'initialize with Googlecharts' do + it 'checks the set adapter' do + expect(combined.adapter).to eq(Daru::View::Adapter::GooglechartsAdapter) + end + it 'sets correct data' do + expect(combined).to be_a Daru::View::PlotList + expect(combined.data).to eq plot_array + expect(combined.charts).to be_a GoogleVisualr::BaseChart + end + end + describe '#div' do + subject (:js) { combined.div } + it 'genrates a table in js' do + expect(js).to match(//) + expect(js).to match(/
/i) + expect(content).to match(/Multiple Charts/i) + expect(content).to match(/google.visualization.DataTable\(\);/i) + expect(content).to match(/google.visualization.LineChart/) + expect(content).to match(/google.visualization.BarChart/) + expect(content).to match(/google.visualization.Table/) + expect(content).to match(/chart.draw\(data_table, \{\}/i) + end + end +end \ No newline at end of file diff --git a/spec/plot_spec.rb b/spec/plot_spec.rb index ddbed39..2c363d3 100644 --- a/spec/plot_spec.rb +++ b/spec/plot_spec.rb @@ -13,7 +13,7 @@ let(:plot_df) { Daru::View::Plot.new(df, type: :line, x: :a, y: :c) } let(:plot_dv) { Daru::View::Plot.new(dv, type: :line) } context 'initialize' do - # before { Daru::View.plotting_library = :nyaplot } + before { Daru::View.plotting_library = :nyaplot } context 'Default plotting_library is nyaplot' do it { expect(Daru::View.plotting_library).to eq(:nyaplot)} end From 3f2c9a251ec33709b772e61bb51b5b8a987a3dad Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Tue, 3 Jul 2018 02:31:23 +0530 Subject: [PATCH 06/16] Updated implementation --- lib/daru/view.rb | 4 +- lib/daru/view/adapters/datatables.rb | 2 +- lib/daru/view/adapters/googlecharts.rb | 33 +++++----- .../view/adapters/googlecharts/display.rb | 51 ++------------ lib/daru/view/adapters/highcharts.rb | 10 ++- lib/daru/view/adapters/highcharts/display.rb | 2 +- lib/daru/view/adapters/nyaplot.rb | 2 +- lib/daru/view/plot.rb | 10 ++- lib/daru/view/plot_list.rb | 66 ++++++++----------- lib/daru/view/table.rb | 10 ++- .../templates/googlecharts/static_html.erb | 5 -- .../multiple_charts_div.erb | 6 +- 12 files changed, 77 insertions(+), 124 deletions(-) rename lib/daru/view/templates/{googlecharts => }/multiple_charts_div.erb (60%) diff --git a/lib/daru/view.rb b/lib/daru/view.rb index 4ad33cd..7334d11 100644 --- a/lib/daru/view.rb +++ b/lib/daru/view.rb @@ -19,7 +19,6 @@ module View # default Nyaplot library is used. @plotting_library = :nyaplot Daru::View::Plot.adapter = @plotting_library - Daru::View::PlotList.adapter = @plotting_library class << self attr_reader :plotting_library, :table_library @@ -30,7 +29,7 @@ def plotting_library=(lib) when :nyaplot, :highcharts, :googlecharts # plot charts @plotting_library = lib - Daru::View::Plot.adapter = Daru::View::PlotList.adapter = lib + Daru::View::Plot.adapter = lib if lib == :googlecharts # plot table drawing Daru::View::Table.adapter = lib @@ -55,7 +54,6 @@ def table_library=(lib) # plot chart and table drawing @plotting_library = @table_library = lib Daru::View::Plot.adapter = Daru::View::Table.adapter = lib - Daru::View::PlotList.adapter = lib when :datatables # only for table drawing @table_library = Daru::View::Table.adapter = lib diff --git a/lib/daru/view/adapters/datatables.rb b/lib/daru/view/adapters/datatables.rb index 42bab15..6c4345c 100644 --- a/lib/daru/view/adapters/datatables.rb +++ b/lib/daru/view/adapters/datatables.rb @@ -35,7 +35,7 @@ def init_script Daru::DataTables.init_script end - def generate_body(table) + def generate_body(table, _id=nil) table_opts = { class: 'display', cellspacing: '0', diff --git a/lib/daru/view/adapters/googlecharts.rb b/lib/daru/view/adapters/googlecharts.rb index e21dd0f..368537f 100644 --- a/lib/daru/view/adapters/googlecharts.rb +++ b/lib/daru/view/adapters/googlecharts.rb @@ -63,22 +63,13 @@ module GooglechartsAdapter # Daru::View::Plots(s) or Daru::View::Table(s) or both # combined = Daru::View::PlotList([line_chart, bar_chart]) def init(data=[], options={}) - # When multiple charts are shown in a row, @chart will contain the - # instance of GoogleVisular::BaseChart so that its data can contain - # the array of plots (this will be used in display.rb). Further, - # @chart will be used to call show_in_iruby and to_html. - if data.is_a?(Array) && - (data[0].is_a?(Daru::View::Plot) || data[0].is_a?(Daru::View::Table)) - @chart = GoogleVisualr::BaseChart.new(GoogleVisualr::DataTable.new) - else - @table = GoogleVisualr::DataTable.new - @table = get_table(data) unless data.is_a?(String) - validate_url(data) if data.is_a?(String) - @chart_type = extract_chart_type(options) - @chart = GoogleVisualr::Interactive.const_get( - @chart_type - ).new(@table, options) - end + @table = GoogleVisualr::DataTable.new + @table = get_table(data) unless data.is_a?(String) + validate_url(data) if data.is_a?(String) + @chart_type = extract_chart_type(options) + @chart = GoogleVisualr::Interactive.const_get( + @chart_type + ).new(@table, options) @chart.data = data @chart end @@ -181,8 +172,8 @@ def init_script GoogleVisualr.init_script end - def generate_body(plot) - plot.to_html + def generate_body(plot, id=random_canvas_id) + plot.to_html(id) end def export_html_file(plot, path='./plot.html') @@ -317,6 +308,12 @@ def return_js_type(data) # rubocop:disable Metrics/PerceivedComplexity, Metrics/ return 'date' end end + + def random_canvas_id + canvas_id_length = 11 + # Don't use SecureRandom.urlsafe_base64; it gives invalid characters. + ('a'..'z').to_a.shuffle.take(canvas_id_length).join + end end end end diff --git a/lib/daru/view/adapters/googlecharts/display.rb b/lib/daru/view/adapters/googlecharts/display.rb index 49a1263..9dd1fc6 100644 --- a/lib/daru/view/adapters/googlecharts/display.rb +++ b/lib/daru/view/adapters/googlecharts/display.rb @@ -75,61 +75,18 @@ def get_html_spreadsheet(data, dom) end def to_html(id=nil, options={}) - if data.is_a?(Array) && - (data[0].is_a?(Daru::View::Plot) || data[0].is_a?(Daru::View::Table)) - id, chart_script, path = extract_multiple_charts_id_script_path - else - id, chart_script, path = extract_chart_id_script_path(id) - end - template = File.read(path) - ERB.new(template).result(binding) - end - - def show_in_iruby(dom=SecureRandom.uuid) - IRuby.html(to_html(dom)) - end - - # @return [Array] Array of IDs of the multiple charts, Array of scripts - # of the multiple charts, path of the template used to render the - # multiple charts - def extract_multiple_charts_id_script_path - path = File.expand_path( - '../../templates/googlecharts/multiple_charts_div.erb', __dir__ - ) - id = [] - chart_script = [] - data.each_with_index do |plot, index| - id[index] ||= SecureRandom.uuid - chart_script[index] = set_chart_script(plot, id[index]) - end - [id, chart_script, path] - end - - # @param id [String] The ID of the DIV element that the Google Chart - # should be rendered in - # @return [Array] ID of the div element, script of the chart, path of - # the template which will be used to render the chart - def extract_chart_id_script_path(id=nil) path = File.expand_path( '../../templates/googlecharts/chart_div.erb', __dir__ ) + template = File.read(path) id ||= SecureRandom.uuid @html_id = id chart_script = show_script(id, script_tag: false) - [id, chart_script, path] + ERB.new(template).result(binding) end - # @param plot [Daru::View::Plot, Daru::View::Table] one of the plot or - # table objects that will be shown in a row - # @param id [String] The ID of the DIV element that the Google Chart - # should be rendered in - # @return [String] Javascript of the table or chart - def set_chart_script(plot, id=nil) - if plot.is_a?(Daru::View::Plot) - plot.chart.show_script(id, script_tag: false) - else - plot.table.show_script(id, script_tag: false) - end + def show_in_iruby(dom=SecureRandom.uuid) + IRuby.html(to_html(dom)) end end diff --git a/lib/daru/view/adapters/highcharts.rb b/lib/daru/view/adapters/highcharts.rb index ce017d0..3830f60 100644 --- a/lib/daru/view/adapters/highcharts.rb +++ b/lib/daru/view/adapters/highcharts.rb @@ -60,8 +60,8 @@ def init_script LazyHighCharts.init_script end - def generate_body(plot) - plot.to_html + def generate_body(plot, id=random_canvas_id) + plot.to_html(id) end def export_html_file(plot, path='./plot.html') @@ -114,6 +114,12 @@ def guess_data(data_set) raise ArgumentError end end + + def random_canvas_id + canvas_id_length = 11 + # Don't use SecureRandom.urlsafe_base64; it gives invalid characters. + ('a'..'z').to_a.shuffle.take(canvas_id_length).join + end end end end diff --git a/lib/daru/view/adapters/highcharts/display.rb b/lib/daru/view/adapters/highcharts/display.rb index 63e389a..5df7fb8 100644 --- a/lib/daru/view/adapters/highcharts/display.rb +++ b/lib/daru/view/adapters/highcharts/display.rb @@ -51,7 +51,6 @@ def to_html(placeholder=random_canvas_id) def show_in_iruby(placeholder=random_canvas_id) # TODO : placeholder pass, in plot#div - load_dependencies('iruby') IRuby.html to_html_iruby(placeholder) end @@ -60,6 +59,7 @@ def show_in_iruby(placeholder=random_canvas_id) # `high_chart_iruby` which doesn't use `onload` in chart script. def to_html_iruby(placeholder=random_canvas_id) # TODO : placeholder pass, in plot#div + load_dependencies('iruby') chart_hash_must_be_present high_chart_iruby(extract_chart_class, placeholder, self) end diff --git a/lib/daru/view/adapters/nyaplot.rb b/lib/daru/view/adapters/nyaplot.rb index 38c1a21..cb01419 100644 --- a/lib/daru/view/adapters/nyaplot.rb +++ b/lib/daru/view/adapters/nyaplot.rb @@ -24,7 +24,7 @@ def init_script Nyaplot.init_script end - def generate_body(plot) + def generate_body(plot, _id=nil) plot.to_iruby[1] end diff --git a/lib/daru/view/plot.rb b/lib/daru/view/plot.rb index 3a0ecdf..e12ac4e 100644 --- a/lib/daru/view/plot.rb +++ b/lib/daru/view/plot.rb @@ -68,8 +68,8 @@ def init_script end # generat html code, to include in body tag - def div - @adapter.generate_body(@chart) + def div(element_id=random_canvas_id) + @adapter.generate_body(@chart, element_id) end # generat html file @@ -101,6 +101,12 @@ def plot_data(data, options) @adapter ||= @@adapter @adapter.init(data, options) end + + def random_canvas_id + canvas_id_length = 11 + # Don't use SecureRandom.urlsafe_base64; it gives invalid characters. + ('a'..'z').to_a.shuffle.take(canvas_id_length).join + end end end end diff --git a/lib/daru/view/plot_list.rb b/lib/daru/view/plot_list.rb index 972ba2c..2305326 100644 --- a/lib/daru/view/plot_list.rb +++ b/lib/daru/view/plot_list.rb @@ -1,25 +1,9 @@ +require 'erb' + module Daru module View class PlotList - attr_reader :charts, :data - attr_accessor :adapter - class << self - # class method - # - # @example - # - # Daru::View::PlotList.adapter = :googlecharts - # - # Plotting libraries are nyaplot, highcharts, googlecharts - def adapter=(adapter) - require "daru/view/adapters/#{adapter}" - # rubocop:disable Style/ClassVars - @@adapter = Daru::View::Adapter.const_get( - adapter.to_s.capitalize + 'Adapter' - ) - # rubocop:enable Style/ClassVars - end - end + attr_reader :data # @example # @@ -35,40 +19,48 @@ def adapter=(adapter) # plots = Daru::View::PlotList.new([plot1, plot2]) # def initialize(data=[]) + raise ArgumentError unless data.is_a?(Array) && + (data[0].is_a?(Daru::View::Plot) || + data[0].is_a?(Daru::View::Table)) @data = data - @charts = plot_data(data) - end - - # instance method - def adapter=(adapter) - require "daru/view/adapters/#{adapter}" - @adapter = Daru::View::Adapter.const_get( - adapter.to_s.capitalize + 'Adapter' - ) end # display in IRuby notebook def show_in_iruby - @adapter.show_in_iruby @charts + IRuby.html(div) end # generat html code, to include in body tag def div - @adapter.generate_body(@charts) + path = File.expand_path('templates/multiple_charts_div.erb', __dir__) + template = File.read(path) + id = [] + charts_script = extract_charts_script(id) + ERB.new(template).result(binding) end - # generat html file + # generate html file def export_html_file(path='./plot.html') - @adapter.export_html_file(@charts, path) + # TODO end private - def plot_data(data) - # class variable @@aapter is used in instance variable @adapter. - # so in each object `adapter` variable can be accessed. - @adapter ||= @@adapter - @adapter.init(data) + def extract_charts_script(id=[]) + charts_script = '' + @data.each_with_index do |plot, index| + id[index] = ('a'..'z').to_a.shuffle.take(11).join + # TODO: Implement this for nyplot and datatables too + # if defined?(IRuby) && plot.is_a?(Daru::View::Plot) && + # plot.chart.is_a?(LazyHighCharts::HighChart) + # chart_script = plot.chart.to_html_iruby(id[index]) + # else + chart_script = plot.div(id[index]) + # end + chart_script.sub!(%r{}ixm, '') + charts_script << chart_script + end + charts_script end end end diff --git a/lib/daru/view/table.rb b/lib/daru/view/table.rb index 5b0f47c..5135623 100644 --- a/lib/daru/view/table.rb +++ b/lib/daru/view/table.rb @@ -70,8 +70,8 @@ def init_script end # generate html code, to include in body tag - def div - @adapter.generate_body(@table) + def div(element_id=random_canvas_id) + @adapter.generate_body(@table, element_id) end # generat html file @@ -94,6 +94,12 @@ def table_data(data, options) @adapter ||= @@adapter @adapter.init_table(data, options) end + + def random_canvas_id + canvas_id_length = 11 + # Don't use SecureRandom.urlsafe_base64; it gives invalid characters. + ('a'..'z').to_a.shuffle.take(canvas_id_length).join + end end end end diff --git a/lib/daru/view/templates/googlecharts/static_html.erb b/lib/daru/view/templates/googlecharts/static_html.erb index 19ed77c..b79a3ad 100644 --- a/lib/daru/view/templates/googlecharts/static_html.erb +++ b/lib/daru/view/templates/googlecharts/static_html.erb @@ -1,12 +1,7 @@ - <% if plot.data.is_a?(Array) && (plot.data[0].is_a?(Daru::View::Plot) || - plot.data[0].is_a?(Daru::View::Table)) %> - Multiple Charts - <% else %> Chart_<%= id %>_<%= @chart_type%> - <% end %> <%= initial_script %> diff --git a/lib/daru/view/templates/googlecharts/multiple_charts_div.erb b/lib/daru/view/templates/multiple_charts_div.erb similarity index 60% rename from lib/daru/view/templates/googlecharts/multiple_charts_div.erb rename to lib/daru/view/templates/multiple_charts_div.erb index 98c0b1b..de30fc8 100644 --- a/lib/daru/view/templates/googlecharts/multiple_charts_div.erb +++ b/lib/daru/view/templates/multiple_charts_div.erb @@ -5,8 +5,4 @@ <% end %>
- +<%= charts_script %> From 3bf13997249efab5e5d3611c45bbb6e2c9b67c7d Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Tue, 3 Jul 2018 06:21:26 +0530 Subject: [PATCH 07/16] include IRuby::Utils to make it work for IRuby notebook --- lib/daru/view/plot_list.rb | 34 +- spec/adapters/googlecharts/display_spec.rb | 54 - spec/adapters/googlecharts_spec.rb | 9 - ...e Charts | Multiple Charts in a cell.ipynb | 1339 +++++++++++++++-- 4 files changed, 1236 insertions(+), 200 deletions(-) diff --git a/lib/daru/view/plot_list.rb b/lib/daru/view/plot_list.rb index 2305326..00ae906 100644 --- a/lib/daru/view/plot_list.rb +++ b/lib/daru/view/plot_list.rb @@ -1,5 +1,10 @@ require 'erb' +# Otherwise Daru::IRuby module was used and IRuby.html method was not working. +# rubocop:disable Style/MixinUsage +include IRuby::Utils if defined?(IRuby) +# rubocop:enable Style/MixinUsage + module Daru module View class PlotList @@ -20,8 +25,10 @@ class PlotList # def initialize(data=[]) raise ArgumentError unless data.is_a?(Array) && - (data[0].is_a?(Daru::View::Plot) || - data[0].is_a?(Daru::View::Table)) + data.all? { |plot| + plot.is_a?(Daru::View::Plot) || + plot.is_a?(Daru::View::Table) + } @data = data end @@ -30,7 +37,7 @@ def show_in_iruby IRuby.html(div) end - # generat html code, to include in body tag + # generate html code, to include in body tag def div path = File.expand_path('templates/multiple_charts_div.erb', __dir__) template = File.read(path) @@ -50,18 +57,25 @@ def extract_charts_script(id=[]) charts_script = '' @data.each_with_index do |plot, index| id[index] = ('a'..'z').to_a.shuffle.take(11).join - # TODO: Implement this for nyplot and datatables too - # if defined?(IRuby) && plot.is_a?(Daru::View::Plot) && - # plot.chart.is_a?(LazyHighCharts::HighChart) - # chart_script = plot.chart.to_html_iruby(id[index]) - # else - chart_script = plot.div(id[index]) - # end + chart_script = extract_chart_script(id, plot, index) chart_script.sub!(%r{}ixm, '') charts_script << chart_script end charts_script end + + def extract_chart_script(id, plot, index) + # TODO: Implement this for nyplot and datatables too + if defined?(IRuby.html) && plot.is_a?(Daru::View::Plot) && + plot.chart.is_a?(LazyHighCharts::HighChart) + chart_script = plot.chart.to_html_iruby(id[index]) + elsif plot.is_a?(Daru::View::Plot) && plot.chart.is_a?(Nyaplot::Plot) + raise NotImplementedError, 'Not yet implemented' + else + chart_script = plot.div(id[index]) + end + chart_script + end end end end diff --git a/spec/adapters/googlecharts/display_spec.rb b/spec/adapters/googlecharts/display_spec.rb index aee82be..1279af4 100644 --- a/spec/adapters/googlecharts/display_spec.rb +++ b/spec/adapters/googlecharts/display_spec.rb @@ -29,9 +29,6 @@ new(data_table.table, area_chart_options)} let(:column_chart_chart) {Daru::View::Plot. new(data_table.table, column_chart_options)} - let(:combined) { - Daru::View::PlotList.new([data_table, area_chart_chart, column_chart_chart]) - } describe "#to_html" do it "generates valid JS of the Area Chart" do @@ -83,57 +80,6 @@ expect(js).to match( /data_table.addRow\(\[\{v: \"2013\"\}\]\);/i) end - it "generates valid js of the combined charts" do - js = combined.charts.to_html - expect(js).to match(/google.visualization.Table/) - expect(js).to match(/google.visualization.AreaChart/) - expect(js).to match(/google.visualization.ColumnChart/) - end - end - - describe "#extract_multiple_charts_id_script_path" do - it "returns correct path of the multiple_charts_div" do - id_script_path = combined.charts.extract_multiple_charts_id_script_path - expect(id_script_path[2]).to match( - /templates\/googlecharts\/multiple_charts_div.erb/ - ) - end - it "returns correct scripts of the multiple charts" do - id_script_path = combined.charts.extract_multiple_charts_id_script_path - expect(id_script_path[1][0]).to match(/google.visualization.Table/) - expect(id_script_path[1][1]).to match(/google.visualization.AreaChart/) - expect(id_script_path[1][2]).to match(/google.visualization.ColumnChart/) - end - end - - describe "#extract_chart_id_script_path" do - it "returns correct path of the chart_div" do - id_script_path = area_chart_chart.chart.extract_chart_id_script_path - expect(id_script_path[2]).to match( - /templates\/googlecharts\/chart_div.erb/ - ) - end - it "returns correct script of the chart" do - id_script_path = area_chart_chart.chart.extract_chart_id_script_path - expect(id_script_path[1]).to match( - /google.visualization.AreaChart/ - ) - end - it "returns correct id of the chart" do - id_script_path = area_chart_chart.chart.extract_chart_id_script_path('id') - expect(id_script_path[0]).to eq('id') - end - end - - describe "#set_chart_script" do - it "sets correct script of the data_table" do - js = data_table.table.set_chart_script(data_table, 'id') - expect(js).to match(/google.visualization.Table/) - end - it "sets correct script of the chart" do - js = area_chart_chart.chart.set_chart_script(area_chart_chart, 'id') - expect(js).to match(/google.visualization.AreaChart/) - end end describe "#show_script" do diff --git a/spec/adapters/googlecharts_spec.rb b/spec/adapters/googlecharts_spec.rb index 4014ecb..ff8102f 100644 --- a/spec/adapters/googlecharts_spec.rb +++ b/spec/adapters/googlecharts_spec.rb @@ -67,9 +67,6 @@ new(data_table.table, area_chart_options)} let(:column_chart_chart) {Daru::View::Plot. new(data_table.table, column_chart_options)} - let(:combined) { - Daru::View::PlotList.new([data_table, area_chart_chart, column_chart_chart]) - } describe "initialization Charts" do it "Default chart GoogleVisualr::Interactive::LineChart " do @@ -210,12 +207,6 @@ expect(js).to match(/google.visualization.ColumnChart/) expect(js).to match(/chart.draw\(data_table, \{width: 800\}/i) end - it "generates valid js of the combined charts" do - js = combined.adapter.generate_body(combined.charts) - expect(js).to match(/google.visualization.Table/) - expect(js).to match(/google.visualization.AreaChart/) - expect(js).to match(/google.visualization.ColumnChart/) - end end describe "#generate_html" do diff --git a/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb b/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb index b1206de..90c0ab5 100644 --- a/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb +++ b/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb @@ -46,43 +46,43 @@ "}\n", "if (!window['google']['loader']) {\n", "window['google']['loader'] = {};\n", - "google.loader.ServiceBase = 'http://www.google.com/uds';\n", - "google.loader.GoogleApisBase = 'http://ajax.googleapis.com/ajax';\n", + "google.loader.ServiceBase = 'https://www.google.com/uds';\n", + "google.loader.GoogleApisBase = 'https://ajax.googleapis.com/ajax';\n", "google.loader.ApiKey = 'notsupplied';\n", "google.loader.KeyVerified = true;\n", "google.loader.LoadFailure = false;\n", - "google.loader.Secure = false;\n", + "google.loader.Secure = true;\n", "google.loader.GoogleLocale = 'www.google.com';\n", "google.loader.ClientLocation = null;\n", "google.loader.AdditionalParams = '';\n", - "(function() {var g=this,l=function(a,b,c){a=a.split(\".\");c=c||g;a[0]in c||\"undefined\"==typeof c.execScript||c.execScript(\"var \"+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b},m=function(a,b,c){a[b]=c};var w=function(a,b){if(b)a=a.replace(n,\"&\").replace(p,\"<\").replace(q,\">\").replace(r,\""\").replace(t,\"'\").replace(u,\"�\");else{if(!v.test(a))return a;-1!=a.indexOf(\"&\")&&(a=a.replace(n,\"&\"));-1!=a.indexOf(\"<\")&&(a=a.replace(p,\"<\"));-1!=a.indexOf(\">\")&&(a=a.replace(q,\">\"));-1!=a.indexOf('\"')&&(a=a.replace(r,\""\"));-1!=a.indexOf(\"'\")&&(a=a.replace(t,\"'\"));-1!=a.indexOf(\"\\x00\")&&(a=a.replace(u,\"�\"))}return a},n=/&/g,p=//g,r=/\"/g,t=/'/g,u=/\\x00/g,v=/[\\x00&<>\"']/;var x=/^[\\w+/_-]+[=]{0,2}$/;function y(a){return a in z?z[a]:z[a]=-1!=navigator.userAgent.toLowerCase().indexOf(a)}var z={};function A(a,b){var c=function(){};c.prototype=b.prototype;a.da=b.prototype;a.prototype=new c}function C(a,b,c){var d=Array.prototype.slice.call(arguments,2)||[];return function(){return a.apply(b,d.concat(Array.prototype.slice.call(arguments)))}}function D(a){a=Error(a);a.toString=function(){return this.message};return a}\n", - "function E(a,b){a=a.split(/\\./);for(var c=window,d=0;d\\x3c/script>\"):(y(\"safari\")||y(\"konqueror\"))&&window.setTimeout(L,10)),I.push(a)):J(window,\"load\",a)};l(\"google.setOnLoadCallback\",google.ca);\n", - "function J(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent(\"on\"+b,c);else{var d=a[\"on\"+b];a[\"on\"+b]=null!=d?M([c,d]):c}}function M(a){return function(){for(var b=0;b\\x3c/script>\")):\"css\"==a&&(e='\"))};l(\"google.loader.writeLoadTag\",google.loader.f);google.loader.$=function(a){H=a};l(\"google.loader.rfm\",google.loader.$);google.loader.ba=function(a){for(var b in a)\"string\"==typeof b&&b&&\":\"==b.charAt(0)&&!G[b]&&(G[b]=new O(b.substring(1),a[b]))};\n", - "l(\"google.loader.rpl\",google.loader.ba);google.loader.aa=function(a){if((a=a.specs)&&a.length)for(var b=0;b\\x3c/script>\"):(g(\"safari\")||g(\"konqueror\"))&&window.setTimeout(B,10)),x.push(a)):y(window,\"load\",a)};t(\"google.setOnLoadCallback\",google.ba);\n", + "function y(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent(\"on\"+b,c);else{var d=a[\"on\"+b];a[\"on\"+b]=null!=d?C([c,d]):c}}function C(a){return function(){for(var b=0;b\\x3c/script>'):\"css\"==a&&document.write('')};\n", + "t(\"google.loader.writeLoadTag\",google.loader.f);google.loader.Z=function(a){w=a};t(\"google.loader.rfm\",google.loader.Z);google.loader.aa=function(a){for(var b in a)\"string\"==typeof b&&b&&\":\"==b.charAt(0)&&!v[b]&&(v[b]=new E(b.substring(1),a[b]))};t(\"google.loader.rpl\",google.loader.aa);google.loader.$=function(a){if((a=a.specs)&&a.length)for(var b=0;b\\\")&&(a=a.replace(q,\\\">\\\"));-1!=a.indexOf('\\\"')&&(a=a.replace(r,\\\""\\\"));-1!=a.indexOf(\\\"'\\\")&&(a=a.replace(t,\\\"'\\\"));-1!=a.indexOf(\\\"\\\\x00\\\")&&(a=a.replace(u,\\\"�\\\"))}return a},n=/&/g,p=//g,r=/\\\"/g,t=/'/g,u=/\\\\x00/g,v=/[\\\\x00&<>\\\"']/;var x=/^[\\\\w+/_-]+[=]{0,2}$/;function y(a){return a in z?z[a]:z[a]=-1!=navigator.userAgent.toLowerCase().indexOf(a)}var z={};function A(a,b){var c=function(){};c.prototype=b.prototype;a.da=b.prototype;a.prototype=new c}function C(a,b,c){var d=Array.prototype.slice.call(arguments,2)||[];return function(){return a.apply(b,d.concat(Array.prototype.slice.call(arguments)))}}function D(a){a=Error(a);a.toString=function(){return this.message};return a}\\nfunction E(a,b){a=a.split(/\\\\./);for(var c=window,d=0;d\\\\x3c/script>\\\"):(y(\\\"safari\\\")||y(\\\"konqueror\\\"))&&window.setTimeout(L,10)),I.push(a)):J(window,\\\"load\\\",a)};l(\\\"google.setOnLoadCallback\\\",google.ca);\\nfunction J(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent(\\\"on\\\"+b,c);else{var d=a[\\\"on\\\"+b];a[\\\"on\\\"+b]=null!=d?M([c,d]):c}}function M(a){return function(){for(var b=0;b\\\\x3c/script>\\\")):\\\"css\\\"==a&&(e='\\\"))};l(\\\"google.loader.writeLoadTag\\\",google.loader.f);google.loader.$=function(a){H=a};l(\\\"google.loader.rfm\\\",google.loader.$);google.loader.ba=function(a){for(var b in a)\\\"string\\\"==typeof b&&b&&\\\":\\\"==b.charAt(0)&&!G[b]&&(G[b]=new O(b.substring(1),a[b]))};\\nl(\\\"google.loader.rpl\\\",google.loader.ba);google.loader.aa=function(a){if((a=a.specs)&&a.length)for(var b=0;b\\\\x3c/script>')},K.Ki=function(b){var c=K.global.document,d=c.createElement(\\\"script\\\");d.type=C;d.src=b;d.defer=!1;d.async=!1;c.head.appendChild(d)},\\nK.Tl=function(b,c){if(K.qg()){var d=K.global.document;if(!K.De&&d.readyState==t){if(/\\\\bdeps.js$/.test(b))return!1;throw Error('Cannot write \\\"'+b+'\\\" after document load');}void 0===c?K.di?(K.$g=!0,c=\\\" onreadystatechange='goog.onScriptLoad_(this, \\\"+ ++K.Pg+\\\")' \\\",d.write(n+b+'\\\"'+c+\\\">\\\\x3c/script>\\\")):K.De?K.Ki(b):K.Sl(b):d.write('\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 4, @@ -600,19 +600,19 @@ { "data": { "text/html": [ - "
\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 6, @@ -641,34 +641,36 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", + "\n", "\n", + "\n", + "\n" + "\n", + "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 7, @@ -692,37 +694,39 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", + "\n", "\n", + "\n", + "\n" + "\n", + "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 8, @@ -747,37 +751,39 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", + "\n", "\n", + "\n", + "\n" + "\n", + "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 9, @@ -802,60 +808,66 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", + "\n", "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + "\n", + "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 10, @@ -881,34 +893,36 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", + "\n", "\n", + "\n", + "\n" + "\n", + "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 11, @@ -921,12 +935,1083 @@ " type: :bar,\n", " title:'How Much Pizza Sarah Ate Last Night',\n", " width:400,\n", - " height:300}\n", + " height:300\n", + "}\n", "pizza_sarah_bar = Daru::View::Plot.new(df_sarah, options)\n", "combined = Daru::View::PlotList.new([pizza_sarah, pizza_sarah_bar])\n", "combined.show_in_iruby" ] }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": {}, + "outputs": [ + { + "data": { + "application/javascript": [ + "\n", + " /* BEGIN highstock.js */\n", + "\n", + "/*\n", + " Highstock JS v6.1.0 (2018-04-13)\n", + "\n", + " (c) 2009-2016 Torstein Honsi\n", + "\n", + " License: www.highcharts.com/license\n", + "*/\n", + "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", + "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", + "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", + "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", + "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", + "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", + "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", + "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", + "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", + "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", + "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", + "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", + "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", + "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", + "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", + "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", + "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", + "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", + "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", + "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", + "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", + "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", + "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", + "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", + "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", + "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", + "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", + "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", + "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", + "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", + "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", + "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", + "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", + "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", + "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", + "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", + "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", + "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", + "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", + "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", + "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", + "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", + "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),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(\" \"),\n", + "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:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", + "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", + "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:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", + "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:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", + "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", + "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", + "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", + "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", + "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", + "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", + "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", + "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", + "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", + "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", + "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", + "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", + "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", + "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", + "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", + "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", + "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", + "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", + "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", + "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", + "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", + "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", + "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", + "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", + "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", + "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", + "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", + "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", + "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", + "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", + "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", + "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", + "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", + "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", + "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", + "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", + "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", + "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", + "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", + "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", + "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", + "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", + "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", + "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", + "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", + "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", + "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", + "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", + "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", + "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", + "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", + "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", + "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", + "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", + "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", + "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", + "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", + "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", + "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", + "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", + "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", + "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", + "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", + "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},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}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", + "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,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:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", + "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", + "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", + "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", + "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", + "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", + "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", + "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", + "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", + "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", + "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", + "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", + "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", + "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", + "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", + "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", + "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", + "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", + "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", + "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", + "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", + "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", + "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", + "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", + "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", + "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", + "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", + "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", + "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", + "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", + "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", + "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", + "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", + "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", + "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", + "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", + "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", + "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", + "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", + "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", + "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", + "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", + "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", + "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", + "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", + "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", + "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", + "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", + "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", + "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", + "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", + "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", + "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", + "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", + "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", + "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",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\",\n", + "\"%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\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", + "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"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]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", + "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", + "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", + "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", + "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", + "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", + "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", + "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", + "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", + "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", + "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", + "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", + "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", + "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", + "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", + "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", + "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", + "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", + "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", + "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", + "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", + "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}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", + "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", + "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", + "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", + "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", + "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", + "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", + "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", + "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", + "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", + "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", + "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", + "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", + "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", + "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", + "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", + "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", + "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", + "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", + "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", + "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", + "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", + "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", + "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", + "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", + "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", + "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", + "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", + "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", + "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", + "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", + "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", + "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", + "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", + "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", + "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", + "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", + "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", + "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", + "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", + "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", + "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", + "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", + "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", + "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", + "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", + "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", + "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", + "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", + "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", + "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", + "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", + "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", + "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", + "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", + "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", + "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", + "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", + "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", + "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "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},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", + "\n", + " /* END modules/exporting.js*/\n", + "\n", + " /* BEGIN highcharts-3d.js */\n", + "\n", + "/*\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", + "\n", + " 3D features for Highcharts JS\n", + "\n", + " @license: www.highcharts.com/license\n", + "*/\n", + "(function(A){\"object\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),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(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{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:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%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:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},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}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,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:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",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\\\",\\n\\\"%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\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"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]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold: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}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding: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},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", + "
\n", + " \n", + "
\n", + " \n", + "
\n", + " \n", + " \n", + "\n", + "\n", + "\n", + " \n", + "\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "options_hc = {\n", + " chart: {\n", + " type: 'pie'\n", + " },\n", + " title: {\n", + " text: 'How Much Pizza Sarah Ate Last Night'\n", + " },\n", + " adapter: 'highcharts'\n", + "}\n", + "pizza_sarah_hc = Daru::View::Plot.new(df_sarah, options_hc)\n", + "pizza_sarah_hc.init_iruby\n", + "combined = Daru::View::PlotList.new([pizza_sarah, pizza_sarah_hc])\n", + "combined.show_in_iruby" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": {}, + "outputs": [ + { + "data": { + "application/javascript": [ + "\n", + "\n", + "var event = document.createEvent(\"HTMLEvents\");\n", + "event.initEvent(\"load_highcharts\", false, false);\n", + "window.dispatchEvent(event);\n", + "console.log(\"Finish loading highchartsjs\");\n" + ], + "text/plain": [ + "\"\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "\n", + "\n", + " \n", + "\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "options_bar_hc = {\n", + " chart: {\n", + " type: 'bar'\n", + " },\n", + " title: {\n", + " text: 'How Much Pizza Sarah Ate Last Night'\n", + " },\n", + " adapter: 'highcharts'\n", + "}\n", + "pizza_sarah_bar_hc = Daru::View::Plot.new(df_sarah, options_bar_hc)\n", + "combined = Daru::View::PlotList.new([pizza_sarah_bar, pizza_sarah_bar_hc])\n", + "combined.show_in_iruby" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": {}, + "outputs": [ + { + "data": { + "application/javascript": [ + "\n", + "\n", + "var event = document.createEvent(\"HTMLEvents\");\n", + "event.initEvent(\"load_highcharts\", false, false);\n", + "window.dispatchEvent(event);\n", + "console.log(\"Finish loading highchartsjs\");\n" + ], + "text/plain": [ + "\"\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "application/javascript": [ + "\n", + "\n", + "var event = document.createEvent(\"HTMLEvents\");\n", + "event.initEvent(\"load_highcharts\", false, false);\n", + "window.dispatchEvent(event);\n", + "console.log(\"Finish loading highchartsjs\");\n" + ], + "text/plain": [ + "\"\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "\n", + "\n", + " \n", + "\n", + "\n", + "\n", + " \n", + "\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\\n \\n\\n\\n\"" + ] + }, + "execution_count": 14, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "combined_pizzas = Daru::View::PlotList.new([pizza_sarah, pizza_sarah_hc, pizza_sarah_bar, pizza_sarah_bar_hc])\n", + "combined_pizzas.show_in_iruby" + ] + }, { "cell_type": "code", "execution_count": null, From 6a2d31da454500e542d203d0853e92cd222e6649 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Tue, 3 Jul 2018 10:33:25 +0530 Subject: [PATCH 08/16] Added export_html_file method --- lib/daru/view/plot_list.rb | 25 ++++++++++++++++++- .../templates/static_html_multiple_charts.erb | 10 ++++++++ spec/plot_list_spec.rb | 14 ++++------- 3 files changed, 39 insertions(+), 10 deletions(-) create mode 100644 lib/daru/view/templates/static_html_multiple_charts.erb diff --git a/lib/daru/view/plot_list.rb b/lib/daru/view/plot_list.rb index 00ae906..b15bacb 100644 --- a/lib/daru/view/plot_list.rb +++ b/lib/daru/view/plot_list.rb @@ -1,4 +1,7 @@ require 'erb' +require 'daru/view/adapters/highcharts/display' +require 'daru/view/adapters/nyaplot/display' +require 'daru/view/adapters/googlecharts/display' # Otherwise Daru::IRuby module was used and IRuby.html method was not working. # rubocop:disable Style/MixinUsage @@ -48,7 +51,9 @@ def div # generate html file def export_html_file(path='./plot.html') - # TODO + path = File.expand_path(path, Dir.pwd) + str = generate_html + File.write(path, str) end private @@ -76,6 +81,24 @@ def extract_chart_script(id, plot, index) end chart_script end + + def generate_html + path = File.expand_path( + 'templates/static_html_multiple_charts.erb', __dir__ + ) + template = File.read(path) + charts_script = div + set_init_script = {} + initial_script = '' + @data.each do |plot| + adapter = plot.adapter + unless set_init_script[adapter] + set_init_script[adapter] = true + initial_script << plot.adapter.init_script + end + end + ERB.new(template).result(binding) + end end end end diff --git a/lib/daru/view/templates/static_html_multiple_charts.erb b/lib/daru/view/templates/static_html_multiple_charts.erb new file mode 100644 index 0000000..a69a06e --- /dev/null +++ b/lib/daru/view/templates/static_html_multiple_charts.erb @@ -0,0 +1,10 @@ + + + + Multiple Charts + <%= initial_script %> + + + <%= charts_script %> + + diff --git a/spec/plot_list_spec.rb b/spec/plot_list_spec.rb index b081e78..506a641 100644 --- a/spec/plot_list_spec.rb +++ b/spec/plot_list_spec.rb @@ -10,21 +10,17 @@ }, index: 'a'..'f' ) end - let(:plot_array) { [plot_df, plot_dv, table_array] } let(:dv) { Daru::Vector.new [1, 2, 3] } - let(:plot_df) { Daru::View::Plot.new(df, options) } + # let(:plot_df) { Daru::View::Plot.new(df, options) } let(:plot_dv) { Daru::View::Plot.new(dv, type: :bar) } let(:table_array) { Daru::View::Table.new( [['col1', 'col2', 'col3'],[1, 2, 3]], options) } + let(:plot_array) { [plot_dv, table_array] } let(:combined) { Daru::View::PlotList.new(plot_array) } context 'initialize with Googlecharts' do - it 'checks the set adapter' do - expect(combined.adapter).to eq(Daru::View::Adapter::GooglechartsAdapter) - end it 'sets correct data' do expect(combined).to be_a Daru::View::PlotList expect(combined.data).to eq plot_array - expect(combined.charts).to be_a GoogleVisualr::BaseChart end end describe '#div' do @@ -33,8 +29,7 @@ expect(js).to match(//) expect(js).to match(/
/i) expect(content).to match(/Multiple Charts/i) expect(content).to match(/google.visualization.DataTable\(\);/i) - expect(content).to match(/google.visualization.LineChart/) expect(content).to match(/google.visualization.BarChart/) expect(content).to match(/google.visualization.Table/) expect(content).to match(/chart.draw\(data_table, \{\}/i) From 20dfdf4a8de41e1afb78b4bea26081613dc99de8 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Wed, 4 Jul 2018 01:04:53 +0530 Subject: [PATCH 09/16] Added support for nyaplot and updated implementation --- lib/daru/view/adapters/datatables.rb | 2 +- lib/daru/view/adapters/googlecharts.rb | 10 +- lib/daru/view/adapters/highcharts.rb | 10 +- lib/daru/view/adapters/nyaplot.rb | 2 +- lib/daru/view/plot.rb | 10 +- lib/daru/view/plot_list.rb | 29 +- lib/daru/view/table.rb | 10 +- .../view/templates/multiple_charts_div.erb | 4 +- ....ipynb => Multiple Charts in a cell.ipynb} | 298 ++++++++++++------ spec/plot_list_spec.rb | 60 +++- spec/plot_spec.rb | 2 +- 11 files changed, 272 insertions(+), 165 deletions(-) rename spec/dummy_iruby/{Google Charts | Multiple Charts in a cell.ipynb => Multiple Charts in a cell.ipynb} (97%) diff --git a/lib/daru/view/adapters/datatables.rb b/lib/daru/view/adapters/datatables.rb index 6c4345c..42bab15 100644 --- a/lib/daru/view/adapters/datatables.rb +++ b/lib/daru/view/adapters/datatables.rb @@ -35,7 +35,7 @@ def init_script Daru::DataTables.init_script end - def generate_body(table, _id=nil) + def generate_body(table) table_opts = { class: 'display', cellspacing: '0', diff --git a/lib/daru/view/adapters/googlecharts.rb b/lib/daru/view/adapters/googlecharts.rb index 368537f..b9f9305 100644 --- a/lib/daru/view/adapters/googlecharts.rb +++ b/lib/daru/view/adapters/googlecharts.rb @@ -172,8 +172,8 @@ def init_script GoogleVisualr.init_script end - def generate_body(plot, id=random_canvas_id) - plot.to_html(id) + def generate_body(plot) + plot.to_html end def export_html_file(plot, path='./plot.html') @@ -308,12 +308,6 @@ def return_js_type(data) # rubocop:disable Metrics/PerceivedComplexity, Metrics/ return 'date' end end - - def random_canvas_id - canvas_id_length = 11 - # Don't use SecureRandom.urlsafe_base64; it gives invalid characters. - ('a'..'z').to_a.shuffle.take(canvas_id_length).join - end end end end diff --git a/lib/daru/view/adapters/highcharts.rb b/lib/daru/view/adapters/highcharts.rb index 3830f60..ce017d0 100644 --- a/lib/daru/view/adapters/highcharts.rb +++ b/lib/daru/view/adapters/highcharts.rb @@ -60,8 +60,8 @@ def init_script LazyHighCharts.init_script end - def generate_body(plot, id=random_canvas_id) - plot.to_html(id) + def generate_body(plot) + plot.to_html end def export_html_file(plot, path='./plot.html') @@ -114,12 +114,6 @@ def guess_data(data_set) raise ArgumentError end end - - def random_canvas_id - canvas_id_length = 11 - # Don't use SecureRandom.urlsafe_base64; it gives invalid characters. - ('a'..'z').to_a.shuffle.take(canvas_id_length).join - end end end end diff --git a/lib/daru/view/adapters/nyaplot.rb b/lib/daru/view/adapters/nyaplot.rb index cb01419..38c1a21 100644 --- a/lib/daru/view/adapters/nyaplot.rb +++ b/lib/daru/view/adapters/nyaplot.rb @@ -24,7 +24,7 @@ def init_script Nyaplot.init_script end - def generate_body(plot, _id=nil) + def generate_body(plot) plot.to_iruby[1] end diff --git a/lib/daru/view/plot.rb b/lib/daru/view/plot.rb index e12ac4e..3a0ecdf 100644 --- a/lib/daru/view/plot.rb +++ b/lib/daru/view/plot.rb @@ -68,8 +68,8 @@ def init_script end # generat html code, to include in body tag - def div(element_id=random_canvas_id) - @adapter.generate_body(@chart, element_id) + def div + @adapter.generate_body(@chart) end # generat html file @@ -101,12 +101,6 @@ def plot_data(data, options) @adapter ||= @@adapter @adapter.init(data, options) end - - def random_canvas_id - canvas_id_length = 11 - # Don't use SecureRandom.urlsafe_base64; it gives invalid characters. - ('a'..'z').to_a.shuffle.take(canvas_id_length).join - end end end end diff --git a/lib/daru/view/plot_list.rb b/lib/daru/view/plot_list.rb index b15bacb..eae905a 100644 --- a/lib/daru/view/plot_list.rb +++ b/lib/daru/view/plot_list.rb @@ -44,8 +44,8 @@ def show_in_iruby def div path = File.expand_path('templates/multiple_charts_div.erb', __dir__) template = File.read(path) - id = [] - charts_script = extract_charts_script(id) + charts_div_tag = [] + charts_script = extract_charts_script(charts_div_tag) ERB.new(template).result(binding) end @@ -58,28 +58,23 @@ def export_html_file(path='./plot.html') private - def extract_charts_script(id=[]) + def extract_charts_script(charts_div_tag=[]) charts_script = '' - @data.each_with_index do |plot, index| - id[index] = ('a'..'z').to_a.shuffle.take(11).join - chart_script = extract_chart_script(id, plot, index) + @data.each do |plot| + chart_script = extract_chart_script(plot) + charts_div_tag << chart_script.partition(%r{}ixm)[1] chart_script.sub!(%r{}ixm, '') charts_script << chart_script end charts_script end - def extract_chart_script(id, plot, index) - # TODO: Implement this for nyplot and datatables too - if defined?(IRuby.html) && plot.is_a?(Daru::View::Plot) && - plot.chart.is_a?(LazyHighCharts::HighChart) - chart_script = plot.chart.to_html_iruby(id[index]) - elsif plot.is_a?(Daru::View::Plot) && plot.chart.is_a?(Nyaplot::Plot) - raise NotImplementedError, 'Not yet implemented' - else - chart_script = plot.div(id[index]) - end - chart_script + def extract_chart_script(plot) + # TODO: Implement this for datatables too + return plot.div unless defined?(IRuby.html) && + plot.is_a?(Daru::View::Plot) && + plot.chart.is_a?(LazyHighCharts::HighChart) + plot.chart.to_html_iruby end def generate_html diff --git a/lib/daru/view/table.rb b/lib/daru/view/table.rb index 5135623..5b0f47c 100644 --- a/lib/daru/view/table.rb +++ b/lib/daru/view/table.rb @@ -70,8 +70,8 @@ def init_script end # generate html code, to include in body tag - def div(element_id=random_canvas_id) - @adapter.generate_body(@table, element_id) + def div + @adapter.generate_body(@table) end # generat html file @@ -94,12 +94,6 @@ def table_data(data, options) @adapter ||= @@adapter @adapter.init_table(data, options) end - - def random_canvas_id - canvas_id_length = 11 - # Don't use SecureRandom.urlsafe_base64; it gives invalid characters. - ('a'..'z').to_a.shuffle.take(canvas_id_length).join - end end end end diff --git a/lib/daru/view/templates/multiple_charts_div.erb b/lib/daru/view/templates/multiple_charts_div.erb index de30fc8..b4c9164 100644 --- a/lib/daru/view/templates/multiple_charts_div.erb +++ b/lib/daru/view/templates/multiple_charts_div.erb @@ -1,7 +1,7 @@ - <% id.each do |div_id| %> - + <% charts_div_tag.each do |chart_div_tag| %> + <% end %>
<%= chart_div_tag %>
diff --git a/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb b/spec/dummy_iruby/Multiple Charts in a cell.ipynb similarity index 97% rename from spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb rename to spec/dummy_iruby/Multiple Charts in a cell.ipynb index 90c0ab5..6aef97e 100644 --- a/spec/dummy_iruby/Google Charts | Multiple Charts in a cell.ipynb +++ b/spec/dummy_iruby/Multiple Charts in a cell.ipynb @@ -459,19 +459,19 @@ { "data": { "text/html": [ - "
\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 4, @@ -600,19 +600,19 @@ { "data": { "text/html": [ - "
\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 6, @@ -641,36 +641,36 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 7, @@ -694,9 +694,9 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -705,28 +705,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_bilymajpfoq});\n", - " function draw_bilymajpfoq() {\n", + " draw_3140f0d4_bd26_4102_8eb6_04a3f4ca8f52});\n", + " function draw_3140f0d4_bd26_4102_8eb6_04a3f4ca8f52() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('bilymajpfoq'));\n", + " document.getElementById('3140f0d4-bd26-4102-8eb6-04a3f4ca8f52'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 8, @@ -751,9 +751,9 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -762,28 +762,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_dzscuxyjrqp});\n", - " function draw_dzscuxyjrqp() {\n", + " draw_c6a225af_27c4_4787_a2f2_cb61f4ea94f5});\n", + " function draw_c6a225af_27c4_4787_a2f2_cb61f4ea94f5() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('dzscuxyjrqp'));\n", + " document.getElementById('c6a225af-27c4-4787-a2f2-cb61f4ea94f5'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 9, @@ -808,13 +808,13 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -823,21 +823,21 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_qvwecibrhnj});\n", - " function draw_qvwecibrhnj() {\n", + " draw_8ae6cbe6_f4fc_40fd_b4ca_3938a8333d42});\n", + " function draw_8ae6cbe6_f4fc_40fd_b4ca_3938a8333d42() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('qvwecibrhnj'));\n", + " document.getElementById('8ae6cbe6-f4fc-40fd-b4ca-3938a8333d42'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", @@ -846,28 +846,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_dkjzqwbfxst});\n", - " function draw_dkjzqwbfxst() {\n", + " draw_3342a75c_282a_41b8_a153_937219471ea4});\n", + " function draw_3342a75c_282a_41b8_a153_937219471ea4() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('dkjzqwbfxst'));\n", + " document.getElementById('3342a75c-282a-41b8-a153-937219471ea4'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 10, @@ -893,36 +893,36 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 11, @@ -1768,28 +1768,28 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1797,7 +1797,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 12, @@ -1849,28 +1849,28 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1878,7 +1878,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 13, @@ -1946,32 +1946,32 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1979,19 +1979,19 @@ "\n", "\n", " \n", @@ -1999,7 +1999,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 14, @@ -2012,6 +2012,116 @@ "combined_pizzas.show_in_iruby" ] }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": {}, + "outputs": [ + { + "data": { + "application/javascript": [ + "if(window['d3'] === undefined ||\n", + " window['Nyaplot'] === undefined){\n", + " var path = {\"d3\":\"https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min\",\"downloadable\":\"http://cdn.rawgit.com/domitry/d3-downloadable/master/d3-downloadable\"};\n", + "\n", + "\n", + "\n", + " var shim = {\"d3\":{\"exports\":\"d3\"},\"downloadable\":{\"exports\":\"downloadable\"}};\n", + "\n", + " require.config({paths: path, shim:shim});\n", + "\n", + "\n", + "require(['d3'], function(d3){window['d3']=d3;console.log('finished loading d3');require(['downloadable'], function(downloadable){window['downloadable']=downloadable;console.log('finished loading downloadable');\n", + "\n", + "\tvar script = d3.select(\"head\")\n", + "\t .append(\"script\")\n", + "\t .attr(\"src\", \"http://cdn.rawgit.com/domitry/Nyaplotjs/master/release/nyaplot.js\")\n", + "\t .attr(\"async\", true);\n", + "\n", + "\tscript[0][0].onload = script[0][0].onreadystatechange = function(){\n", + "\n", + "\n", + "\t var event = document.createEvent(\"HTMLEvents\");\n", + "\t event.initEvent(\"load_nyaplot\",false,false);\n", + "\t window.dispatchEvent(event);\n", + "\t console.log('Finished loading Nyaplotjs');\n", + "\n", + "\t};\n", + "\n", + "\n", + "});});\n", + "}\n" + ], + "text/plain": [ + "\"if(window['d3'] === undefined ||\\n window['Nyaplot'] === undefined){\\n var path = {\\\"d3\\\":\\\"https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min\\\",\\\"downloadable\\\":\\\"http://cdn.rawgit.com/domitry/d3-downloadable/master/d3-downloadable\\\"};\\n\\n\\n\\n var shim = {\\\"d3\\\":{\\\"exports\\\":\\\"d3\\\"},\\\"downloadable\\\":{\\\"exports\\\":\\\"downloadable\\\"}};\\n\\n require.config({paths: path, shim:shim});\\n\\n\\nrequire(['d3'], function(d3){window['d3']=d3;console.log('finished loading d3');require(['downloadable'], function(downloadable){window['downloadable']=downloadable;console.log('finished loading downloadable');\\n\\n\\tvar script = d3.select(\\\"head\\\")\\n\\t .append(\\\"script\\\")\\n\\t .attr(\\\"src\\\", \\\"http://cdn.rawgit.com/domitry/Nyaplotjs/master/release/nyaplot.js\\\")\\n\\t .attr(\\\"async\\\", true);\\n\\n\\tscript[0][0].onload = script[0][0].onreadystatechange = function(){\\n\\n\\n\\t var event = document.createEvent(\\\"HTMLEvents\\\");\\n\\t event.initEvent(\\\"load_nyaplot\\\",false,false);\\n\\t window.dispatchEvent(event);\\n\\t console.log('Finished loading Nyaplotjs');\\n\\n\\t};\\n\\n\\n});});\\n}\\n\"" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "dv = Daru::Vector.new [:a, :a, :a, :b, :b, :c], type: :category\n", + "bar_graph1 = Daru::View::Plot.new(dv, type: :bar, adapter: :nyaplot)\n", + "bar_graph1.init_iruby\n", + "combined = Daru::View::PlotList.new([pizza_sarah, bar_graph1])\n", + "combined.show_in_iruby" + ] + }, { "cell_type": "code", "execution_count": null, diff --git a/spec/plot_list_spec.rb b/spec/plot_list_spec.rb index 506a641..d4de3c5 100644 --- a/spec/plot_list_spec.rb +++ b/spec/plot_list_spec.rb @@ -1,6 +1,4 @@ -describe Daru::View::PlotList, 'Charts plotting with Googlecharts library' do - before { Daru::View.plotting_library = :googlecharts } - let(:options) {{width: 800, height: 720}} +describe Daru::View::PlotList do let(:df) do Daru::DataFrame.new( { @@ -10,28 +8,50 @@ }, index: 'a'..'f' ) end - let(:dv) { Daru::Vector.new [1, 2, 3] } - # let(:plot_df) { Daru::View::Plot.new(df, options) } - let(:plot_dv) { Daru::View::Plot.new(dv, type: :bar) } - let(:table_array) { Daru::View::Table.new( - [['col1', 'col2', 'col3'],[1, 2, 3]], options) } - let(:plot_array) { [plot_dv, table_array] } - let(:combined) { Daru::View::PlotList.new(plot_array) } - context 'initialize with Googlecharts' do + let(:dv) { Daru::Vector.new [:a, :a, :a, :b, :b, :c], type: :category } + let(:array1) { [ + ['Galaxy', 'Distance', 'Brightness'], + ['Canis Major Dwarf', 8000, 230.3], + ['Sagittarius Dwarf', 24000, 4000.5], + ['Ursa Major II Dwarf', 30000, 1412.3], + ['Lg. Magellanic Cloud', 50000, 120.9], + ['Bootes I', 60000, 1223.1] + ] } + let(:array2) { [[1, 15], [2, 30], [4, 40]] } + let(:options_gc) {{width: 800, height: 720, adapter: :googlecharts}} + let(:plot_gc) { Daru::View::Plot.new(array1, type: :bar, adapter: :googlecharts) } + let(:table_gc) { Daru::View::Table.new(array1, options_gc) } + let(:plot_hc) { Daru::View::Plot.new( + array2, chart: { type: 'line' }, adapter: :highcharts + ) } + let(:plot_nyaplot) { Daru::View::Plot.new(dv, type: :bar, adapter: :nyaplot) } + let(:plots_array) { [plot_gc, table_gc, plot_hc, plot_nyaplot] } + let(:combined) { Daru::View::PlotList.new(plots_array) } + context 'initialize PlotList' do it 'sets correct data' do expect(combined).to be_a Daru::View::PlotList - expect(combined.data).to eq plot_array + expect(combined.data).to eq plots_array end end describe '#div' do subject (:js) { combined.div } - it 'genrates a table in js' do + it 'generates a table in js' do expect(js).to match(//) expect(js).to match(/\n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
/i) expect(content).to match(/Multiple Charts/i) expect(content).to match(/google.visualization.DataTable\(\);/i) expect(content).to match(/google.visualization.BarChart/) expect(content).to match(/google.visualization.Table/) expect(content).to match(/chart.draw\(data_table, \{\}/i) + expect(content).to match(/\"chart\": { \"type\": \"line\"/) + expect(content).to match(/Highcharts.Chart/) + expect(content).to match(/\"type\":\"bar\"/) + expect(content).to match(/window.addEventListener\('load_nyaplot', render/) end end end \ No newline at end of file diff --git a/spec/plot_spec.rb b/spec/plot_spec.rb index 2c363d3..ddbed39 100644 --- a/spec/plot_spec.rb +++ b/spec/plot_spec.rb @@ -13,7 +13,7 @@ let(:plot_df) { Daru::View::Plot.new(df, type: :line, x: :a, y: :c) } let(:plot_dv) { Daru::View::Plot.new(dv, type: :line) } context 'initialize' do - before { Daru::View.plotting_library = :nyaplot } + # before { Daru::View.plotting_library = :nyaplot } context 'Default plotting_library is nyaplot' do it { expect(Daru::View.plotting_library).to eq(:nyaplot)} end From 2671cd7b5cd96e08bc288b573dc18f642b223203 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Wed, 4 Jul 2018 01:14:56 +0530 Subject: [PATCH 10/16] Updated docs --- lib/daru/view/plot_list.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/daru/view/plot_list.rb b/lib/daru/view/plot_list.rb index eae905a..7c76554 100644 --- a/lib/daru/view/plot_list.rb +++ b/lib/daru/view/plot_list.rb @@ -13,16 +13,16 @@ module View class PlotList attr_reader :data + # @param data [Daru::View::Plot, Daru::View::Table] data to visualize + # @return [void] initialize PlotList with data # @example # - # Daru::View.plotting_library = :googlecharts - # # df = Daru::DataFrame.new({a:['A', 'B', 'C', 'D', 'E'], b:[10,20,30,40,50]}) # plot1 = Daru::View::Plot.new( - # df, type: :bar, x: :a, y: :b + # df, type: :bar, x: :a, y: :b, adapter: :googlecharts # ) # plot2 = Daru::View::Plot.new( - # df, type: :column, x: :a, y: :b + # df, chart: { type: 'line' }, adapter: :highcharts # ) # plots = Daru::View::PlotList.new([plot1, plot2]) # @@ -35,12 +35,12 @@ def initialize(data=[]) @data = data end - # display in IRuby notebook + # @return [void] display in IRuby notebook def show_in_iruby IRuby.html(div) end - # generate html code, to include in body tag + # @return [String] generates html code to include in body tag def div path = File.expand_path('templates/multiple_charts_div.erb', __dir__) template = File.read(path) @@ -49,7 +49,7 @@ def div ERB.new(template).result(binding) end - # generate html file + # @return [void] writes a html file to disk def export_html_file(path='./plot.html') path = File.expand_path(path, Dir.pwd) str = generate_html From 7de361b81c240ac1771f38973cf535975c028d0b Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Wed, 4 Jul 2018 01:39:22 +0530 Subject: [PATCH 11/16] Updated examples --- .../Multiple Charts in a cell.ipynb | 283 +++++++++++------- 1 file changed, 181 insertions(+), 102 deletions(-) diff --git a/spec/dummy_iruby/Multiple Charts in a cell.ipynb b/spec/dummy_iruby/Multiple Charts in a cell.ipynb index 6aef97e..5d3eb3d 100644 --- a/spec/dummy_iruby/Multiple Charts in a cell.ipynb +++ b/spec/dummy_iruby/Multiple Charts in a cell.ipynb @@ -459,19 +459,19 @@ { "data": { "text/html": [ - "
\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 4, @@ -600,19 +600,19 @@ { "data": { "text/html": [ - "
\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 6, @@ -641,36 +641,36 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 7, @@ -694,9 +694,9 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -705,28 +705,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_3140f0d4_bd26_4102_8eb6_04a3f4ca8f52});\n", - " function draw_3140f0d4_bd26_4102_8eb6_04a3f4ca8f52() {\n", + " draw_a3f0fbb8_3a06_4729_97ae_81f4f65c74d0});\n", + " function draw_a3f0fbb8_3a06_4729_97ae_81f4f65c74d0() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('3140f0d4-bd26-4102-8eb6-04a3f4ca8f52'));\n", + " document.getElementById('a3f0fbb8-3a06-4729-97ae-81f4f65c74d0'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 8, @@ -751,9 +751,9 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -762,28 +762,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_c6a225af_27c4_4787_a2f2_cb61f4ea94f5});\n", - " function draw_c6a225af_27c4_4787_a2f2_cb61f4ea94f5() {\n", + " draw_89f67514_0795_490d_b689_797c8db17733});\n", + " function draw_89f67514_0795_490d_b689_797c8db17733() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('c6a225af-27c4-4787-a2f2-cb61f4ea94f5'));\n", + " document.getElementById('89f67514-0795-490d-b689-797c8db17733'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 9, @@ -808,13 +808,13 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -823,21 +823,21 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_8ae6cbe6_f4fc_40fd_b4ca_3938a8333d42});\n", - " function draw_8ae6cbe6_f4fc_40fd_b4ca_3938a8333d42() {\n", + " draw_7faf1745_fa59_4123_8a17_c64ef64bc9f3});\n", + " function draw_7faf1745_fa59_4123_8a17_c64ef64bc9f3() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('8ae6cbe6-f4fc-40fd-b4ca-3938a8333d42'));\n", + " document.getElementById('7faf1745-fa59-4123-8a17-c64ef64bc9f3'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", @@ -846,28 +846,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_3342a75c_282a_41b8_a153_937219471ea4});\n", - " function draw_3342a75c_282a_41b8_a153_937219471ea4() {\n", + " draw_dba95a0b_171b_4971_affc_eb0eecc6df21});\n", + " function draw_dba95a0b_171b_4971_affc_eb0eecc6df21() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('3342a75c-282a-41b8-a153-937219471ea4'));\n", + " document.getElementById('dba95a0b-171b-4971-affc-eb0eecc6df21'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 10, @@ -893,36 +893,36 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 11, @@ -1768,28 +1768,28 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1797,7 +1797,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 12, @@ -1849,28 +1849,28 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1878,7 +1878,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 13, @@ -1946,32 +1946,32 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1979,19 +1979,19 @@ "\n", "\n", " \n", @@ -1999,7 +1999,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 14, @@ -2065,19 +2065,19 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", @@ -2085,8 +2085,8 @@ "\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 15, @@ -2122,6 +2122,85 @@ "combined.show_in_iruby" ] }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + ] + }, + "execution_count": 16, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "dv = Daru::Vector.new ['III']*10 + ['II']*5 + ['I']*5, type: :category, categories: ['I', 'II', 'III']\n", + "bar_graph2 = Daru::View::Plot.new(dv, type: :bar, adapter: :nyaplot)\n", + "bar_combined = Daru::View::PlotList.new([bar_graph1, bar_graph2])\n", + "bar_combined.show_in_iruby" + ] + }, { "cell_type": "code", "execution_count": null, From 027b79d7da6db97adec8c1fc07d9034987eff7f4 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Sat, 7 Jul 2018 00:06:35 +0530 Subject: [PATCH 12/16] Removed tests for to_html_iruby in highcharts --- spec/adapters/highcharts/display_spec.rb | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/spec/adapters/highcharts/display_spec.rb b/spec/adapters/highcharts/display_spec.rb index b8446ab..812be21 100644 --- a/spec/adapters/highcharts/display_spec.rb +++ b/spec/adapters/highcharts/display_spec.rb @@ -284,26 +284,6 @@ end end - describe "#to_html_iruby" do - it "should plot HighMap when chart_class is set to map" do - @hc.options[:chart_class] = "Map"; - expect(@hc.chart.to_html_iruby( - @placeholder) - ).to match(/window\.chart_placeholder\s+=\s+new\s+Highcharts.Map/) - end - it "should plot HighStock when chart_class is set to stock" do - @hc.options[:chart_class] = "SToCk"; - expect(@hc.chart.to_html_iruby( - @placeholder) - ).to match(/window\.chart_placeholder\s+=\s+new\s+Highcharts.StockChart/) - end - it "should plot HighChart otherwise" do - expect(@hc.chart.to_html_iruby( - @placeholder) - ).to match(/window\.chart_placeholder\s+=\s+new\s+Highcharts.Chart/) - end - end - describe "#extract_chart_class" do it "should return Map class when chart_class is set to map" do @hc.options[:chart_class] = "map"; From 3e18eef4dce76dd371cf32c6aeb0e73c61f0a31c Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Sat, 7 Jul 2018 08:30:33 +0530 Subject: [PATCH 13/16] Add Style/Mixin to .rubocop.yml --- .rubocop.yml | 6 ++++++ lib/daru/view/plot_list.rb | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index e2b9849..439f66a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -65,6 +65,12 @@ Style/SingleLineBlockParams: Style/PerlBackrefs: Enabled: false +# Tried to disable in the file itself but this style rubocop was not there in +# ruby 2.0, so it threw Lint/UnneededDisable rubocop offence. +Style/MixinUsage: + Exclude: + - 'lib/daru/view/plot_list.rb' + Layout/SpaceAfterComma: Enabled: false diff --git a/lib/daru/view/plot_list.rb b/lib/daru/view/plot_list.rb index 7c76554..115da44 100644 --- a/lib/daru/view/plot_list.rb +++ b/lib/daru/view/plot_list.rb @@ -4,9 +4,8 @@ require 'daru/view/adapters/googlecharts/display' # Otherwise Daru::IRuby module was used and IRuby.html method was not working. -# rubocop:disable Style/MixinUsage + include IRuby::Utils if defined?(IRuby) -# rubocop:enable Style/MixinUsage module Daru module View From 0688924cbb0110894048c51ce60cbede20501358 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Wed, 11 Jul 2018 05:06:04 +0530 Subject: [PATCH 14/16] Updated examples --- lib/daru/view/plot_list.rb | 12 +- .../Multiple Charts in a cell.ipynb | 1285 ++++++++++------- 2 files changed, 776 insertions(+), 521 deletions(-) diff --git a/lib/daru/view/plot_list.rb b/lib/daru/view/plot_list.rb index 115da44..5b11a2b 100644 --- a/lib/daru/view/plot_list.rb +++ b/lib/daru/view/plot_list.rb @@ -4,7 +4,7 @@ require 'daru/view/adapters/googlecharts/display' # Otherwise Daru::IRuby module was used and IRuby.html method was not working. - +# Have disabled rubocop Style/Mixin for this in .rubocop.yml file include IRuby::Utils if defined?(IRuby) module Daru @@ -26,11 +26,11 @@ class PlotList # plots = Daru::View::PlotList.new([plot1, plot2]) # def initialize(data=[]) - raise ArgumentError unless data.is_a?(Array) && - data.all? { |plot| - plot.is_a?(Daru::View::Plot) || - plot.is_a?(Daru::View::Table) - } + raise ArgumentError, 'Invalid Argument Passed!' unless + data.is_a?(Array) && data.all? { |plot| + plot.is_a?(Daru::View::Plot) || + plot.is_a?(Daru::View::Table) + } @data = data end diff --git a/spec/dummy_iruby/Multiple Charts in a cell.ipynb b/spec/dummy_iruby/Multiple Charts in a cell.ipynb index 5d3eb3d..bfed725 100644 --- a/spec/dummy_iruby/Multiple Charts in a cell.ipynb +++ b/spec/dummy_iruby/Multiple Charts in a cell.ipynb @@ -91,231 +91,231 @@ " /* BEGIN loader.js */\n", "\n", "(function(){var a=\"\\n//# sourceURL=\",k=\"' of type \",n='\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 4, @@ -600,19 +600,19 @@ { "data": { "text/html": [ - "
\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 6, @@ -641,36 +641,36 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 7, @@ -694,9 +694,9 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -705,28 +705,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_a3f0fbb8_3a06_4729_97ae_81f4f65c74d0});\n", - " function draw_a3f0fbb8_3a06_4729_97ae_81f4f65c74d0() {\n", + " draw_bfc56f1c_39e9_4ed7_9396_1015ee2a2acd});\n", + " function draw_bfc56f1c_39e9_4ed7_9396_1015ee2a2acd() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('a3f0fbb8-3a06-4729-97ae-81f4f65c74d0'));\n", + " document.getElementById('bfc56f1c-39e9-4ed7-9396-1015ee2a2acd'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 8, @@ -751,9 +751,9 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -762,28 +762,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_89f67514_0795_490d_b689_797c8db17733});\n", - " function draw_89f67514_0795_490d_b689_797c8db17733() {\n", + " draw_435525ec_c955_410c_bcf7_d8a4cf6a1cd2});\n", + " function draw_435525ec_c955_410c_bcf7_d8a4cf6a1cd2() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('89f67514-0795-490d-b689-797c8db17733'));\n", + " document.getElementById('435525ec-c955-410c-bcf7-d8a4cf6a1cd2'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 9, @@ -808,13 +808,13 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -823,21 +823,21 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_7faf1745_fa59_4123_8a17_c64ef64bc9f3});\n", - " function draw_7faf1745_fa59_4123_8a17_c64ef64bc9f3() {\n", + " draw_daae0c67_29ae_482f_b9dc_7cb04c046c3c});\n", + " function draw_daae0c67_29ae_482f_b9dc_7cb04c046c3c() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('7faf1745-fa59-4123-8a17-c64ef64bc9f3'));\n", + " document.getElementById('daae0c67-29ae-482f-b9dc-7cb04c046c3c'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", @@ -846,28 +846,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_dba95a0b_171b_4971_affc_eb0eecc6df21});\n", - " function draw_dba95a0b_171b_4971_affc_eb0eecc6df21() {\n", + " draw_3800a6c7_4d05_40a5_b5e1_d1473ecd4057});\n", + " function draw_3800a6c7_4d05_40a5_b5e1_d1473ecd4057() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('dba95a0b-171b-4971-affc-eb0eecc6df21'));\n", + " document.getElementById('3800a6c7-4d05-40a5-b5e1-d1473ecd4057'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 10, @@ -893,36 +893,36 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 11, @@ -1501,234 +1501,230 @@ " /* BEGIN map.js */\n", "\n", "/*\n", - " Highmaps JS v6.1.1 (2018-06-27)\n", + " Highmaps JS v6.1.0 (2018-04-13)\n", " Highmaps as a plugin for Highcharts or Highstock.\n", "\n", " (c) 2011-2017 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(w){\"object\"===typeof module&&module.exports?module.exports=w:w(Highcharts)})(function(w){(function(a){var m=a.addEvent,g=a.Axis,l=a.each,f=a.pick;m(g,\"getSeriesExtremes\",function(){var a=[];this.isXAxis&&(l(this.series,function(q,f){q.useMapGeometry&&(a[f]=q.xData,q.xData=[])}),this.seriesXData=a)});m(g,\"afterGetSeriesExtremes\",function(){var a=this.seriesXData,n,g,r;this.isXAxis&&(n=f(this.dataMin,Number.MAX_VALUE),g=f(this.dataMax,-Number.MAX_VALUE),l(this.series,function(e,b){e.useMapGeometry&&\n", - "(n=Math.min(n,f(e.minX,n)),g=Math.max(g,f(e.maxX,g)),e.xData=a[b],r=!0)}),r&&(this.dataMin=n,this.dataMax=g),delete this.seriesXData)});m(g,\"afterSetAxisTranslation\",function(){var a=this.chart,n;n=a.plotWidth/a.plotHeight;var a=a.xAxis[0],f;\"yAxis\"===this.coll&&void 0!==a.transA&&l(this.series,function(a){a.preserveAspectRatio&&(f=!0)});if(f&&(this.transA=a.transA=Math.min(this.transA,a.transA),n/=(a.max-a.min)/(this.max-this.min),n=1>n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", - "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "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},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", - "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", - "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", - "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", - "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", - "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", - "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", - "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", - "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", - "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", - "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", - "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", - "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", - "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", - "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", - "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", - "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", - "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", - "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", - "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", - "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", - "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", - "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", - "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", - "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", - "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", - "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;bg?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", + "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "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},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", + "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", + "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", + "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", + "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", + "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", + "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", + "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", + "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", + "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", + "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", + "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", + "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", + "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", + "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", + "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", + "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", + "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", + "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", + "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", + "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", + "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", + "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", + "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", + "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", + "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", + "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=q(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);E(b,function(a,b){q(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();B(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", - "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", - "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", - "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", - "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", - "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", - "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", - "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", - "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", - "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", - "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", + "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", + "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", + "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", + "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", + "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", + "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", + "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", + "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", + "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.1 (2018-06-27)\n", + " Highcharts JS v6.1.0 (2018-04-13)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(A){\"object\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", - "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", - "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", - "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", - "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", - "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", - "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", - "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", - "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", - "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", - "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", - "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", - "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", - "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", - "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", - "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", - "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", - "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;ed&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", + "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", + "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", + "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", + "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", + "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", + "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", + "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", + "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", + "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", + "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", + "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", + "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", + "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", + "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", + "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", + "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", + "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", + "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;dC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", - "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", - "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", - "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", - "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", - "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", - "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", - "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", + "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", + "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", + "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", + "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", + "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", + "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", + "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),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(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{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:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%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:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},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}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,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:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",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\\\",\\n\\\"%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\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"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]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold: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}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding: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},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),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(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{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:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%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:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},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}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,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:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",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\\\",\\n\\\"%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\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"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]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold: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}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding: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},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", "
\n", " \n", - "
\n", "\n", "\n", " \n", @@ -1797,7 +1793,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 12, @@ -1849,28 +1845,28 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1878,7 +1874,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 13, @@ -1946,32 +1942,32 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1979,19 +1975,19 @@ "\n", "\n", " \n", @@ -1999,7 +1995,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 14, @@ -2065,19 +2061,19 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", @@ -2085,8 +2081,8 @@ "\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 15, @@ -2133,9 +2129,9 @@ "\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -2143,8 +2139,8 @@ "\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 16, @@ -2201,6 +2197,265 @@ "bar_combined.show_in_iruby" ] }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + " Daru::DataFrame(5x2) \n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "\n", + " \n", + "\n", + "
data1data2
0Website visits15654
1Downloads4064
2Requested price list1987
3Invoice sent976
4Finalized846
" + ], + "text/plain": [ + "#\n", + " data1 data2\n", + " 0 Website vi 15654\n", + " 1 Downloads 4064\n", + " 2 Requested 1987\n", + " 3 Invoice se 976\n", + " 4 Finalized 846" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df = Daru::DataFrame.new(\n", + " {\n", + " data1: ['Website visits', 'Downloads', 'Requested price list', 'Invoice sent', 'Finalized'],\n", + " data2: [15654, 4064, 1987, 976, 846]\n", + " }\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [ + { + "data": { + "application/javascript": [ + "\n", + " /* BEGIN modules/funnel.js */\n", + "\n", + "/*\n", + " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts funnel module\n", + "\n", + " (c) 2010-2017 Torstein Honsi\n", + "\n", + " License: www.highcharts.com/license\n", + "*/\n", + "(function(e){\"object\"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e(\"funnel\",\"pie\",{animation:!1,center:[\"50%\",\"50%\"],width:\"90%\",neckWidth:\"30%\",height:\"100%\",neckHeight:\"25%\",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:\"#cccccc\",borderColor:\"#000000\"}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=\n", + "0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D=\"left\"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&\n", + "!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,p=p?2*r-p:null);z=[\"M\",B,n,\"L\",G,n,y,k];p&&z.push(y,p,u,p);z.push(u,k,\"Z\");a.shapeType=\"path\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\n", + "c.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?\"right\":\"left\",0];C.pie.prototype.drawDataLabels.call(this)}});e(\"pyramid\",\"funnel\",{neckWidth:\"0%\",\n", + "neckHeight:\"0%\",reversed:!0})})(e)});\n", + "\n", + " /* END modules/funnel.js*/\n", + "\n", + "\n", + "var event = document.createEvent(\"HTMLEvents\");\n", + "event.initEvent(\"load_highcharts\", false, false);\n", + "window.dispatchEvent(event);\n", + "console.log(\"Finish loading highchartsjs\");\n" + ], + "text/plain": [ + "\"\\n /* BEGIN modules/funnel.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n Highcharts funnel module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(e){\\\"object\\\"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e(\\\"funnel\\\",\\\"pie\\\",{animation:!1,center:[\\\"50%\\\",\\\"50%\\\"],width:\\\"90%\\\",neckWidth:\\\"30%\\\",height:\\\"100%\\\",neckHeight:\\\"25%\\\",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:\\\"#cccccc\\\",borderColor:\\\"#000000\\\"}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=\\n0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D=\\\"left\\\"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&\\n!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,p=p?2*r-p:null);z=[\\\"M\\\",B,n,\\\"L\\\",G,n,y,k];p&&z.push(y,p,u,p);z.push(u,k,\\\"Z\\\");a.shapeType=\\\"path\\\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\\nc.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?\\\"right\\\":\\\"left\\\",0];C.pie.prototype.drawDataLabels.call(this)}});e(\\\"pyramid\\\",\\\"funnel\\\",{neckWidth:\\\"0%\\\",\\nneckHeight:\\\"0%\\\",reversed:!0})})(e)});\\n\\n /* END modules/funnel.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "application/javascript": [ + "\n", + "\n", + "var event = document.createEvent(\"HTMLEvents\");\n", + "event.initEvent(\"load_highcharts\", false, false);\n", + "window.dispatchEvent(event);\n", + "console.log(\"Finish loading highchartsjs\");\n" + ], + "text/plain": [ + "\"\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + " \n", + "\n", + " \n", + "\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n \\n\\n \\n\\n\\n\"" + ] + }, + "execution_count": 18, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "opts_funnel = {\n", + " chart: {\n", + " type: 'funnel'\n", + " },\n", + " modules: ['modules/funnel'],\n", + " title: {\n", + " text: 'Sales funnel'\n", + " },\n", + " plotOptions: {\n", + " series: {\n", + " dataLabels: {\n", + " enabled: true,\n", + " format: '{point.name} ({point.y:,.0f})',\n", + " color: \"(Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'\".js_code,\n", + " softConnector: true\n", + " },\n", + " center: ['40%', '50%'],\n", + " neckWidth: '30%',\n", + " neckHeight: '25%',\n", + " width: '80%'\n", + " }\n", + " },\n", + " legend: {\n", + " enabled: false\n", + " },\n", + " adapter: 'highcharts'\n", + "}\n", + "\n", + "opts_pyramid = {\n", + " chart: {\n", + " type: 'pyramid'\n", + " },\n", + " title: {\n", + " text: 'Sales pyramid',\n", + " x: -50\n", + " },\n", + " plotOptions: {\n", + " series: {\n", + " dataLabels: {\n", + " enabled: true,\n", + " format: '{point.name} ({point.y:,.0f})',\n", + " softConnector: true\n", + " },\n", + " center: ['40%', '50%'],\n", + " width: '80%'\n", + " }\n", + " },\n", + " legend: {\n", + " enabled: false\n", + " },\n", + " adapter: 'highcharts'\n", + "}\n", + "\n", + "funnel_hc = Daru::View::Plot.new(df, opts_funnel)\n", + "pyramid_hc = Daru::View::Plot.new(df, opts_pyramid)\n", + "\n", + "combined = Daru::View::PlotList.new([funnel_hc, pyramid_hc])\n", + "combined.show_in_iruby" + ] + }, { "cell_type": "code", "execution_count": null, From 4bbbddf8966b84521db6394fa038d7dc81afffc3 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Wed, 11 Jul 2018 06:07:56 +0530 Subject: [PATCH 15/16] Update TargetRubyVersion to 2.2 --- .rubocop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 439f66a..041d14e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,7 +17,7 @@ AllCops: - 'daru-view.gemspec' - '**/*.rake' DisplayCopNames: true - TargetRubyVersion: 2.1 + TargetRubyVersion: 2.2 # Preferred codebase style --------------------------------------------- Layout/ExtraSpacing: From e58a7e67dd7449b7f4c7b05be5b6b6fd3b181b03 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Fri, 13 Jul 2018 03:37:10 +0530 Subject: [PATCH 16/16] Updated examples and tests --- lib/daru/view/plot_list.rb | 22 +- .../view/templates/multiple_charts_div.erb | 4 +- .../HighCharts - Custom styling in CSS.ipynb | 303 ++++++++++----- .../HighCharts - column charts.ipynb | 64 ++-- ...s - Countries with data as DataFrame.ipynb | 80 ++-- ...s - More Chart Types (Using modules).ipynb | 64 ++-- .../dummy_iruby/Highstock - Chart types.ipynb | 96 ++--- .../Multiple Charts in a cell.ipynb | 352 +++++++++++------- spec/plot_list_spec.rb | 24 +- 9 files changed, 601 insertions(+), 408 deletions(-) diff --git a/lib/daru/view/plot_list.rb b/lib/daru/view/plot_list.rb index 5b11a2b..bf9ebb2 100644 --- a/lib/daru/view/plot_list.rb +++ b/lib/daru/view/plot_list.rb @@ -26,11 +26,15 @@ class PlotList # plots = Daru::View::PlotList.new([plot1, plot2]) # def initialize(data=[]) - raise ArgumentError, 'Invalid Argument Passed!' unless - data.is_a?(Array) && data.all? { |plot| - plot.is_a?(Daru::View::Plot) || - plot.is_a?(Daru::View::Table) - } + unless data.is_a?(Array) && data.all? { |plot| + plot.is_a?(Daru::View::Plot) || + plot.is_a?(Daru::View::Table) + } + raise ArgumentError, 'Invalid Argument Passed! Valid Arguments '\ + 'consists an Array of: Daru::View::Plot or '\ + 'Daru::View::Table (Right now, it is not '\ + 'implemented for DataTables)' + end @data = data end @@ -43,8 +47,8 @@ def show_in_iruby def div path = File.expand_path('templates/multiple_charts_div.erb', __dir__) template = File.read(path) - charts_div_tag = [] - charts_script = extract_charts_script(charts_div_tag) + charts_id_div_tag = [] + charts_script = extract_charts_script(charts_id_div_tag) ERB.new(template).result(binding) end @@ -57,11 +61,11 @@ def export_html_file(path='./plot.html') private - def extract_charts_script(charts_div_tag=[]) + def extract_charts_script(charts_id_div_tag=[]) charts_script = '' @data.each do |plot| chart_script = extract_chart_script(plot) - charts_div_tag << chart_script.partition(%r{}ixm)[1] + charts_id_div_tag << chart_script.partition(%r{}ixm)[1] chart_script.sub!(%r{}ixm, '') charts_script << chart_script end diff --git a/lib/daru/view/templates/multiple_charts_div.erb b/lib/daru/view/templates/multiple_charts_div.erb index b4c9164..cc637ab 100644 --- a/lib/daru/view/templates/multiple_charts_div.erb +++ b/lib/daru/view/templates/multiple_charts_div.erb @@ -1,6 +1,6 @@ - +
- <% charts_div_tag.each do |chart_div_tag| %> + <% charts_id_div_tag.each do |chart_div_tag| %> <% end %> diff --git a/spec/dummy_iruby/HighCharts - Custom styling in CSS.ipynb b/spec/dummy_iruby/HighCharts - Custom styling in CSS.ipynb index 5630bfd..c2c214b 100644 --- a/spec/dummy_iruby/HighCharts - Custom styling in CSS.ipynb +++ b/spec/dummy_iruby/HighCharts - Custom styling in CSS.ipynb @@ -869,20 +869,27 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 3, @@ -961,20 +968,23 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 4, @@ -1038,20 +1048,23 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 5, @@ -1114,10 +1127,14 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 6, @@ -1273,20 +1290,27 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 7, @@ -1358,20 +1382,23 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 8, @@ -1507,20 +1534,28 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 9, @@ -1638,20 +1673,24 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 10, @@ -1734,20 +1773,23 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 11, @@ -1815,10 +1857,20 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 12, @@ -1932,20 +1984,23 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 13, @@ -2027,20 +2082,23 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 14, @@ -2141,20 +2199,24 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 15, @@ -2256,20 +2318,28 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 16, @@ -2354,20 +2424,24 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 17, @@ -2435,20 +2509,24 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 18, @@ -2520,20 +2598,24 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 19, @@ -2601,20 +2683,32 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 20, @@ -2696,20 +2790,23 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 21, @@ -2764,20 +2861,24 @@ { "data": { "text/html": [ - "\n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n\\n
\"" + "\"\\n\\n\\n
\"" ] }, "execution_count": 22, diff --git a/spec/dummy_iruby/HighCharts - column charts.ipynb b/spec/dummy_iruby/HighCharts - column charts.ipynb index a169076..a3d46f2 100644 --- a/spec/dummy_iruby/HighCharts - column charts.ipynb +++ b/spec/dummy_iruby/HighCharts - column charts.ipynb @@ -872,17 +872,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -995,17 +995,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1075,17 +1075,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1190,21 +1190,21 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1303,17 +1303,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1395,17 +1395,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, @@ -1521,17 +1521,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 9, @@ -1828,17 +1828,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 10, diff --git a/spec/dummy_iruby/HighMaps - Countries with data as DataFrame.ipynb b/spec/dummy_iruby/HighMaps - Countries with data as DataFrame.ipynb index 0a4a5a0..44195d2 100644 --- a/spec/dummy_iruby/HighMaps - Countries with data as DataFrame.ipynb +++ b/spec/dummy_iruby/HighMaps - Countries with data as DataFrame.ipynb @@ -878,17 +878,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -967,17 +967,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1057,17 +1057,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1201,17 +1201,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1327,17 +1327,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1429,17 +1429,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, @@ -1518,17 +1518,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 9, @@ -1621,17 +1621,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 10, @@ -1727,17 +1727,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 11, @@ -1852,17 +1852,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 12, diff --git a/spec/dummy_iruby/Highcharts - More Chart Types (Using modules).ipynb b/spec/dummy_iruby/Highcharts - More Chart Types (Using modules).ipynb index 2937597..85c4fdc 100644 --- a/spec/dummy_iruby/Highcharts - More Chart Types (Using modules).ipynb +++ b/spec/dummy_iruby/Highcharts - More Chart Types (Using modules).ipynb @@ -894,17 +894,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -1037,17 +1037,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1149,17 +1149,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1234,17 +1234,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1333,17 +1333,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1523,17 +1523,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, @@ -1640,17 +1640,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 9, @@ -2095,17 +2095,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 10, diff --git a/spec/dummy_iruby/Highstock - Chart types.ipynb b/spec/dummy_iruby/Highstock - Chart types.ipynb index e98b30c..6e8d384 100644 --- a/spec/dummy_iruby/Highstock - Chart types.ipynb +++ b/spec/dummy_iruby/Highstock - Chart types.ipynb @@ -872,17 +872,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -986,17 +986,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1095,17 +1095,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1205,7 +1205,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1341,7 +1341,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1546,17 +1546,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, @@ -1661,17 +1661,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 9, @@ -1775,7 +1775,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 10, @@ -1934,7 +1934,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 11, @@ -2093,7 +2093,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 12, @@ -2252,17 +2252,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 13, @@ -2368,17 +2368,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 14, diff --git a/spec/dummy_iruby/Multiple Charts in a cell.ipynb b/spec/dummy_iruby/Multiple Charts in a cell.ipynb index bfed725..c884887 100644 --- a/spec/dummy_iruby/Multiple Charts in a cell.ipynb +++ b/spec/dummy_iruby/Multiple Charts in a cell.ipynb @@ -459,19 +459,19 @@ { "data": { "text/html": [ - "
\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 4, @@ -600,19 +600,19 @@ { "data": { "text/html": [ - "
\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"
\\n\\n\"" ] }, "execution_count": 6, @@ -638,39 +638,39 @@ { "data": { "text/html": [ - "
<%= chart_div_tag %>
\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 7, @@ -691,12 +691,12 @@ { "data": { "text/html": [ - "\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -705,28 +705,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_bfc56f1c_39e9_4ed7_9396_1015ee2a2acd});\n", - " function draw_bfc56f1c_39e9_4ed7_9396_1015ee2a2acd() {\n", + " draw_dc364d32_6420_4559_a2b3_e3253799cae5});\n", + " function draw_dc364d32_6420_4559_a2b3_e3253799cae5() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('bfc56f1c-39e9-4ed7-9396-1015ee2a2acd'));\n", + " document.getElementById('dc364d32-6420-4559-a2b3-e3253799cae5'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 8, @@ -748,12 +748,12 @@ { "data": { "text/html": [ - "\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -762,28 +762,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_435525ec_c955_410c_bcf7_d8a4cf6a1cd2});\n", - " function draw_435525ec_c955_410c_bcf7_d8a4cf6a1cd2() {\n", + " draw_0af09b9a_b66e_4f14_800b_e22d85428fb7});\n", + " function draw_0af09b9a_b66e_4f14_800b_e22d85428fb7() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('435525ec-c955-410c-bcf7-d8a4cf6a1cd2'));\n", + " document.getElementById('0af09b9a-b66e-4f14-800b-e22d85428fb7'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 9, @@ -805,16 +805,16 @@ { "data": { "text/html": [ - "\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -823,21 +823,21 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_daae0c67_29ae_482f_b9dc_7cb04c046c3c});\n", - " function draw_daae0c67_29ae_482f_b9dc_7cb04c046c3c() {\n", + " draw_4590789e_cb8e_4112_9ba8_43290f12a6b0});\n", + " function draw_4590789e_cb8e_4112_9ba8_43290f12a6b0() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 1}]);data_table.addRow([{v: \"Onions\"}, {v: 1}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 2}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 1}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('daae0c67-29ae-482f-b9dc-7cb04c046c3c'));\n", + " document.getElementById('4590789e-cb8e-4112-9ba8-43290f12a6b0'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", @@ -846,28 +846,28 @@ "\n", " google.load('visualization', 1.0, \n", " {packages: ['table'], callback:\n", - " draw_3800a6c7_4d05_40a5_b5e1_d1473ecd4057});\n", - " function draw_3800a6c7_4d05_40a5_b5e1_d1473ecd4057() {\n", + " draw_6d703d01_8ddd_4bc4_8fa5_9c5d828bbe83});\n", + " function draw_6d703d01_8ddd_4bc4_8fa5_9c5d828bbe83() {\n", " var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Topping\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Slices\"});data_table.addRow([{v: \"Mushrooms\"}, {v: 2}]);data_table.addRow([{v: \"Onions\"}, {v: 2}]);data_table.addRow([{v: \"Olives\"}, {v: 2}]);data_table.addRow([{v: \"Zucchini\"}, {v: 0}]);data_table.addRow([{v: \"Pepperoni\"}, {v: 3}]);\n", " var table = new google.visualization.Table(\n", - " document.getElementById('3800a6c7-4d05-40a5-b5e1-d1473ecd4057'));\n", + " document.getElementById('6d703d01-8ddd-4bc4-8fa5-9c5d828bbe83'));\n", " table.draw(data_table, {}); \n", " };\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 10, @@ -890,39 +890,39 @@ { "data": { "text/html": [ - "\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 11, @@ -946,6 +946,78 @@ "cell_type": "code", "execution_count": 12, "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ], + "text/plain": [ + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\"" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "options_column = {\n", + " type: :column,\n", + " title:'How Much Pizza Sarah Ate Last Night',\n", + " width:400,\n", + " height:300\n", + "}\n", + "pizza_sarah_column = Daru::View::Plot.new(df_sarah, options_column)\n", + "combined = Daru::View::PlotList.new([pizza_sarah, pizza_sarah_column, pizza_sarah_bar])\n", + "combined.show_in_iruby" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": {}, "outputs": [ { "data": { @@ -1761,31 +1833,31 @@ { "data": { "text/html": [ - "\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1793,10 +1865,10 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" ] }, - "execution_count": 12, + "execution_count": 13, "metadata": {}, "output_type": "execute_result" } @@ -1819,7 +1891,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -1842,31 +1914,31 @@ { "data": { "text/html": [ - "\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1874,10 +1946,10 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" ] }, - "execution_count": 13, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -1899,7 +1971,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 15, "metadata": {}, "outputs": [ { @@ -1939,35 +2011,35 @@ { "data": { "text/html": [ - "\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", " \n", @@ -1975,19 +2047,19 @@ "\n", "\n", " \n", @@ -1995,10 +2067,10 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\\n \\n\\n\\n\"" ] }, - "execution_count": 14, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -2010,7 +2082,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 16, "metadata": {}, "outputs": [ { @@ -2058,22 +2130,22 @@ { "data": { "text/html": [ - "\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "\n", @@ -2081,8 +2153,8 @@ "\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, - "execution_count": 15, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -2120,18 +2192,18 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 17, "metadata": {}, "outputs": [ { "data": { "text/html": [ - "\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", @@ -2139,8 +2211,8 @@ "\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, - "execution_count": 16, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -2199,7 +2271,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 18, "metadata": {}, "outputs": [ { @@ -2281,7 +2353,7 @@ " 4 Finalized 846" ] }, - "execution_count": 17, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -2297,7 +2369,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -2355,21 +2427,21 @@ { "data": { "text/html": [ - "\n", + "
\n", " \n", " \n", - " \n", + " \n", " \n", - " \n", + " \n", " \n", " \n", "
\n", " \n", @@ -2377,9 +2449,9 @@ " \n", @@ -2387,10 +2459,10 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n \\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n \\n\\n \\n\\n\\n\"" ] }, - "execution_count": 18, + "execution_count": 19, "metadata": {}, "output_type": "execute_result" } diff --git a/spec/plot_list_spec.rb b/spec/plot_list_spec.rb index d4de3c5..0ea2a8a 100644 --- a/spec/plot_list_spec.rb +++ b/spec/plot_list_spec.rb @@ -8,7 +8,7 @@ }, index: 'a'..'f' ) end - let(:dv) { Daru::Vector.new [:a, :a, :a, :b, :b, :c], type: :category } + let(:dv) { Daru::Vector.new [:a, :a, :a, :b, :b], type: :category } let(:array1) { [ ['Galaxy', 'Distance', 'Brightness'], ['Canis Major Dwarf', 8000, 230.3], @@ -36,21 +36,37 @@ describe '#div' do subject (:js) { combined.div } it 'generates a table in js' do - expect(js).to match(//) + expect(js).to match(/
/) expect(js).to match(/