(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("bf8ac0e3-8539-4357-a987-edb0424f3929");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid 'bf8ac0e3-8539-4357-a987-edb0424f3929' 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 = {"509a2d60-e61b-41e8-8269-42e24febfd8a":{"roots":{"references":[{"attributes":{},"id":"0d854e44-e8db-40ba-a621-433052e3a508","type":"ResetTool"},{"attributes":{"overlay":{"id":"8babe17c-6607-4efa-a4a6-27829d0b40d5","type":"BoxAnnotation"}},"id":"c817389d-93e3-4c6d-80de-1453fee86112","type":"BoxZoomTool"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"[encoded data, 106668 characters]","dtype":"float64","shape":[10000]},"y":{"__ndarray__":"[encoded data, 106668 characters]","dtype":"float64","shape":[10000]}}},"id":"3f24fb82-68fe-4ccb-9ee6-095b4fd44dd1","type":"ColumnDataSource"},{"attributes":{"plot":null,"text":""},"id":"cce00f26-b9a6-4a04-b24a-dde7f2d1ae76","type":"Title"},{"attributes":{"source":{"id":"3f24fb82-68fe-4ccb-9ee6-095b4fd44dd1","type":"ColumnDataSource"}},"id":"9ea5fb9a-c29f-4516-a026-7f18ead8dcdf","type":"CDSView"},{"attributes":{},"id":"2be209bf-f0be-467c-a5eb-0deb31bc2814","type":"PanTool"},{"attributes":{"data_source":{"id":"3f24fb82-68fe-4ccb-9ee6-095b4fd44dd1","type":"ColumnDataSource"},"glyph":{"id":"f503c6c5-0c9c-471f-aebc-4421789e5344","type":"Circle"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"fde8d906-eff3-45c1-a162-f78067cb1b20","type":"Circle"},"selection_glyph":null,"view":{"id":"9ea5fb9a-c29f-4516-a026-7f18ead8dcdf","type":"CDSView"}},"id":"d9372756-2a21-4311-b05a-d133a141d024","type":"GlyphRenderer"},{"attributes":{"plot":{"id":"0a71cfc0-a517-4d10-b0e9-6085c61819bc","subtype":"Figure","type":"Plot"},"ticker":{"id":"71705354-70d0-4b03-94e3-e548ab02c9bf","type":"BasicTicker"}},"id":"38a66fba-6d01-40e1-901b-5875137b2535","type":"Grid"},{"attributes":{"formatter":{"id":"a7c063c5-fd8d-4f8d-b3aa-d69a14fe6e9c","type":"BasicTickFormatter"},"plot":{"id":"0a71cfc0-a517-4d10-b0e9-6085c61819bc","subtype":"Figure","type":"Plot"},"ticker":{"id":"71705354-70d0-4b03-94e3-e548ab02c9bf","type":"BasicTicker"}},"id":"349be816-e225-4581-9246-0f9094fa7e83","type":"LinearAxis"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"x":{"field":"x"},"y":{"field":"y"}},"id":"fde8d906-eff3-45c1-a162-f78067cb1b20","type":"Circle"},{"attributes":{"callback":null},"id":"387468b0-cac8-49a3-ac74-e85125da7c7b","type":"DataRange1d"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"x":{"field":"x"},"y":{"field":"y"}},"id":"f503c6c5-0c9c-471f-aebc-4421789e5344","type":"Circle"},{"attributes":{"below":[{"id":"349be816-e225-4581-9246-0f9094fa7e83","type":"LinearAxis"}],"left":[{"id":"1ddcab81-8a42-488a-8d21-d9b292efc784","type":"LinearAxis"}],"renderers":[{"id":"349be816-e225-4581-9246-0f9094fa7e83","type":"LinearAxis"},{"id":"38a66fba-6d01-40e1-901b-5875137b2535","type":"Grid"},{"id":"1ddcab81-8a42-488a-8d21-d9b292efc784","type":"LinearAxis"},{"id":"69149c9c-fecc-40c0-a40c-c294719f62b7","type":"Grid"},{"id":"8babe17c-6607-4efa-a4a6-27829d0b40d5","type":"BoxAnnotation"},{"id":"d9372756-2a21-4311-b05a-d133a141d024","type":"GlyphRenderer"}],"title":{"id":"cce00f26-b9a6-4a04-b24a-dde7f2d1ae76","type":"Title"},"toolbar":{"id":"86f70b43-baea-4749-861d-f385e41d92e3","type":"Toolbar"},"x_range":{"id":"ae7ba89a-b2ff-4a6e-90d0-fd2c18c54b2b","type":"DataRange1d"},"x_scale":{"id":"aa992ef3-a3b0-4a58-8ae1-b0c6fd2995ac","type":"LinearScale"},"y_range":{"id":"387468b0-cac8-49a3-ac74-e85125da7c7b","type":"DataRange1d"},"y_scale":{"id":"744a4ee4-7b23-4dce-a16d-b93762e29607","type":"LinearScale"}},"id":"0a71cfc0-a517-4d10-b0e9-6085c61819bc","subtype":"Figure","type":"Plot"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"2be209bf-f0be-467c-a5eb-0deb31bc2814","type":"PanTool"},{"id":"f9e9adfe-3b33-49f2-a280-21ec03ef84a9","type":"WheelZoomTool"},{"id":"c817389d-93e3-4c6d-80de-1453fee86112","type":"BoxZoomTool"},{"id":"9ad41830-f038-4aa2-9323-76b38fb92c0c","type":"SaveTool"},{"id":"0d854e44-e8db-40ba-a621-433052e3a508","type":"ResetTool"},{"id":"65089f75-0968-4788-b4d9-9040ff363f3b","type":"HelpTool"}]},"id":"86f70b43-baea-4749-861d-f385e41d92e3","type":"Toolbar"},{"attributes":{},"id":"a7c063c5-fd8d-4f8d-b3aa-d69a14fe6e9c","type":"BasicTickFormatter"},{"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":"8babe17c-6607-4efa-a4a6-27829d0b40d5","type":"BoxAnnotation"},{"attributes":{"dimension":1,"plot":{"id":"0a71cfc0-a517-4d10-b0e9-6085c61819bc","subtype":"Figure","type":"Plot"},"ticker":{"id":"cb7631d0-7fed-4dbf-844a-5aa075f63b3b","type":"BasicTicker"}},"id":"69149c9c-fecc-40c0-a40c-c294719f62b7","type":"Grid"},{"attributes":{},"id":"744a4ee4-7b23-4dce-a16d-b93762e29607","type":"LinearScale"},{"attributes":{},"id":"71705354-70d0-4b03-94e3-e548ab02c9bf","type":"BasicTicker"},{"attributes":{},"id":"aa992ef3-a3b0-4a58-8ae1-b0c6fd2995ac","type":"LinearScale"},{"attributes":{},"id":"d0f431ba-fcdd-425c-8fad-de8b9b5c06ee","type":"BasicTickFormatter"},{"attributes":{},"id":"65089f75-0968-4788-b4d9-9040ff363f3b","type":"HelpTool"},{"attributes":{"callback":null},"id":"ae7ba89a-b2ff-4a6e-90d0-fd2c18c54b2b","type":"DataRange1d"},{"attributes":{},"id":"cb7631d0-7fed-4dbf-844a-5aa075f63b3b","type":"BasicTicker"},{"attributes":{},"id":"9ad41830-f038-4aa2-9323-76b38fb92c0c","type":"SaveTool"},{"attributes":{},"id":"f9e9adfe-3b33-49f2-a280-21ec03ef84a9","type":"WheelZoomTool"},{"attributes":{"formatter":{"id":"d0f431ba-fcdd-425c-8fad-de8b9b5c06ee","type":"BasicTickFormatter"},"plot":{"id":"0a71cfc0-a517-4d10-b0e9-6085c61819bc","subtype":"Figure","type":"Plot"},"ticker":{"id":"cb7631d0-7fed-4dbf-844a-5aa075f63b3b","type":"BasicTicker"}},"id":"1ddcab81-8a42-488a-8d21-d9b292efc784","type":"LinearAxis"}],"root_ids":["0a71cfc0-a517-4d10-b0e9-6085c61819bc"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"509a2d60-e61b-41e8-8269-42e24febfd8a","elementid":"bf8ac0e3-8539-4357-a987-edb0424f3929","modelid":"0a71cfc0-a517-4d10-b0e9-6085c61819bc"}];
                
                    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);
})();
