(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("b4dc3eee-a245-4981-bfa0-aa4f03b1a169");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid 'b4dc3eee-a245-4981-bfa0-aa4f03b1a169' 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 = {"a1347bc9-7e1e-415a-9208-55d3cc114306":{"roots":{"references":[{"attributes":{"source":{"id":"1680c747-b4cd-4943-a4b2-431ee8fc51f3","type":"ColumnDataSource"}},"id":"35f82d1c-04bf-485d-8417-8418fb5b0944","type":"CDSView"},{"attributes":{},"id":"f0eb12ad-2c38-46f3-9a1a-081044821f80","type":"LinearScale"},{"attributes":{"data_source":{"id":"1680c747-b4cd-4943-a4b2-431ee8fc51f3","type":"ColumnDataSource"},"glyph":{"id":"3dd2f113-389a-46c9-85bc-5a1a3e6a4de1","type":"Line"},"hover_glyph":null,"muted_glyph":null,"view":{"id":"35f82d1c-04bf-485d-8417-8418fb5b0944","type":"CDSView"}},"id":"e917f711-85b2-44a9-908e-d76fd6741792","type":"GlyphRenderer"},{"attributes":{},"id":"affc2d80-db00-4bc0-8e13-cb3863e439a7","type":"BasicTickFormatter"},{"attributes":{"formatter":{"id":"affc2d80-db00-4bc0-8e13-cb3863e439a7","type":"BasicTickFormatter"},"plot":{"id":"729eab4f-0aca-48cd-a86f-b43eff70f893","type":"Plot"},"ticker":{"id":"8d110054-382c-4c96-a906-2a0ea1c21611","type":"BasicTicker"}},"id":"b5d80176-733b-421d-90a0-a26c850dfdcd","type":"LinearAxis"},{"attributes":{"formatter":{"id":"ecda5e79-a25a-4be4-93a1-2664bc1e5fb0","type":"BasicTickFormatter"},"plot":{"id":"729eab4f-0aca-48cd-a86f-b43eff70f893","type":"Plot"},"ticker":{"id":"2622faf1-8b11-4e6a-8cb6-9dfd9dba31e8","type":"BasicTicker"}},"id":"962f2bfe-a656-4af8-bc9f-7a4c9713328c","type":"LinearAxis"},{"attributes":{},"id":"2622faf1-8b11-4e6a-8cb6-9dfd9dba31e8","type":"BasicTicker"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto"},"id":"4152294d-ba82-40d3-ad6f-3ab7b460698b","type":"Toolbar"},{"attributes":{"below":[{"id":"962f2bfe-a656-4af8-bc9f-7a4c9713328c","type":"LinearAxis"}],"h_symmetry":false,"left":[{"id":"b5d80176-733b-421d-90a0-a26c850dfdcd","type":"LinearAxis"}],"min_border":0,"plot_height":300,"plot_width":300,"renderers":[{"id":"e917f711-85b2-44a9-908e-d76fd6741792","type":"GlyphRenderer"},{"id":"962f2bfe-a656-4af8-bc9f-7a4c9713328c","type":"LinearAxis"},{"id":"b5d80176-733b-421d-90a0-a26c850dfdcd","type":"LinearAxis"},{"id":"b57c2955-aed1-4e51-ad26-1166af935da4","type":"Grid"},{"id":"57623f0d-fa11-419b-8599-b9298e6196ee","type":"Grid"}],"title":null,"toolbar":{"id":"4152294d-ba82-40d3-ad6f-3ab7b460698b","type":"Toolbar"},"toolbar_location":null,"x_range":{"id":"a2963677-d88c-4b91-b021-4892f0c6e0cb","type":"DataRange1d"},"x_scale":{"id":"f0eb12ad-2c38-46f3-9a1a-081044821f80","type":"LinearScale"},"y_range":{"id":"a21f0862-92b6-463a-a617-977abceceac3","type":"DataRange1d"},"y_scale":{"id":"77941790-6da1-4d62-92b3-47ff019959ea","type":"LinearScale"}},"id":"729eab4f-0aca-48cd-a86f-b43eff70f893","type":"Plot"},{"attributes":{},"id":"ecda5e79-a25a-4be4-93a1-2664bc1e5fb0","type":"BasicTickFormatter"},{"attributes":{},"id":"77941790-6da1-4d62-92b3-47ff019959ea","type":"LinearScale"},{"attributes":{"line_alpha":{"value":0.6},"line_color":{"value":"#F46D43"},"line_width":{"value":6},"x":{"field":"x"},"y":{"field":"y"}},"id":"3dd2f113-389a-46c9-85bc-5a1a3e6a4de1","type":"Line"},{"attributes":{},"id":"8d110054-382c-4c96-a906-2a0ea1c21611","type":"BasicTicker"},{"attributes":{"plot":{"id":"729eab4f-0aca-48cd-a86f-b43eff70f893","type":"Plot"},"ticker":{"id":"2622faf1-8b11-4e6a-8cb6-9dfd9dba31e8","type":"BasicTicker"}},"id":"b57c2955-aed1-4e51-ad26-1166af935da4","type":"Grid"},{"attributes":{"callback":null,"column_names":["y","x"],"data":{"x":{"__ndarray__":"AAAAAAAAAMCNsNzTCMv9vxphuacRlvu/qBGWexph+b81wnJPIyz3v8JyTyMs9/S/UCMs9zTC8r/d0wjLPY3wv9QIyz2NsOy/7mmE5Z5G6L8Iyz2NsNzjv0hY7mmE5d6/fBphuacR1r9guacRlnvKv6B7GmG5p7G/oHsaYbmnsT9guacRlnvKP3gaYbmnEdY/SFjuaYTl3j8Iyz2NsNzjP/BphOWeRug/1AjLPY2w7D/c0wjLPY3wP1AjLPc0wvI/wnJPIyz39D80wnJPIyz3P6gRlnsaYfk/GmG5pxGW+z+MsNzTCMv9PwAAAAAAAABA","dtype":"float64","shape":[30]},"y":{"__ndarray__":"AAAAAAAAEEBpbwI4CL0LQG77lpD9xwdAE6S9CeAgBEBTaXajr8cAQF+WgrvYePs/VpM8cSz+9T+EyRpoWh/xP9lxOkDFuOk/HsOHMopq4j+xDTtOB6jYPyT07nfG1M0/XC0TuaBwvj8rDBgpseqlP1onhyRIe3M/WieHJEh7cz8rDBgpseqlP1EtE7mgcL4/JPTud8bUzT+xDTtOB6jYPyHDhzKKauI/2XE6QMW46T+CyRpoWh/xP1aTPHEs/vU/X5aCu9h4+z9RaXajr8cAQBOkvQngIARAbvuWkP3HB0BnbwI4CL0LQAAAAAAAABBA","dtype":"float64","shape":[30]}}},"id":"1680c747-b4cd-4943-a4b2-431ee8fc51f3","type":"ColumnDataSource"},{"attributes":{"callback":null},"id":"a2963677-d88c-4b91-b021-4892f0c6e0cb","type":"DataRange1d"},{"attributes":{"dimension":1,"plot":{"id":"729eab4f-0aca-48cd-a86f-b43eff70f893","type":"Plot"},"ticker":{"id":"8d110054-382c-4c96-a906-2a0ea1c21611","type":"BasicTicker"}},"id":"57623f0d-fa11-419b-8599-b9298e6196ee","type":"Grid"},{"attributes":{"callback":null},"id":"a21f0862-92b6-463a-a617-977abceceac3","type":"DataRange1d"}],"root_ids":["729eab4f-0aca-48cd-a86f-b43eff70f893"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"a1347bc9-7e1e-415a-9208-55d3cc114306","elementid":"b4dc3eee-a245-4981-bfa0-aa4f03b1a169","modelid":"729eab4f-0aca-48cd-a86f-b43eff70f893"}];
                
                    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);
})();
