(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("af673c8e-4523-4bf0-9e38-f91a614da56b");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid 'af673c8e-4523-4bf0-9e38-f91a614da56b' 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 = {"b382ee20-6895-4898-bd22-6827039b4516":{"roots":{"references":[{"attributes":{"callback":null,"column_names":["image"],"data":{"image":[{"__ndarray__":"[encoded data, 2666668 characters]","dtype":"float64","shape":[500,500]}]}},"id":"e702ecde-9b21-4608-b5b6-263bdf6d4673","type":"ColumnDataSource"},{"attributes":{},"id":"9621b299-e82b-4e3b-aa3c-191d87a4b7bf","type":"PanTool"},{"attributes":{"callback":null,"end":10},"id":"a0c2aca3-ae7b-4105-b7d9-d32138149102","type":"Range1d"},{"attributes":{},"id":"ac7e9d7b-7994-4972-9f12-f8801e6d5ed3","type":"LinearScale"},{"attributes":{},"id":"c544f8d7-e715-4792-b6b3-27de40021f5c","type":"HelpTool"},{"attributes":{},"id":"bdb4222c-60b7-4e8f-9e42-55298d038a47","type":"BasicTicker"},{"attributes":{"plot":{"id":"16a4420a-8b1c-4719-8ee1-bf4a5de889a4","subtype":"Figure","type":"Plot"},"ticker":{"id":"bdb4222c-60b7-4e8f-9e42-55298d038a47","type":"BasicTicker"}},"id":"0f045503-2140-41e4-be0f-36a724c76402","type":"Grid"},{"attributes":{"source":{"id":"e702ecde-9b21-4608-b5b6-263bdf6d4673","type":"ColumnDataSource"}},"id":"2fa202f4-ed62-4bc9-8bec-bdc535db19eb","type":"CDSView"},{"attributes":{"color_mapper":{"id":"f6bd4618-8957-4daa-b9bd-f0c7017d2f34","type":"LinearColorMapper"},"dh":{"units":"data","value":10},"dw":{"units":"data","value":10},"image":{"field":"image"},"x":{"value":0},"y":{"value":0}},"id":"6a0ce5ac-d4b1-42cc-8789-daa2a8b60639","type":"Image"},{"attributes":{"palette":["#5e4fa2","#3288bd","#66c2a5","#abdda4","#e6f598","#ffffbf","#fee08b","#fdae61","#f46d43","#d53e4f","#9e0142"]},"id":"eaefd4a6-90d7-49c3-add1-f7566eb851bc","type":"LinearColorMapper"},{"attributes":{"overlay":{"id":"4c373577-6b38-4bac-841e-e14a9deec557","type":"BoxAnnotation"}},"id":"e68429cd-fd9b-45ee-ada5-98fef762d4ed","type":"BoxZoomTool"},{"attributes":{"data_source":{"id":"e702ecde-9b21-4608-b5b6-263bdf6d4673","type":"ColumnDataSource"},"glyph":{"id":"6a0ce5ac-d4b1-42cc-8789-daa2a8b60639","type":"Image"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"f0ea338d-f961-40e9-ac54-8482e9ba587f","type":"Image"},"selection_glyph":null,"view":{"id":"2fa202f4-ed62-4bc9-8bec-bdc535db19eb","type":"CDSView"}},"id":"652d9bd8-af8c-446b-82a0-19b465afcb7d","type":"GlyphRenderer"},{"attributes":{"formatter":{"id":"b184a6ed-0f83-4082-84d4-ff77d844b998","type":"BasicTickFormatter"},"plot":{"id":"16a4420a-8b1c-4719-8ee1-bf4a5de889a4","subtype":"Figure","type":"Plot"},"ticker":{"id":"7e478d23-d5d3-4da1-b55e-69520b9499c9","type":"BasicTicker"}},"id":"4cf59a38-ebf9-4944-a93f-5d89af8c35bc","type":"LinearAxis"},{"attributes":{},"id":"b8b049e1-3f41-41c4-9f3a-de76a50613b5","type":"BasicTickFormatter"},{"attributes":{},"id":"a017ba96-2c61-4dee-9b44-f9f059a7b6c9","type":"WheelZoomTool"},{"attributes":{},"id":"b184a6ed-0f83-4082-84d4-ff77d844b998","type":"BasicTickFormatter"},{"attributes":{"plot":null,"text":""},"id":"32ceebb9-6bdb-4958-add7-ae8c2829d1ce","type":"Title"},{"attributes":{"dimension":1,"plot":{"id":"16a4420a-8b1c-4719-8ee1-bf4a5de889a4","subtype":"Figure","type":"Plot"},"ticker":{"id":"7e478d23-d5d3-4da1-b55e-69520b9499c9","type":"BasicTicker"}},"id":"dd49eef4-340a-494f-b085-9aad740fecf9","type":"Grid"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"9621b299-e82b-4e3b-aa3c-191d87a4b7bf","type":"PanTool"},{"id":"a017ba96-2c61-4dee-9b44-f9f059a7b6c9","type":"WheelZoomTool"},{"id":"e68429cd-fd9b-45ee-ada5-98fef762d4ed","type":"BoxZoomTool"},{"id":"8dff5f74-3171-4f3f-835a-10eab4792e43","type":"SaveTool"},{"id":"f052efcd-7f18-4209-8da5-38bd2b521959","type":"ResetTool"},{"id":"c544f8d7-e715-4792-b6b3-27de40021f5c","type":"HelpTool"}]},"id":"2cea733c-744e-41ba-b03c-3a998fee8884","type":"Toolbar"},{"attributes":{"below":[{"id":"14bdc22d-3b73-4c52-a7bf-cf668311e616","type":"LinearAxis"}],"left":[{"id":"4cf59a38-ebf9-4944-a93f-5d89af8c35bc","type":"LinearAxis"}],"renderers":[{"id":"14bdc22d-3b73-4c52-a7bf-cf668311e616","type":"LinearAxis"},{"id":"0f045503-2140-41e4-be0f-36a724c76402","type":"Grid"},{"id":"4cf59a38-ebf9-4944-a93f-5d89af8c35bc","type":"LinearAxis"},{"id":"dd49eef4-340a-494f-b085-9aad740fecf9","type":"Grid"},{"id":"4c373577-6b38-4bac-841e-e14a9deec557","type":"BoxAnnotation"},{"id":"652d9bd8-af8c-446b-82a0-19b465afcb7d","type":"GlyphRenderer"}],"title":{"id":"32ceebb9-6bdb-4958-add7-ae8c2829d1ce","type":"Title"},"toolbar":{"id":"2cea733c-744e-41ba-b03c-3a998fee8884","type":"Toolbar"},"x_range":{"id":"a0c2aca3-ae7b-4105-b7d9-d32138149102","type":"Range1d"},"x_scale":{"id":"ac7e9d7b-7994-4972-9f12-f8801e6d5ed3","type":"LinearScale"},"y_range":{"id":"6a98bba3-a5ed-4689-9366-e0684c3624fb","type":"Range1d"},"y_scale":{"id":"774d1375-d97c-42ee-959f-9ee965e1e876","type":"LinearScale"}},"id":"16a4420a-8b1c-4719-8ee1-bf4a5de889a4","subtype":"Figure","type":"Plot"},{"attributes":{"color_mapper":{"id":"eaefd4a6-90d7-49c3-add1-f7566eb851bc","type":"LinearColorMapper"},"dh":{"units":"data","value":10},"dw":{"units":"data","value":10},"image":{"field":"image"},"x":{"value":0},"y":{"value":0}},"id":"f0ea338d-f961-40e9-ac54-8482e9ba587f","type":"Image"},{"attributes":{"callback":null,"end":10},"id":"6a98bba3-a5ed-4689-9366-e0684c3624fb","type":"Range1d"},{"attributes":{},"id":"f052efcd-7f18-4209-8da5-38bd2b521959","type":"ResetTool"},{"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":"4c373577-6b38-4bac-841e-e14a9deec557","type":"BoxAnnotation"},{"attributes":{"formatter":{"id":"b8b049e1-3f41-41c4-9f3a-de76a50613b5","type":"BasicTickFormatter"},"plot":{"id":"16a4420a-8b1c-4719-8ee1-bf4a5de889a4","subtype":"Figure","type":"Plot"},"ticker":{"id":"bdb4222c-60b7-4e8f-9e42-55298d038a47","type":"BasicTicker"}},"id":"14bdc22d-3b73-4c52-a7bf-cf668311e616","type":"LinearAxis"},{"attributes":{},"id":"8dff5f74-3171-4f3f-835a-10eab4792e43","type":"SaveTool"},{"attributes":{},"id":"7e478d23-d5d3-4da1-b55e-69520b9499c9","type":"BasicTicker"},{"attributes":{},"id":"774d1375-d97c-42ee-959f-9ee965e1e876","type":"LinearScale"},{"attributes":{"palette":["#5e4fa2","#3288bd","#66c2a5","#abdda4","#e6f598","#ffffbf","#fee08b","#fdae61","#f46d43","#d53e4f","#9e0142"]},"id":"f6bd4618-8957-4daa-b9bd-f0c7017d2f34","type":"LinearColorMapper"}],"root_ids":["16a4420a-8b1c-4719-8ee1-bf4a5de889a4"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"b382ee20-6895-4898-bd22-6827039b4516","elementid":"af673c8e-4523-4bf0-9e38-f91a614da56b","modelid":"16a4420a-8b1c-4719-8ee1-bf4a5de889a4"}];
                
                    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);
})();
