(function() {
  var fn = function() {
    
    (function(root) {
      function now() {
        return new Date();
      }
    
      var force = false;
    
      if (typeof (root._bokeh_onload_callbacks) === "undefined" || force === true) {
        root._bokeh_onload_callbacks = [];
        root._bokeh_is_loading = undefined;
      }
    
      
      
    
      
      
    
      function run_callbacks() {
        try {
          root._bokeh_onload_callbacks.forEach(function(callback) { callback() });
        }
        finally {
          delete root._bokeh_onload_callbacks
        }
        console.info("Bokeh: all callbacks have finished");
      }
    
      function load_libs(js_urls, callback) {
        root._bokeh_onload_callbacks.push(callback);
        if (root._bokeh_is_loading > 0) {
          console.log("Bokeh: BokehJS is being loaded, scheduling callback at", now());
          return null;
        }
        if (js_urls == null || js_urls.length === 0) {
          run_callbacks();
          return null;
        }
        console.log("Bokeh: BokehJS not loaded, scheduling load and callback at", now());
        root._bokeh_is_loading = js_urls.length;
        for (var i = 0; i < js_urls.length; i++) {
          var url = js_urls[i];
          var s = document.createElement('script');
          s.src = url;
          s.async = false;
          s.onreadystatechange = s.onload = function() {
            root._bokeh_is_loading--;
            if (root._bokeh_is_loading === 0) {
              console.log("Bokeh: all BokehJS libraries loaded");
              run_callbacks()
            }
          };
          s.onerror = function() {
            console.warn("failed to load library " + url);
          };
          console.log("Bokeh: injecting script tag for BokehJS library: ", url);
          document.getElementsByTagName("head")[0].appendChild(s);
        }
      };var element = document.getElementById("be239ade-eaae-4d0f-b8ad-721baa56d518");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid 'be239ade-eaae-4d0f-b8ad-721baa56d518' but no matching script tag was found. ")
        return false;
      }
    
      var js_urls = ["https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.js", "https://cdn.pydata.org/bokeh/release/bokeh-gl-0.12.9.min.js"];
    
      var inline_js = [
        function(Bokeh) {
          Bokeh.set_log_level("info");
        },
        
        function(Bokeh) {
          
        },
        
        function(Bokeh) {
          (function() {
            var fn = function() {
              Bokeh.safely(function() {
                (function(root) {
                  function embed_document(root) {
                    var docs_json = {"406954a6-30a3-46f4-897e-f945de40b908":{"roots":{"references":[{"attributes":{"data_source":{"id":"c3c6db8d-d626-4051-846f-6b5f9f9b09f6","type":"ColumnDataSource"},"glyph":{"id":"142599f1-ac1a-404a-954e-dc1f6085c8e4","type":"Line"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"16368fb6-3d97-43b8-aa44-c48a39a20853","type":"Line"},"selection_glyph":null,"view":{"id":"6bad7ff9-8351-43d2-8931-6292a510a543","type":"CDSView"}},"id":"c2b70977-fc14-4ee7-9191-d755ad39b98b","type":"GlyphRenderer"},{"attributes":{"dimension":1,"plot":{"id":"fd3df260-7a18-43f9-8c5c-96e59f05bb78","subtype":"Figure","type":"Plot"},"ticker":{"id":"cb06538f-900c-4f56-94fe-2c74f3ce326a","type":"BasicTicker"}},"id":"b497dfe7-46e4-4d2d-bc3a-e496916ae9a2","type":"Grid"},{"attributes":{"months":[0,2,4,6,8,10]},"id":"70a0b5c8-6560-4c09-aa36-c01a8baaaa69","type":"MonthsTicker"},{"attributes":{"bottom_units":"screen","fill_alpha":{"value":0.5},"fill_color":{"value":"lightgrey"},"left_units":"screen","level":"overlay","line_alpha":{"value":1.0},"line_color":{"value":"black"},"line_dash":[4,4],"line_width":{"value":2},"plot":null,"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"96f96fd5-ea9d-459c-99eb-a0e573f6347c","type":"BoxAnnotation"},{"attributes":{"overlay":{"id":"96f96fd5-ea9d-459c-99eb-a0e573f6347c","type":"BoxAnnotation"}},"id":"efdae492-907c-4829-a556-d276f7c4e1e9","type":"BoxZoomTool"},{"attributes":{"source":{"id":"c3c6db8d-d626-4051-846f-6b5f9f9b09f6","type":"ColumnDataSource"}},"id":"6bad7ff9-8351-43d2-8931-6292a510a543","type":"CDSView"},{"attributes":{"formatter":{"id":"e56c6e5c-c803-4073-9230-81185e7f9156","type":"DatetimeTickFormatter"},"plot":{"id":"fd3df260-7a18-43f9-8c5c-96e59f05bb78","subtype":"Figure","type":"Plot"},"ticker":{"id":"3318d057-a0d4-47a3-bf9a-451501d5cfad","type":"DatetimeTicker"}},"id":"5915fceb-1d20-42ed-a2c6-2a7b8d66f048","type":"DatetimeAxis"},{"attributes":{"plot":null,"text":""},"id":"ed4e8a3f-7663-4ff9-b12b-c7cecc26de19","type":"Title"},{"attributes":{"num_minor_ticks":5,"tickers":[{"id":"4a022341-facf-4312-b189-90361d94fad0","type":"AdaptiveTicker"},{"id":"50fed4b0-b987-47cb-9135-c77da290db7f","type":"AdaptiveTicker"},{"id":"39688452-e8aa-4c2a-a8a2-47daa31548f6","type":"AdaptiveTicker"},{"id":"9338dbfb-e1b1-41fe-8c90-f666cf75efd8","type":"DaysTicker"},{"id":"977325e8-4ea8-4f3f-88c2-aada11e0b7b7","type":"DaysTicker"},{"id":"6678d097-cbb3-4c18-8400-c3247e80726a","type":"DaysTicker"},{"id":"246b562b-8621-4748-be1a-36817f83e155","type":"DaysTicker"},{"id":"5fa1b900-7d7b-4758-ab89-3a190d463802","type":"MonthsTicker"},{"id":"70a0b5c8-6560-4c09-aa36-c01a8baaaa69","type":"MonthsTicker"},{"id":"5e943834-41b5-43e5-97e1-2ec0d16bf47e","type":"MonthsTicker"},{"id":"63513275-a07a-4696-82d9-b734ecf3a452","type":"MonthsTicker"},{"id":"140cda4e-510d-45d0-9538-bff399766f69","type":"YearsTicker"}]},"id":"3318d057-a0d4-47a3-bf9a-451501d5cfad","type":"DatetimeTicker"},{"attributes":{"base":24,"mantissas":[1,2,4,6,8,12],"max_interval":43200000.0,"min_interval":3600000.0,"num_minor_ticks":0},"id":"39688452-e8aa-4c2a-a8a2-47daa31548f6","type":"AdaptiveTicker"},{"attributes":{},"id":"e56c6e5c-c803-4073-9230-81185e7f9156","type":"DatetimeTickFormatter"},{"attributes":{"months":[0,4,8]},"id":"5e943834-41b5-43e5-97e1-2ec0d16bf47e","type":"MonthsTicker"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"5eee05be-9009-46bb-86c4-581748ec9fbf","type":"PanTool"},{"id":"56a40334-864b-430d-b35a-a7e2551f2f56","type":"WheelZoomTool"},{"id":"efdae492-907c-4829-a556-d276f7c4e1e9","type":"BoxZoomTool"},{"id":"5a9c8b11-74d9-442a-9330-1ab266cb4501","type":"SaveTool"},{"id":"20398c38-1685-4fb1-86bb-65df1361d050","type":"ResetTool"},{"id":"4947ed68-8be1-4108-ac70-22f603a018b9","type":"HelpTool"}]},"id":"d9aaffdd-435e-42ff-9594-4c80ca322f04","type":"Toolbar"},{"attributes":{"line_alpha":{"value":0.5},"line_color":{"value":"navy"},"x":{"field":"x"},"y":{"field":"y"}},"id":"142599f1-ac1a-404a-954e-dc1f6085c8e4","type":"Line"},{"attributes":{"below":[{"id":"5915fceb-1d20-42ed-a2c6-2a7b8d66f048","type":"DatetimeAxis"}],"left":[{"id":"4b4304f9-86ba-4835-bb3d-5c84dacaaea8","type":"LinearAxis"}],"plot_height":250,"plot_width":800,"renderers":[{"id":"5915fceb-1d20-42ed-a2c6-2a7b8d66f048","type":"DatetimeAxis"},{"id":"c99284eb-7a8e-43fb-b6a4-bf3f1ca83d92","type":"Grid"},{"id":"4b4304f9-86ba-4835-bb3d-5c84dacaaea8","type":"LinearAxis"},{"id":"b497dfe7-46e4-4d2d-bc3a-e496916ae9a2","type":"Grid"},{"id":"96f96fd5-ea9d-459c-99eb-a0e573f6347c","type":"BoxAnnotation"},{"id":"c2b70977-fc14-4ee7-9191-d755ad39b98b","type":"GlyphRenderer"}],"title":{"id":"ed4e8a3f-7663-4ff9-b12b-c7cecc26de19","type":"Title"},"toolbar":{"id":"d9aaffdd-435e-42ff-9594-4c80ca322f04","type":"Toolbar"},"x_range":{"id":"4966ccec-9faf-4ff3-a2cb-9638164e3fdb","type":"DataRange1d"},"x_scale":{"id":"6fbb6b8e-bd97-434e-b22c-8c555b8bd9c1","type":"LinearScale"},"y_range":{"id":"35319684-44ef-4489-9e4f-a69fd54f83e9","type":"DataRange1d"},"y_scale":{"id":"4ebe7627-9c6b-4d6a-8856-d2cd0af72eaf","type":"LinearScale"}},"id":"fd3df260-7a18-43f9-8c5c-96e59f05bb78","subtype":"Figure","type":"Plot"},{"attributes":{"callback":null},"id":"35319684-44ef-4489-9e4f-a69fd54f83e9","type":"DataRange1d"},{"attributes":{"days":[1,15]},"id":"246b562b-8621-4748-be1a-36817f83e155","type":"DaysTicker"},{"attributes":{"days":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},"id":"9338dbfb-e1b1-41fe-8c90-f666cf75efd8","type":"DaysTicker"},{"attributes":{},"id":"5eee05be-9009-46bb-86c4-581748ec9fbf","type":"PanTool"},{"attributes":{"plot":{"id":"fd3df260-7a18-43f9-8c5c-96e59f05bb78","subtype":"Figure","type":"Plot"},"ticker":{"id":"3318d057-a0d4-47a3-bf9a-451501d5cfad","type":"DatetimeTicker"}},"id":"c99284eb-7a8e-43fb-b6a4-bf3f1ca83d92","type":"Grid"},{"attributes":{"base":60,"mantissas":[1,2,5,10,15,20,30],"max_interval":1800000.0,"min_interval":1000.0,"num_minor_ticks":0},"id":"50fed4b0-b987-47cb-9135-c77da290db7f","type":"AdaptiveTicker"},{"attributes":{},"id":"4ebe7627-9c6b-4d6a-8856-d2cd0af72eaf","type":"LinearScale"},{"attributes":{},"id":"cb06538f-900c-4f56-94fe-2c74f3ce326a","type":"BasicTicker"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"[encoded data, 34880 characters]","dtype":"float64","shape":[3270]},"y":{"__ndarray__":"[encoded data, 34880 characters]","dtype":"float64","shape":[3270]}}},"id":"c3c6db8d-d626-4051-846f-6b5f9f9b09f6","type":"ColumnDataSource"},{"attributes":{"formatter":{"id":"b753fa18-be2b-4b40-8b89-026b832f8d18","type":"BasicTickFormatter"},"plot":{"id":"fd3df260-7a18-43f9-8c5c-96e59f05bb78","subtype":"Figure","type":"Plot"},"ticker":{"id":"cb06538f-900c-4f56-94fe-2c74f3ce326a","type":"BasicTicker"}},"id":"4b4304f9-86ba-4835-bb3d-5c84dacaaea8","type":"LinearAxis"},{"attributes":{"months":[0,6]},"id":"63513275-a07a-4696-82d9-b734ecf3a452","type":"MonthsTicker"},{"attributes":{},"id":"6fbb6b8e-bd97-434e-b22c-8c555b8bd9c1","type":"LinearScale"},{"attributes":{"mantissas":[1,2,5],"max_interval":500.0,"num_minor_ticks":0},"id":"4a022341-facf-4312-b189-90361d94fad0","type":"AdaptiveTicker"},{"attributes":{},"id":"4947ed68-8be1-4108-ac70-22f603a018b9","type":"HelpTool"},{"attributes":{},"id":"b753fa18-be2b-4b40-8b89-026b832f8d18","type":"BasicTickFormatter"},{"attributes":{},"id":"140cda4e-510d-45d0-9538-bff399766f69","type":"YearsTicker"},{"attributes":{"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"x":{"field":"x"},"y":{"field":"y"}},"id":"16368fb6-3d97-43b8-aa44-c48a39a20853","type":"Line"},{"attributes":{},"id":"20398c38-1685-4fb1-86bb-65df1361d050","type":"ResetTool"},{"attributes":{"callback":null},"id":"4966ccec-9faf-4ff3-a2cb-9638164e3fdb","type":"DataRange1d"},{"attributes":{"days":[1,4,7,10,13,16,19,22,25,28]},"id":"977325e8-4ea8-4f3f-88c2-aada11e0b7b7","type":"DaysTicker"},{"attributes":{"days":[1,8,15,22]},"id":"6678d097-cbb3-4c18-8400-c3247e80726a","type":"DaysTicker"},{"attributes":{},"id":"56a40334-864b-430d-b35a-a7e2551f2f56","type":"WheelZoomTool"},{"attributes":{},"id":"5a9c8b11-74d9-442a-9330-1ab266cb4501","type":"SaveTool"},{"attributes":{"months":[0,1,2,3,4,5,6,7,8,9,10,11]},"id":"5fa1b900-7d7b-4758-ab89-3a190d463802","type":"MonthsTicker"}],"root_ids":["fd3df260-7a18-43f9-8c5c-96e59f05bb78"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"406954a6-30a3-46f4-897e-f945de40b908","elementid":"be239ade-eaae-4d0f-b8ad-721baa56d518","modelid":"fd3df260-7a18-43f9-8c5c-96e59f05bb78"}];
                
                    root.Bokeh.embed.embed_items(docs_json, render_items);
                  }
                
                  if (root.Bokeh !== undefined) {
                    embed_document(root);
                  } else {
                    var attempts = 0;
                    var timer = setInterval(function(root) {
                      if (root.Bokeh !== undefined) {
                        embed_document(root);
                        clearInterval(timer);
                      }
                      attempts++;
                      if (attempts > 100) {
                        console.log("Bokeh: ERROR: Unable to embed document because BokehJS library is missing")
                        clearInterval(timer);
                      }
                    }, 10, root)
                  }
                })(window);
              });
            };
            if (document.readyState != "loading") fn();
            else document.addEventListener("DOMContentLoaded", fn);
          })();
        },
        function(Bokeh) {
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-0.12.9.min.css");
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.9.min.css");
          console.log("Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.css");
          Bokeh.embed.inject_css("https://cdn.pydata.org/bokeh/release/bokeh-tables-0.12.9.min.css");
        }
      ];
    
      function run_inline_js() {
        
        for (var i = 0; i < inline_js.length; i++) {
          inline_js[i].call(root, root.Bokeh);
        }
        
      }
    
      if (root._bokeh_is_loading === 0) {
        console.log("Bokeh: BokehJS loaded, going straight to plotting");
        run_inline_js();
      } else {
        load_libs(js_urls, function() {
          console.log("Bokeh: BokehJS plotting callback run at", now());
          run_inline_js();
        });
      }
    }(window));
  };
  if (document.readyState != "loading") fn();
  else document.addEventListener("DOMContentLoaded", fn);
})();
