(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("06d96e0b-fb03-4cea-921d-eaf0d8868446");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid '06d96e0b-fb03-4cea-921d-eaf0d8868446' 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 = {"f97cd749-2034-45ed-a48b-c7ae46c30851":{"roots":{"references":[{"attributes":{},"id":"25fbce45-26cf-4cb8-ac7a-3e385cf237d5","type":"HelpTool"},{"attributes":{},"id":"8a8d9144-98ce-4700-9528-03458604cbca","type":"LinearScale"},{"attributes":{"dimension":1,"minor_grid_line_color":{"value":"#eeeeee"},"plot":{"id":"9a4fde7c-bec0-4a14-9bc7-c05d34044fc8","subtype":"Figure","type":"Plot"},"ticker":{"id":"100d25bb-e27d-46cb-8d77-3e2ad3c33d37","type":"BasicTicker"}},"id":"3beb58b9-4305-4934-bb9c-64f70e7b3747","type":"Grid"},{"attributes":{},"id":"100d25bb-e27d-46cb-8d77-3e2ad3c33d37","type":"BasicTicker"},{"attributes":{"data_source":{"id":"b9a69a09-5d3c-4f81-9bf2-7a87b02bfe7c","type":"ColumnDataSource"},"glyph":{"id":"628f526c-9dde-4294-8e27-dc3fc7e65d29","type":"Patches"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"c9fa7ffa-7c69-474e-a721-d533ba9d0439","type":"Patches"},"selection_glyph":null,"view":{"id":"4917bcfd-8207-4954-8c54-20c8f0f1f48e","type":"CDSView"}},"id":"798d8148-04d4-4be9-88d9-1a45ae38f408","type":"GlyphRenderer"},{"attributes":{"below":[{"id":"aa8b2eca-c791-444c-8381-a17f2192dc46","type":"LinearAxis"}],"left":[{"id":"727528e6-0229-4e9d-b75a-39f4016a4675","type":"LinearAxis"}],"renderers":[{"id":"aa8b2eca-c791-444c-8381-a17f2192dc46","type":"LinearAxis"},{"id":"c5ff3546-1c33-4fea-b44f-710b609508b1","type":"Grid"},{"id":"727528e6-0229-4e9d-b75a-39f4016a4675","type":"LinearAxis"},{"id":"3beb58b9-4305-4934-bb9c-64f70e7b3747","type":"Grid"},{"id":"67031477-0ff9-4ac6-95ea-7e8ad4c46a5c","type":"BoxAnnotation"},{"id":"798d8148-04d4-4be9-88d9-1a45ae38f408","type":"GlyphRenderer"}],"title":{"id":"f852a995-55f2-4e6b-82ca-c0c4a6d4ec0d","type":"Title"},"toolbar":{"id":"90d70ab7-058d-4ca5-b6d6-c5ebf78297df","type":"Toolbar"},"x_range":{"id":"797f7cbd-b3fe-41a2-a7ac-4eaf50ebb711","type":"Range1d"},"x_scale":{"id":"8a8d9144-98ce-4700-9528-03458604cbca","type":"LinearScale"},"y_range":{"id":"b5de56cd-7108-4b72-98b6-25a915547894","type":"Range1d"},"y_scale":{"id":"cbcc368a-580d-4a10-874b-c5f8d0c137d9","type":"LinearScale"}},"id":"9a4fde7c-bec0-4a14-9bc7-c05d34044fc8","subtype":"Figure","type":"Plot"},{"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":"67031477-0ff9-4ac6-95ea-7e8ad4c46a5c","type":"BoxAnnotation"},{"attributes":{"formatter":{"id":"05f0435a-6a98-470e-b8d8-99e90cdd9440","type":"BasicTickFormatter"},"plot":{"id":"9a4fde7c-bec0-4a14-9bc7-c05d34044fc8","subtype":"Figure","type":"Plot"},"ticker":{"id":"100d25bb-e27d-46cb-8d77-3e2ad3c33d37","type":"BasicTicker"}},"id":"727528e6-0229-4e9d-b75a-39f4016a4675","type":"LinearAxis"},{"attributes":{"callback":null,"end":19},"id":"797f7cbd-b3fe-41a2-a7ac-4eaf50ebb711","type":"Range1d"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"149a0506-d448-44bb-9cb3-ee4156277d26","type":"PanTool"},{"id":"617bf5de-03cf-4f6d-a70c-fdec155483c2","type":"WheelZoomTool"},{"id":"dd337bd1-7322-4383-9614-dbbc6c4de50a","type":"BoxZoomTool"},{"id":"5b1412db-e9a1-4070-822e-aaa2b798685b","type":"SaveTool"},{"id":"c1ea90ac-2d10-429c-91c5-4c94234c65eb","type":"ResetTool"},{"id":"25fbce45-26cf-4cb8-ac7a-3e385cf237d5","type":"HelpTool"}]},"id":"90d70ab7-058d-4ca5-b6d6-c5ebf78297df","type":"Toolbar"},{"attributes":{"source":{"id":"b9a69a09-5d3c-4f81-9bf2-7a87b02bfe7c","type":"ColumnDataSource"}},"id":"4917bcfd-8207-4954-8c54-20c8f0f1f48e","type":"CDSView"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"xs":{"field":"xs"},"ys":{"field":"ys"}},"id":"c9fa7ffa-7c69-474e-a721-d533ba9d0439","type":"Patches"},{"attributes":{},"id":"fcc7d463-2728-4d77-9040-f18714ae96a8","type":"BasicTicker"},{"attributes":{},"id":"cbcc368a-580d-4a10-874b-c5f8d0c137d9","type":"LinearScale"},{"attributes":{},"id":"05f0435a-6a98-470e-b8d8-99e90cdd9440","type":"BasicTickFormatter"},{"attributes":{"overlay":{"id":"67031477-0ff9-4ac6-95ea-7e8ad4c46a5c","type":"BoxAnnotation"}},"id":"dd337bd1-7322-4383-9614-dbbc6c4de50a","type":"BoxZoomTool"},{"attributes":{"fill_alpha":{"value":0.8},"fill_color":{"field":"fill_color"},"line_alpha":{"value":0.8},"line_color":{"value":null},"xs":{"field":"xs"},"ys":{"field":"ys"}},"id":"628f526c-9dde-4294-8e27-dc3fc7e65d29","type":"Patches"},{"attributes":{},"id":"5b1412db-e9a1-4070-822e-aaa2b798685b","type":"SaveTool"},{"attributes":{"plot":null,"text":""},"id":"f852a995-55f2-4e6b-82ca-c0c4a6d4ec0d","type":"Title"},{"attributes":{"formatter":{"id":"22895e56-a57c-4c38-b427-ab3fb52fbb00","type":"BasicTickFormatter"},"plot":{"id":"9a4fde7c-bec0-4a14-9bc7-c05d34044fc8","subtype":"Figure","type":"Plot"},"ticker":{"id":"fcc7d463-2728-4d77-9040-f18714ae96a8","type":"BasicTicker"}},"id":"aa8b2eca-c791-444c-8381-a17f2192dc46","type":"LinearAxis"},{"attributes":{"minor_grid_line_color":{"value":"#eeeeee"},"plot":{"id":"9a4fde7c-bec0-4a14-9bc7-c05d34044fc8","subtype":"Figure","type":"Plot"},"ticker":{"id":"fcc7d463-2728-4d77-9040-f18714ae96a8","type":"BasicTicker"}},"id":"c5ff3546-1c33-4fea-b44f-710b609508b1","type":"Grid"},{"attributes":{"callback":null,"column_names":["ys","xs","fill_color"],"data":{"fill_color":["#5e4fa2","#3288bd","#66c2a5","#abdda4","#e6f598","#fee08b","#fdae61","#f46d43","#d53e4f","#9e0142"],"xs":[[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]],"ys":[{"__ndarray__":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFRAAAAAAADAUkAAAAAAAABKQAAAAAAAgEhAAAAAAACAUkAAAAAAAABBQAAAAAAAADxAAAAAAACAQUAAAAAAAABPQAAAAAAAgFJAAAAAAACAS0AAAAAAAEBWQAAAAAAAQFVAAAAAAACAWEAAAAAAAABDQAAAAAAAAEJAAAAAAAAAVUAAAAAAAABYQAAAAAAAwFNAAAAAAABAU0A=","dtype":"float64","shape":[40]},{"__ndarray__":"AAAAAABAU0AAAAAAAMBTQAAAAAAAAFhAAAAAAAAAVUAAAAAAAABCQAAAAAAAAENAAAAAAACAWEAAAAAAAEBVQAAAAAAAQFZAAAAAAACAS0AAAAAAAIBSQAAAAAAAAE9AAAAAAACAQUAAAAAAAAA8QAAAAAAAAEFAAAAAAACAUkAAAAAAAIBIQAAAAAAAAEpAAAAAAADAUkAAAAAAAABUQAAAAAAAgGBAAAAAAAAgZEAAAAAAAIBQQAAAAAAAYGFAAAAAAACAVkAAAAAAAABVQAAAAAAAAFxAAAAAAAAAUkAAAAAAAABcQAAAAAAA4GRAAAAAAAAAYkAAAAAAAKBiQAAAAAAAQGZAAAAAAABAZkAAAAAAAIBQQAAAAAAAAFpAAAAAAAAAXkAAAAAAAABmQ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AAAAcH1AAAAAAAAgfEA=","dtype":"float64","shape":[40]},{"__ndarray__":"AAAAAAAgfEAAAAAAAHB9QAAAAAAAEIVAAAAAAADggEAAAAAAAICAQAAAAAAA4HpAAAAAAABQfkAAAAAAAIB8QAAAAAAAcHtAAAAAAACgeUAAAAAAACCBQAAAAAAA8HhAAAAAAAAgfkAAAAAAAFCAQAAAAAAAgHVAAAAAAADgeEAAAAAAAGCAQAAAAAAAEH1AAAAAAABwhEAAAAAAAHCEQAAAAAAAgIdAAAAAAACwhkAAAAAAADiAQAAAAAAAsIJAAAAAAAAQf0AAAAAAADB5QAAAAAAAEINAAAAAAACAgEAAAAAAAIB6QAAAAAAAkINAAAAAAADwfEAAAAAAAKB/QAAAAAAA4H1AAAAAAAA4gkAAAAAAAGCAQAAAAAAAUIJAAAAAAADogkAAAAAAALCGQAAAAAAAUIBAAAAAAABgfUA=","dtype":"float64","shape":[40]}]}},"id":"b9a69a09-5d3c-4f81-9bf2-7a87b02bfe7c","type":"ColumnDataSource"},{"attributes":{},"id":"617bf5de-03cf-4f6d-a70c-fdec155483c2","type":"WheelZoomTool"},{"attributes":{"callback":null,"end":800},"id":"b5de56cd-7108-4b72-98b6-25a915547894","type":"Range1d"},{"attributes":{},"id":"149a0506-d448-44bb-9cb3-ee4156277d26","type":"PanTool"},{"attributes":{},"id":"22895e56-a57c-4c38-b427-ab3fb52fbb00","type":"BasicTickFormatter"},{"attributes":{},"id":"c1ea90ac-2d10-429c-91c5-4c94234c65eb","type":"ResetTool"}],"root_ids":["9a4fde7c-bec0-4a14-9bc7-c05d34044fc8"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"f97cd749-2034-45ed-a48b-c7ae46c30851","elementid":"06d96e0b-fb03-4cea-921d-eaf0d8868446","modelid":"9a4fde7c-bec0-4a14-9bc7-c05d34044fc8"}];
                
                    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);
})();
