(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("a9a6fa8e-f8ba-4fa9-9d4e-46ad31c30c73");
      if (element == null) {
        console.log("Bokeh: ERROR: autoload.js configured with elementid 'a9a6fa8e-f8ba-4fa9-9d4e-46ad31c30c73' 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 = {"9937aa7e-35c2-416c-b65a-6f886b7091f2":{"roots":{"references":[{"attributes":{"dh":{"field":"dh","units":"data"},"dw":{"field":"dw","units":"data"},"image":{"field":"image"},"x":{"field":"x"},"y":{"field":"y"}},"id":"d4eed6d6-bdb3-40f5-b310-dcb39bef00ef","type":"ImageRGBA"},{"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":"cc05a73e-d5b2-4386-89f6-46b8e16e7de2","type":"BoxAnnotation"},{"attributes":{"callback":null,"end":10},"id":"3b97ce2c-c27d-4acd-bfb6-05b20d1c22f5","type":"Range1d"},{"attributes":{"below":[{"id":"8b54fe65-6b27-4650-a17d-55d212636693","type":"LinearAxis"}],"left":[{"id":"a77df7eb-be41-4ec9-9141-afae1c81cc2c","type":"LinearAxis"}],"plot_height":400,"plot_width":400,"renderers":[{"id":"8b54fe65-6b27-4650-a17d-55d212636693","type":"LinearAxis"},{"id":"3882ad75-d967-4ced-bf24-e898af429d21","type":"Grid"},{"id":"a77df7eb-be41-4ec9-9141-afae1c81cc2c","type":"LinearAxis"},{"id":"7d51ff2a-b347-410d-9e10-d308867405d2","type":"Grid"},{"id":"cc05a73e-d5b2-4386-89f6-46b8e16e7de2","type":"BoxAnnotation"},{"id":"a022e5ed-53f2-457c-b599-623740d45125","type":"GlyphRenderer"}],"title":{"id":"ad6cad28-f055-4f34-8053-8664e5936c1e","type":"Title"},"toolbar":{"id":"085dae0c-fc9d-4a42-b261-a1a14a9dc1ad","type":"Toolbar"},"x_range":{"id":"b5f3c375-e769-48ee-8f0f-65216983b5ea","type":"Range1d"},"x_scale":{"id":"830213ca-6c72-4ec2-a96c-edafc1145183","type":"LinearScale"},"y_range":{"id":"3b97ce2c-c27d-4acd-bfb6-05b20d1c22f5","type":"Range1d"},"y_scale":{"id":"757e6eae-881d-451d-8790-6b3486e3e561","type":"LinearScale"}},"id":"7185a20e-b5b4-423d-a5b5-97a6950397d2","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"1764fd84-20f8-4fcf-9141-cc040b918223","type":"BasicTickFormatter"},{"attributes":{"overlay":{"id":"cc05a73e-d5b2-4386-89f6-46b8e16e7de2","type":"BoxAnnotation"}},"id":"2a901b12-a080-4947-9c9a-f9fafc34c2e9","type":"BoxZoomTool"},{"attributes":{"callback":null,"column_names":["dh","image","x","y","dw"],"data":{"dh":[10],"dw":[10],"image":[{"__ndarray__":"AJ4A/wCeDP8Anhn/AJ4m/wCeM/8Anj//AJ5M/wCeWf8Anmb/AJ5y/wCef/8Anoz/AJ6Z/wCepf8AnrL/AJ6//wCezP8Antj/AJ7l/wCe8v8MngD/DJ4M/wyeGf8Mnib/DJ4z/wyeP/8Mnkz/DJ5Z/wyeZv8MnnL/DJ5//wyejP8Mnpn/DJ6l/wyesv8Mnr//DJ7M/wye2P8MnuX/DJ7y/xmeAP8Zngz/GZ4Z/xmeJv8ZnjP/GZ4//xmeTP8Znln/GZ5m/xmecv8Znn//GZ6M/xmemf8ZnqX/GZ6y/xmev/8Znsz/GZ7Y/xme5f8ZnvL/Jp4A/yaeDP8mnhn/Jp4m/yaeM/8mnj//Jp5M/yaeWf8mnmb/Jp5y/yaef/8mnoz/Jp6Z/yaepf8mnrL/Jp6//yaezP8mntj/Jp7l/yae8v8zngD/M54M/zOeGf8znib/M54z/zOeP/8znkz/M55Z/zOeZv8znnL/M55//zOejP8znpn/M56l/zOesv8znr//M57M/zOe2P8znuX/M57y/z+eAP8/ngz/P54Z/z+eJv8/njP/P54//z+eTP8/nln/P55m/z+ecv8/nn//P56M/z+emf8/nqX/P56y/z+ev/8/nsz/P57Y/z+e5f8/nvL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z/7+epf+/nrL/v56//7+ezP+/ntj/v57l/7+e8v/MngD/zJ4M/8yeGf/Mnib/zJ4z/8yeP//Mnkz/zJ5Z/8yeZv/MnnL/zJ5//8yejP/Mnpn/zJ6l/8yesv/Mnr//zJ7M/8ye2P/MnuX/zJ7y/9ieAP/Yngz/2J4Z/9ieJv/YnjP/2J4//9ieTP/Ynln/2J5m/9iecv/Ynn//2J6M/9iemf/YnqX/2J6y/9iev//Ynsz/2J7Y/9ie5f/YnvL/5Z4A/+WeDP/lnhn/5Z4m/+WeM//lnj//5Z5M/+WeWf/lnmb/5Z5y/+Wef//lnoz/5Z6Z/+Wepf/lnrL/5Z6//+WezP/lntj/5Z7l/+We8v/yngD/8p4M//KeGf/ynib/8p4z//KeP//ynkz/8p5Z//KeZv/ynnL/8p5///KejP/ynpn/8p6l//Kesv/ynr//8p7M//Ke2P/ynuX/8p7y/w==","dtype":"uint32","shape":[20,20]}],"x":[0],"y":[0]}},"id":"71e4142b-304c-4514-8be2-8f8acc836277","type":"ColumnDataSource"},{"attributes":{},"id":"830213ca-6c72-4ec2-a96c-edafc1145183","type":"LinearScale"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"4c8c3380-879e-4ab6-b8be-57c803d690e8","type":"PanTool"},{"id":"ef0689da-5726-4130-ba01-a0c226ce8525","type":"WheelZoomTool"},{"id":"2a901b12-a080-4947-9c9a-f9fafc34c2e9","type":"BoxZoomTool"},{"id":"b323dc5f-6926-409b-b448-b6070a17dde8","type":"SaveTool"},{"id":"881bb34f-f886-4f46-a16d-577f637ea0c4","type":"ResetTool"},{"id":"95b944b7-0f88-4101-a5ab-b9616a323fc6","type":"HelpTool"}]},"id":"085dae0c-fc9d-4a42-b261-a1a14a9dc1ad","type":"Toolbar"},{"attributes":{"data_source":{"id":"71e4142b-304c-4514-8be2-8f8acc836277","type":"ColumnDataSource"},"glyph":{"id":"68832837-5ea7-407b-bc65-9d13fd9beea6","type":"ImageRGBA"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"d4eed6d6-bdb3-40f5-b310-dcb39bef00ef","type":"ImageRGBA"},"selection_glyph":null,"view":{"id":"32713393-99db-49b6-a971-673980e00c7f","type":"CDSView"}},"id":"a022e5ed-53f2-457c-b599-623740d45125","type":"GlyphRenderer"},{"attributes":{},"id":"b323dc5f-6926-409b-b448-b6070a17dde8","type":"SaveTool"},{"attributes":{},"id":"aa03f077-d2dc-42e5-a869-6a1d57f49b22","type":"BasicTickFormatter"},{"attributes":{"formatter":{"id":"1764fd84-20f8-4fcf-9141-cc040b918223","type":"BasicTickFormatter"},"plot":{"id":"7185a20e-b5b4-423d-a5b5-97a6950397d2","subtype":"Figure","type":"Plot"},"ticker":{"id":"882725c8-4c18-416c-a0fd-ca93ae75c054","type":"BasicTicker"}},"id":"a77df7eb-be41-4ec9-9141-afae1c81cc2c","type":"LinearAxis"},{"attributes":{},"id":"ef0689da-5726-4130-ba01-a0c226ce8525","type":"WheelZoomTool"},{"attributes":{"plot":null,"text":""},"id":"ad6cad28-f055-4f34-8053-8664e5936c1e","type":"Title"},{"attributes":{"callback":null,"end":10},"id":"b5f3c375-e769-48ee-8f0f-65216983b5ea","type":"Range1d"},{"attributes":{},"id":"882725c8-4c18-416c-a0fd-ca93ae75c054","type":"BasicTicker"},{"attributes":{"dh":{"field":"dh","units":"data"},"dw":{"field":"dw","units":"data"},"image":{"field":"image"},"x":{"field":"x"},"y":{"field":"y"}},"id":"68832837-5ea7-407b-bc65-9d13fd9beea6","type":"ImageRGBA"},{"attributes":{},"id":"4c8c3380-879e-4ab6-b8be-57c803d690e8","type":"PanTool"},{"attributes":{},"id":"881bb34f-f886-4f46-a16d-577f637ea0c4","type":"ResetTool"},{"attributes":{},"id":"95b944b7-0f88-4101-a5ab-b9616a323fc6","type":"HelpTool"},{"attributes":{"source":{"id":"71e4142b-304c-4514-8be2-8f8acc836277","type":"ColumnDataSource"}},"id":"32713393-99db-49b6-a971-673980e00c7f","type":"CDSView"},{"attributes":{"plot":{"id":"7185a20e-b5b4-423d-a5b5-97a6950397d2","subtype":"Figure","type":"Plot"},"ticker":{"id":"9c39b2d1-b235-4841-91f0-42b2324b40d6","type":"BasicTicker"}},"id":"3882ad75-d967-4ced-bf24-e898af429d21","type":"Grid"},{"attributes":{"dimension":1,"plot":{"id":"7185a20e-b5b4-423d-a5b5-97a6950397d2","subtype":"Figure","type":"Plot"},"ticker":{"id":"882725c8-4c18-416c-a0fd-ca93ae75c054","type":"BasicTicker"}},"id":"7d51ff2a-b347-410d-9e10-d308867405d2","type":"Grid"},{"attributes":{},"id":"9c39b2d1-b235-4841-91f0-42b2324b40d6","type":"BasicTicker"},{"attributes":{"formatter":{"id":"aa03f077-d2dc-42e5-a869-6a1d57f49b22","type":"BasicTickFormatter"},"plot":{"id":"7185a20e-b5b4-423d-a5b5-97a6950397d2","subtype":"Figure","type":"Plot"},"ticker":{"id":"9c39b2d1-b235-4841-91f0-42b2324b40d6","type":"BasicTicker"}},"id":"8b54fe65-6b27-4650-a17d-55d212636693","type":"LinearAxis"},{"attributes":{},"id":"757e6eae-881d-451d-8790-6b3486e3e561","type":"LinearScale"}],"root_ids":["7185a20e-b5b4-423d-a5b5-97a6950397d2"]},"title":"Bokeh Application","version":"0.12.9"}};
                    var render_items = [{"docid":"9937aa7e-35c2-416c-b65a-6f886b7091f2","elementid":"a9a6fa8e-f8ba-4fa9-9d4e-46ad31c30c73","modelid":"7185a20e-b5b4-423d-a5b5-97a6950397d2"}];
                
                    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);
})();
