Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fonnesbeck/ad091b81bffda28fd657 to your computer and use it in GitHub Desktop.
Save fonnesbeck/ad091b81bffda28fd657 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"name": "",
"signature": "sha256:4328937dd473936b96c94b77d9973a64ebc71b47562727b1ab1c2c495ae07eae"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Creating Interactive Visualizations with Bokeh"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"There have been many examples of useful and exciting data visualizations for a variety of topics and applications. "
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from IPython.display import IFrame, HTML\n",
"from IPython.core.display import display\n",
"\n",
"display(IFrame(\"http://demographics.coopercenter.org/DotMap/index.html\", '800px', '600px'))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"\n",
" <iframe\n",
" width=\"800px\"\n",
" height=600px\"\n",
" src=\"http://demographics.coopercenter.org/DotMap/index.html\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" ></iframe>\n",
" "
],
"metadata": {},
"output_type": "display_data",
"text": [
"<IPython.lib.display.IFrame at 0x10f9e0e10>"
]
}
],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"display(IFrame(\"http://www.nytimes.com/interactive/2014/07/31/world/africa/ebola-virus-outbreak-qa.html\", '800px', '600px'))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"\n",
" <iframe\n",
" width=\"800px\"\n",
" height=600px\"\n",
" src=\"http://www.nytimes.com/interactive/2014/07/31/world/africa/ebola-virus-outbreak-qa.html\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" ></iframe>\n",
" "
],
"metadata": {},
"output_type": "display_data",
"text": [
"<IPython.lib.display.IFrame at 0x10f9e02d0>"
]
}
],
"prompt_number": 2
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# But, JavaScript\n",
"\n",
"Most of these invlove directly coding **JavaScript**.\n",
"\n",
"Not everyone enjoys writing JavaScript.\n",
"\n",
"![tweet](http://d.pr/i/Vz4v+)\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# What is Bokeh?\n",
"\n",
"[Bokeh](http://bokeh.pydata.org) is a Python package for creating interactive, browser-based visualizations, and is well-suited for \"big data\" applications.\n",
"\n",
"* Bindings can (and have) been created for other languages.\n",
"\n",
"\n",
"\n",
"Bokeh allows users to create interactive html visualizations without using JS.\n",
"\n",
"Bokeh is a **language-based** visualization system. This allows for:\n",
"\n",
"* high-level commands for data binding, transformation, interaction\n",
"* low-level power to deeply customize\n",
"\n",
"Bokeh philosophy: \n",
"\n",
"> Make a smart choice when it is possible to do so automatically, and expose low-level capabilities when it is not."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# How does Bokeh work?\n",
"\n",
"Bokeh writes to a custom-built HTML5 Canvas library, which affords it high performance. This allows it to integrate with other web tools, such as Google Maps.\n",
"\n",
"Bokeh plots are based on visual elements called **glyphs** that are bound to data objects."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# A Simple Example\n",
"\n",
"First we'll import the bokeh.plotting module, which defines the graphical functions and primitives."
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import bokeh.plotting as bk"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 3
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Next, we'll tell Bokeh to display its plots directly into the notebook. This will cause all of the Javascript and data to be embedded directly into the HTML of the notebook itself. (Bokeh can output straight to HTML files, or use a server, which we'll look at later.)"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"bk.output_notebook()"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
" \n",
" <style>\n",
" /* BEGIN /usr/local/lib/python2.7/site-packages/bokeh/server/static/css/bokeh.min.css */\n",
" /*! jQuery UI - v1.10.0 - 2013-01-17\n",
" * http://jqueryui.com\n",
" * Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css\n",
" * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:\"\";display:table}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin-top:2px;padding:.5em .5em .5em .7em;min-height:0}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-noicons{padding-left:.7em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month-year{width:100%}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:21px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0 0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:0}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;width:100%}.ui-menu .ui-menu-divider{margin:5px -2px 5px -2px;height:0;font-size:0;line-height:0;border-width:1px 0 0}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;min-height:0;font-weight:400}.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active{font-weight:400;margin:-1px}.ui-menu .ui-state-disabled{font-weight:400;margin:.4em 0 .2em;line-height:1.5}.ui-menu .ui-state-disabled a{cursor:default}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}.ui-menu .ui-menu-icon{position:static;float:right}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url(images/animated-overlay.gif);height:100%;filter:alpha(opacity=25);opacity:.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted #000}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:0;background:0 0;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:0;border-bottom:0;border-right:0}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}.ui-tabs .ui-tabs-nav li a,.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0 0}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaa;background:#fff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #aaa;background:#ccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:700}.ui-widget-header a{color:#222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:400;color:#555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999;background:#dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:700}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:400}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px;background-position:16px 16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-state-default .ui-icon{background-image:url(images/ui-icons_888888_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-active .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_2e83ff_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_cd0a0a_256x240.png)}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}.jstree-node,.jstree-children,.jstree-container-ul{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-node{white-space:nowrap}.jstree-anchor{display:inline-block;color:#000;white-space:nowrap;padding:0 4px 0 1px;margin:0;vertical-align:top}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:link,.jstree-anchor:visited,.jstree-anchor:hover,.jstree-anchor:active{text-decoration:none;color:inherit}.jstree-icon{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-icon:empty{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-ocl{cursor:pointer}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-no-icons .jstree-themeicon,.jstree-anchor>.jstree-themeicon-hidden{display:none}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;-moz-box-shadow:5px 5px 4px -4px #666;-webkit-box-shadow:2px 2px 2px #999;box-shadow:2px 2px 2px #999}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none;display:inline}.vakata-context li>a{display:block;padding:0 2em;text-decoration:none;width:auto;color:#000;white-space:nowrap;line-height:2.4em;-moz-text-shadow:1px 1px 0 #fff;-webkit-text-shadow:1px 1px 0 #fff;text-shadow:1px 1px 0 #fff;-moz-border-radius:1px;-webkit-border-radius:1px;border-radius:1px}.vakata-context li>a:hover{position:relative;background-color:#e8eff7;-moz-box-shadow:0 0 2px #0a6aa1;-webkit-box-shadow:0 0 2px #0a6aa1;box-shadow:0 0 2px #0a6aa1}.vakata-context li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==);background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-hover>a{position:relative;background-color:#e8eff7;-moz-box-shadow:0 0 2px #0a6aa1;-webkit-box-shadow:0 0 2px #0a6aa1;box-shadow:0 0 2px #0a6aa1}.vakata-context .vakata-context-separator a,.vakata-context .vakata-context-separator a:hover{background:#fff;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;-moz-text-shadow:0 0 0 transparent;-webkit-text-shadow:0 0 0 transparent;text-shadow:0 0 0 transparent;-moz-box-shadow:0 0 0 transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context li>a>i{text-decoration:none;display:inline-block;width:2.4em;height:2.4em;background:0 0;margin:0 0 0 -2em;vertical-align:top;text-align:center;line-height:2.4em}.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:#fff;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7);background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:#fff;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}#jstree-dnd{line-height:16px;margin:0;padding:4px}#jstree-dnd .jstree-icon,#jstree-dnd .jstree-copy{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}#jstree-dnd .jstree-ok{background:green}#jstree-dnd .jstree-er{background:red}#jstree-dnd .jstree-copy{margin:0 2px}.jstree-default .jstree-node,.jstree-default .jstree-icon{background-repeat:no-repeat;background-color:transparent}.jstree-default .jstree-anchor,.jstree-default .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default .jstree-hovered{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-clicked{background:#beebff;border-radius:2px;box-shadow:inset 0 0 1px #999}.jstree-default .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default .jstree-disabled{background:0 0;color:#666}.jstree-default .jstree-disabled.jstree-hovered{background:0 0;box-shadow:none}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-disabled>.jstree-icon{opacity:.8;filter:url(\"data:image/svg+xml;utf8,<svg xmlns=\\'http://www.w3.org/2000/svg\\'><filter id=\\'jstree-grayscale\\'><feColorMatrix type=\\'matrix\\' values=\\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\\'/></filter></svg>#jstree-grayscale\");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default .jstree-search{font-style:italic;color:#8b0000;font-weight:700}.jstree-default .jstree-no-checkboxes .jstree-checkbox{display:none!important}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked{background:0 0;box-shadow:none}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#e7f4f9}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:0 0}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#e7f4f9}#jstree-dnd.jstree-default .jstree-ok,#jstree-dnd.jstree-default .jstree-er{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default i{background:0 0;width:16px;height:16px}#jstree-dnd.jstree-default .jstree-ok{background-position:-9px -71px}#jstree-dnd.jstree-default .jstree-er{background-position:-39px -71px}.jstree-default>.jstree-striped{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==) left top repeat}.jstree-default>.jstree-wholerow-ul .jstree-hovered,.jstree-default>.jstree-wholerow-ul .jstree-clicked{background:0 0;box-shadow:none;border-radius:0}.jstree-default .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.jstree-default .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default .jstree-wholerow-clicked{background:#beebff;background:-moz-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#beebff),color-stop(100%,#a8e4ff));background:-webkit-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:-o-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:-ms-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:linear-gradient(to bottom,#beebff 0,#a8e4ff 100%)}.jstree-default .jstree-node{min-height:24px;line-height:24px;margin-left:24px;min-width:24px}.jstree-default .jstree-anchor{line-height:24px;height:24px}.jstree-default .jstree-icon{width:24px;height:24px;line-height:24px}.jstree-default .jstree-icon:empty{width:24px;height:24px;line-height:24px}.jstree-default.jstree-rtl .jstree-node{margin-right:24px}.jstree-default .jstree-wholerow{height:24px}.jstree-default .jstree-node,.jstree-default .jstree-icon{background-image:url(32px.png)}.jstree-default .jstree-node{background-position:-292px -4px;background-repeat:repeat-y}.jstree-default .jstree-last{background:0 0}.jstree-default .jstree-open>.jstree-ocl{background-position:-132px -4px}.jstree-default .jstree-closed>.jstree-ocl{background-position:-100px -4px}.jstree-default .jstree-leaf>.jstree-ocl{background-position:-68px -4px}.jstree-default .jstree-anchor>.jstree-themeicon{background-position:-260px -4px}.jstree-default>.jstree-no-dots .jstree-node,.jstree-default>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -4px}.jstree-default>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -4px}.jstree-default .jstree-disabled{background:0 0}.jstree-default .jstree-disabled.jstree-hovered{background:0 0}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-checkbox{background-position:-164px -4px}.jstree-default .jstree-checkbox:hover{background-position:-164px -36px}.jstree-default .jstree-clicked>.jstree-checkbox{background-position:-228px -4px}.jstree-default .jstree-clicked>.jstree-checkbox:hover{background-position:-228px -36px}.jstree-default .jstree-anchor>.jstree-undetermined{background-position:-196px -4px}.jstree-default .jstree-anchor>.jstree-undetermined:hover{background-position:-196px -36px}.jstree-default>.jstree-striped{background-size:auto 48px}.jstree-default.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default.jstree-rtl .jstree-open>.jstree-ocl{background-position:-132px -36px}.jstree-default.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-100px -36px}.jstree-default.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-68px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -36px}.jstree-default .jstree-themeicon-custom{background-color:transparent;background-image:none}.jstree-default>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==)}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px}.jstree-default-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-small .jstree-icon{width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-small.jstree-rtl .jstree-node{margin-right:18px}.jstree-default-small .jstree-wholerow{height:18px}.jstree-default-small .jstree-node,.jstree-default-small .jstree-icon{background-image:url(32px.png)}.jstree-default-small .jstree-node{background-position:-295px -7px;background-repeat:repeat-y}.jstree-default-small .jstree-last{background:0 0}.jstree-default-small .jstree-open>.jstree-ocl{background-position:-135px -7px}.jstree-default-small .jstree-closed>.jstree-ocl{background-position:-103px -7px}.jstree-default-small .jstree-leaf>.jstree-ocl{background-position:-71px -7px}.jstree-default-small .jstree-anchor>.jstree-themeicon{background-position:-263px -7px}.jstree-default-small>.jstree-no-dots .jstree-node,.jstree-default-small>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-small>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -7px}.jstree-default-small>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -7px}.jstree-default-small .jstree-disabled{background:0 0}.jstree-default-small .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-small .jstree-checkbox{background-position:-167px -7px}.jstree-default-small .jstree-checkbox:hover{background-position:-167px -39px}.jstree-default-small .jstree-clicked>.jstree-checkbox{background-position:-231px -7px}.jstree-default-small .jstree-clicked>.jstree-checkbox:hover{background-position:-231px -39px}.jstree-default-small .jstree-anchor>.jstree-undetermined{background-position:-199px -7px}.jstree-default-small .jstree-anchor>.jstree-undetermined:hover{background-position:-199px -39px}.jstree-default-small>.jstree-striped{background-size:auto 36px}.jstree-default-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-small.jstree-rtl .jstree-open>.jstree-ocl{background-position:-135px -39px}.jstree-default-small.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-103px -39px}.jstree-default-small.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-71px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -39px}.jstree-default-small .jstree-themeicon-custom{background-color:transparent;background-image:none}.jstree-default-small>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==)}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px}.jstree-default-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-large .jstree-icon{width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-large.jstree-rtl .jstree-node{margin-right:32px}.jstree-default-large .jstree-wholerow{height:32px}.jstree-default-large .jstree-node,.jstree-default-large .jstree-icon{background-image:url(32px.png)}.jstree-default-large .jstree-node{background-position:-288px 0;background-repeat:repeat-y}.jstree-default-large .jstree-last{background:0 0}.jstree-default-large .jstree-open>.jstree-ocl{background-position:-128px 0}.jstree-default-large .jstree-closed>.jstree-ocl{background-position:-96px 0}.jstree-default-large .jstree-leaf>.jstree-ocl{background-position:-64px 0}.jstree-default-large .jstree-anchor>.jstree-themeicon{background-position:-256px 0}.jstree-default-large>.jstree-no-dots .jstree-node,.jstree-default-large>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-large>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px 0}.jstree-default-large>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 0}.jstree-default-large .jstree-disabled{background:0 0}.jstree-default-large .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-large .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-large .jstree-checkbox{background-position:-160px 0}.jstree-default-large .jstree-checkbox:hover{background-position:-160px -32px}.jstree-default-large .jstree-clicked>.jstree-checkbox{background-position:-224px 0}.jstree-default-large .jstree-clicked>.jstree-checkbox:hover{background-position:-224px -32px}.jstree-default-large .jstree-anchor>.jstree-undetermined{background-position:-192px 0}.jstree-default-large .jstree-anchor>.jstree-undetermined:hover{background-position:-192px -32px}.jstree-default-large>.jstree-striped{background-size:auto 64px}.jstree-default-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default-large.jstree-rtl .jstree-last{background:0 0}.jstree-default-large.jstree-rtl .jstree-open>.jstree-ocl{background-position:-128px -32px}.jstree-default-large.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-96px -32px}.jstree-default-large.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-64px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-node,.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 -32px}.jstree-default-large .jstree-themeicon-custom{background-color:transparent;background-image:none}.jstree-default-large>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==)}.jstree-default-large.jstree-rtl .jstree-last{background:0 0}@media (max-width:768px){.jstree-default-responsive .jstree-icon{background-image:url(40px.png)}.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-responsive .jstree-anchor{line-height:40px;height:40px}.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0}.jstree-default-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px}.jstree-default-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-responsive .jstree-ocl,.jstree-default-responsive .jstree-themeicon,.jstree-default-responsive .jstree-checkbox{background-size:120px 200px}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-responsive .jstree-open>.jstree-ocl{background-position:0 0!important}.jstree-default-responsive .jstree-closed>.jstree-ocl{background-position:0 -40px!important}.jstree-default-responsive.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-40px 0!important}.jstree-default-responsive .jstree-anchor>.jstree-themeicon{background-position:-40px -40px}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-checkbox:hover{background-position:-40px -80px}.jstree-default-responsive .jstree-clicked>.jstree-checkbox,.jstree-default-responsive .jstree-clicked>.jstree-checkbox:hover{background-position:0 -80px}.jstree-default-responsive .jstree-anchor>.jstree-undetermined,.jstree-default-responsive .jstree-anchor>.jstree-undetermined:hover{background-position:0 -120px}.jstree-default-responsive .jstree-anchor{font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-default-responsive>.jstree-striped{background:0 0}.jstree-default-responsive .jstree-wholerow{border-top:1px solid rgba(255,255,255,.7);border-bottom:1px solid rgba(64,64,64,.2);background:#ebebeb;height:40px}.jstree-default-responsive .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default-responsive .jstree-wholerow-clicked{background:#beebff}.jstree-default-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #666}.jstree-default-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #666;border-top:0}.jstree-default-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-node>.jstree-ocl,.jstree-default-responsive .jstree-themeicon,.jstree-default-responsive .jstree-checkbox{background-image:url(40px.png);background-size:120px 200px}.jstree-default-responsive .jstree-node{background-position:-80px 0;background-repeat:repeat-y}.jstree-default-responsive .jstree-last{background:0 0}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background-position:-40px -120px}.jstree-default-responsive .jstree-last>.jstree-ocl{background-position:-40px -160px}.jstree-default-responsive .jstree-themeicon-custom{background-color:transparent;background-image:none}}.jstree-default>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}/*!\n",
" * Handsontable 0.11.1\n",
" * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs\n",
" *\n",
" * Copyright 2012-2014 Marcin Warpechowski\n",
" * Licensed under the MIT license.\n",
" * http://handsontable.com/\n",
" *\n",
" * Date: Fri Sep 05 2014 12:54:36 GMT+0200 (CEST)\n",
" */.handsontable{position:relative}.handsontable .relative{position:relative}.handsontable.htAutoColumnSize{visibility:hidden;left:0;position:absolute;top:0}.handsontable table,.handsontable tbody,.handsontable thead,.handsontable td,.handsontable th,.handsontable div{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.handsontable table.htCore{border-collapse:separate;position:relative;border-spacing:0;margin:0;border-width:0;table-layout:fixed;width:0;outline-width:0;max-width:none;max-height:none}.handsontable col{width:50px}.handsontable col.rowHeader{width:50px}.handsontable th,.handsontable td{border-right:1px solid #CCC;border-bottom:1px solid #CCC;height:22px;empty-cells:show;line-height:21px;padding:0 4px;background-color:#FFF;vertical-align:top;overflow:hidden;outline-width:0;white-space:pre-line}.handsontable td.htInvalid{-webkit-transition:background .75s ease;transition:background .75s ease;background-color:#ff4c42}.handsontable td.htNoWrap{white-space:nowrap}.handsontable th:last-child{border-right:1px solid #CCC;border-bottom:1px solid #CCC}.handsontable tr:first-child th.htNoFrame,.handsontable th:first-child.htNoFrame,.handsontable th.htNoFrame{border-left-width:0;background-color:#fff;border-color:#FFF}.handsontable th:first-child,.handsontable td:first-child,.handsontable .htNoFrame+th,.handsontable .htNoFrame+td{border-left:1px solid #CCC}.handsontable tr:first-child th,.handsontable tr:first-child td{border-top:1px solid #CCC}.handsontable thead tr:last-child th{border-bottom-width:0}.handsontable thead tr.lastChild th{border-bottom-width:0}.handsontable th{background-color:#EEE;color:#222;text-align:center;font-weight:400;white-space:nowrap}.handsontable thead th{padding:0}.handsontable th.active{background-color:#CCC}.handsontable thead th .relative{padding:2px 4px}.handsontable .manualColumnMover{position:fixed;left:0;top:0;background-color:transparent;width:5px;height:25px;z-index:999;cursor:move}.handsontable .manualRowMover{position:fixed;left:-4px;top:0;background-color:transparent;height:5px;width:50px;z-index:999;cursor:move}.handsontable .manualColumnMoverGuide,.handsontable .manualRowMoverGuide{position:fixed;left:0;top:0;background-color:#CCC;width:25px;height:25px;opacity:.7;display:none}.handsontable .manualColumnMoverGuide.active,.handsontable .manualRowMoverGuide.active{display:block}.handsontable .manualColumnMover:hover,.handsontable .manualColumnMover.active,.handsontable .manualRowMover:hover,.handsontable .manualRowMover.active{background-color:#88F}.handsontable .manualColumnResizer{position:fixed;top:0;cursor:col-resize;z-index:110;width:5px;height:25px}.handsontable .manualRowResizer{position:fixed;left:0;cursor:row-resize;z-index:110;height:5px;width:50px}.handsontable .manualColumnResizer:hover,.handsontable .manualColumnResizer.active,.handsontable .manualRowResizer:hover,.handsontable .manualRowResizer.active{background-color:#AAB}.handsontable .manualColumnResizerGuide{position:fixed;right:0;top:0;background-color:#AAB;display:none;width:0;border-right:1px dashed #777;margin-left:5px}.handsontable .manualRowResizerGuide{position:fixed;left:0;bottom:0;background-color:#AAB;display:none;height:0;border-bottom:1px dashed #777;margin-top:5px}.handsontable .manualColumnResizerGuide.active,.handsontable .manualRowResizerGuide.active{display:block}.handsontable .columnSorting:hover{text-decoration:underline;cursor:pointer}.handsontable .wtBorder{position:absolute;font-size:0}.handsontable .wtBorder.hidden{display:none!important}.handsontable td.area{background-color:#EEF4FF}.handsontable .wtBorder.corner{font-size:0;cursor:crosshair}.handsontable .htBorder.htFillBorder{background:red;width:1px;height:1px}.handsontableInput{border:2px solid #5292F7;outline-width:0;margin:0;padding:1px 4px 0 2px;font-family:Arial,Helvetica,sans-serif;line-height:1.3em;font-size:inherit;-webkit-box-shadow:1px 2px 5px rgba(0,0,0,.4);box-shadow:1px 2px 5px rgba(0,0,0,.4);resize:none;display:inline-block;color:#000;border-radius:0;background-color:#FFF}.handsontableInputHolder{position:absolute;top:0;left:0;z-index:100}.htSelectEditor{-webkit-appearance:menulist-button!important;position:absolute}.handsontable .htDimmed{color:#777}.handsontable .htSubmenu :after{content:'\u25b6';color:#777;position:absolute;right:5px}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htPlaceholder{color:#999}.handsontable .htAutocompleteArrow{float:right;font-size:10px;color:#EEE;cursor:default;width:16px;text-align:center}.handsontable td .htAutocompleteArrow:hover{color:#777}.handsontable .htCheckboxRendererInput.noValue{opacity:.5}.handsontable .htNumeric{text-align:right}.htCommentCell{position:relative}.htCommentCell:after{content:'';position:absolute;top:0;right:0;border-left:6px solid transparent;border-top:6px solid red}.handsontable .handsontable .wtHider{padding:0 0 5px}.handsontable .handsontable table{-webkit-box-shadow:1px 2px 5px rgba(0,0,0,.4);box-shadow:1px 2px 5px rgba(0,0,0,.4)}.handsontable .autocompleteEditor.handsontable{padding-right:17px}.handsontable .autocompleteEditor.handsontable.htMacScroll{padding-right:15px}.handsontable.listbox{margin:0}.handsontable.listbox .ht_master table{border:1px solid #ccc;border-collapse:separate;background:#fff}.handsontable.listbox th,.handsontable.listbox tr:first-child th,.handsontable.listbox tr:last-child th,.handsontable.listbox tr:first-child td,.handsontable.listbox td{border-width:0}.handsontable.listbox th,.handsontable.listbox td{white-space:nowrap;text-overflow:ellipsis}.handsontable.listbox td.htDimmed{cursor:default;color:inherit;font-style:inherit}.handsontable.listbox .wtBorder{visibility:hidden}.handsontable.listbox tr td.current,.handsontable.listbox tr:hover td{background:#eee}.htContextMenu{display:none;position:absolute;z-index:1060}.htContextMenu .ht_clone_top,.htContextMenu .ht_clone_left,.htContextMenu .ht_clone_corner{display:none}.ht_clone_top{z-index:101}.ht_clone_left{z-index:102}.ht_clone_corner{z-index:103}.htContextMenu table.htCore{outline:1px solid #bbb}.htContextMenu .wtBorder{visibility:hidden}.htContextMenu table tbody tr td{background:#fff;border-width:0;padding:4px 6px 0;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.htContextMenu table tbody tr td:first-child{border:0}.htContextMenu table tbody tr td.htDimmed{font-style:normal;color:#323232}.htContextMenu table tbody tr td.current{background:#e9e9e9}.htContextMenu table tbody tr td.htSeparator{border-top:1px solid #bbb;height:0;padding:0}.htContextMenu table tbody tr td.htDisabled{color:#999}.htContextMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htContextMenu table tbody tr td div{padding-left:10px}.htContextMenu table tbody tr td div span.selected{margin-top:-2px;position:absolute;left:4px}.handsontable td.htSearchResult{background:#fcedd9;color:#583707}.htBordered{border-width:1px}.htBordered.htTopBorderSolid{border-top-style:solid;border-top-color:#000}.htBordered.htRightBorderSolid{border-right-style:solid;border-right-color:#000}.htBordered.htBottomBorderSolid{border-bottom-style:solid;border-bottom-color:#000}.htBordered.htLeftBorderSolid{border-left-style:solid;border-left-color:#000}.htCommentTextArea{background-color:#FFFACD;box-shadow:1px 1px 2px #bbb;font-family:Arial;-webkit-box-shadow:1px 1px 2px #bbb;-moz-box-shadow:1px 1px 2px #bbb}.wtDebugHidden{display:none}.wtDebugVisible{display:block;-webkit-animation-duration:.5s;-webkit-animation-name:wtFadeInFromNone;animation-duration:.5s;animation-name:wtFadeInFromNone}@keyframes wtFadeInFromNone{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@-webkit-keyframes wtFadeInFromNone{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}.ui-rangeSlider{height:22px}.ui-rangeSlider .ui-rangeSlider-innerBar{height:16px;margin:3px 6px;background:#DDD}.ui-rangeSlider .ui-rangeSlider-handle{width:6px;height:22px;background:#AAA;background:rgba(100,100,100,.3);cursor:col-resize}.ui-rangeSlider .ui-rangeSlider-bar{margin:1px 0;background:#CCC;background:rgba(100,100,150,.2);height:20px;cursor:move;cursor:grab;cursor:-moz-grab}.ui-rangeSlider .ui-rangeSlider-bar.ui-draggable-dragging{cursor:-moz-grabbing;cursor:grabbing}.ui-rangeSlider-arrow{height:16px;margin:2px 0;width:16px;background-repeat:no-repeat}.ui-rangeSlider-arrow.ui-rangeSlider-leftArrow{background-image:url(icons-classic/resultset_previous.png);background-position:center left}.ui-rangeSlider-arrow.ui-rangeSlider-rightArrow{background-image:url(icons-classic/resultset_next.png);background-position:center right}.ui-rangeSlider-arrow-inner{display:none}.ui-rangeSlider-container{height:22px}.ui-rangeSlider-withArrows .ui-rangeSlider-container{margin:0 11px}.ui-rangeSlider-noArrow .ui-rangeSlider-container{margin:0}.ui-rangeSlider-label{margin:0 2px 2px;background-image:url(icons-classic/label.png);background-position:bottom center;background-repeat:no-repeat;white-space:nowrap;bottom:20px;padding:3px 6px 7px;cursor:col-resize}.ui-rangeSlider-label-inner{display:none}input.ui-editRangeSlider-inputValue{width:3em;vertical-align:middle;text-align:center}.jstree-default .jstree-node,.jstree-default .jstree-icon{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAABgCAMAAABblVsaAAADAFBMVEUAAABaoVUEYBipAAA5OTkEBAQAAACFZUcJAAAECgLirGt+fn6lpaalpaW5GBhbolUGYhmqAACop6n5+fnBAgKmAQEAWxrfn2UCXhkIDQZ1d3wWhwSlAAAPcRu+EhL3qamnBQWlpaVYuC6xEBD//f+yCQl2d3wvkCQVhQbJLS3BISEqhyxVrz10x00fjwarBQUAWRMrmgyoAgLng4OtCAjvk5MPfAelBwf18/VhuUHLDAz1k5NmukkHYRaKz2t0wVmb23pesUqP1W+P0nDsZ2fUSUm1FxfnWVnqY2O0BASNAADq2p2+GxuwVzj8+PIdHRukpKThq2n////s7O0mJib+/P3enWP67uFVV1uop6kkmwD459b99tVcY3D29fb9+O3x8vHf3+Dp6Oj78ungyI337caYmZihjFU1rwACNrDx8vHT09Tw0rfz3Lv03cbp157Js3u3oWfOwJLdzKdGbUOAgonw8O82rgb35dSluaX67uDq6+ua5mfO48Ph4uJ0dnstowAyqwD78uhdxCovpgB910i38YzP9q9arkL8+/vSAADoAADr7O3S58Y5sAbn5+f249DjAADtAQGpy6JAtwU1lxuC2E2z74hPvxbV1NX99+uvr+NKvQ/36tmy6JHFwJ0ilgR41ELl5eXy9PLd3t7U1dbKAQHC1Meg3oCR1nBozDFerUYnngBgxywjihLV09X/mJjZBQX24MrxAAD+Zmb9+Oz7i4sqiR1uwku4zL2c427W+Lrs7+x7x1r58+Sv3JmOy213vlpxu1d/f7iwxbXW1tn/tLTdAAD9d3f4Jibx1rrwPT3rEBBRxBRlxDeH0mGI02KJ1WCo34qs8HhvzjjJz7iwza337d62FBRiuUP2MTHezKn/q6uDloeguqRRozrM1b6Lz2yi2IeGvm4/ohyrmVWV416c1Xui6W+/0bU7jjS98ZUxjSm5vJaXsZ8slBFSvh7/3t7/ycn/fHzdzqmww7bL2cO3nFnodXV1mHacnFB4kX+kvKuq7HuwuY6orohs99ZiAAAA7XRSTlMA/S4cWkEmAQkW/YD+/1v+NSL+/v5cR/k5F/3prEVM9qH9+27//fzZ2ayEYN3t2LQZ6avdnPrZg/ro8/rVIunV66/o0PLQV/v50hJqkwX9/////////v////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////m1ZoxUAAAH80lEQVR42u2ceVjTZhzHCwXaeiAoc865TSbqDq8d7r7v4w9bwmjLUZ6uUFlKW8BRIqgoOEZBiYgKniBT0LlNcYrXnAdem+50uts5dzvdfd/vm7RMHn5JWUInxvcDNDzPm7xpPnyTvG/4gUrVtYwLcvvppru/PwJJIIEkkCSQJJAkkKDEBGq4z4BoJL/5CRy5ubnZDyowgXZ9716xsb166WN76/V2qB0Ti9YRa/dhB/2l+UhJyVFgAvVWDwftoWlWD7TTFo/nOYTHY6HBdq+PpmOH9bBAozGNT2B2jvISqC+kKQrJs1gsXgsoaPK2yTNnzpyMgAVSGNpSvWLLkl9BgSkpxglcACVHUN+JdRJkJEzfiQQK9K+JbZjBsjOwQhpMWF/qs5rSxxFfPr5thhnY96aPDrNIYPXKJSteX3kBsItcJG4Cpy8jQ2IC9ebA/hLkpEhG/7EN7JQpbCEXIlBg4fZJn9eUlpbW1GwvBPbz/taDW49QVPWHm1975dVVoaDAjJTcNKxPWGCgA6QCZTDBJCuBMvqPbbBarVMaHkYKaQ8ocMe8TychNs/bUdi3Q3PUxUvfmLfxSPXGJ0tKXv7gfRUsMAOnMENGAr2UPcDxmWQlUEb/WOAyZBCFkIYSaC7c+Rhm6ZPfrAIEDvi4dtGcl8reXpSZmTm3Cfw5ZiNx2XwAM8ZLPUAvmyd+fAET2P4D6l+4ne8fbkcCl+9GBqewLOWBBdaWPF1SUjunchV0Cv8+F6mbUzlt2rS5TTQsMMPJCXQixgclgQkcwUugaP961upw7F6GFLIUnMCy/PzKysr8/Pwy8Cay6+vp06dPnTp1QxO4PfLnznJmY39ut3t8sK6BMociMvrXsw6HY/5qFEIrCwqk+iQlJT2FvpLKKEgg/dUzuHXDJnB7rSonA4lzZ6e43enp6VITaFYFV6CM/jmB2CG6l8ACQ5J8hMACHV89U1+/4Ud4e50ux4nEuXPEBXbBOFCWQJVcgauXr57vsMID5YkhIX3QR0jILnCgbXE4/jhxfBPyxwLtuvAcd3ZubnpOSnq69AR265kIZeFBkzFQEMtPNfBAEZzqWVm2YVMTi7ECpzAWiAgg8AzGrjdj+uIXgYcFZh+SHiZoI8ZzKDaB/xe8RuLhND1tIhBIAgkkgQQCSSD5EQWpnSSQQBJIIAkkCSSQBBJIAjug4SAJBElsB9BuMBh6cKBvBNrbSBTeT5E5LzUvz6S8BCa6bG0wgACDbX3B84jiBcVpNgPU7q8PPHqs2iD8BuypeQ6TKVWBCSwwImy4gtSbBgks5usDcYFgMSjQyHeA6wN/g/aQymEyIYFoKf2div3yNqELEijev3ACGWMyk1zAOVwPCSzw1wdu2VYACfzio5MMMihcH5gaj/FSeQtN8UIR7EQCzaIHmCA7SRL71yQyyQzjMwgKfNNXH1hasx0S+MnWg1vrjMY64frA1PhHMPFiAjuRP9HylYSA1W3jgtS/5txZzFokMLmgwGgrBgT2WOyrD/xz3k5AIF8fWFfH1wf+rJIoMGAC7ZRX/ABN8jIouX8s0OWahRUajQICl/L1gbVlxo4C29UH/mRQBSmBeaw30AF2OELxksD27VD/p7YLFyBqzl3retHpWjsLGwQEanos3vnN04jaykxIoOqTf+sDj6YZTlsC5VYISu4fJdCV5TNYACbwzVX5HJmwQMNhX33g3ENGW9AS2H1LBJFAZ1ZWltPpcjFMMXgT6eMvb4MF2v7i6wMPMYyQQJ6iIN6FuwCJ/aO7cBYHNmgDhzFtAkNggVl/4/rAOrw9PJDmB4KpRQsT0EtwxoFdkkGJA2km6913f+AcukCBtolccSCuD4SucYY0p/PkieN1aCzEwNdAlRWD/C1sNdkpBc5E0hasX4BAkzFwJsIY/dgYSCA69ZkvDmF/jEtkKmdqbS1qbTWZVUoj8ZSnAYkSHhZ09mHCLnwSm1Lt5HkgoTtCEkggCSSQBBIIJIEEkkACgSSQQBJIIJAEnjU8wC+0JIHSGHJVJF5EXnWhwApahMj2up4cYYq3HHXn5aC/X94biwxGXvTtRbBBrS4iQidiMIz7rauF7anwBIbetmUJYHBI+YH9LWMjI2/cs+c72KA2gqLCI7TiAr2UI76nMoN3we03c/m7A66fu7q8quLAupaWljVr3ttzGXiKhlMTxQzyCaQdtLenEhM4YOTBW8eg/N2C6+dGdKif06gHlVdUPLt/377vW9ZcqhYQ+KiYQV6gl3Y4HOEKvPDh+rmbxoSOxPVzw4H6Q436yvKK2c++sG7dvkvVGiGB2KDQdZAXGOelKTpMeQkccAWunxtxPa6fGxUFrqK+v4ozeLda4C6LBSKDEaICcQi9SrwT97/CXz83KhRe45wb9nIG74qUKPAhv8E4BSYQGTyfr5+7JErAX0x5MzY4+537IlWSTmFOYFwcelHmWLD/+bh+7hKh/A1tbCxvbt5bUTH7nXvvkXQT8cY95PWizzNY4LgABuvrrxHIn+rat2IayxtHjy6vqjqwX8owRhPWz/+nLvFKnY30PzE8VOjw1YPfiom5Mjp6UGNV89VqSQPp6yz+/2Cn0ASqNAOihNvUg4cOQuLUg2IGw8OYgFM5zxMY/J+0lT8fhgxGnxOtaVtIeJgQ1q8fSl+/M/oUlvvHpKcs/jvhRQMHDhs2sAgRriL8d7Q6ne48BFpoz8oEEggkgQSSQAKBJLAb8Q85csYKBm7vjAAAAABJRU5ErkJggg==\")}.jstree-default .jstree-last{background:0 0}.ui-rangeSlider-arrow.ui-rangeSlider-leftArrow{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAPpJREFUeNrE0zFqhVAUBFCL7ElEEBQsXmErWtnZWImF2Gih6FNEfKCoBGMMUQhEULKjrCF1JjsI+j8kxbSnuDOXA8DdE+5PgLIsM0rp100ApTRL0/Q7DENcBpIkqfq+x3Ec8DzvGhBF0VPTNNj3Hdu2wbbt80AQBK+MMez7jnmesa4rTNM8B/i+/1mWJbZtwziOYIxhmiZomnYOcBznI45jLMuCtm2R5zm6rgMh5BxgGMaDruvvrutiGAZkWYa6rqGq6rUjEkLebNtGVVUoigKyLF+vUVGUF8uykCQJJEnCTUMSRfHZMAyIooibp8zz/KMgCPi/Z/otPwMAtKTYr7dLeeEAAAAASUVORK5CYII=\")}.ui-rangeSlider-arrow.ui-rangeSlider-rightArrow{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAPlJREFUeNrE0ztqhlAUBOC/yLoUfKBga2WpKBYKgp21+ncRuYrPK0FtxBRCQCwsXEvWkDqTLagJpJj2K+aceQB4/CaPPwcopV9t2z5vA13XoWmab0LI8xZQliWO48AwDAjD8PUykCQJ9n3Htm3Isgye53WXgDiOsa4r5nnGsiyIogiapo2ngSAIsCwL2rYFpRTjOML3fSiK8nkKcF0X0zSBEII8z0EpheM4kGX54xSg6zr6vkeapqiqCrZtQxTFd5ZlX04BqqqirmsURQHLsiAIwnSpREVRQAiBaZrgOK6/fEZJkmAYBliWfbv1SDzPg2GY5v/GdDU/AwDyYNzeUSg0WgAAAABJRU5ErkJggg==\")}.ui-rangeSlider-label{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARcAAAAwCAYAAAA7DT7uAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAGapJREFUeNrsXUuuJNdxjTB6M1qCliGJ1B4FCvYyPPaIhgUQBASINkSZI0MjxvGg7ufE72ZW9SMly5WTfl2VlXk/8T0RN0J/+OEHyPt6X+/rfX3w9U/vJXhf7+t9vYXL+3pf7+stXN7X+3pfb+Hyvt7X+3pfb+Hyvt7X+3oLl/f1vt7X/+Prk0AE0kSjVYS/mv/lj1XH3xifq4hCBHwX/VDH7wD/8PAq+nR+h3ocxWvSFLQa3+FSFQHPoHjyuKceMa3PHOu6/fFJOd85zuLRh1+VP+axK63eXrvx6dgTtx86/kZDCrye1aRv0NLd7x97Vq91vRXVBl+tRk8zxwVIz2sIQAoaDcPc+ysFl+37xY0t31+NfXIRinV5jH7/e6Sv9TVubZ/+5S//DaaUNRBiK0lMvIcibuCHwWn4T0ksOgilompdQiYJN3TEOhZcJ/Pwdwg8qfTeiluCMJzvTVNO7NtvmSMS+PcqEQtOu+g5vSKkLSvyvdX4NInzYv5O2GkSp/W+xP1A+cb5bBUEZRClmniNIdV6ohTOji15fRRSy4rNGUy+3RqudZ/7pzoeDUc/jtKUSDMpTbcqXthERS9Ri+bRrbFJM/BEdLKe18jZtJf6/fffo6AuybJCk4Tkze4Y3PNxEA+VQdDYM5UFwtYQwkao4syUSbqfZHe5IK/IioPIqhlfWi3HP9He+rw0O+TCNI2386SK/ejYzT2ns7K2paJj8+pH8u8zd3jroFobz5kVZVemGAuaSF9RVKK1Q9QruGpdCn0crc2Kb8QJQlaESmOdEu2xxqhFl+cLVlRhhKUCnXP68/d/xpnBr5XmiV7lpiVc8ONxQM++qxdb93/piOvMzovjtHDobq/vEz7EDYfpvIfdfY2JdpJNtZV3dDLvz/rgPklyLTqp/8qLz79nSwRPuoKXowqWROViywv0LC/Q/zO/+wQzAXSZSdUg2web/wLEggBE14qrf9C6e7900i/SW+sZuY+iO6PVVHF+JI8zjAHpnUGwoHgnivsE4dfq3g/Vi4eGudAjEG6HVD76+Lt5Beizreis3P211+PFUH4U3MOBub5+Pdu5zQFouaSlFoLW1MvrcGaNZr3dOueXLxs+WqUotFLDPziNxU+A1nN/DnefNpw7fT+yRFSvB4u9thh/623hMpkAxEogN2C808iUUyX3xkQ0ugz6ID0Mk9eNim1JwA3W0/E2XbUSACwrlAh9riGwHDG/XSeq3QTjga6wbxU0E1T+Y+/gwO7oJz0EMIkbwE9Fec5jvcdvFpw4/PiH+b/nOP18dhcFWwqBLXPyzUFA5b7JHDYhZIk8cBEQiL83B857eYwxCnmniNZKjCdZAQ6Md2slUYkbtvXgGRVR/zDDLPphIYjlVmyWAAlVrFV70InuxZ7jt+2/T6rySkJpDcZzYY/7dK7DXlOd/GlMpXO6KHBFbBoZe7VoZNCXio3FsaRkFx8PKQ5eZ6XnBsBEv/vuPzFBVBdNWf+hAUeZGMw1HHBoGX7qlhEDQNWgF4crsQh44Q2F/8ULTejcBGY9MyxXU5z8pGcuTAgMMHsBgdpESVhBBAHZT4+40AbNdREIFl4gJUDscC7aq/X7uBMekzuaycoAHgtyJ/T8WkbsRR1OxbaOOustR/AiieZIIVtrTt86ga2bpktEgty0RWsIigAZ/3GwjUPRB+NtwHrjMkRj0LFG8HuDrFgdzsb8gsiDcY08NqMn3IqQ4G3RkEs/gOhpMHBkUZeSGvdJwKH+9Kc/4ZZ5ePoKAae6Zdp7sBOvvLdzZ8ZiaGGC3xsfCH5+9urN+ttr4hhBvWGlzw/l+nM8+eDGab5rM1cmfGkeam2f6/m5ypaZe1SgCZC0bVzici9eWLMVDZsKc8mX+8/p6fHg0ukVzff0quTIl/sSYI6I2n0CbNsXZCtPzcM6UyHZVwPFwACxFQGYmgDJnVsfTWlnLPFlWTh73ipqHqAjetlRnokdgc1y70/CadCApqhu92RYcwjh6m3GxxgiXDRI9TGvaVZL8PunlthW/9CQ6uctsKDLEc3LMudICk0iw52AQtTIfI+41ZIVYx8BZx3E0OCyUNUeVrV4jcumIsbmPayrbbku9Y0dRWJsatGE4LHPQIrdgtynqU2Xth8ut003ILpUhu3ykLvIlpqxQ6kigK0Q83R5tqXgGdCWW2gLbpl/qLMgppVLcx0PsU3wK4qjoNSDsc7q0EIKKSCG48m1Q7TuIbasM/L9g2eLtZ6yXSqIQEz0j3/8I6J01RZ06wCjC+kabtOalq+TcqQBv9jPvTOe1nrqwbz23UH7qkaWu2f9OA+i+OwY8bmp/FSSjBtun957RrdOp8jUNck8vV/lcwuVES2XS6t14B5o6EicinJZXiVQndzNBNofgNfDItUWRQfqHtb2OSO6gDAKvqbvPpklVTM0HlxuhkPIlybHjorohuyV75ufWEj8HBTC+MuOeqpPA1jWFFktTgrDRQQ4Z2GCzfxOxoOENJVIxhGWD8t+raqzbnbmsQoM29oCxGImZ5Or89DmQ7tD91rMXIRl6VCyXxwrYR1b427StzgOGRqdgdKJL2gAgudnxqjJxAbUAY6O/cCsqNtKkO3Tz8Vf2OWkBwYYgmckZL2wfW2CYGmoA5g3/6mz2uZHZqCEPuKmqd3nkGiNAXHsPpNBbfHQ4yGWghMMomM9l6OvWsSsoYQcEWi3sMEMRo312GDyskoN5A1M3lf62Zz3w3uAy/XZXoKIjucTRPLtt99CigkfoyqqNQjAv08hPG21RVINblMrK6UZm0bksZiLC+1pY4yBgDfWBvDjS3MgxBPiI24lLkNriZBercH3u6HRnAtYhv+rR/URFz9+9JkP8ExYAiPxfdGkcGODR25bnA0+CztiAT4k1q+911gBfzmsD9M3qnnwMyWkA4fETJVMW23qb8NHnJOkd7BA0hpa8ONpLVKCWoFRffPNNzjhY3U04WzY3TFxtY5KeqtjaUc5ny25GG9nsjtNc5UUF6M15byLzOB2DJspBNdj77/LubOdod2uQ5GKfkxrbwMPOVFOezjwmIxYnyrL9FPRTU51V2ddnOjlLl10CaBdFvWJIEKw02MazbpnHvVnplRwwRP5nmqN8zEHDcc0etr4BJgYfOC4cw9cqLLIRzdO8KdQsnM9RsjXsF0dc2DhzKkZT4NlTzMATcbgpbqof0p04vyTFS4Ucil46XSHdbfXpw9zl0KtNnMhxDboHUzqTTDkkkVB5FIAZh4BEx/lx6zQt7mwt1DOyRKG6pPdhFxeqI4F3xkmMzy68jYc0qDk6tHCYPhYiApC8jsDalAxprHhBCUQfApwde6MUJo/AkhsGo1Pda6gOwqgSnlDlvDrnAm8KQZNXInDxs7VoUTLFI5XbI+F9sonL/qzf9twZBd8umSet4Hi4G84oqIFCguXIhKVrbq10D/8xx+Ks0XwYlTEuyPR9K9cjmhSVRRUhS/TfdEVKWRxyjeoXCu/KQuPEe2zc93YTq5V4d4UWbRJvpch0DBHlIjiBdZeJJ/owTZF4L7q35gpCj2juOzWIeYrBBPdh/6KMyCarPetqWIYMuTha05Yq1UtMZE71BVdzuCasMkX3b2V/xFcZ5HCfQ7Yitv7wFPgJEwtXKOY0FTwjpOYWrsrUsgFt5Ma3HhvmHwy2M4AnGHC9RtjJI8yc2mxQIlJgcDTaVb4wSw5bIRvJP+T9CDzK/jAJHwmIzHvCpchgIMrTDtjlOYSqh5rYHscGy1ziWErJGh8qjYY1RYS8hzPnfIr4KNGEEqI0xzhQxHvt0GAFgDkRStk0VCI0iUtQvIhQRJIaoPYOVMY5pMRyTbKpzgxTJVA0E5Y7HvcfCMeNHPjbeyhRbMDBcY1o6gmRuvnD/zJGsd6Nz+DhO8O0c4Qt9+Xpd+xgx3xIKOz6di8M6ysaREC9wlv25UFdE8OfJzSUvTCgdiIRJeP8SAehyBgWAY96L9//TXkBubi3Zoa4/X+YcC6g5bSI7YTkse0PrpzCt4hhP9U7uAadTjTGzIImcM8vphdoNc4SIe/Jc9WgwC/F67UE0ZbKScOoldnj5rkMh98v5tGcP4870wMAe9ckHIPHBNoi41C76U8ME2q+gMlPpTt3ykXaQwaI2FNqsJVxgCOdJBTDvQI03tLXfXEc8VayAhFowEbyxg/xIXUIMWRofBXAs5DCvrcBnOnU4og1jU2loSVDQFjcj55zR50nF86rS4bQ8mFstg6yWCg0bhEsgeVhS3En7ph4w7l8f423rczB8rzf16RI8yZrXKkvA+h3+kNBYALgWgiTTmNokTDsGotkLg5WuvXqAKGKzUZabLKmjEgKMlK3ea0CeelBkA1jhNJFfQAs4WZiOTT23yvM8To2QYPQMd7K7D8keciRRw+MEQUObgi5FgfRSkknhhaZRqkFcIeU228BdkXAJpEaSKVDeCL/oS/DTmqwYCWBuKwq0hCjAq54lR5PViYpMiIanALgyPT1H/pK9z56IE/mBis8kL1xAognO9gFViuWWl0ghcFhGAp0rLfidrWaA+uV7CYZ17r4ccI8RUeQsUnLm9JqioEoZSC5rVy+THhGe68pHeOWuHeAetSRJlQgPHr3YQSD+GS0ziqGoxg5LjAU6FXloYHXhHimVYYV/HgGNeygPq0ZiUg2vnaC1wLc7TapCyJXCQxryeufUQiZNyv5DrEja6EqO4ImTsESOYRVlwumxaQnOqDSKS6Iy2uYFPBQHwPCmVTx13HCF1CGKer76iYSj5mUIVh0QQ+l9sDLPWkFR1Smr4EeuIyBH5vs2WgURHTsGyslS905R0TKeIAPuWG9t8tqY61QUozA1UcqMq/JtgwmUXqDrY6y28pU2RHj6LEa92NLReYz4fKx76S5F+hvTATmD8TkQRJGfTwK5WMPMoLYm3awp8jjoniLKy2tVU1JeDFcKkwEZo8wt/gEgCQeDYVIWNxAnDwNEPh3ogOBKE4Qs8oCNupchQCpXA4r1LzKrvKCYjwdQqcWEayrDj+V2lSHzodD2uSb/KRQm+Zbucxl8hk8s8CyyuJdLJeQnWAR4rvVjaUVZ5Mdqvq55b1LdPiIOx1Ve4jxlHUKByOnAMjjYEAOmEuXelStcUbjCN+sh+t1uIF4ULq8go7dGZeQ0V/QRqtDvHm6zE7h6IEyOZeucjO9AuQ4ynBIuYqDFtTJxGR7elM6Ynmh6P8rOFnzsqDyKwhjhChWXP3QqqHQhEsUjoYl3IzgiBoq5jTUQpBQyPZbt22lnWVU0lAPQ5BaioNQICHi2TYjqBV5eDUKLg5LW/y2RoTv4I9W7ddd8TR5bUU2YnrQGuHP/H5BamtqdIbsD61DQ4FguNbRL+z4Z8efZ/1Z3x+1ScDAvLFEvHaA8to6ta2sHhSgM6MBLQCDv8v4NY4+Si02qHSeZ345PQczU6RC4tbSiws01BUjmOtCASphslwFFO5+JDkGGBO3obEnCF2cIwStummdo4qalz3qdltnRtK/neJsdVWbIqQB2G63YYwgaIgVlU3MwU0qrq9JlLXXY1wrfVMWVkButM+auHgv5spjRn0ax/exKoQjATJh+26qAmZVxh+kTnLJR75VjpantITG1TQPAO6BYzM2fUs6T5wFsVFuCi2XCB5ga6aHA49VEwuAqjz+P12r2AMq586IniVjaI0RdJMqa+KuU3ncGPKVZELl5AFk11PWwpsQorDriCUZqEVbcHzK80cMRcr3IYgiJ+tzNMekceB3roK9dg+lZz64BT0fYzTc1mKLhaHQmkiZN/HvdAQo7fGzPT4kN8f3aHoUPJqnFq9tQtt9sPV/Zl4zr1pHPx9K7BZCT+5ddZD7GpDqb4I7mXQtBX4T8NnkM8CeBt9QZMnLipnCOsFxYVAvV+R+qK9RNmA6k6DqUrro7e2Up+cQsixe9M3AXKJlL2CtC6JpNdiPPeTxVuBW3f573bF7cMeNJCHkiXzyezHQMT2nGw4IvqFf3BnQker5oXrlVL/He7RZrB0B+cO8zmO6/bRuJrw8ErN9kIKq3hEsOeU8/DlGAf/mE1tG1p1ZfbPvX1aS6+0ZGLqvnW4QdNnhi1de5I+pN6z1nUrBL00SuKUx3AMAiil/1/SzMXiayNBLwHTq94Wcugp0fvVTwmoo3n7hAYtG3R9lNR75jd605R5sifM1TF3iJzP8+KsiU99Q/DsGtnHCKwnr4WDfO7zX5nCHcV1qwrbzR9fHOEfmMuTD/kcS+CV/Ta5Byr/HNepfWLrMz9bSOGK6c+J23eggOuOax9lNXZme9DQ1kS75K7AebFf7JXv/ILghTxDrzdfcLtE3xM/eElo3//BTqL7HC57euLv63XNeMa2nihy+KR6/DzzxrcmuYET/MSE74Xfz0GYrzLJDfzlZxnb8494Wbj8Y8mKJ81V/G1X6apvIX6uZfksK/+nWZu3DvuYFSoNwyeJ6zMsl59ZJf892Q7PtJ37vylCP29jLn9ydbZX/xEJ5++OFn5qgOEgXH6eTasq0t8Zzv3uAD+FVsOHBLSeL2n5IqM9sZW9U/OSeXXjhrYX7hNj7CJ3zzmJH8eIr/Q0unQqP4S+2s/KDgmfx0sXlgs+VGlUx+/tmYniJxJqLcE+q7HRVJab70A4QxLf/blW0WHMrpBWL7Dt5mPrfM9XmQo/oX77WzlJeFpIrdIGx6qB0tZjuVrAHmFLjdqfEyQFv2olXJ6WXLgvUKzwwdv3fSbQ3RVs/BCiPxC+b6V6pbGvraIPJepqw3AzqHS5H2jrenyWFfcBkeljhsOLNPKK8rKbmFSVyVD2nLqxb9eFuk9l0Ps1jCql+rnrW8TFl58y4Ysq4fz3R2RynI7rnFIknjVvT7VZOsLvik89G72/LTCr83kfbrm9tlFHgj9E69O/el0k7K5QuNPb4SXFeve+QzRdRJ6q0NfdcIoF3qErub2W5xMx/PtPZqZeEFy3JWil4GqeXrS6eIKau0W/amvQMeKqF9OVC7jYOU8kOwlQU4t0pE2VZtMlaQIS7F3z8+I9qa6zdEf55Zg9UHUP7s6ApVzVUM2iy1RJ7UhIUxu1q40NuK7G7mrS3CD6qBCZtu6W3Cyr+IUxWjf2KoufuK4sMtXkcnY8Ua75QdjHNvaPfdVU4d+Kde1kwieYBRzAenjNaZPJDKEaBbV5KA4Up82tqsLtSW7qw3EiXJi4ltyzgJQG9KNuWWKuD5HhpvWjm1HmET2hei1x/rG2sVBZAlsPlFDpXlLBJVSuCDGcyOlEgy+6xT+lGkqJy3bqhaq4asGhTOgo0gQqO6GuFxeXj5gFw6yoOTO6O4qvaKh0ZMUaM7Ys6UjEqdTeg6X1bN/CgotpxnQXjrckODUXao/MWwqvURcF1+7UqtTHVQMHvVmJ7tF8ijOEeEK5C72n0nSqIp/MsE6tLsYLzZxDo8pVzXzXYdknYkPtqdUXZ9bQiNXa/L8kLmjRZLGcUHlA3e0p1bxgGpu7W5P6uivrJC0RwSqhsVpZYvdiWputofA2AgPNMif2IDxqUZsq6rG3u6qymS82tWqaiKvoxocGNZQ3iNLbYv8igTw8YX8CkntNUS+n5E9w7525bLMVKPtqi/FGYa1dtV5XFwMu5sTlImydZR3jTXVOQbW9fD0gB527introOP4DlduloCSWiifuqswCtcqgi9V6jtmgeJVu+yH+B3Z83ZC0X+L0IZVXNG0rZxnPy1zjea3YMaksaU9kJrUlSVjlzFhziVQWIG6bcVKgO4kRAvtXkIp5knEGIu0Ks8RwSo12BotJlb/31ksu6xJOgtNbQHGBLvH9ShO86jqb9mxnZYCLx73czEub22rs4hy8RwKs4BObu9iTRR9WdXHBum4XsJcFNk3wtoSLVg21N9aU+8hBAtMHmahyWpyrq5HDpHamCQE3peZLZzTAWmVX//mN7/659///l9WSYfR3uNXj8+DsJtzYUvlIWBcq1FmeJBymKUo2QZy/XkslaJkxkk1cZQMfi6fSF3S9l5bMCuNLDvbDeKcdRyLifne00K0umkHIWg3lCRcfRLa21HCcyqwJYxiwTBdvZcmzzhH0YgWZougMR/jwvNjL21ZiurbDFF/Lh/JnbRlq4kdAbpURIjn6YrgmNMecJtGSm7B3rYmC2ps9WAQcUyzqnaCa40itH7YnfY2s88hWV2Z2tUunS8yImoavyH38mUT2fDQ6qsCslDdkN1YfbscZE1g1B5xzcCmBWDiGlfRWJ0VabT2zGEGsirE/y42cDN4QQmvtZ0uezz33379xRe//P1XX/3rDLV/8cWXvxSR/wIQiowXJSHA/ZmQm+uJcHHfvVdcCBfEuLR9650mrmHXEnS852rsI4/KjE39OUMoeyp7DKn1RWhgl1tP7Pev7c31XbAqq8XQMNdOZvLYi/AYplH9H/HFi1zxXOoRtaxfiKWT64P+uDdU7HXt9ny7LVPJ7Rq6JH1o3LQJwcyCi2+6viFKfWN2UHcLHrYAVxvWptsvCxd1ElmWyF10NBeL006o2QU5UiTghpu1ijUhES3r/1VUmpvCuU6T+/CbuvQBrMZbEhqYLcMXvi/R6pEk3KOHvo8An5lvQC9MQx6ZUaO1cIXOk0b+HxH57osvv/zFV7/73ddf/va3vxCRv4rIX+1Hc/3YU9sTkGWg1J4jxS7haSk2GJNNK8L9rIpQaJRb6tZs06Q5/jSJTYBl7YUXasuIhddlnraYjLBogXtyiecKuje4SyJUvTGGo5FLQK9ibyKx1hJbaQq/jkvpSujUEHqSaRL2vh4O0+z/DgDf5xFKOa+IogAAAABJRU5ErkJggg==\")}.tableelem{padding:2px 10px;border:2px #fff;background-color:#E0E0E0}.tableheader{background-color:silver}.bokehtable table tr td{padding:2px}.bokehtable form table tr td{padding:2px}.bokehtable form table tr td input{padding:0}.plotarea:after,.bokeh_canvas_wrapper_outer:after,.bokeh_canvas_wrapper:after,.bk-sidebar:after{content:\" \";height:0;display:block;clear:both}.bokeh_canvas_wrapper .resize_bokeh_plot{position:absolute;right:40px;bottom:40px;width:40px;height:40px;padding:10px 0 0 10px;overflow:hidden;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAEnSURBVEiJzZXBioQwDIb/XQuF6U3wCRSEvv8zeFOoB2++QD14aqHSOntYtthxdHesDptTk4Z+hKR/PqqquuNi+7wa8DYIWTplWSJN0yDBGAMhBJxzhyFBJY8AACCErGKv2u4L1lp0XRdVBfBLTwghuN1uUYBNiDHGn4uiQJZl50GmaYJSCm3bou/700BBT4QQAL57IaUEAOR57kEAMAxDHMRaG1wuQc45aK1fBqwgz+wHpJSCUuoayBJ01P6/djHG/jR1hzWDMQbOuZedvak7XAljzAMe/xGlFEmSeP9wJVv/SGsNzjmcc2iaJg6yBbLWghASqHf0dEkpAwl6thpOGWGl1O46iIZQSsE5Dxp9OsQ5h3meV/FxHP05erdaa1HX9W7OW2TlC31ceRWbb5+AAAAAAElFTkSuQmCC);background-position:bottom right;background-repeat:no-repeat;cursor:se-resize}.bokeh_canvas_wrapper:hover .resize_bokeh_plot{display:block}.bk-sidebar.bk-logo{margin:5px auto}.bk-logo{display:block;background-repeat:no-repeat}.bk-logo-notebook{margin-right:10px}.bk-logo-small{width:26px;height:26px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAVkSURBVEiJlZZ9jFTVFcB/5743O9/srsuy7iLLhw3WooUFtUpbkab+UfsHxtAgtKVFq4QYRVJrJDTEpBsT0mojjSU2JNAGUhRb0CZNmhjb0jbGEldWKoXWCC4bhl32c3Z25s2bd+/pH+PgsFIWbvKSd2/Oub/zcc+5V7iWsW9VO0Z+DnwN2MG6w89Pp6KqAMhVQ168exnXNe3EN8up6jrgJaLEU6w/EE4H8v+fwBu9zDGO+Kws0QOHFnX1W/MynrQiAlVlAzxObHIu7ya/w7LSxJXs/IxHb/SyAtgGzAdiKV/sliNf6DheviFBewqsfipsLNiYY2BxD+XGfq6/bpJM5mOce401q9+r9+gS0B/e50ZV/gLcUFtL+UxseLOr72xD+yJaEhC5TyCVACe/o/8r8/BnfJnmLKRTNW8vABtZs/pQDWTqQZ5hXT0EwIMTuVKyl7hAzRkTfkQ4/F1OfyNPpm05HbMgk65BAFqBZ9j/Wuyi8/Wbjk0wZ2owY3Ayssnz+F41/bi3mJy5hpEnVjK7cRNtjYJnwLmpWWjHY8FlQScGieeL4Netpg3HiKcdngCum9h/v0nxB5ZW83Wy6XNE7nKQqo1CvDa55NR1RKazf9SRTVA1UiGwXh/JeBkJv8/aw78G4MCHJ2mZfQejhRSqs4xGHU7sHMS7FTE3o7IYISBVnKztLQDh3ozxlF2B0Q27MqXjDS1u6cKZUHFgHXfev4R3LmdybSzcc/aRsFjpCibLphJFzdYEn7fGztVQn5rYdufueo+etcKjSWfYNJY6tT1WONqcYOPMDHmn9F8JUo2vzcVT3q9izUlc5LBhEhc6wnLlp+07PziVe2LR3yTcm/k28BvAKNCgUioUzIYdt4zf1ZXlwY4WbrlrPkPTsW462LdF4AXxLgYKZxVn7Uci5j4J92ZOADfXK8WcnDmPPPCLpfnUHWWO3/8l8tN6BSx4/dzBWKmyunbERARFQTlqgLcRLinditF5s3A7nlvCP64Gsn357sTOxu8tn/vBu88GTeljuGo9qWqt9m43zrmtWO1BAU8++cD63BvuzTx3NZ7MT88w4wu++Mu7n//jtrwf/jjMpvPitF7kJybxUHHQDdmH3GAlpyMhOhFByUFFQdka7smunw50buhsKuE3ZOjoXLv+vh+t88fGXwnTSSfVTvHyyW91bjcAiaeDXntBHrfn/MGon3/b85Xfu+Hybkrll4Ry+3QgD1oiG83LJLKkZneu++rWF29LDI8FlVTiILAZ6jIztOK2Jv/60b8qdOKkF8sJjeS4+HpGGlwO1QGvKV50g0SNh05OAow0b1oVL/Yv3HHryqNJJ38WBARyA2cYakn37H+v+x4VJqCuM/gdIykgIdCE0RX4rJB4ndm+l4tGyyVtzG0E3hxpenSLavRCZMdfDbxYLukiFMWIobG5jfB83wWMTDD14lMIBexn4iKAMWhQabdu7BXeXjk8MqPzsIisUlcm1IFS0tklNXHnHMlYgta2zoCBOjtrP4HqcFKkn/qaMtXbNJooqC2P7/f+tOFVk/T30FBcDHGclgk0avIcbVPtyzSk++rnF/t0+4HTqmg3fNpyXBBRGS5gR/WY/86DkUmbfVWIIGIgmqRgEjd56O1T7tBh59y++oVLunfzb08fGVu74F6MrNVydKMdK2S0lG7z/7NymUSpLvyA2oYKaCVP4MU/h8pZoABEQA742TM9T/5zagauOIpoLMg+tgsvfLgmLmJAoTD5fmFYhx57femTfzdRxfjYytaeH35cr3/Nz62Rpke6gaeBGAiq0b8KwYeb55aPvHUlvWt/11VhDwPdQK910ebW/J5T0+nUQP8DlJ5h77VoIjIAAAAASUVORK5CYII=)}.bk-logo-medium{width:35px;height:35px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAf9SURBVFiFvZh7cFTVHcc/59y7793sJiFAwkvAYDRqFWwdraLVlj61diRYsDjqCFbFKrYo0CltlSq1tLaC2GprGIriGwqjFu10OlrGv8RiK/IICYECSWBDkt3s695zTv9IAtlHeOn0O7Mzu797z+/3Ob/z+p0VfBq9doNFljuABwAXw2PcvGHt6bgwxhz7Ls4YZNVXxxANLENwE2D1W9PAGmAhszZ0/X9gll5yCbHoOirLzmaQs0F6F8QMZq1v/8xgNm7DYwwjgXJLYL4witQ16+sv/U9HdDmV4WrKw6B06cZC/RMrM4MZ7xz61DAbtzEXmAvUAX4pMOVecg9/MFFu3j3Gz7gQBLygS2RGumBkL0cubiFRsR3LzVBV1UMk3IrW73PT9C2lYOwhQB4ClhX1AuKpjLcV27oEjyUpNUJCg1CvcejykWTCXyQgzic2HIIBjg3pS6+uRLKAhumZvD4U+tq0jTrgkVKQQtLekfTtxIPAkhTNF6G7kZm7aPp6M9myKVQEoaYaIhEQYvD781DML/RfBGNZXAl4irJiwBa07e/y7cQnBaJghIX6ENl2GR/fGCBoz6cm5qeyEqQA5ZYA5x5eeiV0Qph4gjFAUSwAr6QllQgcxS/Jm25Cr2Tmpsk03XI9NfI31FTZBEOgVOk51adqDBNPCNPSRlkiDXbBEwOU2WxH+I7itQZ62g56OjM33suq1YsZHVtGZSUI2QdyYgkgOthQNIF7BIGDnRAJgJSgj69cUx1gB8PkOGwL4E1gPrM27gIg7NlGKLQApc7BmEnAxP5g/rw4YqBrCDB5xHkw5rdR/1qTrN/hKNo6YUwVDNpFsnjYS8RbidBPcPXFP6R6yfExuOXmN4A3jv1+8ZUwgY9D2OWjUZE6lO88jDwHI8ZixGiMKSeYTBamCoDk6kDAb6y1OcH1a6KpD/fZesoFw5FlIXAVCIiH4PxrV+p2npVDToTBmtjY8t1swh2V61E9KqWiyuPEjM8dbfxuvfa49Zayf9R136Wr8mBSf/T7bNteA8zwaGEUbFpckWwq95n59dUIywKl2fbOIS5e8bWSu0tJ1a5redAYfqkdjesodFajcgaVNWhXo1C9SrkN3Usmv3UMJrc6/DDwkwEntkEJLe67tSLhvyzK8rHDQWleve5CGk4VZEB1r+5bg2E2si+Y0QatDK6jUVkX5eg2YYlp++ZM+rfMNYamAj8Y7MAVWFqaR1f/t2xzU4IHjybBtthzuiAASqv7jTF7jOqDMAakFHgDNsFyP+FhwZHBmH9F7cutIYkQCylYYv1AZSqsn1/+bX51OMMjPSl2nAnM7hnjOx2v53YgNWAzHM9Q/9l0lQWPSCBSyokAtOBC1Rj+w/1Xs+STDp4/E5g7Rs2zm2+oeVd7PUuHKDf6A4r5EsPT5K3gfCnBXNUYnvGzb+KcCczYYWOnLpy4eOXuG2oec0PBN8XQQAnpvS35AvAykr56rWhPBiV4MvtceGLxk5Mr6A1O8IfK7rl7xJ0r9kyumuP4fa0lMqTBLJIAJqEf1J3qE92lMBndlyfRD2YBghHC4hlny7ASqCeWo5zaoDdIWfnIefNGTb9fC73QDfhyBUCNOxrGPSUBfPem9us253YTV+3mcBbdkUYfzmHiLqZbYdIGHHON2ZlemXouaJUOO6TqtdHEQuXYY8Yt+EbDgmlS6RdzkaDTv2P9A3gICiq93sWhb5mc5wVhuU3Y7m5hOc3So7qFT3SLgOXHb/cyOfMn7xROegoC/PTcn3v8gbKPgDopJFk3R/uBPWQiwQ+2/GJevRMObLUzqe/saJjQUQTTftEVMW9tWxPgAocwcj9abNcZe7s+6t2R2xXZG7zyYLp8Q1PiRBBHym5bYuXi8Qt+/LvGu9f/5YDAxABsaRNPH6Xr4D4Sk87a897SOy9v/fKwjoF2eQel95yDESGEF6gEMwKhLwKus3wOVjTtes7qzgLdXTMnNCNoEpbcrtNuq6N7Xh/+eqcbj94xQkp7mdKpW5XbtbR8Z26kgMCAf2UU5YEovRUVRHbu2b3vK1UdDFkDCyMRQxbpdv8nhKAGIa7QaQedzT07fFPny53R738JoVYBdVrnsNx9XZ9v33UeGO+AA2MMUkgqQ5UcdDLZSFeVgONnXeHqSAC5Ew1BXwko0D1Zct3dT1duOjS3MzZnEUJtBuoQAq3SGOLR4ekjn9NC5nVOaYXf9lETrUkmOJy3pOz8OKIb2A1cWhJCCEzOxU2mUPror+2/L3yyM3pkM7jTjr1nBOgkGeyQ7erxpdJsMAS9wb2F9rzMxNY1K2PMU0WtZV82VU8Wp6vbKJVo9Lx/+4cydORdxCCQ/kDGTZCWsRpLu7VD7bfKqL8V2orKTp/PtzaXy42jr6TwAuisi+7JolUG4wY+8vyrISCMtRrLKWpvjAOqx/QGhp0rjRo5xD3x98CWQuOQN8qumRMmI7jKZPUEpzNVZsj4Zbaq1to5tZZsKIydLWojhIXrJnES79EaOzv3du2NytKuxzJKAA6wF8xqEE8s2jo/1wd/khslQGxd81Zg62Bbp31XBH+iETt7Y3ELA0iU6iGDlQ5mexe0VEx4a3x8V1AaYwFJgTiwaOsDmeK2J8nMUOqsnB1A+dcA04ucCYt0urkjmflk9iT2v30q/gZn5rQPvor4n9Ou634PeBzoznes/iot/7WnClKoM/+zCIjH5kwT8ChQjTHPIPTjFV3PpU/Hx+DM/A9U3IXI4SPCYAAAAABJRU5ErkJggg==)}.bk-logo-large{width:75px;height:75px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAYAAAA4TnrqAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAABNHSURBVHiczZx5nFxVlce/576q6uqq6q7e0t0habIRgQScfEBAJ4MLo4gogY9CAkkIApElCqOCI8IAKriMg6MwoqiBgERMIJEECCoIKKIYWcImS9KEJCxJOr2kt1rfu2f+eN2d7qS7tu4Efp9Pf7rqvvvOOfV759577r3nPuG9hF/PmQXmZEQ/CkwEtqLyV8Q+yPz7nn03TFLVgc/ybhiwD+469WiQLwOfAmqHqbEb1bWo/JCFa148kKa9t8hafuqVGLkWCBVQuxvVy1mw9hf726x+vDfIOqMxzCdm3U4sPK/oe1V/wIK1X98PVg2j6t0m63uzx2O95YyLn0BlFKwtRcrPmb/morE2bW8MJsvsb2X74PsfmoToAwScEwgFAM17ywi4kLtO+78xtCwvDixZPzjuGMQ8CRxFwIFgALRksgC+xF2n/WyMrMuLMWmG9zxLRQjGIYxjGFc5tJLsOX8+/Ij1LbX/g2gDVqE8BI3VYEdFVj9uYf6ai8dC0N4Y3AwDpQpZs4GZYjgVmCNwEBAFIsPV3ZXFa4wmo2QDEMr6hcGSVe8L8S7il0sitM66l2Ci1S/UXqz2kEgYKmKdTJray+lzukejpmiLVz9NNBjgOoRLASdffQGs0tOTDbyO0WkDF8rGiCwnk6FnQged0xcRTC4aKPcdopfaWkNNdRtepouVq5pRfQbVFZw1d2Oxqorqs377DNXBIL9H+AoFENVvc9CwvTVV9iLSN+oZ6euvijV3L5hsM11Nt9F+pIs6DAi0FkSgujpK/bhygsGJwAxgDiLfwpiXWLnqTn5z96Si1BVacd0GAo7DauDfilEAINDd3FnxGkb9Dj3ggFMQ1yPDZO6h9cjraX//SYidgFhftrVQXg4NDVAV90nbdxAJAgsx5klWrPpowSoLregKF4vwsULrD4Zj2NKbLOtA1H/4AQeMKXUk9Ah2XcimT19BYuJ1ONnJgE+SMVBTA/XjIFzml+XWMR7ht6y458hCFBdE1r0bKBfhskLqDocywyuo+LpUIRQAp6SBeBOBnuP5+9V3E3bvx7hNA94UiUBjA8QrfW8qPNCtRmQZd63MO90qiCwHPgYU1b4HI2R4hUxwC4r/9EuJr1RvoXzzUTx30RYan38O0RkD3lTb503BYCHeNByOxphT8lUqrBkaPl2s9sEYF2ETGccftgUIOsV07i2ozmfB2ot5+gaoeesh0ElDvKmy0q85qgBXFuarURBZIkwZhRWp2nq2EvKCoOAU41n6R6x+hAVrf8MNP6qi+uUHsfYIHGcsvGkohKNZsbw8V5W8ZH34mwQzLvVSeqy/E2gj4AZR/P4qv7As8A3a3E+ycO2r/PDGCpQ/YPV4YrE93qQ6epL2oAYNTc9VIW9kOLOJirdaiU+q952iBNteF8Hlu24YFEJBvymOLOdFVJewYO0TACy5KkA2u5RQ6FiqqiAW9WuVtlKRC2WINOSqkNezGuLYzl681i4/liwWqmz1NXm9gBJ0GHlKqrcAsweIOuPcIJNqfkUsNpfGBqiIjbU3DUYAqMlXISdCIeJA3a5OqIxAtAy8Ih6qgL8M7Ho7CQVdAk5wnx+r+g7IpSxYu3qg7MabY4isJBY9mVjMLxt7b9obORXk9SwRykWIWgs7OsDT4pYqFPw5mKcOASME9oncH/Y78TWrh5QKh1MVL6eiYiOqqf3kTUUhr2dpX3dsDHQloLUTGqvALewhewov+Z8sOI7imP5lmTToNSTlBs6/b19pl37xKeAElq+qxrF1iEwGZoAciXA40AjUAZUFWTIGyEvWG0HKJmcJO/h9VstuiIUhEs7fKlR5Wyy7AD9iLws6fReeBZawYO36vBYuPL0D6AA2AQ8PlC//dTmB0DRgKiJTQN8HchjooSCNFDjRLwZ5yTq/I3Tc47EMGfG1uxa2d8DUhpHmqHsgwitzjiLha3KEsqBB9Zdk7OWce3/XqCxfuCCJ77UvDZQtXSZURCpQUw8cBnIEwmHAwYP+giMLzd3Wc5KVWhaZH0o5N0UwyTWxlDUQdQx0JWFXFzRUg+flUN3fXwGEAq9izGc4a826XDpHhcXnKtDV99cMPDDk+jNX19E2oZHuimNxAx9AZCb+wmUVSB0BN5NL/IhkpZZFFojIHR7qHJkKJjyrq1dVpY+PWaYYgZZOqCz3V4e9kZ/HawOfvvbEDmC/EHXQT1+emOnNzPLSWqtWRVURI2qMGHHMeFQCoiYrv5OsqHFVbJ2KdYCXbTDb7oYyh9hAts64gY92wX0j6RmWrNSyyJlGzJ2AKJAVjcxKBz+yrce7fkPEvb5MaHA92L4bJtePGGMqyhtjQ0duROJl4Ug8fKebtlVu2sXLeHiuxctarKeIKCoW6V/pGDSciw0QSgZADYj9cu33n9vYdsWsW4bTs0/okFoWWdBP1ODyrGHSnN7yU7Ien3LhZcdAZy+0dvmR/TDoPlBkNS+Y1uyEnEvClSFi4yLEJ1RQNaGCqgkx4uOjRGvKCUWCmIAgBtQq1lPUKqqKiqLGQ0UF5KfV39swZzg9QwhJLYvMM2LuIkf8FczKFytmdq+8so1/oEw1BqaPh7LQPqPj5myGmZ87htRYEFIIDl259XaEc6Av3hEZcHtVnxwvY3EzLm7a4mU9vIz/fwiEXuvZE3f/11F/G3ZHOn179GhB/gLknHkDGsw4x5w+uXPnB9I86lmmxyMwpWHorpYqT5w6i+NH+fuLwrTlr9cEQoH1wCEj1RERMH0bKZ5irWJdi5tyyaY9vIyHdS3W1R29HcmTkv993PP99xqA5K3hqKgsIz9RAJINeatXvVjX3g3HO8ITnYl9m6MIL5T6o0vF6wuntVu155Njmq6qqOc3QwQcxxAMByivClPZGKW6qZKqCRXED4o1jp9R99tD79l2UP+9BsAxznkIBa1D92FStib1s++ewk5VTjPCUzt3QzLjR/q+VRS91TQW2DRvyuOKfqegyoOap1qfRLWKE3QIRYOUxUJTQX/aX92kbi2vQuS8oq0SFqWXRRddeSptBj6RdvndO+0MPFPlwHtWP1Kkvqmqfyn1/sEECnLqoXdvXQhgjGOOB95filARuTF1W2z6FXPo3LaLOZ29rGjtBseQQXmrVGNHi21zD/Osp58Hdo+FPBG57JCVWyoMyL9SeoJIlRGWJW6NOUu/gHv1HSxo6+bB7iTJujitY2FoqWieP2Wzqn51jMTNckTOMKo0jUqMMNsxXAvAvdi3Wjm9tZPzurpIjoWVo8HGeZOXKXrnGImbJ+llsZtFWDIqMUpW0U+Undv75zEybMww7e7N1QGcZ2BUmy4Au4zAk6O2SAiKyM2p2yoO2NpSLnx1+lUnXdB0aRPA63OndljPfp48q6AFYJxR1T8B20YpCGCmiD2gmXgjoSZas7giXPH4/PrzDgfYdNaUx1X1+tFJ1S2m7LzetzTHTLsYiMiizO2x+WMhq1R8+7DrTNAJ1MXL45MrwhX3LWq8cBpAWtPXKTxRqlyFJ/rzD24CesfEWuVHqdvKp46JrBIQCEerrdpJZaEyqiPVh4QCwYcumHjJkVvPPNRV9EL8ta5i4aGy3ACUndu7yaq9CsEPIkaTPCnUG+Ms7bmtesyXdQs0oB5ostZSFa0iWhadaoXHvtB0yfGb5k5+2ap+pViJCus8Yx4ZiK/C5yZu1KS9R3usvx/cT1z/n1AMiR8LSuaA5KnvDRXbRN/6uyDUxGpwjKkVZM1F4y/60KZ5k29TkbuLEJlVa7/VfPpEd0gwmlqX+LzX4v7R25HFbs9iW1x0t4cmFXXVH0+MFESeiHw7fXvsgK469On9YP9nq5ZwIEx1eTWK1miw7KEl9ReeuvGMg+epSHMh8hS9fOO8yc/CXpF7/H4S6tqFePYFTSnaY7HtHnaAvCy21UW7PDRpwWMPaYM90Icjyi8SS8MHNJwQlSH5CopSFamiPFSOVRvzwuFV/xmcd+LbH2yai0g2j7ibXjtj0k39X/aZ5kSvd3ci+jkMu4YQ4OF7WKeLbfWwLS7eO1mfyA4P7bJoSsFlMHmHOcHATXvr2K8Qjhj8VVUREWqiNRg/ny7Q2djw4JKDP9vYW199lY6Qk6Dw89fmTvqPwWXDzgnLr3GbrbWfVHQXjgWjezzHkT13eYqmFN3tYXe52B1ZvB1ZvO1ZbKuH9lhI23NSS6N5c5/GAtf8y3fiDHOqzKqlPFhOdaQaqxZEnJ7xB635zJnfkGyk/A9qhtKg6E82zp20z1GXEXd3ot90N/ReFb5I02W/wrFtUpZ9XkLuDsAiqhjdLtCDNSG1EkQlgJIm472JxdFeD/XJDWrUvD56KvIj7JS/D6gf7pqqEo/ESWQSJLNJCARCgXTmO8f+4Pa7/vG1c94MpDNNxvUAfr5x7uRLhpORc9+w9+EjHg5N6ehEqEKZoWg9Vl5Q2KiJsiczOyu2jn96/bu2FNMSO3OWZ3sC4xMPPA0gKk0IZcPVVRQjhppYDdt3b0dR3HAoMO6lTXNnLF+3c9PnPo4XcH7W/NmJI86Tc5IVnLIrjHEEqESoFJiG0eMEoDJFeWWK3YdMfRNhm8JWVDcBL4C+qso7mUymu/Hed3Jsw5aO9qoLL7Re7w3JTMs3gacBVPRQyTFE9zfHqkgV7T3tiBGy5eHwwX96elKoJ3H/vfd/MeeCQu7teykguhKagCaB2Xsy+sSCdoTD4X/uPmtKM8g/VfUtYKOqt6Vm5baSF+VaK89vMMb8WOBMqxlct71i0OWcmXvge1g8EieRTpByUxgx2GCApseeeizfvWN4gGYIjIjUAh8G+TD07apAj0igveOsqTtR3Qg8L8Ir1upWYGfNyi0tuYS2Vy4+ESO3AFMQg+t1ASoA35v1Y+MnheSGquKIQ02shh2dO1AUQUhVV7bTk/ve/UXWSIgBMYGDETkGWABgjICwbffcKW96vdk7ate99cvBN7VULg4GhOsR+RoDni5Ym0Dpa+WiFcBhhRhh1RItixIvj9OeaMcRBwrg4kCTNTyMoGnvYLc3Hde099TgS23xxYeLyE+AE/aUCqoWz0tC3xaJhzvBIZAzzXEwrPpzx0QmQdpNI8g7ec3Mc33/Hgvu6+O8rjSZtsTr6fbEcfWPtjzXf7ktvvhiEfk7Q4jym7S1CaxNIQSMX2ZmFaNaVXGMQ22sFhFB0bz9aD7PSgBjP5r1ba1rxsXrzOBl3Dc81z1p4vrOZoC2qsUHifK/iIxw2NzB2hTWpkCc8SgIganFLoZaa4mEIsTL49rS1ZJ30yZnheoVW7sZo+2kAYiAgtedJtuWxGay3cDZBz3R4RNVef6JgvxpZKIAFGsT+ORI2JfLzFLMsWqpjlRnmmoO7shXt4CcUn1VkJIMGYI+b7IpF68ng2ZcUDoQTmt4bNdf34wsCkWCoWtF5Mr8wiyu1wsYHPUyAKo6odQ+w4jpriyL5T3lWsh+4SMl2jDYGt+butK47UmfKJGUBjKfqX+s9fG2qsVHRUNljxZGlN/feF4XIDh42VPmrI+P5siMopvTmeSOvD8jryTLOqC0s8VC30jnkm1L4HWn+z3Mw0kvaPhj59/a4ouX9GXvzC5UqGra79xFcHDTkzvfrkMZV5KNgCrPXv3SFfmWa/KTVb3yjW2qOmwmXE70901dKbJtCTTr9R/RyGhFy8k8vHtde+UF94jIzYxwEH14sQbP60HV9b+j1Q3d22YiMuycsDCZ+qtC6hW0be9lvWsV/WthmgEj2Ey/N2X6ksoEjEUj7fND913dFohf8AJGTy9I5hDxBtfrHSDLwxkX8tIfKPlIgfKHbzz71YL2Tgsiq271tqRm9GRFH80tTcAqbmfK75v2eBM4bkKtXBt85OIZWrlzPcL7CtE9FIJisV7vwHeLMSpOMelSg9FmxSs4H6LghJCa1Vu6rJc9GfQaVPdN+hDBJl0/HOjJDJQB4GRTdDTeF1w/bzah9LcRLXHnR7CaxbMp+s8EKMb05boXizbgs1c9e/nLhWsvAe1nTKoXx5wuIv8OTEWp83rStV5v1oJGh5wnFIvZNSVhNh/biZMd7+c/lwa/v0rR1f0U4GFU6Q3FNj4wc/5E1wQjRgsLSlV5CLVXXPncZRvy1x3Dtxy1njW13HSn49nWRFzKjMWYGCJRQGwo3eC0Ns1wmj/0rb7U6VHpEnHIZHbR0/s8IgEC6tISG88j00/rdU3AGLXD/R5L/0EC1ccVXX3lhst+X6jOMXm9Sj/qfrM5CSSBEeKUTtoqZjeL4y0v5Ahrbgie103/M/bEIZxJfNfDrnUFDQxHluJa67599fNf3zk63ft7ojwIbfHF80XkDkbxgESC9PQ+TyazE5GAp/Clafpq8WFNEXhX3p9V27n0LlV7dukSBNUsnpcASKnaM/Y3UXvjgL4/q7bz1hVW9WxKWMnoD0atzWxX7EnT2HjvfjAxJw74m9nqOpcuV9VFQLq4OxVV3exp4tOHsPldyTA88K+xw2+SKB/HP+ZWEKz1VgSdcbOn80be4X5/4V199eau+OJaB5YgcjbD78x4oH9W1VtqO2+950DbB++Ft0nuhfbKL0yyhk8JepIohwApFZ5BdVUy2f34xMzdRTbZscNgsv4fCI1BY5O1DJEAAAAASUVORK5CYII=)}.bk-sidebar{box-sizing:border-box}.bk-button-bar{float:right}.bk-button-bar>.bk-toolbar-button{width:30px;height:36px;padding:5px;position:relative;display:block;overflow:visible;background-color:transparent;border:0;border-radius:0!important;-moz-border-radius:0!important;-webkit-border-radius:0!important}.bk-button-bar>.bk-toolbar-button>.bk-btn-icon{height:16px;margin:0!important;border:0!important;background:transparent!important;display:block;position:relative;z-index:10}.bk-button-bar>.bk-toolbar-button>span.tip{display:none}.bk-button-bar>.bk-toolbar-button>span.tip:before{display:none;content:\" \";position:relative;background-position:top center;background-repeat:no-repeat}.bk-button-bar>.bk-toolbar-button:hover{cursor:pointer;background:transparent!important}.bk-toolbar-button:hover>span.tip{display:inline-block;position:absolute;transition:all .6s ease;-webkit-transition:all .6s ease;-moz-transition:all .6s ease;-o-transition:all .6s ease;z-index:-1;font-size:0}.bk-toolbar-button:hover>span.tip>*{display:block;text-align:left}.bk-toolbar-button:hover>span.tip:before{display:inline-block}.bk-toolbar-button:hover>span.tip{z-index:20;font-size:100%;color:#fff;font-family:'Open Sans',sans-serif;white-space:nowrap;background-color:#818789;border-radius:3px!important;-moz-border-radius:3px!important;-webkit-border-radius:3px!important}.bk-button-bar>.bk-toolbar-button.active{background:#fff;-box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;outline:0!important;border-bottom:2px solid #26aae1}.slides .bokeh_canvas_wrapper_outer{overflow:visible}.bk-plot-above .bk-logo,.bk-plot-below .bk-logo{float:left}.bk-plot-above .bk-sidebar,.bk-plot-below .bk-sidebar{height:36px;border-bottom:2px solid #e5e5e5}.bk-plot-above .bk-sidebar .bk-button-bar>.bk-toolbar-button,.bk-plot-below .bk-sidebar .bk-button-bar>.bk-toolbar-button{float:left}.bk-plot-above .bk-sidebar .bk-button-bar>.bk-toolbar-button.help,.bk-plot-below .bk-sidebar .bk-button-bar>.bk-toolbar-button.help{float:right}.bk-plot-above .bk-sidebar .bk-button-bar>.bk-toolbar-button>span.tip,.bk-plot-below .bk-sidebar .bk-button-bar>.bk-toolbar-button>span.tip{top:45px;padding:0 10px 5px}.bk-plot-above .bk-sidebar .bk-button-bar>.bk-toolbar-button>span.tip:before,.bk-plot-below .bk-sidebar .bk-button-bar>.bk-toolbar-button>span.tip:before{top:-8px;width:15px;height:9px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAYAAAA7KqwyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo4RTI5MEY2MTJCQzcxMUU0OEE4QUY0QUY1ODdCNzBBRCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo4RTI5MEY2MDJCQzcxMUU0OEE4QUY0QUY1ODdCNzBBRCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6N0Y0M0E0Nzk5NDIyNjgxMTk3QTVDQTY1REE2OTk0Q0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6Yul7GAAAApklEQVR42mJsbO9kwAMqgXgiEH/DpYAJl8T///+LgVQbEM/BZwNWA/79++fGyMgIc1ok0LBSog348+ePKhMT03IgkxkmBjSsHWioBzEG8DAzM68D0kJo4swgQ0GG4zOAEejURUDbdHC4VgBo+AYgzYfVAKDmOqDmQHwBBpTXAlkCYqIYAPRfAFCynoEIAFTnDzSkAdmA/0D/rUc2lQhD6kD6QBggwAC17zQQECx2+gAAAABJRU5ErkJggg==);display:block!important;width:auto}.bk-plot-below{padding-bottom:45px}.bk-plot-left,.bk-plot-right{display:block;margin-top:45px}.bk-plot-left .bk-sidebar .bk-button-bar>.bk-toolbar-button>span.tip,.bk-plot-right .bk-sidebar .bk-button-bar>.bk-toolbar-button>span.tip{top:4px;left:40px;padding:5px 10px}.bk-plot-left .bk-sidebar .bk-button-bar>.bk-toolbar-button>span.tip:before,.bk-plot-right .bk-sidebar .bk-button-bar>.bk-toolbar-button>span.tip:before{top:2px;left:-19px;width:9px;height:15px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAPCAMAAAABFhU/AAAAA3NCSVQICAjb4U/gAAAAY1BMVEX////////8/Pz5+fn39/f19fX09PTv8fHv7+/t7e7s7Ozp6enn6Onm5ubj4+Ph4eHf39/X2drW1tfMzMzAw8S+wMGusbKorK6orK2nq6ufo6WcoaGYnZ+RlpiJj5GGjI6Bh4n1ho2QAAAAIXRSTlMA//////////////////////////////////////////9G9E6kAAAACXBIWXMAAAsSAAALEgHS3X78AAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABR0RVh0Q3JlYXRpb24gVGltZQA5LzUvMTTY+fXxAAAAUklEQVQImTXN2xZAIABE0VQUIfdLwvz/V1rL1DztpzOi4EoIQoekNoIaH1AL8EvvoExEUkBWfWZZvyWVzq/vL6kbP9/sKdtPF8vKdMPBN1m5AR+0BAnD6uP50QAAAABJRU5ErkJggg==)}.bk-toolbar-button.pan>span.tip{left:-19%}.bk-toolbar-button.wheel-zoom>span.tip,.bk-toolbar-button.preview-save>span.tip{left:-105%}.bk-toolbar-button.box-zoom>span.tip{left:-80%}.bk-toolbar-button.resize>span.tip,.bk-toolbar-button.select>span.tip{left:-40%}.bk-toolbar-button.reset-view>span.tip{left:-85%}.bk-toolbar-button.hover>span.tip{left:-48%}.bk-toolbar-button.help>span.tip{right:0;text-align:left;white-space:normal;width:150px}.bk-toolbar-button.help>span.tip:before{width:15px;left:46%}.bk-button-bar>.bk-toolbar-button.active{border-bottom:2px solid #26aae1}.slides .bokeh_canvas_wrapper_outer{overflow:visible}.bk-crossfilter-selector{list-style-type:none;-webkit-padding-start:0}.bk-crossfilter-selector li{display:inline;margin-bottom:10px;padding-left:10px;padding-right:10px}.bokeh_canvas_wrapper_outer table{border:0!important}.bokeh_canvas_wrapper_outer table tr{border:0!important}.bokeh_canvas_wrapper_outer table tr td{border:0!important;padding:0!important}.bk-bs-container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.bk-bs-container{width:750px}}@media (min-width:992px){.bk-bs-container{width:970px}}@media (min-width:1200px){.bk-bs-container{width:1170px}}.bk-bs-container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.bk-bs-row{margin-left:-15px;margin-right:-15px}.bk-bs-col-xs-1,.bk-bs-col-sm-1,.bk-bs-col-md-1,.bk-bs-col-lg-1,.bk-bs-col-xs-2,.bk-bs-col-sm-2,.bk-bs-col-md-2,.bk-bs-col-lg-2,.bk-bs-col-xs-3,.bk-bs-col-sm-3,.bk-bs-col-md-3,.bk-bs-col-lg-3,.bk-bs-col-xs-4,.bk-bs-col-sm-4,.bk-bs-col-md-4,.bk-bs-col-lg-4,.bk-bs-col-xs-5,.bk-bs-col-sm-5,.bk-bs-col-md-5,.bk-bs-col-lg-5,.bk-bs-col-xs-6,.bk-bs-col-sm-6,.bk-bs-col-md-6,.bk-bs-col-lg-6,.bk-bs-col-xs-7,.bk-bs-col-sm-7,.bk-bs-col-md-7,.bk-bs-col-lg-7,.bk-bs-col-xs-8,.bk-bs-col-sm-8,.bk-bs-col-md-8,.bk-bs-col-lg-8,.bk-bs-col-xs-9,.bk-bs-col-sm-9,.bk-bs-col-md-9,.bk-bs-col-lg-9,.bk-bs-col-xs-10,.bk-bs-col-sm-10,.bk-bs-col-md-10,.bk-bs-col-lg-10,.bk-bs-col-xs-11,.bk-bs-col-sm-11,.bk-bs-col-md-11,.bk-bs-col-lg-11,.bk-bs-col-xs-12,.bk-bs-col-sm-12,.bk-bs-col-md-12,.bk-bs-col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.bk-bs-col-xs-1,.bk-bs-col-xs-2,.bk-bs-col-xs-3,.bk-bs-col-xs-4,.bk-bs-col-xs-5,.bk-bs-col-xs-6,.bk-bs-col-xs-7,.bk-bs-col-xs-8,.bk-bs-col-xs-9,.bk-bs-col-xs-10,.bk-bs-col-xs-11,.bk-bs-col-xs-12{float:left}.bk-bs-col-xs-12{width:100%}.bk-bs-col-xs-11{width:91.66666667%}.bk-bs-col-xs-10{width:83.33333333%}.bk-bs-col-xs-9{width:75%}.bk-bs-col-xs-8{width:66.66666667%}.bk-bs-col-xs-7{width:58.33333333%}.bk-bs-col-xs-6{width:50%}.bk-bs-col-xs-5{width:41.66666667%}.bk-bs-col-xs-4{width:33.33333333%}.bk-bs-col-xs-3{width:25%}.bk-bs-col-xs-2{width:16.66666667%}.bk-bs-col-xs-1{width:8.33333333%}.bk-bs-col-xs-pull-12{right:100%}.bk-bs-col-xs-pull-11{right:91.66666667%}.bk-bs-col-xs-pull-10{right:83.33333333%}.bk-bs-col-xs-pull-9{right:75%}.bk-bs-col-xs-pull-8{right:66.66666667%}.bk-bs-col-xs-pull-7{right:58.33333333%}.bk-bs-col-xs-pull-6{right:50%}.bk-bs-col-xs-pull-5{right:41.66666667%}.bk-bs-col-xs-pull-4{right:33.33333333%}.bk-bs-col-xs-pull-3{right:25%}.bk-bs-col-xs-pull-2{right:16.66666667%}.bk-bs-col-xs-pull-1{right:8.33333333%}.bk-bs-col-xs-pull-0{right:0}.bk-bs-col-xs-push-12{left:100%}.bk-bs-col-xs-push-11{left:91.66666667%}.bk-bs-col-xs-push-10{left:83.33333333%}.bk-bs-col-xs-push-9{left:75%}.bk-bs-col-xs-push-8{left:66.66666667%}.bk-bs-col-xs-push-7{left:58.33333333%}.bk-bs-col-xs-push-6{left:50%}.bk-bs-col-xs-push-5{left:41.66666667%}.bk-bs-col-xs-push-4{left:33.33333333%}.bk-bs-col-xs-push-3{left:25%}.bk-bs-col-xs-push-2{left:16.66666667%}.bk-bs-col-xs-push-1{left:8.33333333%}.bk-bs-col-xs-push-0{left:0}.bk-bs-col-xs-offset-12{margin-left:100%}.bk-bs-col-xs-offset-11{margin-left:91.66666667%}.bk-bs-col-xs-offset-10{margin-left:83.33333333%}.bk-bs-col-xs-offset-9{margin-left:75%}.bk-bs-col-xs-offset-8{margin-left:66.66666667%}.bk-bs-col-xs-offset-7{margin-left:58.33333333%}.bk-bs-col-xs-offset-6{margin-left:50%}.bk-bs-col-xs-offset-5{margin-left:41.66666667%}.bk-bs-col-xs-offset-4{margin-left:33.33333333%}.bk-bs-col-xs-offset-3{margin-left:25%}.bk-bs-col-xs-offset-2{margin-left:16.66666667%}.bk-bs-col-xs-offset-1{margin-left:8.33333333%}.bk-bs-col-xs-offset-0{margin-left:0}@media (min-width:768px){.bk-bs-col-sm-1,.bk-bs-col-sm-2,.bk-bs-col-sm-3,.bk-bs-col-sm-4,.bk-bs-col-sm-5,.bk-bs-col-sm-6,.bk-bs-col-sm-7,.bk-bs-col-sm-8,.bk-bs-col-sm-9,.bk-bs-col-sm-10,.bk-bs-col-sm-11,.bk-bs-col-sm-12{float:left}.bk-bs-col-sm-12{width:100%}.bk-bs-col-sm-11{width:91.66666667%}.bk-bs-col-sm-10{width:83.33333333%}.bk-bs-col-sm-9{width:75%}.bk-bs-col-sm-8{width:66.66666667%}.bk-bs-col-sm-7{width:58.33333333%}.bk-bs-col-sm-6{width:50%}.bk-bs-col-sm-5{width:41.66666667%}.bk-bs-col-sm-4{width:33.33333333%}.bk-bs-col-sm-3{width:25%}.bk-bs-col-sm-2{width:16.66666667%}.bk-bs-col-sm-1{width:8.33333333%}.bk-bs-col-sm-pull-12{right:100%}.bk-bs-col-sm-pull-11{right:91.66666667%}.bk-bs-col-sm-pull-10{right:83.33333333%}.bk-bs-col-sm-pull-9{right:75%}.bk-bs-col-sm-pull-8{right:66.66666667%}.bk-bs-col-sm-pull-7{right:58.33333333%}.bk-bs-col-sm-pull-6{right:50%}.bk-bs-col-sm-pull-5{right:41.66666667%}.bk-bs-col-sm-pull-4{right:33.33333333%}.bk-bs-col-sm-pull-3{right:25%}.bk-bs-col-sm-pull-2{right:16.66666667%}.bk-bs-col-sm-pull-1{right:8.33333333%}.bk-bs-col-sm-pull-0{right:0}.bk-bs-col-sm-push-12{left:100%}.bk-bs-col-sm-push-11{left:91.66666667%}.bk-bs-col-sm-push-10{left:83.33333333%}.bk-bs-col-sm-push-9{left:75%}.bk-bs-col-sm-push-8{left:66.66666667%}.bk-bs-col-sm-push-7{left:58.33333333%}.bk-bs-col-sm-push-6{left:50%}.bk-bs-col-sm-push-5{left:41.66666667%}.bk-bs-col-sm-push-4{left:33.33333333%}.bk-bs-col-sm-push-3{left:25%}.bk-bs-col-sm-push-2{left:16.66666667%}.bk-bs-col-sm-push-1{left:8.33333333%}.bk-bs-col-sm-push-0{left:0}.bk-bs-col-sm-offset-12{margin-left:100%}.bk-bs-col-sm-offset-11{margin-left:91.66666667%}.bk-bs-col-sm-offset-10{margin-left:83.33333333%}.bk-bs-col-sm-offset-9{margin-left:75%}.bk-bs-col-sm-offset-8{margin-left:66.66666667%}.bk-bs-col-sm-offset-7{margin-left:58.33333333%}.bk-bs-col-sm-offset-6{margin-left:50%}.bk-bs-col-sm-offset-5{margin-left:41.66666667%}.bk-bs-col-sm-offset-4{margin-left:33.33333333%}.bk-bs-col-sm-offset-3{margin-left:25%}.bk-bs-col-sm-offset-2{margin-left:16.66666667%}.bk-bs-col-sm-offset-1{margin-left:8.33333333%}.bk-bs-col-sm-offset-0{margin-left:0}}@media (min-width:992px){.bk-bs-col-md-1,.bk-bs-col-md-2,.bk-bs-col-md-3,.bk-bs-col-md-4,.bk-bs-col-md-5,.bk-bs-col-md-6,.bk-bs-col-md-7,.bk-bs-col-md-8,.bk-bs-col-md-9,.bk-bs-col-md-10,.bk-bs-col-md-11,.bk-bs-col-md-12{float:left}.bk-bs-col-md-12{width:100%}.bk-bs-col-md-11{width:91.66666667%}.bk-bs-col-md-10{width:83.33333333%}.bk-bs-col-md-9{width:75%}.bk-bs-col-md-8{width:66.66666667%}.bk-bs-col-md-7{width:58.33333333%}.bk-bs-col-md-6{width:50%}.bk-bs-col-md-5{width:41.66666667%}.bk-bs-col-md-4{width:33.33333333%}.bk-bs-col-md-3{width:25%}.bk-bs-col-md-2{width:16.66666667%}.bk-bs-col-md-1{width:8.33333333%}.bk-bs-col-md-pull-12{right:100%}.bk-bs-col-md-pull-11{right:91.66666667%}.bk-bs-col-md-pull-10{right:83.33333333%}.bk-bs-col-md-pull-9{right:75%}.bk-bs-col-md-pull-8{right:66.66666667%}.bk-bs-col-md-pull-7{right:58.33333333%}.bk-bs-col-md-pull-6{right:50%}.bk-bs-col-md-pull-5{right:41.66666667%}.bk-bs-col-md-pull-4{right:33.33333333%}.bk-bs-col-md-pull-3{right:25%}.bk-bs-col-md-pull-2{right:16.66666667%}.bk-bs-col-md-pull-1{right:8.33333333%}.bk-bs-col-md-pull-0{right:0}.bk-bs-col-md-push-12{left:100%}.bk-bs-col-md-push-11{left:91.66666667%}.bk-bs-col-md-push-10{left:83.33333333%}.bk-bs-col-md-push-9{left:75%}.bk-bs-col-md-push-8{left:66.66666667%}.bk-bs-col-md-push-7{left:58.33333333%}.bk-bs-col-md-push-6{left:50%}.bk-bs-col-md-push-5{left:41.66666667%}.bk-bs-col-md-push-4{left:33.33333333%}.bk-bs-col-md-push-3{left:25%}.bk-bs-col-md-push-2{left:16.66666667%}.bk-bs-col-md-push-1{left:8.33333333%}.bk-bs-col-md-push-0{left:0}.bk-bs-col-md-offset-12{margin-left:100%}.bk-bs-col-md-offset-11{margin-left:91.66666667%}.bk-bs-col-md-offset-10{margin-left:83.33333333%}.bk-bs-col-md-offset-9{margin-left:75%}.bk-bs-col-md-offset-8{margin-left:66.66666667%}.bk-bs-col-md-offset-7{margin-left:58.33333333%}.bk-bs-col-md-offset-6{margin-left:50%}.bk-bs-col-md-offset-5{margin-left:41.66666667%}.bk-bs-col-md-offset-4{margin-left:33.33333333%}.bk-bs-col-md-offset-3{margin-left:25%}.bk-bs-col-md-offset-2{margin-left:16.66666667%}.bk-bs-col-md-offset-1{margin-left:8.33333333%}.bk-bs-col-md-offset-0{margin-left:0}}@media (min-width:1200px){.bk-bs-col-lg-1,.bk-bs-col-lg-2,.bk-bs-col-lg-3,.bk-bs-col-lg-4,.bk-bs-col-lg-5,.bk-bs-col-lg-6,.bk-bs-col-lg-7,.bk-bs-col-lg-8,.bk-bs-col-lg-9,.bk-bs-col-lg-10,.bk-bs-col-lg-11,.bk-bs-col-lg-12{float:left}.bk-bs-col-lg-12{width:100%}.bk-bs-col-lg-11{width:91.66666667%}.bk-bs-col-lg-10{width:83.33333333%}.bk-bs-col-lg-9{width:75%}.bk-bs-col-lg-8{width:66.66666667%}.bk-bs-col-lg-7{width:58.33333333%}.bk-bs-col-lg-6{width:50%}.bk-bs-col-lg-5{width:41.66666667%}.bk-bs-col-lg-4{width:33.33333333%}.bk-bs-col-lg-3{width:25%}.bk-bs-col-lg-2{width:16.66666667%}.bk-bs-col-lg-1{width:8.33333333%}.bk-bs-col-lg-pull-12{right:100%}.bk-bs-col-lg-pull-11{right:91.66666667%}.bk-bs-col-lg-pull-10{right:83.33333333%}.bk-bs-col-lg-pull-9{right:75%}.bk-bs-col-lg-pull-8{right:66.66666667%}.bk-bs-col-lg-pull-7{right:58.33333333%}.bk-bs-col-lg-pull-6{right:50%}.bk-bs-col-lg-pull-5{right:41.66666667%}.bk-bs-col-lg-pull-4{right:33.33333333%}.bk-bs-col-lg-pull-3{right:25%}.bk-bs-col-lg-pull-2{right:16.66666667%}.bk-bs-col-lg-pull-1{right:8.33333333%}.bk-bs-col-lg-pull-0{right:0}.bk-bs-col-lg-push-12{left:100%}.bk-bs-col-lg-push-11{left:91.66666667%}.bk-bs-col-lg-push-10{left:83.33333333%}.bk-bs-col-lg-push-9{left:75%}.bk-bs-col-lg-push-8{left:66.66666667%}.bk-bs-col-lg-push-7{left:58.33333333%}.bk-bs-col-lg-push-6{left:50%}.bk-bs-col-lg-push-5{left:41.66666667%}.bk-bs-col-lg-push-4{left:33.33333333%}.bk-bs-col-lg-push-3{left:25%}.bk-bs-col-lg-push-2{left:16.66666667%}.bk-bs-col-lg-push-1{left:8.33333333%}.bk-bs-col-lg-push-0{left:0}.bk-bs-col-lg-offset-12{margin-left:100%}.bk-bs-col-lg-offset-11{margin-left:91.66666667%}.bk-bs-col-lg-offset-10{margin-left:83.33333333%}.bk-bs-col-lg-offset-9{margin-left:75%}.bk-bs-col-lg-offset-8{margin-left:66.66666667%}.bk-bs-col-lg-offset-7{margin-left:58.33333333%}.bk-bs-col-lg-offset-6{margin-left:50%}.bk-bs-col-lg-offset-5{margin-left:41.66666667%}.bk-bs-col-lg-offset-4{margin-left:33.33333333%}.bk-bs-col-lg-offset-3{margin-left:25%}.bk-bs-col-lg-offset-2{margin-left:16.66666667%}.bk-bs-col-lg-offset-1{margin-left:8.33333333%}.bk-bs-col-lg-offset-0{margin-left:0}}table{max-width:100%;background-color:transparent}th{text-align:left}.bk-bs-table{width:100%;margin-bottom:20px}.bk-bs-table>thead>tr>th,.bk-bs-table>tbody>tr>th,.bk-bs-table>tfoot>tr>th,.bk-bs-table>thead>tr>td,.bk-bs-table>tbody>tr>td,.bk-bs-table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.bk-bs-table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.bk-bs-table>caption+thead>tr:first-child>th,.bk-bs-table>colgroup+thead>tr:first-child>th,.bk-bs-table>thead:first-child>tr:first-child>th,.bk-bs-table>caption+thead>tr:first-child>td,.bk-bs-table>colgroup+thead>tr:first-child>td,.bk-bs-table>thead:first-child>tr:first-child>td{border-top:0}.bk-bs-table>tbody+tbody{border-top:2px solid #ddd}.bk-bs-table .bk-bs-table{background-color:#fff}.bk-bs-table-condensed>thead>tr>th,.bk-bs-table-condensed>tbody>tr>th,.bk-bs-table-condensed>tfoot>tr>th,.bk-bs-table-condensed>thead>tr>td,.bk-bs-table-condensed>tbody>tr>td,.bk-bs-table-condensed>tfoot>tr>td{padding:5px}.bk-bs-table-bordered{border:1px solid #ddd}.bk-bs-table-bordered>thead>tr>th,.bk-bs-table-bordered>tbody>tr>th,.bk-bs-table-bordered>tfoot>tr>th,.bk-bs-table-bordered>thead>tr>td,.bk-bs-table-bordered>tbody>tr>td,.bk-bs-table-bordered>tfoot>tr>td{border:1px solid #ddd}.bk-bs-table-bordered>thead>tr>th,.bk-bs-table-bordered>thead>tr>td{border-bottom-width:2px}.bk-bs-table-striped>tbody>tr:nth-child(odd)>td,.bk-bs-table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.bk-bs-table-hover>tbody>tr:hover>td,.bk-bs-table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.bk-bs-table>thead>tr>td.active,.bk-bs-table>tbody>tr>td.active,.bk-bs-table>tfoot>tr>td.active,.bk-bs-table>thead>tr>th.active,.bk-bs-table>tbody>tr>th.active,.bk-bs-table>tfoot>tr>th.active,.bk-bs-table>thead>tr.active>td,.bk-bs-table>tbody>tr.active>td,.bk-bs-table>tfoot>tr.active>td,.bk-bs-table>thead>tr.active>th,.bk-bs-table>tbody>tr.active>th,.bk-bs-table>tfoot>tr.active>th{background-color:#f5f5f5}.bk-bs-table-hover>tbody>tr>td.active:hover,.bk-bs-table-hover>tbody>tr>th.active:hover,.bk-bs-table-hover>tbody>tr.active:hover>td,.bk-bs-table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.bk-bs-table>thead>tr>td.success,.bk-bs-table>tbody>tr>td.success,.bk-bs-table>tfoot>tr>td.success,.bk-bs-table>thead>tr>th.success,.bk-bs-table>tbody>tr>th.success,.bk-bs-table>tfoot>tr>th.success,.bk-bs-table>thead>tr.success>td,.bk-bs-table>tbody>tr.success>td,.bk-bs-table>tfoot>tr.success>td,.bk-bs-table>thead>tr.success>th,.bk-bs-table>tbody>tr.success>th,.bk-bs-table>tfoot>tr.success>th{background-color:#dff0d8}.bk-bs-table-hover>tbody>tr>td.success:hover,.bk-bs-table-hover>tbody>tr>th.success:hover,.bk-bs-table-hover>tbody>tr.success:hover>td,.bk-bs-table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.bk-bs-table>thead>tr>td.info,.bk-bs-table>tbody>tr>td.info,.bk-bs-table>tfoot>tr>td.info,.bk-bs-table>thead>tr>th.info,.bk-bs-table>tbody>tr>th.info,.bk-bs-table>tfoot>tr>th.info,.bk-bs-table>thead>tr.info>td,.bk-bs-table>tbody>tr.info>td,.bk-bs-table>tfoot>tr.info>td,.bk-bs-table>thead>tr.info>th,.bk-bs-table>tbody>tr.info>th,.bk-bs-table>tfoot>tr.info>th{background-color:#d9edf7}.bk-bs-table-hover>tbody>tr>td.info:hover,.bk-bs-table-hover>tbody>tr>th.info:hover,.bk-bs-table-hover>tbody>tr.info:hover>td,.bk-bs-table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.bk-bs-table>thead>tr>td.warning,.bk-bs-table>tbody>tr>td.warning,.bk-bs-table>tfoot>tr>td.warning,.bk-bs-table>thead>tr>th.warning,.bk-bs-table>tbody>tr>th.warning,.bk-bs-table>tfoot>tr>th.warning,.bk-bs-table>thead>tr.warning>td,.bk-bs-table>tbody>tr.warning>td,.bk-bs-table>tfoot>tr.warning>td,.bk-bs-table>thead>tr.warning>th,.bk-bs-table>tbody>tr.warning>th,.bk-bs-table>tfoot>tr.warning>th{background-color:#fcf8e3}.bk-bs-table-hover>tbody>tr>td.warning:hover,.bk-bs-table-hover>tbody>tr>th.warning:hover,.bk-bs-table-hover>tbody>tr.warning:hover>td,.bk-bs-table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.bk-bs-table>thead>tr>td.danger,.bk-bs-table>tbody>tr>td.danger,.bk-bs-table>tfoot>tr>td.danger,.bk-bs-table>thead>tr>th.danger,.bk-bs-table>tbody>tr>th.danger,.bk-bs-table>tfoot>tr>th.danger,.bk-bs-table>thead>tr.danger>td,.bk-bs-table>tbody>tr.danger>td,.bk-bs-table>tfoot>tr.danger>td,.bk-bs-table>thead>tr.danger>th,.bk-bs-table>tbody>tr.danger>th,.bk-bs-table>tfoot>tr.danger>th{background-color:#f2dede}.bk-bs-table-hover>tbody>tr>td.danger:hover,.bk-bs-table-hover>tbody>tr>th.danger:hover,.bk-bs-table-hover>tbody>tr.danger:hover>td,.bk-bs-table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}@media (max-width:767px){.bk-bs-table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.bk-bs-table-responsive>.bk-bs-table{margin-bottom:0}.bk-bs-table-responsive>.bk-bs-table>thead>tr>th,.bk-bs-table-responsive>.bk-bs-table>tbody>tr>th,.bk-bs-table-responsive>.bk-bs-table>tfoot>tr>th,.bk-bs-table-responsive>.bk-bs-table>thead>tr>td,.bk-bs-table-responsive>.bk-bs-table>tbody>tr>td,.bk-bs-table-responsive>.bk-bs-table>tfoot>tr>td{white-space:nowrap}.bk-bs-table-responsive>.bk-bs-table-bordered{border:0}.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>th:first-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>th:first-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>th:first-child,.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>td:first-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td:first-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>td:first-child{border-left:0}.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>th:last-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>th:last-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>th:last-child,.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>td:last-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td:last-child,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>td:last-child{border-right:0}.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>th,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>th,.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>td,.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=radio],input[type=checkbox]{margin:4px 0 0;margin-top:1px \\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.bk-bs-form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bk-bs-form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.bk-bs-form-control::-moz-placeholder{color:#999;opacity:1}.bk-bs-form-control:-ms-input-placeholder{color:#999}.bk-bs-form-control::-webkit-input-placeholder{color:#999}.bk-bs-form-control[disabled],.bk-bs-form-control[readonly],fieldset[disabled] .bk-bs-form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.bk-bs-form-control{height:auto}input[type=search]{-webkit-appearance:none}input[type=date]{line-height:34px}.bk-bs-form-group{margin-bottom:15px}.bk-bs-radio,.bk-bs-checkbox{display:block;min-height:20px;margin-top:10px;margin-bottom:10px;padding-left:20px}.bk-bs-radio label,.bk-bs-checkbox label{display:inline;font-weight:400;cursor:pointer}.bk-bs-radio input[type=radio],.bk-bs-radio-inline input[type=radio],.bk-bs-checkbox input[type=checkbox],.bk-bs-checkbox-inline input[type=checkbox]{float:left;margin-left:-20px}.bk-bs-radio+.bk-bs-radio,.bk-bs-checkbox+.bk-bs-checkbox{margin-top:-5px}.bk-bs-radio-inline,.bk-bs-checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.bk-bs-radio-inline+.bk-bs-radio-inline,.bk-bs-checkbox-inline+.bk-bs-checkbox-inline{margin-top:0;margin-left:10px}input[type=radio][disabled],input[type=checkbox][disabled],.bk-bs-radio[disabled],.bk-bs-radio-inline[disabled],.bk-bs-checkbox[disabled],.bk-bs-checkbox-inline[disabled],fieldset[disabled] input[type=radio],fieldset[disabled] input[type=checkbox],fieldset[disabled] .bk-bs-radio,fieldset[disabled] .bk-bs-radio-inline,fieldset[disabled] .bk-bs-checkbox,fieldset[disabled] .bk-bs-checkbox-inline{cursor:not-allowed}.bk-bs-input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.bk-bs-input-sm{height:30px;line-height:30px}textarea.bk-bs-input-sm,select[multiple].bk-bs-input-sm{height:auto}.bk-bs-input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.bk-bs-input-lg{height:46px;line-height:46px}textarea.bk-bs-input-lg,select[multiple].bk-bs-input-lg{height:auto}.bk-bs-has-feedback{position:relative}.bk-bs-has-feedback .bk-bs-form-control{padding-right:42.5px}.bk-bs-has-feedback .bk-bs-form-control-feedback{position:absolute;top:25px;right:0;display:block;width:34px;height:34px;line-height:34px;text-align:center}.bk-bs-has-success .bk-bs-help-block,.bk-bs-has-success .bk-bs-control-label,.bk-bs-has-success .bk-bs-radio,.bk-bs-has-success .bk-bs-checkbox,.bk-bs-has-success .bk-bs-radio-inline,.bk-bs-has-success .bk-bs-checkbox-inline{color:#3c763d}.bk-bs-has-success .bk-bs-form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.bk-bs-has-success .bk-bs-form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.bk-bs-has-success .bk-bs-input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.bk-bs-has-success .bk-bs-form-control-feedback{color:#3c763d}.bk-bs-has-warning .bk-bs-help-block,.bk-bs-has-warning .bk-bs-control-label,.bk-bs-has-warning .bk-bs-radio,.bk-bs-has-warning .bk-bs-checkbox,.bk-bs-has-warning .bk-bs-radio-inline,.bk-bs-has-warning .bk-bs-checkbox-inline{color:#8a6d3b}.bk-bs-has-warning .bk-bs-form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.bk-bs-has-warning .bk-bs-form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.bk-bs-has-warning .bk-bs-input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.bk-bs-has-warning .bk-bs-form-control-feedback{color:#8a6d3b}.bk-bs-has-error .bk-bs-help-block,.bk-bs-has-error .bk-bs-control-label,.bk-bs-has-error .bk-bs-radio,.bk-bs-has-error .bk-bs-checkbox,.bk-bs-has-error .bk-bs-radio-inline,.bk-bs-has-error .bk-bs-checkbox-inline{color:#a94442}.bk-bs-has-error .bk-bs-form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.bk-bs-has-error .bk-bs-form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.bk-bs-has-error .bk-bs-input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.bk-bs-has-error .bk-bs-form-control-feedback{color:#a94442}.bk-bs-form-control-static{margin-bottom:0}.bk-bs-help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.bk-bs-form-inline .bk-bs-form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-form-control{display:inline-block;width:auto;vertical-align:middle}.bk-bs-form-inline .bk-bs-input-group>.bk-bs-form-control{width:100%}.bk-bs-form-inline .bk-bs-control-label{margin-bottom:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-radio,.bk-bs-form-inline .bk-bs-checkbox{display:inline-block;margin-top:0;margin-bottom:0;padding-left:0;vertical-align:middle}.bk-bs-form-inline .bk-bs-radio input[type=radio],.bk-bs-form-inline .bk-bs-checkbox input[type=checkbox]{float:none;margin-left:0}.bk-bs-form-inline .bk-bs-has-feedback .bk-bs-form-control-feedback{top:0}}.bk-bs-form-horizontal .bk-bs-control-label,.bk-bs-form-horizontal .bk-bs-radio,.bk-bs-form-horizontal .bk-bs-checkbox,.bk-bs-form-horizontal .bk-bs-radio-inline,.bk-bs-form-horizontal .bk-bs-checkbox-inline{margin-top:0;margin-bottom:0;padding-top:7px}.bk-bs-form-horizontal .bk-bs-radio,.bk-bs-form-horizontal .bk-bs-checkbox{min-height:27px}.bk-bs-form-horizontal .bk-bs-form-group{margin-left:-15px;margin-right:-15px}.bk-bs-form-horizontal .bk-bs-form-control-static{padding-top:7px}@media (min-width:768px){.bk-bs-form-horizontal .bk-bs-control-label{text-align:right}}.bk-bs-form-horizontal .bk-bs-has-feedback .bk-bs-form-control-feedback{top:0;right:15px}.bk-bs-btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bk-bs-btn:focus,.bk-bs-btn:active:focus,.bk-bs-btn.bk-bs-active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bk-bs-btn:hover,.bk-bs-btn:focus{color:#333;text-decoration:none}.bk-bs-btn:active,.bk-bs-btn.bk-bs-active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.bk-bs-btn.bk-bs-disabled,.bk-bs-btn[disabled],fieldset[disabled] .bk-bs-btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn-default{color:#333;background-color:#fff;border-color:#ccc}.bk-bs-btn-default:hover,.bk-bs-btn-default:focus,.bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-default{background-image:none}.bk-bs-btn-default.bk-bs-disabled,.bk-bs-btn-default[disabled],fieldset[disabled] .bk-bs-btn-default,.bk-bs-btn-default.bk-bs-disabled:hover,.bk-bs-btn-default[disabled]:hover,fieldset[disabled] .bk-bs-btn-default:hover,.bk-bs-btn-default.bk-bs-disabled:focus,.bk-bs-btn-default[disabled]:focus,fieldset[disabled] .bk-bs-btn-default:focus,.bk-bs-btn-default.bk-bs-disabled:active,.bk-bs-btn-default[disabled]:active,fieldset[disabled] .bk-bs-btn-default:active,.bk-bs-btn-default.bk-bs-disabled.bk-bs-active,.bk-bs-btn-default[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-default.bk-bs-active{background-color:#fff;border-color:#ccc}.bk-bs-btn-default .bk-bs-badge{color:#fff;background-color:#333}.bk-bs-btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.bk-bs-btn-primary:hover,.bk-bs-btn-primary:focus,.bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-primary{background-image:none}.bk-bs-btn-primary.bk-bs-disabled,.bk-bs-btn-primary[disabled],fieldset[disabled] .bk-bs-btn-primary,.bk-bs-btn-primary.bk-bs-disabled:hover,.bk-bs-btn-primary[disabled]:hover,fieldset[disabled] .bk-bs-btn-primary:hover,.bk-bs-btn-primary.bk-bs-disabled:focus,.bk-bs-btn-primary[disabled]:focus,fieldset[disabled] .bk-bs-btn-primary:focus,.bk-bs-btn-primary.bk-bs-disabled:active,.bk-bs-btn-primary[disabled]:active,fieldset[disabled] .bk-bs-btn-primary:active,.bk-bs-btn-primary.bk-bs-disabled.bk-bs-active,.bk-bs-btn-primary[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-primary.bk-bs-active{background-color:#428bca;border-color:#357ebd}.bk-bs-btn-primary .bk-bs-badge{color:#428bca;background-color:#fff}.bk-bs-btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.bk-bs-btn-success:hover,.bk-bs-btn-success:focus,.bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-success{color:#fff;background-color:#47a447;border-color:#398439}.bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-success{background-image:none}.bk-bs-btn-success.bk-bs-disabled,.bk-bs-btn-success[disabled],fieldset[disabled] .bk-bs-btn-success,.bk-bs-btn-success.bk-bs-disabled:hover,.bk-bs-btn-success[disabled]:hover,fieldset[disabled] .bk-bs-btn-success:hover,.bk-bs-btn-success.bk-bs-disabled:focus,.bk-bs-btn-success[disabled]:focus,fieldset[disabled] .bk-bs-btn-success:focus,.bk-bs-btn-success.bk-bs-disabled:active,.bk-bs-btn-success[disabled]:active,fieldset[disabled] .bk-bs-btn-success:active,.bk-bs-btn-success.bk-bs-disabled.bk-bs-active,.bk-bs-btn-success[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-success.bk-bs-active{background-color:#5cb85c;border-color:#4cae4c}.bk-bs-btn-success .bk-bs-badge{color:#5cb85c;background-color:#fff}.bk-bs-btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.bk-bs-btn-info:hover,.bk-bs-btn-info:focus,.bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-info{background-image:none}.bk-bs-btn-info.bk-bs-disabled,.bk-bs-btn-info[disabled],fieldset[disabled] .bk-bs-btn-info,.bk-bs-btn-info.bk-bs-disabled:hover,.bk-bs-btn-info[disabled]:hover,fieldset[disabled] .bk-bs-btn-info:hover,.bk-bs-btn-info.bk-bs-disabled:focus,.bk-bs-btn-info[disabled]:focus,fieldset[disabled] .bk-bs-btn-info:focus,.bk-bs-btn-info.bk-bs-disabled:active,.bk-bs-btn-info[disabled]:active,fieldset[disabled] .bk-bs-btn-info:active,.bk-bs-btn-info.bk-bs-disabled.bk-bs-active,.bk-bs-btn-info[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-info.bk-bs-active{background-color:#5bc0de;border-color:#46b8da}.bk-bs-btn-info .bk-bs-badge{color:#5bc0de;background-color:#fff}.bk-bs-btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.bk-bs-btn-warning:hover,.bk-bs-btn-warning:focus,.bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-warning{background-image:none}.bk-bs-btn-warning.bk-bs-disabled,.bk-bs-btn-warning[disabled],fieldset[disabled] .bk-bs-btn-warning,.bk-bs-btn-warning.bk-bs-disabled:hover,.bk-bs-btn-warning[disabled]:hover,fieldset[disabled] .bk-bs-btn-warning:hover,.bk-bs-btn-warning.bk-bs-disabled:focus,.bk-bs-btn-warning[disabled]:focus,fieldset[disabled] .bk-bs-btn-warning:focus,.bk-bs-btn-warning.bk-bs-disabled:active,.bk-bs-btn-warning[disabled]:active,fieldset[disabled] .bk-bs-btn-warning:active,.bk-bs-btn-warning.bk-bs-disabled.bk-bs-active,.bk-bs-btn-warning[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-warning.bk-bs-active{background-color:#f0ad4e;border-color:#eea236}.bk-bs-btn-warning .bk-bs-badge{color:#f0ad4e;background-color:#fff}.bk-bs-btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.bk-bs-btn-danger:hover,.bk-bs-btn-danger:focus,.bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-danger{background-image:none}.bk-bs-btn-danger.bk-bs-disabled,.bk-bs-btn-danger[disabled],fieldset[disabled] .bk-bs-btn-danger,.bk-bs-btn-danger.bk-bs-disabled:hover,.bk-bs-btn-danger[disabled]:hover,fieldset[disabled] .bk-bs-btn-danger:hover,.bk-bs-btn-danger.bk-bs-disabled:focus,.bk-bs-btn-danger[disabled]:focus,fieldset[disabled] .bk-bs-btn-danger:focus,.bk-bs-btn-danger.bk-bs-disabled:active,.bk-bs-btn-danger[disabled]:active,fieldset[disabled] .bk-bs-btn-danger:active,.bk-bs-btn-danger.bk-bs-disabled.bk-bs-active,.bk-bs-btn-danger[disabled].bk-bs-active,fieldset[disabled] .bk-bs-btn-danger.bk-bs-active{background-color:#d9534f;border-color:#d43f3a}.bk-bs-btn-danger .bk-bs-badge{color:#d9534f;background-color:#fff}.bk-bs-btn-link{color:#428bca;font-weight:400;cursor:pointer;border-radius:0}.bk-bs-btn-link,.bk-bs-btn-link:active,.bk-bs-btn-link[disabled],fieldset[disabled] .bk-bs-btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn-link,.bk-bs-btn-link:hover,.bk-bs-btn-link:focus,.bk-bs-btn-link:active{border-color:transparent}.bk-bs-btn-link:hover,.bk-bs-btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.bk-bs-btn-link[disabled]:hover,fieldset[disabled] .bk-bs-btn-link:hover,.bk-bs-btn-link[disabled]:focus,fieldset[disabled] .bk-bs-btn-link:focus{color:#999;text-decoration:none}.bk-bs-btn-lg,.bk-bs-btn-group-lg>.bk-bs-btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.bk-bs-btn-sm,.bk-bs-btn-group-sm>.bk-bs-btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.bk-bs-btn-xs,.bk-bs-btn-group-xs>.bk-bs-btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.bk-bs-btn-block{display:block;width:100%;padding-left:0;padding-right:0}.bk-bs-btn-block+.bk-bs-btn-block{margin-top:5px}input[type=submit].bk-bs-btn-block,input[type=reset].bk-bs-btn-block,input[type=button].bk-bs-btn-block{width:100%}.bk-bs-caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.bk-bs-dropdown{position:relative}.bk-bs-dropdown-toggle:focus{outline:0}.bk-bs-dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.bk-bs-dropdown-menu.bk-bs-pull-right{right:0;left:auto}.bk-bs-dropdown-menu .bk-bs-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.bk-bs-dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.bk-bs-dropdown-menu>li>a:hover,.bk-bs-dropdown-menu>li>a:focus{text-decoration:none;color:#262626;background-color:#f5f5f5}.bk-bs-dropdown-menu>.bk-bs-active>a,.bk-bs-dropdown-menu>.bk-bs-active>a:hover,.bk-bs-dropdown-menu>.bk-bs-active>a:focus{color:#fff;text-decoration:none;outline:0;background-color:#428bca}.bk-bs-dropdown-menu>.bk-bs-disabled>a,.bk-bs-dropdown-menu>.bk-bs-disabled>a:hover,.bk-bs-dropdown-menu>.bk-bs-disabled>a:focus{color:#999}.bk-bs-dropdown-menu>.bk-bs-disabled>a:hover,.bk-bs-dropdown-menu>.bk-bs-disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.bk-bs-Microsoft.bk-bs-gradient(enabled=false);cursor:not-allowed}.bk-bs-open>.bk-bs-dropdown-menu{display:block}.bk-bs-open>a{outline:0}.bk-bs-dropdown-menu-right{left:auto;right:0}.bk-bs-dropdown-menu-left{left:0;right:auto}.bk-bs-dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#999}.bk-bs-dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.bk-bs-pull-right>.bk-bs-dropdown-menu{right:0;left:auto}.bk-bs-dropup .bk-bs-caret,.bk-bs-navbar-fixed-bottom .bk-bs-dropdown .bk-bs-caret{border-top:0;border-bottom:4px solid;content:\"\"}.bk-bs-dropup .bk-bs-dropdown-menu,.bk-bs-navbar-fixed-bottom .bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.bk-bs-navbar-right .bk-bs-dropdown-menu{left:auto;right:0}.bk-bs-navbar-right .bk-bs-dropdown-menu-left{left:0;right:auto}}.bk-bs-btn-group,.bk-bs-btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.bk-bs-btn-group>.bk-bs-btn,.bk-bs-btn-group-vertical>.bk-bs-btn{position:relative;float:left}.bk-bs-btn-group>.bk-bs-btn:hover,.bk-bs-btn-group-vertical>.bk-bs-btn:hover,.bk-bs-btn-group>.bk-bs-btn:focus,.bk-bs-btn-group-vertical>.bk-bs-btn:focus,.bk-bs-btn-group>.bk-bs-btn:active,.bk-bs-btn-group-vertical>.bk-bs-btn:active,.bk-bs-btn-group>.bk-bs-btn.bk-bs-active,.bk-bs-btn-group-vertical>.bk-bs-btn.bk-bs-active{z-index:2}.bk-bs-btn-group>.bk-bs-btn:focus,.bk-bs-btn-group-vertical>.bk-bs-btn:focus{outline:0}.bk-bs-btn-group .bk-bs-btn+.bk-bs-btn,.bk-bs-btn-group .bk-bs-btn+.bk-bs-btn-group,.bk-bs-btn-group .bk-bs-btn-group+.bk-bs-btn,.bk-bs-btn-group .bk-bs-btn-group+.bk-bs-btn-group{margin-left:-1px}.bk-bs-btn-toolbar{margin-left:-5px}.bk-bs-btn-toolbar .bk-bs-btn-group,.bk-bs-btn-toolbar .bk-bs-input-group{float:left}.bk-bs-btn-toolbar>.bk-bs-btn,.bk-bs-btn-toolbar>.bk-bs-btn-group,.bk-bs-btn-toolbar>.bk-bs-input-group{margin-left:5px}.bk-bs-btn-group>.bk-bs-btn:not(:first-child):not(:last-child):not(.bk-bs-dropdown-toggle){border-radius:0}.bk-bs-btn-group>.bk-bs-btn:first-child{margin-left:0}.bk-bs-btn-group>.bk-bs-btn:first-child:not(:last-child):not(.bk-bs-dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-btn-group>.bk-bs-btn:last-child:not(:first-child),.bk-bs-btn-group>.bk-bs-dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-btn-group>.bk-bs-btn-group{float:left}.bk-bs-btn-group>.bk-bs-btn-group:not(:first-child):not(:last-child)>.bk-bs-btn{border-radius:0}.bk-bs-btn-group>.bk-bs-btn-group:first-child>.bk-bs-btn:last-child,.bk-bs-btn-group>.bk-bs-btn-group:first-child>.bk-bs-dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-btn-group>.bk-bs-btn-group:last-child>.bk-bs-btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-btn-group .bk-bs-dropdown-toggle:active,.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle{outline:0}.bk-bs-btn-group>.bk-bs-btn+.bk-bs-dropdown-toggle{padding-left:8px;padding-right:8px}.bk-bs-btn-group>.bk-bs-btn-lg+.bk-bs-dropdown-toggle{padding-left:12px;padding-right:12px}.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.bk-bs-btn-group.bk-bs-open .bk-bs-dropdown-toggle.bk-bs-btn-link{-webkit-box-shadow:none;box-shadow:none}.bk-bs-btn .bk-bs-caret{margin-left:0}.bk-bs-btn-lg .bk-bs-caret{border-width:5px 5px 0;border-bottom-width:0}.bk-bs-dropup .bk-bs-btn-lg .bk-bs-caret{border-width:0 5px 5px}.bk-bs-btn-group-vertical>.bk-bs-btn,.bk-bs-btn-group-vertical>.bk-bs-btn-group,.bk-bs-btn-group-vertical>.bk-bs-btn-group>.bk-bs-btn{display:block;float:none;width:100%;max-width:100%}.bk-bs-btn-group-vertical>.bk-bs-btn-group>.bk-bs-btn{float:none}.bk-bs-btn-group-vertical>.bk-bs-btn+.bk-bs-btn,.bk-bs-btn-group-vertical>.bk-bs-btn+.bk-bs-btn-group,.bk-bs-btn-group-vertical>.bk-bs-btn-group+.bk-bs-btn,.bk-bs-btn-group-vertical>.bk-bs-btn-group+.bk-bs-btn-group{margin-top:-1px;margin-left:0}.bk-bs-btn-group-vertical>.bk-bs-btn:not(:first-child):not(:last-child){border-radius:0}.bk-bs-btn-group-vertical>.bk-bs-btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.bk-bs-btn-group-vertical>.bk-bs-btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.bk-bs-btn-group-vertical>.bk-bs-btn-group:not(:first-child):not(:last-child)>.bk-bs-btn{border-radius:0}.bk-bs-btn-group-vertical>.bk-bs-btn-group:first-child:not(:last-child)>.bk-bs-btn:last-child,.bk-bs-btn-group-vertical>.bk-bs-btn-group:first-child:not(:last-child)>.bk-bs-dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.bk-bs-btn-group-vertical>.bk-bs-btn-group:last-child:not(:first-child)>.bk-bs-btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.bk-bs-btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.bk-bs-btn-group-justified>.bk-bs-btn,.bk-bs-btn-group-justified>.bk-bs-btn-group{float:none;display:table-cell;width:1%}.bk-bs-btn-group-justified>.bk-bs-btn-group .bk-bs-btn{width:100%}[data-toggle=buttons]>.bk-bs-btn>input[type=radio],[data-toggle=buttons]>.bk-bs-btn>input[type=checkbox]{display:none}.bk-bs-input-group{position:relative;display:table;border-collapse:separate}.bk-bs-input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.bk-bs-input-group .bk-bs-form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.bk-bs-input-group-lg>.bk-bs-form-control,.bk-bs-input-group-lg>.bk-bs-input-group-addon,.bk-bs-input-group-lg>.bk-bs-input-group-btn>.bk-bs-btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.bk-bs-input-group-lg>.bk-bs-form-control,select.bk-bs-input-group-lg>.bk-bs-input-group-addon,select.bk-bs-input-group-lg>.bk-bs-input-group-btn>.bk-bs-btn{height:46px;line-height:46px}textarea.bk-bs-input-group-lg>.bk-bs-form-control,textarea.bk-bs-input-group-lg>.bk-bs-input-group-addon,textarea.bk-bs-input-group-lg>.bk-bs-input-group-btn>.bk-bs-btn,select[multiple].bk-bs-input-group-lg>.bk-bs-form-control,select[multiple].bk-bs-input-group-lg>.bk-bs-input-group-addon,select[multiple].bk-bs-input-group-lg>.bk-bs-input-group-btn>.bk-bs-btn{height:auto}.bk-bs-input-group-sm>.bk-bs-form-control,.bk-bs-input-group-sm>.bk-bs-input-group-addon,.bk-bs-input-group-sm>.bk-bs-input-group-btn>.bk-bs-btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.bk-bs-input-group-sm>.bk-bs-form-control,select.bk-bs-input-group-sm>.bk-bs-input-group-addon,select.bk-bs-input-group-sm>.bk-bs-input-group-btn>.bk-bs-btn{height:30px;line-height:30px}textarea.bk-bs-input-group-sm>.bk-bs-form-control,textarea.bk-bs-input-group-sm>.bk-bs-input-group-addon,textarea.bk-bs-input-group-sm>.bk-bs-input-group-btn>.bk-bs-btn,select[multiple].bk-bs-input-group-sm>.bk-bs-form-control,select[multiple].bk-bs-input-group-sm>.bk-bs-input-group-addon,select[multiple].bk-bs-input-group-sm>.bk-bs-input-group-btn>.bk-bs-btn{height:auto}.bk-bs-input-group-addon,.bk-bs-input-group-btn,.bk-bs-input-group .bk-bs-form-control{display:table-cell}.bk-bs-input-group-addon:not(:first-child):not(:last-child),.bk-bs-input-group-btn:not(:first-child):not(:last-child),.bk-bs-input-group .bk-bs-form-control:not(:first-child):not(:last-child){border-radius:0}.bk-bs-input-group-addon,.bk-bs-input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.bk-bs-input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.bk-bs-input-group-addon.bk-bs-input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.bk-bs-input-group-addon.bk-bs-input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.bk-bs-input-group-addon input[type=radio],.bk-bs-input-group-addon input[type=checkbox]{margin-top:0}.bk-bs-input-group .bk-bs-form-control:first-child,.bk-bs-input-group-addon:first-child,.bk-bs-input-group-btn:first-child>.bk-bs-btn,.bk-bs-input-group-btn:first-child>.bk-bs-btn-group>.bk-bs-btn,.bk-bs-input-group-btn:first-child>.bk-bs-dropdown-toggle,.bk-bs-input-group-btn:last-child>.bk-bs-btn:not(:last-child):not(.bk-bs-dropdown-toggle),.bk-bs-input-group-btn:last-child>.bk-bs-btn-group:not(:last-child)>.bk-bs-btn{border-bottom-right-radius:0;border-top-right-radius:0}.bk-bs-input-group-addon:first-child{border-right:0}.bk-bs-input-group .bk-bs-form-control:last-child,.bk-bs-input-group-addon:last-child,.bk-bs-input-group-btn:last-child>.bk-bs-btn,.bk-bs-input-group-btn:last-child>.bk-bs-btn-group>.bk-bs-btn,.bk-bs-input-group-btn:last-child>.bk-bs-dropdown-toggle,.bk-bs-input-group-btn:first-child>.bk-bs-btn:not(:first-child),.bk-bs-input-group-btn:first-child>.bk-bs-btn-group:not(:first-child)>.bk-bs-btn{border-bottom-left-radius:0;border-top-left-radius:0}.bk-bs-input-group-addon:last-child{border-left:0}.bk-bs-input-group-btn{position:relative;font-size:0;white-space:nowrap}.bk-bs-input-group-btn>.bk-bs-btn{position:relative}.bk-bs-input-group-btn>.bk-bs-btn+.bk-bs-btn{margin-left:-1px}.bk-bs-input-group-btn>.bk-bs-btn:hover,.bk-bs-input-group-btn>.bk-bs-btn:focus,.bk-bs-input-group-btn>.bk-bs-btn:active{z-index:2}.bk-bs-input-group-btn:first-child>.bk-bs-btn,.bk-bs-input-group-btn:first-child>.bk-bs-btn-group{margin-right:-1px}.bk-bs-input-group-btn:last-child>.bk-bs-btn,.bk-bs-input-group-btn:last-child>.bk-bs-btn-group{margin-left:-1px}.bk-bs-nav{margin-bottom:0;padding-left:0;list-style:none}.bk-bs-nav>li{position:relative;display:block}.bk-bs-nav>li>a{position:relative;display:block;padding:10px 15px}.bk-bs-nav>li>a:hover,.bk-bs-nav>li>a:focus{text-decoration:none;background-color:#eee}.bk-bs-nav>li.bk-bs-disabled>a{color:#999}.bk-bs-nav>li.bk-bs-disabled>a:hover,.bk-bs-nav>li.bk-bs-disabled>a:focus{color:#999;text-decoration:none;background-color:transparent;cursor:not-allowed}.bk-bs-nav .bk-bs-open>a,.bk-bs-nav .bk-bs-open>a:hover,.bk-bs-nav .bk-bs-open>a:focus{background-color:#eee;border-color:#428bca}.bk-bs-nav .bk-bs-nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.bk-bs-nav>li>a>img{max-width:none}.bk-bs-nav-tabs{border-bottom:1px solid #ddd}.bk-bs-nav-tabs>li{float:left;margin-bottom:-1px}.bk-bs-nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.bk-bs-nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.bk-bs-nav-tabs>li.bk-bs-active>a,.bk-bs-nav-tabs>li.bk-bs-active>a:hover,.bk-bs-nav-tabs>li.bk-bs-active>a:focus{color:#555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.bk-bs-nav-tabs.bk-bs-nav-justified{width:100%;border-bottom:0}.bk-bs-nav-tabs.bk-bs-nav-justified>li{float:none}.bk-bs-nav-tabs.bk-bs-nav-justified>li>a{text-align:center;margin-bottom:5px}.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;left:auto}@media (min-width:768px){.bk-bs-nav-tabs.bk-bs-nav-justified>li{display:table-cell;width:1%}.bk-bs-nav-tabs.bk-bs-nav-justified>li>a{margin-bottom:0}}.bk-bs-nav-tabs.bk-bs-nav-justified>li>a{margin-right:0;border-radius:4px}.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:hover,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:focus{border:1px solid #ddd}@media (min-width:768px){.bk-bs-nav-tabs.bk-bs-nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:hover,.bk-bs-nav-tabs.bk-bs-nav-justified>.bk-bs-active>a:focus{border-bottom-color:#fff}}.bk-bs-nav-pills>li{float:left}.bk-bs-nav-pills>li>a{border-radius:4px}.bk-bs-nav-pills>li+li{margin-left:2px}.bk-bs-nav-pills>li.bk-bs-active>a,.bk-bs-nav-pills>li.bk-bs-active>a:hover,.bk-bs-nav-pills>li.bk-bs-active>a:focus{color:#fff;background-color:#428bca}.bk-bs-nav-stacked>li{float:none}.bk-bs-nav-stacked>li+li{margin-top:2px;margin-left:0}.bk-bs-nav-justified{width:100%}.bk-bs-nav-justified>li{float:none}.bk-bs-nav-justified>li>a{text-align:center;margin-bottom:5px}.bk-bs-nav-justified>.bk-bs-dropdown .bk-bs-dropdown-menu{top:auto;left:auto}@media (min-width:768px){.bk-bs-nav-justified>li{display:table-cell;width:1%}.bk-bs-nav-justified>li>a{margin-bottom:0}}.bk-bs-nav-tabs-justified{border-bottom:0}.bk-bs-nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.bk-bs-nav-tabs-justified>.bk-bs-active>a,.bk-bs-nav-tabs-justified>.bk-bs-active>a:hover,.bk-bs-nav-tabs-justified>.bk-bs-active>a:focus{border:1px solid #ddd}@media (min-width:768px){.bk-bs-nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.bk-bs-nav-tabs-justified>.bk-bs-active>a,.bk-bs-nav-tabs-justified>.bk-bs-active>a:hover,.bk-bs-nav-tabs-justified>.bk-bs-active>a:focus{border-bottom-color:#fff}}.bk-bs-tab-content>.bk-bs-tab-pane{display:none}.bk-bs-tab-content>.bk-bs-active{display:block}.bk-bs-nav-tabs .bk-bs-dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.bk-bs-label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.bk-bs-label[href]:hover,.bk-bs-label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.bk-bs-label:empty{display:none}.bk-bs-btn .bk-bs-label{position:relative;top:-1px}.bk-bs-label-default{background-color:#999}.bk-bs-label-default[href]:hover,.bk-bs-label-default[href]:focus{background-color:gray}.bk-bs-label-primary{background-color:#428bca}.bk-bs-label-primary[href]:hover,.bk-bs-label-primary[href]:focus{background-color:#3071a9}.bk-bs-label-success{background-color:#5cb85c}.bk-bs-label-success[href]:hover,.bk-bs-label-success[href]:focus{background-color:#449d44}.bk-bs-label-info{background-color:#5bc0de}.bk-bs-label-info[href]:hover,.bk-bs-label-info[href]:focus{background-color:#31b0d5}.bk-bs-label-warning{background-color:#f0ad4e}.bk-bs-label-warning[href]:hover,.bk-bs-label-warning[href]:focus{background-color:#ec971f}.bk-bs-label-danger{background-color:#d9534f}.bk-bs-label-danger[href]:hover,.bk-bs-label-danger[href]:focus{background-color:#c9302c}.bk-bs-panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.bk-bs-panel-body{padding:15px}.bk-bs-panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel-heading>.bk-bs-dropdown .bk-bs-dropdown-toggle{color:inherit}.bk-bs-panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.bk-bs-panel-title>a{color:inherit}.bk-bs-panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel>.bk-bs-list-group{margin-bottom:0}.bk-bs-panel>.bk-bs-list-group .bk-bs-list-group-item{border-width:1px 0;border-radius:0}.bk-bs-panel>.bk-bs-list-group:first-child .bk-bs-list-group-item:first-child{border-top:0;border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel>.bk-bs-list-group:last-child .bk-bs-list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel-heading+.bk-bs-list-group .bk-bs-list-group-item:first-child{border-top-width:0}.bk-bs-panel>.bk-bs-table,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table{margin-bottom:0}.bk-bs-panel>.bk-bs-table:first-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.bk-bs-panel>.bk-bs-table:first-child>thead:first-child>tr:first-child td:first-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>thead:first-child>tr:first-child td:first-child,.bk-bs-panel>.bk-bs-table:first-child>tbody:first-child>tr:first-child td:first-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>tbody:first-child>tr:first-child td:first-child,.bk-bs-panel>.bk-bs-table:first-child>thead:first-child>tr:first-child th:first-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>thead:first-child>tr:first-child th:first-child,.bk-bs-panel>.bk-bs-table:first-child>tbody:first-child>tr:first-child th:first-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.bk-bs-panel>.bk-bs-table:first-child>thead:first-child>tr:first-child td:last-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>thead:first-child>tr:first-child td:last-child,.bk-bs-panel>.bk-bs-table:first-child>tbody:first-child>tr:first-child td:last-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>tbody:first-child>tr:first-child td:last-child,.bk-bs-panel>.bk-bs-table:first-child>thead:first-child>tr:first-child th:last-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>thead:first-child>tr:first-child th:last-child,.bk-bs-panel>.bk-bs-table:first-child>tbody:first-child>tr:first-child th:last-child,.bk-bs-panel>.bk-bs-table-responsive:first-child>.bk-bs-table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.bk-bs-panel>.bk-bs-table:last-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.bk-bs-panel>.bk-bs-table:last-child>tbody:last-child>tr:last-child td:first-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tbody:last-child>tr:last-child td:first-child,.bk-bs-panel>.bk-bs-table:last-child>tfoot:last-child>tr:last-child td:first-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tfoot:last-child>tr:last-child td:first-child,.bk-bs-panel>.bk-bs-table:last-child>tbody:last-child>tr:last-child th:first-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tbody:last-child>tr:last-child th:first-child,.bk-bs-panel>.bk-bs-table:last-child>tfoot:last-child>tr:last-child th:first-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.bk-bs-panel>.bk-bs-table:last-child>tbody:last-child>tr:last-child td:last-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tbody:last-child>tr:last-child td:last-child,.bk-bs-panel>.bk-bs-table:last-child>tfoot:last-child>tr:last-child td:last-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tfoot:last-child>tr:last-child td:last-child,.bk-bs-panel>.bk-bs-table:last-child>tbody:last-child>tr:last-child th:last-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tbody:last-child>tr:last-child th:last-child,.bk-bs-panel>.bk-bs-table:last-child>tfoot:last-child>tr:last-child th:last-child,.bk-bs-panel>.bk-bs-table-responsive:last-child>.bk-bs-table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.bk-bs-panel>.bk-bs-panel-body+.bk-bs-table,.bk-bs-panel>.bk-bs-panel-body+.bk-bs-table-responsive{border-top:1px solid #ddd}.bk-bs-panel>.bk-bs-table>tbody:first-child>tr:first-child th,.bk-bs-panel>.bk-bs-table>tbody:first-child>tr:first-child td{border-top:0}.bk-bs-panel>.bk-bs-table-bordered,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered{border:0}.bk-bs-panel>.bk-bs-table-bordered>thead>tr>th:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>th:first-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>th:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>th:first-child,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr>th:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>th:first-child,.bk-bs-panel>.bk-bs-table-bordered>thead>tr>td:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>td:first-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>td:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td:first-child,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr>td:first-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>td:first-child{border-left:0}.bk-bs-panel>.bk-bs-table-bordered>thead>tr>th:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>th:last-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>th:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>th:last-child,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr>th:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>th:last-child,.bk-bs-panel>.bk-bs-table-bordered>thead>tr>td:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr>td:last-child,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr>td:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr>td:last-child,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr>td:last-child,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr>td:last-child{border-right:0}.bk-bs-panel>.bk-bs-table-bordered>thead>tr:first-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr:first-child>td,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:first-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:first-child>td,.bk-bs-panel>.bk-bs-table-bordered>thead>tr:first-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>thead>tr:first-child>th,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:first-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:first-child>th{border-bottom:0}.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:last-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>td,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr:last-child>td,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>td,.bk-bs-panel>.bk-bs-table-bordered>tbody>tr:last-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tbody>tr:last-child>th,.bk-bs-panel>.bk-bs-table-bordered>tfoot>tr:last-child>th,.bk-bs-panel>.bk-bs-table-responsive>.bk-bs-table-bordered>tfoot>tr:last-child>th{border-bottom:0}.bk-bs-panel>.bk-bs-table-responsive{border:0;margin-bottom:0}.bk-bs-panel-group{margin-bottom:20px}.bk-bs-panel-group .bk-bs-panel{margin-bottom:0;border-radius:4px;overflow:hidden}.bk-bs-panel-group .bk-bs-panel+.bk-bs-panel{margin-top:5px}.bk-bs-panel-group .bk-bs-panel-heading{border-bottom:0}.bk-bs-panel-group .bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top:1px solid #ddd}.bk-bs-panel-group .bk-bs-panel-footer{border-top:0}.bk-bs-panel-group .bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom:1px solid #ddd}.bk-bs-panel-default{border-color:#ddd}.bk-bs-panel-default>.bk-bs-panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.bk-bs-panel-default>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#ddd}.bk-bs-panel-default>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#ddd}.bk-bs-panel-primary{border-color:#428bca}.bk-bs-panel-primary>.bk-bs-panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.bk-bs-panel-primary>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#428bca}.bk-bs-panel-primary>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#428bca}.bk-bs-panel-success{border-color:#d6e9c6}.bk-bs-panel-success>.bk-bs-panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.bk-bs-panel-success>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#d6e9c6}.bk-bs-panel-success>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#d6e9c6}.bk-bs-panel-info{border-color:#bce8f1}.bk-bs-panel-info>.bk-bs-panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.bk-bs-panel-info>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#bce8f1}.bk-bs-panel-info>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#bce8f1}.bk-bs-panel-warning{border-color:#faebcc}.bk-bs-panel-warning>.bk-bs-panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.bk-bs-panel-warning>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#faebcc}.bk-bs-panel-warning>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#faebcc}.bk-bs-panel-danger{border-color:#ebccd1}.bk-bs-panel-danger>.bk-bs-panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.bk-bs-panel-danger>.bk-bs-panel-heading+.bk-bs-panel-collapse .bk-bs-panel-body{border-top-color:#ebccd1}.bk-bs-panel-danger>.bk-bs-panel-footer+.bk-bs-panel-collapse .bk-bs-panel-body{border-bottom-color:#ebccd1}.bk-bs-close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.bk-bs-close:hover,.bk-bs-close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.bk-bs-close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.bk-bs-modal-open{overflow:hidden}.bk-bs-modal{display:none;overflow:auto;overflow-y:scroll;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.bk-bs-modal.bk-bs-fade .bk-bs-modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.bk-bs-modal.bk-bs-in .bk-bs-modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.bk-bs-modal-dialog{position:relative;width:auto;margin:10px}.bk-bs-modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);background-clip:padding-box;outline:0}.bk-bs-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.bk-bs-modal-backdrop.bk-bs-fade{opacity:0;filter:alpha(opacity=0)}.bk-bs-modal-backdrop.bk-bs-in{opacity:.5;filter:alpha(opacity=50)}.bk-bs-modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.bk-bs-modal-header .bk-bs-close{margin-top:-2px}.bk-bs-modal-title{margin:0;line-height:1.42857143}.bk-bs-modal-body{position:relative;padding:20px}.bk-bs-modal-footer{margin-top:15px;padding:19px 20px 20px;text-align:right;border-top:1px solid #e5e5e5}.bk-bs-modal-footer .bk-bs-btn+.bk-bs-btn{margin-left:5px;margin-bottom:0}.bk-bs-modal-footer .bk-bs-btn-group .bk-bs-btn+.bk-bs-btn{margin-left:-1px}.bk-bs-modal-footer .bk-bs-btn-block+.bk-bs-btn-block{margin-left:0}@media (min-width:768px){.bk-bs-modal-dialog{width:600px;margin:30px auto}.bk-bs-modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.bk-bs-modal-sm{width:300px}}@media (min-width:992px){.bk-bs-modal-lg{width:900px}}.bk-bs-clearfix:before,.bk-bs-clearfix:after,.bk-bs-container:before,.bk-bs-container:after,.bk-bs-container-fluid:before,.bk-bs-container-fluid:after,.bk-bs-row:before,.bk-bs-row:after,.bk-bs-form-horizontal .bk-bs-form-group:before,.bk-bs-form-horizontal .bk-bs-form-group:after,.bk-bs-btn-toolbar:before,.bk-bs-btn-toolbar:after,.bk-bs-btn-group-vertical>.bk-bs-btn-group:before,.bk-bs-btn-group-vertical>.bk-bs-btn-group:after,.bk-bs-nav:before,.bk-bs-nav:after,.bk-bs-panel-body:before,.bk-bs-panel-body:after,.bk-bs-modal-footer:before,.bk-bs-modal-footer:after,.bk-crossfilter-row:before,.bk-crossfilter-row:after{content:\" \";display:table}.bk-bs-clearfix:after,.bk-bs-container:after,.bk-bs-container-fluid:after,.bk-bs-row:after,.bk-bs-form-horizontal .bk-bs-form-group:after,.bk-bs-btn-toolbar:after,.bk-bs-btn-group-vertical>.bk-bs-btn-group:after,.bk-bs-nav:after,.bk-bs-panel-body:after,.bk-bs-modal-footer:after,.bk-crossfilter-row:after{clear:both}.bk-bs-center-block{display:block;margin-left:auto;margin-right:auto}.bk-bs-pull-right{float:right!important}.bk-bs-pull-left{float:left!important}.bk-bs-hide{display:none!important}.bk-bs-show{display:block!important}.bk-bs-invisible{visibility:hidden}.bk-bs-text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.bk-bs-hidden{display:none!important;visibility:hidden!important}.bk-bs-affix{position:fixed}.bk-pivot{font-family:arial;font-size:8pt}.bk-wait{font-weight:700;font-size:18px}.bk-pivot-toolbox{min-width:200px;width:250px}.bk-pivot-toolbox ul{padding:0}.bk-pivot-toolbox li{padding:5px;list-style-type:none}.bk-pivot-toolbox li:before,.bk-pivot-toolbox li:after{content:\" \";display:table}.bk-pivot-toolbox li:after{clear:both}.bk-pivot-toolbox li:before,.bk-pivot-toolbox li:after{content:\" \";display:table}.bk-pivot-toolbox li:after{clear:both}.bk-pivot-toolbox .bk-pivot-box{border:1px solid #ccc;border-radius:5px;margin-top:5px;background-color:#fff}.bk-pivot-toolbox .bk-pivot-box>li:first-child{background-color:#e6e6e6}.bk-pivot-toolbox .bk-pivot-box .bk-pivot-box-header{cursor:move}.bk-pivot-toolbox .bk-pivot-box .bk-pivot-box-header .bk-field{font-weight:700}.bk-pivot-toolbox .bk-pivot-box .bk-pivot-box-header .bk-dtype{color:#999}.bk-pivot-toolbox .bk-pivot-box .bk-pivot-box-header .bk-bs-close{font-size:16px}table.pvtTable{text-align:left;border-collapse:collapse}table.pvtTable tr th{background-color:#e6e6e6;border:1px solid #ccc;font-size:8pt;padding:5px}table.pvtTable .pvtColLabel{text-align:center}table.pvtTable .pvtTotalLabel{text-align:right}table.pvtTable tr td{padding:5px;border:1px solid #ccc;vertical-align:top;text-align:right}.pvtTotal,.pvtGrandTotal{font-weight:700}.bk-hbox{display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:horizontal;-moz-box-align:stretch;display:box;box-orient:horizontal;box-align:stretch;-webkit-box-flex:0;-moz-box-flex:0;box-flex:0}.bk-vbox{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-align:stretch;display:-moz-box;-moz-box-orient:vertical;-moz-box-align:stretch;display:box;box-orient:vertical;box-align:stretch;width:100%;-webkit-box-flex:0;-moz-box-flex:0;box-flex:0}.bk-widget-form{padding:30px;overflow:hidden}.bk-widget-form-group{margin-bottom:15px}.bk-widget-form-input{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bk-widget-form-input:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.bk-widget-form-input::-moz-placeholder{color:#999;opacity:1}.bk-widget-form-input:-ms-input-placeholder{color:#999}.bk-widget-form-input::-webkit-input-placeholder{color:#999}.bk-widget-form-input[disabled],.bk-widget-form-input[readonly],fieldset[disabled] .bk-widget-form-input{cursor:not-allowed;background-color:#eee;opacity:1}textarea.bk-widget-form-input{height:auto}.bk-slider-horizontal{width:100%;height:50px;min-width:200px}.bk-slider-vertical{height:100%;width:50px;min-height:200px}.bk-crossfilter-row{margin-left:-15px;margin-right:-15px;height:100%;width:100%;margin:0}.bk-crossfilter-panel-heading{padding-top:5px;padding-bottom:5px}.bk-crossfilter-panel-continuous-heading{background-color:#396285!important}.bk-crossfilter-panel-factor-heading{background-color:#CE603D!important}.aligntable{vertical-align:top}.bk-crossfilter-container{height:100%;width:100%;whitespace:nowrap;display:inline-block;overflow:auto}.bk-crossfilter-configuration{overflow:auto;float:left;padding-right:0!important;padding-left:15px!important;margin-left:0!important;margin-right:0!important}.bk-crossfilter-configuration .bk-bs-panel-body{padding:0!important}.bk-column-list{overflow-y:auto;height:100%;padding-right:0;padding-left:0}.bk-table{width:100%;margin-bottom:20px;border-top:0;margin-bottom:0;text-align:left}.bk-table>thead>tr>th,.bk-table>tbody>tr>th,.bk-table>tfoot>tr>th,.bk-table>thead>tr>td,.bk-table>tbody>tr>td,.bk-table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.bk-table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.bk-table>caption+thead>tr:first-child>th,.bk-table>colgroup+thead>tr:first-child>th,.bk-table>thead:first-child>tr:first-child>th,.bk-table>caption+thead>tr:first-child>td,.bk-table>colgroup+thead>tr:first-child>td,.bk-table>thead:first-child>tr:first-child>td{border-top:0}.bk-table>tbody+tbody{border-top:2px solid #ddd}.bk-table .bk-bs-table{background-color:#fff}.bk-table>thead>tr>th,.bk-table>tbody>tr>th,.bk-table>tfoot>tr>th,.bk-table>thead>tr>td,.bk-table>tbody>tr>td,.bk-table>tfoot>tr>td{padding:5px}.bk-table tr:nth-child(odd){background:#efefef}.bk-table tr td{padding:1px 5px!important;border:0!important}.bk-filters-facets{height:100%;padding-left:0;padding-right:0}.bk-filters{height:45%;overflow:hidden;position:relative}.bk-filters-selections{position:absolute;top:30px;left:0;right:0;bottom:0;overflow-y:auto;padding-top:0;padding-bottom:0;padding:5px!important}.bk-facet{height:14%;position:relative}.bk-facets-selections{position:absolute;top:30px;left:0;right:0;bottom:0}.bk-plot-selection{padding-right:0;padding-left:0}.bk-plot{float:left;display:inline-block}.bk-facet-label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;background-color:#5bc0de;margin-left:5px;display:inline-block;cursor:pointer}.bk-facet-label[href]:hover,.bk-facet-label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.bk-facet-label:empty{display:none}.bk-bs-btn .bk-facet-label{position:relative;top:-1px}.bk-facet-label[href]:hover,.bk-facet-label[href]:focus{background-color:#31b0d5}.bk-filters-selections .bk-sidebar{-webkit-transform:scale(0.5,.5)!important;transform:scale(0.5,.5)!important}.bk-crossfilter .bk-widget-form{padding:5px}svg{font:12px sans-serif;margin:0}.ui-dialog-titlebar{height:16px}.bk-button-bar{margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:2px;position:relative;display:inline-block;vertical-align:middle}.bk-button-bar>.bk-bs-btn{position:relative;float:left}.bk-button-bar>.bk-bs-btn:hover,.bk-button-bar>.bk-bs-btn:focus,.bk-button-bar>.bk-bs-btn:active,.bk-button-bar>.bk-bs-btn.bk-bs-active{z-index:2}.bk-button-bar>.bk-bs-btn:focus{outline:0}.bk-button-bar .bk-bs-btn+.bk-bs-btn,.bk-button-bar .bk-bs-btn+.bk-bs-btn-group,.bk-button-bar .bk-bs-btn-group+.bk-bs-btn,.bk-button-bar .bk-bs-btn-group+.bk-bs-btn-group{margin-left:-1px}.bk-toolbar-button{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px;color:#333;background-color:#fff;border-color:#ccc}.bk-toolbar-button:focus,.bk-toolbar-button:active:focus,.bk-toolbar-button.bk-bs-active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bk-toolbar-button:hover,.bk-toolbar-button:focus{color:#333;text-decoration:none}.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.bk-toolbar-button.bk-bs-disabled,.bk-toolbar-button[disabled],fieldset[disabled] .bk-toolbar-button{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.bk-toolbar-button:hover,.bk-toolbar-button:focus,.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-toolbar-button{color:#333;background-color:#ebebeb;border-color:#adadad}.bk-toolbar-button:active,.bk-toolbar-button.bk-bs-active,.bk-bs-open .bk-bs-dropdown-toggle.bk-toolbar-button{background-image:none}.bk-toolbar-button.bk-bs-disabled,.bk-toolbar-button[disabled],fieldset[disabled] .bk-toolbar-button,.bk-toolbar-button.bk-bs-disabled:hover,.bk-toolbar-button[disabled]:hover,fieldset[disabled] .bk-toolbar-button:hover,.bk-toolbar-button.bk-bs-disabled:focus,.bk-toolbar-button[disabled]:focus,fieldset[disabled] .bk-toolbar-button:focus,.bk-toolbar-button.bk-bs-disabled:active,.bk-toolbar-button[disabled]:active,fieldset[disabled] .bk-toolbar-button:active,.bk-toolbar-button.bk-bs-disabled.bk-bs-active,.bk-toolbar-button[disabled].bk-bs-active,fieldset[disabled] .bk-toolbar-button.bk-bs-active{background-color:#fff;border-color:#ccc}.bk-toolbar-button .bk-bs-badge{color:#fff;background-color:#333}.grid_plot .button_bar{display:none}.grid_plot .bk-logo{display:none}.bokeh_canvas_wrapper{position:relative;font-size:12pt}.bokeh_canvas{position:absolute;font-size:12pt}.bokeh_canvas_wrapper .bokeh_gmap{position:absolute!important;z-index:-5}.plotview{clear:both}.bokeh_canvas_wrapper{position:relative;font-size:12pt;float:left}.bokeh_canvas{position:absolute;font-size:12pt}.bokeh_tooltip.left::before{position:absolute;top:40%;width:0;height:0;left:-9px;border-style:solid;border-width:7px 10px 7px 0;border-color:transparent #1e4B6c transparent transparent;content:\" \";display:block}.bokeh_tooltip.right::after{position:absolute;top:40%;width:0;height:0;right:-9px;border-style:solid;border-width:7px 0 7px 10px;border-color:transparent transparent transparent #1e4B6c;content:\" \";display:block}.bokeh_tooltip{position:absolute;padding:5px;background-color:#1e4B6c;border-radius:10px;pointer-events:none}.bokeh_tooltip_row_label{color:#9ab9b1;font-family:Helvetica,sans-serif;text-align:right}.bokeh_tooltip_row_value{color:#e2ddbd;font-family:Helvetica,sans-serif}.bokeh_tooltip_color_block{width:12px;height:12px;margin-left:5px;margin-right:5px;outline:#ddd solid 1px;display:inline-block}.bokeh_gmap{position:absolute;border:0;z-index:-5}.shading{position:absolute;display:block;border:1px dashed green;z-index:100}.gridplot_container{position:relative}.gridplot_container .gp_plotwrapper{position:absolute}.table_wrap table{display:block;margin:5px;height:300px;overflow-y:scroll}.plot_wrap .button_bar{height:30px}.plot_wrap .button_bar *{display:none}.plot_wrap:hover .button_bar *{display:inherit}.maximize{display:none;float:right}.plotclose{float:right}.plotsidebar{float:left;width:350px;overflow-x:auto}.maxplot{float:left}.bokehtable{overflow:auto}.pandassize,.pandasoffset{width:30px!important;height:20px!important;padding:1px!important}.hide{display:none}.pandasicons{position:relative;top:5px}.bokehdocheading{background-color:#ccc}.bokehdocheading:hover>.bokehdelete{display:none;float:right}.bokehdelete{float:right}.pandasgroup{width:auto;height:20px!important;padding:1px!important}.pandasagg{width:auto;height:20px!important;padding:1px!important}.tablecontrolstate{width:auto;height:20px!important;padding:1px!important}.paginatedisplay{overflow:hidden}.pagination{margin:0!important}.tablecontrolform{margin:0}.computedtxtbox,.computedname,.search{height:20px!important;padding:1px!important}.plottitle{padding-left:50px;padding-bottom:10px}.dataslider{margin:10px 5px;width:20px}.maxlabel,.minlabel{margin-top:10px;margin-bottom:10px}.jsp{overflow:hidden}\n",
" /* END /usr/local/lib/python2.7/site-packages/bokeh/server/static/css/bokeh.min.css */\n",
" </style>\n",
" <script type=\"text/javascript\">\n",
" /* BEGIN /usr/local/lib/python2.7/site-packages/bokeh/server/static/js/bokeh.min.js */\n",
" /**\n",
" * @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.\n",
" * Available via the MIT or new BSD license.\n",
" * see: http://github.com/jrburke/almond for details\n",
" */\n",
" \n",
" // Underscore.js 1.5.2\n",
" // http://underscorejs.org\n",
" // (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n",
" // Underscore may be freely distributed under the MIT license.\n",
" \n",
" /*!\n",
" * jQuery JavaScript Library v2.0.3\n",
" * http://jquery.com/\n",
" *\n",
" * Includes Sizzle.js\n",
" * http://sizzlejs.com/\n",
" *\n",
" * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors\n",
" * Released under the MIT license\n",
" * http://jquery.org/license\n",
" *\n",
" * Date: 2013-07-03T13:30Z\n",
" */\n",
" \n",
" /*!\n",
" * Sizzle CSS Selector Engine v1.9.4-pre\n",
" * http://sizzlejs.com/\n",
" *\n",
" * Copyright 2013 jQuery Foundation, Inc. and other contributors\n",
" * Released under the MIT license\n",
" * http://jquery.org/license\n",
" *\n",
" * Date: 2013-06-03\n",
" */\n",
" \n",
" // (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.\n",
" // (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n",
" // Backbone may be freely distributed under the MIT license.\n",
" // For all details and documentation:\n",
" // http://backbonejs.org\n",
" \n",
" /*-----------------------------------------------------------------------------\n",
" | Copyright (c) 2014, Nucleic Development Team.\n",
" |\n",
" | Distributed under the terms of the Modified BSD License.\n",
" |\n",
" | The full license is in the file COPYING.txt, distributed with this software.\n",
" |----------------------------------------------------------------------------*/\n",
" \n",
" /*\n",
" (c) 2013, Vladimir Agafonkin\n",
" RBush, a JavaScript library for high-performance 2D spatial indexing of points and rectangles.\n",
" https://github.com/mourner/rbush\n",
" */\n",
" \n",
" /*! sprintf.js | Copyright (c) 2007-2013 Alexandru Marasteanu <hello at alexei dot ro> | 3 clause BSD license */\n",
" \n",
" /*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)\n",
" * Licensed under the MIT License (LICENSE.txt).\n",
" *\n",
" * Version: 3.1.12\n",
" *\n",
" * Requires: jQuery 1.2.2+\n",
" */\n",
" \n",
" /* ========================================================================\n",
" * Bootstrap: modal.js v3.1.1\n",
" * http://getbootstrap.com/javascript/#modals\n",
" * ========================================================================\n",
" * Copyright 2011-2014 Twitter, Inc.\n",
" * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n",
" * ======================================================================== */\n",
" \n",
" /*!\n",
" * jsTree 3.0.0\n",
" * http://jstree.com/\n",
" *\n",
" * Copyright (c) 2013 Ivan Bozhanov (http://vakata.com)\n",
" *\n",
" * Licensed same as jquery - under the terms of the MIT License\n",
" * http://www.opensource.org/licenses/mit-license.php\n",
" */\n",
" \n",
" /*!\n",
" * if using jslint please allow for the jQuery global and use following options: \n",
" * jslint: browser: true, ass: true, bitwise: true, continue: true, nomen: true, plusplus: true, regexp: true, unparam: true, todo: true, white: true\n",
" */\n",
" \n",
" /*!\n",
" \t\t\t\t\t\t\t\tif(o && o.id && o.id !== '#') {\n",
" \t\t\t\t\t\t\t\t\t// this.edit(o);\n",
" \t\t\t\t\t\t\t\t}\n",
" \t\t\t\t\t\t\t\t*/\n",
" \n",
" /*!\n",
" \t\t\t\t\t'themes' : {\n",
" \t\t\t\t\t\t'name' : this.get_theme(),\n",
" \t\t\t\t\t\t'icons' : this._data.core.themes.icons,\n",
" \t\t\t\t\t\t'dots' : this._data.core.themes.dots\n",
" \t\t\t\t\t},\n",
" \t\t\t\t\t*/\n",
" \n",
" /*!\n",
" \t\t\t\t\tif(state.core.themes) {\n",
" \t\t\t\t\t\tif(state.core.themes.name) {\n",
" \t\t\t\t\t\t\tthis.set_theme(state.core.themes.name);\n",
" \t\t\t\t\t\t}\n",
" \t\t\t\t\t\tif(typeof state.core.themes.dots !== 'undefined') {\n",
" \t\t\t\t\t\t\tthis[ state.core.themes.dots ? \"show_dots\" : \"hide_dots\" ]();\n",
" \t\t\t\t\t\t}\n",
" \t\t\t\t\t\tif(typeof state.core.themes.icons !== 'undefined') {\n",
" \t\t\t\t\t\t\tthis[ state.core.themes.icons ? \"show_icons\" : \"hide_icons\" ]();\n",
" \t\t\t\t\t\t}\n",
" \t\t\t\t\t\tdelete state.core.themes;\n",
" \t\t\t\t\t\tdelete state.core.open;\n",
" \t\t\t\t\t\tthis.set_state(state, callback);\n",
" \t\t\t\t\t\treturn false;\n",
" \t\t\t\t\t}\n",
" \t\t\t\t\t*/\n",
" \n",
" /*!\n",
" \t\t\t\toi = obj.children(\"i:visible\"),\n",
" \t\t\t\tai = a.children(\"i:visible\"),\n",
" \t\t\t\tw1 = oi.width() * oi.length,\n",
" \t\t\t\tw2 = ai.width() * ai.length,\n",
" \t\t\t\t*/\n",
" \n",
" /*!\n",
" \t\t\t\t\t\t\t\t// TODO: moving inside, but the node is not yet loaded?\n",
" \t\t\t\t\t\t\t\t// the check will work anyway, as when moving the node will be loaded first and checked again\n",
" \t\t\t\t\t\t\t\tif(v === 'i' && !ins.is_loaded(p)) { }\n",
" \t\t\t\t\t\t\t\t*/\n",
" \n",
" /*!\n",
" * Handsontable 0.11.1\n",
" * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs\n",
" *\n",
" * Copyright 2012-2014 Marcin Warpechowski\n",
" * Licensed under the MIT license.\n",
" * http://handsontable.com/\n",
" *\n",
" * Date: Fri Sep 05 2014 12:54:36 GMT+0200 (CEST)\n",
" */\n",
" \n",
" /*\n",
" * Copyright 2012 The Polymer Authors. All rights reserved.\n",
" * Use of this source code is governed by a BSD-style\n",
" * license that can be found in the LICENSE file.\n",
" */\n",
" \n",
" /**\n",
" * autoResize - resizes a DOM element to the width and height of another DOM element\n",
" *\n",
" * Copyright 2014, Marcin Warpechowski\n",
" * Licensed under the MIT license\n",
" */\n",
" \n",
" /**\n",
" * SheetClip - Spreadsheet Clipboard Parser\n",
" * version 0.2\n",
" *\n",
" * This tiny library transforms JavaScript arrays to strings that are pasteable by LibreOffice, OpenOffice,\n",
" * Google Docs and Microsoft Excel.\n",
" *\n",
" * Copyright 2012, Marcin Warpechowski\n",
" * Licensed under the MIT license.\n",
" * http://github.com/warpech/sheetclip/\n",
" */\n",
" \n",
" // json-patch-duplex.js 0.3.6\n",
" // (c) 2013 Joachim Wester\n",
" // MIT license\n",
" \n",
" /*!\n",
" * numeral.js\n",
" * version : 1.5.3\n",
" * author : Adam Draper\n",
" * license : MIT\n",
" * http://adamwdraper.github.com/Numeral-js/\n",
" */\n",
" \n",
" /*!\n",
" * jQuery UI Core 1.10.0\n",
" * http://jqueryui.com\n",
" *\n",
" * Copyright 2013 jQuery Foundation and other contributors\n",
" * Released under the MIT license.\n",
" * http://jquery.org/license\n",
" *\n",
" * http://api.jqueryui.com/category/ui-core/\n",
" */\n",
" \n",
" /*!\n",
" * jQuery UI Widget 1.10.0\n",
" * http://jqueryui.com\n",
" *\n",
" * Copyright 2013 jQuery Foundation and other contributors\n",
" * Released under the MIT license.\n",
" * http://jquery.org/license\n",
" *\n",
" * http://api.jqueryui.com/jQuery.widget/\n",
" */\n",
" \n",
" /*!\n",
" * jQuery UI Mouse 1.10.0\n",
" * http://jqueryui.com\n",
" *\n",
" * Copyright 2013 jQuery Foundation and other contributors\n",
" * Released under the MIT license.\n",
" * http://jquery.org/license\n",
" *\n",
" * http://api.jqueryui.com/mouse/\n",
" *\n",
" * Depends:\n",
" *\tjquery.ui.widget.js\n",
" */\n",
" \n",
" /*!\n",
" * jQuery UI Sortable 1.10.0\n",
" * http://jqueryui.com\n",
" *\n",
" * Copyright 2013 jQuery Foundation and other contributors\n",
" * Released under the MIT license.\n",
" * http://jquery.org/license\n",
" *\n",
" * http://api.jqueryui.com/sortable/\n",
" *\n",
" * Depends:\n",
" *\tjquery.ui.core.js\n",
" *\tjquery.ui.mouse.js\n",
" *\tjquery.ui.widget.js\n",
" */\n",
" \n",
" /* ========================================================================\n",
" * Bootstrap: dropdown.js v3.1.1\n",
" * http://getbootstrap.com/javascript/#dropdowns\n",
" * ========================================================================\n",
" * Copyright 2011-2014 Twitter, Inc.\n",
" * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n",
" * ======================================================================== */\n",
" \n",
" /*!\n",
" * jQuery UI Slider 1.10.0\n",
" * http://jqueryui.com\n",
" *\n",
" * Copyright 2013 jQuery Foundation and other contributors\n",
" * Released under the MIT license.\n",
" * http://jquery.org/license\n",
" *\n",
" * http://api.jqueryui.com/slider/\n",
" *\n",
" * Depends:\n",
" *\tjquery.ui.core.js\n",
" *\tjquery.ui.mouse.js\n",
" *\tjquery.ui.widget.js\n",
" */\n",
" \n",
" /*!\n",
" * jQuery UI Draggable 1.10.0\n",
" * http://jqueryui.com\n",
" *\n",
" * Copyright 2013 jQuery Foundation and other contributors\n",
" * Released under the MIT license.\n",
" * http://jquery.org/license\n",
" *\n",
" * http://api.jqueryui.com/draggable/\n",
" *\n",
" * Depends:\n",
" *\tjquery.ui.core.js\n",
" *\tjquery.ui.mouse.js\n",
" *\tjquery.ui.widget.js\n",
" */\n",
" \n",
" /*!\n",
" * jQuery UI Droppable 1.10.0\n",
" * http://jqueryui.com\n",
" *\n",
" * Copyright 2013 jQuery Foundation and other contributors\n",
" * Released under the MIT license.\n",
" * http://jquery.org/license\n",
" *\n",
" * http://api.jqueryui.com/droppable/\n",
" *\n",
" * Depends:\n",
" *\tjquery.ui.core.js\n",
" *\tjquery.ui.widget.js\n",
" *\tjquery.ui.mouse.js\n",
" *\tjquery.ui.draggable.js\n",
" */\n",
" \n",
" /*! jQRangeSlider 5.7.0 - 2014-03-18 - Copyright (C) Guillaume Gautreau 2012 - MIT and GPLv3 licenses.*/\n",
" \n",
" /*!\n",
" * jQuery UI Datepicker 1.10.0\n",
" * http://jqueryui.com\n",
" *\n",
" * Copyright 2013 jQuery Foundation and other contributors\n",
" * Released under the MIT license.\n",
" * http://jquery.org/license\n",
" *\n",
" * http://api.jqueryui.com/datepicker/\n",
" *\n",
" * Depends:\n",
" *\tjquery.ui.core.js\n",
" */\n",
" \n",
" /* ========================================================================\n",
" * Bootstrap: tab.js v3.1.1\n",
" * http://getbootstrap.com/javascript/#tabs\n",
" * ========================================================================\n",
" * Copyright 2011-2014 Twitter, Inc.\n",
" * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n",
" * ======================================================================== */\n",
" \n",
" !function(t,e){t.Bokeh=e()}(this,function(){function t(e){if(!e)return t.__;var n=\"\";return(\".\"+e).split(\".\").reduce(function(e,i){return n=n?n+(\".\"+i):i,i=e[\"__\"+n],void 0===i&&(t.Logger.prototype=e,i=new t.Logger(n),e[\"__\"+n]=i),i},t.__)}var e,n,i;!function(t){function r(t,e){return b.call(t,e)}function o(t,e){var n,i,r,o,s,a,l,c,u,h,p,d=e&&e.split(\"/\"),f=y.map,_=f&&f[\"*\"]||{};if(t&&\".\"===t.charAt(0))if(e){for(d=d.slice(0,d.length-1),t=t.split(\"/\"),s=t.length-1,y.nodeIdCompat&&x.test(t[s])&&(t[s]=t[s].replace(x,\"\")),t=d.concat(t),u=0;u<t.length;u+=1)if(p=t[u],\".\"===p)t.splice(u,1),u-=1;else if(\"..\"===p){if(1===u&&(\"..\"===t[2]||\"..\"===t[0]))break;u>0&&(t.splice(u-1,2),u-=2)}t=t.join(\"/\")}else 0===t.indexOf(\"./\")&&(t=t.substring(2));if((d||_)&&f){for(n=t.split(\"/\"),u=n.length;u>0;u-=1){if(i=n.slice(0,u).join(\"/\"),d)for(h=d.length;h>0;h-=1)if(r=f[d.slice(0,h).join(\"/\")],r&&(r=r[i])){o=r,a=u;break}if(o)break;!l&&_&&_[i]&&(l=_[i],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),t=n.join(\"/\"))}return t}function s(e,n){return function(){return d.apply(t,w.call(arguments,0).concat([e,n]))}}function a(t){return function(e){return o(e,t)}}function l(t){return function(e){g[t]=e}}function c(e){if(r(m,e)){var n=m[e];delete m[e],v[e]=!0,p.apply(t,n)}if(!r(g,e)&&!r(v,e))throw new Error(\"No \"+e);return g[e]}function u(t){var e,n=t?t.indexOf(\"!\"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function h(t){return function(){return y&&y.config&&y.config[t]||{}}}var p,d,f,_,g={},m={},y={},v={},b=Object.prototype.hasOwnProperty,w=[].slice,x=/\\.js$/;f=function(t,e){var n,i=u(t),r=i[0];return t=i[1],r&&(r=o(r,e),n=c(r)),r?t=n&&n.normalize?n.normalize(t,a(e)):o(t,e):(t=o(t,e),i=u(t),r=i[0],t=i[1],r&&(n=c(r))),{f:r?r+\"!\"+t:t,n:t,pr:r,p:n}},_={require:function(t){return s(t)},exports:function(t){var e=g[t];return\"undefined\"!=typeof e?e:g[t]={}},module:function(t){return{id:t,uri:\"\",exports:g[t],config:h(t)}}},p=function(e,n,i,o){var a,u,h,p,d,y,b=[],w=typeof i;if(o=o||e,\"undefined\"===w||\"function\"===w){for(n=!n.length&&i.length?[\"require\",\"exports\",\"module\"]:n,d=0;d<n.length;d+=1)if(p=f(n[d],o),u=p.f,\"require\"===u)b[d]=_.require(e);else if(\"exports\"===u)b[d]=_.exports(e),y=!0;else if(\"module\"===u)a=b[d]=_.module(e);else if(r(g,u)||r(m,u)||r(v,u))b[d]=c(u);else{if(!p.p)throw new Error(e+\" missing \"+u);p.p.load(p.n,s(o,!0),l(u),{}),b[d]=g[u]}h=i?i.apply(g[e],b):void 0,e&&(a&&a.exports!==t&&a.exports!==g[e]?g[e]=a.exports:h===t&&y||(g[e]=h))}else e&&(g[e]=i)},e=n=d=function(e,n,i,r,o){if(\"string\"==typeof e)return _[e]?_[e](n):c(f(e,n).f);if(!e.splice){if(y=e,y.deps&&d(y.deps,y.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},\"function\"==typeof i&&(i=r,r=o),r?p(t,e,n,i):setTimeout(function(){p(t,e,n,i)},4),d},d.config=function(t){return d(t)},e._defined=g,i=function(t,e,n){e.splice||(n=e,e=[]),r(g,t)||r(m,t)||(m[t]=[t,e,n])},i.amd={jQuery:!0}}(),i(\"vendor/almond/almond\",function(){}),function(){var t=this,e=t._,n={},r=Array.prototype,s=Object.prototype,a=Function.prototype,l=r.push,c=r.slice,u=r.concat,h=s.toString,p=s.hasOwnProperty,d=r.forEach,f=r.map,_=r.reduce,g=r.reduceRight,m=r.filter,y=r.every,v=r.some,b=r.indexOf,w=r.lastIndexOf,x=Array.isArray,k=Object.keys,C=a.bind,S=function(t){return t instanceof S?t:this instanceof S?void(this._wrapped=t):new S(t)};\"undefined\"!=typeof o?(\"undefined\"!=typeof module&&module.exports&&(o=module.exports=S),o._=S):t._=S,S.VERSION=\"1.5.2\";var T=S.each=S.forEach=function(t,e,i){if(null!=t)if(d&&t.forEach===d)t.forEach(e,i);else if(t.length===+t.length){for(var r=0,o=t.length;o>r;r++)if(e.call(i,t[r],r,t)===n)return}else for(var s=S.keys(t),r=0,o=s.length;o>r;r++)if(e.call(i,t[s[r]],s[r],t)===n)return};S.map=S.collect=function(t,e,n){var i=[];return null==t?i:f&&t.map===f?t.map(e,n):(T(t,function(t,r,o){i.push(e.call(n,t,r,o))}),i)};var M=\"Reduce of empty array with no initial value\";S.reduce=S.foldl=S.inject=function(t,e,n,i){var r=arguments.length>2;if(null==t&&(t=[]),_&&t.reduce===_)return i&&(e=S.bind(e,i)),r?t.reduce(e,n):t.reduce(e);if(T(t,function(t,o,s){r?n=e.call(i,n,t,o,s):(n=t,r=!0)}),!r)throw new TypeError(M);return n},S.reduceRight=S.foldr=function(t,e,n,i){var r=arguments.length>2;if(null==t&&(t=[]),g&&t.reduceRight===g)return i&&(e=S.bind(e,i)),r?t.reduceRight(e,n):t.reduceRight(e);var o=t.length;if(o!==+o){var s=S.keys(t);o=s.length}if(T(t,function(a,l,c){l=s?s[--o]:--o,r?n=e.call(i,n,t[l],l,c):(n=t[l],r=!0)}),!r)throw new TypeError(M);return n},S.find=S.detect=function(t,e,n){var i;return D(t,function(t,r,o){return e.call(n,t,r,o)?(i=t,!0):void 0}),i},S.filter=S.select=function(t,e,n){var i=[];return null==t?i:m&&t.filter===m?t.filter(e,n):(T(t,function(t,r,o){e.call(n,t,r,o)&&i.push(t)}),i)},S.reject=function(t,e,n){return S.filter(t,function(t,i,r){return!e.call(n,t,i,r)},n)},S.every=S.all=function(t,e,i){e||(e=S.identity);var r=!0;return null==t?r:y&&t.every===y?t.every(e,i):(T(t,function(t,o,s){return(r=r&&e.call(i,t,o,s))?void 0:n}),!!r)};var D=S.some=S.any=function(t,e,i){e||(e=S.identity);var r=!1;return null==t?r:v&&t.some===v?t.some(e,i):(T(t,function(t,o,s){return r||(r=e.call(i,t,o,s))?n:void 0}),!!r)};S.contains=S.include=function(t,e){return null==t?!1:b&&t.indexOf===b?-1!=t.indexOf(e):D(t,function(t){return t===e})},S.invoke=function(t,e){var n=c.call(arguments,2),i=S.isFunction(e);return S.map(t,function(t){return(i?e:t[e]).apply(t,n)})},S.pluck=function(t,e){return S.map(t,function(t){return t[e]})},S.where=function(t,e,n){return S.isEmpty(e)?n?void 0:[]:S[n?\"find\":\"filter\"](t,function(t){for(var n in e)if(e[n]!==t[n])return!1;return!0})},S.findWhere=function(t,e){return S.where(t,e,!0)},S.max=function(t,e,n){if(!e&&S.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);if(!e&&S.isEmpty(t))return-1/0;var i={computed:-1/0,value:-1/0};return T(t,function(t,r,o){var s=e?e.call(n,t,r,o):t;s>i.computed&&(i={value:t,computed:s})}),i.value},S.min=function(t,e,n){if(!e&&S.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);if(!e&&S.isEmpty(t))return 1/0;var i={computed:1/0,value:1/0};return T(t,function(t,r,o){var s=e?e.call(n,t,r,o):t;s<i.computed&&(i={value:t,computed:s})}),i.value},S.shuffle=function(t){var e,n=0,i=[];return T(t,function(t){e=S.random(n++),i[n-1]=i[e],i[e]=t}),i},S.sample=function(t,e,n){return arguments.length<2||n?t[S.random(t.length-1)]:S.shuffle(t).slice(0,Math.max(0,e))};var A=function(t){return S.isFunction(t)?t:function(e){return e[t]}};S.sortBy=function(t,e,n){var i=A(e);return S.pluck(S.map(t,function(t,e,r){return{value:t,index:e,criteria:i.call(n,t,e,r)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return t.index-e.index}),\"value\")};var R=function(t){return function(e,n,i){var r={},o=null==n?S.identity:A(n);return T(e,function(n,s){var a=o.call(i,n,s,e);t(r,a,n)}),r}};S.groupBy=R(function(t,e,n){(S.has(t,e)?t[e]:t[e]=[]).push(n)}),S.indexBy=R(function(t,e,n){t[e]=n}),S.countBy=R(function(t,e){S.has(t,e)?t[e]++:t[e]=1}),S.sortedIndex=function(t,e,n,i){n=null==n?S.identity:A(n);for(var r=n.call(i,e),o=0,s=t.length;s>o;){var a=o+s>>>1;n.call(i,t[a])<r?o=a+1:s=a}return o},S.toArray=function(t){return t?S.isArray(t)?c.call(t):t.length===+t.length?S.map(t,S.identity):S.values(t):[]},S.size=function(t){return null==t?0:t.length===+t.length?t.length:S.keys(t).length},S.first=S.head=S.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:c.call(t,0,e)},S.initial=function(t,e,n){return c.call(t,0,t.length-(null==e||n?1:e))},S.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:c.call(t,Math.max(t.length-e,0))},S.rest=S.tail=S.drop=function(t,e,n){return c.call(t,null==e||n?1:e)},S.compact=function(t){return S.filter(t,S.identity)};var E=function(t,e,n){return e&&S.every(t,S.isArray)?u.apply(n,t):(T(t,function(t){S.isArray(t)||S.isArguments(t)?e?l.apply(n,t):E(t,e,n):n.push(t)}),n)};S.flatten=function(t,e){return E(t,e,[])},S.without=function(t){return S.difference(t,c.call(arguments,1))},S.uniq=S.unique=function(t,e,n,i){S.isFunction(e)&&(i=n,n=e,e=!1);var r=n?S.map(t,n,i):t,o=[],s=[];return T(r,function(n,i){(e?i&&s[s.length-1]===n:S.contains(s,n))||(s.push(n),o.push(t[i]))}),o},S.union=function(){return S.uniq(S.flatten(arguments,!0))},S.intersection=function(t){var e=c.call(arguments,1);return S.filter(S.uniq(t),function(t){return S.every(e,function(e){return S.indexOf(e,t)>=0})})},S.difference=function(t){var e=u.apply(r,c.call(arguments,1));return S.filter(t,function(t){return!S.contains(e,t)})},S.zip=function(){for(var t=S.max(S.pluck(arguments,\"length\").concat(0)),e=new Array(t),n=0;t>n;n++)e[n]=S.pluck(arguments,\"\"+n);return e},S.object=function(t,e){if(null==t)return{};for(var n={},i=0,r=t.length;r>i;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},S.indexOf=function(t,e,n){if(null==t)return-1;var i=0,r=t.length;if(n){if(\"number\"!=typeof n)return i=S.sortedIndex(t,e),t[i]===e?i:-1;i=0>n?Math.max(0,r+n):n}if(b&&t.indexOf===b)return t.indexOf(e,n);for(;r>i;i++)if(t[i]===e)return i;return-1},S.lastIndexOf=function(t,e,n){if(null==t)return-1;var i=null!=n;if(w&&t.lastIndexOf===w)return i?t.lastIndexOf(e,n):t.lastIndexOf(e);for(var r=i?n:t.length;r--;)if(t[r]===e)return r;return-1},S.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=arguments[2]||1;for(var i=Math.max(Math.ceil((e-t)/n),0),r=0,o=new Array(i);i>r;)o[r++]=t,t+=n;return o};var O=function(){};S.bind=function(t,e){var n,i;if(C&&t.bind===C)return C.apply(t,c.call(arguments,1));if(!S.isFunction(t))throw new TypeError;return n=c.call(arguments,2),i=function(){if(!(this instanceof i))return t.apply(e,n.concat(c.call(arguments)));O.prototype=t.prototype;var r=new O;O.prototype=null;var o=t.apply(r,n.concat(c.call(arguments)));return Object(o)===o?o:r}},S.partial=function(t){var e=c.call(arguments,1);return function(){return t.apply(this,e.concat(c.call(arguments)))}},S.bindAll=function(t){var e=c.call(arguments,1);if(0===e.length)throw new Error(\"bindAll must be passed function names\");return T(e,function(e){t[e]=S.bind(t[e],t)}),t},S.memoize=function(t,e){var n={};return e||(e=S.identity),function(){var i=e.apply(this,arguments);return S.has(n,i)?n[i]:n[i]=t.apply(this,arguments)}},S.delay=function(t,e){var n=c.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},S.defer=function(t){return S.delay.apply(S,[t,1].concat(c.call(arguments,1)))},S.throttle=function(t,e,n){var i,r,o,s=null,a=0;n||(n={});var l=function(){a=n.leading===!1?0:new Date,s=null,o=t.apply(i,r)};return function(){var c=new Date;a||n.leading!==!1||(a=c);var u=e-(c-a);return i=this,r=arguments,0>=u?(clearTimeout(s),s=null,a=c,o=t.apply(i,r)):s||n.trailing===!1||(s=setTimeout(l,u)),o}},S.debounce=function(t,e,n){var i,r,o,s,a;return function(){o=this,r=arguments,s=new Date;var l=function(){var c=new Date-s;e>c?i=setTimeout(l,e-c):(i=null,n||(a=t.apply(o,r)))},c=n&&!i;return i||(i=setTimeout(l,e)),c&&(a=t.apply(o,r)),a}},S.once=function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}},S.wrap=function(t,e){return function(){var n=[t];return l.apply(n,arguments),e.apply(this,n)}},S.compose=function(){var t=arguments;return function(){for(var e=arguments,n=t.length-1;n>=0;n--)e=[t[n].apply(this,e)];return e[0]}},S.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},S.keys=k||function(t){if(t!==Object(t))throw new TypeError(\"Invalid object\");var e=[];for(var n in t)S.has(t,n)&&e.push(n);return e},S.values=function(t){for(var e=S.keys(t),n=e.length,i=new Array(n),r=0;n>r;r++)i[r]=t[e[r]];return i},S.pairs=function(t){for(var e=S.keys(t),n=e.length,i=new Array(n),r=0;n>r;r++)i[r]=[e[r],t[e[r]]];return i},S.invert=function(t){for(var e={},n=S.keys(t),i=0,r=n.length;r>i;i++)e[t[n[i]]]=n[i];return e},S.functions=S.methods=function(t){var e=[];for(var n in t)S.isFunction(t[n])&&e.push(n);return e.sort()},S.extend=function(t){return T(c.call(arguments,1),function(e){if(e)for(var n in e)t[n]=e[n]}),t},S.pick=function(t){var e={},n=u.apply(r,c.call(arguments,1));return T(n,function(n){n in t&&(e[n]=t[n])}),e},S.omit=function(t){var e={},n=u.apply(r,c.call(arguments,1));for(var i in t)S.contains(n,i)||(e[i]=t[i]);return e},S.defaults=function(t){return T(c.call(arguments,1),function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t},S.clone=function(t){return S.isObject(t)?S.isArray(t)?t.slice():S.extend({},t):t},S.tap=function(t,e){return e(t),t};var j=function(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof S&&(t=t._wrapped),e instanceof S&&(e=e._wrapped);var r=h.call(t);if(r!=h.call(e))return!1;switch(r){case\"[object String]\":return t==String(e);case\"[object Number]\":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case\"[object Date]\":case\"[object Boolean]\":return+t==+e;case\"[object RegExp]\":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if(\"object\"!=typeof t||\"object\"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]==t)return i[o]==e;var s=t.constructor,a=e.constructor;if(s!==a&&!(S.isFunction(s)&&s instanceof s&&S.isFunction(a)&&a instanceof a))return!1;n.push(t),i.push(e);var l=0,c=!0;if(\"[object Array]\"==r){if(l=t.length,c=l==e.length)for(;l--&&(c=j(t[l],e[l],n,i)););}else{for(var u in t)if(S.has(t,u)&&(l++,!(c=S.has(e,u)&&j(t[u],e[u],n,i))))break;if(c){for(u in e)if(S.has(e,u)&&!l--)break;c=!l}}return n.pop(),i.pop(),c};S.isEqual=function(t,e){return j(t,e,[],[])},S.isEmpty=function(t){if(null==t)return!0;if(S.isArray(t)||S.isString(t))return 0===t.length;for(var e in t)if(S.has(t,e))return!1;return!0},S.isElement=function(t){return!(!t||1!==t.nodeType)},S.isArray=x||function(t){return\"[object Array]\"==h.call(t)},S.isObject=function(t){return t===Object(t)},T([\"Arguments\",\"Function\",\"String\",\"Number\",\"Date\",\"RegExp\"],function(t){S[\"is\"+t]=function(e){return h.call(e)==\"[object \"+t+\"]\"}}),S.isArguments(arguments)||(S.isArguments=function(t){return!(!t||!S.has(t,\"callee\"))}),\"function\"!=typeof/./&&(S.isFunction=function(t){return\"function\"==typeof t}),S.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},S.isNaN=function(t){return S.isNumber(t)&&t!=+t},S.isBoolean=function(t){return t===!0||t===!1||\"[object Boolean]\"==h.call(t)},S.isNull=function(t){return null===t},S.isUndefined=function(t){return void 0===t},S.has=function(t,e){return p.call(t,e)},S.noConflict=function(){return t._=e,this},S.identity=function(t){return t},S.times=function(t,e,n){for(var i=Array(Math.max(0,t)),r=0;t>r;r++)i[r]=e.call(n,r);return i},S.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))};var P={escape:{\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#x27;\"}};P.unescape=S.invert(P.escape);var N={escape:new RegExp(\"[\"+S.keys(P.escape).join(\"\")+\"]\",\"g\"),unescape:new RegExp(\"(\"+S.keys(P.unescape).join(\"|\")+\")\",\"g\")};S.each([\"escape\",\"unescape\"],function(t){S[t]=function(e){return null==e?\"\":(\"\"+e).replace(N[t],function(e){return P[t][e]})}}),S.result=function(t,e){if(null==t)return void 0;var n=t[e];return S.isFunction(n)?n.call(t):n},S.mixin=function(t){T(S.functions(t),function(e){var n=S[e]=t[e];S.prototype[e]=function(){var t=[this._wrapped];return l.apply(t,arguments),F.call(this,n.apply(S,t))}})};var I=0;S.uniqueId=function(t){var e=++I+\"\";return t?t+e:e},S.templateSettings={evaluate:/<%([\\s\\S]+?)%>/g,interpolate:/<%=([\\s\\S]+?)%>/g,escape:/<%-([\\s\\S]+?)%>/g};var z=/(.)^/,H={\"'\":\"'\",\"\\\\\":\"\\\\\",\"\\r\":\"r\",\"\\n\":\"n\",\"\t\":\"t\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},L=/\\\\|'|\\r|\\n|\\t|\\u2028|\\u2029/g;S.template=function(t,e,n){var i;n=S.defaults({},n,S.templateSettings);var r=new RegExp([(n.escape||z).source,(n.interpolate||z).source,(n.evaluate||z).source].join(\"|\")+\"|$\",\"g\"),o=0,s=\"__p+='\";t.replace(r,function(e,n,i,r,a){return s+=t.slice(o,a).replace(L,function(t){return\"\\\\\"+H[t]}),n&&(s+=\"'+\\n((__t=(\"+n+\"))==null?'':_.escape(__t))+\\n'\"),i&&(s+=\"'+\\n((__t=(\"+i+\"))==null?'':__t)+\\n'\"),r&&(s+=\"';\\n\"+r+\"\\n__p+='\"),o=a+e.length,e}),s+=\"';\\n\",n.variable||(s=\"with(obj||{}){\\n\"+s+\"}\\n\"),s=\"var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\\n\"+s+\"return __p;\\n\";try{i=new Function(n.variable||\"obj\",\"_\",s)}catch(a){throw a.source=s,a}if(e)return i(e,S);var l=function(t){return i.call(this,t,S)};return l.source=\"function(\"+(n.variable||\"obj\")+\"){\\n\"+s+\"}\",l},S.chain=function(t){return S(t).chain()};var F=function(t){return this._chain?S(t).chain():t};S.mixin(S),T([\"pop\",\"push\",\"reverse\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(t){var e=r[t];S.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),\"shift\"!=t&&\"splice\"!=t||0!==n.length||delete n[0],F.call(this,n)}}),T([\"concat\",\"join\",\"slice\"],function(t){var e=r[t];S.prototype[t]=function(){return F.call(this,e.apply(this._wrapped,arguments))}}),S.extend(S.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),\"function\"==typeof i&&i.amd&&i(\"underscore\",[],function(){return S})}.call(this);var r=this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n};!function(t){function e(t,e,n){void 0!==e[t]&&(null===e[t]?delete n[t]:n[t]=e[t])}function n(e){if(null!=t.enabled&&!t.enabled||null!=t.maxMessages&&1>t.maxMessages)return!1;try{if(e.userAgentRegex&&!RegExp(e.userAgentRegex).test(navigator.userAgent))return!1}catch(n){}try{if(e.ipRegex&&t.clientIP&&!RegExp(e.ipRegex).test(t.clientIP))return!1}catch(i){}return!0}function i(t,e){try{if(t.disallow&&RegExp(t.disallow).test(e))return!1}catch(n){}return!0}function o(t){switch(typeof t){case\"string\":return t;case\"number\":return t.toString();case\"boolean\":return t.toString();case\"undefined\":return\"undefined\";case\"function\":return t instanceof RegExp?t.toString():o(t());case\"object\":return t instanceof RegExp||t instanceof String||t instanceof Number||t instanceof Boolean?t.toString():JSON.stringify(t);default:return\"unknown\"}}t.enabled,t.maxMessages,t.defaultAjaxUrl,t.clientIP,t.requestId=\"\",t.setOptions=function(t){return e(\"enabled\",t,this),e(\"maxMessages\",t,this),e(\"defaultAjaxUrl\",t,this),e(\"clientIP\",t,this),e(\"requestId\",t,this),this},t.getAllLevel=function(){return-2147483648},t.getTraceLevel=function(){return 1e3},t.getDebugLevel=function(){return 2e3},t.getInfoLevel=function(){return 3e3},t.getWarnLevel=function(){return 4e3},t.getErrorLevel=function(){return 5e3},t.getFatalLevel=function(){return 6e3},t.getOffLevel=function(){return 2147483647};var s=function(){return function(t,e){this.inner=e,this.name=\"JL.Exception\",this.message=o(t)}}();t.Exception=s,s.prototype=Error();var a=function(){return function(t,e,n,i){this.l=t,this.m=e,this.n=n,this.t=i}}();t.LogItem=a,s=function(){function r(e,n){this.appenderName=e,this.sendLogItems=n,this.level=t.getTraceLevel(),this.sendWithBufferLevel=2147483647,this.storeInBufferLevel=-2147483648,this.bufferSize=0,this.batchSize=1,this.buffer=[],this.batchBuffer=[]}return r.prototype.setOptions=function(t){return e(\"level\",t,this),e(\"ipRegex\",t,this),e(\"userAgentRegex\",t,this),e(\"disallow\",t,this),e(\"sendWithBufferLevel\",t,this),e(\"storeInBufferLevel\",t,this),e(\"bufferSize\",t,this),e(\"batchSize\",t,this),this.bufferSize<this.buffer.length&&(this.buffer.length=this.bufferSize),this},r.prototype.log=function(t,e,r){!n(this)||!i(this,e)||t<this.storeInBufferLevel||(e=new a(t,e,r,(new Date).getTime()),t<this.level?0<this.bufferSize&&(this.buffer.push(e),this.buffer.length>this.bufferSize&&this.buffer.shift()):(t<this.sendWithBufferLevel||!this.buffer.length||(this.batchBuffer=this.batchBuffer.concat(this.buffer),this.buffer.length=0),this.batchBuffer.push(e),this.batchBuffer.length>=this.batchSize&&this.sendBatch()))},r.prototype.sendBatch=function(){0==this.batchBuffer.length||null!=t.maxMessages&&1>t.maxMessages||(null!=t.maxMessages&&(t.maxMessages-=this.batchBuffer.length),this.sendLogItems(this.batchBuffer),this.batchBuffer.length=0)},r}(),t.Appender=s;var l=function(n){function i(t){n.call(this,t,i.prototype.sendLogItemsAjax)}return r(i,n),i.prototype.setOptions=function(t){return e(\"url\",t,this),n.prototype.setOptions.call(this,t),this},i.prototype.sendLogItemsAjax=function(e){try{var n=\"/jsnlog.logger\";null!=t.defaultAjaxUrl&&(n=t.defaultAjaxUrl),this.url&&(n=this.url);var i=JSON.stringify({r:t.requestId,lg:e}),r=new XMLHttpRequest;r.open(\"POST\",n),r.setRequestHeader(\"Content-Type\",\"application/json\"),r.setRequestHeader(\"JSNLog-RequestId\",t.requestId),r.send(i)}catch(o){}},i}(s);t.AjaxAppender=l;var c=function(e){function n(t){e.call(this,t,n.prototype.sendLogItemsConsole)}return r(n,e),n.prototype.clog=function(t){console.log(t)},n.prototype.cerror=function(t){console.error?console.error(t):this.clog(t)},n.prototype.cwarn=function(t){console.warn?console.warn(t):this.clog(t)},n.prototype.cinfo=function(t){console.info?console.info(t):this.clog(t)},n.prototype.cdebug=function(t){console.debug?console.debug(t):this.cinfo(t)},n.prototype.sendLogItemsConsole=function(e){try{if(console){var n;for(n=0;n<e.length;++n){var i=e[n],r=i.n+\": \"+i.m;i.l<=t.getDebugLevel()?this.cdebug(r):i.l<=t.getInfoLevel()?this.cinfo(r):i.l<=t.getWarnLevel()?this.cwarn(r):this.cerror(r)}}}catch(o){}},n}(s);t.ConsoleAppender=c,s=function(){function t(t){this.loggerName=t,this.seenRegexes=[]}return t.prototype.setOptions=function(t){return e(\"level\",t,this),e(\"userAgentRegex\",t,this),e(\"disallow\",t,this),e(\"ipRegex\",t,this),e(\"appenders\",t,this),e(\"onceOnly\",t,this),this.seenRegexes=[],this},t.prototype.buildExceptionObject=function(t){var e={};return t.stack?e.stack=t.stack:e.e=t,t.message&&(e.message=t.message),t.name&&(e.name=t.name),t.data&&(e.data=t.data),t.inner&&(e.inner=this.buildExceptionObject(t.inner)),e},t.prototype.log=function(t,e,r){var s=0;if(!this.appenders)return this;if(t>=this.level&&n(this)&&(e=o(e),r&&(r=this.buildExceptionObject(r),r.logData=e,e=JSON.stringify(r)),i(this,e))){if(this.onceOnly)for(s=this.onceOnly.length-1;s>=0;){if(RegExp(this.onceOnly[s]).test(e)){if(this.seenRegexes[s])return this;this.seenRegexes[s]=!0}s--}for(s=this.appenders.length-1;s>=0;)this.appenders[s].log(t,e,this.loggerName),s--}return this},t.prototype.trace=function(t){return this.log(1e3,t)},t.prototype.debug=function(t){return this.log(2e3,t)},t.prototype.info=function(t){return this.log(3e3,t)},t.prototype.warn=function(t){return this.log(4e3,t)},t.prototype.error=function(t){return this.log(5e3,t)},t.prototype.fatal=function(t){return this.log(6e3,t)},t.prototype.fatalException=function(t,e){return this.log(6e3,t,e)},t}(),t.Logger=s,t.createAjaxAppender=function(t){return new l(t)},t.createConsoleAppender=function(t){return new c(t)},s=new l(\"\"),t.__=new t.Logger(\"\"),t.__.setOptions({level:t.getDebugLevel(),appenders:[s]})}(t||(t={}));var o;\"undefined\"!=typeof o&&(o.JL=t);var i;\"function\"==typeof i&&i.amd&&i(\"jsnlog\",[],function(){return t}),\"function\"==typeof __jsnlog_configure&&__jsnlog_configure(),function(){i(\"common/logging\",[\"jsnlog\"],function(t){var e,n;return e=t(\"Bokeh\"),e.setOptions({appenders:[t.createConsoleAppender(\"consoleAppender\")]}),n=function(n){var i;return i={trace:t.getTraceLevel(),debug:t.getDebugLevel(),info:t.getInfoLevel(),warn:t.getWarnLevel(),error:t.getErrorLevel(),fatal:t.getFatalLevel()},n in i?(console.log(\"Bokeh: setting log level to: '\"+n+\"'\"),e.setOptions({level:i[n]})):(console.log(\"Bokeh: Unrecognized logging level '\"+n+\"' passed to Bokeh.set_log_level, ignoring.\"),void console.log(\"Bokeh: Valid log levels are: \"+Object.keys(i)))},{logger:e,set_log_level:n}})}.call(this),function(t,e){function n(t){var e=t.length,n=se.type(t);return se.isWindow(t)?!1:1===t.nodeType&&e?!0:\"array\"===n||\"function\"!==n&&(0===e||\"number\"==typeof e&&e>0&&e-1 in t)}function r(t){var e=_e[t]={};return se.each(t.match(le)||[],function(t,n){e[n]=!0}),e}function o(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=se.expando+Math.random()}function s(t,n,i){var r;if(i===e&&1===t.nodeType)if(r=\"data-\"+n.replace(ve,\"-$1\").toLowerCase(),i=t.getAttribute(r),\"string\"==typeof i){try{i=\"true\"===i?!0:\"false\"===i?!1:\"null\"===i?null:+i+\"\"===i?+i:ye.test(i)?JSON.parse(i):i}catch(o){}ge.set(t,n,i)}else i=e;return i}function a(){return!0}function l(){return!1}function c(){try{return $.activeElement}catch(t){}}function u(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function h(t,e,n){if(se.isFunction(e))return se.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return se.grep(t,function(t){return t===e!==n});if(\"string\"==typeof e){if(Ae.test(e))return se.filter(e,t,n);e=se.filter(e,t)}return se.grep(t,function(t){return ne.call(e,t)>=0!==n})}function p(t,e){return se.nodeName(t,\"table\")&&se.nodeName(1===e.nodeType?e:e.firstChild,\"tr\")?t.getElementsByTagName(\"tbody\")[0]||t.appendChild(t.ownerDocument.createElement(\"tbody\")):t}function d(t){return t.type=(null!==t.getAttribute(\"type\"))+\"/\"+t.type,t}function f(t){var e=Fe.exec(t.type);return e?t.type=e[1]:t.removeAttribute(\"type\"),t}function _(t,e){for(var n=t.length,i=0;n>i;i++)me.set(t[i],\"globalEval\",!e||me.get(e[i],\"globalEval\"))}function g(t,e){var n,i,r,o,s,a,l,c;if(1===e.nodeType){if(me.hasData(t)&&(o=me.access(t),s=me.set(e,o),c=o.events)){delete s.handle,s.events={};for(r in c)for(n=0,i=c[r].length;i>n;n++)se.event.add(e,r,c[r][n])}ge.hasData(t)&&(a=ge.access(t),l=se.extend({},a),ge.set(e,l))}}function m(t,n){var i=t.getElementsByTagName?t.getElementsByTagName(n||\"*\"):t.querySelectorAll?t.querySelectorAll(n||\"*\"):[];return n===e||n&&se.nodeName(t,n)?se.merge([t],i):i}function y(t,e){var n=e.nodeName.toLowerCase();\"input\"===n&&ze.test(t.type)?e.checked=t.checked:(\"input\"===n||\"textarea\"===n)&&(e.defaultValue=t.defaultValue)}function v(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,r=tn.length;r--;)if(e=tn[r]+n,e in t)return e;return i}function b(t,e){return t=e||t,\"none\"===se.css(t,\"display\")||!se.contains(t.ownerDocument,t)}function w(e){return t.getComputedStyle(e,null)}function x(t,e){for(var n,i,r,o=[],s=0,a=t.length;a>s;s++)i=t[s],i.style&&(o[s]=me.get(i,\"olddisplay\"),n=i.style.display,e?(o[s]||\"none\"!==n||(i.style.display=\"\"),\"\"===i.style.display&&b(i)&&(o[s]=me.access(i,\"olddisplay\",T(i.nodeName)))):o[s]||(r=b(i),(n&&\"none\"!==n||!r)&&me.set(i,\"olddisplay\",r?n:se.css(i,\"display\"))));for(s=0;a>s;s++)i=t[s],i.style&&(e&&\"none\"!==i.style.display&&\"\"!==i.style.display||(i.style.display=e?o[s]||\"\":\"none\"));return t}function k(t,e,n){var i=Ge.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||\"px\"):e}function C(t,e,n,i,r){for(var o=n===(i?\"border\":\"content\")?4:\"width\"===e?1:0,s=0;4>o;o+=2)\"margin\"===n&&(s+=se.css(t,n+Ke[o],!0,r)),i?(\"content\"===n&&(s-=se.css(t,\"padding\"+Ke[o],!0,r)),\"margin\"!==n&&(s-=se.css(t,\"border\"+Ke[o]+\"Width\",!0,r))):(s+=se.css(t,\"padding\"+Ke[o],!0,r),\"padding\"!==n&&(s+=se.css(t,\"border\"+Ke[o]+\"Width\",!0,r)));return s}function S(t,e,n){var i=!0,r=\"width\"===e?t.offsetWidth:t.offsetHeight,o=w(t),s=se.support.boxSizing&&\"border-box\"===se.css(t,\"boxSizing\",!1,o);if(0>=r||null==r){if(r=We(t,e,o),(0>r||null==r)&&(r=t.style[e]),qe.test(r))return r;i=s&&(se.support.boxSizingReliable||r===t.style[e]),r=parseFloat(r)||0}return r+C(t,e,n||(s?\"border\":\"content\"),i,o)+\"px\"}function T(t){var e=$,n=Ze[t];return n||(n=M(t,e),\"none\"!==n&&n||(Ue=(Ue||se(\"<iframe frameborder='0' width='0' height='0'/>\").css(\"cssText\",\"display:block !important\")).appendTo(e.documentElement),e=(Ue[0].contentWindow||Ue[0].contentDocument).document,e.write(\"<!doctype html><html><body>\"),e.close(),n=M(t,e),Ue.detach()),Ze[t]=n),n}function M(t,e){var n=se(e.createElement(t)).appendTo(e.body),i=se.css(n[0],\"display\");return n.remove(),i}function D(t,e,n,i){var r;if(se.isArray(e))se.each(e,function(e,r){n||nn.test(t)?i(t,r):D(t+\"[\"+(\"object\"==typeof r?e:\"\")+\"]\",r,n,i)});else if(n||\"object\"!==se.type(e))i(t,e);else for(r in e)D(t+\"[\"+r+\"]\",e[r],n,i)}function A(t){return function(e,n){\"string\"!=typeof e&&(n=e,e=\"*\");var i,r=0,o=e.toLowerCase().match(le)||[];if(se.isFunction(n))for(;i=o[r++];)\"+\"===i[0]?(i=i.slice(1)||\"*\",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function R(t,e,n,i){function r(a){var l;return o[a]=!0,se.each(t[a]||[],function(t,a){var c=a(e,n,i);return\"string\"!=typeof c||s||o[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}var o={},s=t===bn;return r(e.dataTypes[0])||!o[\"*\"]&&r(\"*\")}function E(t,n){var i,r,o=se.ajaxSettings.flatOptions||{};for(i in n)n[i]!==e&&((o[i]?t:r||(r={}))[i]=n[i]);return r&&se.extend(!0,t,r),t}function O(t,n,i){for(var r,o,s,a,l=t.contents,c=t.dataTypes;\"*\"===c[0];)c.shift(),r===e&&(r=t.mimeType||n.getResponseHeader(\"Content-Type\"));if(r)for(o in l)if(l[o]&&l[o].test(r)){c.unshift(o);break}if(c[0]in i)s=c[0];else{for(o in i){if(!c[0]||t.converters[o+\" \"+c[0]]){s=o;break}a||(a=o)}s=s||a}return s?(s!==c[0]&&c.unshift(s),i[s]):void 0}function j(t,e,n,i){var r,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if(\"*\"===o)o=l;else if(\"*\"!==l&&l!==o){if(s=c[l+\" \"+o]||c[\"* \"+o],!s)for(r in c)if(a=r.split(\" \"),a[1]===o&&(s=c[l+\" \"+a[0]]||c[\"* \"+a[0]])){s===!0?s=c[r]:c[r]!==!0&&(o=a[0],u.unshift(a[1]));break}if(s!==!0)if(s&&t[\"throws\"])e=s(e);else try{e=s(e)}catch(h){return{state:\"parsererror\",error:s?h:\"No conversion from \"+l+\" to \"+o}}}return{state:\"success\",data:e}}function P(){return setTimeout(function(){An=e}),An=se.now()}function N(t,e,n){for(var i,r=(Nn[e]||[]).concat(Nn[\"*\"]),o=0,s=r.length;s>o;o++)if(i=r[o].call(n,e,t))return i}function I(t,e,n){var i,r,o=0,s=Pn.length,a=se.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=An||P(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,o=1-i,s=0,l=c.tweens.length;l>s;s++)c.tweens[s].run(o);return a.notifyWith(t,[c,o,n]),1>o&&l?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:se.extend({},e),opts:se.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:An||P(),duration:n.duration,tweens:[],createTween:function(e,n){var i=se.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)c.tweens[n].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),u=c.props;for(z(u,c.opts.specialEasing);s>o;o++)if(i=Pn[o].call(c,t,u,c.opts))return i;return se.map(u,N,c),se.isFunction(c.opts.start)&&c.opts.start.call(t,c),se.fx.timer(se.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function z(t,e){var n,i,r,o,s;for(n in t)if(i=se.camelCase(n),r=e[i],o=t[n],se.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),s=se.cssHooks[i],s&&\"expand\"in s){o=s.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function H(t,n,i){var r,o,s,a,l,c,u=this,h={},p=t.style,d=t.nodeType&&b(t),f=me.get(t,\"fxshow\");i.queue||(l=se._queueHooks(t,\"fx\"),null==l.unqueued&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,u.always(function(){u.always(function(){l.unqueued--,se.queue(t,\"fx\").length||l.empty.fire()})})),1===t.nodeType&&(\"height\"in n||\"width\"in n)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],\"inline\"===se.css(t,\"display\")&&\"none\"===se.css(t,\"float\")&&(p.display=\"inline-block\")),i.overflow&&(p.overflow=\"hidden\",u.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}));for(r in n)if(o=n[r],En.exec(o)){if(delete n[r],s=s||\"toggle\"===o,o===(d?\"hide\":\"show\")){if(\"show\"!==o||!f||f[r]===e)continue;d=!0}h[r]=f&&f[r]||se.style(t,r)}if(!se.isEmptyObject(h)){f?\"hidden\"in f&&(d=f.hidden):f=me.access(t,\"fxshow\",{}),s&&(f.hidden=!d),d?se(t).show():u.done(function(){se(t).hide()\n",
" }),u.done(function(){var e;me.remove(t,\"fxshow\");for(e in h)se.style(t,e,h[e])});for(r in h)a=N(d?f[r]:0,r,u),r in f||(f[r]=a.start,d&&(a.end=a.start,a.start=\"width\"===r||\"height\"===r?1:0))}}function L(t,e,n,i,r){return new L.prototype.init(t,e,n,i,r)}function F(t,e){var n,i={height:t},r=0;for(e=e?1:0;4>r;r+=2-e)n=Ke[r],i[\"margin\"+n]=i[\"padding\"+n]=t;return e&&(i.opacity=i.width=t),i}function B(t){return se.isWindow(t)?t:9===t.nodeType&&t.defaultView}var V,W,U=typeof e,Y=t.location,$=t.document,G=$.documentElement,q=t.jQuery,X=t.$,Z={},J=[],Q=\"2.0.3\",K=J.concat,te=J.push,ee=J.slice,ne=J.indexOf,ie=Z.toString,re=Z.hasOwnProperty,oe=Q.trim,se=function(t,e){return new se.fn.init(t,e,V)},ae=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,le=/\\S+/g,ce=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,ue=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,he=/^-ms-/,pe=/-([\\da-z])/gi,de=function(t,e){return e.toUpperCase()},fe=function(){$.removeEventListener(\"DOMContentLoaded\",fe,!1),t.removeEventListener(\"load\",fe,!1),se.ready()};se.fn=se.prototype={jquery:Q,constructor:se,init:function(t,n,i){var r,o;if(!t)return this;if(\"string\"==typeof t){if(r=\"<\"===t.charAt(0)&&\">\"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:ce.exec(t),!r||!r[1]&&n)return!n||n.jquery?(n||i).find(t):this.constructor(n).find(t);if(r[1]){if(n=n instanceof se?n[0]:n,se.merge(this,se.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:$,!0)),ue.test(r[1])&&se.isPlainObject(n))for(r in n)se.isFunction(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return o=$.getElementById(r[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=$,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):se.isFunction(t)?i.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),se.makeArray(t,this))},selector:\"\",length:0,toArray:function(){return ee.call(this)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t){var e=se.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return se.each(this,t,e)},ready:function(t){return se.ready.promise().done(t),this},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},map:function(t){return this.pushStack(se.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:te,sort:[].sort,splice:[].splice},se.fn.init.prototype=se.fn,se.extend=se.fn.extend=function(){var t,n,i,r,o,s,a=arguments[0]||{},l=1,c=arguments.length,u=!1;for(\"boolean\"==typeof a&&(u=a,a=arguments[1]||{},l=2),\"object\"==typeof a||se.isFunction(a)||(a={}),c===l&&(a=this,--l);c>l;l++)if(null!=(t=arguments[l]))for(n in t)i=a[n],r=t[n],a!==r&&(u&&r&&(se.isPlainObject(r)||(o=se.isArray(r)))?(o?(o=!1,s=i&&se.isArray(i)?i:[]):s=i&&se.isPlainObject(i)?i:{},a[n]=se.extend(u,s,r)):r!==e&&(a[n]=r));return a},se.extend({expando:\"jQuery\"+(Q+Math.random()).replace(/\\D/g,\"\"),noConflict:function(e){return t.$===se&&(t.$=X),e&&t.jQuery===se&&(t.jQuery=q),se},isReady:!1,readyWait:1,holdReady:function(t){t?se.readyWait++:se.ready(!0)},ready:function(t){(t===!0?--se.readyWait:se.isReady)||(se.isReady=!0,t!==!0&&--se.readyWait>0||(W.resolveWith($,[se]),se.fn.trigger&&se($).trigger(\"ready\").off(\"ready\")))},isFunction:function(t){return\"function\"===se.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):\"object\"==typeof t||\"function\"==typeof t?Z[ie.call(t)]||\"object\":typeof t},isPlainObject:function(t){if(\"object\"!==se.type(t)||t.nodeType||se.isWindow(t))return!1;try{if(t.constructor&&!re.call(t.constructor.prototype,\"isPrototypeOf\"))return!1}catch(e){return!1}return!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,n){if(!t||\"string\"!=typeof t)return null;\"boolean\"==typeof e&&(n=e,e=!1),e=e||$;var i=ue.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=se.buildFragment([t],e,r),r&&se(r).remove(),se.merge([],i.childNodes))},parseJSON:JSON.parse,parseXML:function(t){var n,i;if(!t||\"string\"!=typeof t)return null;try{i=new DOMParser,n=i.parseFromString(t,\"text/xml\")}catch(r){n=e}return(!n||n.getElementsByTagName(\"parsererror\").length)&&se.error(\"Invalid XML: \"+t),n},noop:function(){},globalEval:function(t){var e,n=eval;t=se.trim(t),t&&(1===t.indexOf(\"use strict\")?(e=$.createElement(\"script\"),e.text=t,$.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(he,\"ms-\").replace(pe,de)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var r,o=0,s=t.length,a=n(t);if(i){if(a)for(;s>o&&(r=e.apply(t[o],i),r!==!1);o++);else for(o in t)if(r=e.apply(t[o],i),r===!1)break}else if(a)for(;s>o&&(r=e.call(t[o],o,t[o]),r!==!1);o++);else for(o in t)if(r=e.call(t[o],o,t[o]),r===!1)break;return t},trim:function(t){return null==t?\"\":oe.call(t)},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?se.merge(i,\"string\"==typeof t?[t]:t):te.call(i,t)),i},inArray:function(t,e,n){return null==e?-1:ne.call(e,t,n)},merge:function(t,n){var i=n.length,r=t.length,o=0;if(\"number\"==typeof i)for(;i>o;o++)t[r++]=n[o];else for(;n[o]!==e;)t[r++]=n[o++];return t.length=r,t},grep:function(t,e,n){var i,r=[],o=0,s=t.length;for(n=!!n;s>o;o++)i=!!e(t[o],o),n!==i&&r.push(t[o]);return r},map:function(t,e,i){var r,o=0,s=t.length,a=n(t),l=[];if(a)for(;s>o;o++)r=e(t[o],o,i),null!=r&&(l[l.length]=r);else for(o in t)r=e(t[o],o,i),null!=r&&(l[l.length]=r);return K.apply([],l)},guid:1,proxy:function(t,n){var i,r,o;return\"string\"==typeof n&&(i=t[n],n=t,t=i),se.isFunction(t)?(r=ee.call(arguments,2),o=function(){return t.apply(n||this,r.concat(ee.call(arguments)))},o.guid=t.guid=t.guid||se.guid++,o):e},access:function(t,n,i,r,o,s,a){var l=0,c=t.length,u=null==i;if(\"object\"===se.type(i)){o=!0;for(l in i)se.access(t,n,l,i[l],!0,s,a)}else if(r!==e&&(o=!0,se.isFunction(r)||(a=!0),u&&(a?(n.call(t,r),n=null):(u=n,n=function(t,e,n){return u.call(se(t),n)})),n))for(;c>l;l++)n(t[l],i,a?r:r.call(t[l],l,n(t[l],i)));return o?t:u?n.call(t):c?n(t[0],i):s},now:Date.now,swap:function(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=s[o];return r}}),se.ready.promise=function(e){return W||(W=se.Deferred(),\"complete\"===$.readyState?setTimeout(se.ready):($.addEventListener(\"DOMContentLoaded\",fe,!1),t.addEventListener(\"load\",fe,!1))),W.promise(e)},se.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),function(t,e){Z[\"[object \"+e+\"]\"]=e.toLowerCase()}),V=se($),function(t,e){function n(t,e,n,i){var r,o,s,a,l,c,u,h,f,_;if((e?e.ownerDocument||e:F)!==O&&E(e),e=e||O,n=n||[],!t||\"string\"!=typeof t)return n;if(1!==(a=e.nodeType)&&9!==a)return[];if(P&&!i){if(r=ve.exec(t))if(s=r[1]){if(9===a){if(o=e.getElementById(s),!o||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&H(e,o)&&o.id===s)return n.push(o),n}else{if(r[2])return te.apply(n,e.getElementsByTagName(t)),n;if((s=r[3])&&k.getElementsByClassName&&e.getElementsByClassName)return te.apply(n,e.getElementsByClassName(s)),n}if(k.qsa&&(!N||!N.test(t))){if(h=u=L,f=e,_=9===a&&t,1===a&&\"object\"!==e.nodeName.toLowerCase()){for(c=p(t),(u=e.getAttribute(\"id\"))?h=u.replace(xe,\"\\\\$&\"):e.setAttribute(\"id\",h),h=\"[id='\"+h+\"'] \",l=c.length;l--;)c[l]=h+d(c[l]);f=de.test(t)&&e.parentNode||e,_=c.join(\",\")}if(_)try{return te.apply(n,f.querySelectorAll(_)),n}catch(g){}finally{u||e.removeAttribute(\"id\")}}}return w(t.replace(ue,\"$1\"),e,n,i)}function i(){function t(n,i){return e.push(n+=\" \")>S.cacheLength&&delete t[e.shift()],t[n]=i}var e=[];return t}function r(t){return t[L]=!0,t}function o(t){var e=O.createElement(\"div\");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var n=t.split(\"|\"),i=t.length;i--;)S.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||X)-(~t.sourceIndex||X);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function l(t){return function(e){var n=e.nodeName.toLowerCase();return\"input\"===n&&e.type===t}}function c(t){return function(e){var n=e.nodeName.toLowerCase();return(\"input\"===n||\"button\"===n)&&e.type===t}}function u(t){return r(function(e){return e=+e,r(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function h(){}function p(t,e){var i,r,o,s,a,l,c,u=U[t+\" \"];if(u)return e?0:u.slice(0);for(a=t,l=[],c=S.preFilter;a;){(!i||(r=he.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=pe.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(ue,\" \")}),a=a.slice(i.length));for(s in S.filter)!(r=me[s].exec(a))||c[s]&&!(r=c[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return e?a.length:a?n.error(t):U(t,l).slice(0)}function d(t){for(var e=0,n=t.length,i=\"\";n>e;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,r=n&&\"parentNode\"===i,o=V++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,s){var a,l,c,u=B+\" \"+o;if(s){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||r)if(c=e[L]||(e[L]={}),(l=c[i])&&l[0]===u){if((a=l[1])===!0||a===C)return a===!0}else if(l=c[i]=[u],l[1]=t(e,n,s)||C,l[1]===!0)return!0}}function _(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function g(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,c=null!=e;l>a;a++)(o=t[a])&&(!n||n(o,i,r))&&(s.push(o),c&&e.push(a));return s}function m(t,e,n,i,o,s){return i&&!i[L]&&(i=m(i)),o&&!o[L]&&(o=m(o,s)),r(function(r,s,a,l){var c,u,h,p=[],d=[],f=s.length,_=r||b(e||\"*\",a.nodeType?[a]:a,[]),m=!t||!r&&e?_:g(_,p,t,a,l),y=n?o||(r?t:f||i)?[]:s:m;if(n&&n(m,y,a,l),i)for(c=g(y,d),i(c,[],a,l),u=c.length;u--;)(h=c[u])&&(y[d[u]]=!(m[d[u]]=h));if(r){if(o||t){if(o){for(c=[],u=y.length;u--;)(h=y[u])&&c.push(m[u]=h);o(null,y=[],c,l)}for(u=y.length;u--;)(h=y[u])&&(c=o?ne.call(r,h):p[u])>-1&&(r[c]=!(s[c]=h))}}else y=g(y===s?y.splice(f,y.length):y),o?o(null,s,y,l):te.apply(s,y)})}function y(t){for(var e,n,i,r=t.length,o=S.relative[t[0].type],s=o||S.relative[\" \"],a=o?1:0,l=f(function(t){return t===e},s,!0),c=f(function(t){return ne.call(e,t)>-1},s,!0),u=[function(t,n,i){return!o&&(i||n!==A)||((e=n).nodeType?l(t,n,i):c(t,n,i))}];r>a;a++)if(n=S.relative[t[a].type])u=[f(_(u),n)];else{if(n=S.filter[t[a].type].apply(null,t[a].matches),n[L]){for(i=++a;r>i&&!S.relative[t[i].type];i++);return m(a>1&&_(u),a>1&&d(t.slice(0,a-1).concat({value:\" \"===t[a-2].type?\"*\":\"\"})).replace(ue,\"$1\"),n,i>a&&y(t.slice(a,i)),r>i&&y(t=t.slice(i)),r>i&&d(t))}u.push(n)}return _(u)}function v(t,e){var i=0,o=e.length>0,s=t.length>0,a=function(r,a,l,c,u){var h,p,d,f=[],_=0,m=\"0\",y=r&&[],v=null!=u,b=A,w=r||s&&S.find.TAG(\"*\",u&&a.parentNode||a),x=B+=null==b?1:Math.random()||.1;for(v&&(A=a!==O&&a,C=i);null!=(h=w[m]);m++){if(s&&h){for(p=0;d=t[p++];)if(d(h,a,l)){c.push(h);break}v&&(B=x,C=++i)}o&&((h=!d&&h)&&_--,r&&y.push(h))}if(_+=m,o&&m!==_){for(p=0;d=e[p++];)d(y,f,a,l);if(r){if(_>0)for(;m--;)y[m]||f[m]||(f[m]=Q.call(c));f=g(f)}te.apply(c,f),v&&!r&&f.length>0&&_+e.length>1&&n.uniqueSort(c)}return v&&(B=x,A=b),y};return o?r(a):a}function b(t,e,i){for(var r=0,o=e.length;o>r;r++)n(t,e[r],i);return i}function w(t,e,n,i){var r,o,s,a,l,c=p(t);if(!i&&1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&\"ID\"===(s=o[0]).type&&k.getById&&9===e.nodeType&&P&&S.relative[o[1].type]){if(e=(S.find.ID(s.matches[0].replace(ke,Ce),e)||[])[0],!e)return n;t=t.slice(o.shift().value.length)}for(r=me.needsContext.test(t)?0:o.length;r--&&(s=o[r],!S.relative[a=s.type]);)if((l=S.find[a])&&(i=l(s.matches[0].replace(ke,Ce),de.test(o[0].type)&&e.parentNode||e))){if(o.splice(r,1),t=i.length&&d(o),!t)return te.apply(n,i),n;break}}return D(t,c)(i,e,!P,n,de.test(t)),n}var x,k,C,S,T,M,D,A,R,E,O,j,P,N,I,z,H,L=\"sizzle\"+-new Date,F=t.document,B=0,V=0,W=i(),U=i(),Y=i(),$=!1,G=function(t,e){return t===e?($=!0,0):0},q=typeof e,X=1<<31,Z={}.hasOwnProperty,J=[],Q=J.pop,K=J.push,te=J.push,ee=J.slice,ne=J.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},ie=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",re=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",oe=\"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",ae=oe.replace(\"w\",\"w#\"),le=\"\\\\[\"+re+\"*(\"+oe+\")\"+re+\"*(?:([*^$|!~]?=)\"+re+\"*(?:(['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|(\"+ae+\")|)|)\"+re+\"*\\\\]\",ce=\":(\"+oe+\")(?:\\\\(((['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+le.replace(3,8)+\")*)|.*)\\\\)|)\",ue=new RegExp(\"^\"+re+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+re+\"+$\",\"g\"),he=new RegExp(\"^\"+re+\"*,\"+re+\"*\"),pe=new RegExp(\"^\"+re+\"*([>+~]|\"+re+\")\"+re+\"*\"),de=new RegExp(re+\"*[+~]\"),fe=new RegExp(\"=\"+re+\"*([^\\\\]'\\\"]*)\"+re+\"*\\\\]\",\"g\"),_e=new RegExp(ce),ge=new RegExp(\"^\"+ae+\"$\"),me={ID:new RegExp(\"^#(\"+oe+\")\"),CLASS:new RegExp(\"^\\\\.(\"+oe+\")\"),TAG:new RegExp(\"^(\"+oe.replace(\"w\",\"w*\")+\")\"),ATTR:new RegExp(\"^\"+le),PSEUDO:new RegExp(\"^\"+ce),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+re+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+re+\"*(?:([+-]|)\"+re+\"*(\\\\d+)|))\"+re+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+ie+\")$\",\"i\"),needsContext:new RegExp(\"^\"+re+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+re+\"*((?:-\\\\d)?\\\\d*)\"+re+\"*\\\\)|)(?=[^-]|$)\",\"i\")},ye=/^[^{]+\\{\\s*\\[native \\w/,ve=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,be=/^(?:input|select|textarea|button)$/i,we=/^h\\d$/i,xe=/'|\\\\/g,ke=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+re+\"?|(\"+re+\")|.)\",\"ig\"),Ce=function(t,e,n){var i=\"0x\"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{te.apply(J=ee.call(F.childNodes),F.childNodes),J[F.childNodes.length].nodeType}catch(Se){te={apply:J.length?function(t,e){K.apply(t,ee.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}M=n.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?\"HTML\"!==e.nodeName:!1},k=n.support={},E=n.setDocument=function(t){var e=t?t.ownerDocument||t:F,n=e.defaultView;return e!==O&&9===e.nodeType&&e.documentElement?(O=e,j=e.documentElement,P=!M(e),n&&n.attachEvent&&n!==n.top&&n.attachEvent(\"onbeforeunload\",function(){E()}),k.attributes=o(function(t){return t.className=\"i\",!t.getAttribute(\"className\")}),k.getElementsByTagName=o(function(t){return t.appendChild(e.createComment(\"\")),!t.getElementsByTagName(\"*\").length}),k.getElementsByClassName=o(function(t){return t.innerHTML=\"<div class='a'></div><div class='a i'></div>\",t.firstChild.className=\"i\",2===t.getElementsByClassName(\"i\").length}),k.getById=o(function(t){return j.appendChild(t).id=L,!e.getElementsByName||!e.getElementsByName(L).length}),k.getById?(S.find.ID=function(t,e){if(typeof e.getElementById!==q&&P){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},S.filter.ID=function(t){var e=t.replace(ke,Ce);return function(t){return t.getAttribute(\"id\")===e}}):(delete S.find.ID,S.filter.ID=function(t){var e=t.replace(ke,Ce);return function(t){var n=typeof t.getAttributeNode!==q&&t.getAttributeNode(\"id\");return n&&n.value===e}}),S.find.TAG=k.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==q?e.getElementsByTagName(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if(\"*\"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},S.find.CLASS=k.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==q&&P?e.getElementsByClassName(t):void 0},I=[],N=[],(k.qsa=ye.test(e.querySelectorAll))&&(o(function(t){t.innerHTML=\"<select><option selected=''></option></select>\",t.querySelectorAll(\"[selected]\").length||N.push(\"\\\\[\"+re+\"*(?:value|\"+ie+\")\"),t.querySelectorAll(\":checked\").length||N.push(\":checked\")}),o(function(t){var n=e.createElement(\"input\");n.setAttribute(\"type\",\"hidden\"),t.appendChild(n).setAttribute(\"t\",\"\"),t.querySelectorAll(\"[t^='']\").length&&N.push(\"[*^$]=\"+re+\"*(?:''|\\\"\\\")\"),t.querySelectorAll(\":enabled\").length||N.push(\":enabled\",\":disabled\"),t.querySelectorAll(\"*,:x\"),N.push(\",.*:\")})),(k.matchesSelector=ye.test(z=j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&o(function(t){k.disconnectedMatch=z.call(t,\"div\"),z.call(t,\"[s!='']:x\"),I.push(\"!=\",ce)}),N=N.length&&new RegExp(N.join(\"|\")),I=I.length&&new RegExp(I.join(\"|\")),H=ye.test(j.contains)||j.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},G=j.compareDocumentPosition?function(t,n){if(t===n)return $=!0,0;var i=n.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(n);return i?1&i||!k.sortDetached&&n.compareDocumentPosition(t)===i?t===e||H(F,t)?-1:n===e||H(F,n)?1:R?ne.call(R,t)-ne.call(R,n):0:4&i?-1:1:t.compareDocumentPosition?-1:1}:function(t,n){var i,r=0,o=t.parentNode,s=n.parentNode,l=[t],c=[n];if(t===n)return $=!0,0;if(!o||!s)return t===e?-1:n===e?1:o?-1:s?1:R?ne.call(R,t)-ne.call(R,n):0;if(o===s)return a(t,n);for(i=t;i=i.parentNode;)l.unshift(i);for(i=n;i=i.parentNode;)c.unshift(i);for(;l[r]===c[r];)r++;return r?a(l[r],c[r]):l[r]===F?-1:c[r]===F?1:0},e):O},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==O&&E(t),e=e.replace(fe,\"='$1']\"),!(!k.matchesSelector||!P||I&&I.test(e)||N&&N.test(e)))try{var i=z.call(t,e);if(i||k.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(r){}return n(e,O,null,[t]).length>0},n.contains=function(t,e){return(t.ownerDocument||t)!==O&&E(t),H(t,e)},n.attr=function(t,n){(t.ownerDocument||t)!==O&&E(t);var i=S.attrHandle[n.toLowerCase()],r=i&&Z.call(S.attrHandle,n.toLowerCase())?i(t,n,!P):e;return r===e?k.attributes||!P?t.getAttribute(n):(r=t.getAttributeNode(n))&&r.specified?r.value:null:r},n.error=function(t){throw new Error(\"Syntax error, unrecognized expression: \"+t)},n.uniqueSort=function(t){var e,n=[],i=0,r=0;if($=!k.detectDuplicates,R=!k.sortStable&&t.slice(0),t.sort(G),$){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return t},T=n.getText=function(t){var e,n=\"\",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if(\"string\"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=T(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i];i++)n+=T(e);return n},S=n.selectors={cacheLength:50,createPseudo:r,match:me,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(ke,Ce),t[3]=(t[4]||t[5]||\"\").replace(ke,Ce),\"~=\"===t[2]&&(t[3]=\" \"+t[3]+\" \"),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),\"nth\"===t[1].slice(0,3)?(t[3]||n.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*(\"even\"===t[3]||\"odd\"===t[3])),t[5]=+(t[7]+t[8]||\"odd\"===t[3])):t[3]&&n.error(t[0]),t},PSEUDO:function(t){var n,i=!t[5]&&t[2];return me.CHILD.test(t[0])?null:(t[3]&&t[4]!==e?t[2]=t[4]:i&&_e.test(i)&&(n=p(i,!0))&&(n=i.indexOf(\")\",i.length-n)-i.length)&&(t[0]=t[0].slice(0,n),t[2]=i.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(ke,Ce).toLowerCase();return\"*\"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+\" \"];return e||(e=new RegExp(\"(^|\"+re+\")\"+t+\"(\"+re+\"|$)\"))&&W(t,function(t){return e.test(\"string\"==typeof t.className&&t.className||typeof t.getAttribute!==q&&t.getAttribute(\"class\")||\"\")})},ATTR:function(t,e,i){return function(r){var o=n.attr(r,t);return null==o?\"!=\"===e:e?(o+=\"\",\"=\"===e?o===i:\"!=\"===e?o!==i:\"^=\"===e?i&&0===o.indexOf(i):\"*=\"===e?i&&o.indexOf(i)>-1:\"$=\"===e?i&&o.slice(-i.length)===i:\"~=\"===e?(\" \"+o+\" \").indexOf(i)>-1:\"|=\"===e?o===i||o.slice(0,i.length+1)===i+\"-\":!1):!0}},CHILD:function(t,e,n,i,r){var o=\"nth\"!==t.slice(0,3),s=\"last\"!==t.slice(-4),a=\"of-type\"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,h,p,d,f,_=o!==s?\"nextSibling\":\"previousSibling\",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(g){if(o){for(;_;){for(h=e;h=h[_];)if(a?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;f=_=\"only\"===t&&!f&&\"nextSibling\"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(u=g[L]||(g[L]={}),c=u[t]||[],d=c[0]===B&&c[1],p=c[0]===B&&c[2],h=d&&g.childNodes[d];h=++d&&h&&h[_]||(p=d=0)||f.pop();)if(1===h.nodeType&&++p&&h===e){u[t]=[B,d,p];break}}else if(y&&(c=(e[L]||(e[L]={}))[t])&&c[0]===B)p=c[1];else for(;(h=++d&&h&&h[_]||(p=d=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++p||(y&&((h[L]||(h[L]={}))[t]=[B,p]),h!==e)););return p-=r,p===i||p%i===0&&p/i>=0}}},PSEUDO:function(t,e){var i,o=S.pseudos[t]||S.setFilters[t.toLowerCase()]||n.error(\"unsupported pseudo: \"+t);return o[L]?o(e):o.length>1?(i=[t,t,\"\",e],S.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,n){for(var i,r=o(t,e),s=r.length;s--;)i=ne.call(t,r[s]),t[i]=!(n[i]=r[s])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=D(t.replace(ue,\"$1\"));return i[L]?r(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),!n.pop()}}),has:r(function(t){return function(e){return n(t,e).length>0}}),contains:r(function(t){return function(e){return(e.textContent||e.innerText||T(e)).indexOf(t)>-1}}),lang:r(function(t){return ge.test(t||\"\")||n.error(\"unsupported lang: \"+t),t=t.replace(ke,Ce).toLowerCase(),function(e){var n;do if(n=P?e.lang:e.getAttribute(\"xml:lang\")||e.getAttribute(\"lang\"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+\"-\");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===j},focus:function(t){return t===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return\"input\"===e&&!!t.checked||\"option\"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeName>\"@\"||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!S.pseudos.empty(t)},header:function(t){return we.test(t.nodeName)},input:function(t){return be.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return\"input\"===e&&\"button\"===t.type||\"button\"===e},text:function(t){var e;return\"input\"===t.nodeName.toLowerCase()&&\"text\"===t.type&&(null==(e=t.getAttribute(\"type\"))||e.toLowerCase()===t.type)},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[0>n?n+e:n]}),even:u(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:u(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:u(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},S.pseudos.nth=S.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[x]=l(x);for(x in{submit:!0,reset:!0})S.pseudos[x]=c(x);h.prototype=S.filters=S.pseudos,S.setFilters=new h,D=n.compile=function(t,e){var n,i=[],r=[],o=Y[t+\" \"];if(!o){for(e||(e=p(t)),n=e.length;n--;)o=y(e[n]),o[L]?i.push(o):r.push(o);o=Y(t,v(r,i))}return o},k.sortStable=L.split(\"\").sort(G).join(\"\")===L,k.detectDuplicates=$,E(),k.sortDetached=o(function(t){return 1&t.compareDocumentPosition(O.createElement(\"div\"))}),o(function(t){return t.innerHTML=\"<a href='#'></a>\",\"#\"===t.firstChild.getAttribute(\"href\")})||s(\"type|href|height|width\",function(t,e,n){return n?void 0:t.getAttribute(e,\"type\"===e.toLowerCase()?1:2)}),k.attributes&&o(function(t){return t.innerHTML=\"<input/>\",t.firstChild.setAttribute(\"value\",\"\"),\"\"===t.firstChild.getAttribute(\"value\")})||s(\"value\",function(t,e,n){return n||\"input\"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),o(function(t){return null==t.getAttribute(\"disabled\")})||s(ie,function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&i.specified?i.value:t[e]===!0?e.toLowerCase():null}),se.find=n,se.expr=n.selectors,se.expr[\":\"]=se.expr.pseudos,se.unique=n.uniqueSort,se.text=n.getText,se.isXMLDoc=n.isXML,se.contains=n.contains}(t);var _e={};se.Callbacks=function(t){t=\"string\"==typeof t?_e[t]||r(t):se.extend({},t);var n,i,o,s,a,l,c=[],u=!t.once&&[],h=function(e){for(n=t.memory&&e,i=!0,l=s||0,s=0,a=c.length,o=!0;c&&a>l;l++)if(c[l].apply(e[0],e[1])===!1&&t.stopOnFalse){n=!1;break}o=!1,c&&(u?u.length&&h(u.shift()):n?c=[]:p.disable())},p={add:function(){if(c){var e=c.length;!function i(e){se.each(e,function(e,n){var r=se.type(n);\"function\"===r?t.unique&&p.has(n)||c.push(n):n&&n.length&&\"string\"!==r&&i(n)})}(arguments),o?a=c.length:n&&(s=e,h(n))}return this},remove:function(){return c&&se.each(arguments,function(t,e){for(var n;(n=se.inArray(e,c,n))>-1;)c.splice(n,1),o&&(a>=n&&a--,l>=n&&l--)}),this},has:function(t){return t?se.inArray(t,c)>-1:!(!c||!c.length)},empty:function(){return c=[],a=0,this},disable:function(){return c=u=n=e,this},disabled:function(){return!c},lock:function(){return u=e,n||p.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!c||i&&!u||(e=e||[],e=[t,e.slice?e.slice():e],o?u.push(e):h(e)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},se.extend({Deferred:function(t){var e=[[\"resolve\",\"done\",se.Callbacks(\"once memory\"),\"resolved\"],[\"reject\",\"fail\",se.Callbacks(\"once memory\"),\"rejected\"],[\"notify\",\"progress\",se.Callbacks(\"memory\")]],n=\"pending\",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return se.Deferred(function(n){se.each(e,function(e,o){var s=o[0],a=se.isFunction(t[e])&&t[e];r[o[1]](function(){var t=a&&a.apply(this,arguments);t&&se.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+\"With\"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?se.extend(t,i):i}},r={};return i.pipe=i.then,se.each(e,function(t,o){var s=o[2],a=o[3];i[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+\"With\"](this===r?i:this,arguments),this},r[o[0]+\"With\"]=s.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=ee.call(arguments),s=o.length,a=1!==s||t&&se.isFunction(t.promise)?s:0,l=1===a?t:se.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?ee.call(arguments):r,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);s>r;r++)o[r]&&se.isFunction(o[r].promise)?o[r].promise().done(c(r,i,o)).fail(l.reject).progress(c(r,n,e)):--a;return a||l.resolveWith(i,o),l.promise()}}),se.support=function(e){var n=$.createElement(\"input\"),i=$.createDocumentFragment(),r=$.createElement(\"div\"),o=$.createElement(\"select\"),s=o.appendChild($.createElement(\"option\"));return n.type?(n.type=\"checkbox\",e.checkOn=\"\"!==n.value,e.optSelected=s.selected,e.reliableMarginRight=!0,e.boxSizingReliable=!0,e.pixelPosition=!1,n.checked=!0,e.noCloneChecked=n.cloneNode(!0).checked,o.disabled=!0,e.optDisabled=!s.disabled,n=$.createElement(\"input\"),n.value=\"t\",n.type=\"radio\",e.radioValue=\"t\"===n.value,n.setAttribute(\"checked\",\"t\"),n.setAttribute(\"name\",\"t\"),i.appendChild(n),e.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,e.focusinBubbles=\"onfocusin\"in t,r.style.backgroundClip=\"content-box\",r.cloneNode(!0).style.backgroundClip=\"\",e.clearCloneStyle=\"content-box\"===r.style.backgroundClip,se(function(){var n,i,o=\"padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box\",s=$.getElementsByTagName(\"body\")[0];s&&(n=$.createElement(\"div\"),n.style.cssText=\"border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px\",s.appendChild(n).appendChild(r),r.innerHTML=\"\",r.style.cssText=\"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%\",se.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){e.boxSizing=4===r.offsetWidth}),t.getComputedStyle&&(e.pixelPosition=\"1%\"!==(t.getComputedStyle(r,null)||{}).top,e.boxSizingReliable=\"4px\"===(t.getComputedStyle(r,null)||{width:\"4px\"}).width,i=r.appendChild($.createElement(\"div\")),i.style.cssText=r.style.cssText=o,i.style.marginRight=i.style.width=\"0\",r.style.width=\"1px\",e.reliableMarginRight=!parseFloat((t.getComputedStyle(i,null)||{}).marginRight)),s.removeChild(n))}),e):e}({});var ge,me,ye=/(?:\\{[\\s\\S]*\\}|\\[[\\s\\S]*\\])$/,ve=/([A-Z])/g;o.uid=1,o.accepts=function(t){return t.nodeType?1===t.nodeType||9===t.nodeType:!0},o.prototype={key:function(t){if(!o.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=o.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(i){e[this.expando]=n,se.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var i,r=this.key(t),o=this.cache[r];if(\"string\"==typeof e)o[e]=n;else if(se.isEmptyObject(o))se.extend(this.cache[r],e);else for(i in e)o[i]=e[i];return o},get:function(t,n){var i=this.cache[this.key(t)];return n===e?i:i[n]},access:function(t,n,i){var r;return n===e||n&&\"string\"==typeof n&&i===e?(r=this.get(t,n),r!==e?r:this.get(t,se.camelCase(n))):(this.set(t,n,i),i!==e?i:n)},remove:function(t,n){var i,r,o,s=this.key(t),a=this.cache[s];if(n===e)this.cache[s]={};else{se.isArray(n)?r=n.concat(n.map(se.camelCase)):(o=se.camelCase(n),n in a?r=[n,o]:(r=o,r=r in a?[r]:r.match(le)||[])),i=r.length;for(;i--;)delete a[r[i]]}},hasData:function(t){return!se.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}},ge=new o,me=new o,se.extend({acceptData:o.accepts,hasData:function(t){return ge.hasData(t)||me.hasData(t)},data:function(t,e,n){return ge.access(t,e,n)},removeData:function(t,e){ge.remove(t,e)},_data:function(t,e,n){return me.access(t,e,n)},_removeData:function(t,e){me.remove(t,e)}}),se.fn.extend({data:function(t,n){var i,r,o=this[0],a=0,l=null;if(t===e){if(this.length&&(l=ge.get(o),1===o.nodeType&&!me.get(o,\"hasDataAttrs\"))){for(i=o.attributes;a<i.length;a++)r=i[a].name,0===r.indexOf(\"data-\")&&(r=se.camelCase(r.slice(5)),s(o,r,l[r]));me.set(o,\"hasDataAttrs\",!0)}return l}return\"object\"==typeof t?this.each(function(){ge.set(this,t)}):se.access(this,function(n){var i,r=se.camelCase(t);if(o&&n===e){if(i=ge.get(o,t),i!==e)return i;if(i=ge.get(o,r),i!==e)return i;if(i=s(o,r,e),i!==e)return i}else this.each(function(){var i=ge.get(this,r);ge.set(this,r,n),-1!==t.indexOf(\"-\")&&i!==e&&ge.set(this,t,n)})},null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ge.remove(this,t)})}}),se.extend({queue:function(t,e,n){var i;return t?(e=(e||\"fx\")+\"queue\",i=me.get(t,e),n&&(!i||se.isArray(n)?i=me.access(t,e,se.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||\"fx\";var n=se.queue(t,e),i=n.length,r=n.shift(),o=se._queueHooks(t,e),s=function(){se.dequeue(t,e)};\"inprogress\"===r&&(r=n.shift(),i--),r&&(\"fx\"===e&&n.unshift(\"inprogress\"),delete o.stop,r.call(t,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+\"queueHooks\";return me.get(t,n)||me.access(t,n,{empty:se.Callbacks(\"once memory\").add(function(){me.remove(t,[e+\"queue\",n])\n",
" })})}}),se.fn.extend({queue:function(t,n){var i=2;return\"string\"!=typeof t&&(n=t,t=\"fx\",i--),arguments.length<i?se.queue(this[0],t):n===e?this:this.each(function(){var e=se.queue(this,t,n);se._queueHooks(this,t),\"fx\"===t&&\"inprogress\"!==e[0]&&se.dequeue(this,t)})},dequeue:function(t){return this.each(function(){se.dequeue(this,t)})},delay:function(t,e){return t=se.fx?se.fx.speeds[t]||t:t,e=e||\"fx\",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},clearQueue:function(t){return this.queue(t||\"fx\",[])},promise:function(t,n){var i,r=1,o=se.Deferred(),s=this,a=this.length,l=function(){--r||o.resolveWith(s,[s])};for(\"string\"!=typeof t&&(n=t,t=e),t=t||\"fx\";a--;)i=me.get(s[a],t+\"queueHooks\"),i&&i.empty&&(r++,i.empty.add(l));return l(),o.promise(n)}});var be,we,xe=/[\\t\\r\\n\\f]/g,ke=/\\r/g,Ce=/^(?:input|select|textarea|button)$/i;se.fn.extend({attr:function(t,e){return se.access(this,se.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){se.removeAttr(this,t)})},prop:function(t,e){return se.access(this,se.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[se.propFix[t]||t]})},addClass:function(t){var e,n,i,r,o,s=0,a=this.length,l=\"string\"==typeof t&&t;if(se.isFunction(t))return this.each(function(e){se(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||\"\").match(le)||[];a>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(\" \"+n.className+\" \").replace(xe,\" \"):\" \")){for(o=0;r=e[o++];)i.indexOf(\" \"+r+\" \")<0&&(i+=r+\" \");n.className=se.trim(i)}return this},removeClass:function(t){var e,n,i,r,o,s=0,a=this.length,l=0===arguments.length||\"string\"==typeof t&&t;if(se.isFunction(t))return this.each(function(e){se(this).removeClass(t.call(this,e,this.className))});if(l)for(e=(t||\"\").match(le)||[];a>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(\" \"+n.className+\" \").replace(xe,\" \"):\"\")){for(o=0;r=e[o++];)for(;i.indexOf(\" \"+r+\" \")>=0;)i=i.replace(\" \"+r+\" \",\" \");n.className=t?se.trim(i):\"\"}return this},toggleClass:function(t,e){var n=typeof t;return\"boolean\"==typeof e&&\"string\"===n?e?this.addClass(t):this.removeClass(t):this.each(se.isFunction(t)?function(n){se(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if(\"string\"===n)for(var e,i=0,r=se(this),o=t.match(le)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(n===U||\"boolean\"===n)&&(this.className&&me.set(this,\"__className__\",this.className),this.className=this.className||t===!1?\"\":me.get(this,\"__className__\")||\"\")})},hasClass:function(t){for(var e=\" \"+t+\" \",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(\" \"+this[n].className+\" \").replace(xe,\" \").indexOf(e)>=0)return!0;return!1},val:function(t){var n,i,r,o=this[0];{if(arguments.length)return r=se.isFunction(t),this.each(function(i){var o;1===this.nodeType&&(o=r?t.call(this,i,se(this).val()):t,null==o?o=\"\":\"number\"==typeof o?o+=\"\":se.isArray(o)&&(o=se.map(o,function(t){return null==t?\"\":t+\"\"})),n=se.valHooks[this.type]||se.valHooks[this.nodeName.toLowerCase()],n&&\"set\"in n&&n.set(this,o,\"value\")!==e||(this.value=o))});if(o)return n=se.valHooks[o.type]||se.valHooks[o.nodeName.toLowerCase()],n&&\"get\"in n&&(i=n.get(o,\"value\"))!==e?i:(i=o.value,\"string\"==typeof i?i.replace(ke,\"\"):null==i?\"\":i)}}}),se.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o=\"select-one\"===t.type||0>r,s=o?null:[],a=o?r+1:i.length,l=0>r?a:o?r:0;a>l;l++)if(n=i[l],!(!n.selected&&l!==r||(se.support.optDisabled?n.disabled:null!==n.getAttribute(\"disabled\"))||n.parentNode.disabled&&se.nodeName(n.parentNode,\"optgroup\"))){if(e=se(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=se.makeArray(e),s=r.length;s--;)i=r[s],(i.selected=se.inArray(se(i).val(),o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}},attr:function(t,n,i){var r,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return typeof t.getAttribute===U?se.prop(t,n,i):(1===s&&se.isXMLDoc(t)||(n=n.toLowerCase(),r=se.attrHooks[n]||(se.expr.match.bool.test(n)?we:be)),i===e?r&&\"get\"in r&&null!==(o=r.get(t,n))?o:(o=se.find.attr(t,n),null==o?e:o):null!==i?r&&\"set\"in r&&(o=r.set(t,i,n))!==e?o:(t.setAttribute(n,i+\"\"),i):void se.removeAttr(t,n))},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(le);if(o&&1===t.nodeType)for(;n=o[r++];)i=se.propFix[n]||n,se.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!se.support.radioValue&&\"radio\"===e&&se.nodeName(t,\"input\")){var n=t.value;return t.setAttribute(\"type\",e),n&&(t.value=n),e}}}},propFix:{\"for\":\"htmlFor\",\"class\":\"className\"},prop:function(t,n,i){var r,o,s,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return s=1!==a||!se.isXMLDoc(t),s&&(n=se.propFix[n]||n,o=se.propHooks[n]),i!==e?o&&\"set\"in o&&(r=o.set(t,i,n))!==e?r:t[n]=i:o&&\"get\"in o&&null!==(r=o.get(t,n))?r:t[n]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute(\"tabindex\")||Ce.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),we={set:function(t,e,n){return e===!1?se.removeAttr(t,n):t.setAttribute(n,n),n}},se.each(se.expr.match.bool.source.match(/\\w+/g),function(t,n){var i=se.expr.attrHandle[n]||se.find.attr;se.expr.attrHandle[n]=function(t,n,r){var o=se.expr.attrHandle[n],s=r?e:(se.expr.attrHandle[n]=e)!=i(t,n,r)?n.toLowerCase():null;return se.expr.attrHandle[n]=o,s}}),se.support.optSelected||(se.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),se.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){se.propFix[this.toLowerCase()]=this}),se.each([\"radio\",\"checkbox\"],function(){se.valHooks[this]={set:function(t,e){return se.isArray(e)?t.checked=se.inArray(se(t).val(),e)>=0:void 0}},se.support.checkOn||(se.valHooks[this].get=function(t){return null===t.getAttribute(\"value\")?\"on\":t.value})});var Se=/^key/,Te=/^(?:mouse|contextmenu)|click/,Me=/^(?:focusinfocus|focusoutblur)$/,De=/^([^.]*)(?:\\.(.+)|)$/;se.event={global:{},add:function(t,n,i,r,o){var s,a,l,c,u,h,p,d,f,_,g,m=me.get(t);if(m){for(i.handler&&(s=i,i=s.handler,o=s.selector),i.guid||(i.guid=se.guid++),(c=m.events)||(c=m.events={}),(a=m.handle)||(a=m.handle=function(t){return typeof se===U||t&&se.event.triggered===t.type?e:se.event.dispatch.apply(a.elem,arguments)},a.elem=t),n=(n||\"\").match(le)||[\"\"],u=n.length;u--;)l=De.exec(n[u])||[],f=g=l[1],_=(l[2]||\"\").split(\".\").sort(),f&&(p=se.event.special[f]||{},f=(o?p.delegateType:p.bindType)||f,p=se.event.special[f]||{},h=se.extend({type:f,origType:g,data:r,handler:i,guid:i.guid,selector:o,needsContext:o&&se.expr.match.needsContext.test(o),namespace:_.join(\".\")},s),(d=c[f])||(d=c[f]=[],d.delegateCount=0,p.setup&&p.setup.call(t,r,_,a)!==!1||t.addEventListener&&t.addEventListener(f,a,!1)),p.add&&(p.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),o?d.splice(d.delegateCount++,0,h):d.push(h),se.event.global[f]=!0);t=null}},remove:function(t,e,n,i,r){var o,s,a,l,c,u,h,p,d,f,_,g=me.hasData(t)&&me.get(t);if(g&&(l=g.events)){for(e=(e||\"\").match(le)||[\"\"],c=e.length;c--;)if(a=De.exec(e[c])||[],d=_=a[1],f=(a[2]||\"\").split(\".\").sort(),d){for(h=se.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,p=l[d]||[],a=a[2]&&new RegExp(\"(^|\\\\.)\"+f.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),s=o=p.length;o--;)u=p[o],!r&&_!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&(\"**\"!==i||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,h.remove&&h.remove.call(t,u));s&&!p.length&&(h.teardown&&h.teardown.call(t,f,g.handle)!==!1||se.removeEvent(t,d,g.handle),delete l[d])}else for(d in l)se.event.remove(t,d+e[c],n,i,!0);se.isEmptyObject(l)&&(delete g.handle,me.remove(t,\"events\"))}},trigger:function(n,i,r,o){var s,a,l,c,u,h,p,d=[r||$],f=re.call(n,\"type\")?n.type:n,_=re.call(n,\"namespace\")?n.namespace.split(\".\"):[];if(a=l=r=r||$,3!==r.nodeType&&8!==r.nodeType&&!Me.test(f+se.event.triggered)&&(f.indexOf(\".\")>=0&&(_=f.split(\".\"),f=_.shift(),_.sort()),u=f.indexOf(\":\")<0&&\"on\"+f,n=n[se.expando]?n:new se.Event(f,\"object\"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=_.join(\".\"),n.namespace_re=n.namespace?new RegExp(\"(^|\\\\.)\"+_.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,n.result=e,n.target||(n.target=r),i=null==i?[n]:se.makeArray(i,[n]),p=se.event.special[f]||{},o||!p.trigger||p.trigger.apply(r,i)!==!1)){if(!o&&!p.noBubble&&!se.isWindow(r)){for(c=p.delegateType||f,Me.test(c+f)||(a=a.parentNode);a;a=a.parentNode)d.push(a),l=a;l===(r.ownerDocument||$)&&d.push(l.defaultView||l.parentWindow||t)}for(s=0;(a=d[s++])&&!n.isPropagationStopped();)n.type=s>1?c:p.bindType||f,h=(me.get(a,\"events\")||{})[n.type]&&me.get(a,\"handle\"),h&&h.apply(a,i),h=u&&a[u],h&&se.acceptData(a)&&h.apply&&h.apply(a,i)===!1&&n.preventDefault();return n.type=f,o||n.isDefaultPrevented()||p._default&&p._default.apply(d.pop(),i)!==!1||!se.acceptData(r)||u&&se.isFunction(r[f])&&!se.isWindow(r)&&(l=r[u],l&&(r[u]=null),se.event.triggered=f,r[f](),se.event.triggered=e,l&&(r[u]=l)),n.result}},dispatch:function(t){t=se.event.fix(t);var n,i,r,o,s,a=[],l=ee.call(arguments),c=(me.get(this,\"events\")||{})[t.type]||[],u=se.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(a=se.event.handlers.call(this,t,c),n=0;(o=a[n++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,i=0;(s=o.handlers[i++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(s.namespace))&&(t.handleObj=s,t.data=s.data,r=((se.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,l),r!==e&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,n){var i,r,o,s,a=[],l=n.delegateCount,c=t.target;if(l&&c.nodeType&&(!t.button||\"click\"!==t.type))for(;c!==this;c=c.parentNode||this)if(c.disabled!==!0||\"click\"!==t.type){for(r=[],i=0;l>i;i++)s=n[i],o=s.selector+\" \",r[o]===e&&(r[o]=s.needsContext?se(o,this).index(c)>=0:se.find(o,this,null,[c]).length),r[o]&&r.push(s);r.length&&a.push({elem:c,handlers:r})}return l<n.length&&a.push({elem:this,handlers:n.slice(l)}),a},props:\"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which\".split(\" \"),fixHooks:{},keyHooks:{props:\"char charCode key keyCode\".split(\" \"),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:\"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement\".split(\" \"),filter:function(t,n){var i,r,o,s=n.button;return null==t.pageX&&null!=n.clientX&&(i=t.target.ownerDocument||$,r=i.documentElement,o=i.body,t.pageX=n.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),t.pageY=n.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),t.which||s===e||(t.which=1&s?1:2&s?3:4&s?2:0),t}},fix:function(t){if(t[se.expando])return t;var e,n,i,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=Te.test(r)?this.mouseHooks:Se.test(r)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new se.Event(o),e=i.length;e--;)n=i[e],t[n]=o[n];return t.target||(t.target=$),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==c()&&this.focus?(this.focus(),!1):void 0},delegateType:\"focusin\"},blur:{trigger:function(){return this===c()&&this.blur?(this.blur(),!1):void 0},delegateType:\"focusout\"},click:{trigger:function(){return\"checkbox\"===this.type&&this.click&&se.nodeName(this,\"input\")?(this.click(),!1):void 0},_default:function(t){return se.nodeName(t.target,\"a\")}},beforeunload:{postDispatch:function(t){t.result!==e&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var r=se.extend(new se.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?se.event.trigger(r,null,e):se.event.dispatch.call(e,r),r.isDefaultPrevented()&&n.preventDefault()}},se.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},se.Event=function(t,e){return this instanceof se.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.getPreventDefault&&t.getPreventDefault()?a:l):this.type=t,e&&se.extend(this,e),this.timeStamp=t&&t.timeStamp||se.now(),void(this[se.expando]=!0)):new se.Event(t,e)},se.Event.prototype={isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=a,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=a,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a,this.stopPropagation()}},se.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\"},function(t,e){se.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return(!r||r!==i&&!se.contains(i,r))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),se.support.focusinBubbles||se.each({focus:\"focusin\",blur:\"focusout\"},function(t,e){var n=0,i=function(t){se.event.simulate(e,t.target,se.event.fix(t),!0)};se.event.special[e]={setup:function(){0===n++&&$.addEventListener(t,i,!0)},teardown:function(){0===--n&&$.removeEventListener(t,i,!0)}}}),se.fn.extend({on:function(t,n,i,r,o){var s,a;if(\"object\"==typeof t){\"string\"!=typeof n&&(i=i||n,n=e);for(a in t)this.on(a,n,i,t[a],o);return this}if(null==i&&null==r?(r=n,i=n=e):null==r&&(\"string\"==typeof n?(r=i,i=e):(r=i,i=n,n=e)),r===!1)r=l;else if(!r)return this;return 1===o&&(s=r,r=function(t){return se().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=se.guid++)),this.each(function(){se.event.add(this,t,r,i,n)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,n,i){var r,o;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,se(t.delegateTarget).off(r.namespace?r.origType+\".\"+r.namespace:r.origType,r.selector,r.handler),this;if(\"object\"==typeof t){for(o in t)this.off(o,n,t[o]);return this}return(n===!1||\"function\"==typeof n)&&(i=n,n=e),i===!1&&(i=l),this.each(function(){se.event.remove(this,t,i,n)})},trigger:function(t,e){return this.each(function(){se.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?se.event.trigger(t,e,n,!0):void 0}});var Ae=/^.[^:#\\[\\.,]*$/,Re=/^(?:parents|prev(?:Until|All))/,Ee=se.expr.match.needsContext,Oe={children:!0,contents:!0,next:!0,prev:!0};se.fn.extend({find:function(t){var e,n=[],i=this,r=i.length;if(\"string\"!=typeof t)return this.pushStack(se(t).filter(function(){for(e=0;r>e;e++)if(se.contains(i[e],this))return!0}));for(e=0;r>e;e++)se.find(t,i[e],n);return n=this.pushStack(r>1?se.unique(n):n),n.selector=this.selector?this.selector+\" \"+t:t,n},has:function(t){var e=se(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(se.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(h(this,t||[],!0))},filter:function(t){return this.pushStack(h(this,t||[],!1))},is:function(t){return!!h(this,\"string\"==typeof t&&Ee.test(t)?se(t):t||[],!1).length},closest:function(t,e){for(var n,i=0,r=this.length,o=[],s=Ee.test(t)||\"string\"!=typeof t?se(t,e||this.context):0;r>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&se.find.matchesSelector(n,t))){n=o.push(n);break}return this.pushStack(o.length>1?se.unique(o):o)},index:function(t){return t?\"string\"==typeof t?ne.call(se(t),this[0]):ne.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var n=\"string\"==typeof t?se(t,e):se.makeArray(t&&t.nodeType?[t]:t),i=se.merge(this.get(),n);return this.pushStack(se.unique(i))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),se.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return se.dir(t,\"parentNode\")},parentsUntil:function(t,e,n){return se.dir(t,\"parentNode\",n)},next:function(t){return u(t,\"nextSibling\")},prev:function(t){return u(t,\"previousSibling\")},nextAll:function(t){return se.dir(t,\"nextSibling\")},prevAll:function(t){return se.dir(t,\"previousSibling\")},nextUntil:function(t,e,n){return se.dir(t,\"nextSibling\",n)},prevUntil:function(t,e,n){return se.dir(t,\"previousSibling\",n)},siblings:function(t){return se.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return se.sibling(t.firstChild)},contents:function(t){return t.contentDocument||se.merge([],t.childNodes)}},function(t,e){se.fn[t]=function(n,i){var r=se.map(this,e,n);return\"Until\"!==t.slice(-5)&&(i=n),i&&\"string\"==typeof i&&(r=se.filter(i,r)),this.length>1&&(Oe[t]||se.unique(r),Re.test(t)&&r.reverse()),this.pushStack(r)}}),se.extend({filter:function(t,e,n){var i=e[0];return n&&(t=\":not(\"+t+\")\"),1===e.length&&1===i.nodeType?se.find.matchesSelector(i,t)?[i]:[]:se.find.matches(t,se.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,n,i){for(var r=[],o=i!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&se(t).is(i))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,Pe=/<([\\w:]+)/,Ne=/<|&#?\\w+;/,Ie=/<(?:script|style|link)/i,ze=/^(?:checkbox|radio)$/i,He=/checked\\s*(?:[^=]|=\\s*.checked.)/i,Le=/^$|\\/(?:java|ecma)script/i,Fe=/^true\\/(.*)/,Be=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g,Ve={option:[1,\"<select multiple='multiple'>\",\"</select>\"],thead:[1,\"<table>\",\"</table>\"],col:[2,\"<table><colgroup>\",\"</colgroup></table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],_default:[0,\"\",\"\"]};Ve.optgroup=Ve.option,Ve.tbody=Ve.tfoot=Ve.colgroup=Ve.caption=Ve.thead,Ve.th=Ve.td,se.fn.extend({text:function(t){return se.access(this,function(t){return t===e?se.text(this):this.empty().append((this[0]&&this[0].ownerDocument||$).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?se.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||se.cleanData(m(n)),n.parentNode&&(e&&se.contains(n.ownerDocument,n)&&_(m(n,\"script\")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(se.cleanData(m(t,!1)),t.textContent=\"\");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return se.clone(this,t,e)})},html:function(t){return se.access(this,function(t){var n=this[0]||{},i=0,r=this.length;if(t===e&&1===n.nodeType)return n.innerHTML;if(\"string\"==typeof t&&!Ie.test(t)&&!Ve[(Pe.exec(t)||[\"\",\"\"])[1].toLowerCase()]){t=t.replace(je,\"<$1></$2>\");try{for(;r>i;i++)n=this[i]||{},1===n.nodeType&&(se.cleanData(m(n,!1)),n.innerHTML=t);n=0}catch(o){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=se.map(this,function(t){return[t.nextSibling,t.parentNode]}),e=0;return this.domManip(arguments,function(n){var i=t[e++],r=t[e++];r&&(i&&i.parentNode!==r&&(i=this.nextSibling),se(this).remove(),r.insertBefore(n,i))},!0),e?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e,n){t=K.apply([],t);var i,r,o,s,a,l,c=0,u=this.length,h=this,p=u-1,_=t[0],g=se.isFunction(_);if(g||!(1>=u||\"string\"!=typeof _||se.support.checkClone)&&He.test(_))return this.each(function(i){var r=h.eq(i);g&&(t[0]=_.call(this,i,r.html())),r.domManip(t,e,n)});if(u&&(i=se.buildFragment(t,this[0].ownerDocument,!1,!n&&this),r=i.firstChild,1===i.childNodes.length&&(i=r),r)){for(o=se.map(m(i,\"script\"),d),s=o.length;u>c;c++)a=i,c!==p&&(a=se.clone(a,!0,!0),s&&se.merge(o,m(a,\"script\"))),e.call(this[c],a,c);if(s)for(l=o[o.length-1].ownerDocument,se.map(o,f),c=0;s>c;c++)a=o[c],Le.test(a.type||\"\")&&!me.access(a,\"globalEval\")&&se.contains(l,a)&&(a.src?se._evalUrl(a.src):se.globalEval(a.textContent.replace(Be,\"\")))}return this}}),se.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(t,e){se.fn[t]=function(t){for(var n,i=[],r=se(t),o=r.length-1,s=0;o>=s;s++)n=s===o?this:this.clone(!0),se(r[s])[e](n),te.apply(i,n.get());return this.pushStack(i)}}),se.extend({clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=se.contains(t.ownerDocument,t);if(!(se.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||se.isXMLDoc(t)))for(s=m(a),o=m(t),i=0,r=o.length;r>i;i++)y(o[i],s[i]);if(e)if(n)for(o=o||m(t),s=s||m(a),i=0,r=o.length;r>i;i++)g(o[i],s[i]);else g(t,a);return s=m(a,\"script\"),s.length>0&&_(s,!l&&m(t,\"script\")),a},buildFragment:function(t,e,n,i){for(var r,o,s,a,l,c,u=0,h=t.length,p=e.createDocumentFragment(),d=[];h>u;u++)if(r=t[u],r||0===r)if(\"object\"===se.type(r))se.merge(d,r.nodeType?[r]:r);else if(Ne.test(r)){for(o=o||p.appendChild(e.createElement(\"div\")),s=(Pe.exec(r)||[\"\",\"\"])[1].toLowerCase(),a=Ve[s]||Ve._default,o.innerHTML=a[1]+r.replace(je,\"<$1></$2>\")+a[2],c=a[0];c--;)o=o.lastChild;se.merge(d,o.childNodes),o=p.firstChild,o.textContent=\"\"}else d.push(e.createTextNode(r));for(p.textContent=\"\",u=0;r=d[u++];)if((!i||-1===se.inArray(r,i))&&(l=se.contains(r.ownerDocument,r),o=m(p.appendChild(r),\"script\"),l&&_(o),n))for(c=0;r=o[c++];)Le.test(r.type||\"\")&&n.push(r);return p},cleanData:function(t){for(var n,i,r,s,a,l,c=se.event.special,u=0;(i=t[u])!==e;u++){if(o.accepts(i)&&(a=i[me.expando],a&&(n=me.cache[a]))){if(r=Object.keys(n.events||{}),r.length)for(l=0;(s=r[l])!==e;l++)c[s]?se.event.remove(i,s):se.removeEvent(i,s,n.handle);me.cache[a]&&delete me.cache[a]}delete ge.cache[i[ge.expando]]}},_evalUrl:function(t){return se.ajax({url:t,type:\"GET\",dataType:\"script\",async:!1,global:!1,\"throws\":!0})}}),se.fn.extend({wrapAll:function(t){var e;return se.isFunction(t)?this.each(function(e){se(this).wrapAll(t.call(this,e))}):(this[0]&&(e=se(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return this.each(se.isFunction(t)?function(e){se(this).wrapInner(t.call(this,e))}:function(){var e=se(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=se.isFunction(t);return this.each(function(n){se(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){se.nodeName(this,\"body\")||se(this).replaceWith(this.childNodes)}).end()}});var We,Ue,Ye=/^(none|table(?!-c[ea]).+)/,$e=/^margin/,Ge=new RegExp(\"^(\"+ae+\")(.*)$\",\"i\"),qe=new RegExp(\"^(\"+ae+\")(?!px)[a-z%]+$\",\"i\"),Xe=new RegExp(\"^([+-])=(\"+ae+\")\",\"i\"),Ze={BODY:\"block\"},Je={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Qe={letterSpacing:0,fontWeight:400},Ke=[\"Top\",\"Right\",\"Bottom\",\"Left\"],tn=[\"Webkit\",\"O\",\"Moz\",\"ms\"];se.fn.extend({css:function(t,n){return se.access(this,function(t,n,i){var r,o,s={},a=0;if(se.isArray(n)){for(r=w(t),o=n.length;o>a;a++)s[n[a]]=se.css(t,n[a],!1,r);return s}return i!==e?se.style(t,n,i):se.css(t,n)},t,n,arguments.length>1)},show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(t){return\"boolean\"==typeof t?t?this.show():this.hide():this.each(function(){b(this)?se(this).show():se(this).hide()})}}),se.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=We(t,\"opacity\");return\"\"===n?\"1\":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":\"cssFloat\"},style:function(t,n,i,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,a,l=se.camelCase(n),c=t.style;return n=se.cssProps[l]||(se.cssProps[l]=v(c,l)),a=se.cssHooks[n]||se.cssHooks[l],i===e?a&&\"get\"in a&&(o=a.get(t,!1,r))!==e?o:c[n]:(s=typeof i,\"string\"===s&&(o=Xe.exec(i))&&(i=(o[1]+1)*o[2]+parseFloat(se.css(t,n)),s=\"number\"),null==i||\"number\"===s&&isNaN(i)||(\"number\"!==s||se.cssNumber[l]||(i+=\"px\"),se.support.clearCloneStyle||\"\"!==i||0!==n.indexOf(\"background\")||(c[n]=\"inherit\"),a&&\"set\"in a&&(i=a.set(t,i,r))===e||(c[n]=i)),void 0)}},css:function(t,n,i,r){var o,s,a,l=se.camelCase(n);return n=se.cssProps[l]||(se.cssProps[l]=v(t.style,l)),a=se.cssHooks[n]||se.cssHooks[l],a&&\"get\"in a&&(o=a.get(t,!0,i)),o===e&&(o=We(t,n,r)),\"normal\"===o&&n in Qe&&(o=Qe[n]),\"\"===i||i?(s=parseFloat(o),i===!0||se.isNumeric(s)?s||0:o):o}}),We=function(t,n,i){var r,o,s,a=i||w(t),l=a?a.getPropertyValue(n)||a[n]:e,c=t.style;return a&&(\"\"!==l||se.contains(t.ownerDocument,t)||(l=se.style(t,n)),qe.test(l)&&$e.test(n)&&(r=c.width,o=c.minWidth,s=c.maxWidth,c.minWidth=c.maxWidth=c.width=l,l=a.width,c.width=r,c.minWidth=o,c.maxWidth=s)),l},se.each([\"height\",\"width\"],function(t,e){se.cssHooks[e]={get:function(t,n,i){return n?0===t.offsetWidth&&Ye.test(se.css(t,\"display\"))?se.swap(t,Je,function(){return S(t,e,i)}):S(t,e,i):void 0},set:function(t,n,i){var r=i&&w(t);return k(t,n,i?C(t,e,i,se.support.boxSizing&&\"border-box\"===se.css(t,\"boxSizing\",!1,r),r):0)}}}),se(function(){se.support.reliableMarginRight||(se.cssHooks.marginRight={get:function(t,e){return e?se.swap(t,{display:\"inline-block\"},We,[t,\"marginRight\"]):void 0}}),!se.support.pixelPosition&&se.fn.position&&se.each([\"top\",\"left\"],function(t,e){se.cssHooks[e]={get:function(t,n){return n?(n=We(t,e),qe.test(n)?se(t).position()[e]+\"px\":n):void 0}}})}),se.expr&&se.expr.filters&&(se.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},se.expr.filters.visible=function(t){return!se.expr.filters.hidden(t)}),se.each({margin:\"\",padding:\"\",border:\"Width\"},function(t,e){se.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o=\"string\"==typeof n?n.split(\" \"):[n];4>i;i++)r[t+Ke[i]+e]=o[i]||o[i-2]||o[0];return r}},$e.test(t)||(se.cssHooks[t+e].set=k)});var en=/%20/g,nn=/\\[\\]$/,rn=/\\r?\\n/g,on=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;se.fn.extend({serialize:function(){return se.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=se.prop(this,\"elements\");return t?se.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!se(this).is(\":disabled\")&&sn.test(this.nodeName)&&!on.test(t)&&(this.checked||!ze.test(t))}).map(function(t,e){var n=se(this).val();return null==n?null:se.isArray(n)?se.map(n,function(t){return{name:e.name,value:t.replace(rn,\"\\r\\n\")}}):{name:e.name,value:n.replace(rn,\"\\r\\n\")}}).get()}}),se.param=function(t,n){var i,r=[],o=function(t,e){e=se.isFunction(e)?e():null==e?\"\":e,r[r.length]=encodeURIComponent(t)+\"=\"+encodeURIComponent(e)};if(n===e&&(n=se.ajaxSettings&&se.ajaxSettings.traditional),se.isArray(t)||t.jquery&&!se.isPlainObject(t))se.each(t,function(){o(this.name,this.value)});else for(i in t)D(i,t[i],n,o);return r.join(\"&\").replace(en,\"+\")},se.each(\"blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu\".split(\" \"),function(t,e){se.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),se.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,\"**\"):this.off(e,t||\"**\",n)}});var an,ln,cn=se.now(),un=/\\?/,hn=/#.*$/,pn=/([?&])_=[^&]*/,dn=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,fn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,_n=/^(?:GET|HEAD)$/,gn=/^\\/\\//,mn=/^([\\w.+-]+:)(?:\\/\\/([^\\/?#:]*)(?::(\\d+)|)|)/,yn=se.fn.load,vn={},bn={},wn=\"*/\".concat(\"*\");try{ln=Y.href}catch(xn){ln=$.createElement(\"a\"),ln.href=\"\",ln=ln.href}an=mn.exec(ln.toLowerCase())||[],se.fn.load=function(t,n,i){if(\"string\"!=typeof t&&yn)return yn.apply(this,arguments);var r,o,s,a=this,l=t.indexOf(\" \");return l>=0&&(r=t.slice(l),t=t.slice(0,l)),se.isFunction(n)?(i=n,n=e):n&&\"object\"==typeof n&&(o=\"POST\"),a.length>0&&se.ajax({url:t,type:o,dataType:\"html\",data:n}).done(function(t){s=arguments,a.html(r?se(\"<div>\").append(se.parseHTML(t)).find(r):t)}).complete(i&&function(t,e){a.each(i,s||[t.responseText,e,t])}),this},se.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(t,e){se.fn[e]=function(t){return this.on(e,t)}}),se.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ln,type:\"GET\",isLocal:fn.test(an[1]),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":wn,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":se.parseJSON,\"text xml\":se.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?E(E(t,se.ajaxSettings),e):E(se.ajaxSettings,t)},ajaxPrefilter:A(vn),ajaxTransport:A(bn),ajax:function(t,n){function i(t,n,i,a){var c,h,y,v,w,k=n;2!==b&&(b=2,l&&clearTimeout(l),r=e,s=a||\"\",x.readyState=t>0?4:0,c=t>=200&&300>t||304===t,i&&(v=O(p,x,i)),v=j(p,v,x,c),c?(p.ifModified&&(w=x.getResponseHeader(\"Last-Modified\"),w&&(se.lastModified[o]=w),w=x.getResponseHeader(\"etag\"),w&&(se.etag[o]=w)),204===t||\"HEAD\"===p.type?k=\"nocontent\":304===t?k=\"notmodified\":(k=v.state,h=v.data,y=v.error,c=!y)):(y=k,(t||!k)&&(k=\"error\",0>t&&(t=0))),x.status=t,x.statusText=(n||k)+\"\",c?_.resolveWith(d,[h,k,x]):_.rejectWith(d,[x,k,y]),x.statusCode(m),m=e,u&&f.trigger(c?\"ajaxSuccess\":\"ajaxError\",[x,p,c?h:y]),g.fireWith(d,[x,k]),u&&(f.trigger(\"ajaxComplete\",[x,p]),--se.active||se.event.trigger(\"ajaxStop\")))}\"object\"==typeof t&&(n=t,t=e),n=n||{};var r,o,s,a,l,c,u,h,p=se.ajaxSetup({},n),d=p.context||p,f=p.context&&(d.nodeType||d.jquery)?se(d):se.event,_=se.Deferred(),g=se.Callbacks(\"once memory\"),m=p.statusCode||{},y={},v={},b=0,w=\"canceled\",x={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!a)for(a={};e=dn.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=v[n]=v[n]||t,y[t]=e),this},overrideMimeType:function(t){return b||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)m[e]=[m[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return r&&r.abort(e),i(0,e),this}};if(_.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,p.url=((t||p.url||ln)+\"\").replace(hn,\"\").replace(gn,an[1]+\"//\"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=se.trim(p.dataType||\"*\").toLowerCase().match(le)||[\"\"],null==p.crossDomain&&(c=mn.exec(p.url.toLowerCase()),p.crossDomain=!(!c||c[1]===an[1]&&c[2]===an[2]&&(c[3]||(\"http:\"===c[1]?\"80\":\"443\"))===(an[3]||(\"http:\"===an[1]?\"80\":\"443\")))),p.data&&p.processData&&\"string\"!=typeof p.data&&(p.data=se.param(p.data,p.traditional)),R(vn,p,n,x),2===b)return x;u=p.global,u&&0===se.active++&&se.event.trigger(\"ajaxStart\"),p.type=p.type.toUpperCase(),p.hasContent=!_n.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(un.test(o)?\"&\":\"?\")+p.data,delete p.data),p.cache===!1&&(p.url=pn.test(o)?o.replace(pn,\"$1_=\"+cn++):o+(un.test(o)?\"&\":\"?\")+\"_=\"+cn++)),p.ifModified&&(se.lastModified[o]&&x.setRequestHeader(\"If-Modified-Since\",se.lastModified[o]),se.etag[o]&&x.setRequestHeader(\"If-None-Match\",se.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&x.setRequestHeader(\"Content-Type\",p.contentType),x.setRequestHeader(\"Accept\",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+(\"*\"!==p.dataTypes[0]?\", \"+wn+\"; q=0.01\":\"\"):p.accepts[\"*\"]);\n",
" for(h in p.headers)x.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(p.beforeSend.call(d,x,p)===!1||2===b))return x.abort();w=\"abort\";for(h in{success:1,error:1,complete:1})x[h](p[h]);if(r=R(bn,p,n,x)){x.readyState=1,u&&f.trigger(\"ajaxSend\",[x,p]),p.async&&p.timeout>0&&(l=setTimeout(function(){x.abort(\"timeout\")},p.timeout));try{b=1,r.send(y,i)}catch(k){if(!(2>b))throw k;i(-1,k)}}else i(-1,\"No Transport\");return x},getJSON:function(t,e,n){return se.get(t,e,n,\"json\")},getScript:function(t,n){return se.get(t,e,n,\"script\")}}),se.each([\"get\",\"post\"],function(t,n){se[n]=function(t,i,r,o){return se.isFunction(i)&&(o=o||r,r=i,i=e),se.ajax({url:t,type:n,dataType:o,data:i,success:r})}}),se.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/(?:java|ecma)script/},converters:{\"text script\":function(t){return se.globalEval(t),t}}}),se.ajaxPrefilter(\"script\",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type=\"GET\")}),se.ajaxTransport(\"script\",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=se(\"<script>\").prop({async:!0,charset:t.scriptCharset,src:t.url}).on(\"load error\",n=function(t){e.remove(),n=null,t&&r(\"error\"===t.type?404:200,t.type)}),$.head.appendChild(e[0])},abort:function(){n&&n()}}}});var kn=[],Cn=/(=)\\?(?=&|$)|\\?\\?/;se.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var t=kn.pop()||se.expando+\"_\"+cn++;return this[t]=!0,t}}),se.ajaxPrefilter(\"json jsonp\",function(n,i,r){var o,s,a,l=n.jsonp!==!1&&(Cn.test(n.url)?\"url\":\"string\"==typeof n.data&&!(n.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&Cn.test(n.data)&&\"data\");return l||\"jsonp\"===n.dataTypes[0]?(o=n.jsonpCallback=se.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Cn,\"$1\"+o):n.jsonp!==!1&&(n.url+=(un.test(n.url)?\"&\":\"?\")+n.jsonp+\"=\"+o),n.converters[\"script json\"]=function(){return a||se.error(o+\" was not called\"),a[0]},n.dataTypes[0]=\"json\",s=t[o],t[o]=function(){a=arguments},r.always(function(){t[o]=s,n[o]&&(n.jsonpCallback=i.jsonpCallback,kn.push(o)),a&&se.isFunction(s)&&s(a[0]),a=s=e}),\"script\"):void 0}),se.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Sn=se.ajaxSettings.xhr(),Tn={0:200,1223:204},Mn=0,Dn={};t.ActiveXObject&&se(t).on(\"unload\",function(){for(var t in Dn)Dn[t]();Dn=e}),se.support.cors=!!Sn&&\"withCredentials\"in Sn,se.support.ajax=Sn=!!Sn,se.ajaxTransport(function(t){var n;return se.support.cors||Sn&&!t.crossDomain?{send:function(i,r){var o,s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i[\"X-Requested-With\"]||(i[\"X-Requested-With\"]=\"XMLHttpRequest\");for(o in i)a.setRequestHeader(o,i[o]);n=function(t){return function(){n&&(delete Dn[s],n=a.onload=a.onerror=null,\"abort\"===t?a.abort():\"error\"===t?r(a.status||404,a.statusText):r(Tn[a.status]||a.status,a.statusText,\"string\"==typeof a.responseText?{text:a.responseText}:e,a.getAllResponseHeaders()))}},a.onload=n(),a.onerror=n(\"error\"),n=Dn[s=Mn++]=n(\"abort\"),a.send(t.hasContent&&t.data||null)},abort:function(){n&&n()}}:void 0});var An,Rn,En=/^(?:toggle|show|hide)$/,On=new RegExp(\"^(?:([+-])=|)(\"+ae+\")([a-z%]*)$\",\"i\"),jn=/queueHooks$/,Pn=[H],Nn={\"*\":[function(t,e){var n=this.createTween(t,e),i=n.cur(),r=On.exec(e),o=r&&r[3]||(se.cssNumber[t]?\"\":\"px\"),s=(se.cssNumber[t]||\"px\"!==o&&+i)&&On.exec(se.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==o){o=o||s[3],r=r||[],s=+i||1;do a=a||\".5\",s/=a,se.style(n.elem,t,s+o);while(a!==(a=n.cur()/i)&&1!==a&&--l)}return r&&(s=n.start=+s||+i||0,n.unit=o,n.end=r[1]?s+(r[1]+1)*r[2]:+r[2]),n}]};se.Animation=se.extend(I,{tweener:function(t,e){se.isFunction(t)?(e=t,t=[\"*\"]):t=t.split(\" \");for(var n,i=0,r=t.length;r>i;i++)n=t[i],Nn[n]=Nn[n]||[],Nn[n].unshift(e)},prefilter:function(t,e){e?Pn.unshift(t):Pn.push(t)}}),se.Tween=L,L.prototype={constructor:L,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||\"swing\",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(se.cssNumber[n]?\"\":\"px\")},cur:function(){var t=L.propHooks[this.prop];return t&&t.get?t.get(this):L.propHooks._default.get(this)},run:function(t){var e,n=L.propHooks[this.prop];return this.pos=e=this.options.duration?se.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):L.propHooks._default.set(this),this}},L.prototype.init.prototype=L.prototype,L.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=se.css(t.elem,t.prop,\"\"),e&&\"auto\"!==e?e:0):t.elem[t.prop]},set:function(t){se.fx.step[t.prop]?se.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[se.cssProps[t.prop]]||se.cssHooks[t.prop])?se.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},L.propHooks.scrollTop=L.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},se.each([\"toggle\",\"show\",\"hide\"],function(t,e){var n=se.fn[e];se.fn[e]=function(t,i,r){return null==t||\"boolean\"==typeof t?n.apply(this,arguments):this.animate(F(e,!0),t,i,r)}}),se.fn.extend({fadeTo:function(t,e,n,i){return this.filter(b).css(\"opacity\",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=se.isEmptyObject(t),o=se.speed(e,n,i),s=function(){var e=I(this,se.extend({},t),o);(r||me.get(this,\"finish\"))&&e.stop(!0)};return s.finish=s,r||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,n,i){var r=function(t){var e=t.stop;delete t.stop,e(i)};return\"string\"!=typeof t&&(i=n,n=t,t=e),n&&t!==!1&&this.queue(t||\"fx\",[]),this.each(function(){var e=!0,n=null!=t&&t+\"queueHooks\",o=se.timers,s=me.get(this);if(n)s[n]&&s[n].stop&&r(s[n]);else for(n in s)s[n]&&s[n].stop&&jn.test(n)&&r(s[n]);for(n=o.length;n--;)o[n].elem!==this||null!=t&&o[n].queue!==t||(o[n].anim.stop(i),e=!1,o.splice(n,1));(e||!i)&&se.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||\"fx\"),this.each(function(){var e,n=me.get(this),i=n[t+\"queue\"],r=n[t+\"queueHooks\"],o=se.timers,s=i?i.length:0;for(n.finish=!0,se.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;s>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),se.each({slideDown:F(\"show\"),slideUp:F(\"hide\"),slideToggle:F(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(t,e){se.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),se.speed=function(t,e,n){var i=t&&\"object\"==typeof t?se.extend({},t):{complete:n||!n&&e||se.isFunction(t)&&t,duration:t,easing:n&&e||e&&!se.isFunction(e)&&e};return i.duration=se.fx.off?0:\"number\"==typeof i.duration?i.duration:i.duration in se.fx.speeds?se.fx.speeds[i.duration]:se.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue=\"fx\"),i.old=i.complete,i.complete=function(){se.isFunction(i.old)&&i.old.call(this),i.queue&&se.dequeue(this,i.queue)},i},se.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},se.timers=[],se.fx=L.prototype.init,se.fx.tick=function(){var t,n=se.timers,i=0;for(An=se.now();i<n.length;i++)t=n[i],t()||n[i]!==t||n.splice(i--,1);n.length||se.fx.stop(),An=e},se.fx.timer=function(t){t()&&se.timers.push(t)&&se.fx.start()},se.fx.interval=13,se.fx.start=function(){Rn||(Rn=setInterval(se.fx.tick,se.fx.interval))},se.fx.stop=function(){clearInterval(Rn),Rn=null},se.fx.speeds={slow:600,fast:200,_default:400},se.fx.step={},se.expr&&se.expr.filters&&(se.expr.filters.animated=function(t){return se.grep(se.timers,function(e){return t===e.elem}).length}),se.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){se.offset.setOffset(this,t,e)});var n,i,r=this[0],o={top:0,left:0},s=r&&r.ownerDocument;if(s)return n=s.documentElement,se.contains(n,r)?(typeof r.getBoundingClientRect!==U&&(o=r.getBoundingClientRect()),i=B(s),{top:o.top+i.pageYOffset-n.clientTop,left:o.left+i.pageXOffset-n.clientLeft}):o},se.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c,u=se.css(t,\"position\"),h=se(t),p={};\"static\"===u&&(t.style.position=\"relative\"),a=h.offset(),o=se.css(t,\"top\"),l=se.css(t,\"left\"),c=(\"absolute\"===u||\"fixed\"===u)&&(o+l).indexOf(\"auto\")>-1,c?(i=h.position(),s=i.top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),se.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(p.top=e.top-a.top+s),null!=e.left&&(p.left=e.left-a.left+r),\"using\"in e?e.using.call(t,p):h.css(p)}},se.fn.extend({position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return\"fixed\"===se.css(n,\"position\")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),se.nodeName(t[0],\"html\")||(i=t.offset()),i.top+=se.css(t[0],\"borderTopWidth\",!0),i.left+=se.css(t[0],\"borderLeftWidth\",!0)),{top:e.top-i.top-se.css(n,\"marginTop\",!0),left:e.left-i.left-se.css(n,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||G;t&&!se.nodeName(t,\"html\")&&\"static\"===se.css(t,\"position\");)t=t.offsetParent;return t||G})}}),se.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(n,i){var r=\"pageYOffset\"===i;se.fn[n]=function(o){return se.access(this,function(n,o,s){var a=B(n);return s===e?a?a[i]:n[o]:void(a?a.scrollTo(r?t.pageXOffset:s,r?s:t.pageYOffset):n[o]=s)},n,o,arguments.length,null)}}),se.each({Height:\"height\",Width:\"width\"},function(t,n){se.each({padding:\"inner\"+t,content:n,\"\":\"outer\"+t},function(i,r){se.fn[r]=function(r,o){var s=arguments.length&&(i||\"boolean\"!=typeof r),a=i||(r===!0||o===!0?\"margin\":\"border\");return se.access(this,function(n,i,r){var o;return se.isWindow(n)?n.document.documentElement[\"client\"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body[\"scroll\"+t],o[\"scroll\"+t],n.body[\"offset\"+t],o[\"offset\"+t],o[\"client\"+t])):r===e?se.css(n,i,a):se.style(n,i,r,a)},n,s?r:e,s,null)}})}),se.fn.size=function(){return this.length},se.fn.andSelf=se.fn.addBack,\"object\"==typeof module&&module&&\"object\"==typeof module.exports?module.exports=se:\"function\"==typeof i&&i.amd&&i(\"jquery\",[],function(){return se}),\"object\"==typeof t&&\"object\"==typeof t.document&&(t.jQuery=t.$=se)}(window),function(t,e){\"undefined\"!=typeof o?e(t,o,n(\"underscore\")):\"function\"==typeof i&&i.amd?i(\"backbone\",[\"underscore\",\"jquery\",\"exports\"],function(n,i,r){t.Backbone=e(t,r,n,i)}):t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,n,i){{var r=t.Backbone,o=[],s=(o.push,o.slice);o.splice}e.VERSION=\"1.1.0\",e.$=i,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,n){if(!c(this,\"on\",t,[e,n])||!e)return this;this._events||(this._events={});var i=this._events[t]||(this._events[t]=[]);return i.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,i){if(!c(this,\"once\",t,[e,i])||!e)return this;var r=this,o=n.once(function(){r.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,i)},off:function(t,e,i){var r,o,s,a,l,u,h,p;if(!this._events||!c(this,\"off\",t,[e,i]))return this;if(!t&&!e&&!i)return this._events={},this;for(a=t?[t]:n.keys(this._events),l=0,u=a.length;u>l;l++)if(t=a[l],s=this._events[t]){if(this._events[t]=r=[],e||i)for(h=0,p=s.length;p>h;h++)o=s[h],(e&&e!==o.callback&&e!==o.callback._callback||i&&i!==o.context)&&r.push(o);r.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!c(this,\"trigger\",t,e))return this;var n=this._events[t],i=this._events.all;return n&&u(n,e),i&&u(i,arguments),this},stopListening:function(t,e,i){var r=this._listeningTo;if(!r)return this;var o=!e&&!i;i||\"object\"!=typeof e||(i=this),t&&((r={})[t._listenId]=t);for(var s in r)t=r[s],t.off(e,i,this),(o||n.isEmpty(t._events))&&delete this._listeningTo[s];return this}},l=/\\s+/,c=function(t,e,n,i){if(!n)return!0;if(\"object\"==typeof n){for(var r in n)t[e].apply(t,[r,n[r]].concat(i));return!1}if(l.test(n)){for(var o=n.split(l),s=0,a=o.length;a>s;s++)t[e].apply(t,[o[s]].concat(i));return!1}return!0},u=function(t,e){var n,i=-1,r=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,s,a);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e)}},h={listenTo:\"on\",listenToOnce:\"once\"};n.each(h,function(t,e){a[e]=function(e,i,r){var o=this._listeningTo||(this._listeningTo={}),s=e._listenId||(e._listenId=n.uniqueId(\"l\"));return o[s]=e,r||\"object\"!=typeof i||(r=this),e[t](i,r,this),this}}),a.bind=a.on,a.unbind=a.off,n.extend(e,a);var p=e.Model=function(t,e){var i=t||{};e||(e={}),this.cid=n.uniqueId(\"c\"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),i=n.defaults({},i,n.result(this,\"defaults\")),this.set(i,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(p.prototype,a,{changed:null,validationError:null,idAttribute:\"id\",initialize:function(){},toJSON:function(){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,i){var r,o,s,a,l,c,u,h;if(null==t)return this;if(\"object\"==typeof t?(o=t,i=e):(o={})[t]=e,i||(i={}),!this._validate(o,i))return!1;s=i.unset,l=i.silent,a=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=n.clone(this.attributes),this.changed={}),h=this.attributes,u=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]);for(r in o)e=o[r],n.isEqual(h[r],e)||a.push(r),n.isEqual(u[r],e)?delete this.changed[r]:this.changed[r]=e,s?delete h[r]:h[r]=e;if(!l){a.length&&(this._pending=!0);for(var p=0,d=a.length;d>p;p++)this.trigger(\"change:\"+a[p],this,h[a[p]],i)}if(c)return this;if(!l)for(;this._pending;)this._pending=!1,this.trigger(\"change\",this,i);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?n.clone(this.changed):!1;var e,i=!1,r=this._changing?this._previousAttributes:this.attributes;for(var o in t)n.isEqual(r[o],e=t[o])||((i||(i={}))[o]=e);return i},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,i=t.success;return t.success=function(n){return e.set(e.parse(n,t),t)?(i&&i(e,n,t),void e.trigger(\"sync\",e,n,t)):!1},z(this,t),this.sync(\"read\",this,t)},save:function(t,e,i){var r,o,s,a=this.attributes;if(null==t||\"object\"==typeof t?(r=t,i=e):(r={})[t]=e,i=n.extend({validate:!0},i),r&&!i.wait){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;r&&i.wait&&(this.attributes=n.extend({},a,r)),void 0===i.parse&&(i.parse=!0);var l=this,c=i.success;return i.success=function(t){l.attributes=a;var e=l.parse(t,i);return i.wait&&(e=n.extend(r||{},e)),n.isObject(e)&&!l.set(e,i)?!1:(c&&c(l,t,i),void l.trigger(\"sync\",l,t,i))},z(this,i),o=this.isNew()?\"create\":i.patch?\"patch\":\"update\",\"patch\"===o&&(i.attrs=r),s=this.sync(o,this,i),r&&i.wait&&(this.attributes=a),s},destroy:function(t){t=t?n.clone(t):{};var e=this,i=t.success,r=function(){e.trigger(\"destroy\",e,e.collection,t)};if(t.success=function(n){(t.wait||e.isNew())&&r(),i&&i(e,n,t),e.isNew()||e.trigger(\"sync\",e,n,t)},this.isNew())return t.success(),!1;z(this,t);var o=this.sync(\"delete\",this,t);return t.wait||r(),o},url:function(){var t=n.result(this,\"urlRoot\")||n.result(this.collection,\"url\")||I();return this.isNew()?t:t+(\"/\"===t.charAt(t.length-1)?\"\":\"/\")+encodeURIComponent(this.id)},parse:function(t){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},isValid:function(t){return this._validate({},n.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var i=this.validationError=this.validate(t,e)||null;return i?(this.trigger(\"invalid\",this,i,n.extend(e,{validationError:i})),!1):!0}});var d=[\"keys\",\"values\",\"pairs\",\"invert\",\"pick\",\"omit\"];n.each(d,function(t){p.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}});var f=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},_={add:!0,remove:!0,merge:!0},g={add:!0,remove:!1};n.extend(f.prototype,a,{model:p,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,g))},remove:function(t,e){var i=!n.isArray(t);t=i?[t]:n.clone(t),e||(e={});var r,o,s,a;for(r=0,o=t.length;o>r;r++)a=t[r]=this.get(t[r]),a&&(delete this._byId[a.id],delete this._byId[a.cid],s=this.indexOf(a),this.models.splice(s,1),this.length--,e.silent||(e.index=s,a.trigger(\"remove\",a,this,e)),this._removeReference(a));return i?t[0]:t},set:function(t,e){e=n.defaults({},e,_),e.parse&&(t=this.parse(t,e));var i=!n.isArray(t);t=i?t?[t]:[]:n.clone(t);var r,o,s,a,l,c,u,h=e.at,d=this.model,f=this.comparator&&null==h&&e.sort!==!1,g=n.isString(this.comparator)?this.comparator:null,m=[],y=[],v={},b=e.add,w=e.merge,x=e.remove,k=!f&&b&&x?[]:!1;for(r=0,o=t.length;o>r;r++){if(l=t[r],s=l instanceof p?a=l:l[d.prototype.idAttribute],c=this.get(s))x&&(v[c.cid]=!0),w&&(l=l===a?a.attributes:l,e.parse&&(l=c.parse(l,e)),c.set(l,e),f&&!u&&c.hasChanged(g)&&(u=!0)),t[r]=c;else if(b){if(a=t[r]=this._prepareModel(l,e),!a)continue;m.push(a),a.on(\"all\",this._onModelEvent,this),this._byId[a.cid]=a,null!=a.id&&(this._byId[a.id]=a)}k&&k.push(c||a)}if(x){for(r=0,o=this.length;o>r;++r)v[(a=this.models[r]).cid]||y.push(a);y.length&&this.remove(y,e)}if(m.length||k&&k.length)if(f&&(u=!0),this.length+=m.length,null!=h)for(r=0,o=m.length;o>r;r++)this.models.splice(h+r,0,m[r]);else{k&&(this.models.length=0);var C=k||m;for(r=0,o=C.length;o>r;r++)this.models.push(C[r])}if(u&&this.sort({silent:!0}),!e.silent){for(r=0,o=m.length;o>r;r++)(a=m[r]).trigger(\"add\",a,this,e);(u||k&&k.length)&&this.trigger(\"sort\",this,e)}return i?t[0]:t},reset:function(t,e){e||(e={});for(var i=0,r=this.models.length;r>i;i++)this._removeReference(this.models[i]);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger(\"reset\",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return s.apply(this.models,arguments)},get:function(t){return null==t?void 0:this._byId[t.id]||this._byId[t.cid]||this._byId[t]},at:function(t){return this.models[t]},where:function(t,e){return n.isEmpty(t)?e?void 0:[]:this[e?\"find\":\"filter\"](function(e){for(var n in t)if(t[n]!==e.get(n))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error(\"Cannot sort a set without a comparator\");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger(\"sort\",this,t),this},pluck:function(t){return n.invoke(this.models,\"get\",t)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,i=this;return t.success=function(n){var r=t.reset?\"reset\":\"set\";i[r](n,t),e&&e(i,n,t),i.trigger(\"sync\",i,n,t)},z(this,t),this.sync(\"read\",this,t)},create:function(t,e){if(e=e?n.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var i=this,r=e.success;return e.success=function(t,e,n){n.wait&&i.add(t,n),r&&r(t,e,n)},t.save(null,e),t},parse:function(t){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof p)return t.collection||(t.collection=this),t;e=e?n.clone(e):{},e.collection=this;var i=new this.model(t,e);return i.validationError?(this.trigger(\"invalid\",this,i.validationError,e),!1):i},_removeReference:function(t){this===t.collection&&delete t.collection,t.off(\"all\",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){(\"add\"!==t&&\"remove\"!==t||n===this)&&(\"destroy\"===t&&this.remove(e,i),e&&t===\"change:\"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var m=[\"forEach\",\"each\",\"map\",\"collect\",\"reduce\",\"foldl\",\"inject\",\"reduceRight\",\"foldr\",\"find\",\"detect\",\"filter\",\"select\",\"reject\",\"every\",\"all\",\"some\",\"any\",\"include\",\"contains\",\"invoke\",\"max\",\"min\",\"toArray\",\"size\",\"first\",\"head\",\"take\",\"initial\",\"rest\",\"tail\",\"drop\",\"last\",\"without\",\"difference\",\"indexOf\",\"shuffle\",\"lastIndexOf\",\"isEmpty\",\"chain\"];n.each(m,function(t){f.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.models),n[t].apply(n,e)}});var y=[\"groupBy\",\"countBy\",\"sortBy\"];n.each(y,function(t){f.prototype[t]=function(e,i){var r=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,r,i)}});var v=e.View=function(t){this.cid=n.uniqueId(\"view\"),t||(t={}),n.extend(this,n.pick(t,w)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},b=/^(\\S+)\\s*(.*)$/,w=[\"model\",\"collection\",\"el\",\"id\",\"attributes\",\"className\",\"tagName\",\"events\"];n.extend(v.prototype,a,{tagName:\"div\",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=n.result(this,\"events\")))return this;this.undelegateEvents();for(var e in t){var i=t[e];if(n.isFunction(i)||(i=this[t[e]]),i){var r=e.match(b),o=r[1],s=r[2];i=n.bind(i,this),o+=\".delegateEvents\"+this.cid,\"\"===s?this.$el.on(o,i):this.$el.on(o,s,i)}}return this},undelegateEvents:function(){return this.$el.off(\".delegateEvents\"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,\"el\"),!1);else{var t=n.extend({},n.result(this,\"attributes\"));this.id&&(t.id=n.result(this,\"id\")),this.className&&(t[\"class\"]=n.result(this,\"className\"));var i=e.$(\"<\"+n.result(this,\"tagName\")+\">\").attr(t);this.setElement(i,!1)}}}),e.sync=function(t,i,r){var o=k[t];n.defaults(r||(r={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:\"json\"};if(r.url||(s.url=n.result(i,\"url\")||I()),null!=r.data||!i||\"create\"!==t&&\"update\"!==t&&\"patch\"!==t||(s.contentType=\"application/json\",s.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(s.contentType=\"application/x-www-form-urlencoded\",s.data=s.data?{model:s.data}:{}),r.emulateHTTP&&(\"PUT\"===o||\"DELETE\"===o||\"PATCH\"===o)){s.type=\"POST\",r.emulateJSON&&(s.data._method=o);var a=r.beforeSend;r.beforeSend=function(t){return t.setRequestHeader(\"X-HTTP-Method-Override\",o),a?a.apply(this,arguments):void 0}}\"GET\"===s.type||r.emulateJSON||(s.processData=!1),\"PATCH\"===s.type&&x&&(s.xhr=function(){return new ActiveXObject(\"Microsoft.XMLHTTP\")});var l=r.xhr=e.ajax(n.extend(s,r));return i.trigger(\"request\",i,l,r),l};var x=!(\"undefined\"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),k={create:\"POST\",update:\"PUT\",patch:\"PATCH\",\"delete\":\"DELETE\",read:\"GET\"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var C=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},S=/\\((.*?)\\)/g,T=/(\\(\\?)?:\\w+/g,M=/\\*\\w+/g,D=/[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g;n.extend(C.prototype,a,{initialize:function(){},route:function(t,i,r){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(i)&&(r=i,i=\"\"),r||(r=this[i]);var o=this;return e.history.route(t,function(n){var s=o._extractParameters(t,n);r&&r.apply(o,s),o.trigger.apply(o,[\"route:\"+i].concat(s)),o.trigger(\"route\",i,s),e.history.trigger(\"route\",o,i,s)}),this},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,\"routes\");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(D,\"\\\\$&\").replace(S,\"(?:$1)?\").replace(T,function(t,e){return e?t:\"([^/]+)\"}).replace(M,\"(.*?)\"),new RegExp(\"^\"+t+\"$\")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return n.map(i,function(t){return t?decodeURIComponent(t):null})}});var A=e.History=function(){this.handlers=[],n.bindAll(this,\"checkUrl\"),\"undefined\"!=typeof window&&(this.location=window.location,this.history=window.history)},R=/^[#\\/]|\\s+$/g,E=/^\\/+|\\/+$/g,O=/msie [\\w.]+/,j=/\\/$/,P=/[?#].*$/;A.started=!1,n.extend(A.prototype,a,{interval:50,getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:\"\"},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=this.location.pathname;var n=this.root.replace(j,\"\");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(R,\"\")},start:function(t){if(A.started)throw new Error(\"Backbone.history has already been started\");A.started=!0,this.options=n.extend({root:\"/\"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var i=this.getFragment(),r=document.documentMode,o=O.exec(navigator.userAgent.toLowerCase())&&(!r||7>=r);this.root=(\"/\"+this.root+\"/\").replace(E,\"/\"),o&&this._wantsHashChange&&(this.iframe=e.$('<iframe src=\"javascript:0\" tabindex=\"-1\" />').hide().appendTo(\"body\")[0].contentWindow,this.navigate(i)),this._hasPushState?e.$(window).on(\"popstate\",this.checkUrl):this._wantsHashChange&&\"onhashchange\"in window&&!o?e.$(window).on(\"hashchange\",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=i;var s=this.location,a=s.pathname.replace(/[^\\/]$/,\"$&/\")===this.root;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!a)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+\"#\"+this.fragment),!0;this._hasPushState&&a&&s.hash&&(this.fragment=this.getHash().replace(R,\"\"),this.history.replaceState({},document.title,this.root+this.fragment+s.search))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off(\"popstate\",this.checkUrl).off(\"hashchange\",this.checkUrl),clearInterval(this._checkUrlInterval),A.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(){var t=this.getFragment();return t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment?!1:(this.iframe&&this.navigate(t),void this.loadUrl())},loadUrl:function(t){return t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!A.started)return!1;e&&e!==!0||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||\"\"));if(t=t.replace(P,\"\"),this.fragment!==t){if(this.fragment=t,\"\"===t&&\"/\"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?\"replaceState\":\"pushState\"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,\"\");t.replace(i+\"#\"+e)}else t.hash=\"#\"+e}}),e.history=new A;var N=function(t,e){var i,r=this;i=t&&n.has(t,\"constructor\")?t.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,e);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,t&&n.extend(i.prototype,t),i.__super__=r.prototype,i};p.extend=f.extend=C.extend=v.extend=A.extend=N;var I=function(){throw new Error('A \"url\" property or function must be specified')},z=function(t,e){var n=e.error;e.error=function(i){n&&n(t,i,e),t.trigger(\"error\",t,i,e)}};return e}),function(){i(\"common/custom\",[\"underscore\"],function(t){var e;return e=function(){return t.uniqueId=function(t){var e,n,i,r,o;for(i=[],e=\"0123456789ABCDEF\",n=o=0;31>=o;n=++o)i[n]=e.substr(Math.floor(16*Math.random()),1);return i[12]=\"4\",i[16]=e.substr(3&i[16]|8,1),r=i.join(\"\"),t?t+\"-\"+r:r}},t.isNullOrUndefined=function(e){return t.isNull(e)||t.isUndefined(e)},t.setdefault=function(e,n,i){return t.has(e,n)?e[n]:(e[n]=i,i)},{monkey_patch:e}})}.call(this),function(t){i(\"kiwi\",[],function(){return function(){var e;!function(t){function e(t){return t instanceof Array?new l(t):t.__iter__()}function n(t){return t instanceof Array?new c(t):t.__reversed__()}function i(t){return t.__next__()}function r(t){if(t instanceof Array)return t.slice();for(var e,n=[],i=t.__iter__();void 0!==(e=i.__next__());)n.push(e);return n}function o(t,e){if(t instanceof Array){for(var n=0,i=t.length;i>n;++n)if(e(t[n])===!1)return}else for(var r,o=t.__iter__();void 0!==(r=o.__next__());)if(e(r)===!1)return}function s(t,e){var n=[];if(t instanceof Array)for(var i=0,r=t.length;r>i;++i)n.push(e(t[i]));else for(var o,s=t.__iter__();void 0!==(o=s.__next__());)n.push(e(o));return n}function a(t,e){var n,i=[];if(t instanceof Array)for(var r=0,o=t.length;o>r;++r)n=t[r],e(n)&&i.push(n);else for(var s=t.__iter__();void 0!==(n=s.__next__());)e(n)&&i.push(n);return i}var l=function(){function t(t,e){\"undefined\"==typeof e&&(e=0),this._array=t,this._index=Math.max(0,Math.min(e,t.length))}return t.prototype.__next__=function(){return this._array[this._index++]},t.prototype.__iter__=function(){return this},t}();t.ArrayIterator=l;var c=function(){function t(t,e){\"undefined\"==typeof e&&(e=t.length),this._array=t,this._index=Math.max(0,Math.min(e,t.length))}return t.prototype.__next__=function(){return this._array[--this._index]},t.prototype.__iter__=function(){return this},t}();t.ReverseArrayIterator=c,t.iter=e,t.reversed=n,t.next=i,t.asArray=r,t.forEach=o,t.map=s,t.filter=a}(e||(e={}));var e;!function(t){var e=function(){function t(t,e){this.first=t,this.second=e}return t.prototype.copy=function(){return new t(this.first,this.second)},t}();t.Pair=e}(e||(e={}));var e;!function(t){function e(t,e,n){for(var i,r,o=0,s=t.length;s>0;)i=s>>1,r=o+i,n(t[r],e)<0?(o=r+1,s-=i+1):s=i;return o}function n(t,n,i){var r=e(t,n,i);if(r===t.length)return-1;var o=t[r];return 0!==i(o,n)?-1:r}function i(t,n,i){var r=e(t,n,i);if(r===t.length)return void 0;var o=t[r];return 0!==i(o,n)?void 0:o}function r(e,n){var i=t.asArray(e),r=i.length;if(1>=r)return i;i.sort(n);for(var o=[i[0]],s=1,a=0;r>s;++s){var l=i[s];0!==n(o[a],l)&&(o.push(l),++a)}return o}function o(t,e,n){for(var i=0,r=0,o=t.length,s=e.length;o>i&&s>r;){var a=n(t[i],e[r]);if(0>a)++i;else{if(!(a>0))return!1;++r}}return!0}function s(t,e,n){var i=t.length,r=e.length;\n",
" if(i>r)return!1;for(var o=0,s=0;i>o&&r>s;){var a=n(t[o],e[s]);if(0>a)return!1;a>0?++s:(++o,++s)}return i>o?!1:!0}function a(t,e,n){for(var i=0,r=0,o=t.length,s=e.length,a=[];o>i&&s>r;){var l=t[i],c=e[r],u=n(l,c);0>u?(a.push(l),++i):u>0?(a.push(c),++r):(a.push(l),++i,++r)}for(;o>i;)a.push(t[i]),++i;for(;s>r;)a.push(e[r]),++r;return a}function l(t,e,n){for(var i=0,r=0,o=t.length,s=e.length,a=[];o>i&&s>r;){var l=t[i],c=e[r],u=n(l,c);0>u?++i:u>0?++r:(a.push(l),++i,++r)}return a}function c(t,e,n){for(var i=0,r=0,o=t.length,s=e.length,a=[];o>i&&s>r;){var l=t[i],c=e[r],u=n(l,c);0>u?(a.push(l),++i):u>0?++r:(++i,++r)}for(;o>i;)a.push(t[i]),++i;return a}function u(t,e,n){for(var i=0,r=0,o=t.length,s=e.length,a=[];o>i&&s>r;){var l=t[i],c=e[r],u=n(l,c);0>u?(a.push(l),++i):u>0?(a.push(c),++r):(++i,++r)}for(;o>i;)a.push(t[i]),++i;for(;s>r;)a.push(e[r]),++r;return a}t.lowerBound=e,t.binarySearch=n,t.binaryFind=i,t.asSet=r,t.setIsDisjoint=o,t.setIsSubset=s,t.setUnion=a,t.setIntersection=l,t.setDifference=c,t.setSymmetricDifference=u}(e||(e={}));var e;!function(t){var e=function(){function e(){this._array=[]}return e.prototype.size=function(){return this._array.length},e.prototype.empty=function(){return 0===this._array.length},e.prototype.itemAt=function(t){return this._array[t]},e.prototype.takeAt=function(t){return this._array.splice(t,1)[0]},e.prototype.clear=function(){this._array=[]},e.prototype.swap=function(t){var e=this._array;this._array=t._array,t._array=e},e.prototype.__iter__=function(){return t.iter(this._array)},e.prototype.__reversed__=function(){return t.reversed(this._array)},e}();t.ArrayBase=e}(e||(e={}));var e,n=this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);n.prototype=e.prototype,t.prototype=new n};!function(t){function e(t){return function(e,n){return t(e.first,n)}}function i(t,e,n){for(var i=0,r=0,o=t.length,s=e.length,a=[];o>i&&s>r;){var l=t[i],c=e[r],u=n(l.first,c.first);0>u?(a.push(l.copy()),++i):u>0?(a.push(c.copy()),++r):(a.push(c.copy()),++i,++r)}for(;o>i;)a.push(t[i].copy()),++i;for(;s>r;)a.push(e[r].copy()),++r;return a}var r=function(r){function o(t){r.call(this),this._compare=t,this._wrapped=e(t)}return n(o,r),o.prototype.comparitor=function(){return this._compare},o.prototype.indexOf=function(e){return t.binarySearch(this._array,e,this._wrapped)},o.prototype.contains=function(e){return t.binarySearch(this._array,e,this._wrapped)>=0},o.prototype.find=function(e){return t.binaryFind(this._array,e,this._wrapped)},o.prototype.setDefault=function(e,n){var i=this._array,r=t.lowerBound(i,e,this._wrapped);if(r===i.length){var o=new t.Pair(e,n());return i.push(o),o}var s=i[r];if(0!==this._compare(s.first,e)){var o=new t.Pair(e,n());return i.splice(r,0,o),o}return s},o.prototype.insert=function(e,n){var i=this._array,r=t.lowerBound(i,e,this._wrapped);if(r===i.length){var o=new t.Pair(e,n);return i.push(o),o}var s=i[r];if(0!==this._compare(s.first,e)){var o=new t.Pair(e,n);return i.splice(r,0,o),o}return s.second=n,s},o.prototype.update=function(e){var n=this;if(e instanceof o){var r=e;this._array=i(this._array,r._array,this._compare)}else t.forEach(e,function(t){n.insert(t.first,t.second)})},o.prototype.erase=function(e){var n=this._array,i=t.binarySearch(n,e,this._wrapped);return 0>i?void 0:n.splice(i,1)[0]},o.prototype.copy=function(){for(var t=new o(this._compare),e=t._array,n=this._array,i=0,r=n.length;r>i;++i)e.push(n[i].copy());return t},o}(t.ArrayBase);t.AssociativeArray=r}(e||(e={}));var e;!function(t){function e(e,n){return e instanceof i?e._array:t.asSet(e,n)}var i=function(i){function r(t){i.call(this),this._compare=t}return n(r,i),r.prototype.comparitor=function(){return this._compare},r.prototype.indexOf=function(e){return t.binarySearch(this._array,e,this._compare)},r.prototype.contains=function(e){return t.binarySearch(this._array,e,this._compare)>=0},r.prototype.insert=function(e){var n=this._array,i=t.lowerBound(n,e,this._compare);return i===n.length?(n.push(e),!0):0!==this._compare(n[i],e)?(n.splice(i,0,e),!0):!1},r.prototype.erase=function(e){var n=this._array,i=t.binarySearch(n,e,this._compare);return 0>i?!1:(n.splice(i,1),!0)},r.prototype.copy=function(){var t=new r(this._compare);return t._array=this._array.slice(),t},r.prototype.isDisjoint=function(n){var i=this._compare,r=e(n,i);return t.setIsDisjoint(this._array,r,i)},r.prototype.isSubset=function(n){var i=this._compare,r=e(n,i);return t.setIsSubset(this._array,r,i)},r.prototype.isSuperset=function(n){var i=this._compare,r=e(n,i);return t.setIsSubset(r,this._array,i)},r.prototype.union=function(n){var i=this._compare,o=new r(i),s=e(n,i);return o._array=t.setUnion(this._array,s,i),o},r.prototype.intersection=function(n){var i=this._compare,o=new r(i),s=e(n,i);return o._array=t.setIntersection(this._array,s,i),o},r.prototype.difference=function(n){var i=this._compare,o=new r(i),s=e(n,i);return o._array=t.setDifference(this._array,s,i),o},r.prototype.symmetricDifference=function(n){var i=this._compare,o=new r(i),s=e(n,i);return o._array=t.setSymmetricDifference(this._array,s,i),o},r.prototype.unionUpdate=function(n){var i=this._compare,r=e(n,i);this._array=t.setUnion(this._array,r,i)},r.prototype.intersectionUpdate=function(n){var i=this._compare,r=e(n,i);this._array=t.setIntersection(this._array,r,i)},r.prototype.differenceUpdate=function(n){var i=this._compare,r=e(n,i);this._array=t.setDifference(this._array,r,i)},r.prototype.symmetricDifferenceUpdate=function(n){var i=this._compare,r=e(n,i);this._array=t.setSymmetricDifference(this._array,r,i)},r}(t.ArrayBase);t.UniqueArray=i}(e||(e={}));var i;!function(t){!function(t){t[t.Le=0]=\"Le\",t[t.Ge=1]=\"Ge\",t[t.Eq=2]=\"Eq\"}(t.Operator||(t.Operator={}));var e=(t.Operator,function(){function e(e,i,r){\"undefined\"==typeof r&&(r=t.Strength.required),this._id=n++,this._operator=i,this._expression=e,this._strength=t.Strength.clip(r)}return e.Compare=function(t,e){return t.id()-e.id()},e.prototype.id=function(){return this._id},e.prototype.expression=function(){return this._expression},e.prototype.op=function(){return this._operator},e.prototype.strength=function(){return this._strength},e}());t.Constraint=e;var n=0}(i||(i={}));var i;!function(t){function n(t){return new e.AssociativeArray(t)}t.createMap=n}(i||(i={}));var i;!function(t){var e=function(){function t(t){\"undefined\"==typeof t&&(t=\"\"),this._value=0,this._context=null,this._id=n++,this._name=t}return t.Compare=function(t,e){return t.id()-e.id()},t.prototype.id=function(){return this._id},t.prototype.name=function(){return this._name},t.prototype.setName=function(t){this._name=t},t.prototype.context=function(){return this._context},t.prototype.setContext=function(t){this._context=t},t.prototype.value=function(){return this._value},t.prototype.setValue=function(t){this._value=t},t}();t.Variable=e;var n=0}(i||(i={}));var i;!function(t){function n(e){for(var n=0,i=function(){return 0},r=t.createMap(t.Variable.Compare),o=0,s=e.length;s>o;++o){var a=e[o];if(\"number\"==typeof a)n+=a;else if(a instanceof t.Variable)r.setDefault(a,i).second+=1;else{if(!(a instanceof Array))throw new Error(\"invalid Expression argument: \"+a);if(2!==a.length)throw new Error(\"array must have length 2\");var l=a[0],c=a[1];if(\"number\"!=typeof l)throw new Error(\"array item 0 must be a number\");if(!(c instanceof t.Variable))throw new Error(\"array item 1 must be a variable\");r.setDefault(c,i).second+=l}}return{terms:r,constant:n}}var i=function(){function t(){var t=n(arguments);this._terms=t.terms,this._constant=t.constant}return t.prototype.terms=function(){return this._terms},t.prototype.constant=function(){return this._constant},t.prototype.value=function(){var t=this._constant;return e.forEach(this._terms,function(e){t+=e.first.value()*e.second}),t},t}();t.Expression=i}(i||(i={}));var i;!function(t){!function(t){function e(t,e,n,i){\"undefined\"==typeof i&&(i=1);var r=0;return r+=1e6*Math.max(0,Math.min(1e3,t*i)),r+=1e3*Math.max(0,Math.min(1e3,e*i)),r+=Math.max(0,Math.min(1e3,n*i))}function n(e){return Math.max(0,Math.min(t.required,e))}t.create=e,t.required=e(1e3,1e3,1e3),t.strong=e(1,0,0),t.medium=e(0,1,0),t.weak=e(0,0,1),t.clip=n}(t.Strength||(t.Strength={}));t.Strength}(i||(i={}));var i;return function(t){function e(t){var e=1e-8;return 0>t?e>-t:e>t}function n(){return t.createMap(t.Constraint.Compare)}function i(){return t.createMap(l.Compare)}function r(){return t.createMap(t.Variable.Compare)}function o(){return t.createMap(t.Variable.Compare)}var s=function(){function s(){this._cnMap=n(),this._rowMap=i(),this._varMap=r(),this._editMap=o(),this._infeasibleRows=[],this._objective=new u,this._artificial=null,this._idTick=0}return s.prototype.addConstraint=function(t){var n=this._cnMap.find(t);if(void 0!==n)throw new Error(\"duplicate constraint\");var i=this._createRow(t),r=i.row,o=i.tag,s=this._chooseSubject(r,o);if(0===s.type()&&r.allDummies()){if(!e(r.constant()))throw new Error(\"unsatifiable constraint\");s=o.marker}if(0===s.type()){if(!this._addWithArtificialVariable(r))throw new Error(\"unsatisfiable constraint\")}else r.solveFor(s),this._substitute(s,r),this._rowMap.insert(s,r);this._cnMap.insert(t,o),this._optimize(this._objective)},s.prototype.removeConstraint=function(t){var e=this._cnMap.erase(t);if(void 0===e)throw new Error(\"unknown constraint\");this._removeConstraintEffects(t,e.second);var n=e.second.marker,i=this._rowMap.erase(n);if(void 0===i){var r=this._getMarkerLeavingSymbol(n);if(0===r.type())throw new Error(\"failed to find leaving row\");i=this._rowMap.erase(r),i.second.solveForEx(r,n),this._substitute(n,i.second)}this._optimize(this._objective)},s.prototype.hasConstraint=function(t){return this._cnMap.contains(t)},s.prototype.addEditVariable=function(e,n){var i=this._editMap.find(e);if(void 0!==i)throw new Error(\"duplicate edit variable\");if(n=t.Strength.clip(n),n===t.Strength.required)throw new Error(\"bad required strength\");var r=new t.Expression(e),o=new t.Constraint(r,2,n);this.addConstraint(o);var s=this._cnMap.find(o).second,a={tag:s,constraint:o,constant:0};this._editMap.insert(e,a)},s.prototype.removeEditVariable=function(t){var e=this._editMap.erase(t);if(void 0===e)throw new Error(\"unknown edit variable\");this.removeConstraint(e.second.constraint)},s.prototype.hasEditVariable=function(t){return this._editMap.contains(t)},s.prototype.suggestValue=function(t,e){var n=this._editMap.find(t);if(void 0===n)throw new Error(\"unknown edit variable\");var i=this._rowMap,r=n.second,o=e-r.constant;r.constant=e;var s=r.tag.marker,a=i.find(s);if(void 0!==a)return a.second.add(-o)<0&&this._infeasibleRows.push(s),void this._dualOptimize();var l=r.tag.other,a=i.find(l);if(void 0!==a)return a.second.add(o)<0&&this._infeasibleRows.push(l),void this._dualOptimize();for(var c=0,u=i.size();u>c;++c){var a=i.itemAt(c),h=a.second,p=h.coefficientFor(s);0!==p&&h.add(o*p)<0&&1!==a.first.type()&&this._infeasibleRows.push(a.first)}this._dualOptimize()},s.prototype.updateVariables=function(){for(var t=this._varMap,e=this._rowMap,n=0,i=t.size();i>n;++n){var r=t.itemAt(n),o=e.find(r.second);r.first.setValue(void 0!==o?o.second.constant():0)}},s.prototype._getVarSymbol=function(t){var e=this,n=function(){return e._makeSymbol(1)};return this._varMap.setDefault(t,n).second},s.prototype._createRow=function(n){for(var i=n.expression(),r=new u(i.constant()),o=i.terms(),s=0,a=o.size();a>s;++s){var l=o.itemAt(s);if(!e(l.second)){var h=this._getVarSymbol(l.first),p=this._rowMap.find(h);void 0!==p?r.insertRow(p.second,l.second):r.insertSymbol(h,l.second)}}var d=this._objective,f=n.strength(),_={marker:c,other:c};switch(n.op()){case 0:case 1:var g=0===n.op()?1:-1,m=this._makeSymbol(2);if(_.marker=m,r.insertSymbol(m,g),f<t.Strength.required){var y=this._makeSymbol(3);_.other=y,r.insertSymbol(y,-g),d.insertSymbol(y,f)}break;case 2:if(f<t.Strength.required){var v=this._makeSymbol(3),b=this._makeSymbol(3);_.marker=v,_.other=b,r.insertSymbol(v,-1),r.insertSymbol(b,1),d.insertSymbol(v,f),d.insertSymbol(b,f)}else{var w=this._makeSymbol(4);_.marker=w,r.insertSymbol(w)}}return r.constant()<0&&r.reverseSign(),{row:r,tag:_}},s.prototype._chooseSubject=function(t,e){for(var n=t.cells(),i=0,r=n.size();r>i;++i){var o=n.itemAt(i);if(1===o.first.type())return o.first}var s=e.marker.type();return(2===s||3===s)&&t.coefficientFor(e.marker)<0?e.marker:(s=e.other.type(),(2===s||3===s)&&t.coefficientFor(e.other)<0?e.other:c)},s.prototype._addWithArtificialVariable=function(t){var n=this._makeSymbol(2);this._rowMap.insert(n,t.copy()),this._artificial=t.copy(),this._optimize(this._artificial);var i=e(this._artificial.constant());this._artificial=null;var r=this._rowMap.erase(n);if(void 0!==r){var o=r.second;if(o.isConstant())return i;var s=this._anyPivotableSymbol(o);if(0===s.type())return!1;o.solveForEx(n,s),this._substitute(s,o),this._rowMap.insert(s,o)}for(var a=this._rowMap,l=0,c=a.size();c>l;++l)a.itemAt(l).second.removeSymbol(n);return this._objective.removeSymbol(n),i},s.prototype._substitute=function(t,e){for(var n=this._rowMap,i=0,r=n.size();r>i;++i){var o=n.itemAt(i);o.second.substitute(t,e),o.second.constant()<0&&1!==o.first.type()&&this._infeasibleRows.push(o.first)}this._objective.substitute(t,e),this._artificial&&this._artificial.substitute(t,e)},s.prototype._optimize=function(t){for(;;){var e=this._getEnteringSymbol(t);if(0===e.type())return;var n=this._getLeavingSymbol(e);if(0===n.type())throw new Error(\"the objective is unbounded\");var i=this._rowMap.erase(n).second;i.solveForEx(n,e),this._substitute(e,i),this._rowMap.insert(e,i)}},s.prototype._dualOptimize=function(){for(var t=this._rowMap,e=this._infeasibleRows;0!==e.length;){var n=e.pop(),i=t.find(n);if(void 0!==i&&i.second.constant()<0){var r=this._getDualEnteringSymbol(i.second);if(0===r.type())throw new Error(\"dual optimize failed\");var o=i.second;t.erase(n),o.solveForEx(n,r),this._substitute(r,o),t.insert(r,o)}}},s.prototype._getEnteringSymbol=function(t){for(var e=t.cells(),n=0,i=e.size();i>n;++n){var r=e.itemAt(n),o=r.first;if(r.second<0&&4!==o.type())return o}return c},s.prototype._getDualEnteringSymbol=function(t){for(var e=Number.MAX_VALUE,n=c,i=t.cells(),r=0,o=i.size();o>r;++r){var s=i.itemAt(r),a=s.first,l=s.second;if(l>0&&4!==a.type()){var u=this._objective.coefficientFor(a),h=u/l;e>h&&(e=h,n=a)}}return n},s.prototype._getLeavingSymbol=function(t){for(var e=Number.MAX_VALUE,n=c,i=this._rowMap,r=0,o=i.size();o>r;++r){var s=i.itemAt(r),a=s.first;if(1!==a.type()){var l=s.second,u=l.coefficientFor(t);if(0>u){var h=-l.constant()/u;e>h&&(e=h,n=a)}}}return n},s.prototype._getMarkerLeavingSymbol=function(t){for(var e=Number.MAX_VALUE,n=e,i=e,r=c,o=r,s=r,a=r,l=this._rowMap,u=0,h=l.size();h>u;++u){var p=l.itemAt(u),d=p.second,f=d.coefficientFor(t);if(0!==f){var _=p.first;if(1===_.type())a=_;else if(0>f){var g=-d.constant()/f;n>g&&(n=g,o=_)}else{var g=d.constant()/f;i>g&&(i=g,s=_)}}}return o!==r?o:s!==r?s:a},s.prototype._removeConstraintEffects=function(t,e){3===e.marker.type()&&this._removeMarkerEffects(e.marker,t.strength()),3===e.other.type()&&this._removeMarkerEffects(e.other,t.strength())},s.prototype._removeMarkerEffects=function(t,e){var n=this._rowMap.find(t);void 0!==n?this._objective.insertRow(n.second,-e):this._objective.insertSymbol(t,-e)},s.prototype._anyPivotableSymbol=function(t){for(var e=t.cells(),n=0,i=e.size();i>n;++n){var r=e.itemAt(n),o=r.first.type();if(2===o||3===o)return r.first}return c},s.prototype._makeSymbol=function(t){return new l(t,this._idTick++)},s}();t.Solver=s;var a;!function(t){t[t.Invalid=0]=\"Invalid\",t[t.External=1]=\"External\",t[t.Slack=2]=\"Slack\",t[t.Error=3]=\"Error\",t[t.Dummy=4]=\"Dummy\"}(a||(a={}));var l=function(){function t(t,e){this._id=e,this._type=t}return t.Compare=function(t,e){return t.id()-e.id()},t.prototype.id=function(){return this._id},t.prototype.type=function(){return this._type},t}(),c=new l(0,-1),u=function(){function n(e){\"undefined\"==typeof e&&(e=0),this._cellMap=t.createMap(l.Compare),this._constant=e}return n.prototype.cells=function(){return this._cellMap},n.prototype.constant=function(){return this._constant},n.prototype.isConstant=function(){return this._cellMap.empty()},n.prototype.allDummies=function(){for(var t=this._cellMap,e=0,n=t.size();n>e;++e){var i=t.itemAt(e);if(4!==i.first.type())return!1}return!0},n.prototype.copy=function(){var t=new n(this._constant);return t._cellMap=this._cellMap.copy(),t},n.prototype.add=function(t){return this._constant+=t},n.prototype.insertSymbol=function(t,n){\"undefined\"==typeof n&&(n=1);var i=this._cellMap.setDefault(t,function(){return 0});e(i.second+=n)&&this._cellMap.erase(t)},n.prototype.insertRow=function(t,e){\"undefined\"==typeof e&&(e=1),this._constant+=t._constant*e;for(var n=t._cellMap,i=0,r=n.size();r>i;++i){var o=n.itemAt(i);this.insertSymbol(o.first,o.second*e)}},n.prototype.removeSymbol=function(t){this._cellMap.erase(t)},n.prototype.reverseSign=function(){this._constant=-this._constant;for(var t=this._cellMap,e=0,n=t.size();n>e;++e){var i=t.itemAt(e);i.second=-i.second}},n.prototype.solveFor=function(t){var e=this._cellMap,n=e.erase(t),i=-1/n.second;this._constant*=i;for(var r=0,o=e.size();o>r;++r)e.itemAt(r).second*=i},n.prototype.solveForEx=function(t,e){this.insertSymbol(t,-1),this.solveFor(e)},n.prototype.coefficientFor=function(t){var e=this._cellMap.find(t);return void 0!==e?e.second:0},n.prototype.substitute=function(t,e){var n=this._cellMap.erase(t);void 0!==n&&this.insertRow(e,n.second)},n}()}(i||(i={})),t.kiwi=i}.apply(t,arguments)})}(this),i(\"common/canvas_template\",[],function(){var t=function(t){var e=function(t){\"undefined\"==typeof t&&null==t&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,i=function(e){\"undefined\"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){this.map&&i(e('\\n<div class=\"bokeh_gmap\"></div>\\n')),i(e(\"\\n<canvas class='bokeh_canvas'></canvas>\"))}.call(this),t.join(\"\")}.call(function(){var n,i={escape:function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")},safe:e};for(n in t)i[n]=t[n];return i}())};return t}),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"common/continuum_view\",[\"underscore\",\"backbone\"],function(n,i){var r,o,s,a;return o=function(i){function r(){return s=r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.initialize=function(t){return n.has(t,\"id\")?void 0:this.id=n.uniqueId(\"ContinuumView\")},r.prototype.bind_bokeh_events=function(){return\"pass\"},r.prototype.delegateEvents=function(t){return r.__super__.delegateEvents.call(this,t)},r.prototype.remove=function(){var e,i,o;if(n.has(this,\"eventers\")){o=this.eventers;for(e in o)t.call(o,e)&&(i=o[e],i.off(null,null,this))}return this.trigger(\"remove\",this),r.__super__.remove.call(this)},r.prototype.mget=function(){return this.model.get.apply(this.model,arguments)},r.prototype.mset=function(){return this.model.set.apply(this.model,arguments)},r.prototype.render_end=function(){return\"pass\"},r}(i.View),r=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.attributes={\"class\":\"bk-closewrapper\"},n.prototype.delegateEvents=function(t){return n.__super__.delegateEvents.call(this,t)},n.prototype.events={\"click .bk-close\":\"close\"},n.prototype.close=function(){return this.view.remove(),this.remove()},n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.view=t.view,this.render()},n.prototype.render=function(){return this.view.$el.detach(),this.$el.empty(),this.$el.html(\"<a href='#' class='bk-close'>[x]</a>\"),this.$el.append(this.view.$el)},n}(o),{View:o,CloseWrapper:r}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};i(\"common/has_properties\",[\"underscore\",\"backbone\",\"require\",\"./base\",\"./logging\"],function(i,r,o,s,a){var l,c,u;return c=a.logger,u=function(t){var e;return i.isObject(t)?(e=i.keys(t).sort(),2===e.length&&\"id\"===e[0]&&\"type\"===e[1]):!1},l=function(r){function s(e,n){this.rpc=t(this.rpc,this),this.resolve_ref=t(this.resolve_ref,this),this.convert_to_ref=t(this.convert_to_ref,this);var r;r=e||{},n||(n={}),this.cid=i.uniqueId(\"c\"),this.attributes={},n.collection&&(this.collection=n.collection),n.parse&&(r=this.parse(r,n)||{}),r=i.defaults({},r,i.result(this,\"defaults\")),this.set(r,n),this.changed={},this._base=!1,this.properties={},this.property_cache={},i.has(r,this.idAttribute)||(this.id=i.uniqueId(this.type),this.attributes[this.idAttribute]=this.id),n.defer_initialization||this.initialize.apply(this,arguments)}return n(s,r),s.prototype.toString=function(){return\"\"+this.type+\"(\"+this.id+\")\"},s.prototype.destroy=function(t){return s.__super__.destroy.call(this,t),this.stopListening()},s.prototype.isNew=function(){return!1},s.prototype.set_obj=function(t,n,r){var o,s;i.isObject(t)||null===t?(o=t,r=n):(o={},o[t]=n);for(t in o)e.call(o,t)&&(s=o[t],o[t]=this.convert_to_ref(s));return this.set(o,r)},s.prototype.set=function(t,n,r){var o,a,l,c,u;i.isObject(t)||null===t?(o=t,r=n):(o={},o[t]=n),a=[];for(t in o)e.call(o,t)&&(l=o[t],i.has(this,\"properties\")&&i.has(this.properties,t)&&this.properties[t].setter&&(this.properties[t].setter.call(this,l,t),a.push(t)));if(!i.isEmpty(a))for(o=i.clone(o),c=0,u=a.length;u>c;c++)t=a[c],delete o[t];return i.isEmpty(o)?void 0:s.__super__.set.call(this,o,r)},s.prototype.convert_to_ref=function(t){return i.isArray(t)?i.map(t,this.convert_to_ref):t instanceof s?t.ref():void 0},s.prototype.add_dependencies=function(t,e,n){var r,o,s,a,l;for(i.isArray(n)||(n=[n]),o=this.properties[t],o.dependencies=o.dependencies.concat({obj:e,fields:n}),l=[],s=0,a=n.length;a>s;s++)r=n[s],l.push(this.listenTo(e,\"change:\"+r,o.callbacks.changedep));return l},s.prototype.register_setter=function(t,e){var n;return n=this.properties[t],n.setter=e},s.prototype.register_property=function(t,e,n){var r,o,s,a=this;return i.isUndefined(n)&&(n=!0),i.has(this.properties,t)&&this.remove_property(t),r=function(){return a.trigger(\"changedep:\"+t)},s=function(){var e,n,i;return e=!0,o.use_cache&&(i=a.get_cache(t),a.clear_cache(t),n=a.get(t),e=n!==i),e?(a.trigger(\"change:\"+t,a,a.get(t)),a.trigger(\"change\",a)):void 0},o={getter:e,dependencies:[],use_cache:n,setter:null,callbacks:{changedep:r,propchange:s}},this.properties[t]=o,this.listenTo(this,\"changedep:\"+t,o.callbacks.propchange),o},s.prototype.remove_property=function(t){var e,n,i,r,o,s,a,l,c,u;for(o=this.properties[t],n=o.dependencies,s=0,l=n.length;l>s;s++)for(e=n[s],r=e.obj,u=e.fields,a=0,c=u.length;c>a;a++)i=u[a],r.off(\"change:\"+i,o.callbacks.changedep,this);return this.off(\"changedep:\"+e),delete this.properties[t],o.use_cache?this.clear_cache(t):void 0},s.prototype.has_cache=function(t){return i.has(this.property_cache,t)},s.prototype.add_cache=function(t,e){return this.property_cache[t]=e},s.prototype.clear_cache=function(t){return delete this.property_cache[t]},s.prototype.get_cache=function(t){return this.property_cache[t]},s.prototype.get=function(t,e){var n;return null==e&&(e=!0),i.has(this.properties,t)?this._get_prop(t):(n=s.__super__.get.call(this,t),e?this.resolve_ref(n):n)},s.prototype._get_prop=function(t){var e,n,i;return i=this.properties[t],i.use_cache&&this.has_cache(t)?this.property_cache[t]:(n=i.getter,e=n.apply(this,[t]),this.properties[t].use_cache&&this.add_cache(t,e),e)},s.prototype.ref=function(){return{type:this.type,id:this.id}},s.prototype.resolve_ref=function(t){var e;return i.isUndefined(t)?t:i.isArray(t)?function(){var n,i,r;for(r=[],n=0,i=t.length;i>n;n++)e=t[n],r.push(this.resolve_ref(e));return r}.call(this):u(t)?t.type===this.type&&t.id===this.id?this:this.get_base().Collections(t.type).get(t.id):t},s.prototype.get_base=function(){return this._base||(this._base=o(\"./base\")),this._base},s.prototype.url=function(){var t,e;return t=this.get(\"doc\"),null==t&&c.error(\"unset 'doc' in \"+this),e=this.get_base().Config.prefix+\"bokeh/bb/\"+t+\"/\"+this.type+\"/\",this.isNew()?e:e+this.get(\"id\")+\"/\"},s.prototype.sync=function(t,e,n){return n.success(e.attributes,null,{})},s.prototype.defaults=function(){return{}},s.prototype.rpc=function(t,e,n){var i,r,o,s,a,l,c;if(s=this.get_base().Config.prefix,r=this.get(\"doc\"),null==r)throw new Error(\"Unset 'doc' in \"+this);return o=this.get(\"id\"),l=this.type,c=\"\"+s+\"bokeh/bb/rpc/\"+r+\"/\"+l+\"/\"+o+\"/\"+t+\"/\",i={args:e,kwargs:n},a=$.ajax({type:\"POST\",url:c,data:JSON.stringify(i),contentType:\"application/json\",xhrFields:{withCredentials:!0}})},s}(r.Model)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"range/range1d\",[\"underscore\",\"backbone\",\"common/has_properties\"],function(t,n,i){var r,o,s,a;return r=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Range1d\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.register_property(\"min\",function(){return Math.min(this.get(\"start\"),this.get(\"end\"))},!0),this.add_dependencies(\"min\",this,[\"start\",\"end\"]),this.register_property(\"max\",function(){return Math.max(this.get(\"start\"),this.get(\"end\"))},!0),this.add_dependencies(\"max\",this,[\"start\",\"end\"])},n.prototype.defaults=function(){return{start:0,end:1}},n}(i),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"common/layout_box\",[\"underscore\",\"backbone\",\"kiwi\",\"./has_properties\",\"range/range1d\"],function(t,n,i,r,o){var s,a,l,c,u,h,p,d,f,_;return d=i.Variable,l=i.Expression,s=i.Constraint,a=i.Operator.Eq,u=i.Operator.Le,c=i.Operator.Ge,h=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"LayoutBox\",n.prototype.initialize=function(t,e){var r,u,h,p,f,_,g,m,y=this;for(n.__super__.initialize.call(this,t,e),this.solver=this.get(\"solver\"),this.var_constraints={},g=[\"top\",\"left\",\"width\",\"height\"],h=0,f=g.length;f>h;h++)u=g[h],r=\"_\"+u,this[r]=new d(u),this.register_property(u,this._get_var,!1),this.register_setter(u,this._set_var),this.solver.add_edit_variable(this[r],i.Strength.strong);for(m=[\"right\",\"bottom\"],p=0,_=m.length;_>p;p++)u=m[p],r=\"_\"+u,this[r]=new d(u),this.register_property(u,this._get_var,!1);return this.solver.add_constraint(new s(new l(this._top),c)),this.solver.add_constraint(new s(new l(this._bottom),c)),this.solver.add_constraint(new s(new l(this._left),c)),this.solver.add_constraint(new s(new l(this._right),c)),this.solver.add_constraint(new s(new l(this._width),c)),this.solver.add_constraint(new s(new l(this._height),c)),this.solver.add_constraint(new s(new l(this._left,this._width,[-1,this._right]),a)),this.solver.add_constraint(new s(new l(this._bottom,this._height,[-1,this._top]),a)),this._h_range=new o.Model({start:this.get(\"left\"),end:this.get(\"left\")+this.get(\"width\")}),this.register_property(\"h_range\",function(){return y._h_range.set(\"start\",y.get(\"left\")),y._h_range.set(\"end\",y.get(\"left\")+y.get(\"width\")),y._h_range},!1),this.add_dependencies(\"h_range\",this,[\"left\",\"width\"]),this._v_range=new o.Model({start:this.get(\"bottom\"),end:this.get(\"bottom\")+this.get(\"height\")}),this.register_property(\"v_range\",function(){return y._v_range.set(\"start\",y.get(\"bottom\")),y._v_range.set(\"end\",y.get(\"bottom\")+y.get(\"height\")),y._v_range},!1),this.add_dependencies(\"v_range\",this,[\"bottom\",\"height\"]),this._aspect_constraint=null,this.register_property(\"aspect\",function(){return y.get(\"width\")/y.get(\"height\")},!0),this.register_setter(\"aspect\",this._set_aspect),this.add_dependencies(\"aspect\",this,[\"width\",\"height\"])},n.prototype._set_var=function(t,e){var n,i;return i=this[\"_\"+e],\"number\"==typeof t?this.solver.suggest_value(i,t):\"string\"!=typeof t?(n=new s(new l(i,[-1,t]),a),null==this.var_constraints[e]&&(this.var_constraints[e]=[]),this.var_constraints[e].push(n),this.solver.add_constraint(n)):void 0},n.prototype._get_var=function(t){return this[\"_\"+t].value()},n.prototype._set_aspect=function(t){var e;return null!=this._aspect_constraint?(this.solver.remove_constraint(this.aspect_constraint),e=new s(new l([t,this._height],[-1,this._width]),a),this._aspect_constraint=e,this.solver.add_constraint(e)):void 0},n.prototype.defaults=function(){return{top_strength:i.Strength.strong,bottom_strength:i.Strength.strong,left_strength:i.Strength.strong,right_strength:i.Strength.strong,width_strength:i.Strength.strong,height_strength:i.Strength.strong}},n}(r),p=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=h,n}(n.Collection),{Model:h,Collection:new p}})}.call(this),function(){i(\"common/solver\",[\"backbone\",\"underscore\",\"kiwi\"],function(t,e,n){var i;return i=function(){function t(){this.solver=new n.Solver}return t.prototype.update_variables=function(t){return null==t&&(t=!0),this.solver.updateVariables(),t?this.trigger(\"layout_update\"):void 0},t.prototype.add_constraint=function(t){return this.solver.addConstraint(t)},t.prototype.remove_constraint=function(t){return this.solver.removeConstraint(t)},t.prototype.add_edit_variable=function(t,e){return null==e&&(e=n.Strength.strong),this.solver.addEditVariable(t,e)},t.prototype.suggest_value=function(t,e){return this.solver.suggestValue(t,e)},t}(),e.extend(i.prototype,t.Events),i})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};i(\"common/canvas\",[\"backbone\",\"kiwi\",\"./canvas_template\",\"./continuum_view\",\"./layout_box\",\"./logging\",\"./solver\"],function(e,i,r,o,s,a,l){var c,u,h,p,d,f,_,g,m,y;return f=i.Expression,p=i.Constraint,d=i.Operator.Eq,_=a.logger,u=function(e){function i(){return this._mousemove=t(this._mousemove,this),this._mousedown=t(this._mousedown,this),g=i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.className=\"bokeh plotview bokeh_canvas_wrapper\",i.prototype.template=r,i.prototype.events={mousemove:\"_mousemove\",mousedown:\"_mousedown\"},i.prototype.initialize=function(t){var e,n,r;return i.__super__.initialize.call(this,t),n={map:this.mget(\"map\")},e=this.template(n),this.$el.html(e),this.canvas_wrapper=this.$el,this.canvas=this.$(\"canvas.bokeh_canvas\"),this.map_div=null!=(r=this.$(\".bokeh_gmap\"))?r:null,_.debug(\"CanvasView initialized\")},i.prototype.render=function(t){var e,n,i,r,o;return null==t&&(t=!1),this.model.new_bounds||t?(this.ctx=this.canvas[0].getContext(\"2d\"),this.mget(\"use_hidpi\")?(n=window.devicePixelRatio||1,e=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,r=n/e):r=1,o=this.mget(\"width\"),i=this.mget(\"height\"),this.canvas.width=o*this.dpi_ratio,this.canvas.height=i*this.dpi_ratio,this.$el.attr(\"style\",\"width:\"+o+\"px; height:\"+i+\"px\"),this.canvas.attr(\"style\",\"width:\"+o+\"px;\"),this.canvas.attr(\"style\",\"height:\"+i+\"px;\"),this.canvas.attr(\"width\",o*r).attr(\"height\",i*r),this.$el.attr(\"width\",o).attr(\"height\",i),this.ctx.scale(r,r),this.ctx.translate(.5,.5),this._fixup_line_dash(this.ctx),this._fixup_line_dash_offset(this.ctx),this._fixup_image_smoothing(this.ctx),this._fixup_measure_text(this.ctx),this.model.new_bounds=!1):void 0\n",
" },i.prototype._fixup_line_dash=function(t){return t.setLineDash||(t.setLineDash=function(e){return t.mozDash=e,t.webkitLineDash=e}),t.getLineDash?void 0:t.getLineDash=function(){return t.mozDash}},i.prototype._fixup_line_dash_offset=function(t){return t.setLineDashOffset=function(e){return t.lineDashOffset=e,t.mozDashOffset=e,t.webkitLineDashOffset=e},t.getLineDashOffset=function(){return t.mozDashOffset}},i.prototype._fixup_image_smoothing=function(t){return t.setImageSmoothingEnabled=function(e){return t.imageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.oImageSmoothingEnabled=e,t.webkitImageSmoothingEnabled=e},t.getImageSmoothingEnabled=function(){var e;return null!=(e=t.imageSmoothingEnabled)?e:!0}},i.prototype._fixup_measure_text=function(t){return t.measureText&&null==t.html5MeasureText?(t.html5MeasureText=t.measureText,t.measureText=function(e){var n;return n=t.html5MeasureText(e),n.ascent=1.6*t.html5MeasureText(\"m\").width,n}):void 0},i.prototype._mousedown=function(t){var e,n,i,r,o;for(r=this.mget(\"mousedown_callbacks\"),o=[],n=0,i=r.length;i>n;n++)e=r[n],o.push(e(t,t.layerX,t.layerY));return o},i.prototype._mousemove=function(t){var e,n,i,r,o;for(r=this.mget(\"mousemove_callbacks\"),o=[],n=0,i=r.length;i>n;n++)e=r[n],o.push(e(t,t.layerX,t.layerY));return o},i}(o.View),c=function(t){function e(){return m=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.type=\"Canvas\",e.prototype.default_view=u,e.prototype.initialize=function(t,n){var i;return i=new l,this.set(\"solver\",i),e.__super__.initialize.call(this,t,n),this.new_bounds=!0,i.add_constraint(new p(new f(this._left),d)),i.add_constraint(new p(new f(this._bottom),d)),this._set_dims([this.get(\"canvas_width\"),this.get(\"canvas_height\")]),_.debug(\"Canvas initialized\")},e.prototype.vx_to_sx=function(t){return t},e.prototype.vy_to_sy=function(t){return this.get(\"height\")-t},e.prototype.v_vx_to_sx=function(t){var e,n,i,r;for(e=i=0,r=t.length;r>i;e=++i)n=t[e],t[e]=n;return t},e.prototype.v_vy_to_sy=function(t){var e,n,i,r,o;for(e=this.get(\"height\"),n=r=0,o=t.length;o>r;n=++r)i=t[n],t[n]=e-i;return t},e.prototype.sx_to_vx=function(t){return t},e.prototype.sy_to_vy=function(t){return this.get(\"height\")-t},e.prototype.v_sx_to_vx=function(t){var e,n,i,r;for(e=i=0,r=t.length;r>i;e=++i)n=t[e],t[e]=n;return t},e.prototype.v_sy_to_vy=function(t){var e,n,i,r,o;for(e=this.get(\"height\"),n=r=0,o=t.length;o>r;n=++r)i=t[n],t[n]=e-i;return t},e.prototype._set_width=function(t,e){return null==e&&(e=!0),null!=this._width_constraint&&this.solver.remove_constraint(this._width_constraint),this._width_constraint=new p(new f(this._width,-t),d),this.solver.add_constraint(this._width_constraint),e&&this.solver.update_variables(),this.new_bounds=!0},e.prototype._set_height=function(t,e){return null==e&&(e=!0),null!=this._height_constraint&&this.solver.remove_constraint(this._height_constraint),this._height_constraint=new p(new f(this._height,-t),d),this.solver.add_constraint(this._height_constraint),e&&this.solver.update_variables(),this.new_bounds=!0},e.prototype._set_dims=function(t){return this._set_width(t[0],!1),this._set_height(t[1],!1),this.solver.update_variables()},e.prototype.defaults=function(){return{width:300,height:300,map:!1,mousedown_callbacks:[],mousemove_callbacks:[],use_hidpi:!0}},e.prototype.display_defaults=function(){return{}},e}(s.Model),h=function(t){function e(){return y=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=c,e}(e.Collection),{Model:c,Collection:new h}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"mapper/linear_mapper\",[\"backbone\",\"common/has_properties\"],function(t,n){var i,r,o,s;return i=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.register_property(\"mapper_state\",this._mapper_state,!0),this.add_dependencies(\"mapper_state\",this,[\"source_range\",\"target_range\"]),this.add_dependencies(\"mapper_state\",this.get(\"source_range\"),[\"start\",\"end\"]),this.add_dependencies(\"mapper_state\",this.get(\"target_range\"),[\"start\",\"end\"])},n.prototype.map_to_target=function(t){var e,n,i;return i=this.get(\"mapper_state\"),n=i[0],e=i[1],n*t+e},n.prototype.v_map_to_target=function(t){var e,n,i,r,o,s,a,l;for(l=this.get(\"mapper_state\"),r=l[0],n=l[1],i=new Float64Array(t.length),e=s=0,a=t.length;a>s;e=++s)o=t[e],i[e]=r*o+n;return i},n.prototype.map_from_target=function(t){var e,n,i;return i=this.get(\"mapper_state\"),n=i[0],e=i[1],(t-e)/n},n.prototype.v_map_from_target=function(t){var e,n,i,r,o,s,a,l;for(l=this.get(\"mapper_state\"),r=l[0],n=l[1],i=new Float64Array(t.length),e=s=0,a=t.length;a>s;e=++s)o=t[e],i[e]=(o-n)/r;return i},n.prototype._mapper_state=function(){var t,e,n,i,r,o;return i=this.get(\"source_range\").get(\"start\"),n=this.get(\"source_range\").get(\"end\"),o=this.get(\"target_range\").get(\"start\"),r=this.get(\"target_range\").get(\"end\"),e=(r-o)/(n-i),t=-(e*i)+o,[e,t]},n}(n),r=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(t.Collection),{Model:i,Collection:new r}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"mapper/log_mapper\",[\"backbone\",\"common/has_properties\"],function(t,n){var i,r,o,s;return i=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.register_property(\"mapper_state\",this._mapper_state,!0),this.add_dependencies(\"mapper_state\",this,[\"source_range\",\"target_range\"]),this.add_dependencies(\"mapper_state\",this.get(\"source_range\"),[\"start\",\"end\"]),this.add_dependencies(\"mapper_state\",this.get(\"target_range\"),[\"start\",\"end\"])},n.prototype.map_to_target=function(t){var e,n,i,r,o,s,a,l;if(l=this.get(\"mapper_state\"),a=l[0],o=l[1],i=l[2],n=l[3],r=0,s=0,0===i)r=0;else try{if(r=(Math.log(t)-n)/i,isNaN(r))throw\"NaN\";if(isFinite(r)===!1)throw\"Infinite\"}catch(c){e=c,r=0}return s=r*a+o},n.prototype.v_map_to_target=function(t){var e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y;if(y=this.get(\"mapper_state\"),p=y[0],u=y[1],o=y[2],r=y[3],s=new Float64Array(t.length),h=new Float64Array(t.length),0===o)s=t.map(function(t){return 0*t});else try{for(l=t.map(function(t){return 0>=t}),c=t.map(function(t){return isNaN(t)}),a=function(){var e,i,r;for(r=[],n=e=0,i=t.length;i>=0?i>e:e>i;n=i>=0?++e:--e)r.push(l[n]|c[n]);return r}(),a=a.reduce(function(t,e){return t||e}),1===a&&(t[a]=1),s=t.map(function(t){return(Math.log(t)-r)/o}),i=f=0,g=s.length;g>f;i=++f){if(d=s[i],isNaN(s[i]))throw\"NaN\";if(isFinite(s[i])===!1)throw\"Infinite\"}}catch(v){e=v,s=t.map(function(t){return 0*t})}for(i=_=0,m=t.length;m>_;i=++_)d=t[i],h[i]=s[i]*p+u;return h},n.prototype.map_from_target=function(t){var e,n,i,r,o,s;return s=this.get(\"mapper_state\"),o=s[0],r=s[1],n=s[2],e=s[3],i=(t-r)/o,i=Math.exp(n*i+e)},n.prototype.v_map_from_target=function(t){var e,n,i,r,o,s;return s=this.get(\"mapper_state\"),o=s[0],r=s[1],n=s[2],e=s[3],i=t.map(function(t){return(t-r)/o}),i=i.map(function(t){return Math.exp(n*t+e)})},n.prototype._get_safe_scale=function(t,e){var n,i,r;return r=0>t?0:t,n=0>e?0:e,r===n&&(0===r?(r=1,n=10):(i=Math.log(r)/Math.log(10),r=Math.pow(10,Math.floor(i)),n=Math.ceil(i)!==Math.floor(i)?Math.pow(10,Math.ceil(i)):Math.pow(10,Math.ceil(i)+1))),[r,n]},n.prototype._mapper_state=function(){var t,e,n,i,r,o,s,a,l,c,u,h;return a=this.get(\"source_range\").get(\"start\"),s=this.get(\"source_range\").get(\"end\"),u=this.get(\"target_range\").get(\"start\"),c=this.get(\"target_range\").get(\"end\"),o=c-u,h=this._get_safe_scale(a,s),l=h[0],t=h[1],0===l?(n=Math.log(t),e=0):(n=Math.log(t)-Math.log(l),e=Math.log(l)),r=o,i=u,[r,i,n,e]},n}(n),r=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(t.Collection),{Model:i,Collection:new r}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"mapper/categorical_mapper\",[\"backbone\",\"./linear_mapper\"],function(t,n){var i,r,o,s;return i=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.map_to_target=function(t){var e,i,r,o;return\"number\"==typeof t?n.__super__.map_to_target.call(this,t):(i=this.get(\"source_range\").get(\"factors\"),t.indexOf(\":\")>=0?(o=t.split(\":\"),e=o[0],r=o[1],r=parseFloat(r),n.__super__.map_to_target.call(this,i.indexOf(e)+.5+r)):n.__super__.map_to_target.call(this,i.indexOf(t)+1))},n.prototype.v_map_to_target=function(t){var e,i,r,o,s,a,l,c,u;if(\"number\"==typeof t[0])return n.__super__.v_map_to_target.call(this,t);for(i=this.get(\"source_range\").get(\"factors\"),s=Array(t.length),r=l=0,c=t.length;c>=0?c>l:l>c;r=c>=0?++l:--l)a=t[r],a.indexOf(\":\")>=0?(u=a.split(\":\"),e=u[0],o=u[1],o=parseFloat(o),s[r]=i.indexOf(e)+.5+o):s[r]=i.indexOf(a)+1;return n.__super__.v_map_to_target.call(this,s)},n.prototype.map_from_target=function(t){var e;return t=n.__super__.map_from_target.call(this,t)-.5,e=this.get(\"source_range\").get(\"factors\"),e[Math.floor(t)]},n.prototype.v_map_from_target=function(t){var e,i,r,o,s;for(r=n.__super__.v_map_from_target.call(this,t),e=this.get(\"source_range\").get(\"factors\"),i=o=0,s=r.length;s>=0?s>o:o>s;i=s>=0?++o:--o)r[i]=e[Math.floor(r[i]-.5)];return r},n}(n.Model),r=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(t.Collection),{Model:i,Collection:new r}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"mapper/grid_mapper\",[\"backbone\",\"common/has_properties\"],function(t,n){var i,r,o,s;return i=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.map_to_target=function(t,e){var n,i;return n=this.get(\"domain_mapper\").map_to_target(t),i=this.get(\"codomain_mapper\").map_to_target(e),[n,i]},n.prototype.v_map_to_target=function(t,e){var n,i;return n=this.get(\"domain_mapper\").v_map_to_target(t),i=this.get(\"codomain_mapper\").v_map_to_target(e),[n,i]},n.prototype.map_from_target=function(t,e){var n,i;return n=this.get(\"domain_mapper\").map_from_target(t),i=this.get(\"codomain_mapper\").map_from_target(e),[n,i]},n.prototype.v_map_from_target=function(t,e){var n,i;return n=this.get(\"domain_mapper\").v_map_from_target(t),i=this.get(\"codomain_mapper\").v_map_from_target(e),[n,i]},n}(n),r=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(t.Collection),{Model:i,Collection:new r}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"common/cartesian_frame\",[\"underscore\",\"backbone\",\"./layout_box\",\"./logging\",\"mapper/linear_mapper\",\"mapper/log_mapper\",\"mapper/categorical_mapper\",\"mapper/grid_mapper\"],function(t,n,i,r,o,s,a,l){var c,u,h,p,d;return h=r.logger,c=function(n){function i(){return p=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"CartesianFrame\",i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e),this.register_property(\"x_ranges\",function(){return this._get_ranges(\"x\")},!0),this.add_dependencies(\"x_ranges\",this,[\"x_range\",\"extra_x_ranges\"]),this.register_property(\"y_ranges\",function(){return this._get_ranges(\"y\")},!0),this.add_dependencies(\"y_ranges\",this,[\"y_range\",\"extra_y_ranges\"]),this.register_property(\"x_mappers\",function(){return this._get_mappers(\"x\",this.get(\"x_ranges\"),this.get(\"h_range\"))},!0),this.add_dependencies(\"x_ranges\",this,[\"x_ranges\",\"h_range\"]),this.register_property(\"y_mappers\",function(){return this._get_mappers(\"y\",this.get(\"y_ranges\"),this.get(\"v_range\"))},!0),this.add_dependencies(\"y_ranges\",this,[\"y_ranges\",\"v_range\"]),this.register_property(\"mapper\",function(){return new l.Model({domain_mapper:this.get(\"x_mapper\"),codomain_mapper:this.get(\"y_mapper\")})},!0),this.add_dependencies(\"mapper\",this,[\"x_mapper\",\"y_mapper\"]),this.listenTo(this.solver,\"layout_update\",this._update_mappers)},i.prototype.map_to_screen=function(e,n,i,r,o,s,a){var l,c,u,h;return null==s&&(s=\"default\"),null==a&&(a=\"default\"),\"screen\"===n?t.isArray(e)?u=e.slice(0):(u=new Float64Array(e.length),u.set(e)):u=this.get(\"x_mappers\")[s].v_map_to_target(e),\"screen\"===r?t.isArray(i)?h=i.slice(0):(h=new Float64Array(i.length),h.set(i)):h=this.get(\"y_mappers\")[a].v_map_to_target(i),l=o.v_vx_to_sx(u),c=o.v_vy_to_sy(h),[l,c]},i.prototype.map_from_screen=function(e,n,i,r){var o,s,a,l,c;return t.isArray(e)?o=e.slice(0):(o=new Float64Array(e.length),o.set(e)),t.isArray(n)?s=n.slice(0):(s=new Float64Array(n.length),s.set(n)),e=r.v_sx_to_vx(o),n=r.v_sy_to_vy(s),\"screen\"===i?(a=e,l=n):(c=this.mapper.v_map_from_target(e,n),a=c[0],l=c[1]),[a,l]},i.prototype._get_ranges=function(t){var e,n,i,r;if(r={},r[\"default\"]=this.get(\"\"+t+\"_range\"),e=this.get(\"extra_\"+t+\"_ranges\"),null!=e)for(n in e)i=e[n],r[n]=this.resolve_ref(i);return r},i.prototype._get_mappers=function(t,e,n){var i,r,l,c;r={};for(l in e){if(c=e[l],\"Range1d\"===c.type||\"DataRange1d\"===c.type)i=\"log\"===this.get(\"\"+t+\"_mapper_type\")?s.Model:o.Model;else{if(\"FactorRange\"!==c.type)return h.warn(\"unknown range type for range '\"+l+\"': \"+c),null;i=a.Model}r[l]=new i({source_range:c,target_range:n})}return r},i.prototype._update_mappers=function(){var t,e,n,i,r;n=this.get(\"x_mappers\");for(e in n)t=n[e],t.set(\"target_range\",this.get(\"h_range\"));i=this.get(\"y_mappers\"),r=[];for(e in i)t=i[e],r.push(t.set(\"target_range\",this.get(\"v_range\")));return r},i.prototype.defaults=function(){return{extra_x_ranges:{},extra_y_ranges:{}}},i}(i.Model),u=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=c,n}(n.Collection),{Model:c,Collection:new u}})}.call(this),function(){i(\"common/build_views\",[\"underscore\"],function(t){var e;return e=function(e,n,i,r){var o,s,a,l,c,u,h,p,d,f,_;for(null==r&&(r=[]),o=[],c=t.filter(n,function(n){return!t.has(e,n.id)}),s=p=0,f=c.length;f>p;s=++p)l=c[s],h=t.extend({},i,{model:l}),e[l.id]=s<r.length?new r[s](h):new l.default_view(h),o.push(e[l.id]);for(u=t.difference(t.keys(e),t.pluck(n,\"id\")),d=0,_=u.length;_>d;d++)a=u[d],e[a].remove(),delete e[a];return o}})}.call(this),function(){i(\"common/plot_utils\",[],function(){var t,e,n,i;return t=[\"image\",\"underlay\",\"glyph\",\"overlay\",\"annotation\",\"tool\"],i=function(t){return t()},e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||i,n=function(t,n){var i,r,o,s,a,l,c,u;return u=[null,null,null,null],r=u[0],i=u[1],c=u[2],l=u[3],a=0,s=!1,o=function(){return a=new Date,c=null,s=!1,l=t.apply(r,i)},function(){var t,u;return t=new Date,u=n-(t-a),r=this,i=arguments,0>=u&&!s?(clearTimeout(c),s=!0,e(o)):c||(c=setTimeout(function(){return e(o)},u)),l}},{LEVELS:t,throttle_animation:n}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"common/has_parent\",[\"underscore\",\"./has_properties\"],function(t,n){var i,r;return i=function(i){function o(){return r=o.__super__.constructor.apply(this,arguments)}return e(o,i),o.prototype.initialize=function(e,i){return o.__super__.initialize.call(this,e,i),this._parent=n.prototype.get.apply(this,[\"parent\"]),this._display_defaults={},null!=this.display_defaults?this._display_defaults=t.isFunction(this.display_defaults)?this.display_defaults():this.display_defaults:void 0},o.prototype.get=function(e){var n;return\"parent\"===e?this._parent:(n=o.__super__.get.call(this,e),t.isUndefined(n)?this._parent&&t.indexOf(this._parent.parent_properties,e)>=0&&(n=this._parent.get(e),!t.isUndefined(n))?n:this._display_defaults[e]:n)},o.prototype.display_defaults={},o}(n)})}.call(this),i(\"common/plot_template\",[],function(){var t=function(t){var e=function(t){\"undefined\"==typeof t&&null==t&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,i=function(e){\"undefined\"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){i(e(\"<div class='bokeh_canvas_wrapper_outer'>\\n\t<table>\\n\t\t<tr>\\n\t\t\t<td></td>\\n\t\t\t<td class='bk-plot-above'></td>\\n\t\t\t<td></td>\\n\t\t</tr>\\n\t\t<tr>\\n\t\t\t<td class=\\\"bk-plot-left\\\"></td>\\n\t\t\t<td class='bk-plot-canvas-wrapper'></td>\\n\t\t\t<td class=\\\"bk-plot-right\\\"></td>\\n\t\t</tr>\\n\t\t<tr>\\n\t\t\t<td></td>\\n\t\t\t<td class='bk-plot-below'></td>\\n\t\t\t<td></td>\\n\t\t</tr>\\n\t</table>\\n \\n\\n</div>\\n\"))}.call(this),t.join(\"\")}.call(function(){var n,i={escape:function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")},safe:e};for(n in t)i[n]=t[n];return i}())};return t}),i(\"common/toolbar_template\",[],function(){var t=function(t){var e=function(t){\"undefined\"==typeof t&&null==t&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,i=function(e){\"undefined\"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){i(e('<div class=\\'bk-sidebar\\'>\\n\t<a href=\\'http://bokeh.pydata.org/\\' target=\\'_blank\\' class=\\'bk-logo bk-logo-small\\'/>\\n\t<div class=\\'bk-button-bar\\'>\\n\t\t<button class=\"bk-toolbar-button help\" title=\"Help\">\\n\t\t\t<img class=\"bk-btn-icon\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhDRjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhDRTIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTdFQUZCRjQ4NjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6QBYrgAAABb0lEQVR42ozTwUeEQRjH8W3bKEs6JkpESqfVpS4RHaJL2b2sLepUh3To0KFVIjp0iegQUdG21WmVvUWsKBGRlIiU7Q+IVaT0ffi9eY33peFj7cw8zzvzzEzV7v5hxGltGEUvutR3hwvs4ck/OeoET6KACrJolaz6Cprz12L6rcEOajGEFyfxtRxhDX0Yx5e3ggV8IqlgW/4J3vCKddRrLKm5894KOjGCHiVrwDZ+sKKvpRQ0pzkzuETeEqSxpT1aa8ezCmbyuEW3b0sVxaQtQT+mfINXGPT9T+n3xqnLKTYsQQseI8FtWnstYdEZs9o0eqdQZxUNSWD9YwHj36i2UyijOWQFVvmPkOR2P8qW4AwDIQma0BEyZjGlqCo9gXjA1+0ePAQExxWTtwT3KOqG/bfZ3GOL9W7ikrIe6FSsvQdswcZymrvsf0xWpIzqYauZRcIXmFBfUUea8Qobc5a2qQtiz3nVec7nGHaf868AAwDKW1RIPmvhEQAAAABJRU5ErkJggg==\">\\n\t\t\t<span class=\"tip\">\\n\t\t\t\tFor Pan tool, left click and drag.<br/><br/>\\n\t\t\t\tFor Wheel Zoom, hold shift and scroll or select the Wheel Zoom tool and scroll.<br/><br/>\\n\t\t\t\t<a href=\"http://bokeh.pydata.org\" target=\"_blank\">Learn More</a>\\n\t\t\t</span>\\n\t\t</button>\\n\t</div>\\n</div>'))}.call(this),t.join(\"\")}.call(function(){var n,i={escape:function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")},safe:e};for(n in t)i[n]=t[n];return i}())};return t}),function(){i(\"common/svg_colors\",[],function(){var t;return t={indianred:\"#CD5C5C\",lightcoral:\"#F08080\",salmon:\"#FA8072\",darksalmon:\"#E9967A\",lightsalmon:\"#FFA07A\",crimson:\"#DC143C\",red:\"#FF0000\",firebrick:\"#B22222\",darkred:\"#8B0000\",pink:\"#FFC0CB\",lightpink:\"#FFB6C1\",hotpink:\"#FF69B4\",deeppink:\"#FF1493\",mediumvioletred:\"#C71585\",palevioletred:\"#DB7093\",lightsalmon:\"#FFA07A\",coral:\"#FF7F50\",tomato:\"#FF6347\",orangered:\"#FF4500\",darkorange:\"#FF8C00\",orange:\"#FFA500\",gold:\"#FFD700\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",lemonchiffon:\"#FFFACD\",lightgoldenrodyellow:\"#FAFAD2\",papayawhip:\"#FFEFD5\",moccasin:\"#FFE4B5\",peachpuff:\"#FFDAB9\",palegoldenrod:\"#EEE8AA\",khaki:\"#F0E68C\",darkkhaki:\"#BDB76B\",lavender:\"#E6E6FA\",thistle:\"#D8BFD8\",plum:\"#DDA0DD\",violet:\"#EE82EE\",orchid:\"#DA70D6\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",mediumorchid:\"#BA55D3\",mediumpurple:\"#9370DB\",blueviolet:\"#8A2BE2\",darkviolet:\"#9400D3\",darkorchid:\"#9932CC\",darkmagenta:\"#8B008B\",purple:\"#800080\",indigo:\"#4B0082\",slateblue:\"#6A5ACD\",darkslateblue:\"#483D8B\",mediumslateblue:\"#7B68EE\",greenyellow:\"#ADFF2F\",chartreuse:\"#7FFF00\",lawngreen:\"#7CFC00\",lime:\"#00FF00\",limegreen:\"#32CD32\",palegreen:\"#98FB98\",lightgreen:\"#90EE90\",mediumspringgreen:\"#00FA9A\",springgreen:\"#00FF7F\",mediumseagreen:\"#3CB371\",seagreen:\"#2E8B57\",forestgreen:\"#228B22\",green:\"#008000\",darkgreen:\"#006400\",yellowgreen:\"#9ACD32\",olivedrab:\"#6B8E23\",olive:\"#808000\",darkolivegreen:\"#556B2F\",mediumaquamarine:\"#66CDAA\",darkseagreen:\"#8FBC8F\",lightseagreen:\"#20B2AA\",darkcyan:\"#008B8B\",teal:\"#008080\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",lightcyan:\"#E0FFFF\",paleturquoise:\"#AFEEEE\",aquamarine:\"#7FFFD4\",turquoise:\"#40E0D0\",mediumturquoise:\"#48D1CC\",darkturquoise:\"#00CED1\",cadetblue:\"#5F9EA0\",steelblue:\"#4682B4\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",lightblue:\"#ADD8E6\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",deepskyblue:\"#00BFFF\",dodgerblue:\"#1E90FF\",cornflowerblue:\"#6495ED\",mediumslateblue:\"#7B68EE\",royalblue:\"#4169E1\",blue:\"#0000FF\",mediumblue:\"#0000CD\",darkblue:\"#00008B\",navy:\"#000080\",midnightblue:\"#191970\",cornsilk:\"#FFF8DC\",blanchedalmond:\"#FFEBCD\",bisque:\"#FFE4C4\",navajowhite:\"#FFDEAD\",wheat:\"#F5DEB3\",burlywood:\"#DEB887\",tan:\"#D2B48C\",rosybrown:\"#BC8F8F\",sandybrown:\"#F4A460\",goldenrod:\"#DAA520\",darkgoldenrod:\"#B8860B\",peru:\"#CD853F\",chocolate:\"#D2691E\",saddlebrown:\"#8B4513\",sienna:\"#A0522D\",brown:\"#A52A2A\",maroon:\"#800000\",white:\"#FFFFFF\",snow:\"#FFFAFA\",honeydew:\"#F0FFF0\",mintcream:\"#F5FFFA\",azure:\"#F0FFFF\",aliceblue:\"#F0F8FF\",ghostwhite:\"#F8F8FF\",whitesmoke:\"#F5F5F5\",seashell:\"#FFF5EE\",beige:\"#F5F5DC\",oldlace:\"#FDF5E6\",floralwhite:\"#FFFAF0\",ivory:\"#FFFFF0\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lavenderblush:\"#FFF0F5\",mistyrose:\"#FFE4E1\",gainsboro:\"#DCDCDC\",lightgrey:\"#D3D3D3\",silver:\"#C0C0C0\",darkgray:\"#A9A9A9\",darkgrey:\"#A9A9A9\",gray:\"#808080\",grey:\"#808080\",dimgray:\"#696969\",dimgrey:\"#696969\",lightslategray:\"#778899\",lightslategrey:\"#778899\",slategray:\"#708090\",darkslategray:\"#2F4F4F\",darkslategrey:\"#2F4F4F\",black:\"#000000\"}})}.call(this),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};i(\"renderer/properties\",[\"underscore\",\"common/logging\",\"common/svg_colors\"],function(e,i,r){var o,s,a,l,c,u;return l=i.logger,c=function(){function n(){}return n.prototype.source_v_select=function(t,e){var n,i,r,o,s,a,c;if(i=this,!(t in i))return l.warn(\"requested vector selection of unknown property '\"+t+\"' on objects\"),function(){var t,n,i,o;for(i=e.get_length(),o=[],t=0,n=i.length;n>t;t++)r=i[t],o.push(null);return o}();if(o=i[t],null!=o.field&&o.field in e.get(\"data\"))return e.get_column(o.field);if(null!=i[t].value)n=i[t].value;else{if(t in e.get(\"data\"))return e.get_column(t);null!=i[t][\"default\"]&&(n=i[t][\"default\"])}for(s=[],r=a=0,c=e.get_length();c>=0?c>a:a>c;r=c>=0?++a:--a)s.push(n);return s},n.prototype.string=function(t,n,i){var r,o;return this[i]={},r=t.mget(i),null==r||(e.isString(r)?this[i][\"default\"]=r:l.warn(\"string property '\"+i+\"' given invalid default value: \"+r)),null!=n&&i in n?(o=n[i],e.isString(o)?this[i].value=o:e.isObject(o)?this[i]=e.extend(this[i],o):l.warn(\"string property '\"+i+\"' given invalid glyph value: \"+o)):void 0},n.prototype.number=function(t,n,i){var r,o,s,a;return this[i]={},r=t.mget(i),null==r||(e.isNumber(r)?this[i][\"default\"]=r:l.warn(\"number property '\"+i+\"' given invalid default value: \"+r)),s=null!=(a=t.mget(i+\"_units\"))?a:\"data\",null!=n&&i+\"_units\"in n&&(s=n[i+\"_units\"]),this[i].units=s,null!=n&&i in n?(o=n[i],e.isString(o)?this[i].field=o:e.isNumber(o)?this[i].value=o:e.isObject(o)?this[i]=e.extend(this[i],o):l.warn(\"number property '\"+i+\"' given invalid glyph value: \"+o)):void 0},n.prototype.color=function(t,n,i){var o,s;return this[i]={},o=t.mget(i),e.isUndefined(o)?this[i][\"default\"]=null:e.isString(o)&&(null!=r[o]||\"#\"===o.substring(0,1))||e.isNull(o)?this[i][\"default\"]=o:l.warn(\"color property '\"+i+\"' given invalid default value: \"+o),null!=n&&i in n?(s=n[i],e.isNull(s)?this[i].value=null:e.isString(s)?null!=r[s]||\"#\"===s.substring(0,1)?this[i].value=s:this[i].field=s:e.isObject(s)?this[i]=e.extend(this[i],s):l.warn(\"color property '\"+i+\"' given invalid glyph value: \"+s)):void 0},n.prototype.array=function(t,n,i){var r,o,s,a;return this[i]={},r=t.mget(i),null==r||(e.isArray(r)?this[i][\"default\"]=r:l.warn(\"array property '\"+i+\"' given invalid default value: \"+r)),s=null!=(a=t.mget(i+\"_units\"))?a:\"data\",null!=n&&i+\"_units\"in n&&(s=n[i+\"_units\"]),this[i].units=s,null!=n&&i in n?(o=n[i],e.isString(o)?this[i].field=o:e.isArray(o)?this[i].value=o:e.isObject(o)?this[i]=e.extend(this[i],o):l.warn(\"array property '\"+i+\"' given invalid glyph value: \"+o)):void 0},n.prototype[\"enum\"]=function(n,i,r,o){var s,a,c;return this[r]={},c=o.split(\" \"),s=n.mget(r),e.isNull(s)||(e.isString(s)&&t.call(c,s)>=0?this[r]={\"default\":s}:(l.warn(\"enum property '\"+r+\"' given invalid default value: \"+s),l.warn(\" - acceptable values:\"+c))),null!=i&&r in i?(a=i[r],e.isString(a)?t.call(c,a)>=0?this[r].value=a:this[r].field=a:e.isObject(a)?this[r]=e.extend(this[r],a):(l.warn(\"enum property '\"+r+\"' given invalid glyph value: \"+a),l.warn(\" - acceptable values:\"+c))):void 0},n.prototype.setattr=function(t,e,n,i){var r,o;return r=null,i.indexOf(\":\")>-1&&(o=i.split(\":\"),i=o[0],r=o[1]),\"string\"===i?this.string(t,e,n):\"number\"===i?this.number(t,e,n):\"color\"===i?this.color(t,e,n):\"array\"===i?this.array(t,e,n):\"enum\"===i&&r?this[\"enum\"](t,e,n,r):l.warn(\"Unknown type '\"+i+\"' for glyph property: \"+n)},n.prototype.select=function(t,e){return t in this?null!=this[t].field&&this[t].field in e?e[this[t].field]:null!=this[t].value?this[t].value:e.get&&e.get(t)?e.get(t):e.mget&&e.mget(t)?e.mget(t):null!=e[t]?e[t]:null!=this[t][\"default\"]?this[t][\"default\"]:l.warn(\"selection for attribute '\"+t+\"' failed on object: \"+e):void l.warn(\"requested selection of unknown property '\"+t+\"' on object: \"+e)},n.prototype.v_select=function(t,e){var n,i,r,o,s;if(!(t in this))return void l.warn(\"requested vector selection of unknown property '\"+t+\"' on objects\");for(r=null!=this[t].typed?new Float64Array(e.length):new Array(e.length),n=o=0,s=e.length;s>=0?s>o:o>s;n=s>=0?++o:--o)if(i=e[n],null!=this[t].field&&this[t].field in i)r[n]=i[this[t].field];else if(null!=this[t].value)r[n]=this[t].value;else if(null!=i[t])r[n]=i[t];else{if(null==this[t][\"default\"])return void l.warn(\"vector selection for attribute '\"+t+\"' failed on object: \"+i);r[n]=this[t][\"default\"]}return r},n}(),a=function(t){function i(t,n,i){null==i&&(i=\"\"),this.line_color_name=\"\"+i+\"line_color\",this.line_width_name=\"\"+i+\"line_width\",this.line_alpha_name=\"\"+i+\"line_alpha\",this.line_join_name=\"\"+i+\"line_join\",this.line_cap_name=\"\"+i+\"line_cap\",this.line_dash_name=\"\"+i+\"line_dash\",this.line_dash_offset_name=\"\"+i+\"line_dash_offset\",this.color(t,n,this.line_color_name),this.number(t,n,this.line_width_name),this.number(t,n,this.line_alpha_name),this[\"enum\"](t,n,this.line_join_name,\"miter round bevel\"),this[\"enum\"](t,n,this.line_cap_name,\"butt round square\"),this.array(t,n,this.line_dash_name),this.number(t,n,this.line_dash_offset_name),this.do_stroke=!0,e.isUndefined(this[this.line_color_name].value)?e.isNull(this[this.line_color_name][\"default\"])&&(this.do_stroke=!1):e.isNull(this[this.line_color_name].value)&&(this.do_stroke=!1)}return n(i,t),i.prototype.set=function(t,e){return t.strokeStyle=this.select(this.line_color_name,e),t.globalAlpha=this.select(this.line_alpha_name,e),t.lineWidth=this.select(this.line_width_name,e),t.lineJoin=this.select(this.line_join_name,e),t.lineCap=this.select(this.line_cap_name,e),t.setLineDash(this.select(this.line_dash_name,e)),t.setLineDashOffset(this.select(this.line_dash_offset_name,e))},i.prototype.set_prop_cache=function(t){return this.cache={},this.cache.strokeStyle=this.source_v_select(this.line_color_name,t),this.cache.globalAlpha=this.source_v_select(this.line_alpha_name,t),this.cache.lineWidth=this.source_v_select(this.line_width_name,t),this.cache.lineJoin=this.source_v_select(this.line_join_name,t),this.cache.lineCap=this.source_v_select(this.line_cap_name,t),this.cache.setLineDash=this.source_v_select(this.line_dash_name,t),this.cache.setLineDashOffset=this.source_v_select(this.line_dash_offset_name,t)},i.prototype.clear_prop_cache=function(){return this.cache={}},i.prototype.set_vectorize=function(t,e){var n;return n=!1,null!=this.cache.strokeStyle[e]&&t.strokeStyle!==this.cache.strokeStyle[e]&&(t.strokeStyle=this.cache.strokeStyle[e],n=!0),null!=this.cache.globalAlpha[e]&&t.globalAlpha!==this.cache.globalAlpha[e]&&(t.globalAlpha=this.cache.globalAlpha[e],n=!0),null!=this.cache.lineWidth[e]&&t.lineWidth!==this.cache.lineWidth[e]&&(t.lineWidth=this.cache.lineWidth[e],n=!0),null!=this.cache.lineJoin[e]&&t.lineJoin!==this.cache.lineJoin[e]&&(t.lineJoin=this.cache.lineJoin[e],n=!0),null!=this.cache.lineCap[e]&&t.lineCap!==this.cache.lineCap[e]&&(t.lineCap=this.cache.lineCap[e],n=!0),null!=this.cache.setLineDash[e]&&t.getLineDash()!==this.cache.setLineDash[e]&&(t.setLineDash(this.cache.setLineDash[e]),n=!0),null!=this.cache.setLineDashOffset[e]&&t.getLineDashOffset()!==this.cache.setLineDashOffset[e]&&(t.setLineDashOffset(this.cache.setLineDashOffset[e]),n=!0),n},i}(c),o=function(t){function i(t,n,i){null==i&&(i=\"\"),this.fill_color_name=\"\"+i+\"fill_color\",this.fill_alpha_name=\"\"+i+\"fill_alpha\",this.color(t,n,this.fill_color_name),this.number(t,n,this.fill_alpha_name),this.do_fill=!0,e.isUndefined(this[this.fill_color_name].value)?e.isNull(this[this.fill_color_name][\"default\"])&&(this.do_fill=!1):e.isNull(this[this.fill_color_name].value)&&(this.do_fill=!1)}return n(i,t),i.prototype.set=function(t,e){return t.fillStyle=this.select(this.fill_color_name,e),t.globalAlpha=this.select(this.fill_alpha_name,e)},i.prototype.set_prop_cache=function(t){return this.cache={},this.cache.fillStyle=this.source_v_select(this.fill_color_name,t),this.cache.globalAlpha=this.source_v_select(this.fill_alpha_name,t)},i.prototype.set_vectorize=function(t,e){var n;return n=!1,t.fillStyle!==this.cache.fillStyle[e]&&(t.fillStyle=this.cache.fillStyle[e],n=!0),t.globalAlpha!==this.cache.globalAlpha[e]&&(t.globalAlpha=this.cache.globalAlpha[e],n=!0),n},i}(c),u=function(t){function e(t,e,n){null==n&&(n=\"\"),this.text_font_name=\"\"+n+\"text_font\",this.text_font_size_name=\"\"+n+\"text_font_size\",this.text_font_style_name=\"\"+n+\"text_font_style\",this.text_color_name=\"\"+n+\"text_color\",this.text_alpha_name=\"\"+n+\"text_alpha\",this.text_align_name=\"\"+n+\"text_align\",this.text_baseline_name=\"\"+n+\"text_baseline\",this.string(t,e,this.text_font_name),this.string(t,e,this.text_font_size_name),this[\"enum\"](t,e,this.text_font_style_name,\"normal italic bold\"),this.color(t,e,this.text_color_name),this.number(t,e,this.text_alpha_name),this[\"enum\"](t,e,this.text_align_name,\"left right center\"),this[\"enum\"](t,e,this.text_baseline_name,\"top middle bottom alphabetic hanging\")\n",
" }return n(e,t),e.prototype.font=function(t,e){var n,i;return null==e&&(e=this.select(this.text_font_size_name,t)),n=this.select(this.text_font_name,t),i=this.select(this.text_font_style_name,t),n=i+\" \"+e+\" \"+n},e.prototype.set=function(t,e){return t.font=this.font(e),t.fillStyle=this.select(this.text_color_name,e),t.globalAlpha=this.select(this.text_alpha_name,e),t.textAlign=this.select(this.text_align_name,e),t.textBaseline=this.select(this.text_baseline_name,e)},e.prototype.set_prop_cache=function(t){var e,n,i,r;return this.cache={},n=this.source_v_select(this.text_font_size_name,t),e=this.source_v_select(this.text_font_name,t),i=this.source_v_select(this.text_font_style_name,t),this.cache.font=function(){var t,o,s;for(s=[],r=t=0,o=e.length;o>=0?o>t:t>o;r=o>=0?++t:--t)s.push(\"\"+i[r]+\" \"+n[r]+\" \"+e[r]);return s}(),this.cache.fillStyle=this.source_v_select(this.text_color_name,t),this.cache.globalAlpha=this.source_v_select(this.text_alpha_name,t),this.cache.textAlign=this.source_v_select(this.text_align_name,t),this.cache.textBaseline=this.source_v_select(this.text_baseline_name,t)},e.prototype.clear_prop_cache=function(){return this.cache={}},e.prototype.set_vectorize=function(t,e){var n;return n=!1,t.font!==this.cache.font[e]&&(t.font=this.cache.font[e],n=!0),t.fillStyle!==this.cache.fillStyle[e]&&(t.fillStyle=this.cache.fillStyle[e],n=!0),t.globalAlpha!==this.cache.globalAlpha[e]&&(t.globalAlpha=this.cache.globalAlpha[e],n=!0),t.textAlign!==this.cache.textAlign[e]&&(t.textAlign=this.cache.textAlign[e],n=!0),t.textBaseline!==this.cache.textBaseline[e]&&(t.textBaseline=this.cache.textBaseline[e],n=!0),n},e}(c),s=function(t){function e(t,e,n,i){var r,o,s,a,l,c;for(a=0,l=n.length;l>a;a++)r=n[a],o=\"number\",r.indexOf(\":\")>-1&&(c=r.split(\":\"),r=c[0],o=c[1]),this.setattr(t,e,r,o);for(s in i)this[s]=i[s];this.fast_path=!1,\"fast_path\"in e&&(this.fast_path=e.fast_path)}return n(e,t),e}(c),{glyph_properties:s,fill_properties:o,line_properties:a,text_properties:u}})}.call(this),function(){i(\"tool/active_tool_manager\",[],function(){var t;return t=function(){\" This makes sure that only one tool is active at a time \";function t(t){this.event_sink=t,this.event_sink.active=null}return t.prototype.bind_bokeh_events=function(){var t=this;return this.event_sink.on(\"clear_active_tool\",function(){return t.event_sink.trigger(\"\"+t.event_sink.active+\":deactivated\"),t.event_sink.active=null}),this.event_sink.on(\"active_tool\",function(e){return e!==t.event_sink.active?(t.event_sink.trigger(\"\"+e+\":activated\"),t.event_sink.trigger(\"\"+t.event_sink.active+\":deactivated\"),t.event_sink.active=e):void 0}),this.event_sink.on(\"try_active_tool\",function(e){return null==t.event_sink.active?(t.event_sink.trigger(\"\"+e+\":activated\"),t.event_sink.trigger(\"\"+t.event_sink.active+\":deactivated\"),t.event_sink.active=e):void 0})},t}()})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"common/plot\",[\"underscore\",\"backbone\",\"kiwi\",\"./build_views\",\"./plot_utils\",\"./continuum_view\",\"./has_parent\",\"./canvas\",\"./layout_box\",\"./logging\",\"./solver\",\"./cartesian_frame\",\"./plot_template\",\"./toolbar_template\",\"renderer/properties\",\"tool/active_tool_manager\"],function(t,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g){var m,y,v,b,w,x,k,C,S,T,M,D,A,R;return S=_.line_properties,M=_.text_properties,v=i.Expression,m=i.Constraint,y=i.Operator.Eq,w=i.Operator.Le,b=i.Operator.Ge,T=u.logger,k=function(i){function s(){return D=s.__super__.constructor.apply(this,arguments)}return e(s,i),s.prototype.className=\"bokeh plotview plotarea\",s.prototype.template=d,s.prototype.toolbar_template=f,s.prototype.view_options=function(){return t.extend({plot_model:this.model,plot_view:this},this.options)},s.prototype.pause=function(){return this.is_paused=!0},s.prototype.unpause=function(){return this.is_paused=!1,this.request_render()},s.prototype.request_render=function(){this.is_paused||this.throttled_render(!0)},s.prototype.initialize=function(e){var i,r,a,l,c,u,h,p;for(s.__super__.initialize.call(this,e),this.pause(),this.model.initialize_layout(this.model.solver),this.frame=this.mget(\"frame\"),this.x_range=this.frame.get(\"x_ranges\")[\"default\"],this.y_range=this.frame.get(\"y_ranges\")[\"default\"],this.xmapper=this.frame.get(\"x_mappers\")[\"default\"],this.ymapper=this.frame.get(\"y_mappers\")[\"default\"],a={button_bar:this.mget(\"button_bar\")},i=this.template(a),this.$el.html(i),this.canvas=this.mget(\"canvas\"),this.canvas_view=new this.canvas.default_view({model:this.canvas}),this.$(\".bk-plot-canvas-wrapper\").append(this.canvas_view.el),l=this.mget(\"toolbar_location\"),null!=l&&(c=\".bk-plot-\"+l,this.$(c).html(this.toolbar_template())),this.canvas_view.render(),this.throttled_render=o.throttle_animation(this.render,15),this.outline_props=new S(this,{},\"outline_\"),this.title_props=new M(this,{},\"title_\"),this.renderers={},this.tools={},this.eventSink=t.extend({},n.Events),this.atm=new g(this.eventSink),this.levels={},p=o.LEVELS,u=0,h=p.length;h>u;u++)r=p[u],this.levels[r]={};return this.build_levels(),this.atm.bind_bokeh_events(),this.bind_bokeh_events(),this.model.add_constraints(this.canvas.solver),this.listenTo(this.canvas.solver,\"layout_update\",this.request_render),this.unpause(),this.request_render(),T.debug(\"PlotView initialized\"),this},s.prototype.map_to_screen=function(t,e,n,i,r,o){return null==r&&(r=\"default\"),null==o&&(o=\"default\"),this.frame.map_to_screen(t,e,n,i,this.canvas,r,o)},s.prototype.map_from_screen=function(t,e,n){return this.frame.map_from_screen(t,e,n,this.canvas,name)},s.prototype.update_range=function(t){var e,n,i,r;null==t&&(t=this.initial_range_info),this.pause(),i=this.frame.get(\"x_ranges\");for(e in i)n=i[e],n.set(t.xrs[e]);r=this.frame.get(\"y_ranges\");for(e in r)n=r[e],n.set(t.yrs[e]);return this.unpause()},s.prototype.build_levels=function(){var e,n,i,o,s,a,l,c,u,h,p,d,f,_;for(i=t.keys(this.renderers),c=r(this.renderers,this.mget(\"renderers\"),this.view_options()),o=t.difference(i,t.pluck(this.mget(\"renderers\"),\"id\")),u=0,d=o.length;d>u;u++)e=o[u],delete this.levels.glyph[e];for(a=r(this.tools,this.mget(\"tools\"),this.view_options()),h=0,f=c.length;f>h;h++)l=c[h],n=l.mget(\"level\"),this.levels[n][l.model.id]=l,l.bind_bokeh_events();for(p=0,_=a.length;_>p;p++)s=a[p],n=s.mget(\"level\"),this.levels[n][s.model.id]=s,s.bind_bokeh_events();return this},s.prototype.bind_bokeh_events=function(){var t,e,n,i,r=this;n=this.mget(\"frame\").get(\"x_ranges\");for(t in n)e=n[t],this.listenTo(e,\"change\",this.request_render);i=this.mget(\"frame\").get(\"y_ranges\");for(t in i)e=i[t],this.listenTo(e,\"change\",this.request_render);return this.listenTo(this.model,\"change:renderers\",this.build_levels),this.listenTo(this.model,\"change:tool\",this.build_levels),this.listenTo(this.model,\"change\",this.request_render),this.listenTo(this.model,\"destroy\",function(){return r.remove()})},s.prototype.set_initial_range=function(){var e,n,i,r,o,s,a;e=!0,r={},s=this.frame.get(\"x_ranges\");for(n in s){if(i=s[n],null==i.get(\"start\")||null==i.get(\"end\")||t.isNaN(i.get(\"start\")+i.get(\"end\"))){e=!1;break}r[n]={start:i.get(\"start\"),end:i.get(\"end\")}}if(e){o={},a=this.frame.get(\"y_ranges\");for(n in a){if(i=a[n],null==i.get(\"start\")||null==i.get(\"end\")||t.isNaN(i.get(\"start\")+i.get(\"end\"))){e=!1;break}o[n]={start:i.get(\"start\"),end:i.get(\"end\")}}}return e?(this.initial_range_info={xrs:r,yrs:o},T.debug(\"initial ranges set\"),T.trace(\"- xrs: #{xrs}\"),T.trace(\"- yrs: #{yrs}\")):T.warn(\"could not set initial ranges\")},s.prototype.render=function(t){var e,n,i,r,o,a,l,c,u,h,p;null==t&&(t=!1),T.trace(\"Plot.render(force_canvas=\"+t+\")\"),s.__super__.render.call(this),this.canvas_view.render(t),n=this.canvas_view.ctx,i=this.model.get(\"frame\"),e=this.model.get(\"canvas\"),p=this.renderers;for(o in p)h=p[o],null!=h.model.update_layout&&h.model.update_layout(h,this.canvas.solver);return u=this.mget(\"title\"),u&&(this.title_props.set(this.canvas_view.ctx,{}),c=n.measureText(this.mget(\"title\")).ascent+this.model.get(\"title_standoff\"),c!==this.model.title_panel.get(\"height\")&&this.model.title_panel.set(\"height\",c)),this.model.get(\"frame\").set(\"width\",e.get(\"width\")),this.model.get(\"frame\").set(\"height\",e.get(\"height\")),this.canvas.solver.update_variables(!1),this.model.get(\"frame\")._update_mappers(),null==this.initial_range_info&&this.set_initial_range(),r=[this.canvas.vx_to_sx(this.frame.get(\"left\")),this.canvas.vy_to_sy(this.frame.get(\"top\")),this.frame.get(\"width\"),this.frame.get(\"height\")],this._map_hook(),this._paint_empty(n,r),this.outline_props.do_stroke&&(this.outline_props.set(n,{}),n.strokeRect.apply(n,r)),this._render_levels(n,[\"image\",\"underlay\",\"glyph\"],r),this._render_levels(n,[\"overlay\",\"annotation\",\"tool\"]),u?(a=this.canvas.vx_to_sx(this.canvas.get(\"width\")/2),l=this.canvas.vy_to_sy(this.model.title_panel.get(\"bottom\")+this.model.get(\"title_standoff\")),this.title_props.set(n,{}),n.fillText(u,a,l)):void 0},s.prototype._render_levels=function(t,e,n){var i,r,o,s,a,l;for(t.save(),null!=n&&(t.beginPath(),t.rect.apply(t,n),t.clip(),t.beginPath()),a=0,l=e.length;l>a;a++){r=e[a],o=this.levels[r];for(i in o)s=o[i],s.render()}return t.restore()},s.prototype._map_hook=function(){},s.prototype._paint_empty=function(t,e){return t.fillStyle=this.mget(\"border_fill\"),t.fillRect(0,0,this.canvas_view.mget(\"canvas_width\"),this.canvas_view.mget(\"canvas_height\")),t.fillStyle=this.mget(\"background_fill\"),t.fillRect.apply(t,e)},s}(s.View),x=function(t){function n(){return A=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"Plot\",n.prototype.default_view=k,n.prototype.initialize=function(t,e){var i,r,o,s,a,c;for(n.__super__.initialize.call(this,t,e),i=new l.Model({map:null!=(a=this.use_map)?a:!1,canvas_width:this.get(\"plot_width\"),canvas_height:this.get(\"plot_height\"),hidpi:this.get(\"hidpi\"),solver:new h}),this.set(\"canvas\",i),this.solver=i.get(\"solver\"),c=this.get(\"renderers\"),o=0,s=c.length;s>o;o++)r=c[o],r.set(\"parent\",this);return T.debug(\"Plot initialized\")},n.prototype.initialize_layout=function(t){var e,n,i;return e=this.get(\"canvas\"),i=new p.Model({x_range:this.get(\"x_range\"),extra_x_ranges:this.get(\"extra_x_ranges\"),x_mapper_type:this.get(\"x_mapper_type\"),y_range:this.get(\"y_range\"),extra_y_ranges:this.get(\"extra_y_ranges\"),y_mapper_type:this.get(\"y_mapper_type\"),solver:t}),this.set(\"frame\",i),this.title_panel=new c.Model({solver:t}),c.Collection.add(this.title_panel),this.title_panel._anchor=this.title_panel._bottom,n=this.get(\"above\"),n.push(this.title_panel),this.set(\"above\",n)},n.prototype.add_constraints=function(t){var e,n,r,o,s,a,l,u,h,p=this;return s=null!=(a=this.get(\"min_border_top\"))?a:this.get(\"min_border\"),n=null!=(l=this.get(\"min_border_bottom\"))?l:this.get(\"min_border\"),r=null!=(u=this.get(\"min_border_left\"))?u:this.get(\"min_border\"),o=null!=(h=this.get(\"min_border_right\"))?h:this.get(\"min_border\"),e=function(t,e,n,r,o){var s,a,l,u,h,d,f,_,g,w,x,k;for(u=p.get(\"canvas\"),d=p.get(\"frame\"),s=new c.Model({solver:t}),a=\"_\"+r[0],l=\"_\"+r[1],t.add_constraint(new m(new v(s[\"_\"+o],-e),b),i.Strength.strong),t.add_constraint(new m(new v(d[a],[-1,s[l]]),y)),t.add_constraint(new m(new v(s[a],[-1,u[a]]),y)),f=d,h=p.get(n),w=0,x=h.length;x>w;w++)g=h[w],(null!=(k=g.get(\"location\"))?k:!0)&&g.set(\"location\",n,{silent:!0}),null!=g.initialize_layout&&g.initialize_layout(t),t.add_constraint(new m(new v(f[a],[-1,g[l]]),y),i.Strength.strong),f=g;return _=new c.Model({solver:t}),t.add_constraint(new m(new v(f[a],[-1,_[l]]),y),i.Strength.strong),t.add_constraint(new m(new v(_[a],[-1,u[a]]),y),i.Strength.strong)},e(t,s,\"above\",[\"top\",\"bottom\"],\"height\",w),e(t,n,\"below\",[\"bottom\",\"top\"],\"height\",b),e(t,r,\"left\",[\"left\",\"right\"],\"width\",b),e(t,o,\"right\",[\"right\",\"left\"],\"width\",w)},n.prototype.add_renderers=function(t){var e;return e=this.get(\"renderers\"),e=e.concat(t),this.set(\"renderers\",e)},n.prototype.parent_properties=[\"background_fill\",\"border_fill\",\"min_border\",\"min_border_top\",\"min_border_bottom\",\"min_border_left\",\"min_border_right\"],n.prototype.defaults=function(){return{button_bar:!0,renderers:[],tools:[],h_symmetry:!0,v_symmetry:!1,x_mapper_type:\"auto\",y_mapper_type:\"auto\",plot_width:600,plot_height:600,title:\"Plot\",above:[],below:[],left:[],right:[],toolbar_location:\"above\"}},n.prototype.display_defaults=function(){return{hidpi:!0,background_fill:\"#fff\",border_fill:\"#fff\",min_border:40,show_toolbar:!0,title_standoff:8,title_text_font:\"helvetica\",title_text_font_size:\"20pt\",title_text_font_style:\"normal\",title_text_color:\"#444444\",title_text_alpha:1,title_text_align:\"center\",title_text_baseline:\"alphabetic\",outline_line_color:\"#aaaaaa\",outline_line_width:1,outline_line_alpha:1,outline_line_join:\"miter\",outline_line_cap:\"butt\",outline_line_dash:[],outline_line_dash_offset:0}},n}(a),C=function(t){function n(){return R=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=x,n}(n.Collection),{Model:x,Collection:new C,View:k}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};i(\"common/gmap_plot\",[\"underscore\",\"backbone\",\"./solver\",\"./plot\"],function(e,i,r,o){var s,a,l,c,u,h;return a=function(i){function r(){return this.bounds_change=t(this.bounds_change,this),c=r.__super__.constructor.apply(this,arguments)}return n(r,i),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,e.defaults(t,this.default_options)),this.zoom_count=null},r.prototype.update_range=function(t){var e,n,i,r,o;return null==t&&(t=this.initial_range_info),this.pause(),null!=t.sdx?this.map.panBy(t.sdx,t.sdy):(o=Math.min(t.xr.start,t.xr.end),i=Math.max(t.xr.start,t.xr.end),r=Math.min(t.yr.start,t.yr.end),n=Math.max(t.yr.start,t.yr.end),e=new google.maps.LatLng((n+r)/2,(i+o)/2),null==t.factor?(this.map.setCenter(e),this.map.setZoom(this.initial_zoom)):t.factor>0?(this.zoom_count+=1,10===this.zoom_count&&(this.map.setZoom(this.map.getZoom()+1),this.zoom_count=0)):(this.zoom_count-=1,-10===this.zoom_count&&(this.map.setCenter(e),this.map.setZoom(this.map.getZoom()-1),this.map.setCenter(e),this.zoom_count=0))),this.unpause()},r.prototype.bind_bokeh_events=function(){var t,n,i,o,s,a,l=this;return r.__super__.bind_bokeh_events.call(this),i=this.frame.get(\"width\"),n=this.frame.get(\"height\"),a=this.frame.get(\"bottom\"),o=this.frame.get(\"left\"),this.canvas_view.map_div.attr(\"style\",\"top: \"+a+\"px; left: \"+o+\"px; position: absolute\"),this.canvas_view.map_div.attr(\"style\",\"width:\"+i+\"px;\"),this.canvas_view.map_div.attr(\"style\",\"height:\"+n+\"px;\"),this.canvas_view.map_div.width(\"\"+i+\"px\").height(\"\"+n+\"px\"),this.initial_zoom=this.mget(\"map_options\").zoom,t=function(){var t,e;return e=l.mget(\"map_options\"),t={center:new google.maps.LatLng(e.lat,e.lng),zoom:e.zoom,disableDefaultUI:!0,mapTypeId:google.maps.MapTypeId.SATELLITE},l.map=new google.maps.Map(l.canvas_view.map_div[0],t),google.maps.event.addListener(l.map,\"bounds_changed\",l.bounds_change)},null!=window.google&&null!=window.google.maps?e.defer(t):(window._bokeh_first_gmap_load=t,s=document.createElement(\"script\"),s.type=\"text/javascript\",s.src=\"https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=_bokeh_first_gmap_load\",document.body.appendChild(s))},r.prototype.bounds_change=function(){var t,e,n;return t=this.map.getBounds(),e=t.getNorthEast(),n=t.getSouthWest(),this.x_range.set({start:n.lng(),end:e.lng(),silent:!0}),this.y_range.set({start:n.lat(),end:e.lat()}),null==this.initial_range_info?this.initial_range_info={xr:{start:this.x_range.get(\"start\"),end:this.x_range.get(\"end\")},yr:{start:this.y_range.get(\"start\"),end:this.y_range.get(\"end\")}}:void 0},r.prototype._map_hook=function(){var t,e,n,i;return e=this.frame.get(\"width\"),t=this.frame.get(\"height\"),i=this.frame.get(\"bottom\"),n=this.frame.get(\"left\"),this.canvas_view.map_div.attr(\"style\",\"top: \"+i+\"px; left: \"+n+\"px;\"),this.canvas_view.map_div.width(\"\"+e+\"px\").height(\"\"+t+\"px\")},r.prototype._paint_empty=function(t,e){var n,i,r,o,s,a;return s=this.canvas.get(\"width\"),o=this.canvas.get(\"height\"),r=e[0],a=e[1],i=e[2],n=e[3],t.clearRect(0,0,s,o),t.beginPath(),t.moveTo(0,0),t.lineTo(0,o),t.lineTo(s,o),t.lineTo(s,0),t.lineTo(0,0),t.moveTo(r,a),t.lineTo(r+i,a),t.lineTo(r+i,a+n),t.lineTo(r,a+n),t.lineTo(r,a),t.closePath(),t.fillStyle=this.mget(\"border_fill\"),t.fill()},r}(o.View),s=function(t){function i(){return u=i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.type=\"GMapPlot\",i.prototype.default_view=a,i.prototype.initialize=function(t,e){return this.use_map=!0,i.__super__.initialize.call(this,t,e)},i.prototype.parent_properties=[\"border_fill\",\"min_border\",\"min_border_top\",\"min_border_bottom\",\"min_border_left\",\"min_border_right\"],i.prototype.defaults=function(){return e.extend(i.__super__.defaults.call(this),{title:\"GMapPlot\"})},i.prototype.display_defaults=function(){return e.extend(i.__super__.display_defaults.call(this),{border_fill:\"#eee\"})},i}(o.Model),l=function(t){function e(){return h=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=s,e}(i.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};i(\"common/grid_view_state\",[\"underscore\",\"./has_properties\"],function(e,i){var r,o;return r=function(i){function r(){return this.layout_widths=t(this.layout_widths,this),this.layout_heights=t(this.layout_heights,this),this.setup_layout_properties=t(this.setup_layout_properties,this),o=r.__super__.constructor.apply(this,arguments)}return n(r,i),r.prototype.setup_layout_properties=function(){var t,e,n,i,r,o;for(this.register_property(\"layout_heights\",this.layout_heights,!1),this.register_property(\"layout_widths\",this.layout_widths,!1),r=this.get(\"childviewstates\"),o=[],n=0,i=r.length;i>n;n++)t=r[n],o.push(function(){var n,i,r;for(r=[],n=0,i=t.length;i>n;n++)e=t[n],this.add_dependencies(\"layout_heights\",e,\"height\"),r.push(this.add_dependencies(\"layout_widths\",e,\"width\"));return r}.call(this));return o},r.prototype.initialize=function(t,n){return r.__super__.initialize.call(this,t,n),this.setup_layout_properties(),this.listenTo(this,\"change:childviewstates\",this.setup_layout_properties),this.register_property(\"height\",function(){return e.reduce(this.get(\"layout_heights\"),function(t,e){return t+e},0)},!1),this.add_dependencies(\"height\",this,\"layout_heights\"),this.register_property(\"width\",function(){return e.reduce(this.get(\"layout_widths\"),function(t,e){return t+e},0)},!1),this.add_dependencies(\"width\",this,\"layout_widths\")},r.prototype.position_child_x=function(t){return t},r.prototype.position_child_y=function(t,e){return this.get(\"height\")-t-e},r.prototype.maxdim=function(t,n){return 0===n.length?0:e.max(e.map(n,function(e){return null!=e?e.get(t):0}))},r.prototype.layout_heights=function(){var t,e;return e=function(){var e,n,i,r;for(i=this.get(\"childviewstates\"),r=[],e=0,n=i.length;n>e;e++)t=i[e],r.push(this.maxdim(\"height\",t));return r}.call(this)},r.prototype.layout_widths=function(){var t,n,i,r,o,s;return o=this.get(\"childviewstates\")[0].length,i=function(){var t,n,i,a;for(i=e.range(o),a=[],t=0,n=i.length;n>t;t++)r=i[t],a.push(function(){var t,e,n,i;for(n=this.get(\"childviewstates\"),i=[],t=0,e=n.length;e>t;t++)s=n[t],i.push(s[r]);return i}.call(this));return a}.call(this),n=function(){var e,n,r;for(r=[],e=0,n=i.length;n>e;e++)t=i[e],r.push(this.maxdim(\"width\",t));return r}.call(this)},r.prototype.defaults=function(){return{childviewstates:[[]],border_space:0}},r}(i)})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"common/grid_plot\",[\"underscore\",\"backbone\",\"./build_views\",\"./continuum_view\",\"./has_parent\",\"./grid_view_state\",\"renderer/properties\",\"tool/active_tool_manager\"],function(t,n,i,r,o,s,a,l){var c,u,h,p,d,f;return u=function(r){function o(){return p=o.__super__.constructor.apply(this,arguments)}return e(o,r),o.prototype.tagName=\"div\",o.prototype.className=\"bokeh grid_plot\",o.prototype.default_options={scale:1},o.prototype.set_child_view_states=function(){var t,e,n,i,r,o,s;for(n=[],s=this.mget(\"children\"),r=0,o=s.length;o>r;r++)t=s[r],e=function(){var e,n,r;for(r=[],e=0,n=t.length;n>e;e++)i=t[e],r.push(this.childviews[i.id].canvas);return r}.call(this),n.push(e);return this.viewstate.set(\"childviewstates\",n)},o.prototype.initialize=function(e){return o.__super__.initialize.call(this,t.defaults(e,this.default_options)),this.viewstate=new s,this.toolbar_height=0,this.childviews={},this.build_children(),this.bind_bokeh_events(),this.render(),this},o.prototype.bind_bokeh_events=function(){var t=this;return this.listenTo(this.model,\"change:children\",this.build_children),this.listenTo(this.model,\"change\",this.render),this.listenTo(this.viewstate,\"change\",this.render),this.listenTo(this.model,\"destroy\",function(){return t.remove()})},o.prototype.build_children=function(){var t,e,n,r,o,s,a,l,c,u,h,p;for(t=[],u=this.mget(\"children\"),r=0,a=u.length;a>r;r++)for(n=u[r],o=0,l=n.length;l>o;o++)e=n[o],t.push(e);for(i(this.childviews,t,{}),this.set_child_view_states(),h=this.mget(\"children\"),p=[],s=0,c=h.length;c>s;s++)n=h[s],p.push(function(){var t,i,r;for(r=[],t=0,i=n.length;i>t;t++)e=n[t],r.push(this.listenTo(e.solver,\"layout_update\",this.render));return r}.call(this));return p},o.prototype.makeButton=function(e,n,i,r){var o,s,a,l,c;return o=t.flatten(t.map(t.pluck(this.childviews,\"tools\"),t.values)),l=t.where(o,{constructor:n}),s=$(\"<button class='bk-toolbar-button'>\"+r+\"</button>\"),i.append(s),c=!1,a=!1,s.click(function(){return a?e.trigger(\"clear_active_tool\"):e.trigger(\"active_tool\",r)}),e.on(\"\"+r+\":deactivated\",function(){return s.removeClass(\"active\"),a=!1,t.each(l,function(t){var e;return e=t.evgen.toolName,t.evgen.eventSink.trigger(\"\"+e+\":deactivated\")})}),e.on(\"\"+r+\":activated\",function(){return s.addClass(\"active\"),a=!0,t.each(l,function(t){var e;return e=t.evgen.toolName,t.evgen.eventSink.trigger(\"\"+e+\":activated\")})})},o.prototype.addGridToolbar=function(){var e,i,r,o=this;return this.button_bar=$(\"<div class='grid_button_bar'/>\"),this.button_bar.attr(\"style\",\"position:absolute; left:10px; top:0px; \"),this.toolEventSink=t.extend({},n.Events),this.atm=new l(this.toolEventSink),this.atm.bind_bokeh_events(),this.$el.append(this.button_bar),i=t.flatten(t.map(t.pluck(this.childviews,\"tools\"),t.values)),e=t.uniq(t.pluck(i,\"constructor\")),e.length>0&&(this.toolbar_height=35),r={},t.each(e,function(e){var n;return n=t.where(i,{constructor:e})[0].evgen_options.buttonText,r[n]=e}),t.map(r,function(t,e){return o.makeButton(o.toolEventSink,t,o.button_bar,e)}),t.map(i,function(t){return t.evgen.hide_button()})},o.prototype.render=function(){var e,n,i,r,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M;for(o.__super__.render.call(this),T=t.values(this.childviews),b=0,k=T.length;k>b;b++)f=T[b],f.$el.detach();for(this.$el.html(\"\"),this.addGridToolbar(),p=this.viewstate.get(\"layout_heights\"),i=this.viewstate.get(\"layout_widths\"),y=[0],t.reduceRight(p.slice(1),function(t,e){var n;return n=t+e,y.push(n),n},0),y.reverse(),g=[0],t.reduce(i.slice(0),function(t,e){var n;return n=t+e,g.push(n),n},0),a=[],s=null,M=this.mget(\"children\"),u=w=0,C=M.length;C>w;u=++w)for(h=M[u],n=x=0,S=h.length;S>x;n=++x)c=h[n],f=this.childviews[c.id],v=this.viewstate.position_child_y(y[u],f.canvas.get(\"height\")-this.toolbar_height),m=this.viewstate.position_child_x(g[n],f.canvas.get(\"width\")),l=$(\"<div class='gp_plotwrapper'></div>\"),l.attr(\"style\",\"position: absolute; left:\"+m+\"px; top:\"+v+\"px\"),l.append(f.$el),this.$el.append(l);return e=function(t,e){return t+e},d=t.reduce(p,e,0),r=d+this.toolbar_height,_=t.reduce(i,e,0),this.$el.attr(\"style\",\"position:relative; height:\"+r+\"px;width:\"+_+\"px\"),this.render_end()},o}(r.View),c=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"GridPlot\",n.prototype.default_view=u,n.prototype.defaults=function(){return{children:[[]],border_space:0}},n}(o),h=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=c,n}(n.Collection),{Model:c,Collection:new h,View:u}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};i(\"common/plot_context\",[\"underscore\",\"backbone\",\"./build_views\",\"./has_parent\",\"./continuum_view\"],function(i,r,o,s,a){var l,c,u,h,p,d;return c=function(r){function s(){return this.removeplot=t(this.removeplot,this),this.closeall=t(this.closeall,this),h=s.__super__.constructor.apply(this,arguments)}return n(s,r),s.prototype.initialize=function(t){return this.views={},this.child_models=[],s.__super__.initialize.call(this,t),this.render()},s.prototype.delegateEvents=function(){return this.listenTo(this.model,\"destroy\",this.remove),this.listenTo(this.model,\"change\",this.render),s.__super__.delegateEvents.call(this)},s.prototype.build_children=function(){var t;return t=o(this.views,this.mget(\"children\"),{}),window.pc_created_views=t,window.pc_views=this.views,null},s.prototype.size_textarea=function(t){var e;return e=$(t).height(0).prop(\"scrollHeight\"),$(t).height(e)},s.prototype.closeall=function(){return this.mset(\"children\",[]),this.model.save()},s.prototype.removeplot=function(t){var e,n,i,r,o;return n=parseInt($(t.currentTarget).parent().attr(\"data-plot_num\")),i=this.mget(\"children\")[n],r=this.views[i.get(\"id\")],r.remove(),e=function(){var t,e,n,i;for(n=this.mget(\"children\"),i=[],t=0,e=n.length;e>t;t++)o=n[t],o.id!==r.model.id&&i.push(o);return i}.call(this),this.mset(\"children\",e),this.model.save(),!1},s.prototype.render=function(){var t,n,r,o,a,l,c,u,h,p,d,f,_,g=this;s.__super__.render.call(this),this.build_children(),f=this.views;for(n in f)e.call(f,n)&&(u=f[n],u.$el.detach());for(this.$el.html(\"\"),a=i.keys(this.views).length,c=[],l={},_=this.mget(\"children\"),t=p=0,d=_.length;d>p;t=++p)r=_[t],h=this.views[r.id],o=$(\"<div class='jsp' data-plot_num='\"+t+\"'></div>\"),this.$el.append(o),o.append(h.el);return i.defer(function(){var t,e,n,i,r;for(i=g.$el.find(\".plottitle\"),r=[],e=0,n=i.length;n>e;e++)t=i[e],r.push(g.size_textarea($(t)));return r}),null},s}(a.View),l=function(t){function e(){return p=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.type=\"PlotContext\",e.prototype.default_view=c,e.prototype.url=function(){return e.__super__.url.call(this)},e.prototype.defaults=function(){return{children:[]}},e}(s),u=function(t){function e(){return d=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=l,e}(r.Collection),{Model:l,Collection:new u,View:c}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"mapper/linear_color_mapper\",[\"underscore\",\"backbone\",\"common/has_properties\"],function(t,n,i){var r,o,s,a;return r=function(n){function i(){return s=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e),this.palette=this._build_palette(this.get(\"palette\")),this.little_endian=this._is_little_endian(),null!=this.get(\"reserve_color\")?(this.reserve_color=this.get(\"reserve_color\")[0],this.reserve_val=this.get(\"reserve_val\")[0]):void 0},i.prototype.v_map_screen=function(e){var n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m;if(i=new ArrayBuffer(4*e.length),r=new Uint32Array(i),l=null!=(f=this.get(\"low\"))?f:t.min(e),s=null!=(_=this.get(\"high\"))?_:t.max(e),n=this.palette.length-1,u=n/(s-l),c=-u*l,this.little_endian)for(a=p=0,g=e.length;g>=0?g>p:p>g;a=g>=0?++p:--p)o=e[a],o===this.reserve_val?h=this.reserve_color:(o>s&&(o=s),l>o&&(o=l),h=this.palette[Math.floor(o*u+c)]),r[a]=255<<24|(16711680&h)>>16|65280&h|(255&h)<<16;else for(a=d=0,m=e.length;m>=0?m>d:d>m;a=m>=0?++d:--d)o=e[a],o===this.reserve_val?h=this.reserve_color:(o>s&&(o=s),l>o&&(o=l),h=this.palette[Math.floor(o*u+c)]),r[a]=h<<8|255;return i},i.prototype._is_little_endian=function(){var t,e,n,i;return t=new ArrayBuffer(4),n=new Uint8ClampedArray(t),e=new Uint32Array(t),e[1]=168496141,i=!0,10===n[4]&&11===n[5]&&12===n[6]&&13===n[7]&&(i=!1),i},i.prototype._build_palette=function(t){var e,n,i,r;for(n=new Uint32Array(t.length+1),e=i=0,r=t.length;r>=0?r>i:i>r;e=r>=0?++i:--i)n[e]=t[e];return n[n.length-1]=t[t.length-1],n},i}(i),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"range/factor_range\",[\"backbone\",\"common/has_properties\"],function(t,n){var i,r,o,s;return i=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"FactorRange\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.register_property(\"end\",function(){return this.get(\"factors\").length+.5},!0),this.add_dependencies(\"end\",this,[\"factors\"]),this.register_property(\"min\",function(){return this.get(\"start\")},!0),this.add_dependencies(\"min\",this,[\"factors\"]),this.register_property(\"max\",function(){return this.get(\"end\")},!0),this.add_dependencies(\"max\",this,[\"factors\"])},n.prototype.defaults=function(){return{start:.5,factors:[]}},n}(n),r=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(t.Collection),{Model:i,Collection:new r}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};i(\"range/data_factor_range\",[\"underscore\",\"backbone\",\"range/factor_range\"],function(e,i,r){var o,s,a,l;return o=function(i){function r(){return this._get_values=t(this._get_values,this),a=r.__super__.constructor.apply(this,arguments)}return n(r,i),r.prototype.type=\"DataFactorRange\",r.prototype._get_values=function(){var t,n,i,r,o,s,a;for(t=function(){var t,e,n,i;for(n=this.get(\"columns\"),i=[],t=0,e=n.length;e>t;t++)o=n[t],i.push(this.get(\"data_source\").get_column(o));return i}.call(this),t=e.reduce(t,function(t,e){return t.concat(e)},[]),n={},s=0,a=t.length;a>s;s++)r=t[s],n[r]=!0;return i=e.keys(n),i=e.sortBy(i,function(t){return t})},r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property,this.register_property(\"values\",this._get_values,!0),this.add_dependencies(\"values\",this,[\"data_source\",\"columns\"]),this.add_dependencies(\"values\",this.get(\"data_source\"),[\"data_source\",\"columns\"])},r.prototype.defaults=function(){return{values:[],columns:[],data_source:null}},r}(r.Model),s=function(t){function e(){return l=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=o,e}(i.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e\n",
" };i(\"range/data_range1d\",[\"underscore\",\"backbone\",\"range/range1d\"],function(t,n,i){var r,o,s,a;return r=function(n){function i(){return s=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"DataRange1d\",i.prototype._get_minmax=function(){var e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g;for(i=[],d=this.get(\"sources\"),c=0,h=d.length;h>c;c++)for(s=d[c],a=this.resolve_ref(s.source),f=s.columns,u=0,p=f.length;p>u;u++)n=f[u],i.push(a.get_column(n));return i=t.flatten(i),i=t.filter(i,function(t){return\"string\"!=typeof t}),i=t.reject(i,function(t){return isNaN(t)}),_=[t.min(i),t.max(i)],o=_[0],r=_[1],l=r!==o?(r-o)*(1+this.get(\"rangepadding\")):0!==r?Math.abs(r)*(1+this.get(\"rangepadding\")):2,e=(r+o)/2,g=[e-l/2,e+l/2],o=g[0],r=g[1],[o,r]},i.prototype._get_start=function(){return t.isNullOrUndefined(this.get(\"_start\"))?this.get(\"minmax\")[0]:this.get(\"_start\")},i.prototype._set_start=function(t){return this.set(\"_start\",t)},i.prototype._get_end=function(){return t.isNullOrUndefined(this.get(\"_end\"))?this.get(\"minmax\")[1]:this.get(\"_end\")},i.prototype._set_end=function(t){return this.set(\"_end\",t)},i.prototype.initialize=function(t,e){var n,r,o,s,a;for(this.register_property(\"minmax\",this._get_minmax,!0),this.add_dependencies(\"minmax\",this,[\"sources\"],[\"rangepadding\"]),a=this.get(\"sources\"),o=0,s=a.length;s>o;o++)n=a[o],r=this.resolve_ref(n.source),this.add_dependencies(\"minmax\",r,\"data\");return this.register_property(\"start\",this._get_start,!0),this.register_setter(\"start\",this._set_start),this.add_dependencies(\"start\",this,[\"minmax\",\"_start\"]),this.register_property(\"end\",this._get_end,!0),this.register_setter(\"end\",this._set_end),this.add_dependencies(\"end\",this,[\"minmax\",\"_end\"]),i.__super__.initialize.call(this,t,e)},i.prototype.defaults=function(){return{sources:[],rangepadding:.1}},i}(i.Model),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"common/plot_widget\",[\"./continuum_view\"],function(t){var n,i;return n=function(t){function n(){return i=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.tagName=\"div\",n.prototype.initialize=function(t){return this.plot_model=t.plot_model,this.plot_view=t.plot_view},n.prototype.bind_bokeh_events=function(){},n.prototype.request_render=function(){return this.plot_view.request_render()},n}(t.View)})}.call(this),function(){i(\"common/textutils\",[],function(){var t,e;return t={},e=function(e){var n,i,r,o,s;if(null!=t[e])return t[e];s=$(\"<span>Hg</span>\").css({font:e}),n=$('<div style=\"display: inline-block; width: 1px; height: 0px;\"></div>'),r=$(\"<div></div>\"),r.append(s,n),i=$(\"body\"),i.append(r);try{o={},n.css({verticalAlign:\"baseline\"}),o.ascent=n.offset().top-s.offset().top,n.css({verticalAlign:\"bottom\"}),o.height=n.offset().top-s.offset().top,o.descent=o.height-o.ascent}finally{r.remove()}return t[e]=o,o},{getTextHeight:e}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/annotation/legend\",[\"underscore\",\"common/has_parent\",\"common/plot_widget\",\"common/textutils\",\"renderer/properties\"],function(t,n,i,r,o){var s,a,l,c,u,h,p,d,f;return c=o.glyph_properties,u=o.line_properties,h=o.text_properties,a=function(n){function i(){return p=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(e){return i.__super__.initialize.call(this,e),this.label_props=new h(this,this.model,\"label_\"),this.border_props=new u(this,this.model,\"border_\"),this.mget(\"legend_names\")?this.legend_names=this.mget(\"legend_names\"):(this.legends=this.mget(\"legends\"),this.legend_names=t.keys(this.mget(\"legends\"))),this.need_calc_dims=!0,this.listenTo(this.plot_model.solver,\"layout_update\",function(){return this.need_calc_dims=!0})},i.prototype.calc_dims=function(){var e,n,i,o,s,a,l,c,u,h,p,d,f;return i=this.mget(\"label_height\"),this.glyph_height=this.mget(\"glyph_height\"),o=this.mget(\"label_width\"),this.glyph_width=this.mget(\"glyph_width\"),a=this.mget(\"legend_spacing\"),this.label_height=t.max([r.getTextHeight(this.label_props.font(this)),i,this.glyph_height]),this.legend_height=this.label_height,this.legend_height=this.legend_names.length*this.legend_height+(1+this.legend_names.length)*a,e=this.plot_view.canvas_view.ctx,e.save(),this.label_props.set(e,this),u=t.map(this.legend_names,function(t){return e.measureText(t).width}),e.restore(),c=t.max(u),this.label_width=t.max([c,o]),this.legend_width=this.label_width+this.glyph_width+3*a,l=this.mget(\"orientation\"),s=this.mget(\"legend_padding\"),n=this.plot_view.frame.get(\"h_range\"),h=this.plot_view.frame.get(\"v_range\"),\"top_right\"===l?(p=n.get(\"end\")-s-this.legend_width,d=h.get(\"end\")-s):\"top_left\"===l?(p=n.get(\"start\")+s,d=h.get(\"end\")-s):\"bottom_left\"===l?(p=n.get(\"start\")+s,d=h.get(\"start\")+s+this.legend_height):\"bottom_right\"===l?(p=n.get(\"end\")-s-this.legend_width,d=h.get(\"start\")+s+this.legend_height):\"absolute\"===l&&(f=this.absolute_coords,p=f[0],d=f[1]),p=this.plot_view.canvas.vx_to_sx(p),d=this.plot_view.canvas.vy_to_sy(d),this.box_coords=[p,d]},i.prototype.render=function(){var t,e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v;for(this.need_calc_dims&&(this.calc_dims(),this.need_calc_dims=!1),t=this.plot_view.canvas_view.ctx,t.save(),t.fillStyle=this.plot_model.get(\"background_fill\"),this.border_props.set(t,this),t.beginPath(),t.rect(this.box_coords[0],this.box_coords[1],this.legend_width,this.legend_height),t.fill(),t.stroke(),i=this.mget(\"legend_spacing\"),y=this.legend_names,e=f=0,g=y.length;g>f;e=++f)for(n=y[e],p=e*this.label_height,d=(1+e)*i,c=this.box_coords[1]+this.label_height/2+p+d,s=this.box_coords[0]+i,a=this.box_coords[0]+2*i+this.label_width,l=a+this.glyph_width,u=this.box_coords[1]+p+d,h=u+this.glyph_height,this.label_props.set(t,this),t.fillText(n,s,c),v=this.model.resolve_ref(this.legends[n]),_=0,m=v.length;m>_;_++)r=v[_],o=this.plot_view.renderers[r.id],o.draw_legend(t,a,l,u,h);return t.restore()},i}(i),s=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type=\"Legend\",n.prototype.display_defaults=function(){return{level:\"overlay\",border_line_color:\"black\",border_line_width:1,border_line_alpha:1,border_line_join:\"miter\",border_line_cap:\"butt\",border_line_dash:[],border_line_dash_offset:0,label_standoff:15,label_text_font:\"helvetica\",label_text_font_size:\"10pt\",label_text_font_style:\"normal\",label_text_color:\"#444444\",label_text_alpha:1,label_text_align:\"left\",label_text_baseline:\"middle\",glyph_height:20,glyph_width:20,label_height:20,label_width:50,legend_padding:10,legend_spacing:3,orientation:\"top_right\",datapoint:null}},n}(n),l=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(Backbone.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){function t(e,n){return this instanceof t?(this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&this._initFormat(n),void this.clear()):new t(e,n)}function e(t,e){t.bbox=n(t,0,t.children.length,e)}function n(t,e,n,i){for(var s,a=r(),l=e;n>l;l++)s=t.children[l],o(a,t.leaf?i(s):s.bbox);return a}function r(){return[1/0,1/0,-1/0,-1/0]}function o(t,e){return t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t}function s(t,e){return t.bbox[0]-e.bbox[0]}function a(t,e){return t.bbox[1]-e.bbox[1]}function l(t){return(t[2]-t[0])*(t[3]-t[1])}function c(t){return t[2]-t[0]+(t[3]-t[1])}function u(t,e){return(Math.max(e[2],t[2])-Math.min(e[0],t[0]))*(Math.max(e[3],t[3])-Math.min(e[1],t[1]))}function h(t,e){var n=Math.max(t[0],e[0]),i=Math.max(t[1],e[1]),r=Math.min(t[2],e[2]),o=Math.min(t[3],e[3]);return Math.max(0,r-n)*Math.max(0,o-i)}function p(t,e){return t[0]<=e[0]&&t[1]<=e[1]&&e[2]<=t[2]&&e[3]<=t[3]}function d(t,e){return e[0]<=t[2]&&e[1]<=t[3]&&e[2]>=t[0]&&e[3]>=t[1]}function f(t,e,n,i,r){for(var o;;){if(o=Math.floor((e+n)/2),o=_(t,e,n,o,r),i===o)break;o>i?n=o-1:e=o+1}_(t,e,n,i,r)}function _(t,e,n,i,r){var o=e,s=t[i];g(t,i,n);for(var a=e;n>a;a++)r(t[a],s)<0&&(g(t,o,a),o++);return g(t,n,o),o}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}t.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],i=this.toBBox;if(!d(t,e.bbox))return n;for(var r,o,s,a,l=[];e;){for(r=0,o=e.children.length;o>r;r++)s=e.children[r],a=e.leaf?i(s):s.bbox,d(t,a)&&(e.leaf?n.push(s):p(t,a)?this._all(s,n):l.push(s));e=l.pop()}return n},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,n=t.length;n>e;e++)this.insert(t[e]);return this}var i=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var r=this.data;this.data=i,i=r}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data={children:[],height:1,bbox:r(),leaf:!0},this},remove:function(t){if(!t)return this;for(var e,n,i,r,o=this.data,s=this.toBBox(t),a=[],l=[];o||a.length;){if(o||(o=a.pop(),n=a[a.length-1],e=l.pop(),r=!0),o.leaf&&(i=o.children.indexOf(t),-1!==i))return o.children.splice(i,1),a.push(o),this._condense(a),this;r||o.leaf||!p(o.bbox,s)?n?(e++,o=n.children[e],r=!1):o=null:(a.push(o),l.push(e),e=0,n=o,o=o.children[0])}return this},toBBox:function(t){return t},compareMinX:function(t,e){return t[0]-e[0]},compareMinY:function(t,e){return t[1]-e[1]},toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},_build:function(t,n,i,r,o){var s,a=i-n+1,l=this._maxEntries;if(l>=a)return s={children:t.slice(n,i+1),height:1,bbox:null,leaf:!0},e(s,this.toBBox),s;r||(o=Math.ceil(Math.log(a)/Math.log(l)),l=Math.ceil(a/Math.pow(l,o-1))),s={children:[],height:o,bbox:null};var c,u,h,p,d=Math.ceil(a/l),_=d*Math.ceil(Math.sqrt(l));for(c=n;i>=c;c+=_)for(i>=c+_&&f(t,c,i,c+_,this.compareMinX),h=Math.min(c+_-1,i),u=c;h>=u;u+=d)h>=u+d&&f(t,u,h,u+d,this.compareMinY),p=this._build(t,u,Math.min(u+d-1,h),r+1,o-1),s.children.push(p);return e(s,this.toBBox),s},_chooseSubtree:function(t,e,n,i){for(var r,o,s,a,c,h,p,d;;){if(i.push(e),e.leaf||i.length-1===n)break;for(p=d=1/0,r=0,o=e.children.length;o>r;r++)s=e.children[r],c=l(s.bbox),h=u(t,s.bbox)-c,d>h?(d=h,p=p>c?c:p,a=s):h===d&&p>c&&(p=c,a=s);e=a}return e},_insert:function(t,e,n){var i=this.toBBox,r=n?t.bbox:i(t),s=[],a=this._chooseSubtree(r,this.data,e,s);for(a.children.push(t),o(a.bbox,r);e>=0&&s[e].children.length>this._maxEntries;)this._split(s,e),e--;this._adjustParentBBoxes(r,s,e)},_split:function(t,n){var i=t[n],r=i.children.length,o=this._minEntries;this._chooseSplitAxis(i,o,r);var s={children:i.children.splice(this._chooseSplitIndex(i,o,r)),height:i.height};i.leaf&&(s.leaf=!0),e(i,this.toBBox),e(s,this.toBBox),n?t[n-1].children.push(s):this._splitRoot(i,s)},_splitRoot:function(t,n){this.data={children:[t,n],height:t.height+1},e(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var r,o,s,a,c,u,p,d;for(u=p=1/0,r=e;i-e>=r;r++)o=n(t,0,r,this.toBBox),s=n(t,r,i,this.toBBox),a=h(o,s),c=l(o)+l(s),u>a?(u=a,d=r,p=p>c?c:p):a===u&&p>c&&(p=c,d=r);return d},_chooseSplitAxis:function(t,e,n){var i=t.leaf?this.compareMinX:s,r=t.leaf?this.compareMinY:a,o=this._allDistMargin(t,e,n,i),l=this._allDistMargin(t,e,n,r);l>o&&t.children.sort(i)},_allDistMargin:function(t,e,i,r){t.children.sort(r);var s,a,l=this.toBBox,u=n(t,0,e,l),h=n(t,i-e,i,l),p=c(u)+c(h);for(s=e;i-e>s;s++)a=t.children[s],o(u,t.leaf?l(a):a.bbox),p+=c(u);for(s=i-e-1;s>=e;s--)a=t.children[s],o(h,t.leaf?l(a):a.bbox),p+=c(h);return p},_adjustParentBBoxes:function(t,e,n){for(var i=n;i>=0;i--)o(e[i].bbox,t)},_condense:function(t){for(var n,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(n=t[i-1].children,n.splice(n.indexOf(t[i]),1)):this.clear():e(t[i],this.toBBox)},_initFormat:function(t){var e=[\"return a\",\" - b\",\";\"];this.compareMinX=new Function(\"a\",\"b\",e.join(t[0])),this.compareMinY=new Function(\"a\",\"b\",e.join(t[1])),this.toBBox=new Function(\"a\",\"return [a\"+t.join(\", a\")+\"];\")}},\"function\"==typeof i&&i.amd?i(\"rbush\",[],function(){return t}):\"undefined\"!=typeof module?module.exports=t:\"undefined\"!=typeof self?self.rbush=t:window.rbush=t}(),function(){i(\"common/mathutils\",[],function(){var t,e,n;return n=function(t){for(;0>t;)t+=2*Math.PI;for(;t>2*Math.PI;)t-=2*Math.PI;return t},e=function(t,e){return Math.abs(n(t-e))},t=function(t,i,r,o){var s;return t=n(t),s=e(i,r),\"anticlock\"===o?e(i,t)<=s&&e(t,r)<=s:!(e(i,t)<=s&&e(t,r)<=s)},{angle_norm:n,angle_dist:e,angle_between:t}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e},n=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};i(\"renderer/glyph/glyph\",[\"underscore\",\"common/has_parent\",\"common/logging\",\"common/plot_widget\",\"renderer/properties\"],function(t,i,r,o,s){var a,l,c,u,h;return c=r.logger,l=function(i){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.setup_server_data=function(){var e,n,i,r,o,s,a;if(r=this.mget(\"server_data_source\"),e=t.extend({},this.mget(\"data_source\").get(\"data\"),r.get(\"data\")),this.mget(\"data_source\").set(\"data\",e),this.set_data(!1),o=r.attributes.transform,i=o.resample,s=this.plot_view.frame.get(\"h_range\"),a=this.plot_view.frame.get(\"v_range\"),\"line1d\"===i){if(n=o.domain,\"x\"===n)return r.listen_for_line1d_updates(this.mget(\"data_source\"),s,a,this.plot_view.x_range,this.plot_view.y_range,s,this.glyph_props.y.field,this.glyph_props.x.field,[this.glyph_props.y.field],o);throw new Error(\"Domains other than 'x' not supported yet.\")}return\"heatmap\"===i?r.listen_for_heatmap_updates(this.mget(\"data_source\"),s,a,this.plot_view.x_range,this.plot_view.y_range,o):\"abstract rendering\"===i?r.listen_for_ar_updates(this.plot_view,this.mget(\"data_source\"),s,a,this.plot_view.x_range,this.plot_view.y_range,o):c.warn(\"unknown resample op: '\"+i+\"'\")},r.prototype.initialize=function(e){var n;return r.__super__.initialize.call(this,e),this.need_set_data=!0,this.glyph_props=this.init_glyph(this.mget(\"glyphspec\")),this.x_range_name=this.mget(\"x_range_name\"),this.y_range_name=this.mget(\"y_range_name\"),this.xmapper=this.plot_view.frame.get(\"x_mappers\")[this.x_range_name],this.ymapper=this.plot_view.frame.get(\"y_mappers\")[this.y_range_name],this.have_selection_props=!1,this.mget(\"selection_glyphspec\")?(n=t.extend({},this.mget(\"glyphspec\"),this.mget(\"selection_glyphspec\")),this.selection_glyphprops=this.init_glyph(n),this.have_selection_props=!0):this.selection_glyphprops=this.glyph_props,this.mget(\"nonselection_glyphspec\")?(n=t.extend({},this.mget(\"glyphspec\"),this.mget(\"nonselection_glyphspec\")),this.nonselection_glyphprops=this.init_glyph(n),this.have_selection_props=!0):this.nonselection_glyphprops=this.glyph_props,this.mget(\"server_data_source\")&&this.setup_server_data(),this.listenTo(this,\"change:server_data_source\",this.setup_server_data)},r.prototype.init_glyph=function(t){var e,i;return i={},n.call(this._properties,\"line\")>=0&&(i.line_properties=new s.line_properties(this,t)),n.call(this._properties,\"fill\")>=0&&(i.fill_properties=new s.fill_properties(this,t)),n.call(this._properties,\"text\")>=0&&(i.text_properties=new s.text_properties(this,t)),e=new s.glyph_properties(this,t,this._fields,i)},r.prototype.set_data=function(t){var e,n,i,r,o,s,a,l,u,h,p,d,f,_,g,m,y,v,b;for(null==t&&(t=!0),l=this.mget(\"data_source\"),m=this._fields,f=0,g=m.length;g>f;f++){if(i=m[f],i.indexOf(\":\")>-1&&(y=i.split(\":\"),i=y[0],s=y[1]),this[i]=this.glyph_props.source_v_select(i,l),\"direction\"===i){for(p=new Uint8Array(this.direction.length),r=_=0,v=this.direction.length;v>=0?v>_:_>v;r=v>=0?++_:--_)e=this.direction[r],\"clock\"===e?p[r]=!1:\"anticlock\"===e?p[r]=!0:p=0/0;this.direction=p}i.indexOf(\"angle\")>-1&&(this[i]=function(){var t,e,n,r;for(n=this[i],r=[],t=0,e=n.length;e>t;t++)d=n[t],r.push(-d);return r}.call(this))}return null!=this._set_data&&(u=Date.now(),this._set_data(),n=Date.now()-u,h=this.mget(\"glyphspec\").type,o=this.mget(\"id\"),c.debug(\"\"+h+\" glyph (\"+o+\"): custom _set_data finished in \"+n+\"ms\")),a=this[i].length,this.all_indices=function(){b=[];for(var t=0;a>=0?a>t:t>a;a>=0?t++:t--)b.push(t);return b}.apply(this),this.have_new_data=!0,t?this.request_render():void 0},r.prototype.render=function(){var t,e,n,i,r,o,s,a,l,u,h,p,d,f,_,g,m=this;if(this.need_set_data&&(this.set_data(!1),this.need_set_data=!1),this._map_data(),s=null!=this._mask_data&&\"FactorRange\"!==this.plot_view.x_range.type&&\"FactorRange\"!==this.plot_view.y_range.type?this._mask_data():this.all_indices,t=this.plot_view.canvas_view.ctx,t.save(),e=function(t,e,n){var i;return i=m.mget(\"data_source\"),m.have_new_data&&(null!=n.fill_properties&&n.fill_properties.do_fill&&n.fill_properties.set_prop_cache(i),null!=n.line_properties&&n.line_properties.do_stroke&&n.line_properties.set_prop_cache(i),null!=n.text_properties&&n.text_properties.set_prop_cache(i)),m._render(t,e,n)},l=this.mget(\"data_source\").get(\"selected\"),h=Date.now(),l&&l.length&&this.have_selection_props){for(u=function(){var t,e,n,r;for(n=this.all_indices,r=[],t=0,e=n.length;e>t;t++)i=n[t],r.push(!1);return r}.call(this),d=0,_=l.length;_>d;d++)o=l[d],u[o]=!0;for(l=new Array,a=new Array,f=0,g=s.length;g>f;f++)i=s[f],u[i]?l.push(i):a.push(i);e(t,l,this.selection_glyphprops),e(t,a,this.nonselection_glyphprops)}else e(t,s,this.glyph_props);return n=Date.now()-h,p=this.mget(\"glyphspec\").type,r=this.mget(\"id\"),c.trace(\"\"+p+\" glyph (\"+r+\"): do_render calls finished in \"+n+\"ms\"),this.have_new_data=!1,t.restore()},r.prototype.xrange=function(){return this.plot_view.x_range},r.prototype.yrange=function(){return this.plot_view.y_range},r.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change\",this.request_render),this.listenTo(this.mget(\"data_source\"),\"change\",this.set_data)},r.prototype.distance_vector=function(t,e,n,i){var r,o,s,a,l,c,u,h,p,d,f,_,g,m,y=this;return null==i&&(i=!1),h=this.glyph_props[t].units,_=this.glyph_props[e].units,\"x\"===t?l=this.xmapper:\"y\"===t&&(l=this.ymapper),d=this.mget(\"data_source\"),a=function(t){return y.glyph_props.source_v_select(t,d)},f=a(e),\"screen\"===_?f:(\"center\"===n?(o=function(){var t,e,n;for(n=[],t=0,e=f.length;e>t;t++)r=f[t],n.push(r/2);return n}(),p=a(t),\"screen\"===h&&(p=l.v_map_from_target(p)),\"string\"==typeof p[0]&&(p=l.v_map_to_target(p)),c=function(){var t,e,n;for(n=[],s=t=0,e=p.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(p[s]-o[s]);return n}(),u=function(){var t,e,n;for(n=[],s=t=0,e=p.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(p[s]+o[s]);return n}()):(c=a(t),\"screen\"===h&&(c=l.v_map_from_target(c)),u=function(){var t,e,n;for(n=[],s=t=0,e=c.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(c[s]+f[s]);return n}()),g=l.v_map_to_target(c),m=l.v_map_to_target(u),i?function(){var t,e,n;for(n=[],s=t=0,e=g.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(Math.ceil(Math.abs(m[s]-g[s])));return n}():function(){var t,e,n;for(n=[],s=t=0,e=g.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(Math.abs(m[s]-g[s]));return n}())},r.prototype.get_reference_point=function(){var e;return e=this.mget(\"reference_point\"),t.isNumber(e)?this.data[e]:e},r.prototype.draw_legend=function(){return null},r.prototype._generic_line_legend=function(t,e,n,i,r){var o,s,a;return s=null!=(a=this.get_reference_point())?a:0,o=this.glyph_props.line_properties,t.save(),t.beginPath(),t.moveTo(e,(i+r)/2),t.lineTo(n,(i+r)/2),o.do_stroke&&(o.set_vectorize(t,s),t.stroke()),t.restore()},r.prototype._generic_area_legend=function(t,e,n,i,r){var o,s,a,l,c,u,h,p,d,f,_;return c=null!=(_=this.get_reference_point())?_:0,l=[c],f=Math.abs(n-e),s=.1*f,a=Math.abs(r-i),o=.1*a,u=e+s,h=n-s,p=i+o,d=r-o,this.glyph_props.fill_properties.do_fill&&(this.glyph_props.fill_properties.set_vectorize(t,c),t.fillRect(u,p,h-u,d-p)),this.glyph_props.line_properties.do_stroke?(t.beginPath(),t.rect(u,p,h-u,d-p),this.glyph_props.line_properties.set_vectorize(t,c),t.stroke()):void 0},r.prototype.hit_test=function(t){var e,n;return e=null,\"point\"===t.type?null!=this._hit_point?e=this._hit_point(t):null==this._point_hit_warned&&(n=this.mget(\"glyphspec\").type,c.warn(\"'point' selection not available on \"+n+\" renderer\"),this._point_hit_warned=!0):\"rect\"===t.type?null!=this._hit_rect?e=this._hit_rect(t):null==this._rect_hit_warned&&(n=this.mget(\"glyphspec\").type,c.warn(\"'rect' selection not available on \"+n+\" renderer\"),this._rect_hit_warned=!0):c.error(\"unrecognized selection geometry type '\"+t.type+\"'\"),e},r}(o),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.defaults=function(){return{x_range_name:\"default\",y_range_name:\"default\",data_source:null}},n.prototype.display_defaults=function(){return{level:\"glyph\",radius_units:\"data\",length_units:\"screen\",angle_units:\"deg\",start_angle_units:\"deg\",end_angle_units:\"deg\"}},n}(i),{Model:a,View:l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/annular_wedge\",[\"underscore\",\"rbush\",\"common/mathutils\",\"renderer/properties\",\"./glyph\"],function(t,n,i,r,o){var s,a,l,c;return a=function(r){function o(){return l=o.__super__.constructor.apply(this,arguments)}return e(o,r),o.prototype._fields=[\"x\",\"y\",\"inner_radius\",\"outer_radius\",\"start_angle\",\"end_angle\",\"direction:string\"],o.prototype._properties=[\"line\",\"fill\"],o.prototype._set_data=function(){var e,i,r,o;for(this.max_radius=t.max(this.outer_radius),this.index=n(),i=[],e=r=0,o=this.x.length;o>=0?o>r:r>o;e=o>=0?++r:--r)isNaN(this.x[e]+this.y[e])||i.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(i)},o.prototype._map_data=function(){var t,e,n,i,r;for(n=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=n[0],this.sy=n[1],this.inner_radius=this.distance_vector(\"x\",\"inner_radius\",\"edge\"),this.outer_radius=this.distance_vector(\"x\",\"outer_radius\",\"edge\"),this.angle=new Float32Array(this.start_angle.length),r=[],t=e=0,i=this.start_angle.length;i>=0?i>e:e>i;t=i>=0?++e:--e)r.push(this.angle[t]=this.end_angle[t]-this.start_angle[t]);return r},o.prototype._render=function(t,e,n,i,r,o,s){var a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.inner_radius),null==s&&(s=this.outer_radius),u=[],l=0,c=e.length;c>l;l++)a=e[l],isNaN(i[a]+r[a]+o[a]+s[a]+this.start_angle[a]+this.angle[a])||(t.translate(i[a],r[a]),t.rotate(this.start_angle[a]),t.moveTo(s[a],0),t.beginPath(),t.arc(0,0,s[a],0,this.angle[a],this.direction[a]),t.rotate(this.angle[a]),t.lineTo(o[a],0),t.arc(0,0,o[a],0,-this.angle[a],!this.direction[a]),t.closePath(),t.rotate(-this.angle[a]-this.start_angle[a]),t.translate(-i[a],-r[a]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,a),u.push(t.stroke())):u.push(void 0));return u},o.prototype._hit_point=function(e){var n,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O,j,P,N,I,z,H,L,F,B,V,W,U,Y;if(F=[e.vx,e.vy],y=F[0],w=F[1],C=this.xmapper.map_from_target(y),M=this.ymapper.map_from_target(w),\"screen\"===this.outer_radius_units?(v=y-this.max_radius,b=y+this.max_radius,B=this.xmapper.v_map_from_target([v,b]),S=B[0],T=B[1],x=w-this.max_radius,k=w+this.max_radius,V=this.ymapper.v_map_from_target([x,k]),D=V[0],A=V[1]):(S=C-this.max_radius,T=C+this.max_radius,D=M-this.max_radius,A=M+this.max_radius),r=function(){var t,e,n,i;for(n=this.index.search([S,D,T,A]),i=[],t=0,e=n.length;e>t;t++)u=n[t],i.push(u[4].i);return i}.call(this),o=[],\"screen\"===this.outer_radius_units)for(p=this.plot_view.canvas.vx_to_sx(y),_=this.plot_view.canvas.vy_to_sy(w),R=0,P=r.length;P>R;R++)c=r[R],h=Math.pow(this.outer_radius[c],2),a=Math.pow(this.sx[c]-p,2)+Math.pow(this.sy[c]-_,2),h>=a&&o.push([c,a]);else for(E=0,N=r.length;N>E;E++)c=r[E],h=Math.pow(this.outer_radius[c],2),d=this.xmapper.map_to_target(C),f=this.xmapper.map_to_target(this.x[c]),g=this.ymapper.map_to_target(M),m=this.ymapper.map_to_target(this.y[c]),a=Math.pow(d-f,2)+Math.pow(g-m,2),h>=a&&o.push([c,a]);if(s=[],\"screen\"===this.inner_radius_units)for(p=this.plot_view.canvas.vx_to_sx(y),_=this.plot_view.canvas.vy_to_sy(w),O=0,I=o.length;I>O;O++)W=o[O],c=W[0],a=W[1],h=Math.pow(this.inner_radius[c],2),a>=h&&s.push([c,a]);else for(j=0,z=o.length;z>j;j++)U=o[j],c=U[0],a=U[1],h=Math.pow(this.inner_radius[c],2),d=this.xmapper.map_to_target(C),f=this.xmapper.map_to_target(this.x[c]),g=this.ymapper.map_to_target(M),m=this.ymapper.map_to_target(this.y[c]),a>=h&&s.push([c,a]);for(l=[],L=0,H=s.length;H>L;L++)Y=s[L],c=Y[0],a=Y[1],p=this.plot_view.canvas.vx_to_sx(y),_=this.plot_view.canvas.vy_to_sy(w),n=Math.atan2(_-this.sy[c],p-this.sx[c]),i.angle_between(-n,-this.start_angle[c],-this.end_angle[c],this.direction[c])&&l.push([c,a]);return l=t.chain(l).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},o.prototype.draw_legend=function(t,e,n,i,r){var o,s,a,l,c,u,h,p;return c=null!=(p=this.get_reference_point())?p:0,o=[c],u={},u[c]=(e+n)/2,h={},h[c]=(i+r)/2,l=.5*Math.min(Math.abs(n-e),Math.abs(r-i)),s={},s[c]=.25*l,a={},a[c]=.8*l,this._render(t,o,this.glyph_props,u,h,s,a)},o}(o.View),s=function(n){function i(){return c=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=a,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{direction:\"anticlock\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(o.Model),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/annulus\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,i,r){var o,s,a,l;return s=function(i){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype._fields=[\"x\",\"y\",\"inner_radius\",\"outer_radius\"],r.prototype._properties=[\"line\",\"fill\"],r.prototype._set_data=function(){var e,i,r,o;for(this.max_radius=t.max(this.outer_radius),this.index=n(),i=[],e=r=0,o=this.x.length;o>=0?o>r:r>o;e=o>=0?++r:--r)isNaN(this.x[e]+this.y[e])||i.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(i)},r.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],this.inner_radius=this.distance_vector(\"x\",\"inner_radius\",\"edge\"),this.outer_radius=this.distance_vector(\"x\",\"outer_radius\",\"edge\")},r.prototype._render=function(t,e,n,i,r,o,s){var a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.inner_radius),null==s&&(s=this.outer_radius),u=[],l=0,c=e.length;c>l;l++)a=e[l],isNaN(i[a]+r[a]+o[a]+s[a])||(t.beginPath(),t.arc(i[a],r[a],o[a],0,2*Math.PI*2,!1),t.moveTo(i[a]+s[a],r[a]),t.arc(i[a],r[a],s[a],0,2*Math.PI*2,!0),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,a),u.push(t.stroke())):u.push(void 0));return u},r.prototype._hit_point=function(e){var n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O,j,P,N,I,z,H,L;if(N=[e.vx,e.vy],_=N[0],y=N[1],w=this.xmapper.map_from_target(_),C=this.ymapper.map_from_target(y),\"screen\"===this.outer_radius_units?(g=_-this.max_radius,m=_+this.max_radius,I=this.xmapper.v_map_from_target([g,m]),x=I[0],k=I[1],v=y-this.max_radius,b=y+this.max_radius,z=this.ymapper.v_map_from_target([v,b]),S=z[0],T=z[1]):(x=w-this.max_radius,k=w+this.max_radius,S=C-this.max_radius,T=C+this.max_radius),n=function(){var t,e,n,i;for(n=this.index.search([x,S,k,T]),i=[],t=0,e=n.length;e>t;t++)a=n[t],i.push(a[4].i);return i}.call(this),i=[],\"screen\"===this.outer_radius_units)for(c=this.plot_view.canvas.vx_to_sx(_),p=this.plot_view.canvas.vy_to_sy(y),M=0,E=n.length;E>M;M++)s=n[M],l=Math.pow(this.outer_radius[s],2),r=Math.pow(this.sx[s]-c,2)+Math.pow(this.sy[s]-p,2),l>=r&&i.push([s,r]);else for(D=0,O=n.length;O>D;D++)s=n[D],l=Math.pow(this.outer_radius[s],2),u=this.xmapper.map_to_target(w),h=this.xmapper.map_to_target(this.x[s]),d=this.ymapper.map_to_target(C),f=this.ymapper.map_to_target(this.y[s]),r=Math.pow(u-h,2)+Math.pow(d-f,2),l>=r&&i.push([s,r]);if(o=[],\"screen\"===this.inner_radius_units)for(c=this.plot_view.canvas.vx_to_sx(_),p=this.plot_view.canvas.vy_to_sy(y),A=0,j=i.length;j>A;A++)H=i[A],s=H[0],r=H[1],l=Math.pow(this.inner_radius[s],2),r>=l&&o.push([s,r]);else for(R=0,P=i.length;P>R;R++)L=i[R],s=L[0],r=L[1],l=Math.pow(this.inner_radius[s],2),u=this.xmapper.map_to_target(w),h=this.xmapper.map_to_target(this.x[s]),d=this.ymapper.map_to_target(C),f=this.ymapper.map_to_target(this.y[s]),r>=l&&o.push([s,r]);return o=t.chain(o).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},r.prototype.draw_legend=function(t,e,n,i,r){var o,s,a,l,c,u,h,p;return c=null!=(p=this.get_reference_point())?p:0,o=[c],u={},u[c]=(e+n)/2,h={},h[c]=(i+r)/2,l=.5*Math.min(Math.abs(n-e),Math.abs(r-i)),s={},s[c]=.4*l,a={},a[c]=.8*l,this._render(t,o,this.glyph_props,u,h,s,a)},r}(r.View),o=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(r.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/arc\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\",\"radius\",\"start_angle\",\"end_angle\",\"direction:string\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],this.radius=this.distance_vector(\"x\",\"radius\",\"edge\")},n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c;if(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.radius),n.line_properties.do_stroke){for(c=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(i[s]+r[s]+o[s]+this.start_angle[s]+this.end_angle[s]+this.direction[s])||(t.beginPath(),t.arc(i[s],r[s],o[s],this.start_angle[s],this.end_angle[s],this.direction[s]),n.line_properties.set_vectorize(t,s),c.push(t.stroke()));return c}},n.prototype.draw_legend=function(t,e,n,i,r){var o,s,a,l,c,u;return a=null!=(u=this.get_reference_point())?u:0,o=[a],l={},l[a]=(e+n)/2,c={},c[a]=(i+r)/2,s={},s[a]=.4*Math.min(Math.abs(n-e),Math.abs(r-i)),this._render(t,o,this.glyph_props,l,c,s)\n",
" },n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{direction:\"anticlock\",line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/marker\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,i,r){var o,s,a,l;return s=function(i){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype._fields=[\"x\",\"y\",\"size\"],r.prototype.draw_legend=function(t,e,n,i,r){var o,s,a,l,c,u;return s=null!=(u=this.get_reference_point())?u:0,o=[s],l={},l[s]=(e+n)/2,c={},c[s]=(i+r)/2,a={},a[s]=.4*Math.min(Math.abs(n-e),Math.abs(r-i)),this._render(t,o,this.glyph_props,l,c,a)},r.prototype._set_data=function(){var e,i,r,o;for(this.max_size=t.max(this.size),this.index=n(),i=[],e=r=0,o=this.x.length;o>=0?o>r:r>o;e=o>=0?++r:--r)isNaN(this.x[e]+this.y[e])||i.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(i)},r.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],t},r.prototype._mask_data=function(){var t,e,n,i,r,o,s,a,l,c,u,h,p;return t=this.plot_view.frame.get(\"h_range\"),n=t.get(\"start\")-this.max_size,i=t.get(\"end\")+this.max_size,h=this.xmapper.v_map_from_target([n,i]),a=h[0],l=h[1],e=this.plot_view.frame.get(\"v_range\"),r=e.get(\"start\")-this.max_size,o=e.get(\"end\")+this.max_size,p=this.ymapper.v_map_from_target([r,o]),c=p[0],u=p[1],function(){var t,e,n,i;for(n=this.index.search([a,c,l,u]),i=[],t=0,e=n.length;e>t;t++)s=n[t],i.push(s[4].i);return i}.call(this)},r.prototype._hit_point=function(e){var n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C;for(x=[e.vx,e.vy],c=x[0],p=x[1],a=this.plot_view.canvas.vx_to_sx(c),l=this.plot_view.canvas.vy_to_sy(p),u=c-this.max_size,h=c+this.max_size,k=this.xmapper.v_map_from_target([u,h]),g=k[0],m=k[1],d=p-this.max_size,f=p+this.max_size,C=this.ymapper.v_map_from_target([d,f]),y=C[0],v=C[1],n=function(){var t,e,n,i;for(n=this.index.search([g,y,m,v]),i=[],t=0,e=n.length;e>t;t++)_=n[t],i.push(_[4].i);return i}.call(this),r=[],b=0,w=n.length;w>b;b++)o=n[b],s=this.size[o]/2,i=Math.abs(this.sx[o]-a)+Math.abs(this.sy[o]-l),Math.abs(this.sx[o]-a)<=s&&Math.abs(this.sy[o]-l)<=s&&r.push([o,i]);return r=t.chain(r).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},r.prototype._hit_rect=function(t){var e,n,i,r,o,s,a;return s=this.xmapper.v_map_from_target([t.vx0,t.vx1]),n=s[0],i=s[1],a=this.ymapper.v_map_from_target([t.vy0,t.vy1]),r=a[0],o=a[1],function(){var t,s,a,l;for(a=this.index.search([n,r,i,o]),l=[],t=0,s=a.length;s>t;t++)e=a[t],l.push(e[4].i);return l}.call(this)},r}(r.View),o=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(r.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/asterisk\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u,h;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),h=[],c=0,u=e.length;u>c;c++)s=e[c],isNaN(i[s]+r[s]+o[s])||(a=o[s]/2,l=.65*a,t.beginPath(),t.moveTo(i[s],r[s]+a),t.lineTo(i[s],r[s]-a),t.moveTo(i[s]-a,r[s]),t.lineTo(i[s]+a,r[s]),t.moveTo(i[s]-l,r[s]+l),t.lineTo(i[s]+l,r[s]-l),t.moveTo(i[s]-l,r[s]-l),t.lineTo(i[s]+l,r[s]+l),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),h.push(t.stroke())):h.push(void 0));return h},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/bezier\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x0\",\"y0\",\"x1\",\"y1\",\"cx0\",\"cy0\",\"cx1\",\"cy1\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t,e,n,i;return t=this.plot_view.map_to_screen(this.x0,this.glyph_props.x0.units,this.y0,this.glyph_props.y0.units,this.x_range_name,this.y_range_name),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.x1,this.glyph_props.x1.units,this.y1,this.glyph_props.y1.units,this.x_range_name,this.y_range_name),this.sx1=e[0],this.sy1=e[1],n=this.plot_view.map_to_screen(this.cx0,this.glyph_props.cx0.units,this.cy0,this.glyph_props.cy0.units,this.x_range_name,this.y_range_name),this.scx0=n[0],this.scy0=n[1],i=this.plot_view.map_to_screen(this.cx1,this.glyph_props.cx1.units,this.cy1,this.glyph_props.cy1.units,this.x_range_name,this.y_range_name),this.scx1=i[0],this.scy1=i[1],i},n.prototype._render=function(t,e,n){var i,r,o,s;if(n.line_properties.do_stroke){for(s=[],r=0,o=e.length;o>r;r++)i=e[r],isNaN(this.sx0[i]+this.sy0[i]+this.sx1[i]+this.sy1[i]+this.scx0[i]+this.scy0[i]+this.scx1[i]+this.scy1[i])||(t.beginPath(),t.moveTo(this.sx0[i],this.sy0[i]),t.bezierCurveTo(this.scx0[i],this.scy0[i],this.scx1[i],this.scy1[i],this.sx1[i],this.sy1[i]),n.line_properties.set_vectorize(t,i),s.push(t.stroke()));return s}},n.prototype.draw_legend=function(t,e,n,i,r){return this._generic_line_legend(t,e,n,i,r)},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/circle\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,i,r){var o,s,a,l;return s=function(i){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype._properties=[\"line\",\"fill\"],r.prototype.initialize=function(t){var e;return e=this.mget(\"glyphspec\"),null!=e.radius?this._fields=[\"x\",\"y\",\"radius\"]:null!=e.size&&(this._fields=[\"x\",\"y\",\"size\"]),r.__super__.initialize.call(this,t)},r.prototype._set_data=function(){var e,i,r,o;for(this.max_radius=this.size?t.max(this.size)/2:t.max(this.radius),this.index=n(),i=[],e=r=0,o=this.x.length;o>=0?o>r:r>o;e=o>=0?++r:--r)isNaN(this.x[e]+this.y[e])||i.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(i)},r.prototype._map_data=function(){var t,e;return e=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=e[0],this.sy=e[1],this.size?(this.radius=function(){var e,n,i,r;for(i=this.distance_vector(\"x\",\"size\",\"edge\"),r=[],e=0,n=i.length;n>e;e++)t=i[e],r.push(t/2);return r}.call(this),this.radius_units=this.glyph_props.size.units):this.radius=this.distance_vector(\"x\",\"radius\",\"edge\")},r.prototype._mask_data=function(){var t,e,n,i,r,o,s,a,l,c,u,h,p,d,f;return t=this.plot_view.frame.get(\"h_range\"),o=this.plot_view.frame.get(\"v_range\"),\"screen\"===this.radius_units?(e=t.get(\"start\")-this.max_radius,n=t.get(\"end\")-this.max_radius,h=this.xmapper.v_map_from_target([e,n]),a=h[0],l=h[1],i=o.get(\"start\")-this.max_radius,r=o.get(\"end\")-this.max_radius,p=this.ymapper.v_map_from_target([i,r]),c=p[0],u=p[1]):(e=t.get(\"start\"),n=t.get(\"end\"),d=this.xmapper.v_map_from_target([e,n]),a=d[0],l=d[1],a-=this.max_radius,l+=this.max_radius,i=o.get(\"start\"),r=o.get(\"end\"),f=this.ymapper.v_map_from_target([i,r]),c=f[0],u=f[1],c-=this.max_radius,u+=this.max_radius),function(){var t,e,n,i;for(n=this.index.search([a,c,l,u]),i=[],t=0,e=n.length;e>t;t++)s=n[t],i.push(s[4].i);return i}.call(this)},r.prototype._render=function(t,e,n,i,r,o){var s,a,l,c;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.radius),c=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(i[s]+r[s]+o[s])||(t.beginPath(),t.arc(i[s],r[s],o[s],0,2*Math.PI,!1),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),c.push(t.stroke())):c.push(void 0));return c},r.prototype._hit_point=function(e){var n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O;if(R=[e.vx,e.vy],f=R[0],m=R[1],b=this.xmapper.map_from_target(f),k=this.ymapper.map_from_target(m),\"screen\"===this.radius_units?(_=f-this.max_radius,g=f+this.max_radius,E=this.xmapper.v_map_from_target([_,g]),w=E[0],x=E[1],y=m-this.max_radius,v=m+this.max_radius,O=this.ymapper.v_map_from_target([y,v]),C=O[0],S=O[1]):(w=b-this.max_radius,x=b+this.max_radius,C=k-this.max_radius,S=k+this.max_radius),n=function(){var t,e,n,i;for(n=this.index.search([w,C,x,S]),i=[],t=0,e=n.length;e>t;t++)s=n[t],i.push(s[4].i);return i}.call(this),r=[],\"screen\"===this.radius_units)for(l=this.plot_view.canvas.vx_to_sx(f),h=this.plot_view.canvas.vy_to_sy(m),T=0,D=n.length;D>T;T++)o=n[T],a=Math.pow(this.radius[o],2),i=Math.pow(this.sx[o]-l,2)+Math.pow(this.sy[o]-h,2),a>=i&&r.push([o,i]);else for(M=0,A=n.length;A>M;M++)o=n[M],a=Math.pow(this.radius[o],2),c=this.xmapper.map_to_target(b),u=this.xmapper.map_to_target(this.x[o]),p=this.ymapper.map_to_target(k),d=this.ymapper.map_to_target(this.y[o]),i=Math.pow(c-u,2)+Math.pow(p-d,2),a>=i&&r.push([o,i]);return r=t.chain(r).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},r.prototype._hit_rect=function(t){var e,n,i,r,o,s,a;return s=this.xmapper.v_map_from_target([t.vx0,t.vx1]),n=s[0],i=s[1],a=this.ymapper.v_map_from_target([t.vy0,t.vy1]),r=a[0],o=a[1],function(){var t,s,a,l;for(a=this.index.search([n,r,i,o]),l=[],t=0,s=a.length;s>t;t++)e=a[t],l.push(e[4].i);return l}.call(this)},r.prototype.draw_legend=function(t,e,n,i,r){var o,s,a,l,c,u;return a=null!=(u=this.get_reference_point())?u:0,o=[a],l={},l[a]=(e+n)/2,c={},c[a]=(i+r)/2,s={},s[a]=.2*Math.min(Math.abs(n-e),Math.abs(r-i)),this._render(t,o,this.glyph_props,l,c,s)},r}(r.View),o=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{radius_units:\"data\",size_units:\"screen\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(r.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/circle_x\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(i[s]+r[s]+o[s])||(t.beginPath(),a=o[s]/2,t.arc(i[s],r[s],a,0,2*Math.PI,!1),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),t.moveTo(i[s]-a,r[s]+a),t.lineTo(i[s]+a,r[s]-a),t.moveTo(i[s]-a,r[s]-a),t.lineTo(i[s]+a,r[s]+a),u.push(t.stroke())):u.push(void 0));return u},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/circle_cross\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(i[s]+r[s]+o[s])||(t.beginPath(),a=o[s]/2,t.arc(i[s],r[s],a,0,2*Math.PI,!1),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),t.moveTo(i[s],r[s]+a),t.lineTo(i[s],r[s]-a),t.moveTo(i[s]-a,r[s]),t.lineTo(i[s]+a,r[s]),u.push(t.stroke())):u.push(void 0));return u},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/diamond\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(i[s]+r[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(i[s],r[s]+a),t.lineTo(i[s]+a,r[s]),t.lineTo(i[s],r[s]-a),t.lineTo(i[s]-a,r[s]),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),u.push(t.stroke())):u.push(void 0));return u},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/diamond_cross\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(i[s]+r[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(i[s],r[s]+a),t.lineTo(i[s]+a,r[s]),t.lineTo(i[s],r[s]-a),t.lineTo(i[s]-a,r[s]),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),t.moveTo(i[s],r[s]+a),t.lineTo(i[s],r[s]-a),t.moveTo(i[s]-a,r[s]),t.lineTo(i[s]+a,r[s]),u.push(t.stroke())):u.push(void 0));return u},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),i(\"gear_utils\",[],function(){var t,e,n;return function(){t=function(t,e,n,i,r,o){function s(t,e){var n,i=50,r=0;for(n=1;i>=n;n++)r+=e(Math.cos(g*(n-.5)/i))*Math.cos(g*t*(n-.5)/i);return 2*r/i}function a(t,e){var n,i,r,o,a=[],l=[],c=[[],[]];for(n=0;t+1>n;n++)c[0][n]=0,c[1][n]=0;for(c[0][0]=1,c[1][1]=1,r=1;t+1>r;r++){for(c[r+1]=[0],i=0;i<c[r].length-1;i++)c[r+1][i+1]=2*c[r][i];for(i=0;i<c[r-1].length;i++)c[r+1][i]-=c[r-1][i]}for(r=0;t>=r;r++)l[r]=s(r,e),a[r]=0;for(r=0;t>=r;r++)for(o=0;t>=o;o++)a[o]+=l[r]*c[r][o];return a[0]-=s(0,e)/2,a}function l(t){var e=2*t-1,n=e*(p-d)/2+(d+p)/2;return v*(Math.cos(n)+n*Math.sin(n))}function c(t){var e=2*t-1,n=e*(p-d)/2+(d+p)/2;return v*(Math.sin(n)-n*Math.cos(n))}function u(t,e){var n,i=1;for(n=t-e+1;t>=n;n++)i*=n;for(n=1;e>=n;n++)i/=n;return i}function h(t,e){var n,i,r=a(w,e);for(n=0,i=0;t>=i;i++)n+=u(t,i)*r[i]/u(w,i);return n}var p,d,f,_,g=Math.PI,m=t*e/2,y=n||20,v=m*Math.cos(y*g/180),b=m+t,w=i||3,x=Math.sqrt(b*b-v*v)/v,k=o||1,C=.01,S=[];for(void 0!==r&&k>r&&(C=r),p=Math.sqrt(k)*x,d=Math.sqrt(C)*x,f=0;w>=f;f++)_={},_.x=h(f,l),_.y=h(f,c),S.push(_);return S},e=function(e,n,i){function r(t,e){return Math.sqrt(e*e-t*t)/t-Math.acos(t/e)}function o(t,e){var n=Math.sin(e),i=Math.cos(e);return{x:t.x*i-t.y*n,y:t.x*n+t.y*i}}function s(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}}var a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k=e,C=n,S=i||20,T=k,M=1.25*k,D=M-T,A=C*k/2,R=A*Math.cos(S*Math.PI/180),E=A+T,O=A-M,j=1.5*D,P=2*Math.PI/C,N=r(R,A),I=N,z=Math.atan(j/(j+O));for(a=Math.sqrt((O+j)*(O+j)-j*j),a>R&&(a=O+D),a>R&&(I-=r(R,a)),l=1,c=.01,a>R&&(c=(a*a-R*R)/(E*E-R*R)),u=c+(l-c)/4,h=t(k,C,S,3,c,u),p=t(k,C,S,3,u,l),d=h.concat(p.slice(1)),f=[],w=0;w<d.length;w++)b=o(d[w],-N-P/4),d[w]=b,f[w]={x:b.x,y:-b.y};return _=s(a,-P/4-I),g={x:_.x,y:-_.y},y=s(O,P/4+I+z),v=s(O,3*P/4-I-z),m=o(_,P),x=[],x.push(\"M\",_.x,_.y),R>a&&x.push(\"L\",d[0].x,d[0].y),x.push(\"C\",d[1].x,d[1].y,d[2].x,d[2].y,d[3].x,d[3].y,d[4].x,d[4].y,d[5].x,d[5].y,d[6].x,d[6].y),x.push(\"A\",E,E,0,0,0,f[6].x,f[6].y),x.push(\"C\",f[5].x,f[5].y,f[4].x,f[4].y,f[3].x,f[3].y,f[2].x,f[2].y,f[1].x,f[1].y,f[0].x,f[0].y),R>a&&x.push(\"L\",g.x,g.y),v.y>y.y&&(x.push(\"A\",j,j,0,0,1,y.x,y.y),x.push(\"A\",O,O,0,0,0,v.x,v.y)),x.push(\"A\",j,j,0,0,1,m.x,m.y),x},n=function(e,n,i){function r(t,e){return Math.sqrt(e*e-t*t)/t-Math.acos(t/e)}function o(t,e){var n=Math.sin(e),i=Math.cos(e);return{x:t.x*i-t.y*n,y:t.x*n+t.y*i}}function s(t,e){return{x:t*Math.cos(e),y:t*Math.sin(e)}}var a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D=e,A=n,R=i||20,E=.6*D,O=1.25*D,j=A*D/2,P=j*Math.cos(R*Math.PI/180),N=j-E,I=j+O,z=.25*D,H=I-z,L=1.5*z;for(a=2*Math.PI/A,l=r(P,j),c=l,N>P&&(c-=r(P,N)),u=r(P,H)-l,h=1.414*z/H,p=1,d=.01,N>P&&(d=(N*N-P*P)/(H*H-P*P)),f=d+(p-d)/4,_=t(D,A,R,3,d,f),g=t(D,A,R,3,f,p),y=_.concat(g.slice(1)),m=[],b=0;b<y.length;b++)v=o(y[b],a/4-l),y[b]=v,m[b]={x:v.x,y:-v.y};return x={x:m[6].x,y:m[6].y},C=s(N,-a/4+c),S={x:C.x,y:-C.y},T=s(I,a/4+u+h),M=s(I,3*a/4-u-h),k=o(x,a),w=[],w.push(\"M\",m[6].x,m[6].y),w.push(\"C\",m[5].x,m[5].y,m[4].x,m[4].y,m[3].x,m[3].y,m[2].x,m[2].y,m[1].x,m[1].y,m[0].x,m[0].y),P>N&&w.push(\"L\",C.x,C.y),w.push(\"A\",N,N,0,0,0,S.x,S.y),P>N&&w.push(\"L\",y[0].x,y[0].y),w.push(\"C\",y[1].x,y[1].y,y[2].x,y[2].y,y[3].x,y[3].y,y[4].x,y[4].y,y[5].x,y[5].y,y[6].x,y[6].y),T.y<M.y&&(w.push(\"A\",L,L,0,0,0,T.x,T.y),w.push(\"A\",I,I,0,0,0,M.x,M.y)),w.push(\"A\",L,L,0,0,0,k.x,k.y),w}}(),{create_gear_tooth:e,create_internal_gear_tooth:n}}),function(){i(\"util/bezier\",[],function(){var t,e;return e=function(t,e,n,i,r,o,s,a){var l,c,u,h,p,d,f,_,g,m,y,v;return l=a*r,c=-s*o,u=s*r,h=a*o,d=.5*(i-n),p=8/3*Math.sin(.5*d)*Math.sin(.5*d)/Math.sin(d),f=t+Math.cos(n)-p*Math.sin(n),m=e+Math.sin(n)+p*Math.cos(n),g=t+Math.cos(i),v=e+Math.sin(i),_=g+p*Math.sin(i),y=v-p*Math.cos(i),[l*f+c*m,u*f+h*m,l*_+c*y,u*_+h*y,l*g+c*v,u*g+h*v]},t=function(t,n,i,r,o,s,a,l,c){var u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O,j,P,N,I,z,H;return M=o*(Math.PI/180),T=Math.sin(M),f=Math.cos(M),w=Math.abs(i),x=Math.abs(r),y=f*(t-l)*.5+T*(n-c)*.5,v=f*(n-c)*.5-T*(t-l)*.5,m=y*y/(w*w)+v*v/(x*x),m>1&&(m=Math.sqrt(m),w*=m,x*=m),u=f/w,h=T/w,p=-T/x,d=f/x,j=u*t+h*n,I=p*t+d*n,P=u*l+h*c,z=p*l+d*c,_=(P-j)*(P-j)+(z-I)*(z-I),S=1/_-.25,0>S&&(S=0),C=Math.sqrt(S),a===s&&(C=-C),N=.5*(j+P)-C*(z-I),H=.5*(I+z)+C*(P-j),D=Math.atan2(I-H,j-N),A=Math.atan2(z-H,P-N),O=A-D,0>O&&1===a?O+=2*Math.PI:O>0&&0===a&&(O-=2*Math.PI),k=Math.ceil(Math.abs(O/(.5*Math.PI+.001))),b=function(){var t,n;for(n=[],g=t=0;k>=0?k>t:t>k;g=k>=0?++t:--t)R=D+g*O/k,E=D+(g+1)*O/k,n.push(e(N,H,R,E,w,x,T,f));return n}()},{arc_to_bezier:t}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/gear\",[\"underscore\",\"gear_utils\",\"renderer/properties\",\"util/bezier\",\"./glyph\"],function(t,n,i,r,o){var s,a,l,c;return a=function(i){function o(){return l=o.__super__.constructor.apply(this,arguments)}return e(o,i),o.prototype._fields=[\"x\",\"y\",\"angle\",\"module\",\"teeth\",\"pressure_angle\",\"shaft_size\",\"internal\"],o.prototype._properties=[\"line\",\"fill\"],o.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],this.smodule=this.distance_vector(\"x\",\"module\",\"edge\")},o.prototype._render=function(t,e,i){var r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D;for(C=0,T=e.length;T>C;C++)if(a=e[C],M=[this.sx[a],this.sy[a],this.angle[a],this.smodule[a],this.teeth[a],this.pressure_angle[a],this.shaft_size[a],this.internal[a]],v=M[0],b=M[1],o=M[2],u=M[3],w=M[4],p=M[5],y=M[6],l=M[7],!isNaN(v+b+o+u+w+p+y+l)){for(h=u*w/2,s=l?n.create_internal_gear_tooth:n.create_gear_tooth,g=s(u,w,p),D=g.slice(0,3),r=D[0],x=D[1],k=D[2],_=g.slice(3),t.save(),t.translate(v,b),t.rotate(o),t.beginPath(),f=2*Math.PI/w,t.moveTo(x,k),c=S=0;w>=0?w>S:S>w;c=w>=0?++S:--S)this._render_seq(t,_),t.rotate(f);t.closePath(),l?(d=h+2.75*u,t.moveTo(d,0),t.arc(0,0,d,0,2*Math.PI,!0)):y>0&&(m=h*y,t.moveTo(m,0),t.arc(0,0,m,0,2*Math.PI,!0)),i.fill_properties.do_fill&&(i.fill_properties.set_vectorize(t,a),t.fill()),i.line_properties.do_stroke&&(i.line_properties.set_vectorize(t,a),t.stroke()),t.restore()}},o.prototype._render_seq=function(e,n){var i,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O;for(c=0;c<n.length;)switch(t.isString(n[c])&&(i=n[c],c+=1),i){case\"M\":x=n.slice(c,c+2),m=x[0],v=x[1],e.moveTo(m,v),S=[m,v],h=S[0],p=S[1],c+=2;break;case\"L\":T=n.slice(c,c+2),m=T[0],v=T[1],e.lineTo(m,v),M=[m,v],h=M[0],p=M[1],c+=2;break;case\"C\":D=n.slice(c,c+6),o=D[0],a=D[1],s=D[2],l=D[3],m=D[4],v=D[5],e.bezierCurveTo(o,a,s,l,m,v),A=[m,v],h=A[0],p=A[1],c+=6;break;case\"Q\":R=n.slice(c,c+4),o=R[0],a=R[1],m=R[2],v=R[3],e.quadraticCurveTo(o,a,m,v),E=[m,v],h=E[0],p=E[1],c+=4;break;case\"A\":for(O=n.slice(c,c+7),d=O[0],f=O[1],y=O[2],u=O[3],g=O[4],m=O[5],v=O[6],_=r.arc_to_bezier(h,p,d,f,-y,u,1-g,m,v),b=0,w=_.length;w>b;b++)k=_[b],o=k[0],a=k[1],s=k[2],l=k[3],m=k[4],v=k[5],e.bezierCurveTo(o,a,s,l,m,v);C=[m,v],h=C[0],p=C[1],c+=7;break;default:throw new Error(\"unexpected command: \"+i)}},o.prototype.draw_legend=function(t,e,n,i,r){return this._generic_line_legend(t,e,n,i,r)},o}(o.View),s=function(n){function i(){return c=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=a,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend({},i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(o.Model),{Model:s,View:a}})}.call(this),function(){i(\"palettes/colorbrewer\",[],function(){var t;return t={YlGn:{3:[16252089,11394446,3253076],4:[16777164,12773017,7915129,2327619],5:[16777164,12773017,7915129,3253076,26679],6:[16777164,14282915,11394446,7915129,3253076,26679],7:[16777164,14282915,11394446,7915129,4303709,2327619,23090],8:[16777189,16252089,14282915,11394446,7915129,4303709,2327619,23090],9:[16777189,16252089,14282915,11394446,7915129,4303709,2327619,26679,17705]},YlGnBu:{3:[15595697,8375739,2916280],4:[16777164,10607284,4306628,2252456],5:[16777164,10607284,4306628,2916280,2438292],6:[16777164,13101492,8375739,4306628,2916280,2438292],7:[16777164,13101492,8375739,4306628,1937856,2252456,797828],8:[16777177,15595697,13101492,8375739,4306628,1937856,2252456,797828],9:[16777177,15595697,13101492,8375739,4306628,1937856,2252456,2438292,531800]},GnBu:{3:[14742491,11066805,4432586],4:[15792616,12248252,8113348,2854078],5:[15792616,12248252,8113348,4432586,551084],6:[15792616,13429701,11066805,8113348,4432586,551084],7:[15792616,13429701,11066805,8113348,5157843,2854078,546974],8:[16252144,14742491,13429701,11066805,8113348,5157843,2854078,546974],9:[16252144,14742491,13429701,11066805,8113348,5157843,2854078,551084,540801]},BuGn:{3:[15070713,10082505,2925151],4:[15595771,11723490,6734500,2329413],5:[15595771,11723490,6734500,2925151,27948],6:[15595771,13429990,10082505,6734500,2925151,27948],7:[15595771,13429990,10082505,6734500,4304502,2329413,22564],8:[16252157,15070713,13429990,10082505,6734500,4304502,2329413,22564],9:[16252157,15070713,13429990,10082505,6734500,4304502,2329413,27948,17435]},PuBuGn:{3:[15524592,10927579,1872025],4:[16183287,12437985,6793679,164234],5:[16183287,12437985,6793679,1872025,93273],6:[16183287,13685222,10927579,6793679,1872025,93273],7:[16183287,13685222,10927579,6793679,3576e3,164234,91216],8:[16775163,15524592,13685222,10927579,6793679,3576e3,164234,91216],9:[16775163,15524592,13685222,10927579,6793679,3576e3,164234,93273,83510]},PuBu:{3:[15525874,10927579,2854078],4:[15855350,12437985,7645647,356528],5:[15855350,12437985,7645647,2854078,285325],6:[15855350,13685222,10927579,7645647,2854078,285325],7:[15855350,13685222,10927579,7645647,3576e3,356528,216699],8:[16775163,15525874,13685222,10927579,7645647,3576e3,356528,216699],9:[16775163,15525874,13685222,10927579,7645647,3576e3,356528,285325,145496]},BuPu:{3:[14740724,10403034,8935079],4:[15595771,11783651,9213638,8929693],5:[15595771,11783651,9213638,8935079,8458108],6:[15595771,12571622,10403034,9213638,8935079,8458108],7:[15595771,12571622,10403034,9213638,9202609,8929693,7209323],8:[16252157,14740724,12571622,10403034,9213638,9202609,8929693,7209323],9:[16252157,14740724,12571622,10403034,9213638,9202609,8929693,8458108,5046347]},RdPu:{3:[16638173,16424885,12917642],4:[16706530,16495801,16214177,11403646],5:[16706530,16495801,16214177,12917642,7995767],6:[16706530,16565696,16424885,16214177,12917642,7995767],7:[16706530,16565696,16424885,16214177,14496919,11403646,7995767],8:[16775155,16638173,16565696,16424885,16214177,14496919,11403646,7995767],9:[16775155,16638173,16565696,16424885,16214177,14496919,11403646,7995767,4784234]},PuRd:{3:[15196655,13210823,14490743],4:[15855350,14136792,14640560,13505110],5:[15855350,14136792,14640560,14490743,9961539],6:[15855350,13941210,13210823,14640560,14490743,9961539],7:[15855350,13941210,13210823,14640560,15149450,13505110,9502783],8:[16250105,15196655,13941210,13210823,14640560,15149450,13505110,9502783],9:[16250105,15196655,13941210,13210823,14640560,15149450,13505110,9961539,6750239]},OrRd:{3:[16705736,16628612,14895667],4:[16707801,16632970,16551257,14102559],5:[16707801,16632970,16551257,14895667,11730944],6:[16707801,16635038,16628612,16551257,14895667,11730944],7:[16707801,16635038,16628612,16551257,15689032,14102559,10027008],8:[16775148,16705736,16635038,16628612,16551257,15689032,14102559,10027008],9:[16775148,16705736,16635038,16628612,16551257,15689032,14102559,11730944,8323072]},YlOrRd:{3:[16772512,16691788,15743776],4:[16777138,16698460,16616764,14883356],5:[16777138,16698460,16616764,15743776,12386342],6:[16777138,16701814,16691788,16616764,15743776,12386342],7:[16777138,16701814,16691788,16616764,16535082,14883356,11599910],8:[16777164,16772512,16701814,16691788,16616764,16535082,14883356,11599910],9:[16777164,16772512,16701814,16691788,16616764,16535082,14883356,12386342,8388646]},YlOrBr:{3:[16775100,16696399,14245646],4:[16777172,16701838,16685353,13388802],5:[16777172,16701838,16685353,14245646,10040324],6:[16777172,16704401,16696399,16685353,14245646,10040324],7:[16777172,16704401,16696399,16685353,15495188,13388802,9186564],8:[16777189,16775100,16704401,16696399,16685353,15495188,13388802,9186564],9:[16777189,16775100,16704401,16696399,16685353,15495188,13388802,10040324,6694150]},Purples:{3:[15724021,12369372,7695281],4:[15921399,13355490,10394312,6967715],5:[15921399,13355490,10394312,7695281,5515151],6:[15921399,14342891,12369372,10394312,7695281,5515151],7:[15921399,14342891,12369372,10394312,8420794,6967715,4854918],8:[16579581,15724021,14342891,12369372,10394312,8420794,6967715,4854918],9:[16579581,15724021,14342891,12369372,10394312,8420794,6967715,5515151,4128893]},Blues:{3:[14609399,10406625,3244733],4:[15725567,12441575,7057110,2191797],5:[15725567,12441575,7057110,3244733,545180],6:[15725567,13032431,10406625,7057110,3244733,545180],7:[15725567,13032431,10406625,7057110,4362950,2191797,542100],8:[16251903,14609399,13032431,10406625,7057110,4362950,2191797,542100],9:[16251903,14609399,13032431,10406625,7057110,4362950,2191797,545180,536683]},Greens:{3:[15070688,10607003,3253076],4:[15595753,12248243,7652470,2329413],5:[15595753,12248243,7652470,3253076,27948],6:[15595753,13101504,10607003,7652470,3253076,27948],7:[15595753,13101504,10607003,7652470,4303709,2329413,23090],8:[16252149,15070688,13101504,10607003,7652470,4303709,2329413,23090],9:[16252149,15070688,13101504,10607003,7652470,4303709,2329413,27948,17435]},Oranges:{3:[16705230,16625259,15095053],4:[16707038,16629381,16616764,14239489],5:[16707038,16629381,16616764,15095053,10892803],6:[16707038,16634018,16625259,16616764,15095053,10892803],7:[16707038,16634018,16625259,16616764,15821075,14239745,9186564],8:[16774635,16705230,16634018,16625259,16616764,15821075,14239745,9186564],9:[16774635,16705230,16634018,16625259,16616764,15821075,14239745,10892803,8333060]},Reds:{3:[16703698,16552562,14560550],4:[16704985,16559761,16476746,13309981],5:[16704985,16559761,16476746,14560550,10817301],6:[16704985,16563105,16552562,16476746,14560550,10817301],7:[16704985,16563105,16552562,16476746,15678252,13309981,10027021],8:[16774640,16703698,16563105,16552562,16476746,15678252,13309981,10027021],9:[16774640,16703698,16563105,16552562,16476746,15678252,13309981,10817301,6750221]},Greys:{3:[15790320,12434877,6513507],4:[16250871,13421772,9868950,5395026],5:[16250871,13421772,9868950,6513507,2434341],6:[16250871,14277081,12434877,9868950,6513507,2434341],7:[16250871,14277081,12434877,9868950,7566195,5395026,2434341],8:[16777215,15790320,14277081,12434877,9868950,7566195,5395026,2434341],9:[16777215,15790320,14277081,12434877,9868950,7566195,5395026,2434341,0]},PuOr:{3:[15835968,16250871,10063555],4:[15098113,16627811,11709394,6175897],5:[15098113,16627811,16250871,11709394,6175897],6:[11753478,15835968,16703670,14211819,10063555,5515144],7:[11753478,15835968,16703670,16250871,14211819,10063555,5515144],8:[11753478,14713364,16627811,16703670,14211819,11709394,8418220,5515144],9:[11753478,14713364,16627811,16703670,16250871,14211819,11709394,8418220,5515144],10:[8338184,11753478,14713364,16627811,16703670,14211819,11709394,8418220,5515144,2949195],11:[8338184,11753478,14713364,16627811,16703670,16250871,14211819,11709394,8418220,5515144,2949195]},BrBG:{3:[14201701,16119285,5944492],4:[10903834,14664317,8441281,99697],5:[10903834,14664317,16119285,8441281,99697],6:[9195786,14201701,16181443,13101797,5944492,91742],7:[9195786,14201701,16181443,16119285,13101797,5944492,91742],8:[9195786,12550445,14664317,16181443,13101797,8441281,3512207,91742],9:[9195786,12550445,14664317,16181443,16119285,13101797,8441281,3512207,91742],10:[5517317,9195786,12550445,14664317,16181443,13101797,8441281,3512207,91742,15408],11:[5517317,9195786,12550445,14664317,16181443,16119285,13101797,8441281,3512207,91742,15408]},PRGn:{3:[11505091,16250871,8372091],4:[8073876,12756431,10935200,34871],5:[8073876,12756431,16250871,10935200,34871],6:[7744131,11505091,15193320,14282963,8372091,1800247],7:[7744131,11505091,15193320,16250871,14282963,8372091,1800247],8:[7744131,10055851,12756431,15193320,14282963,10935200,5942881,1800247],9:[7744131,10055851,12756431,15193320,16250871,14282963,10935200,5942881,1800247],10:[4194379,7744131,10055851,12756431,15193320,14282963,10935200,5942881,1800247,17435],11:[4194379,7744131,10055851,12756431,15193320,16250871,14282963,10935200,5942881,1800247,17435]},PiYG:{3:[15311817,16250871,10606442],4:[13638795,15840986,12116358,5090342],5:[13638795,15840986,16250871,12116358,5090342],6:[12917629,15311817,16638191,15136208,10606442,5083681],7:[12917629,15311817,16638191,16250871,15136208,10606442,5083681],8:[12917629,14579630,15840986,16638191,15136208,12116358,8371265,5083681],9:[12917629,14579630,15840986,16638191,16250871,15136208,12116358,8371265,5083681],10:[9306450,12917629,14579630,15840986,16638191,15136208,12116358,8371265,5083681,2581529],11:[9306450,12917629,14579630,15840986,16638191,16250871,15136208,12116358,8371265,5083681,2581529]},RdBu:{3:[15698530,16250871,6793679],4:[13238304,16033154,9618910,356784],5:[13238304,16033154,16250871,9618910,356784],6:[11671595,15698530,16636871,13755888,6793679,2188972],7:[11671595,15698530,16636871,16250871,13755888,6793679,2188972],8:[11671595,14049357,16033154,16636871,13755888,9618910,4428739,2188972],9:[11671595,14049357,16033154,16636871,16250871,13755888,9618910,4428739,2188972],10:[6750239,11671595,14049357,16033154,16636871,13755888,9618910,4428739,2188972,340065],11:[6750239,11671595,14049357,16033154,16636871,16250871,13755888,9618910,4428739,2188972,340065]},RdGy:{3:[15698530,16777215,10066329],4:[13238304,16033154,12237498,4210752],5:[13238304,16033154,16777215,12237498,4210752],6:[11671595,15698530,16636871,14737632,10066329,5066061],7:[11671595,15698530,16636871,16777215,14737632,10066329,5066061],8:[11671595,14049357,16033154,16636871,14737632,12237498,8882055,5066061],9:[11671595,14049357,16033154,16636871,16777215,14737632,12237498,8882055,5066061],10:[6750239,11671595,14049357,16033154,16636871,14737632,12237498,8882055,5066061,1710618],11:[6750239,11671595,14049357,16033154,16636871,16777215,14737632,12237498,8882055,5066061,1710618]},RdYlBu:{3:[16551257,16777151,9551835],4:[14096668,16625249,11262441,2915254],5:[14096668,16625249,16777151,11262441,2915254],6:[14102567,16551257,16703632,14742520,9551835,4552116],7:[14102567,16551257,16703632,16777151,14742520,9551835,4552116],8:[14102567,16018755,16625249,16703632,14742520,11262441,7646673,4552116],9:[14102567,16018755,16625249,16703632,16777151,14742520,11262441,7646673,4552116],10:[10813478,14102567,16018755,16625249,16703632,14742520,11262441,7646673,4552116,3225237],11:[10813478,14102567,16018755,16625249,16703632,16777151,14742520,11262441,7646673,4552116,3225237]},Spectral:{3:[16551257,16777151,10081684],4:[14096668,16625249,11263396,2851770],5:[14096668,16625249,16777151,11263396,2851770],6:[13975119,16551257,16703627,15136152,10081684,3311805],7:[13975119,16551257,16703627,16777151,15136152,10081684,3311805],8:[13975119,16018755,16625249,16703627,15136152,11263396,6734501,3311805],9:[13975119,16018755,16625249,16703627,16777151,15136152,11263396,6734501,3311805],10:[10355010,13975119,16018755,16625249,16703627,15136152,11263396,6734501,3311805,6180770],11:[10355010,13975119,16018755,16625249,16703627,16777151,15136152,11263396,6734501,3311805,6180770]},RdYlGn:{3:[16551257,16777151,9555808],4:[14096668,16625249,10934634,1742401],5:[14096668,16625249,16777151,10934634,1742401],6:[14102567,16551257,16703627,14282635,9555808,1742928],7:[14102567,16551257,16703627,16777151,14282635,9555808,1742928],8:[14102567,16018755,16625249,16703627,14282635,10934634,6733155,1742928],9:[14102567,16018755,16625249,16703627,16777151,14282635,10934634,6733155,1742928],10:[10813478,14102567,16018755,16625249,16703627,14282635,10934634,6733155,1742928,26679],11:[10813478,14102567,16018755,16625249,16703627,16777151,14282635,10934634,6733155,1742928,26679]}}\n",
" })}.call(this),function(){i(\"palettes/palettes\",[\"./colorbrewer\"],function(t){var e,n,i,r,o;e={};for(i in t){n=t[i];for(r in n)o=n[r],e[\"\"+i+\"-\"+r]=o.reverse()}return{all_palettes:e}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/image\",[\"underscore\",\"renderer/properties\",\"mapper/linear_color_mapper\",\"palettes/palettes\",\"./glyph\"],function(t,n,i,r,o){var s,a,l,c,u;return l=r.all_palettes,a=function(n){function r(){return c=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype._properties=[],r.prototype.initialize=function(t){var e;return e=this.mget(\"glyphspec\"),this._fields=null!=e.rows?[\"image:array\",\"rows\",\"cols\",\"x\",\"y\",\"dw\",\"dh\",\"palette:string\",\"reserve_val\",\"reserve_color\"]:[\"image:array\",\"x\",\"y\",\"dw\",\"dh\",\"palette:string\",\"reserve_val\",\"reserve_color\"],r.__super__.initialize.call(this,t)},r.prototype._set_data=function(e){var n,r,o,s,a,c,u,h,p,d,f;for(this.data=e,(null==this.image_data||this.image_data.length!==this.image.length)&&(this.image_data=new Array(this.image.length)),(null==this.width||this.width.length!==this.image.length)&&(this.width=new Array(this.image.length)),(null==this.height||this.height.length!==this.image.length)&&(this.height=new Array(this.image.length)),f=[],c=p=0,d=this.image.length;d>=0?d>p:p>d;c=d>=0?++p:--p)null!=this.rows?(this.height[c]=this.rows[c],this.width[c]=this.cols[c]):(this.height[c]=this.image[c].length,this.width[c]=this.image[c][0].length),o=document.createElement(\"canvas\"),o.width=this.width[c],o.height=this.height[c],a=o.getContext(\"2d\"),u=a.getImageData(0,0,this.width[c],this.height[c]),s=new i.Model({palette:l[this.palette[c]],reserve_val:this.reserve_val,reserve_color:this.reserve_color}),h=null!=this.rows?this.image[c]:t.flatten(this.image[c]),n=s.v_map_screen(h),r=new Uint8ClampedArray(n),u.data.set(r),a.putImageData(u,0,0),f.push(this.image_data[c]=o);return f},r.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector(\"x\",\"dw\",\"edge\",this.mget(\"glyphspec\").dilate),this.sh=this.distance_vector(\"y\",\"dh\",\"edge\",this.mget(\"glyphspec\").dilate)},r.prototype._render=function(t,e){var n,i,r,o,s;for(i=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),o=0,s=e.length;s>o;o++)n=e[o],null!=this.image_data[n]&&(isNaN(this.sx[n]+this.sy[n]+this.sw[n]+this.sh[n])||(r=this.sy[n],t.translate(0,r),t.scale(1,-1),t.translate(0,-r),t.drawImage(this.image_data[n],0|this.sx[n],0|this.sy[n],this.sw[n],this.sh[n]),t.translate(0,r),t.scale(1,-1),t.translate(0,-r)));return t.setImageSmoothingEnabled(i)},r}(o.View),s=function(n){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=a,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{level:\"underlay\",dilate:!1})},i}(o.Model),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/image_rgba\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a,l;return s=n.glyph_properties,o=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype._properties=[],i.prototype.initialize=function(t){var e;return e=this.mget(\"glyphspec\"),this._fields=null!=e.rows?[\"image:array\",\"rows\",\"cols\",\"x\",\"y\",\"dw\",\"dh\"]:[\"image:array\",\"x\",\"y\",\"dw\",\"dh\"],i.__super__.initialize.call(this,t)},i.prototype._set_data=function(){var e,n,i,r,o,s,a,l,c,u,h,p,d,f;for((null==this.image_data||this.image_data.length!==this.image.length)&&(this.image_data=new Array(this.image.length)),(null==this.width||this.width.length!==this.image.length)&&(this.width=new Array(this.image.length)),(null==this.height||this.height.length!==this.image.length)&&(this.height=new Array(this.image.length)),f=[],a=u=0,p=this.image.length;p>=0?p>u:u>p;a=p>=0?++u:--u){if(null!=this.rows?(this.height[a]=this.rows[a],this.width[a]=this.cols[a]):(this.height[a]=this.image[a].length,this.width[a]=this.image[a][0].length),i=document.createElement(\"canvas\"),i.width=this.width[a],i.height=this.height[a],o=i.getContext(\"2d\"),l=o.getImageData(0,0,this.width[a],this.height[a]),null!=this.rows)l.data.set(new Uint8ClampedArray(this.image[a]));else{for(s=t.flatten(this.image[a]),e=new ArrayBuffer(4*s.length),r=new Uint32Array(e),c=h=0,d=s.length;d>=0?d>h:h>d;c=d>=0?++h:--h)r[c]=s[c];n=new Uint8ClampedArray(e),l.data.set(n)}o.putImageData(l,0,0),f.push(this.image_data[a]=i)}return f},i.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector(\"x\",\"dw\",\"edge\",this.mget(\"glyphspec\").dilate),this.sh=this.distance_vector(\"y\",\"dh\",\"edge\",this.mget(\"glyphspec\").dilate)},i.prototype._render=function(t,e){var n,i,r,o,s;for(i=t.getImageSmoothingEnabled(),t.setImageSmoothingEnabled(!1),o=0,s=e.length;s>o;o++)n=e[o],isNaN(this.sx[n]+this.sy[n]+this.sw[n]+this.sh[n])||(r=this.sy[n],t.translate(0,r),t.scale(1,-1),t.translate(0,-r),t.drawImage(this.image_data[n],0|this.sx[n],0|this.sy[n],this.sw[n],this.sh[n]),t.translate(0,r),t.scale(1,-1),t.translate(0,-r));return t.setImageSmoothingEnabled(i)},i}(i.View),r=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{level:\"underlay\",dilate:!1})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/image_url\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a,l;return s=n.glyph_properties,o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"url:string\",\"x\",\"y\",\"w\",\"h\",\"angle\"],n.prototype._properties=[],n.prototype._set_data=function(t){var e;return this.data=t,this.image=function(){var t,n,i,r;for(i=this.url,r=[],t=0,n=i.length;n>t;t++)e=i[t],r.push(null);return r}.call(this),this.need_load=function(){var t,n,i,r;for(i=this.url,r=[],t=0,n=i.length;n>t;t++)e=i[t],r.push(!0);return r}.call(this),this.loaded=function(){var t,n,i,r;for(i=this.url,r=[],t=0,n=i.length;n>t;t++)e=i[t],r.push(!1);return r}.call(this)},n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector(\"x\",\"w\",\"edge\",this.mget(\"glyphspec\").dilate),this.sh=this.distance_vector(\"y\",\"h\",\"edge\",this.mget(\"glyphspec\").dilate)},n.prototype._render=function(t,e){var n,i,r,o,s,a=this;for(s=[],r=0,o=e.length;o>r;r++)n=e[r],isNaN(this.sx[n]+this.sy[n]+this.angle[n])||(this.need_load[n]?(i=new Image,i.onload=function(e,n){return function(){var i;return a.loaded[n]=!0,a.image[n]=e,t.save(),t.beginPath(),i=a.plot_view.frame,t.rect(i.get(\"left\")+1,i.get(\"bottom\")+1,i.get(\"width\")-2,i.get(\"height\")-2),t.clip(),a._render_image(t,n,e),t.restore()}}(i,n),i.src=this.url[n],s.push(this.need_load[n]=!1)):s.push(this.loaded[n]?this._render_image(t,n,this.image[n]):void 0));return s},n.prototype._final_sx_sy=function(){var t,e=this;switch(t=this.mget(\"glyphspec\").anchor||\"top_left\"){case\"top_left\":return function(t){return[e.sx[t],e.sy[t]]};case\"top_center\":return function(t){return[e.sx[t]-e.sw[t]/2,e.sy[t]]};case\"top_right\":return function(t){return[e.sx[t]-e.sw[t],e.sy[t]]};case\"right_center\":return function(t){return[e.sx[t]-e.sw[t],e.sy[t]-e.sh[t]/2]};case\"bottom_right\":return function(t){return[e.sx[t]-e.sw[t],e.sy[t]-e.sh[t]]};case\"bottom_center\":return function(t){return[e.sx[t]-e.sw[t]/2,e.sy[t]-e.sh[t]]};case\"bottom_left\":return function(t){return[e.sx[t],e.sy[t]-e.sh[t]]};case\"left_center\":return function(t){return[e.sx[t],e.sy[t]-e.sh[t]/2]};case\"center\":return function(t){return[e.sx[t]-e.sw[t]/2,e.sy[t]-e.sh[t]/2]}}},n.prototype._render_image=function(t,e,n){var i,r,o;return isNaN(this.sw[e])&&(this.sw[e]=n.width),isNaN(this.sh[e])&&(this.sh[e]=n.height),o=this._final_sx_sy()(e),i=o[0],r=o[1],this.angle[e]?(t.translate(i,r),t.rotate(this.angle[e]),t.drawImage(n,0,0,this.sw[e],this.sh[e]),t.rotate(-this.angle[e]),t.translate(-i,-r)):t.drawImage(n,i,r,this.sw[e],this.sh[e])},n}(i.View),r=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{level:\"underlay\"})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/inverted_triangle\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\",\"size\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u,h,p;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),p=[],u=0,h=e.length;h>u;u++)l=e[u],isNaN(i[l]+r[l]+o[l])||(s=o[l]*Math.sqrt(3)/6,c=o[l]/2,a=o[l]*Math.sqrt(3)/2,t.beginPath(),t.moveTo(i[l]-c,r[l]-s),t.lineTo(i[l]+c,r[l]-s),t.lineTo(i[l],r[l]-s+a),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,l),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,l),p.push(t.stroke())):p.push(void 0));return p},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/line\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e,n){var i,r,o,s;for(i=!1,n.line_properties.set(t,n),o=0,s=e.length;s>o;o++)r=e[o],isNaN(this.sx[r]+this.sy[r])&&i?(t.stroke(),t.beginPath(),i=!1):i?t.lineTo(this.sx[r],this.sy[r]):(t.beginPath(),t.moveTo(this.sx[r],this.sy[r]),i=!0);return i?t.stroke():void 0},n.prototype.draw_legend=function(t,e,n,i,r){return this._generic_line_legend(t,e,n,i,r)},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/multi_line\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"xs\",\"ys\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){return null},n.prototype._render=function(t,e,n){var i,r,o,s,a,l,c,u,h,p,d,f;for(f=[],c=0,h=e.length;h>c;c++){for(i=e[c],a=this.xs[i],l=this.ys[i],p=this.plot_view.map_to_screen(this.xs[i],this.glyph_props.xs.units,this.ys[i],this.glyph_props.ys.units,this.x_range_name,this.y_range_name),o=p[0],s=p[1],n.line_properties.set_vectorize(t,i),r=u=0,d=o.length;d>=0?d>u:u>d;r=d>=0?++u:--u)0!==r?isNaN(o[r])||isNaN(s[r])?(t.stroke(),t.beginPath()):t.lineTo(o[r],s[r]):(t.beginPath(),t.moveTo(o[r],s[r]));f.push(t.stroke())}return f},n.prototype.draw_legend=function(t,e,n,i,r){return this._generic_line_legend(t,e,n,i,r)},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/oval\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\",\"width\",\"height\",\"angle\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],this.sw=this.distance_vector(\"x\",\"width\",\"center\"),this.sh=this.distance_vector(\"y\",\"height\",\"center\")},n.prototype._render=function(t,e,n,i,r,o,s){var a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.sw),null==s&&(s=this.sh),u=[],l=0,c=e.length;c>l;l++)a=e[l],isNaN(i[a]+r[a]+o[a]+s[a]+this.angle[a])||(t.translate(i[a],r[a]),t.rotate(this.angle[a]),t.beginPath(),t.moveTo(0,-s[a]/2),t.bezierCurveTo(o[a]/2,-s[a]/2,o[a]/2,s[a]/2,0,s[a]/2),t.bezierCurveTo(-o[a]/2,s[a]/2,-o[a]/2,-s[a]/2,0,-s[a]/2),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,a),t.stroke()),t.rotate(-this.angle[a]),u.push(t.translate(-i[a],-r[a])));return u},n.prototype.draw_legend=function(t,e,n,i,r){var o,s,a,l,c,u,h,p,d;return a=null!=(d=this.get_reference_point())?d:0,s=[a],h={},h[a]=(e+n)/2,p={},p[a]=(i+r)/2,l=this.sw[a]/this.sh[a],o=.8*Math.min(Math.abs(n-e),Math.abs(r-i)),u={},c={},l>1?(u[a]=o,c[a]=o/l):(u[a]=o*l,c[a]=o),this._render(t,s,this.glyph_props,h,p,u,c)},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0,angle:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/patch\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e,n){var i,r,o,s,a;if(n.fill_properties.do_fill){for(n.fill_properties.set(t,n),r=0,s=e.length;s>r;r++)i=e[r],0!==i?isNaN(this.sx[i]+this.sy[i])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(this.sx[i],this.sy[i]):(t.beginPath(),t.moveTo(this.sx[i],this.sy[i]));t.closePath(),t.fill()}if(n.line_properties.do_stroke){for(n.line_properties.set(t,n),o=0,a=e.length;a>o;o++)i=e[o],0!==i?isNaN(this.sx[i]+this.sy[i])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(this.sx[i],this.sy[i]):(t.beginPath(),t.moveTo(this.sx[i],this.sy[i]));return t.closePath(),t.stroke()}},n.prototype.draw_legend=function(t,e,n,i,r){return this._generic_area_legend(t,e,n,i,r)},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/patches\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,i,r){var o,s,a,l,c;return a=function(t,e,n,i){var r,o,s,a,l,c,u,h;for(o=!1,s=n[n.length-1],l=i[i.length-1],r=u=0,h=n.length;h>=0?h>u:u>h;r=h>=0?++u:--u)a=n[r],c=i[r],e>l!=e>c&&t>s+(e-l)/(c-l)*(a-s)&&(o=!o),s=a,l=c;return o},s=function(i){function r(){return l=r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype._fields=[\"xs\",\"ys\"],r.prototype._properties=[\"line\",\"fill\"],r.prototype._set_data=function(){var e,i,r,o,s,a,l,c;for(this.max_size=t.max(this.size),this.index=n(),i=[],e=l=0,c=this.xs.length;c>=0?c>l:l>c;e=c>=0?++l:--l)o=function(){var n,i,o,s;for(o=this.xs[e],s=[],n=0,i=o.length;i>n;n++)r=o[n],t.isNaN(r)||s.push(r);return s}.call(this),a=function(){var n,i,r,o;for(r=this.ys[e],o=[],n=0,i=r.length;i>n;n++)s=r[n],t.isNaN(s)||o.push(s);return o}.call(this),0!==o.length&&i.push([t.min(o),t.min(a),t.max(o),t.max(a),{i:e}]);return this.index.load(i)},r.prototype._map_data=function(){var t,e,n,i,r,o,s;for(this.sxs=[],this.sys=[],s=[],t=i=0,r=this.xs.length;r>=0?r>i:i>r;t=r>=0?++i:--i)o=this.plot_view.map_to_screen(this.xs[t],this.glyph_props.xs.units,this.ys[t],this.glyph_props.ys.units,this.x_range_name,this.y_range_name),e=o[0],n=o[1],this.sxs.push(e),s.push(this.sys.push(n));return s},r.prototype._mask_data=function(){var t,e,n,i,r,o,s,a,l;return\"screen\"===this.glyph_props.xs.units||\"screen\"===this.glyph_props.ys.units?this.all_indices:(i=this.plot_view.x_range,a=[i.get(\"start\"),i.get(\"end\")],e=a[0],n=a[1],s=this.plot_view.y_range,l=[s.get(\"start\"),s.get(\"end\")],r=l[0],o=l[1],function(){var i,s,a,l;for(a=this.index.search([e,r,n,o]),l=[],i=0,s=a.length;s>i;i++)t=a[i],l.push(t[4].i);return l}.call(this))},r.prototype._render=function(t,e,n){var i,r,o,s,a,l,c,u,h,p,d,f;for(f=[],a=0,u=e.length;u>a;a++){if(i=e[a],h=[this.sxs[i],this.sys[i]],o=h[0],s=h[1],n.fill_properties.do_fill){for(n.fill_properties.set_vectorize(t,i),r=l=0,p=o.length;p>=0?p>l:l>p;r=p>=0?++l:--l)0!==r?isNaN(o[r]+s[r])?(t.closePath(),t.fill(),t.beginPath()):t.lineTo(o[r],s[r]):(t.beginPath(),t.moveTo(o[r],s[r]));t.closePath(),t.fill()}if(n.line_properties.do_stroke){for(n.line_properties.set_vectorize(t,i),r=c=0,d=o.length;d>=0?d>c:c>d;r=d>=0?++c:--c)0!==r?isNaN(o[r]+s[r])?(t.closePath(),t.stroke(),t.beginPath()):t.lineTo(o[r],s[r]):(t.beginPath(),t.moveTo(o[r],s[r]));t.closePath(),f.push(t.stroke())}else f.push(void 0)}return f},r.prototype._hit_point=function(t){var e,n,i,r,o,s,l,c,u,h,p,d,f;for(d=[t.vx,t.vy],l=d[0],c=d[1],o=this.plot_view.canvas.vx_to_sx(l),s=this.plot_view.canvas.vy_to_sy(c),u=this.xmapper.map_from_target(l),h=this.ymapper.map_from_target(c),e=function(){var t,e,n,i;for(n=this.index.search([u,h,u,h]),i=[],t=0,e=n.length;e>t;t++)u=n[t],i.push(u[4].i);return i}.call(this),n=[],i=p=0,f=e.length;f>=0?f>p:p>f;i=f>=0?++p:--p)r=e[i],a(o,s,this.sxs[r],this.sys[r])&&n.push(r);return n},r.prototype.draw_legend=function(t,e,n,i,r){return this._generic_area_legend(t,e,n,i,r)},r}(r.View),o=function(n){function i(){return c=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(r.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/cross\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(i[s]+r[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(i[s],r[s]+a),t.lineTo(i[s],r[s]-a),t.moveTo(i[s]-a,r[s]),t.lineTo(i[s]+a,r[s]),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),u.push(t.stroke())):u.push(void 0));return u},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/quad\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,i,r){var o,s,a,l;return s=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"right\",\"left\",\"bottom\",\"top\"],n.prototype._properties=[\"line\",\"fill\"],n.prototype._map_data=function(){var t,e;return t=this.plot_view.map_to_screen(this.left,this.glyph_props.left.units,this.top,this.glyph_props.top.units,this.x_range_name,this.y_range_name),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.right,this.glyph_props.right.units,this.bottom,this.glyph_props.bottom.units,this.x_range_name,this.y_range_name),this.sx1=e[0],this.sy1=e[1],e},n.prototype._render=function(t,e,n,i,r,o,s){var a,l,c,u;for(null==i&&(i=this.sx0),null==r&&(r=this.sx1),null==o&&(o=this.sy0),null==s&&(s=this.sy1),u=[],l=0,c=e.length;c>l;l++)a=e[l],isNaN(i[a]+o[a]+r[a]+s[a])||(n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,a),t.fillRect(i[a],o[a],r[a]-i[a],s[a]-o[a])),n.line_properties.do_stroke?(t.beginPath(),t.rect(i[a],o[a],r[a]-i[a],s[a]-o[a]),n.line_properties.set_vectorize(t,a),u.push(t.stroke())):u.push(void 0));return u},n.prototype._hit_point=function(t){var e,n,i,r,o,s,a,l,c;for(l=[t.vx,t.vy],o=l[0],s=l[1],i=this.plot_view.canvas.vx_to_sx(o),r=this.plot_view.canvas.vy_to_sy(s),e=[],n=a=0,c=this.sx0.length;c>=0?c>a:a>c;n=c>=0?++a:--a)i>=this.sx0[n]&&i<=this.sx1[n]&&r>=this.sy0[n]&&r<this.sy1[n]&&e.push(n);return e},n.prototype.draw_legend=function(t,e,n,i,r){return this._generic_area_legend(t,e,n,i,r)},n}(r.View),o=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(r.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/quadratic\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x0\",\"y0\",\"x1\",\"y1\",\"cx\",\"cy\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t,e,n;return t=this.plot_view.map_to_screen(this.x0,this.glyph_props.x0.units,this.y0,this.glyph_props.y0.units,this.x_range_name,this.y_range_name),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.x1,this.glyph_props.x1.units,this.y1,this.glyph_props.y1.units,this.x_range_name,this.y_range_name),this.sx1=e[0],this.sy1=e[1],n=this.plot_view.map_to_screen(this.cx,this.glyph_props.cx.units,this.cy,this.glyph_props.cy.units,this.x_range_name,this.y_range_name),this.scx=n[0],this.scy=n[1],n},n.prototype._render=function(t,e,n){var i,r,o,s;if(n.line_properties.do_stroke){for(s=[],r=0,o=e.length;o>r;r++)i=e[r],isNaN(this.sx0[i]+this.sy0[i]+this.sx1[i]+this.sy1[i]+this.scx[i]+this.scy[i])||(t.beginPath(),t.moveTo(this.sx0[i],this.sy0[i]),t.quadraticCurveTo(this.scx[i],this.scy[i],this.sx1[i],this.sy1[i]),n.line_properties.set_vectorize(t,i),s.push(t.stroke()));return s}},n.prototype.draw_legend=function(t,e,n,i,r){return this._generic_line_legend(t,e,n,i,r)},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/ray\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\",\"angle\",\"length\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t,e,n,i,r,o,s,a;for(o=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=o[0],this.sy=o[1],this.length=this.distance_vector(\"x\",\"length\",\"edge\"),i=this.plot_view.frame.get(\"width\"),t=this.plot_view.frame.get(\"height\"),n=2*(i+t),a=[],e=r=0,s=this.length.length;s>=0?s>r:r>s;e=s>=0?++r:--r)a.push(0===this.length[e]?this.length[e]=n:void 0);return a},n.prototype._render=function(t,e,n){var i,r,o,s;if(n.line_properties.do_stroke){for(s=[],r=0,o=e.length;o>r;r++)i=e[r],isNaN(this.sx[i]+this.sy[i]+this.angle[i]+this.length[i])||(t.translate(this.sx[i],this.sy[i]),t.rotate(this.angle[i]),t.beginPath(),t.moveTo(0,0),t.lineTo(this.length[i],0),n.line_properties.set_vectorize(t,i),t.stroke(),t.rotate(-this.angle[i]),s.push(t.translate(-this.sx[i],-this.sy[i])));return s}},n.prototype.draw_legend=function(t,e,n,i,r){return this._generic_line_legend(t,e,n,i,r)},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/rect\",[\"underscore\",\"rbush\",\"renderer/properties\",\"./glyph\"],function(t,n,i,r){var o,s,a,l;return s=function(i){function r(){return a=r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype._fields=[\"x\",\"y\",\"width\",\"height\",\"angle\"],r.prototype._properties=[\"line\",\"fill\"],r.prototype._map_data=function(){var e,n,i,r,o,s;for(o=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),n=o[0],i=o[1],this.sw=this.distance_vector(\"x\",\"width\",\"center\",this.mget(\"glyphspec\").dilate),this.sh=this.distance_vector(\"y\",\"height\",\"center\",this.mget(\"glyphspec\").dilate),this.sx=new Array(n.length),this.sy=new Array(n.length),e=r=0,s=n.length;s>=0?s>r:r>s;e=s>=0?++r:--r)this.sx[e]=Math.abs(n[e]-this.sw[e])<2?Math.round(n[e]):n[e],this.sy[e]=Math.abs(i[e]-this.sh[e])<2?Math.round(i[e]):i[e];return this.max_width=t.max(this.width),this.max_height=t.max(this.height)},r.prototype._set_data=function(){var t,e,i,r;for(this.index=n(),e=[],t=i=0,r=this.x.length;r>=0?r>i:i>r;t=r>=0?++i:--i)isNaN(this.x[t]+this.y[t])||e.push([this.x[t],this.y[t],this.x[t],this.y[t],{i:t}]);return this.index.load(e)},r.prototype._render=function(t,e,n,i,r,o,s){var a,l,c,u,h;if(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.sw),null==s&&(s=this.sh),n.fill_properties.do_fill)for(l=0,u=e.length;u>l;l++)a=e[l],isNaN(i[a]+r[a]+o[a]+s[a]+this.angle[a])||(n.fill_properties.set_vectorize(t,a),this.angle[a]?(t.translate(i[a],r[a]),t.rotate(this.angle[a]),t.fillRect(-o[a]/2,-s[a]/2,o[a],s[a]),t.rotate(-this.angle[a]),t.translate(-i[a],-r[a])):t.fillRect(i[a]-o[a]/2,r[a]-s[a]/2,o[a],s[a]));if(n.line_properties.do_stroke){for(t.beginPath(),c=0,h=e.length;h>c;c++)a=e[c],isNaN(i[a]+r[a]+o[a]+s[a]+this.angle[a])||0!==o[a]&&0!==s[a]&&(this.angle[a]?(t.translate(i[a],r[a]),t.rotate(this.angle[a]),t.rect(-o[a]/2,-s[a]/2,o[a],s[a]),t.rotate(-this.angle[a]),t.translate(-i[a],-r[a])):t.rect(i[a]-o[a]/2,r[a]-s[a]/2,o[a],s[a]),n.line_properties.set_vectorize(t,a),t.stroke(),t.beginPath());return t.stroke()}},r.prototype._hit_rect=function(t){var e,n,i,r,o,s,a;return s=this.xmapper.v_map_from_target([t.vx0,t.vx1]),n=s[0],i=s[1],a=this.ymapper.v_map_from_target([t.vy0,t.vy1]),r=a[0],o=a[1],function(){var t,s,a,l;for(a=this.index.search([n,r,i,o]),l=[],t=0,s=a.length;s>t;t++)e=a[t],l.push(e[4].i);return l}.call(this)},r.prototype._hit_point=function(t){var e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O,j,P;for(O=[t.vx,t.vy],_=O[0],y=O[1],x=this.xmapper.map_from_target(_),T=this.ymapper.map_from_target(y),S=\"string\"==typeof x,A=\"string\"==typeof T,S||A?n=function(){var t,e,n;for(n=[],s=t=0,e=this.x.length;e>=0?e>t:t>e;s=e>=0?++t:--t)n.push(s);return n}.call(this):(\"screen\"===this.width_units||S?(l=this.max_width,S&&(l=this.xmapper.map_to_target(l)),g=_-2*l,m=_+2*l,j=this.xmapper.v_map_from_target([g,m]),k=j[0],C=j[1]):(k=x-2*this.max_width,C=x+2*this.max_width),\"screen\"===this.height_units||A?(a=this.max_height,A&&(a=this.ymapper.map_to_target(a)),v=y-2*a,b=y+2*a,P=this.ymapper.v_map_from_target([v,b]),M=P[0],D=P[1]):(M=T-2*this.max_height,D=T+2*this.max_height),n=function(){var t,e,n,i;\n",
" for(n=this.index.search([k,M,C,D]),i=[],t=0,e=n.length;e>t;t++)c=n[t],i.push(c[4].i);return i}.call(this)),o=[],R=0,E=n.length;E>R;R++)s=n[R],d=this.plot_view.canvas.vx_to_sx(\"screen\"===this.width_units||S?_:this.xmapper.map_to_target(x)),f=this.plot_view.canvas.vy_to_sy(\"screen\"===this.height_units||A?y:this.ymapper.map_to_target(T)),this.angle[s]&&(i=Math.sqrt(Math.pow(d-this.sx[s],2)+Math.pow(f-this.sy[s],2)),p=Math.sin(-this.angle[s]),e=Math.cos(-this.angle[s]),u=e*(d-this.sx[s])-p*(f-this.sy[s])+this.sx[s],h=p*(d-this.sx[s])+e*(f-this.sy[s])+this.sy[s],d=u,f=h),w=Math.abs(this.sx[s]-d)<=this.sw[s]/2,r=Math.abs(this.sy[s]-f)<=this.sh[s]/2,r&&w&&o.push(s);return o},r.prototype.draw_legend=function(t,e,n,i,r){return this._generic_area_legend(t,e,n,i,r)},r}(r.View),o=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0,angle:0,dilate:!1})},i}(r.Model),{Model:o,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/square\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),c=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(i[s]+r[s]+o[s])||(t.translate(i[s],r[s]),t.beginPath(),t.rect(-o[s]/2,-o[s]/2,o[s],o[s]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,s),t.stroke()),c.push(t.translate(-i[s],-r[s])));return c},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{size_units:\"screen\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/square_x\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(i[s]+r[s]+o[s])||(t.translate(i[s],r[s]),t.beginPath(),t.rect(-o[s]/2,-o[s]/2,o[s],o[s]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,s),t.stroke(),a=o[s]/2,t.moveTo(-a,+a),t.lineTo(+a,-a),t.moveTo(-a,-a),t.lineTo(+a,+a),t.stroke()),u.push(t.translate(-i[s],-r[s])));return u},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{size_units:\"screen\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/square_cross\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(i[s]+r[s]+o[s])||(t.translate(i[s],r[s]),t.beginPath(),t.rect(-o[s]/2,-o[s]/2,o[s],o[s]),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke&&(n.line_properties.set_vectorize(t,s),a=o[s]/2,t.moveTo(0,+a),t.lineTo(0,-a),t.moveTo(-a,0),t.lineTo(+a,0),t.stroke()),u.push(t.translate(-i[s],-r[s])));return u},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{size_units:\"screen\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/segment\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x0\",\"y0\",\"x1\",\"y1\"],n.prototype._properties=[\"line\"],n.prototype._map_data=function(){var t,e;return t=this.plot_view.map_to_screen(this.x0,this.glyph_props.x0.units,this.y0,this.glyph_props.y0.units,this.x_range_name,this.y_range_name),this.sx0=t[0],this.sy0=t[1],e=this.plot_view.map_to_screen(this.x1,this.glyph_props.x1.units,this.y1,this.glyph_props.y1.units,this.x_range_name,this.y_range_name),this.sx1=e[0],this.sy1=e[1],e},n.prototype._render=function(t,e,n){var i,r,o,s;if(n.line_properties.do_stroke){for(s=[],r=0,o=e.length;o>r;r++)i=e[r],isNaN(this.sx0[i]+this.sy0[i]+this.sx1[i]+this.sy1[i])||(t.beginPath(),t.moveTo(this.sx0[i],this.sy0[i]),t.lineTo(this.sx1[i],this.sy1[i]),n.line_properties.set_vectorize(t,i),s.push(t.stroke()));return s}},n.prototype.draw_legend=function(t,e,n,i,r){return this._generic_line_legend(t,e,n,i,r)},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/text\",[\"underscore\",\"renderer/properties\",\"./glyph\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._fields=[\"x\",\"y\",\"angle\",\"text:string\"],n.prototype._properties=[\"text\"],n.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],t},n.prototype._render=function(t,e,n){var i,r,o,s;for(s=[],r=0,o=e.length;o>r;r++)i=e[r],isNaN(this.sx[i]+this.sy[i]+this.angle[i])||(t.translate(this.sx[i],this.sy[i]),t.rotate(this.angle[i]),n.text_properties.set_vectorize(t,i),t.fillText(this.text[i],0,0),t.rotate(-this.angle[i]),s.push(t.translate(-this.sx[i],-this.sy[i])));return s},n.prototype.draw_legend=function(t,e,n,i,r){var o,s,a,l;return o=this.glyph_props,l=o.text_properties,t.save(),a=this.get_reference_point(),s=null!=a?a:o,l.set(t,s),t.font=l.font(12),t.textAlign=\"right\",t.textBaseline=\"middle\",t.fillText(\"txt\",n,(i+r)/2),t.restore()},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{text_font:\"helvetica\",text_font_size:\"12pt\",text_font_style:\"normal\",text_color:\"#444444\",text_alpha:1,text_align:\"left\",text_baseline:\"bottom\"})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/triangle\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\",\"fill\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u,h,p;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),p=[],u=0,h=e.length;h>u;u++)l=e[u],isNaN(i[l]+r[l]+o[l])||(s=o[l]*Math.sqrt(3)/6,c=o[l]/2,a=o[l]*Math.sqrt(3)/2,t.beginPath(),t.moveTo(i[l]-c,r[l]+s),t.lineTo(i[l]+c,r[l]+s),t.lineTo(i[l],r[l]+s-a),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,l),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,l),p.push(t.stroke())):p.push(void 0));return p},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/wedge\",[\"underscore\",\"rbush\",\"common/mathutils\",\"renderer/properties\",\"./glyph\"],function(t,n,i,r,o){var s,a,l,c;return a=function(r){function o(){return l=o.__super__.constructor.apply(this,arguments)}return e(o,r),o.prototype._fields=[\"x\",\"y\",\"radius\",\"start_angle\",\"end_angle\",\"direction:string\"],o.prototype._properties=[\"line\",\"fill\"],o.prototype._set_data=function(){var e,i,r,o;for(this.max_radius=t.max(this.radius),this.index=n(),i=[],e=r=0,o=this.x.length;o>=0?o>r:r>o;e=o>=0?++r:--r)isNaN(this.x[e]+this.y[e])||i.push([this.x[e],this.y[e],this.x[e],this.y[e],{i:e}]);return this.index.load(i)},o.prototype._map_data=function(){var t;return t=this.plot_view.map_to_screen(this.x,this.glyph_props.x.units,this.y,this.glyph_props.y.units,this.x_range_name,this.y_range_name),this.sx=t[0],this.sy=t[1],this.radius=this.distance_vector(\"x\",\"radius\",\"edge\")},o.prototype._render=function(t,e,n,i,r,o){var s,a,l,c;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.radius),c=[],a=0,l=e.length;l>a;a++)s=e[a],isNaN(i[s]+r[s]+o[s]+this.start_angle[s]+this.end_angle[s]+this.direction[s])||(t.beginPath(),t.arc(i[s],r[s],o[s],this.start_angle[s],this.end_angle[s],this.direction[s]),t.lineTo(i[s],r[s]),t.closePath(),n.fill_properties.do_fill&&(n.fill_properties.set_vectorize(t,s),t.fill()),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),c.push(t.stroke())):c.push(void 0));return c},o.prototype._hit_point=function(e){var n,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O,j,P,N,I,z,H;if(N=[e.vx,e.vy],m=N[0],b=N[1],k=this.xmapper.map_from_target(m),T=this.ymapper.map_from_target(b),\"screen\"===this.radius_units?(y=m-this.max_radius,v=m+this.max_radius,I=this.xmapper.v_map_from_target([y,v]),C=I[0],S=I[1],w=b-this.max_radius,x=b+this.max_radius,z=this.ymapper.v_map_from_target([w,x]),M=z[0],D=z[1]):(C=k-this.max_radius,S=k+this.max_radius,M=T-this.max_radius,D=T+this.max_radius),r=function(){var t,e,n,i;for(n=this.index.search([C,M,S,D]),i=[],t=0,e=n.length;e>t;t++)c=n[t],i.push(c[4].i);return i}.call(this),o=[],\"screen\"===this.radius_units)for(h=this.plot_view.canvas.vx_to_sx(m),f=this.plot_view.canvas.vy_to_sy(b),A=0,O=r.length;O>A;A++)l=r[A],u=Math.pow(this.radius[l],2),s=Math.pow(this.sx[l]-h,2)+Math.pow(this.sy[l]-f,2),u>=s&&o.push([l,s]);else for(R=0,j=r.length;j>R;R++)l=r[R],u=Math.pow(this.radius[l],2),p=this.xmapper.map_to_target(k),d=this.xmapper.map_to_target(this.x[l]),_=this.ymapper.map_to_target(T),g=this.ymapper.map_to_target(this.y[l]),s=Math.pow(p-d,2)+Math.pow(_-g,2),u>=s&&o.push([l,s]);for(a=[],E=0,P=o.length;P>E;E++)H=o[E],l=H[0],s=H[1],h=this.plot_view.canvas.vx_to_sx(m),f=this.plot_view.canvas.vy_to_sy(b),n=Math.atan2(f-this.sy[l],h-this.sx[l]),i.angle_between(-n,-this.start_angle[l],-this.end_angle[l],this.direction[l])&&a.push([l,s]);return a=t.chain(a).sortBy(function(t){return t[1]}).map(function(t){return t[0]}).value()},o.prototype.draw_legend=function(t,e,n,i,r){var o,s,a,l,c,u;return a=null!=(u=this.get_reference_point())?u:0,o=[a],l={},l[a]=(e+n)/2,c={},c[a]=(i+r)/2,s={},s[a]=.4*Math.min(Math.abs(n-e),Math.abs(r-i)),this._render(t,o,this.glyph_props,l,c,s)},o}(o.View),s=function(n){function i(){return c=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=a,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{direction:\"anticlock\",fill_color:\"gray\",fill_alpha:1,line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(o.Model),{Model:s,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/x\",[\"underscore\",\"renderer/properties\",\"./marker\"],function(t,n,i){var r,o,s,a;return o=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype._properties=[\"line\"],n.prototype._render=function(t,e,n,i,r,o){var s,a,l,c,u;for(null==i&&(i=this.sx),null==r&&(r=this.sy),null==o&&(o=this.size),u=[],l=0,c=e.length;c>l;l++)s=e[l],isNaN(i[s]+r[s]+o[s])||(a=o[s]/2,t.beginPath(),t.moveTo(i[s]-a,r[s]+a),t.lineTo(i[s]+a,r[s]-a),t.moveTo(i[s]-a,r[s]-a),t.lineTo(i[s]+a,r[s]+a),n.line_properties.do_stroke?(n.line_properties.set_vectorize(t,s),u.push(t.stroke())):u.push(void 0));return u},n}(i.View),r=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"Glyph\",i.prototype.display_defaults=function(){return t.extend(i.__super__.display_defaults.call(this),{line_color:\"red\",line_width:1,line_alpha:1,line_join:\"miter\",line_cap:\"butt\",line_dash:[],line_dash_offset:0})},i}(i.Model),{Model:r,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/glyph/glyph_factory\",[\"require\",\"exports\",\"module\",\"underscore\",\"common/has_parent\",\"common/plot_widget\",\"./annular_wedge\",\"./annulus\",\"./arc\",\"./asterisk\",\"./bezier\",\"./circle\",\"./circle_x\",\"./circle_cross\",\"./diamond\",\"./diamond_cross\",\"./gear\",\"./image\",\"./image_rgba\",\"./image_url\",\"./inverted_triangle\",\"./line\",\"./multi_line\",\"./oval\",\"./patch\",\"./patches\",\"./cross\",\"./quad\",\"./quadratic\",\"./ray\",\"./rect\",\"./square\",\"./square_x\",\"./square_cross\",\"./segment\",\"./text\",\"./triangle\",\"./wedge\",\"./x\",\"common/logging\"],function(t){var n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O,j,P,N,I,z,H,L,F,B;return F=t(\"underscore\"),i=t(\"common/has_parent\"),r=t(\"common/plot_widget\"),o=t(\"./annular_wedge\"),s=t(\"./annulus\"),a=t(\"./arc\"),l=t(\"./asterisk\"),c=t(\"./bezier\"),u=t(\"./circle\"),p=t(\"./circle_x\"),h=t(\"./circle_cross\"),f=t(\"./diamond\"),_=t(\"./diamond_cross\"),g=t(\"./gear\"),y=t(\"./image\"),v=t(\"./image_rgba\"),b=t(\"./image_url\"),w=t(\"./inverted_triangle\"),x=t(\"./line\"),C=t(\"./multi_line\"),S=t(\"./oval\"),T=t(\"./patch\"),M=t(\"./patches\"),d=t(\"./cross\"),D=t(\"./quad\"),A=t(\"./quadratic\"),R=t(\"./ray\"),E=t(\"./rect\"),j=t(\"./square\"),N=t(\"./square_x\"),P=t(\"./square_cross\"),O=t(\"./segment\"),I=t(\"./text\"),z=t(\"./triangle\"),H=t(\"./wedge\"),L=t(\"./x\"),k=t(\"common/logging\").logger,m={annular_wedge:o.Model,annulus:s.Model,arc:a.Model,asterisk:l.Model,bezier:c.Model,circle:u.Model,circle_x:p.Model,circle_cross:h.Model,diamond:f.Model,diamond_cross:_.Model,gear:g.Model,image:y.Model,image_rgba:v.Model,image_url:b.Model,inverted_triangle:w.Model,line:x.Model,multi_line:C.Model,oval:S.Model,patch:T.Model,patches:M.Model,cross:d.Model,quad:D.Model,quadratic:A.Model,ray:R.Model,square:j.Model,square_x:N.Model,square_cross:P.Model,rect:E.Model,segment:O.Model,text:I.Model,triangle:z.Model,wedge:H.Model,x:L.Model},n=function(t){function n(){return B=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=function(t,e){var n,i,r;return null==(null!=(r=t.glyphspec)?r.type:void 0)?void k.error(\"missing glyph type\"):(i=t.glyphspec.type,i in m?(n=m[i],k.debug(\"Creating glyph: \"+i),new n(t,e)):void k.error(\"unknown glyph type: \"+i))},n}(Backbone.Collection),{Collection:new n}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/guide/axis\",[\"underscore\",\"backbone\",\"kiwi\",\"common/has_parent\",\"common/layout_box\",\"common/logging\",\"common/plot_widget\",\"renderer/properties\"],function(t,n,i,r,o,s,a,l){var c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A;return m=l.glyph_properties,y=l.line_properties,w=l.text_properties,v=s.logger,b=Math.PI/2,c=\"alphabetic\",_=\"middle\",d=\"hanging\",f=\"left\",g=\"right\",p=\"center\",S={above:{parallel:0,normal:-b,horizontal:0,vertical:-b},below:{parallel:0,normal:b,horizontal:0,vertical:b},left:{parallel:-b,normal:0,horizontal:0,vertical:-b},right:{parallel:b,normal:0,horizontal:0,vertical:b}},M={above:{parallel:c,normal:_,horizontal:c,vertical:_},below:{parallel:d,normal:_,horizontal:d,vertical:_},left:{parallel:c,normal:_,horizontal:_,vertical:c},right:{parallel:c,normal:_,horizontal:_,vertical:c}},x={above:{parallel:p,normal:f,horizontal:p,vertical:f},below:{parallel:p,normal:f,horizontal:p,vertical:g},left:{parallel:p,normal:g,horizontal:g,vertical:p},right:{parallel:p,normal:f,horizontal:f,vertical:p}},k={above:g,below:f,left:g,right:f},C={above:f,below:g,left:g,right:f},T=function(e,n,i){var r,o;return t.isString(i)?(o=M[n][i],r=x[n][i]):0===i?(o=M[n][i],r=x[n][i]):0>i?(o=\"middle\",r=k[n]):i>0&&(o=\"middle\",r=C[n]),e.textBaseline=o,e.textAlign=r},h=function(n){function i(){return D=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.rule_props=new y(this,null,\"axis_\"),this.major_tick_props=new y(this,null,\"major_tick_\"),this.minor_tick_props=new y(this,null,\"minor_tick_\"),this.major_label_props=new w(this,null,\"major_label_\"),this.axis_label_props=new w(this,null,\"axis_label_\"),this.x_range_name=this.mget(\"x_range_name\"),this.y_range_name=this.mget(\"y_range_name\")},i.prototype.render=function(){var t;return t=this.plot_view.canvas_view.ctx,t.save(),this._draw_rule(t),this._draw_major_ticks(t),this._draw_minor_ticks(t),this._draw_major_labels(t),this._draw_axis_label(t),t.restore()},i.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change\",this.plot_view.request_render)},i.prototype._draw_rule=function(t){var e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g;if(this.rule_props.do_stroke){for(p=e=this.mget(\"rule_coords\"),a=p[0],c=p[1],d=this.plot_view.map_to_screen(a,\"data\",c,\"data\",this.x_range_name,this.y_range_name),o=d[0],s=d[1],f=this.mget(\"normals\"),i=f[0],r=f[1],_=this.mget(\"offsets\"),l=_[0],u=_[1],this.rule_props.set(t,this),t.beginPath(),t.moveTo(Math.round(o[0]+i*l),Math.round(s[0]+r*u)),n=h=1,g=o.length;g>=1?g>h:h>g;n=g>=1?++h:--h)t.lineTo(Math.round(o[n]+i*l),Math.round(s[n]+r*u));return t.stroke()}},i.prototype._draw_major_ticks=function(t){var e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v;if(this.major_tick_props.do_stroke){for(e=this.mget(\"tick_coords\"),f=e.major,c=f[0],h=f[1],_=this.plot_view.map_to_screen(c,\"data\",h,\"data\",this.x_range_name,this.y_range_name),o=_[0],s=_[1],g=this.mget(\"normals\"),i=g[0],r=g[1],m=this.mget(\"offsets\"),u=m[0],p=m[1],a=this.mget(\"major_tick_in\"),l=this.mget(\"major_tick_out\"),this.major_tick_props.set(t,this),v=[],n=d=0,y=o.length;y>=0?y>d:d>y;n=y>=0?++d:--d)t.beginPath(),t.moveTo(Math.round(o[n]+i*l+i*u),Math.round(s[n]+r*l+r*p)),t.lineTo(Math.round(o[n]-i*a+i*u),Math.round(s[n]-r*a+r*p)),v.push(t.stroke());return v}},i.prototype._draw_minor_ticks=function(t){var e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v;if(this.minor_tick_props.do_stroke){for(e=this.mget(\"tick_coords\"),f=e.minor,c=f[0],h=f[1],_=this.plot_view.map_to_screen(c,\"data\",h,\"data\",this.x_range_name,this.y_range_name),o=_[0],s=_[1],g=this.mget(\"normals\"),i=g[0],r=g[1],m=this.mget(\"offsets\"),u=m[0],p=m[1],a=this.mget(\"minor_tick_in\"),l=this.mget(\"minor_tick_out\"),this.minor_tick_props.set(t,this),v=[],n=d=0,y=o.length;y>=0?y>d:d>y;n=y>=0?++d:--d)t.beginPath(),t.moveTo(Math.round(o[n]+i*l+i*u),Math.round(s[n]+r*l+r*p)),t.lineTo(Math.round(o[n]-i*a+i*u),Math.round(s[n]-r*a+r*p)),v.push(t.stroke());return v}},i.prototype._draw_major_labels=function(e){var n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C;for(i=this.mget(\"tick_coords\"),v=i.major,f=v[0],g=v[1],b=this.plot_view.map_to_screen(f,\"data\",g,\"data\",this.x_range_name,this.y_range_name),p=b[0],d=b[1],w=this.mget(\"normals\"),a=w[0],l=w[1],x=this.mget(\"offsets\"),_=x[0],m=x[1],r=this.mget(\"dimension\"),u=this.mget(\"location\"),c=this.mget(\"major_label_orientation\"),n=t.isString(c)?S[u][c]:-c,h=this.model._tick_extent(this)+this.mget(\"major_label_standoff\"),s=this.mget(\"formatter\").format(i.major[r]),this.major_label_props.set(e,this),T(e,u,c),C=[],o=y=0,k=p.length;k>=0?k>y:y>k;o=k>=0?++y:--y)n?(e.translate(p[o]+a*h+a*_,d[o]+l*h+l*m),e.rotate(n),e.fillText(s[o],0,0),e.rotate(-n),C.push(e.translate(-p[o]-a*h+a*_,-d[o]-l*h+l*m))):C.push(e.fillText(s[o],Math.round(p[o]+a*h+a*_),Math.round(d[o]+l*h+l*m)));return C},i.prototype._draw_axis_label=function(t){var e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m;return n=this.mget(\"axis_label\"),null!=n?(f=this.mget(\"rule_coords\"),u=f[0],p=f[1],_=this.plot_view.map_to_screen(u,\"data\",p,\"data\",this.x_range_name,this.y_range_name),l=_[0],c=_[1],g=this.mget(\"normals\"),i=g[0],r=g[1],m=this.mget(\"offsets\"),h=m[0],d=m[1],s=this.mget(\"location\"),o=\"parallel\",e=S[s][o],a=this.model._tick_extent(this)+this.model._tick_label_extent(this)+this.mget(\"axis_label_standoff\"),l=(l[0]+l[l.length-1])/2,c=(c[0]+c[c.length-1])/2,this.axis_label_props.set(t,this),T(t,s,o),e?(t.translate(l+i*a+i*h,c+r*a+r*d),t.rotate(e),t.fillText(n,0,0),t.rotate(-e),t.translate(-l-i*a+i*h,-c-r*a+r*d)):t.fillText(n,l+i*a+i*h,c+r*a+r*d)):void 0},i}(a),u=function(n){function r(){return A=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.default_view=h,r.prototype.type=\"Axis\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.register_property(\"computed_bounds\",this._computed_bounds,!1),this.add_dependencies(\"computed_bounds\",this,[\"bounds\"]),this.add_dependencies(\"computed_bounds\",this.get(\"plot\"),[\"x_range\",\"y_range\"]),this.register_property(\"rule_coords\",this._rule_coords,!1),this.add_dependencies(\"rule_coords\",this,[\"computed_bounds\",\"side\"]),this.register_property(\"tick_coords\",this._tick_coords,!1),this.add_dependencies(\"tick_coords\",this,[\"computed_bounds\",\"location\"]),this.register_property(\"ranges\",this._ranges,!0),this.register_property(\"normals\",function(){return this._normals},!0),this.register_property(\"dimension\",function(){return this._dim},!0),this.register_property(\"offsets\",this._offsets,!0)},r.prototype.initialize_layout=function(t){var e,n;return e=new o.Model({solver:t}),this.panel=e,this._top=e._top,this._bottom=e._bottom,this._left=e._left,this._right=e._right,this._width=e._width,this._height=e._height,n=this.get(\"location\"),\"above\"===n?(this._dim=0,this._normals=[0,-1],this._size=e._height,this._anchor=e._bottom):\"below\"===n?(this._dim=0,this._normals=[0,1],this._size=e._height,this._anchor=e._top):\"left\"===n?(this._dim=1,this._normals=[-1,0],this._size=e._width,this._anchor=e._right):\"right\"===n?(this._dim=1,this._normals=[1,0],this._size=e._width,this._anchor=e._left):v.error(\"unrecognized side: '\"+n+\"'\")},r.prototype.update_layout=function(t,e){var n;return n=this._tick_extent(t)+this._tick_label_extent(t)+this._axis_label_extent(t),null==this._last_size&&(this._last_size=-1),n!==this._last_size?(this._last_size=n,null!=this._size_constraint&&e.remove_constraint(this._size_constraint),this._size_constraint=new i.Constraint(new i.Expression(this._size,-n),i.Operator.Eq),e.add_constraint(this._size_constraint)):void 0},r.prototype._offsets=function(){var t,e,n,i,r;return e=this.get(\"location\"),r=[0,0],n=r[0],i=r[1],t=this.get(\"plot\").get(\"frame\"),\"below\"===e?i=Math.abs(this.panel.get(\"top\")-t.get(\"bottom\")):\"above\"===e?i=Math.abs(this.panel.get(\"bottom\")-t.get(\"top\")):\"right\"===e?n=Math.abs(this.panel.get(\"left\")-t.get(\"right\")):\"left\"===e&&(n=Math.abs(this.panel.get(\"right\")-t.get(\"left\"))),[n,i]},r.prototype._ranges=function(){var t,e,n,i;return e=this.get(\"dimension\"),n=(e+1)%2,t=this.get(\"plot\").get(\"frame\"),i=[t.get(\"x_ranges\")[this.get(\"x_range_name\")],t.get(\"y_ranges\")[this.get(\"y_range_name\")]],[i[e],i[n]]},r.prototype._computed_bounds=function(){var e,n,i,r,o,s,a,l;return a=this.get(\"ranges\"),i=a[0],e=a[1],s=null!=(l=this.get(\"bounds\"))?l:\"auto\",r=[i.get(\"min\"),i.get(\"max\")],\"auto\"===s?r:t.isArray(s)?(Math.abs(s[0]-s[1])>Math.abs(r[0]-r[1])?(o=Math.max(Math.min(s[0],s[1]),r[0]),n=Math.min(Math.max(s[0],s[1]),r[1])):(o=Math.min(s[0],s[1]),n=Math.max(s[0],s[1])),[o,n]):(v.error(\"user bounds '\"+s+\"' not understood\"),null)},r.prototype._rule_coords=function(){var t,e,n,i,r,o,s,a,l,c,u,h;return i=this.get(\"dimension\"),r=(i+1)%2,u=this.get(\"ranges\"),s=u[0],e=u[1],h=this.get(\"computed_bounds\"),a=h[0],n=h[1],l=new Array(2),c=new Array(2),t=[l,c],o=this._get_loc(e),t[i][0]=Math.max(a,s.get(\"min\")),t[i][1]=Math.min(n,s.get(\"max\")),t[i][0]>t[i][1]&&(t[i][0]=t[i][1]=0/0),t[r][0]=o,t[r][1]=o,t},r.prototype._tick_coords=function(){var t,e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M;if(i=this.get(\"dimension\"),o=(i+1)%2,x=this.get(\"ranges\"),p=x[0],e=x[1],k=this.get(\"computed_bounds\"),_=k[0],n=k[1],g=this.get(\"ticker\").get_ticks(_,n,p,{}),a=g.major,h=g.minor,s=this._get_loc(e),m=[],y=[],t=[m,y],c=[],u=[],l=[c,u],\"FactorRange\"===p.type)for(r=v=0,C=a.length;C>=0?C>v:v>C;r=C>=0?++v:--v)t[i].push(a[r]),t[o].push(s);else{for(S=[p.get(\"min\"),p.get(\"max\")],f=S[0],d=S[1],r=b=0,T=a.length;T>=0?T>b:b>T;r=T>=0?++b:--b)a[r]<f||a[r]>d||(t[i].push(a[r]),t[o].push(s));for(r=w=0,M=h.length;M>=0?M>w:w>M;r=M>=0?++w:--w)h[r]<f||h[r]>d||(l[i].push(h[r]),l[o].push(s))}return{major:t,minor:l}},r.prototype._get_loc=function(t){var e,n,i,r;return n=t.get(\"start\"),e=t.get(\"end\"),r=this.get(\"location\"),\"left\"===r||\"below\"===r?i=e>n?\"start\":\"end\":(\"right\"===r||\"above\"===r)&&(i=e>n?\"end\":\"start\"),t.get(i)},r.prototype._tick_extent=function(){return this.get(\"major_tick_out\")},r.prototype._tick_label_extent=function(e){var n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b;for(a=0,s=this.get(\"dimension\"),o=e.plot_view.canvas_view.ctx,r=this.get(\"tick_coords\").major,_=this.get(\"location\"),d=this.get(\"major_label_orientation\"),p=this.get(\"formatter\").format(r[s]),e.major_label_props.set(o,e),t.isString(d)?(u=1,n=S[_][d]):(u=2,n=-d),n=Math.abs(n),i=Math.cos(n),f=Math.sin(n),\"above\"===_||\"below\"===_?(y=f,c=i):(y=i,c=f),h=v=0,b=p.length;b>=0?b>v:v>b;h=b>=0?++v:--v)null!=p[h]&&(m=1.1*o.measureText(p[h]).width,l=.9*o.measureText(p[h]).ascent,g=m*y+l/u*c,g>a&&(a=g));return a>0&&(a+=this.get(\"major_label_standoff\")),a},r.prototype._axis_label_extent=function(t){var e,n,i,r,o,s,a,l,c;return r=0,l=this.get(\"location\"),s=\"parallel\",i=t.plot_view.canvas_view.ctx,t.axis_label_props.set(i,t),e=Math.abs(S[l][s]),n=Math.cos(e),a=Math.sin(e),this.get(\"axis_label\")&&(r+=this.get(\"axis_label_standoff\"),t.axis_label_props.set(i,t),c=1.1*i.measureText(this.get(\"axis_label\")).width,o=.9*i.measureText(this.get(\"axis_label\")).ascent,r+=\"above\"===l||\"below\"===l?c*a+o*n:c*n+o*a),r},r.prototype.defaults=function(){return{x_range_name:\"default\",y_range_name:\"default\"}},r.prototype.display_defaults=function(){return{level:\"overlay\",axis_line_color:\"black\",axis_line_width:1,axis_line_alpha:1,axis_line_join:\"miter\",axis_line_cap:\"butt\",axis_line_dash:[],axis_line_dash_offset:0,major_tick_in:2,major_tick_out:6,major_tick_line_color:\"black\",major_tick_line_width:1,major_tick_line_alpha:1,major_tick_line_join:\"miter\",major_tick_line_cap:\"butt\",major_tick_line_dash:[],major_tick_line_dash_offset:0,minor_tick_in:0,minor_tick_out:4,minor_tick_line_color:\"black\",minor_tick_line_width:1,minor_tick_line_alpha:1,minor_tick_line_join:\"miter\",minor_tick_line_cap:\"butt\",minor_tick_line_dash:[],minor_tick_line_dash_offset:0,major_label_standoff:5,major_label_orientation:\"horizontal\",major_label_text_font:\"helvetica\",major_label_text_font_size:\"10pt\",major_label_text_font_style:\"normal\",major_label_text_color:\"#444444\",major_label_text_alpha:1,major_label_text_align:\"center\",major_label_text_baseline:\"alphabetic\",axis_label:\"\",axis_label_standoff:5,axis_label_text_font:\"helvetica\",axis_label_text_font_size:\"16pt\",axis_label_text_font_style:\"normal\",axis_label_text_color:\"#444444\",axis_label_text_alpha:1,axis_label_text_align:\"center\",axis_label_text_baseline:\"alphabetic\"}},r}(r),{Model:u,View:h}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/categorical_ticker\",[\"backbone\",\"common/has_properties\"],function(t,n){var i,r,o,s;return i=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"CategoricalTicker\",n.prototype.get_ticks=function(t,e,n,i){var r;return r=i.desired_n_ticks,{major:n.get(\"factors\"),minor:[]}},n.prototype.defaults=function(){return n.__super__.defaults.call(this)},n}(n),r=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n}(t.Collection),{Model:i,Collection:new r}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/categorical_tick_formatter\",[\"backbone\",\"common/has_properties\"],function(t,n){var i,r,o,s;return i=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"CategoricalTickFormatter\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e)},n.prototype.format=function(t){return t},n}(n),r=function(t){function n(){return s=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=i,n.prototype.defaults=function(){return n.__super__.defaults.call(this)},n}(t.Collection),{Model:i,Collection:new r}})\n",
" }.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/guide/categorical_axis\",[\"backbone\",\"./axis\",\"common/logging\",\"range/factor_range\",\"ticking/categorical_ticker\",\"ticking/categorical_tick_formatter\"],function(t,n,i,r,o,s){var a,l,c,u,h,p,d;return u=i.logger,c=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(n.View),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=c,n.prototype.type=\"CategoricalAxis\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),null==this.get(\"ticker\")&&this.set_obj(\"ticker\",o.Collection.create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",s.Collection.create()):void 0},n.prototype._bounds=function(){var t,e,n,i,r;return t=this.get(\"dimension\"),n=[this.get(\"plot\").get(\"x_range\"),this.get(\"plot\").get(\"y_range\")],i=null!=(r=this.get(\"bounds\"))?r:\"auto\",\"auto\"!==i&&u.warn(\"Categorical Axes only support user_bounds='auto', ignoring\"),e=[n[t].get(\"min\"),n[t].get(\"max\")]},n}(n.Model),a=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=l,n}(t.Collection),{Model:l,Collection:new a,View:c}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/abstract_ticker\",[\"underscore\",\"backbone\",\"common/has_properties\"],function(t,n,i){var r,o,s,a,l,c;return a=function(t){var e,n,i,r,o;return null===t?\"null\":null==t?\"undefined\":t.constructor===Array?(n=function(){var n,i,r;for(r=[],n=0,i=t.length;i>n;n++)e=t[n],r.push(a(e));return r}().join(\", \"),\"[\"+n+\"]\"):t.constructor===Object?(o=function(){var e;e=[];for(i in t)e.push(\"\"+i+\": \"+a(t[i]));return e}().join(\", \"),\"{\"+o+\"}\"):t.constructor===String?'\"'+t+'\"':t.constructor===Function?\"<Function: \"+t.name+\">\":(r=t.toString(),\"[object Object]\"===r?\"<\"+t.constructor.name+\">\":r)},s=6,r=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"AbstractTicker\",i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e)},i.prototype.get_ticks=function(t,e,n,i){var r;return r=i.desired_n_ticks,null==r&&(r=s),this.get_ticks_no_defaults(t,e,r)},i.prototype.get_ticks_no_defaults=function(e,n,i){var r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x;if(l=this.get_interval(e,n,i),d=Math.floor(e/l),r=Math.ceil(n/l),s=t.isNaN(d)||t.isNaN(r)?[]:t.range(d,r+1),_=function(){var t,e,n;for(n=[],t=0,e=s.length;e>t;t++)o=s[t],n.push(o*l);return n}(),p=this.get(\"num_minor_ticks\"),h=[],p>1){for(c=l/p,u=function(){var t,e;for(e=[],a=t=1;p>=1?p>=t:t>=p;a=p>=1?++t:--t)e.push(a*c);return e}(),m=0,b=u.length;b>m;m++)g=u[m],h.push(_[0]-g);for(y=0,w=_.length;w>y;y++)for(f=_[y],v=0,x=u.length;x>v;v++)g=u[v],h.push(f+g)}return{major:_,minor:h}},i.prototype.get_interval=void 0,i.prototype.get_min_interval=function(){return this.get(\"min_interval\")},i.prototype.get_max_interval=function(){return this.get(\"max_interval\")},i.prototype.toString=function(){var t,e,n,i;return t=typeof this,i=this.get(\"toString_properties\"),n=function(){var t,n,r;for(r=[],t=0,n=i.length;n>t;t++)e=i[t],r.push(\"\"+e+\"=\"+a(this[e]));return r}.call(this).join(\", \"),\"\"+t+\"(\"+n+\")\"},i.prototype.get_ideal_interval=function(t,e,n){var i;return i=e-t,i/n},i.prototype.defaults=function(){return t.extend(i.__super__.defaults.call(this),{toString_properties:[],num_minor_ticks:5})},i}(i),o=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,Collection:new o}})}.call(this),function(){i(\"ticking/util\",[\"underscore\",\"backbone\"],function(t){var e,n,i,r,o,s,a,l,c,u,h;return i=1,s=1e3,r=60*s,n=60*r,e=24*n,o=30*e,a=365*e,l=function(e){var n;return n=t.min(t.range(e.length),function(t){return e[t]})},c=function(t){return new Date(t.getTime())},u=function(t){return t=c(t),t.setUTCDate(1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t},h=function(t){return t=u(t),t.setUTCMonth(0),t},{argmin:l,copy_date:c,last_month_no_later_than:u,last_year_no_later_than:h,ONE_MILLI:i,ONE_SECOND:s,ONE_MINUTE:r,ONE_HOUR:n,ONE_DAY:e,ONE_MONTH:o,ONE_YEAR:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/adaptive_ticker\",[\"underscore\",\"backbone\",\"ticking/abstract_ticker\",\"ticking/util\"],function(t,n,i,r){var o,s,a,l,c,u,h;return a=r.argmin,l=function(t,e,n){return Math.max(e,Math.min(n,t))},c=function(t,e){return null==e&&(e=Math.E),Math.log(t)/Math.log(e)},o=function(n){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"AdaptiveTicker\",i.prototype.initialize=function(e,n){var r,o;return i.__super__.initialize.call(this,e,n),r=t.last(this.get(\"mantissas\"))/this.get(\"base\"),o=t.first(this.get(\"mantissas\"))*this.get(\"base\"),this.extended_mantissas=t.flatten([r,this.get(\"mantissas\"),o]),this.base_factor=0===this.get(\"min_interval\")?1:this.get(\"min_interval\")},i.prototype.get_interval=function(t,e,n){var i,r,o,s,u,h,p,d,f;return o=e-t,u=this.get_ideal_interval(t,e,n),f=Math.floor(c(u/this.base_factor,this.get(\"base\"))),h=Math.pow(this.get(\"base\"),f)*this.base_factor,p=u/h,r=this.extended_mantissas,s=r.map(function(t){return Math.abs(n-o/(t*h))}),i=r[a(s)],d=i*h,l(d,this.get(\"min_interval\"),this.get(\"max_interval\"))},i.prototype.defaults=function(){return t.extend(i.__super__.defaults.call(this),{toString_properties:[\"mantissas\",\"base\",\"min_magnitude\",\"max_magnitude\"],base:10,mantissas:[2,5,10],min_interval:0,max_interval:1/0})},i}(i.Model),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/composite_ticker\",[\"underscore\",\"backbone\",\"ticking/abstract_ticker\",\"ticking/util\"],function(t,n,i,r){var o,s,a,l,c;return a=r.argmin,o=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"CompositeTicker\",i.prototype.initialize=function(e,n){var r;return i.__super__.initialize.call(this,e,n),r=this.get(\"tickers\"),this.register_property(\"min_intervals\",function(){return t.invoke(r,\"get_min_interval\")},!0),this.add_dependencies(\"min_intervals\",this,[\"tickers\"]),this.register_property(\"max_intervals\",function(){return t.invoke(r,\"get_max_interval\")},!0),this.add_dependencies(\"max_intervals\",this,[\"tickers\"]),this.register_property(\"min_interval\",function(){return t.first(this.get(\"min_intervals\"))},!0),this.add_dependencies(\"min_interval\",this,[\"min_intervals\"]),this.register_property(\"max_interval\",function(){return t.first(this.get(\"max_intervals\"))},!0),this.add_dependencies(\"max_interval\",this,[\"max_interval\"])},i.prototype.get_best_ticker=function(e,n,i){var r,o,s,l,c,u,h,p;return l=n-e,u=this.get_ideal_interval(e,n,i),p=[t.sortedIndex(this.get(\"min_intervals\"),u)-1,t.sortedIndex(this.get(\"max_intervals\"),u)],h=[this.get(\"min_intervals\")[p[0]],this.get(\"max_intervals\")[p[1]]],c=h.map(function(t){return Math.abs(i-l/t)}),r=a(c),1/0===r?this.get(\"tickers\")[0]:(s=p[r],o=this.get(\"tickers\")[s])},i.prototype.get_interval=function(t,e,n){var i;return i=this.get_best_ticker(t,e,n),i.get_interval(t,e,n)},i.prototype.get_ticks_no_defaults=function(t,e,n){var i,r;return i=this.get_best_ticker(t,e,n),r=i.get_ticks_no_defaults(t,e,n)},i.prototype.defaults=function(){return i.__super__.defaults.call(this)},i}(i.Model),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/single_interval_ticker\",[\"underscore\",\"backbone\",\"ticking/abstract_ticker\"],function(t,n,i){var r,o,s,a;return r=function(n){function i(){return s=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"SingleIntervalTicker\",i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e),this.register_property(\"min_interval\",function(){return this.get(\"interval\")},!0),this.add_dependencies(\"min_interval\",this,[\"interval\"]),this.register_property(\"max_interval\",function(){return this.get(\"interval\")},!0),this.add_dependencies(\"max_interval\",this,[\"interval\"])},i.prototype.get_interval=function(){return this.get(\"interval\")},i.prototype.defaults=function(){return t.extend(i.__super__.defaults.call(this),{toString_properties:[\"interval\"]})},i}(i.Model),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/days_ticker\",[\"underscore\",\"backbone\",\"ticking/single_interval_ticker\",\"ticking/util\"],function(t,n,i,r){var o,s,a,l,c,u,h,p;return l=r.copy_date,u=r.last_month_no_later_than,a=r.ONE_DAY,c=function(t,e){var n,i,r,o,s;for(s=u(new Date(t)),r=u(new Date(e)),o=l(r),r.setUTCMonth(r.getUTCMonth()+1),i=[],n=s;;)if(i.push(l(n)),n.setUTCMonth(n.getUTCMonth()+1),n>r)break;return i},o=function(n){function i(){return h=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"DaysTicker\",i.prototype.initialize=function(t,e){var n,r;return t.num_minor_ticks=0,i.__super__.initialize.call(this,t,e),n=this.get(\"days\"),r=n.length>1?(n[1]-n[0])*a:31*a,this.set(\"interval\",r)},i.prototype.get_ticks_no_defaults=function(e,n){var i,r,o,s,a,u,h,p;return h=c(e,n),s=this.get(\"days\"),a=function(t,e){var n,i,r,o,a,c;for(n=[],a=0,c=s.length;c>a;a++)i=s[a],r=l(t),r.setUTCDate(i),o=new Date(r.getTime()+e/2),o.getUTCMonth()===t.getUTCMonth()&&n.push(r);return n},u=this.get(\"interval\"),o=t.flatten(function(){var t,e,n;for(n=[],t=0,e=h.length;e>t;t++)r=h[t],n.push(a(r,u));return n}()),i=t.invoke(o,\"getTime\"),p=t.filter(i,function(t){return t>=e&&n>=t}),{major:p,minor:[]}},i.prototype.defaults=function(){return t.extend(i.__super__.defaults.call(this),{toString_properties:[\"days\"]})},i}(i.Model),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/months_ticker\",[\"underscore\",\"backbone\",\"ticking/single_interval_ticker\",\"ticking/util\"],function(t,n,i,r){var o,s,a,l,c,u,h,p;return l=r.copy_date,u=r.last_year_no_later_than,a=r.ONE_MONTH,c=function(t,e){var n,i,r,o;for(o=u(new Date(t)),r=u(new Date(e)),r.setUTCFullYear(r.getUTCFullYear()+1),i=[],n=o;;)if(i.push(l(n)),n.setUTCFullYear(n.getUTCFullYear()+1),n>r)break;return i},o=function(n){function i(){return h=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"MonthsTicker\",i.prototype.initialize=function(t,e){var n,r;return i.__super__.initialize.call(this,t,e),r=this.get(\"months\"),n=r.length>1?(r[1]-r[0])*a:12*a,this.set(\"interval\",n)},i.prototype.get_ticks_no_defaults=function(e,n){var i,r,o,s,a,u,h;return h=c(e,n),s=this.get(\"months\"),a=function(t){return s.map(function(e){var n;return n=l(t),n.setUTCMonth(e),n})},o=t.flatten(function(){var t,e,n;for(n=[],t=0,e=h.length;e>t;t++)r=h[t],n.push(a(r));return n}()),i=t.invoke(o,\"getTime\"),u=t.filter(i,function(t){return t>=e&&n>=t}),{major:u,minor:[]}},i.prototype.defaults=function(){return t.extend(i.__super__.defaults.call(this),{toString_properties:[\"months\"]})},i}(i.Model),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/basic_ticker\",[\"ticking/adaptive_ticker\"],function(t){var n,i,r,o;return n=function(t){function n(){return r=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"BasicTicker\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e)},n.prototype.defaults=function(){return _.extend(n.__super__.defaults.call(this),{mantissas:[1,2,5]})},n}(t.Model),i=function(t){function i(){return o=i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.model=n,i}(Backbone.Collection),{Model:n,Collection:new i}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/years_ticker\",[\"underscore\",\"backbone\",\"ticking/basic_ticker\",\"ticking/single_interval_ticker\",\"ticking/util\"],function(t,n,i,r,o){var s,a,l,c,u,h;return c=o.last_year_no_later_than,s=o.ONE_YEAR,a=function(n){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,n),r.prototype.type=\"YearsTicker\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.set(\"interval\",s),this.basic_ticker=new i.Model({num_minor_ticks:0})},r.prototype.get_ticks_no_defaults=function(e,n,i){var r,o,s,a,l,u;return s=c(new Date(e)).getUTCFullYear(),o=c(new Date(n)).getUTCFullYear(),u=this.basic_ticker.get_ticks_no_defaults(s,o,i).major,r=function(){var t,e,n;for(n=[],t=0,e=u.length;e>t;t++)l=u[t],n.push(Date.UTC(l,0,1));return n}(),a=t.filter(r,function(t){return t>=e&&n>=t}),{major:a,minor:[]}},r.prototype.defaults=function(){return t.extend(r.__super__.defaults.call(this),{toString_properties:[\"years\"]})},r}(r.Model),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(n.Collection),{Model:a,Collection:new l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/datetime_ticker\",[\"underscore\",\"ticking/adaptive_ticker\",\"ticking/composite_ticker\",\"ticking/days_ticker\",\"ticking/months_ticker\",\"ticking/years_ticker\",\"ticking/util\"],function(t,n,i,r,o,s,a){var l,c,u,h,p,d,f,_,g;return h=a.ONE_MILLI,f=a.ONE_SECOND,p=a.ONE_MINUTE,u=a.ONE_HOUR,d=a.ONE_MONTH,l=function(i){function a(){return _=a.__super__.constructor.apply(this,arguments)}return e(a,i),a.prototype.type=\"DatetimeTicker\",a.prototype.defaults=function(){return t.extend(a.__super__.defaults.call(this),{num_minor_ticks:0,tickers:[new n.Model({mantissas:[1,2,5],base:10,min_interval:0,max_interval:500*h,num_minor_ticks:0}),new n.Model({mantissas:[1,2,5,10,15,20,30],base:60,min_interval:f,max_interval:30*p,num_minor_ticks:0}),new n.Model({mantissas:[1,2,4,6,8,12],base:24,min_interval:u,max_interval:12*u,num_minor_ticks:0}),new r.Model({days:t.range(1,32)}),new r.Model({days:t.range(1,31,3)}),new r.Model({days:[1,8,15,22]}),new r.Model({days:[1,15]}),new o.Model({months:t.range(0,12,1)}),new o.Model({months:t.range(0,12,2)}),new o.Model({months:t.range(0,12,4)}),new o.Model({months:t.range(0,12,6)}),new s.Model({})]})},a}(i.Model),c=function(t){function n(){return g=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=l,n}(Backbone.Collection),{Model:l,Collection:new c}})}.call(this),function(t){i(\"sprintf\",[],function(){return function(){return function(t){function e(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function n(t,e){for(var n=[];e>0;n[--e]=t);return n.join(\"\")}var i=function(){return i.cache.hasOwnProperty(arguments[0])||(i.cache[arguments[0]]=i.parse(arguments[0])),i.format.call(null,i.cache[arguments[0]],arguments)};i.format=function(t,r){var o,s,a,l,c,u,h,p=1,d=t.length,f=\"\",_=[];for(s=0;d>s;s++)if(f=e(t[s]),\"string\"===f)_.push(t[s]);else if(\"array\"===f){if(l=t[s],l[2])for(o=r[p],a=0;a<l[2].length;a++){if(!o.hasOwnProperty(l[2][a]))throw i('[sprintf] property \"%s\" does not exist',l[2][a]);o=o[l[2][a]]}else o=l[1]?r[l[1]]:r[p++];if(/[^s]/.test(l[8])&&\"number\"!=e(o))throw i(\"[sprintf] expecting number but found %s\",e(o));switch(l[8]){case\"b\":o=o.toString(2);break;case\"c\":o=String.fromCharCode(o);break;case\"d\":o=parseInt(o,10);break;case\"e\":o=l[7]?o.toExponential(l[7]):o.toExponential();break;case\"f\":o=l[7]?parseFloat(o).toFixed(l[7]):parseFloat(o);break;case\"o\":o=o.toString(8);break;case\"s\":o=(o=String(o))&&l[7]?o.substring(0,l[7]):o;break;case\"u\":o>>>=0;break;case\"x\":o=o.toString(16);break;case\"X\":o=o.toString(16).toUpperCase()}o=/[def]/.test(l[8])&&l[3]&&o>=0?\"+\"+o:o,u=l[4]?\"0\"==l[4]?\"0\":l[4].charAt(1):\" \",h=l[6]-String(o).length,c=l[6]?n(u,h):\"\",_.push(l[5]?o+c:c+o)}return _.join(\"\")},i.cache={},i.parse=function(t){for(var e=t,n=[],i=[],r=0;e;){if(null!==(n=/^[^\\x25]+/.exec(e)))i.push(n[0]);else if(null!==(n=/^\\x25{2}/.exec(e)))i.push(\"%\");else{if(null===(n=/^\\x25(?:([1-9]\\d*)\\$|\\(([^\\)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-fosuxX])/.exec(e)))throw\"[sprintf] huh?\";if(n[2]){r|=1;var o=[],s=n[2],a=[];if(null===(a=/^([a-z_][a-z_\\d]*)/i.exec(s)))throw\"[sprintf] huh?\";for(o.push(a[1]);\"\"!==(s=s.substring(a[0].length));)if(null!==(a=/^\\.([a-z_][a-z_\\d]*)/i.exec(s)))o.push(a[1]);else{if(null===(a=/^\\[(\\d+)\\]/.exec(s)))throw\"[sprintf] huh?\";o.push(a[1])}n[2]=o}else r|=2;if(3===r)throw\"[sprintf] mixing positional and named placeholders is not (yet) supported\";i.push(n)}e=e.substring(n[0].length)}return i};var r=function(t,e,n){return n=e.slice(0),n.splice(0,0,t),i.apply(null,n)};t.sprintf=i,t.vsprintf=r}(\"undefined\"!=typeof o?o:window),t.sprintf=sprintf}.apply(t,arguments)})}(this),!function(t){\"object\"==typeof module&&module.exports?module.exports=t():\"function\"==typeof i?i(\"timezone\",t):this.tz=t()}(function(){function t(t,e,n){var i,r=e.day[1];do i=new Date(Date.UTC(n,e.month,Math.abs(r++)));while(e.day[0]<7&&i.getUTCDay()!=e.day[0]);return i={clock:e.clock,sort:i.getTime(),rule:e,save:6e4*e.save,offset:t.offset},i[i.clock]=i.sort+6e4*e.time,i.posix?i.wallclock=i[i.clock]+(t.offset+e.saved):i.posix=i[i.clock]-(t.offset+e.saved),i}function e(e,n,i){var r,o,s,a,l,c,u,h=e[e.zone],p=[],d=new Date(i).getUTCFullYear(),f=1;for(r=1,o=h.length;o>r&&!(h[r][n]<=i);r++);if(s=h[r],s.rules){for(c=e[s.rules],u=d+1;u>=d-f;--u)for(r=0,o=c.length;o>r;r++)c[r].from<=u&&u<=c[r].to?p.push(t(s,c[r],u)):c[r].to<u&&1==f&&(f=u-c[r].to);for(p.sort(function(t,e){return t.sort-e.sort}),r=0,o=p.length;o>r;r++)i>=p[r][n]&&p[r][p[r].clock]>s[p[r].clock]&&(a=p[r])}return a&&(a.abbrev=(l=/^(.*)\\/(.*)$/.exec(s.format))?l[a.save?2:1]:s.format.replace(/%s/,a.rule.letter)),a||s}function n(t,n){return\"UTC\"==t.zone?n:(t.entry=e(t,\"posix\",n),n+t.entry.offset+t.entry.save)}function i(t,n){if(\"UTC\"==t.zone)return n;var i,r;return t.entry=i=e(t,\"wallclock\",n),r=n-i.wallclock,r>0&&r<i.save?null:n-i.offset-i.save}function r(t,e,r){var o,s=+(r[1]+1),a=r[2]*s,l=c.indexOf(r[3].toLowerCase());if(l>9)e+=a*h[l-10];else{if(o=new Date(n(t,e)),7>l)for(;a;)o.setUTCDate(o.getUTCDate()+s),o.getUTCDay()==l&&(a-=s);else 7==l?o.setUTCFullYear(o.getUTCFullYear()+a):8==l?o.setUTCMonth(o.getUTCMonth()+a):o.setUTCDate(o.getUTCDate()+a);null==(e=i(t,o.getTime()))&&(e=i(t,o.getTime()+864e5*s)-864e5*s)}return e}function o(t){if(!t.length)return\"0.0.23\";var e,o,s,a,l,c=Object.create(this),h=[];for(e=0;e<t.length;e++)if(a=t[e],Array.isArray(a))e||isNaN(a[1])?a.splice.apply(t,[e--,1].concat(a)):l=a;else if(isNaN(a)){if(s=typeof a,\"string\"==s)~a.indexOf(\"%\")?c.format=a:e||\"*\"!=a?!e&&(s=/^(\\d{4})-(\\d{2})-(\\d{2})(?:[T\\s](\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d+))?)?(Z|(([+-])(\\d{2}(:\\d{2}){0,2})))?)?$/.exec(a))?(l=[],l.push.apply(l,s.slice(1,8)),s[9]?(l.push(s[10]+1),l.push.apply(l,s[11].split(/:/))):s[8]&&l.push(1)):/^\\w{2,3}_\\w{2}$/.test(a)?c.locale=a:(s=u.exec(a))?h.push(s):c.zone=a:l=a;else if(\"function\"==s){if(s=a.call(c))return s}else if(/^\\w{2,3}_\\w{2}$/.test(a.name))c[a.name]=a;else if(a.zones){for(s in a.zones)c[s]=a.zones[s];for(s in a.rules)c[s]=a.rules[s]}}else e||(l=a);if(c[c.locale]||delete c.locale,c[c.zone]||delete c.zone,null!=l){if(\"*\"==l)l=c.clock();else if(Array.isArray(l)){for(o=!l[7],e=0;11>e;e++)l[e]=+(l[e]||0);--l[1],l=Date.UTC.apply(Date.UTC,l.slice(0,8))+-l[7]*(36e5*l[8]+6e4*l[9]+1e3*l[10])}else l=Math.floor(l);if(!isNaN(l)){if(o&&(l=i(c,l)),null==l)return l;for(e=0,o=h.length;o>e;e++)l=r(c,l,h[e]);return c.format?(s=new Date(n(c,l)),c.format.replace(/%([-0_^]?)(:{0,3})(\\d*)(.)/g,function(t,e,n,i,r){var o,a,u=\"0\";if(o=c[r]){for(t=String(o.call(c,s,l,e,n.length)),\"_\"==(e||o.style)&&(u=\" \"),a=\"-\"==e?0:o.pad||0;t.length<a;)t=u+t;for(a=\"-\"==e?0:i||o.pad;t.length<a;)t=u+t;\"N\"==r&&a<t.length&&(t=t.slice(0,a)),\"^\"==e&&(t=t.toUpperCase())}return t})):l}}return function(){return c.convert(arguments)}}function s(t,e){var n,i,r;return i=new Date(Date.UTC(t.getUTCFullYear(),0)),n=Math.floor((t.getTime()-i.getTime())/864e5),i.getUTCDay()==e?r=0:(r=7-i.getUTCDay()+e,8==r&&(r=1)),n>=r?Math.floor((n-r)/7)+1:0}function a(t){var e,n,i;return n=t.getUTCFullYear(),e=new Date(Date.UTC(n,0)).getUTCDay(),i=s(t,1)+(e>1&&4>=e?1:0),i?53!=i||4==e||3==e&&29==new Date(n,1,29).getDate()?[i,t.getUTCFullYear()]:[1,t.getUTCFullYear()+1]:(n=t.getUTCFullYear()-1,e=new Date(Date.UTC(n,0)).getUTCDay(),i=4==e||3==e&&29==new Date(n,1,29).getDate()?53:52,[i,t.getUTCFullYear()-1])}var l={clock:function(){return+new Date},zone:\"UTC\",entry:{abbrev:\"UTC\",offset:0,save:0},UTC:1,z:function(t,e,n,i){var r,o,s=this.entry.offset+this.entry.save,a=Math.abs(s/1e3),l=[],c=3600;for(r=0;3>r;r++)l.push((\"0\"+Math.floor(a/c)).slice(-2)),a%=c,c/=60;return\"^\"!=n||s?(\"^\"==n&&(i=3),3==i?(o=l.join(\":\"),o=o.replace(/:00$/,\"\"),\"^\"!=n&&(o=o.replace(/:00$/,\"\"))):i?(o=l.slice(0,i+1).join(\":\"),\"^\"==n&&(o=o.replace(/:00$/,\"\"))):o=l.slice(0,2).join(\"\"),o=(0>s?\"-\":\"+\")+o,o=o.replace(/([-+])(0)/,{_:\" $1\",\"-\":\"$1\"}[n]||\"$1$2\")):\"Z\"},\"%\":function(){return\"%\"},n:function(){return\"\\n\"},t:function(){return\"\t\"},U:function(t){return s(t,0)},W:function(t){return s(t,1)},V:function(t){return a(t)[0]},G:function(t){return a(t)[1]},g:function(t){return a(t)[1]%100},j:function(t){return Math.floor((t.getTime()-Date.UTC(t.getUTCFullYear(),0))/864e5)+1},s:function(t){return Math.floor(t.getTime()/1e3)},C:function(t){return Math.floor(t.getUTCFullYear()/100)},N:function(t){return t.getTime()%1e3*1e6},m:function(t){return t.getUTCMonth()+1},Y:function(t){return t.getUTCFullYear()},y:function(t){return t.getUTCFullYear()%100},H:function(t){return t.getUTCHours()},M:function(t){return t.getUTCMinutes()},S:function(t){return t.getUTCSeconds()},e:function(t){return t.getUTCDate()},d:function(t){return t.getUTCDate()},u:function(t){return t.getUTCDay()||7},w:function(t){return t.getUTCDay()},l:function(t){return t.getUTCHours()%12||12},I:function(t){return t.getUTCHours()%12||12},k:function(t){return t.getUTCHours()},Z:function(){return this.entry.abbrev},a:function(t){return this[this.locale].day.abbrev[t.getUTCDay()]},A:function(t){return this[this.locale].day.full[t.getUTCDay()]},h:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},b:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},B:function(t){return this[this.locale].month.full[t.getUTCMonth()]},P:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)].toLowerCase()},p:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)]},R:function(t,e){return this.convert([e,\"%H:%M\"])},T:function(t,e){return this.convert([e,\"%H:%M:%S\"])},D:function(t,e){return this.convert([e,\"%m/%d/%y\"])},F:function(t,e){return this.convert([e,\"%Y-%m-%d\"])},x:function(t,e){return this.convert([e,this[this.locale].date])},r:function(t,e){return this.convert([e,this[this.locale].time12||\"%I:%M:%S\"])},X:function(t,e){return this.convert([e,this[this.locale].time24])},c:function(t,e){return this.convert([e,this[this.locale].dateTime])},convert:o,locale:\"en_US\",en_US:{date:\"%m/%d/%Y\",time24:\"%I:%M:%S %p\",time12:\"%I:%M:%S %p\",dateTime:\"%a %d %b %Y %I:%M:%S %p %Z\",meridiem:[\"AM\",\"PM\"],month:{abbrev:\"Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec\".split(\"|\"),full:\"January|February|March|April|May|June|July|August|September|October|November|December\".split(\"|\")},day:{abbrev:\"Sun|Mon|Tue|Wed|Thu|Fri|Sat\".split(\"|\"),full:\"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday\".split(\"|\")}}},c=\"Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond\",u=new RegExp(\"^\\\\s*([+-])(\\\\d+)\\\\s+(\"+c+\")s?\\\\s*$\",\"i\"),h=[36e5,6e4,1e3,1];return c=c.toLowerCase().split(\"|\"),\"delmHMSUWVgCIky\".replace(/./g,function(t){l[t].pad=2}),l.N.pad=9,l.j.pad=3,l.k.style=\"_\",l.l.style=\"_\",l.e.style=\"_\",function(){return l.convert(arguments)}}),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/datetime_tick_formatter\",[\"underscore\",\"backbone\",\"sprintf\",\"timezone\",\"common/has_properties\",\"common/logging\"],function(t,n,i,r,o,s){var a,l,c,u,h,p,d,f,_,g,m;return c=s.logger,m=function(t){return i(\"%3dus\",Math.floor(t%1*1e3))},p=function(t){var e,n;return e=Math.floor(t/1e3%1*1e3),n=Math.floor(t%1*1e3),i(\"%3d.%3dms\",e,n)},g=function(t){var e,n;return e=new Date(t),n=e.getFullYear(),e.getMonth()>=7&&(n+=1),i(\"'%02d\",n%100)},h=function(t){var e,n;return e=new Date(t),n=e.getFullYear(),e.getMonth()>=7&&(n+=1),i(\"%d\",n)},u=function(t){return r(t,\"%Y %m %d %H %M %S\").split(/\\s+/).map(function(t){return parseInt(t,10)})},_=function(e,n){return t.isFunction(n)?n(e):r(e,n)},a=function(n){function i(){return d=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"DatetimeTickFormatter\",i.prototype.format_order=[\"microseconds\",\"milliseconds\",\"seconds\",\"minsec\",\"minutes\",\"hourmin\",\"hours\",\"days\",\"months\",\"years\"],i.prototype._formats={microseconds:[m,p],milliseconds:[\"%3Nms\",\"%S.%3Ns\"],seconds:[\"%Ss\"],minsec:[\":%M:%S\"],minutes:[\":%M\",\"%Mm\"],hourmin:[\"%H:%M\"],hours:[\"%Hh\",\"%H:%M\"],days:[\"%m/%d\",\"%a%d\"],months:[\"%m/%Y\",\"%b%y\"],years:[\"%Y\",g,h]},i.prototype.strip_leading_zeros=!0,i.prototype.initialize=function(e,n){var o,s,a,l,c,u,h,p;i.__super__.initialize.call(this,e,n),o=t.extend({},this._formats,this.get(\"formats\")),c=r(new Date),this.formats={},p=[];for(s in o)l=o[s],u=function(){var t,e,n;for(n=[],t=0,e=l.length;e>t;t++)a=l[t],n.push(_(c,a).length);return n}(),h=t.sortBy(t.zip(u,l),function(t){var e,n;return n=t[0],e=t[1],n}),p.push(this.formats[s]=t.zip.apply(t,h));return p},i.prototype._get_resolution_str=function(t,e){var n,i;return n=1.1*t,i=.001>n?\"microseconds\":1>n?\"milliseconds\":60>n?e>=60?\"minsec\":\"seconds\":3600>n?e>=3600?\"hourmin\":\"minutes\":86400>n?\"hours\":2678400>n?\"days\":31536e3>n?\"months\":\"years\"},i.prototype.format=function(e,n,i,r,o){var s,a,l,h,p,d,f,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O,j,P,N,I;if(null==n&&(n=null),null==i&&(i=null),null==r&&(r=.3),null==o&&(o=null),0===e.length)return[];if(k=Math.abs(e[e.length-1]-e[0])/1e3,v=o?o.resolution:k/(e.length-1),b=this._get_resolution_str(v,k),P=this.formats[b],D=P[0],h=P[1],l=h[0],i){for(p=[],f=A=0,N=D.length;N>=0?N>A:A>N;f=N>=0?++A:--A)D[f]*e.length<r*i&&p.push(this.formats[f]);p.length>0&&(l=t.last(p))}for(g=[],w=this.format_order.indexOf(b),T={},I=this.format_order,R=0,O=I.length;O>R;R++)a=I[R],T[a]=0;for(T.seconds=5,T.minsec=4,T.minutes=4,T.hourmin=3,T.hours=3,E=0,j=e.length;j>E;E++){S=e[E];try{M=u(S),x=_(S,l)}catch(z){s=z,c.warn(\"unable to format tick for timestamp value \"+S),c.warn(\" - \"+s),g.push(\"ERR\");continue}for(d=!1,y=w;0===M[T[this.format_order[y]]]&&(y+=1,y!==this.format_order.length);){if((\"minsec\"===b||\"hourmin\"===b)&&!d){if(\"minsec\"===b&&0===M[4]&&0!==M[5]||\"hourmin\"===b&&0===M[3]&&0!==M[4]){m=this.formats[this.format_order[w-1]][1][0],x=_(S,m);break}d=!0}m=this.formats[this.format_order[y]][1][0],x=_(S,m)}this.strip_leading_zeros?(C=x.replace(/^0+/g,\"\"),C===x||\"\"!==C&&isFinite(C[0])||(C=\"0\"+C),g.push(C)):g.push(x)}return g},i.prototype.defaults=function(){return t.extend(i.__super__.defaults.call(this),{formats:{}})},i}(o),l=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(n.Collection),{Model:a,Collection:new l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/guide/datetime_axis\",[\"backbone\",\"./axis\",\"ticking/datetime_ticker\",\"ticking/datetime_tick_formatter\"],function(t,n,i,r){var o,s,a,l,c,u;return a=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(n.View),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type=\"DatetimeAxis\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),null==this.get(\"ticker\")&&this.set_obj(\"ticker\",i.Collection.create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",r.Collection.create()):void 0},n}(n.Model),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(t.Collection),{Model:s,Collection:new o,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/guide/grid\",[\"underscore\",\"common/has_parent\",\"renderer/properties\",\"common/plot_widget\"],function(t,n,i,r){var o,s,a,l,c,u,h;return l=i.line_properties,s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.grid_props=new l(this,null,\"grid_\"),this.x_range_name=this.mget(\"x_range_name\"),this.y_range_name=this.mget(\"y_range_name\")},n.prototype.render=function(){var t;return t=this.plot_view.canvas_view.ctx,t.save(),this._draw_grids(t),t.restore()},n.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,\"change\",this.request_render)},n.prototype._draw_grids=function(t){var e,n,i,r,o,s,a,l,c,u,h;if(this.grid_props.do_stroke)for(l=this.mget(\"grid_coords\"),r=l[0],o=l[1],this.grid_props.set(t,this),e=s=0,c=r.length;c>=0?c>s:s>c;e=c>=0?++s:--s){for(u=this.plot_view.map_to_screen(r[e],\"data\",o[e],\"data\",this.x_range_name,this.y_range_name),n=u[0],i=u[1],t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(i[0])),e=a=1,h=n.length;h>=1?h>a:a>h;e=h>=1?++a:--a)t.lineTo(Math.round(n[e]),Math.round(i[e]));t.stroke()}},n}(r),o=function(n){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"Grid\",i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e),this.register_property(\"computed_bounds\",this._bounds,!1),this.add_dependencies(\"computed_bounds\",this,[\"bounds\"]),this.register_property(\"grid_coords\",this._grid_coords,!1),this.add_dependencies(\"grid_coords\",this,[\"computed_bounds\",\"dimension\",\"ticker\"]),this.register_property(\"ranges\",this._ranges,!0)\n",
" },i.prototype._ranges=function(){var t,e,n,i;return e=this.get(\"dimension\"),n=(e+1)%2,t=this.get(\"plot\").get(\"frame\"),i=[t.get(\"x_ranges\")[this.get(\"x_range_name\")],t.get(\"y_ranges\")[this.get(\"y_range_name\")]],[i[e],i[n]]},i.prototype._bounds=function(){var e,n,i,r,o,s,a,l;return a=this.get(\"ranges\"),i=a[0],e=a[1],s=null!=(l=this.get(\"bounds\"))?l:\"auto\",r=[i.get(\"min\"),i.get(\"max\")],t.isArray(s)?(o=Math.min(s[0],s[1]),n=Math.max(s[0],s[1]),o<r[0]?o=r[0]:o>r[1]&&(o=null),n>r[1]?n=r[1]:n<r[0]&&(n=null)):(o=r[0],n=r[1]),[o,n]},i.prototype._grid_coords=function(){var t,e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k;for(l=this.get(\"dimension\"),u=(l+1)%2,w=this.get(\"ranges\"),_=w[0],r=w[1],x=this.get(\"computed_bounds\"),g=x[0],a=x[1],y=Math.min(g,a),a=Math.max(g,a),g=y,m=this.get(\"ticker\").get_ticks(g,a,_,{}).major,d=_.get(\"min\"),p=_.get(\"max\"),n=r.get(\"min\"),e=r.get(\"max\"),i=[[],[]],c=v=0,k=m.length;k>=0?k>v:v>k;c=k>=0?++v:--v)if(m[c]!==d&&m[c]!==p){for(o=[],s=[],t=2,f=b=0;t>=0?t>b:b>t;f=t>=0?++b:--b)h=n+(e-n)/(t-1)*f,o.push(m[c]),s.push(h);i[l].push(o),i[u].push(s)}return i},i.prototype.defaults=function(){return{x_range_name:\"default\",y_range_name:\"default\"}},i.prototype.display_defaults=function(){return{level:\"underlay\",grid_line_color:\"#cccccc\",grid_line_width:1,grid_line_alpha:1,grid_line_join:\"miter\",grid_line_cap:\"butt\",grid_line_dash:[],grid_line_dash_offset:0}},i}(n),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(Backbone.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/basic_tick_formatter\",[\"underscore\",\"backbone\",\"common/has_properties\"],function(t,n,i){var r,o,s,a;return r=function(n){function i(){return s=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"BasicTickFormatter\",i.prototype.initialize=function(t,e){return i.__super__.initialize.call(this,t,e),this.register_property(\"scientific_limit_low\",function(){return Math.pow(10,this.get(\"power_limit_low\"))},!0),this.add_dependencies(\"scientific_limit_low\",this,[\"power_limit_low\"]),this.register_property(\"scientific_limit_high\",function(){return Math.pow(10,this.get(\"power_limit_high\"))},!0),this.add_dependencies(\"scientific_limit_high\",this,[\"power_limit_high\"]),this.last_precision=3},i.prototype.format=function(e){var n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x;if(0===e.length)return[];if(u=0,e.length>=2&&(u=Math.abs(e[1]-e[0])/1e4),o=!1,this.get(\"use_scientific\"))for(h=0,_=e.length;_>h;h++)if(a=e[h],l=Math.abs(a),l>u&&(l>=this.get(\"scientific_limit_high\")||l<=this.get(\"scientific_limit_low\"))){o=!0;break}if(s=this.get(\"precision\"),null==s||t.isNumber(s)){if(r=new Array(e.length),o)for(n=p=0,y=e.length;y>=0?y>p:p>y;n=y>=0?++p:--p)r[n]=e[n].toExponential(s||void 0);else for(n=d=0,v=e.length;v>=0?v>d:d>v;n=v>=0?++d:--d)r[n]=e[n].toFixed(s||void 0).replace(/(\\.[0-9]*?)0+$/,\"$1\").replace(/\\.$/,\"\");return r}if(\"auto\"===s)for(r=new Array(e.length),c=f=b=this.last_precision;15>=b?15>=f:f>=15;c=15>=b?++f:--f){if(i=!0,o){for(n=g=0,w=e.length;w>=0?w>g:g>w;n=w>=0?++g:--g)if(r[n]=e[n].toExponential(c),n>0&&r[n]===r[n-1]){i=!1;break}if(i)break}else{for(n=m=0,x=e.length;x>=0?x>m:m>x;n=x>=0?++m:--m)if(r[n]=e[n].toFixed(c).replace(/(\\.[0-9]*?)0+$/,\"$1\").replace(/\\.$/,\"\"),n>0&&r[n]===r[n-1]){i=!1;break}if(i)break}if(i)return this.last_precision=c,r}return r},i.prototype.defaults=function(){return{precision:\"auto\",use_scientific:!0,power_limit_high:5,power_limit_low:-3}},i}(i),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,Collection:new o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/guide/linear_axis\",[\"underscore\",\"backbone\",\"./axis\",\"ticking/basic_ticker\",\"ticking/basic_tick_formatter\"],function(t,n,i,r,o){var s,a,l,c,u,h;return l=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(i.View),a=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=l,n.prototype.type=\"LinearAxis\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),null==this.get(\"ticker\")&&this.set_obj(\"ticker\",r.Collection.create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",o.Collection.create()):void 0},n}(i.Model),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(n.Collection),{Model:a,Collection:new s,View:l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/log_ticker\",[\"ticking/adaptive_ticker\"],function(t){var n,i,r,o,s;return r=function(t,e,n){var i,r;if(\"undefined\"==typeof e&&(e=t,t=0),\"undefined\"==typeof n&&(n=1),n>0&&t>=e||0>n&&e>=t)return[];for(r=[],i=t;n>0?e>i:i>e;)r.push(i),i+=n;return r},n=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"LogTicker\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e)},n.prototype.get_ticks_no_defaults=function(t,e,n){var i,o,s,a,l,c,u,h,p,d,f,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O,j,P,N;if(m=this.get(\"num_minor_ticks\"),g=[],0>=t&&(t=1),t>e&&(N=[e,t],t=N[0],e=N[1]),p=Math.log(t)/Math.log(10),u=Math.log(e)/Math.log(10),h=u-p,2>h){if(c=this.get_interval(t,e,n),y=Math.floor(t/c),i=Math.ceil(e/c),a=_.isNaN(y)||_.isNaN(i)?[]:_.range(y,i+1),w=function(){var t,e,n;for(n=[],t=0,e=a.length;e>t;t++)s=a[t],0!==s&&n.push(s*c);return n}(),m>1){for(d=c/m,f=function(){var t,e;for(e=[],l=t=1;m>=1?m>=t:t>=m;l=m>=1?++t:--t)e.push(l*d);return e}(),k=0,M=f.length;M>k;k++)x=f[k],g.push(w[0]-x);for(C=0,D=w.length;D>C;C++)for(b=w[C],S=0,A=f.length;A>S;S++)x=f[S],g.push(b+x)}}else if(v=Math.ceil(p),o=Math.floor(u),c=Math.ceil((o-v)/9),w=r(v,o,c),(o-v)%c===0&&(w=w.concat([o])),w=w.map(function(t){return Math.pow(10,t)}),m>1){for(d=Math.pow(10,c)/m,f=function(){var t,e;for(e=[],l=t=1;m>=1?m>=t:t>=m;l=m>=1?++t:--t)e.push(l*d);return e}(),T=0,R=f.length;R>T;T++)x=f[T],g.push(w[0]/x);for(j=0,E=w.length;E>j;j++)for(b=w[j],P=0,O=f.length;O>P;P++)x=f[P],g.push(b*x)}return{major:w,minor:g}},n.prototype.defaults=function(){return _.extend(n.__super__.defaults.call(this),{mantissas:[1,5]})},n}(t.Model),i=function(t){function i(){return s=i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.model=n,i}(Backbone.Collection),{Model:n,Collection:new i}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"ticking/log_tick_formatter\",[\"underscore\",\"backbone\",\"common/has_properties\",\"ticking/basic_tick_formatter\"],function(t,n,i,r){var o,s,a,l;return o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.type=\"LogTickFormatter\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),this.basic_formatter=new r.Model},n.prototype.format=function(t){var e,n,i,r,o;if(0===t.length)return[];for(i=!1,n=new Array(t.length),e=r=0,o=t.length;o>=0?o>r:r>o;e=o>=0?++r:--r)if(n[e]=\"10^\"+Math.round(Math.log(t[e])/Math.log(10)),e>0&&n[e]===n[e-1]){i=!0;break}return i&&(n=this.basic_formatter.format(t)),n},n}(i),s=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/guide/log_axis\",[\"underscore\",\"backbone\",\"./axis\",\"ticking/log_ticker\",\"ticking/log_tick_formatter\"],function(t,n,i,r,o){var s,a,l,c,u,h;return l=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n}(i.View),a=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=l,n.prototype.type=\"LogAxis\",n.prototype.initialize=function(t,e){return n.__super__.initialize.call(this,t,e),null==this.get(\"ticker\")&&this.set_obj(\"ticker\",r.Collection.create()),null==this.get(\"formatter\")?this.set_obj(\"formatter\",o.Collection.create()):void 0},n}(i.Model),s=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n}(n.Collection),{Model:a,Collection:new s,View:l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"renderer/overlay/box_selection\",[\"underscore\",\"common/has_parent\",\"common/plot_widget\"],function(t,n,i){var r,o,s,a,l,c;return o=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(t){return this.selecting=!1,this.xrange=[null,null],this.yrange=[null,null],i.__super__.initialize.call(this,t),this.plot_view.$el.find(\".bokeh_canvas_wrapper\").append(this.$el)},i.prototype.boxselect=function(t,e){return this.xrange=t,this.yrange=e,this.request_render()},i.prototype.startselect=function(){return this.selecting=!0,this.xrange=[null,null],this.yrange=[null,null],this.request_render()},i.prototype.stopselect=function(){return this.selecting=!1,this.xrange=[null,null],this.yrange=[null,null],this.request_render()},i.prototype.bind_bokeh_events=function(){return this.toolview=this.plot_view.tools[this.mget(\"tool\").id],this.listenTo(this.toolview,\"boxselect\",this.boxselect),this.listenTo(this.toolview,\"startselect\",this.startselect),this.listenTo(this.toolview,\"stopselect\",this.stopselect)},i.prototype.render=function(){var e,n,i,r,o,s,a;return this.selecting?(o=this.xrange,a=this.yrange,t.any(t.map(o,t.isNullOrUndefined))||t.any(t.map(a,t.isNullOrUndefined))?void this.$el.removeClass(\"shading\"):(n=\"\",o?(r=this.plot_view.canvas.vx_to_sx(Math.min(o[0],o[1])),i=Math.abs(o[1]-o[0])):(r=0,i=this.plot_view.frame.get(\"width\")),n+=\"; left:\"+r+\"px; width:\"+i+\"px; \",a?(s=this.plot_view.canvas.vy_to_sy(Math.max(a[0],a[1])),e=Math.abs(a[1]-a[0])):(s=0,e=this.plot_view.frame.get(\"height\")),this.$el.addClass(\"shading\"),n+=\"top:\"+s+\"px; height:\"+e+\"px\",this.$el.attr(\"style\",n))):void this.$el.removeClass(\"shading\")},i}(i),r=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=o,n.prototype.type=\"BoxSelection\",n.prototype.defaults=function(){return{tool:null,level:\"overlay\"}},n}(n),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(Backbone.Collection),{Model:r,Collection:new s,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"source/column_data_source\",[\"underscore\",\"backbone\",\"common/has_properties\"],function(t,n,i){var r,o,s,a;return r=function(n){function i(){return s=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.type=\"ColumnDataSource\",i.prototype.get_column=function(t){var e;return null!=(e=this.get(\"data\")[t])?e:null},i.prototype.get_length=function(){var e;return e=this.get(\"data\"),0===t.keys(e).length?0:e[t.keys(e)[0]].length},i.prototype.columns=function(){return t.keys(this.get(\"data\"))},i.prototype.datapoints=function(){var e,n,i,r,o,s,a,l,c,u;if(e=this.get(\"data\"),i=t.keys(e),0===i.length)return[];for(s=[],r=a=0,u=e[i[0]].length;u>=0?u>a:a>u;r=u>=0?++a:--a){for(o={},l=0,c=i.length;c>l;l++)n=i[l],o[n]=e[n][r];s.push(o)}return s},i.prototype.defaults=function(){return{data:{}}},i}(i),o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,Collection:new o}})}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};i(\"source/server_data_source\",[\"underscore\",\"backbone\",\"common/has_properties\",\"common/logging\",\"range/range1d\",\"range/data_range1d\"],function(e,i,r,o,s){var a,l,c,u,h,p;return u=o.logger,c=function(t){var e,n,i,r;return e=!1,r=null,i=!1,n=function(){return e?i?u.debug(\"already bound, ignoring\"):(u.debug(\"busy, so doing it later\"),i=!0,r.done(function(){return i=!1,n()})):(u.debug(\"executing\"),e=!0,r=t(),r.done(function(){return u.debug(\"done, setting to false\"),e=!1,r=null}))}},a=function(i){function r(){return this.heatmap_update=t(this.heatmap_update,this),this.line1d_update=t(this.line1d_update,this),this.initialize=t(this.initialize,this),h=r.__super__.constructor.apply(this,arguments)}return n(r,i),r.prototype.type=\"ServerDataSource\",r.prototype.initialize=function(t,e){return r.__super__.initialize.call(this,t,e),this.callbacks={}},r.prototype.stoplistening_for_updates=function(t){var e,n,i,r,o;if(this.callbacks[t.get(\"id\")]){for(r=this.callbacks[t.get(\"id\")],o=[],n=0,i=r.length;i>n;n++)e=r[n],o.push(this.stopListening.apply(this,e));return o}},r.prototype.update_url=function(){var t,e,n;return t=this.get(\"owner_username\"),e=this.get_base().Config.prefix,n=\"\"+e+\"bokeh/data/\"+t+\"/\"+this.get(\"doc\")+\"/\"+this.get(\"id\")},r.prototype.listen_for_line1d_updates=function(t,n,i,r,o,s,a,l,c,u){var h,p,d;return p={screen_x:n,screen_y:i},this.stoplistening_for_updates(t),this.line1d_update(t,p,r,o,s,a,l,c,u),d=e.throttle(this.line1d_update,300),h=function(){return d(t,p,r,o,s,a,l,c,u)},this.listenTo(s,\"change\",h),this.listenTo(r,\"change\",h),this.callbacks[t.get(\"id\")]=[[s,\"change\",h],[r,\"change\",h]]},r.prototype.line1d_update=function(t,n,i,r,o,s,a,l,c){var u,h,p,d;return h=(o.get(\"end\")-o.get(\"start\"))/2,h=Math.floor(h),u=[i.get(\"start\"),i.get(\"end\")],d=[r.get(\"start\"),r.get(\"end\")],n.screen_x.get(\"start\")===n.screen_x.get(\"end\")||n.screen_y.get(\"start\")===n.screen_y.get(\"end\")||u[0]>u[1]||d[0]>d[1]?$.ajax():((e.any(e.map(u,function(t){return e.isNaN(t)}))||e.every(e.map(u,function(t){return e.isEqual(0,t)})))&&(u=\"auto\"),(e.any(e.map(d,function(t){return e.isNaN(t)}))||e.every(e.map(d,function(t){return e.isEqual(0,t)})))&&(d=\"auto\"),p=[s,a,l,u,d,h,c],$.ajax({dataType:\"json\",url:this.update_url(),xhrField:{withCredentials:!0},success:function(e){return\"auto\"===u&&i.set({start:e.domain_limit[0],end:e.domain_limit[1]}),\"auto\"===d&&r.set({start:e.range_limit[0],end:e.range_limit[1]}),t.set(\"data\",e.data)},data:{resample_parameters:JSON.stringify(p),plot_state:JSON.stringify(n)}}))},r.prototype.listen_for_ar_updates=function(t,e,n,i,r,o,s){var a,l,u,h,p,d,f=this;for(u={data_x:r,data_y:o,screen_x:n,screen_y:i},this.stoplistening_for_updates(e),a=c(function(){return f.ar_update(t,e,u,s)}),a(),this.callbacks[e.get(\"id\")]=[],d=[r,o,n,i],h=0,p=d.length;p>h;h++)l=d[h],this.listenTo(l,\"change\",a),this.callbacks[e.get(\"id\")].push([l,\"change\",a]);return this.listenTo(this,\"change:index_slice\",a),this.callbacks[e.get(\"id\")].push([this,\"change:index_slice\",a]),this.listenTo(this,\"change:data_slice\",a),this.callbacks[e.get(\"id\")].push([this,\"change:data_slice\",a]),null},r.prototype.ar_update=function(t,n,i,r){var o,a,l,c,h,p,d;if(o=\"not auto\",h=n.get(\"data\").render_state,h||(h={}),i.screen_x.get(\"start\")===i.screen_x.get(\"end\")||i.screen_y.get(\"start\")===i.screen_y.get(\"end\"))return u.debug(\"skipping due to under-defined view state\"),$.ajax();(t.x_range.get(\"start\")===t.x_range.get(\"end\")||e.isNaN(t.x_range.get(\"start\"))||e.isNaN(t.x_range.get(\"end\"))||t.y_range.get(\"start\")===t.y_range.get(\"end\")||e.isNaN(t.y_range.get(\"start\"))||e.isNaN(t.y_range.get(\"end\")))&&(o=\"auto\"),d={};for(l in i)a=i[l],c=new s.Model,c.set(\"start\",a.get(\"start\")),c.set(\"end\",a.get(\"end\")),d[l]=c;return u.debug(\"Sent render State\",h),p=$.ajax({dataType:\"json\",url:this.update_url(),xhrField:{withCredentials:!0},success:function(r){var s;return\"NO UPDATE\"===r.render_state?void u.info(\"No update\"):(\"auto\"===o&&(i.data_x.set({start:r.x_range.start,end:r.x_range.end}),i.data_y.set({start:r.y_range.start,end:r.y_range.end})),u.debug(\"New render State:\",r.render_state),s=e.clone(n.get(\"data\")),e.extend(s,r),n.set(\"data\",s),t.request_render())},data:{resample_parameters:JSON.stringify([r]),plot_state:JSON.stringify(d),render_state:JSON.stringify(h)}})},r.prototype.listen_for_heatmap_updates=function(t,e,n,i,r,o){var s,a,l,u,h,p,d=this;for(l={data_x:i,data_y:r,screen_x:e,screen_y:n},this.stoplistening_for_updates(t),s=c(function(){return d.heatmap_update(t,l,o)}),s(),this.callbacks[t.get(\"id\")]=[],p=[i,r,e,n],u=0,h=p.length;h>u;u++)a=p[u],this.listenTo(a,\"change\",s),this.callbacks[t.get(\"id\")].push([a,\"change\",s]);return this.listenTo(this,\"change:index_slice\",s),this.callbacks[t.get(\"id\")].push([this,\"change:index_slice\",s]),this.listenTo(this,\"change:data_slice\",s),this.callbacks[t.get(\"id\")].push([this,\"change:data_slice\",s]),null},r.prototype.heatmap_update=function(t,n,i){var r,o,s,a,l,c,h;return a=this.get(\"data\").global_x_range,l=this.get(\"data\").global_y_range,o=this.get(\"data\").global_offset_x[0],s=this.get(\"data\").global_offset_y[0],c=this.get(\"index_slice\"),r=this.get(\"data_slice\"),n.screen_x.get(\"start\")===n.screen_x.get(\"end\")||n.screen_y.get(\"start\")===n.screen_y.get(\"end\")?(u.debug(\"skipping due to under-defined view state\"),$.ajax()):(h=[a,l,o,s,c,r,this.get(\"transpose\"),i],$.ajax({dataType:\"json\",url:this.update_url(),xhrField:{withCredentials:!0},success:function(n){var i;return i=e.clone(t.get(\"data\")),e.extend(i,n),t.set(\"data\",i)},data:{resample_parameters:JSON.stringify(h),plot_state:JSON.stringify(n)}}))},r}(r),l=function(t){function e(){return p=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=a,e}(i.Collection),{Model:a,Collection:new l}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/tool\",[\"underscore\",\"common/plot_widget\",\"common/has_parent\"],function(t,n,i){var r,o,s,a;return o=function(n){function i(){return s=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t)},i.prototype.bind_bokeh_events=function(){var e,n,i,r,o=this;return e=this.plot_view.eventSink,i={eventBasename:this.cid,buttonIcon:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAADfSURBVEiJ1ZXhDYIwEEbfZxzADWQDR5ANXMFRHMERdBLZQDdQN9AJPv+gIajQClZ8SUNy6d0j5a7INikZJbUNVijpaQFLYAesa/FGxh1etgBOwCUqy3brKvflto9up7lWiND2KkAUJAxtmgK4Rh3dGxQyh5KwPQE2wKRle96LsI7tDJgCV0mHSry5WGjTvMi7f9cipl6Xwc/K5zwmqQ9hFMO82oYifIyH7TyFcPZJ0l8d6U+F+VeFMU3Si7DCOalQUgZskwlt74EFEddcl9/TsiJaS7qU8e7CPvnbOQzmBk+aLHum0l/aAAAAAElFTkSuQmCC\"},r=t.extend(i,this.evgen_options),n=new this.eventGeneratorClass(r),n.bind_bokeh_events(this.plot_view,e),t.each(this.tool_events,function(t,n){var i,r;return i=\"\"+o.cid+\":\"+n,r=function(e){return o[t](e)},e.on(i,r)}),this.evgen=n,{render:function(){}}},i}(n),r=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.display_defaults=function(){return{level:\"tool\"}},n}(i),{Model:r,View:o}})}.call(this),!function(t){\"function\"==typeof i&&i.amd?i(\"jquery_mousewheel\",[\"jquery\"],t):\"object\"==typeof o?module.exports=t:t(jQuery)}(function(t){function e(e){var s=e||window.event,a=l.call(arguments,1),c=0,h=0,p=0,d=0,f=0,_=0;if(e=t.event.fix(s),e.type=\"mousewheel\",\"detail\"in s&&(p=-1*s.detail),\"wheelDelta\"in s&&(p=s.wheelDelta),\"wheelDeltaY\"in s&&(p=s.wheelDeltaY),\"wheelDeltaX\"in s&&(h=-1*s.wheelDeltaX),\"axis\"in s&&s.axis===s.HORIZONTAL_AXIS&&(h=-1*p,p=0),c=0===p?h:p,\"deltaY\"in s&&(p=-1*s.deltaY,c=p),\"deltaX\"in s&&(h=s.deltaX,0===p&&(c=-1*h)),0!==p||0!==h){if(1===s.deltaMode){var g=t.data(this,\"mousewheel-line-height\");c*=g,p*=g,h*=g}else if(2===s.deltaMode){var m=t.data(this,\"mousewheel-page-height\");c*=m,p*=m,h*=m}if(d=Math.max(Math.abs(p),Math.abs(h)),(!o||o>d)&&(o=d,i(s,d)&&(o/=40)),i(s,d)&&(c/=40,h/=40,p/=40),c=Math[c>=1?\"floor\":\"ceil\"](c/o),h=Math[h>=1?\"floor\":\"ceil\"](h/o),p=Math[p>=1?\"floor\":\"ceil\"](p/o),u.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=e.clientX-y.left,_=e.clientY-y.top}return e.deltaX=h,e.deltaY=p,e.deltaFactor=o,e.offsetX=f,e.offsetY=_,e.deltaMode=0,a.unshift(e,c,h,p),r&&clearTimeout(r),r=setTimeout(n,200),(t.event.dispatch||t.event.handle).apply(this,a)}}function n(){o=null}function i(t,e){return u.settings.adjustOldDeltas&&\"mousewheel\"===t.type&&e%120===0}var r,o,s=[\"wheel\",\"mousewheel\",\"DOMMouseScroll\",\"MozMousePixelScroll\"],a=\"onwheel\"in document||document.documentMode>=9?[\"wheel\"]:[\"mousewheel\",\"DomMouseScroll\",\"MozMousePixelScroll\"],l=Array.prototype.slice;if(t.event.fixHooks)for(var c=s.length;c;)t.event.fixHooks[s[--c]]=t.event.mouseHooks;var u=t.event.special.mousewheel={version:\"3.1.12\",setup:function(){if(this.addEventListener)for(var n=a.length;n;)this.addEventListener(a[--n],e,!1);else this.onmousewheel=e;t.data(this,\"mousewheel-line-height\",u.getLineHeight(this)),t.data(this,\"mousewheel-page-height\",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=a.length;n;)this.removeEventListener(a[--n],e,!1);else this.onmousewheel=null;t.removeData(this,\"mousewheel-line-height\"),t.removeData(this,\"mousewheel-page-height\")},getLineHeight:function(e){var n=t(e),i=n[\"offsetParent\"in t.fn?\"offsetParent\":\"parent\"]();return i.length||(i=t(\"body\")),parseInt(i.css(\"fontSize\"),10)||parseInt(n.css(\"fontSize\"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind(\"mousewheel\",t):this.trigger(\"mousewheel\")},unmousewheel:function(t){return this.unbind(\"mousewheel\",t)}})}),function(){i(\"tool/event_generators\",[\"jquery_mousewheel\"],function(){var t,e,n,i;return i=function(t){var e,n,i;return n=$(t.currentTarget).offset(),e=null!=n?n.left:0,i=null!=n?n.top:0,t.bokehX=t.pageX-e,t.bokehY=t.pageY-i},n=function(){function t(t){this.restrict_to_innercanvas=t.restrict_to_innercanvas,this.options=t,this.toolName=this.options.eventBasename,this.dragging=!1,this.basepoint_set=!1,this.button_activated=!1,this.tool_active=!1}return t.prototype.bind_bokeh_events=function(t,e){var n,r,o=this;return r=this.toolName,this.plotview=t,this.eventSink=e,n=this.plotview.canvas.get(\"mousemove_callbacks\"),n.push(function(t){return o.dragging&&o.tool_active?(i(t),o.basepoint_set?(e.trigger(\"\"+r+\":UpdatingMouseMove\",t),t.preventDefault(),t.stopPropagation()):(o.dragging=!0,o.basepoint_set=!0,e.trigger(\"\"+r+\":SetBasepoint\",t))):void 0}),n.push(function(t,e,n){var r,s,a,l,c,u;if(o.dragging){if(i(t),r=o.plotview.frame.get(\"h_range\"),s=o.plotview.frame.get(\"v_range\"),e=o.plotview.canvas.sx_to_vx(t.bokehX),n=o.plotview.canvas.sy_to_vy(t.bokehY),o.restrict_to_innercanvas?(l=r.get(\"start\"),a=r.get(\"end\"),u=s.get(\"start\"),c=s.get(\"end\")):(l=0,a=o.plotview.canvas.get(\"width\"),u=0,c=o.plotview.canvas.get(\"height\")),l>e||e>a)return o._stop_drag(t),!1;if(u>n||n>c)return o._stop_drag(t),!1}}),this.plotview.canvas.set(\"mousemove_callbacks\",n),$(document).bind(\"keydown\",function(t){return 27===t.keyCode?e.trigger(\"clear_active_tool\"):void 0}),$(document).bind(\"keyup\",function(t){return t[o.options.keyName]?void 0:o._stop_drag(t)}),this.plotview.canvas_view.canvas_wrapper.bind(\"mousedown\",function(t){var e;return e=!1,o.button_activated||o.eventSink.active===o.toolName?e=!0:o.eventSink.active||(null!==o.options.keyName||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey?t[o.options.keyName]===!0&&(e=!0):e=!0),e?(o._start_drag(),!1):void 0}),this.plotview.canvas_view.canvas_wrapper.bind(\"mouseup\",function(t){return o.button_activated?(o._stop_drag(t),!1):void 0}),this.plotview.canvas_view.canvas_wrapper.bind(\"mouseleave\",function(t){return o.button_activated?(o._stop_drag(t),!1):void 0}),this.$tool_button=$(\"<button class='bk-toolbar-button \"+this.options.buttonHook+\"' title='\"+this.options.buttonText+\"'><img class='bk-btn-icon' src='\"+this.options.buttonIcon+\"'/><span class='tip'>\"+this.options.buttonText+\"</span></button>\"),this.plotview,this.plotview.$el.find(\".bk-button-bar\").append(this.$tool_button),this.$tool_button.click(function(){return o.button_activated?e.trigger(\"clear_active_tool\"):e.trigger(\"active_tool\",r)}),e.on(\"\"+r+\":deactivated\",function(){return o.tool_active=!1,o.button_activated=!1,o.$tool_button.removeClass(\"active\")}),e.on(\"\"+r+\":activated\",function(){return o.tool_active=!0,o.$tool_button.addClass(\"active\"),o.button_activated=!0}),e},t.prototype.hide_button=function(){return this.$tool_button.hide()},t.prototype._start_drag=function(){return this._activated_with_button=this.button_activated,this.eventSink.trigger(\"active_tool\",this.toolName),this.dragging||(this.dragging=!0,this.button_activated||this.$tool_button.addClass(\"active\"),null==this.options.cursor)?void 0:this.plotview.canvas_view.canvas_wrapper.css(\"cursor\",this.options.cursor)},t.prototype._stop_drag=function(t){return this.basepoint_set=!1,this.dragging&&(this.dragging=!1,this._activated_with_button===!1&&this.options.auto_deactivate===!0&&this.eventSink.trigger(\"clear_active_tool\"),this.button_activated||this.$tool_button.removeClass(\"active\"),null!=this.options.cursor&&this.plotview.canvas_view.canvas_wrapper.css(\"cursor\",\"\"),i(t),this.eventSink.trigger(\"\"+this.options.eventBasename+\":DragEnd\",t)),this._activated_with_button=null},t}(),e=function(){function t(t){this.options=t,this.toolName=this.options.eventBasename,this.dragging=!1,this.basepoint_set=!1,this.button_activated=!1,this.tool_active=!1}return t.prototype.bind_bokeh_events=function(t,e){var n,r,o,s=this;return o=this.toolName,this.plotview=t,this.eventSink=e,this.plotview.canvas_view.canvas_wrapper.mousewheel(function(t,n){return s.tool_active||!s.eventSink.active&&t.shiftKey?(i(t),t.delta=n,e.trigger(\"\"+o+\":zoom\",t),t.preventDefault(),t.stopPropagation()):void 0}),$(document).bind(\"keydown\",function(t){return 27===t.keyCode?e.trigger(\"clear_active_tool\"):void 0}),this.plotview.$el.bind(\"mousein\",function(){return e.trigger(\"clear_active_tool\")}),this.plotview.$el.bind(\"mouseover\",function(){return s.mouseover_count+=1}),this.$tool_button=$(\"<button class='bk-toolbar-button \"+this.options.buttonHook+\"' title='\"+this.options.buttonText+\"'><img class='bk-btn-icon' src='\"+this.options.buttonIcon+\"'/><span class='tip'>\"+this.options.buttonText+\"</span></button>\"),this.plotview.$el.find(\".bk-button-bar\").append(this.$tool_button),this.$tool_button.click(function(){return s.button_activated?e.trigger(\"clear_active_tool\"):(e.trigger(\"active_tool\",o),s.button_activated=!0)}),n=function(t){return t.setAttribute(\"old_overflow\",t.style.overflow),t.style.overflow=\"hidden\",t!==document.body?n(t.parentNode):void 0},r=function(t){return t.style.overflow=t.getAttribute(\"old_overflow\"),t!==document.body?r(t.parentNode):void 0},e.on(\"\"+o+\":deactivated\",function(){return s.tool_active=!1,s.button_activated=!1,s.$tool_button.removeClass(\"active\"),document.body.style.overflow=s.old_overflow}),e.on(\"\"+o+\":activated\",function(){return s.tool_active=!0,s.$tool_button.addClass(\"active\")}),e},t.prototype.hide_button=function(){return this.$tool_button.hide()},t}(),t=function(){function t(t){this.options=t,this.toolName=this.options.eventBasename,this.button_activated=!1,this.tool_active=!1}return t.prototype.bind_bokeh_events=function(t,e){var n,i,r,o=this;return r=this.toolName,this.plotview=t,this.eventSink=e,$(document).bind(\"keydown\",function(t){return 27===t.keyCode?e.trigger(\"clear_active_tool\"):void 0}),this.plotview.$el.bind(\"mouseover\",function(){return o.mouseover_count+=1}),this.$tool_button=$(\"<button class='bk-toolbar-button \"+this.options.buttonHook+\"' title='\"+this.options.buttonText+\"'><img class='bk-btn-icon' src='\"+this.options.buttonIcon+\"'/><span class='tip'>\"+this.options.buttonText+\"</span></button>\"),this.plotview.$el.find(\".bk-button-bar\").append(this.$tool_button),this.$tool_button.click(function(){return o.button_activated?e.trigger(\"clear_active_tool\"):(e.trigger(\"active_tool\",r),o.button_activated=!0)}),n=function(t){return t.setAttribute(\"old_overflow\",t.style.overflow),t.style.overflow=\"hidden\",t!==document.body?n(t.parentNode):void 0},i=function(t){return t.style.overflow=t.getAttribute(\"old_overflow\"),t!==document.body?i(t.parentNode):void 0},e.on(\"\"+r+\":deactivated\",function(){return o.tool_active=!1,o.button_activated=!1,o.$tool_button.removeClass(\"active\"),document.body.style.overflow=o.old_overflow}),e.on(\"\"+r+\":activated\",function(){return o.tool_active=!0,o.$tool_button.addClass(\"active\")}),e},t.prototype.hide_button=function(){return this.$tool_button.hide()},t}(),{TwoPointEventGenerator:n,OnePointWheelEventGenerator:e,ButtonEventGenerator:t}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/box_select_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(n,i,r,o){var s,a,l,c,u,h,p;return c=o.TwoPointEventGenerator,a=function(i){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,i),r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.select_every_mousemove=this.mget(\"select_every_mousemove\")},r.prototype.bind_bokeh_events=function(){var t,e,n,i,o,s;for(r.__super__.bind_bokeh_events.call(this),o=this.mget(\"renderers\"),s=[],n=0,i=o.length;i>n;n++)t=o[n],e=this.plot_view.renderers[t.id],this.listenTo(e.xrange(),\"change\",this.select_callback),this.listenTo(e.yrange(),\"change\",this.select_callback),s.push(this.listenTo(t,\"change\",this.select_callback));return s},r.prototype.eventGeneratorClass=c,r.prototype.toolType=\"BoxSelectTool\",r.prototype.evgen_options={keyName:\"shiftKey\",buttonText:\"Select\",buttonHook:\"select\",buttonIcon:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCRjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBDMDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE4NUM0MEJEMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJFMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+hdQ7dQAAAJdJREFUeNpiXLhs5X8GBPgIxAJQNjZxfiD+wIAKGCkUZ0SWZGIYZIAF3YVoPkEHH6kojhUMyhD6jydEaAlgaWnwh9BAgf9DKpfxDxYHjeay0Vw2bHMZw2guG81lwyXKRnMZWlt98JdDTFAX/x9NQwPkIH6kGMAVEyjyo7lstC4jouc69Moh9L42rlyBTZyYXDS00xBAgAEAqsguPe03+cYAAAAASUVORK5CYII=\",cursor:\"crosshair\",restrict_to_innercanvas:!0},r.prototype.tool_events={SetBasepoint:\"_start_selecting\",UpdatingMouseMove:\"_selecting\",deactivated:\"_stop_selecting\",DragEnd:\"_dragend\"},r.prototype.pause=function(){return null\n",
" },r.prototype.view_coords=function(t,e){var n,i,r;return r=[this.plot_view.canvas.sx_to_vx(t),this.plot_view.canvas.sy_to_vy(e)],n=r[0],i=r[1],[n,i]},r.prototype._stop_selecting=function(){return this.trigger(\"stopselect\"),this.basepoint_set=!1,this.plot_view.unpause()},r.prototype._start_selecting=function(t){var e,n,i;return this.plot_view.pause(),this.trigger(\"startselect\"),i=this.view_coords(t.bokehX,t.bokehY),e=i[0],n=i[1],this.mset({start_vx:e,start_vy:n,current_vx:null,current_vy:null}),this.basepoint_set=!0},r.prototype._get_selection_range=function(){var t,e,i;return this.mget(\"select_x\")?(e=[this.mget(\"start_vx\"),this.mget(\"current_vx\")],e=[n.min(e),n.max(e)]):(t=this.plot_view.frame.get(\"h_range\"),e=[t.get(\"start\"),t.get(\"end\")]),this.mget(\"select_y\")?(i=[this.mget(\"start_vy\"),this.mget(\"current_vy\")],i=[n.min(i),n.max(i)]):(t=this.plot_view.frame.get(\"v_range\"),i=[t.get(\"start\"),t.get(\"end\")]),[e,i]},r.prototype._selecting=function(t){var e,n,i,r;return i=this.view_coords(t.bokehX,t.bokehY),e=i[0],n=i[1],this.mset({current_vx:e,current_vy:n}),r=this._get_selection_range(),this.xrange=r[0],this.yrange=r[1],this.trigger(\"boxselect\",this.xrange,this.yrange),this.select_every_mousemove&&this._select_data(),this.plot_view._render_levels(this.plot_view.canvas_view.ctx,[\"overlay\"]),null},r.prototype._dragend=function(){return this._select_data()},r.prototype._select_data=function(){var e,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m;if(this.basepoint_set){for(a={type:\"rect\",vx0:this.xrange[0],vx1:this.xrange[1],vy0:this.yrange[0],vy1:this.yrange[1]},o={},r={},g=this.mget(\"renderers\"),p=0,f=g.length;f>p;p++)c=g[p],e=c.get(\"data_source\"),o[e.id]=e;for(m=this.mget(\"renderers\"),d=0,_=m.length;_>d;d++)c=m[d],i=c.get(\"data_source\").id,n.setdefault(r,i,[]),u=this.plot_view.renderers[c.id].hit_test(a),r[i].push(u);for(l in r)t.call(r,l)&&(h=r[l],u=n.intersection.apply(n,h),s=o[l],s.save({selected:u},{patch:!0}),this.plot_view.unpause());return null}},r}(r.View),s=function(t){function i(){return h=i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.default_view=a,i.prototype.type=\"BoxSelectTool\",i.prototype.defaults=function(){return n.extend(i.__super__.defaults.call(this),{renderers:[],select_x:!0,select_y:!0,select_every_mousemove:!1,data_source_options:{}})},i.prototype.display_defaults=function(){return i.__super__.display_defaults.call(this)},i}(r.Model),l=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(i.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/box_zoom_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(t,n,i,r){var o,s,a,l,c,u,h;return l=r.TwoPointEventGenerator,s=function(n){function i(){return c=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t)},i.prototype.bind_bokeh_events=function(){return i.__super__.bind_bokeh_events.call(this)},i.prototype.eventGeneratorClass=l,i.prototype.toolType=\"BoxZoomTool\",i.prototype.evgen_options={keyName:\"ctrlKey\",buttonText:\"Box Zoom\",buttonHook:\"box-zoom\",buttonIcon:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhEMjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhEMzIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQwMjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjMyMUREOEQxMjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+a2Q0KAAAAmVJREFUeNq8V19EpFEUvzOtmKfpJSJKDL2WiLJExKaUEq0eeikiaolZLT2lVUpPydqHqIlIo1ilFOmphxj1miKWWHppnobIt7+zeyZ3jjvz/bnf9OPHd8/9d77z3XN+94ts7ew6SqksWKX+w1GFiLjYdVSAfeAQ2Ag2sf0GvAXT4C/wle1x3lt9UOGBNk6BrYa+FuYIeAWOsmNviGqe6W+q081OmAGvizgh0cpjZ3RjGBFZBpMG+xn4wM8NYJfWFwNXwXrwS96RiIUTwwYn6AxMgb+FvQ5c4zOUxzR4Ce5GLZyo5LfSsQP2G5xQbKO+bWFfoLWinA1OAEcoM2rFRpMe5sloJWgtm4j0iPZcPhVdkOWxBWvZONIi2uc+5sqxbTaO1Ij2o4+5T6JdGy1SF4Kg2mLsi01E/oh2l4+5HTKaNlmTEe0ka40XyNqTsYnIkWiTwC16rMRNci0bR0hJ7w1veizqy9uB5D4ZDZKBtI3WvLCCJoT9E3jHny4j1DdmWOcbrWWjNYuGoqaL2kdmKayTztio7yzTJprz4A/9PuI3a8YMh5IKVC9fetxAY5rB79pNzXdESMJ/GrSjm8/DCTjAgpjQZCDDh5I+w4HuQBBHOsE9USty4KB2KF85m9J+v5XX9KXr3T7fQZS26WefYlcU+ayJlxhDIT40jBnn21hQOPrfgFtEqAhdGETqK7gZ4h/Av4g4Jf5TUoYquQSuqJDhFpEJca3b4EoYOtyyhrSkHTzlcj4R4t4FZ9NL+j6yMzlT/ocZES9aky3D3r6y5t2gaw3xWXgs7XFhdyzsgSpr2fFXgAEAmp2J9DuX/WgAAAAASUVORK5CYII=\",cursor:\"crosshair\",auto_deactivate:!0,restrict_to_innercanvas:!0},i.prototype.tool_events={SetBasepoint:\"_start_selecting\",UpdatingMouseMove:\"_selecting\",DragEnd:\"_dragend\"},i.prototype.pause=function(){return null},i.prototype.view_coords=function(t,e){var n,i,r;return r=[this.plot_view.canvas.sx_to_vx(t),this.plot_view.canvas.sy_to_vy(e)],n=r[0],i=r[1],[n,i]},i.prototype._start_selecting=function(t){var e,n,i;return this.plot_view.pause(),this.trigger(\"startselect\"),i=this.view_coords(t.bokehX,t.bokehY),e=i[0],n=i[1],this.mset({start_vx:e,start_vy:n,current_vx:null,current_vy:null}),this.basepoint_set=!0},i.prototype._get_selection_range=function(){var e,n;return this.mget(\"select_x\")?(e=[this.mget(\"start_vx\"),this.mget(\"current_vx\")],e=[t.min(e),t.max(e)]):e=null,this.mget(\"select_y\")?(n=[this.mget(\"start_vy\"),this.mget(\"current_vy\")],n=[t.min(n),t.max(n)]):n=null,[e,n]},i.prototype._selecting=function(t){var e,n,i,r;return i=this.view_coords(t.bokehX,t.bokehY),e=i[0],n=i[1],this.mset({current_vx:e,current_vy:n}),r=this._get_selection_range(),this.xrange=r[0],this.yrange=r[1],this.trigger(\"boxselect\",this.xrange,this.yrange),this.plot_view._render_levels(this.plot_view.canvas_view.ctx,[\"overlay\"]),null},i.prototype._dragend=function(){return this._select_data(),this.basepoint_set=!1,this.plot_view.unpause(),this.trigger(\"stopselect\")},i.prototype._select_data=function(){var t,e,n,i,r,o,s,a,l,c,u;if(this.basepoint_set){r={},a=this.plot_view.frame.get(\"x_mappers\");for(n in a)e=a[n],l=e.v_map_from_target([this.xrange[0],this.xrange[1]]),i=l[0],t=l[1],r[n]={start:i,end:t};o={},c=this.plot_view.frame.get(\"y_mappers\");for(n in c)e=c[n],u=e.v_map_from_target([this.yrange[0],this.yrange[1]]),i=u[0],t=u[1],o[n]={start:i,end:t};return s={xrs:r,yrs:o},this.plot_view.update_range(s)}},i}(i.View),o=function(n){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"BoxZoomTool\",i.prototype.defaults=function(){return t.extend(i.__super__.defaults.call(this),{renderers:[],select_x:!0,select_y:!0,select_every_mousemove:!1,data_source_options:{}})},i.prototype.display_defaults=function(){return i.__super__.display_defaults.call(this)},i}(i.Model),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/click_tool\",[\"underscore\",\"backbone\",\"./tool\"],function(t,n,i){var r,o,s,a,l,c;return o=function(n){function i(){return a=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.listenTo(this,\"clicked\",function(t,e){return console.log(t,e)}),this.active=!1},i.prototype.view_coords=function(t,e){var n,i,r;return r=[this.plot_view.canvas.sx_to_vx(t),this.plot_view.canvas.sy_to_vy(e)],n=r[0],i=r[1],[n,i]},i.prototype.bind_bokeh_events=function(){var t,e=this;return t=\"click_tool\",this.mget(\"always_active\")||(this.tool_button=$(\"<button class='bk-toolbar-button'> Click </button>\"),this.plot_view.$el.find(\".bk-button-bar\").append(this.tool_button),this.tool_button.click(function(){return e.active?e.plot_view.eventSink.trigger(\"clear_active_tool\"):e.plot_view.eventSink.trigger(\"active_tool\",t)}),this.plot_view.eventSink.on(\"\"+t+\":deactivated\",function(){return e.active=!1,e.tool_button.removeClass(\"active\")}),this.plot_view.eventSink.on(\"\"+t+\":activated\",function(){return e.active=!0,e.tool_button.addClass(\"active\")})),this.plot_view.canvas_view.canvas_wrapper.bind(\"mousedown\",function(t){return e.active||e.mget(\"always_active\")?(e.start_posx=t.pageX,e.start_posy=t.pageY):void 0}),this.plot_view.canvas_view.canvas_wrapper.bind(\"mouseup\",function(t){var n,i,r,o,s,a;if((e.active||e.mget(\"always_active\"))&&e.start_posx===t.pageX&&e.start_posy===t.pageY)return i=$(t.currentTarget).offset(),n=null!=i?i.left:0,r=null!=i?i.top:0,t.bokehX=t.pageX-n,t.bokehY=t.pageY-r,a=e.view_coords(t.bokehX,t.bokehY),o=a[0],s=a[1],e._select(o,s,t)})},i.prototype._select=function(e,n){var i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v;for(l={type:\"point\",vx:e,vy:n},s={},o={},u=this.mget(\"renderers\"),g=0,y=u.length;y>g;g++)c=u[g],i=c.get(\"data_source\"),s[i.id]=i;for(m=0,v=u.length;v>m;m++)c=u[m],r=c.get(\"data_source\").id,t.setdefault(o,r,[]),h=this.plot_view.renderers[c.id].hit_test(l),a=s[r],d=this.plot_view.frame.get(\"x_mappers\")[c.get(\"x_range_name\")],_=this.plot_view.frame.get(\"y_mappers\")[c.get(\"y_range_name\")],p=d.map_from_target(e),f=_.map_from_target(n),null!==h&&0!==h.length&&this.trigger(\"clicked\",h,a);return null},i}(i.View),r=function(n){function i(){return l=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=o,i.prototype.type=\"ClickTool\",i.prototype.initialize=function(t,e){var n,r,o,s;return i.__super__.initialize.call(this,t,e),r=this.get(\"names\"),n=this.get(\"plot\").get(\"renderers\"),s=function(){var t,e,i;for(i=[],t=0,e=n.length;e>t;t++)o=n[t],\"Glyph\"===o.type&&i.push(o);return i}(),r.length>0&&(s=function(){var t,e,n;for(n=[],t=0,e=s.length;e>t;t++)o=s[t],r.indexOf(o.get(\"name\"))>=0&&n.push(o);return n}()),this.set(\"renderers\",s)},i.prototype.defaults=function(){return t.extend(i.__super__.defaults.call(this),{renderers:[],names:[],always_active:[]})},i.prototype.display_defaults=function(){return i.__super__.display_defaults.call(this)},i}(i.Model),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=r,n}(n.Collection),{Model:r,Collection:new s,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/crosshair_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\",\"sprintf\"],function(t,n,i,r){var o,s,a,l,c,u,h;return l=r.TwoPointEventGenerator,s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.active=!1},n.prototype.bind_events=function(t){return n.__super__.bind_events.call(this,t)},n.prototype.eventGeneratorClass=l,n.prototype.toolType=\"CrosshairTool\",n.prototype.evgen_options={keyName:\"\",buttonText:\"Crosshair\",cursor:\"crosshair\"},n.prototype.tool_events={activated:\"_activate\",deactivated:\"_deactivate\",UpdatingMouseMove:\"_drag\",SetBasepoint:\"_set_base_point\"},n.prototype.render=function(){var t,e,n,i;if(this.active)return e=this.plot_view.canvas_view.ctx,n=this.plot_view.canvas.get(\"width\"),t=this.plot_view.canvas.get(\"height\"),i=1,e.save(),e.strokeStyle=\"red\",e.globalAlpha=.7,e.lineWidth=i,e.setLineDash([]),e.beginPath(),e.moveTo(0,this.y),e.lineTo(n,this.y),e.moveTo(this.x,0),e.lineTo(this.x,t),e.stroke(),e.restore()},n.prototype.mouse_coords=function(t,e,n){return[e,n]},n.prototype._activate=function(){var t,e,n;if(!this.active)return this.active=!0,this.popup=$('<div class=\"resize_popup pull-right\"\\nstyle=\"border-radius: 10px; background-color: lightgrey; padding:3px 8px; font-size: 14px;\\nposition:absolute; right:20px; top: 20px; \"></div>'),t=this.plot_view.$el.find(\".bokeh_canvas_wrapper\"),this.popup.appendTo(t),e=this.plot_view.canvas.get(\"height\"),n=this.plot_view.canvas.get(\"width\"),this.popup.text(\"x: 0 y:0\"),this.plot_view.$el.css(\"cursor\",\"crosshair\"),null},n.prototype._deactivate=function(){return this.active=!1,this.plot_view.$el.css(\"cursor\",\"default\"),this.popup.remove(),this.request_render(),this.plot_view.request_render(),null},n.prototype._set_base_point=function(t){var e;return e=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=e[0],this.y=e[1],null},n.prototype._drag=function(){return this.plot_view.pause(),this.request_render(),this.plot_view.request_render(),this.plot_view.unpause(!0),null},n}(i.View),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=s,n.prototype.type=\"CrosshairTool\",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(i.Model),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/data_range_box_select_tool\",[\"underscore\",\"backbone\",\"./box_select_tool\"],function(t,n,i){var r,o,s,a,l,c;return o=function(t){function n(){return a=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.bind_bokeh_events=function(){return tool.ToolView.prototype.bind_bokeh_events.call(this)},n.prototype._select_data=function(){var t,e,n,i,r,o;return r=this.plot_view.mapper.map_from_target(this.xrange[0],this.yrange[0]),e=r[0],i=r[1],o=this.plot_view.mapper.map_from_target(this.xrange[1],this.yrange[1]),t=o[0],n=o[1],this.mset(\"xselect\",[e,t]),this.mset(\"yselect\",[i,n]),this.model.save()},n}(i.View),r=function(t){function n(){return l=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=o,n.prototype.type=\"DataRangeBoxSelectTool\",n}(i.Model),s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:r,Collection:new s,View:o}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/hover_tool\",[\"underscore\",\"backbone\",\"sprintf\",\"./tool\"],function(t,n,i,r){var o,s,a,l,c,u,h,p;return l=function(t){var e,n,i,r,o;return\"#\"===t.substr(0,1)?t:(n=/(.*?)rgb\\((\\d+), (\\d+), (\\d+)\\)/.exec(t),r=parseInt(n[2]),i=parseInt(n[3]),e=parseInt(n[4]),o=e|i<<8|r<<16,n[1]+\"#\"+o.toString(16))},c=function(t){return\"string\"==typeof t?t:Math.floor(t)===t?i(\"%d\",t):Math.abs(t)>.1&&Math.abs(t)<1e3?i(\"%0.3f\",t):i(\"%0.3e\",t)},s=function(n){function i(){return u=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t),this.div=$('<div class=\"bokeh_tooltip\" />').appendTo(\"body\"),this.div.hide(),this.active=!1,this.xmapper=this.plot_view.frame.get(\"x_mappers\")[this.x_range_name],this.ymapper=this.plot_view.frame.get(\"y_mappers\")[this.y_range_name]},i.prototype.bind_bokeh_events=function(){var t,e=this;return t=\"hover_tool\",this.mget(\"always_active\")||(this.tool_button=$(\"<button class='bk-toolbar-button hover'> <img class='bk-btn-icon' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA8ElEQVQ4T42T0Q2CMBCGaQjPxgmMG/jelIQN3ECZQEfADRwBJzBuQCC81wlkBHxvqP8lmhTsUfpSWvp/vfvvKiJn1HVdpml6dPdC38I90DSNxVobYzKMPiSm/z5AZK3t4zjOpJQ6BPECfiKAcqRUzkFmASQEhHzJOUgQ8BWyviwFsL4sBnC+LAE84YMWQnSAVCixdkvMAiB6Q7TCfJtrLq4PHkmSnHHbi0LHvOYa6w/g3kitjSgOYFyUUoWvlCPA9C1gvQfgDmiHNLZBgO8A3geZt+G6chQBA7hi/0QVQBrZ9EwQ0LbtbhgGghQAVFPAB25HmRH8b2/nAAAAAElFTkSuQmCC'/> <span class='tip'>Hover</span> </button>\"),this.plot_view.$el.find(\".bk-button-bar\").append(this.tool_button),this.tool_button.click(function(){return e.active?e.plot_view.eventSink.trigger(\"clear_active_tool\"):e.plot_view.eventSink.trigger(\"active_tool\",t)}),this.plot_view.eventSink.on(\"\"+t+\":deactivated\",function(){return e.active=!1,e.tool_button.removeClass(\"active\"),e.div.hide()}),this.plot_view.eventSink.on(\"\"+t+\":activated\",function(){return e.active=!0,e.tool_button.addClass(\"active\")})),this.plot_view.canvas_view.canvas.bind(\"mousemove\",function(t){var n,i,r,o,s,a,l,c,u,h,p,d;if(e.active||e.mget(\"always_active\"))return o=$(t.currentTarget).offset(),r=null!=o?o.left:0,s=null!=o?o.top:0,t.bokehX=t.pageX-r,t.bokehY=t.pageY-s,d=e.view_coords(t.bokehX,t.bokehY),a=d[0],l=d[1],n=e.plot_view.frame.get(\"h_range\"),i=e.plot_view.frame.get(\"v_range\"),u=n.get(\"start\"),c=n.get(\"end\"),p=i.get(\"start\"),h=i.get(\"end\"),u>a||a>c||p>l||l>h?void e.div.hide():e._select(a,l,t)}),this.plot_view.canvas_view.canvas_wrapper.css(\"cursor\",\"crosshair\")},i.prototype.view_coords=function(t,e){var n,i,r;return r=[this.plot_view.canvas.sx_to_vx(t),this.plot_view.canvas.sy_to_vy(e)],n=r[0],i=r[1],[n,i]},i.prototype._select=function(e,n,i){var r,o,s,a,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R,E,O,j,P,N,I,z,H,L,F,B,V,W,U;for(g={type:\"point\",vx:e,vy:n},d={},p={},F=this.mget(\"renderers\"),I=0,H=F.length;H>I;I++)k=F[I],u=k.get(\"data_source\"),d[u.id]=u;for(B=this.mget(\"renderers\"),z=0,L=B.length;L>z;z++)if(k=B[z],h=k.get(\"data_source\").id,t.setdefault(p,h,[]),S=this.plot_view.renderers[k.id].hit_test(g),f=d[h],j=this.plot_view.frame.get(\"x_mappers\")[k.get(\"x_range_name\")],N=this.plot_view.frame.get(\"y_mappers\")[k.get(\"y_range_name\")],O=j.map_from_target(e),P=N.map_from_target(n),null!==S){if(S.length>0){y=S[0],this.div.empty(),D=$(\"<table></table>\"),V=this.mget(\"tooltips\");for(v in V){if(E=V[v],C=$(\"<tr></tr>\"),C.append($(\"<td class='bokeh_tooltip_row_label'>\"+v+\": </td>\")),A=$(\"<td class='bokeh_tooltip_row_value'></td>\"),E.indexOf(\"$color\")>=0){if(W=E.match(/\\$color(\\[.*\\])?:(\\w*)/),b=W[0],w=W[1],r=W[2],s=f.get_column(r),null==s){T=$(\"<span>\"+r+\" unknown</span>\"),A.append(T);continue}if(m=(null!=w?w.indexOf(\"hex\"):void 0)>=0,M=(null!=w?w.indexOf(\"swatch\"):void 0)>=0,o=s[y],null==o){T=$(\"<span>(null)</span>\"),A.append(T);continue}m&&(o=l(o)),T=$(\"<span>\"+o+\"</span>\"),A.append(T),M&&(T=$(\"<span class='bokeh_tooltip_color_block'> </span>\"),T.css({backgroundColor:o})),A.append(T)}else{for(E=E.replace(\"$index\",\"\"+y),E=E.replace(\"$x\",\"\"+c(O)),E=E.replace(\"$y\",\"\"+c(P)),E=E.replace(\"$vx\",\"\"+e),E=E.replace(\"$vy\",\"\"+n),E=E.replace(\"$sx\",\"\"+i.bokehX),E=E.replace(\"$sy\",\"\"+i.bokehY);E.indexOf(\"@\")>=0;){if(U=E.match(/(@)(\\w*)/),b=U[0],R=U[1],a=U[2],s=f.get_column(a),null==s){E=E.replace(a,\"\"+a+\" unknown\");break}s=f.get_column(a),_=s[y],E=\"number\"==typeof _?E.replace(b,\"\"+c(_)):E.replace(b,\"\"+_)}T=$(\"<span>\"+E+\"</span>\"),A.append(T)}C.append(A),D.append(C)}this.div.append(D),x=this.plot_view.frame.get(\"width\"),x/2>e?(this.div.removeClass(\"right\"),this.div.addClass(\"left\"),this.div.css({top:i.pageY-this.div.height()/2,left:i.pageX+18})):(this.div.removeClass(\"left\"),this.div.addClass(\"right\"),this.div.css({top:i.pageY-this.div.height()/2,left:i.pageX-this.div.width()-23})),this.div.show();break}this.div.hide(),p[h].push(S)}return null},i}(r.View),o=function(n){function i(){return h=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.default_view=s,i.prototype.type=\"HoverTool\",i.prototype.initialize=function(t,e){var n,r,o,s;return i.__super__.initialize.call(this,t,e),r=this.get(\"names\"),n=this.get(\"plot\").get(\"renderers\"),s=function(){var t,e,i;for(i=[],t=0,e=n.length;e>t;t++)o=n[t],\"Glyph\"===o.type&&i.push(o);return i}(),r.length>0&&(s=function(){var t,e,n;for(n=[],t=0,e=s.length;e>t;t++)o=s[t],r.indexOf(o.get(\"name\"))>=0&&n.push(o);return n}()),this.set(\"renderers\",s)},i.prototype.defaults=function(){return t.extend(i.__super__.defaults.call(this),{renderers:[],names:[],tooltips:{index:\"$index\",\"data (x, y)\":\"($x, $y)\",\"canvas (x, y)\":\"($sx, $sy)\"}})},i.prototype.display_defaults=function(){return i.__super__.display_defaults.call(this)},i}(r.Model),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/pan_tool\",[\"underscore\",\"backbone\",\"common/logging\",\"./tool\",\"./event_generators\"],function(t,n,i,r,o){var s,a,l,c,u,h,p,d;return c=o.TwoPointEventGenerator,u=i.logger,window.render_count=0,a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){var e;return n.__super__.initialize.call(this,t),e=this.mget(\"dimensions\"),0===e.length?u.warn(\"pan tool given empty dimensions\"):1===e.length?\"width\"===e[0]?this.evgen_options.buttonText=\"Pan (x-axis)\":\"height\"===e[0]?this.evgen_options.buttonText=\"Pan (y-axis)\":u.warn(\"pan tool given unrecognized dimensions: \"+e):2!==e.length?u.warn(\"pan tool given more than two dimensions: \"+e):e.indexOf(\"width\")<0||e.indexOf(\"height\")<0?u.warn(\"pan tool given unrecognized dimensions: \"+e):void 0},n.prototype.bind_bokeh_events=function(){return n.__super__.bind_bokeh_events.call(this)},n.prototype.eventGeneratorClass=c,n.prototype.toolType=\"PanTool\",n.prototype.evgen_options={keyName:null,buttonText:\"Pan\",buttonHook:\"pan\",buttonIcon:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhEODIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCRTI5MDhEOTIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOEQ2MjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOEQ3MjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+OXzPwwAAAKNJREFUeNrsVsEKgCAM3cyj0f8fuwT9XdEHrLyVIOKYY4kPPDim0+fenF+3HZi4nhFec+Rs4oCPAALwjDVUsKMWA6DNAFX6YXcMYIERdRWIYBzAZbKYGsSKex6mVUAK8Za0TphgoFTbpSvlx3/I0EQOILO2i/ibegLk/mgVONM4JvuBVizgkGH3XTGrR/xlV0ycbO8qCeMN54wdtVQwSTFwCzAATqEZUn8W8W4AAAAASUVORK5CYII=\",cursor:\"move\",auto_deactivate:!0,restrict_to_innercanvas:!0},n.prototype.tool_events={UpdatingMouseMove:\"_drag\",SetBasepoint:\"_set_base_point\"},n.prototype.mouse_coords=function(t,e,n){var i,r,o;return o=[this.plot_view.canvas.sx_to_vx(e),this.plot_view.canvas.sy_to_vy(n)],i=o[0],r=o[1],[i,r]},n.prototype._set_base_point=function(t){var e;return e=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=e[0],this.y=e[1],null},n.prototype._drag=function(t){var e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A,R;S=this.mouse_coords(t,t.bokehX,t.bokehY),m=S[0],w=S[1],y=m-this.x,x=w-this.y,T=[m,w],this.x=T[0],this.y=T[1],v=this.plot_view.frame.get(\"h_range\"),p=v.get(\"start\")-y,h=v.get(\"end\")-y,k=this.plot_view.frame.get(\"v_range\"),g=k.get(\"start\")-x,_=k.get(\"end\")-x,e=this.mget(\"dimensions\"),e.indexOf(\"width\")>-1?(c=p,u=h,s=-y):(c=v.get(\"start\"),u=v.get(\"end\"),s=0),e.indexOf(\"height\")>-1?(d=g,f=_,a=x):(d=k.get(\"start\"),f=k.get(\"end\"),a=0),b={},M=this.plot_view.frame.get(\"x_mappers\");for(r in M)i=M[r],D=i.v_map_from_target([c,u]),l=D[0],n=D[1],b[r]={start:l,end:n};C={},A=this.plot_view.frame.get(\"y_mappers\");for(r in A)i=A[r],R=i.v_map_from_target([d,f]),l=R[0],n=R[1],C[r]={start:l,end:n};return o={xrs:b,yrs:C,sdx:s,sdy:a},this.plot_view.update_range(o),null},n}(r.View),s=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type=\"PanTool\",n.prototype.defaults=function(){return{dimensions:[\"width\",\"height\"]}},n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(r.Model),l=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n}(n.Collection),{Model:s,Collection:new l,View:a}})}.call(this),i(\"bootstrap/modal\",[\"jquery\"],function(t){+function(t){var e=function(e,n){this.options=n,this.$element=t(e),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.find(\".bk-bs-modal-content\").load(this.options.remote,t.proxy(function(){this.$element.trigger(\"loaded.bk-bs.modal\")},this))};e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this[this.isShown?\"hide\":\"show\"](t)},e.prototype.show=function(e){var n=this,i=t.Event(\"show.bk-bs.modal\",{relatedTarget:e});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on(\"click.dismiss.bk-bs.modal\",'[data-bk-bs-dismiss=\"modal\"]',t.proxy(this.hide,this)),this.backdrop(function(){var i=t.support.transition&&n.$element.hasClass(\"bk-bs-fade\");n.$element.parent().length||n.$element.appendTo(document.body),n.$element.show().scrollTop(0),i&&n.$element[0].offsetWidth,n.$element.addClass(\"bk-bs-in\").attr(\"aria-hidden\",!1),n.enforceFocus();var r=t.Event(\"shown.bk-bs.modal\",{relatedTarget:e});i?n.$element.find(\".bk-bs-modal-dialog\").one(t.support.transition.end,function(){n.$element.focus().trigger(r)}).emulateTransitionEnd(300):n.$element.focus().trigger(r)}))},e.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event(\"hide.bk-bs.modal\"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off(\"focusin.bk-bs.modal\"),this.$element.removeClass(\"bk-bs-in\").attr(\"aria-hidden\",!0).off(\"click.dismiss.bk-bs.modal\"),t.support.transition&&this.$element.hasClass(\"bk-bs-fade\")?this.$element.one(t.support.transition.end,t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off(\"focusin.bk-bs.modal\").on(\"focusin.bk-bs.modal\",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on(\"keyup.dismiss.bk-bs.modal\",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off(\"keyup.dismiss.bk-bs.modal\")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger(\"hidden.bk-bs.modal\")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(e){var n=this.$element.hasClass(\"bk-bs-fade\")?\"bk-bs-fade\":\"\";if(this.isShown&&this.options.backdrop){var i=t.support.transition&&n;if(this.$backdrop=t('<div class=\"bk-bs-modal-backdrop '+n+'\" />').appendTo(document.body),this.$element.on(\"click.dismiss.bk-bs.modal\",t.proxy(function(t){t.target===t.currentTarget&&(\"static\"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass(\"bk-bs-in\"),!e)return;i?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass(\"bk-bs-in\"),t.support.transition&&this.$element.hasClass(\"bk-bs-fade\")?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()):e&&e()};var n=t.fn.modal;t.fn.modal=function(n,i){return this.each(function(){var r=t(this),o=r.data(\"bk-bs.modal\"),s=t.extend({},e.DEFAULTS,r.data(),\"object\"==typeof n&&n);o||r.data(\"bk-bs.modal\",o=new e(this,s)),\"string\"==typeof n?o[n](i):s.show&&o.show(i)})},t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on(\"click.bk-bs.modal.data-api\",'[data-bk-bs-toggle=\"modal\"]',function(e){var n=t(this),i=n.attr(\"href\"),r=t(n.attr(\"data-bk-bs-target\")||i&&i.replace(/.*(?=#[^\\s]+$)/,\"\")),o=r.data(\"bk-bs.modal\")?\"toggle\":t.extend({remote:!/#/.test(i)&&i},r.data(),n.data());n.is(\"a\")&&e.preventDefault(),r.modal(o,this).one(\"hide\",function(){n.is(\":visible\")&&n.focus()})}),t(document).on(\"show.bk-bs.modal\",\".bk-bs-modal\",function(){t(document.body).addClass(\"bk-bs-modal-open\")}).on(\"hidden.bk-bs.modal\",\".bk-bs-modal\",function(){t(document.body).removeClass(\"bk-bs-modal-open\")})}(t)}),function(){i(\"common/load_models\",[\"require\",\"./base\",\"./logging\"],function(t,e,n){var i,r;return r=n.logger,i=function(e){var n,i,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v;for(l=[],c=[],n=t(\"./base\").Collections,r.debug(\"load_models: start\"),u=0,f=e.length;f>u;u++)a=e[u],o=n(a.type),i=a.attributes,o&&o.get(i.id)?c.push([o,i]):l.push([o,i]);for(h=0,_=l.length;_>h;h++)s=l[h],o=s[0],i=s[1],o&&o.add(i,{silent:!0,defer_initialization:!0});for(r.debug(\"load_models: starting deferred initializations\"),p=0,g=l.length;g>p;p++)s=l[p],o=s[0],i=s[1],o&&o.get(i.id).initialize(i);for(r.debug(\"load_models: finished deferred initializations\"),d=0,m=l.length;m>d;d++)s=l[d],o=s[0],i=s[1],o&&(a=o.get(i.id),a.trigger(\"add\",a,o,{}));for(v=0,y=c.length;y>v;v++)s=c[v],o=s[0],i=s[1],o&&o.get(i.id).set(i);return r.debug(\"load_models: finish\"),null}})}.call(this),function(){i(\"common/bulk_save\",[\"underscore\",\"jquery\",\"require\",\"./base\",\"./load_models\"],function(t,e,n,i,r){var o;return o=function(i){var o,s,a,l,c,u;if(o=n(\"./base\").Config,s=i[0].get(\"doc\"),null==s)throw new Error(\"Unset 'doc' in \"+i[0]);return a=function(){var e,n,r;for(r=[],e=0,n=i.length;n>e;e++)l=i[e],r.push({type:l.type,attributes:t.clone(l.attributes)});return r}(),a=JSON.stringify(a),c=o.prefix+\"bokeh/bb/\"+s+\"/bulkupsert\",u=e.ajax({type:\"POST\",url:c,contentType:\"application/json\",data:a,header:{client:\"javascript\"}}),u.done(function(t){return r(t.modelspecs)}),u}})}.call(this),i(\"tool/preview_save_tool_template\",[],function(){var t=function(t){var e=function(t){\"undefined\"==typeof t&&null==t&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,i=function(e){\"undefined\"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){i(e('<div class=\"bk-bs-modal\" tabindex=\"-1\">\\n <div class=\"bk-bs-modal-dialog\">\\n <div class=\"bk-bs-modal-content\">\\n <div class=\"bk-bs-modal-header\">\\n <button type=\"button\" class=\"bk-bs-close\" data-bk-bs-dismiss=\"modal\">&times;</button>\\n <h4 class=\"bk-bs-modal-title\">Image Preview (right click -> \\'Save As\\' to save PNG)</h4>\\n </div>\\n <div class=\"bk-bs-modal-body\">\\n <img src=\"')),i(this.data_uri),i(e('\" style=\"max-height: 300px; max-width: 400px\">\\n </div>\\n <div class=\"bk-bs-modal-footer\">\\n <button type=\"button\" class=\"bk-bs-btn bk-bs-btn-primary\" data-bk-bs-dismiss=\"modal\">Close</button>\\n </div>\\n </div>\\n </div>\\n</div>\\n'))\n",
" }.call(this),t.join(\"\")}.call(function(){var n,i={escape:function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")},safe:e};for(n in t)i[n]=t[n];return i}())};return t}),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/preview_save_tool\",[\"underscore\",\"jquery\",\"bootstrap/modal\",\"backbone\",\"common/bulk_save\",\"./tool\",\"./event_generators\",\"./preview_save_tool_template\"],function(t,n,i,r,o,s,a,l){var c,u,h,p,d,f,_;return c=a.ButtonEventGenerator,h=function(t){function i(){return d=i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t)},i.prototype.eventGeneratorClass=c,i.prototype.evgen_options={buttonText:\"Preview/Save\",buttonHook:\"preview-save\",buttonIcon:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMjFERDhENjIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozMjFERDhENzIwQjIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQ0MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjMyMUREOEQ1MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+h5hT8AAAAKBJREFUeNpiWbhs5QcGBgZ+hgECTAwDDGAO+AjEjGj4Lw5xUrAAkl3ocr8IhQAzjT3PRu0o+I+EHw65NDDqgJHrABYC8t9JMIuRmiHACS2IKC0LOKH0X1JDAOTzs0BsBs3XlIKz5KSBRCA+RQXLjwNxNDlp4BoQm9Mo7fGPZsNRB4w6YNQBI94BfwfaAV9G08CoA9DbA/xUavkMvRAACDAAaPgYViexODkAAAAASUVORK5CYII=\"},i.prototype.toolType=\"PreviewSaveTool\",i.prototype.tool_events={activated:\"_activated\",deactivated:\"_close_modal\"},i.prototype._activated=function(){var t,e=this;return t=this.plot_view.canvas_view.canvas[0].toDataURL(),this.plot_model.set(\"png\",this.plot_view.canvas_view.canvas[0].toDataURL()),this.$modal=n(l({data_uri:t})),n(\"body\").append(this.$modal),this.$modal.on(\"hidden\",function(){return e.plot_view.eventSink.trigger(\"clear_active_tool\")}),this.$modal.modal({show:!0})},i.prototype._close_modal=function(){return this.$modal.remove()},i}(s.View),u=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=h,n.prototype.type=\"PreviewSaveTool\",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(s.Model),p=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=u,n}(r.Collection),{Model:u,Collection:new p,View:h}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/reset_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(t,n,i,r){var o,s,a,l,c,u,h;return o=r.ButtonEventGenerator,a=function(n){function i(){return c=i.__super__.constructor.apply(this,arguments)}return e(i,n),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t)},i.prototype.eventGeneratorClass=o,i.prototype.evgen_options={buttonText:\"Reset View\",buttonHook:\"reset-view\",buttonIcon:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhFMDIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyOUMzNDE3NDIwQkIxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOERFMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOERGMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+kFHGtQAAAm1JREFUeNrMmE9ExFEQx3+7ZYmlLrEsUUTHaEV0iESJVqduXaJr1xKlFB1bdYqoQ9GlFBFdikgpIhLd0rLqUsQqrW2G7+YZr+2993vaHT6H3583M795897M+0U2t3cCR6kh+kA3rtvx7IYoEGfEMSi4GIk4OJgg5ogRot5wzBvBhmaJnI2xqMW7dcQC8UCMWzgX4N1xjF2ALq8OctROiGkiHrhLHDpOoNOLg5xXF0Sn5lmWWCUGiBRRC1K4t4p3pLCuKyVnnXMwAUVJcT+HfFo3SH5ePGPI24TmA1Pl8rJcBGPEvsa5I6KVWDNcmQW824qxqiRhI+bi4IxmWjOYuneH/HvH2Ixmumd8bjNhhad8lxgSzrfp8jUa/L/wlI8KZ3h1T4bdB30Kb9zz4t6YbgurlIMBdoBHUQiGTBx8JYoKPqVe0ftFNInnW8J20SSCjRWM8k8E1S+TNfbZYyQ59yJEg0kjw1QyB42k1iI6ReXLfEWSK8iHJnJVsYqN8jtammuFc/FOr3juU7Ia+39uM7fiuq8aVrEqp+J6BPWzahw8IPLKdTPKUNU4yJ3Fhqb1inu0y7qeRNVYsWkWFkXPl0QZ8iVbohFmW0s2DmY1jSUX8mUPzi1rmoLML2eXsvsgR/FO3JtAix53nNZ96FDlDrasW35eKGniRRPJeywck9VdOjTdayL3Ahv5MC1/xy+Hp1Iq7BGHMHatjOEqMUgMlxmbVsaEOpMk4GSnp0VyCedyLtuMTlhRD1ZaPoRjeejoMf1HE7VUPkW04Jz7Ztm9rGHslM1Hhjl2xlCn+4muQP/77RyHdf799uli5FuAAQC+l5Sj5nEBdwAAAABJRU5ErkJggg==\"},i.prototype.toolType=\"ResetTool\",i.prototype.tool_events={activated:\"_activated\"},i.prototype._activated=function(){var e=this;return this.plot_view.update_range(),t.delay(function(){return e.plot_view.eventSink.trigger(\"clear_active_tool\")},100)},i}(i.View),s=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=a,n.prototype.type=\"ResetTool\",n}(i.Model),l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=s,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:s,Collection:new l,View:a}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/resize_tool\",[\"underscore\",\"backbone\",\"./tool\",\"./event_generators\"],function(t,n,i,r){var o,s,a,l,c,u,h;return l=r.TwoPointEventGenerator,s=function(t){function n(){return c=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){return n.__super__.initialize.call(this,t),this.active=!1},n.prototype.bind_events=function(t){return n.__super__.bind_events.call(this,t)},n.prototype.eventGeneratorClass=l,n.prototype.toolType=\"ResizeTool\",n.prototype.evgen_options={keyName:\"\",buttonText:\"Resize\",buttonHook:\"resize\",buttonIcon:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCQjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBCQzIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjMyMUREOEQ4MjBCMjExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJBMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+nIbQ0AAAAIJJREFUeNpiXLhs5X8G7ICRgTYAq31MDIMEwBzyERoCyJhWAN2ej4MqRFiIjUMahczgSyMsNE4PxACBQZlrcAFsuYkcLECpQwZNiIw6ZNQhow4ZdcioQ0YdMuoQerRZkQE/vdqwgypqQD7+MIBuANn9f1CnEcbRXIMjd4zM0QCAAAMAbdAPQaze1JcAAAAASUVORK5CYII=\",cursor:\"move\"},n.prototype.tool_events={activated:\"_activate\",deactivated:\"_deactivate\",UpdatingMouseMove:\"_drag\",SetBasepoint:\"_set_base_point\"},n.prototype.render=function(){var t,e,n,i;if(this.active)return e=this.plot_view.canvas_view.ctx,n=this.plot_view.canvas.get(\"width\"),t=this.plot_view.canvas.get(\"height\"),i=8,e.save(),e.strokeStyle=\"transparent\",e.globalAlpha=.7,e.lineWidth=i,e.setLineDash([]),e.beginPath(),e.rect(i,i,n-2*i,t-2*i),e.moveTo(i,i),e.lineTo(n-i,t-i),e.moveTo(i,t-i),e.lineTo(n-i,i),e.stroke(),e.restore()},n.prototype.mouse_coords=function(t,e,n){return[e,n]},n.prototype._activate=function(){var t,e,n,i;if(!this.active)return this.active=!0,this.popup=$('<div class=\"resize_bokeh_plot pull-right hide\"/>'),t=this.plot_view.$el.find(\".bokeh_canvas_wrapper\"),i=this.plot_view.$el.find(\".plotarea\"),this.popup.appendTo(t),e=this.plot_view.canvas.get(\"height\"),n=this.plot_view.canvas.get(\"width\"),this.plot_view.request_render(!0),null},n.prototype._deactivate=function(){return this.active=!1,this.popup.remove(),this.request_render(),this.plot_view.request_render(),null},n.prototype._set_base_point=function(t){var e;return e=this.mouse_coords(t,t.bokehX,t.bokehY),this.x=e[0],this.y=e[1],null},n.prototype._drag=function(t){var e,n,i,r,o,s,a,l;return this.plot_view.pause(),a=this.mouse_coords(t,t.bokehX,t.bokehY),i=a[0],o=a[1],r=i-this.x,s=o-this.y,l=[i,o],this.x=l[0],this.y=l[1],e=this.plot_view.canvas.get(\"height\"),n=this.plot_view.canvas.get(\"width\"),this.plot_view.canvas._set_dims([n+r,e+s]),this.plot_view.request_render(),this.plot_view.unpause(!0),null},n}(i.View),o=function(t){function n(){return u=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=s,n.prototype.type=\"ResizeTool\",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(i.Model),a=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=o,n}(n.Collection),{Model:o,Collection:new a,View:s}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/wheel_zoom_tool\",[\"underscore\",\"backbone\",\"common/logging\",\"./tool\",\"./event_generators\"],function(t,n,i,r,o){var s,a,l,c,u,h,p,d;return s=o.OnePointWheelEventGenerator,u=i.logger,l=function(t){function n(){return h=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.initialize=function(t){var e;return n.__super__.initialize.call(this,t),e=this.mget(\"dimensions\"),0===e.length?u.warn(\"wheel zoom tool given empty dimensions\"):1===e.length?\"width\"===e[0]?this.evgen_options.buttonText=\"Wheel Zoom (x-axis)\":\"height\"===e[0]?this.evgen_options.buttonText=\"Wheel Zoom (y-axis)\":u.warn(\"wheel tool given unrecognized dimensions: \"+e):2!==e.length?u.warn(\"wheel tool given more than two dimensions: \"+e):e.indexOf(\"width\")<0||e.indexOf(\"height\")<0?u.warn(\"pan tool given unrecognized dimensions: \"+e):void 0},n.prototype.eventGeneratorClass=s,n.prototype.evgen_options={buttonText:\"Wheel Zoom\",buttonHook:\"wheel-zoom\",buttonIcon:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAgCAYAAABpRpp6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhEQzIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCRTI5MDhERDIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFMjkwOERBMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFMjkwOERCMjBCNTExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+sFLapAAAA8xJREFUeNq8WH9k1VEU/+67ecTYxKM8xlJiifKIMUqUKMvy1CqbEmUxJZbSlGXTLBuJpYi18dpqStOzacT+WcTXpkiRUjziETEeY9bnzHm5O53vj/te7fDx3r3fc+/9fM/3nHPPvWWP0mOOIlVAC3AQqOc2SRZ4A9Cg58CSNrj1+FEnSIYfPynHTyOQArYCO/jRPPAJGAcmMM9f87vKfG3AF+AucMAgS5LgRZ4CH/mFrARkieAs8Aw4ASSBckaS++jZLOv6El4HjAKDwPoIa28GXgLdFmQv4WcO2BVBnXTmeIxK+D5wzLGXa8D1CGT78NPPhjFlGnjAmBbPSLefx65IBf+eZZ81hfznIfsr+W0eaACa2G3MhbuAt8CUD1kyRIfongDa4affhW4Nu2Oj0d2Bfg+6Y2UIukr2x4ShkAMOMQlNyLcmgVqj7z2wk17UDDosFOOYMOdPQ+dkyBcZFkb8DGxz2ckTwrKHA8g6HMn7gQWjbzsHqZSUmJ8sej6Cq7WzrhkzKVeYnmSEXSBM6I17RZ+WNWRfJ6z7K2xy1umUc7lGDizIkDL+AsNRXs6U3YpOUrRfWwS01K2noIuLzg+iTcFSiFLKlQPi8+aNAIwri24QlstaEM6JdoIsHBOdiyJl9RntfiXazUljEdJb3IKw1F10Q/Krtin0KaSD5Ido77MYK10sG0S4ByjzwW2LRT3pYlxLRBFpGM91/r9kRJuC/FbEnVEmhEwQYRqw7IMuC8LjnAKllSeBhEI0Qc8U636luWinWxYPqoFCnuxmX16VR9ldCvINqOH/NK5alpe8NY8qL5Nnl/GMFJhU6g2SZtqaw1xCkrss2pGEFhLp0CxuGow83+BDdoDn+FP8hJFeYusNlODL9LI/ubKLRRxDKfamuaNWRBx4o9TI49NDD9yjSdn9NKFa5jTGrdrIKpw1FJCtU8h6Rp/HwbVyBNOOSGtKGHJKtGdAao/NBO4aWrecS9mwQiuU8KLoi1nOEfepQ6TsFXVxnnO0NWFZEdVZjK8RaSgXoHtGbihwh4ViCM+LvhaL8VJ3xscdqnwOCk4xhDNKYNRHPOZfCakbzGOS+SWyloX8KsIj4lNScLwIuTsgsq+ASnFkmor4JdJayopKeEHZGOJ8OzMoatIkF0XvxIm5cGhcUtyhVqlrh4rNNoU8fI+jOCUs3cYIk14L63py9yo2D7fyBZ+t3AGuWgTmiFOCuCIvHuHFo6QbCpxm4GLIxZ+880j/K8Lm593EVZqnXF9N8UXIFt7zgwoeunDZCJzju44M+nKlEP4twAAD1RclkNDukAAAAABJRU5ErkJggg==\"},n.prototype.tool_events={zoom:\"_zoom\"},n.prototype.mouse_coords=function(t,e,n){var i,r,o;return o=[this.plot_view.canvas.sx_to_vx(e),this.plot_view.canvas.sy_to_vy(n)],i=o[0],r=o[1],[i,r]},n.prototype._zoom=function(t){var e,n,i,r,o,s,a,l,c,u,h,p,d,f,_,g,m,y,v,b,w,x,k,C,S,T,M,D,A;s=navigator.userAgent.toLowerCase().indexOf(\"firefox\")>-1?20:1,e=null!=t.originalEvent.deltaY?-t.originalEvent.deltaY*s:t.delta,S=this.mouse_coords(t,t.bokehX,t.bokehY),y=S[0],w=S[1],l=this.mget(\"speed\"),r=l*e,r>.9?r=.9:-.9>r&&(r=-.9),v=this.plot_view.frame.get(\"h_range\"),d=v.get(\"start\"),p=v.get(\"end\"),x=this.plot_view.frame.get(\"v_range\"),m=x.get(\"start\"),g=x.get(\"end\"),n=this.mget(\"dimensions\"),n.indexOf(\"width\")>-1?(u=d-(d-y)*r,h=p-(p-y)*r):(u=d,h=p),n.indexOf(\"height\")>-1?(f=m-(m-w)*r,_=g-(g-w)*r):(f=m,_=g),b={},T=this.plot_view.frame.get(\"x_mappers\");for(a in T)o=T[a],M=o.v_map_from_target([u,h]),c=M[0],i=M[1],b[a]={start:c,end:i};k={},D=this.plot_view.frame.get(\"y_mappers\");for(a in D)o=D[a],A=o.v_map_from_target([f,_]),c=A[0],i=A[1],k[a]={start:c,end:i};return C={xrs:b,yrs:k,factor:r},this.plot_view.update_range(C),null},n}(r.View),a=function(t){function n(){return p=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=l,n.prototype.type=\"WheelZoomTool\",n.prototype.defaults=function(){return{dimensions:[\"width\",\"height\"],speed:1/600}},n}(r.Model),c=function(t){function n(){return d=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=a,n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(n.Collection),{Model:a,Collection:new c,View:l}})}.call(this),i(\"tool/object_explorer_tool_template\",[],function(){var t=function(t){var e=function(t){\"undefined\"==typeof t&&null==t&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,i=function(e){\"undefined\"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){i(e('<div class=\"bk-bs-modal\" tabindex=\"-1\">\\n <div class=\"bk-bs-modal-dialog\">\\n <div class=\"bk-bs-modal-content\">\\n <div class=\"bk-bs-modal-header\">\\n <button type=\"button\" class=\"bk-bs-close\" data-bk-bs-dismiss=\"modal\">&times;</button>\\n <h4 class=\"bk-bs-modal-title\">Object Explorer</h4>\\n </div>\\n <div class=\"bk-bs-modal-body\">\\n </div>\\n <div class=\"bk-bs-modal-footer\">\\n <button type=\"button\" class=\"bk-bs-btn bk-bs-btn-primary\" data-bk-bs-dismiss=\"modal\">Close</button>\\n </div>\\n </div>\\n </div>\\n</div>\\n'))}.call(this),t.join(\"\")}.call(function(){var n,i={escape:function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")},safe:e};for(n in t)i[n]=t[n];return i}())};return t}),function(t){\"function\"==typeof i&&i.amd?i(\"jstree\",[\"jquery\"],t):t(\"object\"==typeof o?n(\"jquery\"):jQuery)}(function(t,e){if(!t.jstree){var n,i,r=0,o=!1,s=!1,a=!1,l=[],c=t(\"script:last\").attr(\"src\"),u=document,h=u.createElement(\"LI\");h.setAttribute(\"role\",\"treeitem\"),n=u.createElement(\"I\"),n.className=\"jstree-icon jstree-ocl\",h.appendChild(n),n=u.createElement(\"A\"),n.className=\"jstree-anchor\",n.setAttribute(\"href\",\"#\"),i=u.createElement(\"I\"),i.className=\"jstree-icon jstree-themeicon\",n.appendChild(i),h.appendChild(n),n=i=null,t.jstree={version:\"3.0.0-beta9\",defaults:{plugins:[]},plugins:{},path:c&&-1!==c.indexOf(\"/\")?c.replace(/\\/[^\\/]+$/,\"\"):\"\"},t.jstree.create=function(e,n){var i=new t.jstree.core(++r),o=n;return n=t.extend(!0,{},t.jstree.defaults,n),o&&o.plugins&&(n.plugins=o.plugins),t.each(n.plugins,function(t,e){\"core\"!==t&&(i=i.plugin(e,n[e]))}),i.init(e,n),i},t.jstree.core=function(t){this._id=t,this._cnt=0,this._data={core:{themes:{name:!1,dots:!1,icons:!1},selected:[],last_error:{}}}},t.jstree.reference=function(e){if(e&&!t(e).length){e.id&&(e=e.id);var n=null;return t(\".jstree\").each(function(){var i=t(this).data(\"jstree\");return i&&i._model.data[e]?(n=i,!1):void 0}),n}return t(e).closest(\".jstree\").data(\"jstree\")},t.fn.jstree=function(n){var i=\"string\"==typeof n,r=Array.prototype.slice.call(arguments,1),o=null;return this.each(function(){var s=t.jstree.reference(this),a=i&&s?s[n]:null;return o=i&&a?a.apply(s,r):null,s||i||n!==e&&!t.isPlainObject(n)||t(this).data(\"jstree\",new t.jstree.create(this,n)),s&&!i&&(o=s),null!==o&&o!==e?!1:void 0}),null!==o&&o!==e?o:this},t.expr[\":\"].jstree=t.expr.createPseudo(function(){return function(n){return t(n).hasClass(\"jstree\")&&t(n).data(\"jstree\")!==e}}),t.jstree.defaults.core={data:!1,strings:!1,check_callback:!1,error:t.noop,animation:200,multiple:!0,themes:{name:!1,url:!1,dir:!1,dots:!0,icons:!0,stripes:!1,variant:!1,responsive:!0},expand_selected_onload:!0},t.jstree.core.prototype={plugin:function(e,n){var i=t.jstree.plugins[e];return i?(this._data[e]={},i.prototype=this,new i(n,this)):this},init:function(e,n){this._model={data:{\"#\":{id:\"#\",parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}}},changed:[],force_full_redraw:!1,redraw_timeout:!1,default_state:{loaded:!0,opened:!1,selected:!1,disabled:!1}},this.element=t(e).addClass(\"jstree jstree-\"+this._id),this.settings=n,this.element.bind(\"destroyed\",t.proxy(this.teardown,this)),this._data.core.ready=!1,this._data.core.loaded=!1,this._data.core.rtl=\"rtl\"===this.element.css(\"direction\"),this.element[this._data.core.rtl?\"addClass\":\"removeClass\"](\"jstree-rtl\"),this.element.attr(\"role\",\"tree\"),this.bind(),this.trigger(\"init\"),this._data.core.original_container_html=this.element.find(\" > ul > li\").clone(!0),this._data.core.original_container_html.find(\"li\").addBack().contents().filter(function(){return 3===this.nodeType&&(!this.nodeValue||/^\\s+$/.test(this.nodeValue))}).remove(),this.element.html(\"<ul class='jstree-container-ul'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>\"+this.get_string(\"Loading ...\")+\"</a></li></ul>\"),this._data.core.li_height=this.get_container_ul().children(\"li:eq(0)\").height()||18,this.trigger(\"loading\"),this.load_node(\"#\")},destroy:function(){this.element.unbind(\"destroyed\",this.teardown),this.teardown()},teardown:function(){this.unbind(),this.element.removeClass(\"jstree\").removeData(\"jstree\").find(\"[class^='jstree']\").addBack().attr(\"class\",function(){return this.className.replace(/jstree[^ ]*|$/gi,\"\")}),this.element=null},bind:function(){this.element.on(\"dblclick.jstree\",function(){if(document.selection&&document.selection.empty)document.selection.empty();else if(window.getSelection){var t=window.getSelection();try{t.removeAllRanges(),t.collapse()}catch(e){}}}).on(\"click.jstree\",\".jstree-ocl\",t.proxy(function(t){this.toggle_node(t.target)},this)).on(\"click.jstree\",\".jstree-anchor\",t.proxy(function(e){e.preventDefault(),t(e.currentTarget).focus(),this.activate_node(e.currentTarget,e)},this)).on(\"keydown.jstree\",\".jstree-anchor\",t.proxy(function(e){var n=null;switch(e.which){case 13:case 32:e.type=\"click\",t(e.currentTarget).trigger(e);break;case 37:e.preventDefault(),this.is_open(e.currentTarget)?this.close_node(e.currentTarget):(n=this.get_prev_dom(e.currentTarget),n&&n.length&&n.children(\".jstree-anchor\").focus());break;case 38:e.preventDefault(),n=this.get_prev_dom(e.currentTarget),n&&n.length&&n.children(\".jstree-anchor\").focus();break;case 39:e.preventDefault(),this.is_closed(e.currentTarget)?this.open_node(e.currentTarget,function(t){this.get_node(t,!0).children(\".jstree-anchor\").focus()}):(n=this.get_next_dom(e.currentTarget),n&&n.length&&n.children(\".jstree-anchor\").focus());break;case 40:e.preventDefault(),n=this.get_next_dom(e.currentTarget),n&&n.length&&n.children(\".jstree-anchor\").focus();break;case 46:e.preventDefault(),n=this.get_node(e.currentTarget),n&&n.id&&\"#\"!==n.id&&(n=this.is_selected(n)?this.get_selected():n);break;case 113:e.preventDefault(),n=this.get_node(e.currentTarget)}},this)).on(\"load_node.jstree\",t.proxy(function(e,n){if(n.status&&(\"#\"!==n.node.id||this._data.core.loaded||(this._data.core.loaded=!0,this.trigger(\"loaded\")),!this._data.core.ready&&!this.get_container_ul().find(\".jstree-loading:eq(0)\").length)){if(this._data.core.ready=!0,this._data.core.selected.length){if(this.settings.core.expand_selected_onload){var i,r,o=[];for(i=0,r=this._data.core.selected.length;r>i;i++)o=o.concat(this._model.data[this._data.core.selected[i]].parents);for(o=t.vakata.array_unique(o),i=0,r=o.length;r>i;i++)this.open_node(o[i],!1,0)}this.trigger(\"changed\",{action:\"ready\",selected:this._data.core.selected})}setTimeout(t.proxy(function(){this.trigger(\"ready\")},this),0)}},this)).on(\"init.jstree\",t.proxy(function(){var t=this.settings.core.themes;this._data.core.themes.dots=t.dots,this._data.core.themes.stripes=t.stripes,this._data.core.themes.icons=t.icons,this.set_theme(t.name||\"default\",t.url),this.set_theme_variant(t.variant)},this)).on(\"loading.jstree\",t.proxy(function(){this[this._data.core.themes.dots?\"show_dots\":\"hide_dots\"](),this[this._data.core.themes.icons?\"show_icons\":\"hide_icons\"](),this[this._data.core.themes.stripes?\"show_stripes\":\"hide_stripes\"]()},this)).on(\"focus.jstree\",\".jstree-anchor\",t.proxy(function(e){this.element.find(\".jstree-hovered\").not(e.currentTarget).mouseleave(),t(e.currentTarget).mouseenter()},this)).on(\"mouseenter.jstree\",\".jstree-anchor\",t.proxy(function(t){this.hover_node(t.currentTarget)},this)).on(\"mouseleave.jstree\",\".jstree-anchor\",t.proxy(function(t){this.dehover_node(t.currentTarget)},this))},unbind:function(){this.element.off(\".jstree\"),t(document).off(\".jstree-\"+this._id)},trigger:function(t,e){e||(e={}),e.instance=this,this.element.triggerHandler(t.replace(\".jstree\",\"\")+\".jstree\",e)},get_container:function(){return this.element},get_container_ul:function(){return this.element.children(\"ul:eq(0)\")},get_string:function(e){var n=this.settings.core.strings;return t.isFunction(n)?n.call(this,e):n&&n[e]?n[e]:e},_firstChild:function(t){for(t=t?t.firstChild:null;null!==t&&1!==t.nodeType;)t=t.nextSibling;return t},_nextSibling:function(t){for(t=t?t.nextSibling:null;null!==t&&1!==t.nodeType;)t=t.nextSibling;return t},_previousSibling:function(t){for(t=t?t.previousSibling:null;null!==t&&1!==t.nodeType;)t=t.previousSibling;return t},get_node:function(e,n){e&&e.id&&(e=e.id);var i;try{if(this._model.data[e])e=this._model.data[e];else if(((i=t(e,this.element)).length||(i=t(\"#\"+e,this.element)).length)&&this._model.data[i.closest(\"li\").attr(\"id\")])e=this._model.data[i.closest(\"li\").attr(\"id\")];else{if(!(i=t(e,this.element)).length||!i.hasClass(\"jstree\"))return!1;e=this._model.data[\"#\"]}return n&&(e=\"#\"===e.id?this.element:t(document.getElementById(e.id))),e}catch(r){return!1}},get_path:function(t,e,n){if(t=t.parents?t:this.get_node(t),!t||\"#\"===t.id||!t.parents)return!1;var i,r,o=[];for(o.push(n?t.id:t.text),i=0,r=t.parents.length;r>i;i++)o.push(n?t.parents[i]:this.get_text(t.parents[i]));return o=o.reverse().slice(1),e?o.join(e):o},get_next_dom:function(e,n){var i;return e=this.get_node(e,!0),e[0]===this.element[0]?(i=this._firstChild(this.get_container_ul()[0]),i?t(i):!1):e&&e.length?n?(i=this._nextSibling(e[0]),i?t(i):!1):e.hasClass(\"jstree-open\")?(i=this._firstChild(e.children(\"ul\")[0]),i?t(i):!1):null!==(i=this._nextSibling(e[0]))?t(i):e.parentsUntil(\".jstree\",\"li\").next(\"li\").eq(0):!1},get_prev_dom:function(e,n){var i;if(e=this.get_node(e,!0),e[0]===this.element[0])return i=this.get_container_ul()[0].lastChild,i?t(i):!1;if(!e||!e.length)return!1;if(n)return i=this._previousSibling(e[0]),i?t(i):!1;if(null!==(i=this._previousSibling(e[0]))){for(e=t(i);e.hasClass(\"jstree-open\");)e=e.children(\"ul:eq(0)\").children(\"li:last\");return e}return i=e[0].parentNode.parentNode,i&&\"LI\"===i.tagName?t(i):!1},get_parent:function(t){return t=this.get_node(t),t&&\"#\"!==t.id?t.parent:!1},get_children_dom:function(t){return t=this.get_node(t,!0),t[0]===this.element[0]?this.get_container_ul().children(\"li\"):t&&t.length?t.children(\"ul\").children(\"li\"):!1},is_parent:function(t){return t=this.get_node(t),t&&(t.state.loaded===!1||t.children.length>0)},is_loaded:function(t){return t=this.get_node(t),t&&t.state.loaded},is_loading:function(t){return t=this.get_node(t,!0),t&&t.hasClass(\"jstree-loading\")},is_open:function(t){return t=this.get_node(t),t&&t.state.opened},is_closed:function(t){return t=this.get_node(t),t&&this.is_parent(t)&&!t.state.opened},is_leaf:function(t){return!this.is_parent(t)},load_node:function(e,n){var i,r;if(t.isArray(e)){for(e=e.slice(),i=0,r=e.length;r>i;i++)this.load_node(e[i],n);return!0}return(e=this.get_node(e))?(this.get_node(e,!0).addClass(\"jstree-loading\"),this._load_node(e,t.proxy(function(t){e.state.loaded=t,this.get_node(e,!0).removeClass(\"jstree-loading\"),this.trigger(\"load_node\",{node:e,status:t}),n&&n.call(this,e,t)},this)),!0):(n.call(this,e,!1),!1)},_load_node:function(e,n){var i,r=this.settings.core.data;return r?t.isFunction(r)?r.call(this,e,t.proxy(function(i){return i===!1?n.call(this,!1):n.call(this,this[\"string\"==typeof i?\"_append_html_data\":\"_append_json_data\"](e,\"string\"==typeof i?t(i):i))},this)):\"object\"==typeof r?r.url?(r=t.extend(!0,{},r),t.isFunction(r.url)&&(r.url=r.url.call(this,e)),t.isFunction(r.data)&&(r.data=r.data.call(this,e)),t.ajax(r).done(t.proxy(function(i,r,o){var s=o.getResponseHeader(\"Content-Type\");return-1!==s.indexOf(\"json\")?n.call(this,this._append_json_data(e,i)):-1!==s.indexOf(\"html\")?n.call(this,this._append_html_data(e,t(i))):void 0},this)).fail(t.proxy(function(){n.call(this,!1),this._data.core.last_error={error:\"ajax\",plugin:\"core\",id:\"core_04\",reason:\"Could not load node\",data:JSON.stringify(r)},this.settings.core.error.call(this,this._data.core.last_error)},this))):(i=t.isArray(r)||t.isPlainObject(r)?JSON.parse(JSON.stringify(r)):r,n.call(this,this._append_json_data(e,i))):\"string\"==typeof r?n.call(this,this._append_html_data(e,r)):n.call(this,!1):n.call(this,\"#\"===e.id?this._append_html_data(e,this._data.core.original_container_html.clone(!0)):!1)},_node_changed:function(t){t=this.get_node(t),t&&this._model.changed.push(t.id)},_append_html_data:function(e,n){e=this.get_node(e),e.children=[],e.children_d=[];var i,r,o,s=n.is(\"ul\")?n.children():n,a=e.id,l=[],c=[],u=this._model.data,h=u[a],p=this._data.core.selected.length;for(s.each(t.proxy(function(e,n){i=this._parse_model_from_html(t(n),a,h.parents.concat()),i&&(l.push(i),c.push(i),u[i].children_d.length&&(c=c.concat(u[i].children_d)))},this)),h.children=l,h.children_d=c,r=0,o=h.parents.length;o>r;r++)u[h.parents[r]].children_d=u[h.parents[r]].children_d.concat(c);return this.trigger(\"model\",{nodes:c,parent:a}),\"#\"!==a?(this._node_changed(a),this.redraw()):(this.get_container_ul().children(\".jstree-initial-node\").remove(),this.redraw(!0)),this._data.core.selected.length!==p&&this.trigger(\"changed\",{action:\"model\",selected:this._data.core.selected}),!0},_append_json_data:function(n,i){n=this.get_node(n),n.children=[],n.children_d=[];var r,o,s,a=i,l=n.id,c=[],u=[],h=this._model.data,p=h[l],d=this._data.core.selected.length;if(a.d&&(a=a.d,\"string\"==typeof a&&(a=JSON.parse(a))),t.isArray(a)||(a=[a]),a.length&&a[0].id!==e&&a[0].parent!==e){for(o=0,s=a.length;s>o;o++)a[o].children||(a[o].children=[]),h[a[o].id]=a[o];for(o=0,s=a.length;s>o;o++)h[a[o].parent].children.push(a[o].id),p.children_d.push(a[o].id);for(o=0,s=p.children.length;s>o;o++)r=this._parse_model_from_flat_json(h[p.children[o]],l,p.parents.concat()),u.push(r),h[r].children_d.length&&(u=u.concat(h[r].children_d))}else{for(o=0,s=a.length;s>o;o++)r=this._parse_model_from_json(a[o],l,p.parents.concat()),r&&(c.push(r),u.push(r),h[r].children_d.length&&(u=u.concat(h[r].children_d)));for(p.children=c,p.children_d=u,o=0,s=p.parents.length;s>o;o++)h[p.parents[o]].children_d=h[p.parents[o]].children_d.concat(u)}return this.trigger(\"model\",{nodes:u,parent:l}),\"#\"!==l?(this._node_changed(l),this.redraw()):this.redraw(!0),this._data.core.selected.length!==d&&this.trigger(\"changed\",{action:\"model\",selected:this._data.core.selected}),!0},_parse_model_from_html:function(e,n,i){i=i?[].concat(i):[],n&&i.unshift(n);var r,o,s,a,l,c=this._model.data,u={id:!1,text:!1,icon:!0,parent:n,parents:i,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:\"#\"},original:!1};for(s in this._model.default_state)this._model.default_state.hasOwnProperty(s)&&(u.state[s]=this._model.default_state[s]);if(a=t.vakata.attributes(e,!0),t.each(a,function(e,n){return n=t.trim(n),n.length?(u.li_attr[e]=n,void(\"id\"===e&&(u.id=n))):!0}),a=e.children(\"a\").eq(0),a.length&&(a=t.vakata.attributes(a,!0),t.each(a,function(e,n){n=t.trim(n),n.length&&(u.a_attr[e]=n)})),a=e.children(\"a:eq(0)\").length?e.children(\"a:eq(0)\").clone():e.clone(),a.children(\"ins, i, ul\").remove(),a=a.html(),a=t(\"<div />\").html(a),u.text=a.html(),a=e.data(),u.data=a?t.extend(!0,{},a):null,u.state.opened=e.hasClass(\"jstree-open\"),u.state.selected=e.children(\"a\").hasClass(\"jstree-clicked\"),u.state.disabled=e.children(\"a\").hasClass(\"jstree-disabled\"),u.data&&u.data.jstree)for(s in u.data.jstree)u.data.jstree.hasOwnProperty(s)&&(u.state[s]=u.data.jstree[s]);a=e.children(\"a\").children(\".jstree-themeicon\"),a.length&&(u.icon=a.hasClass(\"jstree-themeicon-hidden\")?!1:a.attr(\"rel\")),u.state.icon&&(u.icon=u.state.icon),a=e.children(\"ul\").children(\"li\");\n",
" do l=\"j\"+this._id+\"_\"+ ++this._cnt;while(c[l]);return u.id=u.li_attr.id||l,a.length?(a.each(t.proxy(function(e,n){r=this._parse_model_from_html(t(n),u.id,i),o=this._model.data[r],u.children.push(r),o.children_d.length&&(u.children_d=u.children_d.concat(o.children_d))},this)),u.children_d=u.children_d.concat(u.children)):e.hasClass(\"jstree-closed\")&&(u.state.loaded=!1),u.li_attr[\"class\"]&&(u.li_attr[\"class\"]=u.li_attr[\"class\"].replace(\"jstree-closed\",\"\").replace(\"jstree-open\",\"\")),u.a_attr[\"class\"]&&(u.a_attr[\"class\"]=u.a_attr[\"class\"].replace(\"jstree-clicked\",\"\").replace(\"jstree-disabled\",\"\")),c[u.id]=u,u.state.selected&&this._data.core.selected.push(u.id),u.id},_parse_model_from_flat_json:function(t,n,i){i=i?i.concat():[],n&&i.unshift(n);var r,o,s,a,l=t.id,c=this._model.data,u=this._model.default_state,h={id:l,text:t.text||\"\",icon:t.icon!==e?t.icon:!0,parent:n,parents:i,children:t.children||[],children_d:t.children_d||[],data:t.data,state:{},li_attr:{id:!1},a_attr:{href:\"#\"},original:!1};for(r in u)u.hasOwnProperty(r)&&(h.state[r]=u[r]);if(t&&t.data&&t.data.jstree&&t.data.jstree.icon&&(h.icon=t.data.jstree.icon),t&&t.data&&(h.data=t.data,t.data.jstree))for(r in t.data.jstree)t.data.jstree.hasOwnProperty(r)&&(h.state[r]=t.data.jstree[r]);if(t&&\"object\"==typeof t.state)for(r in t.state)t.state.hasOwnProperty(r)&&(h.state[r]=t.state[r]);if(t&&\"object\"==typeof t.li_attr)for(r in t.li_attr)t.li_attr.hasOwnProperty(r)&&(h.li_attr[r]=t.li_attr[r]);if(h.li_attr.id||(h.li_attr.id=l),t&&\"object\"==typeof t.a_attr)for(r in t.a_attr)t.a_attr.hasOwnProperty(r)&&(h.a_attr[r]=t.a_attr[r]);for(t&&t.children&&t.children===!0&&(h.state.loaded=!1,h.children=[],h.children_d=[]),c[h.id]=h,r=0,o=h.children.length;o>r;r++)s=this._parse_model_from_flat_json(c[h.children[r]],h.id,i),a=c[s],h.children_d.push(s),a.children_d.length&&(h.children_d=h.children_d.concat(a.children_d));return delete t.data,delete t.children,c[h.id].original=t,h.state.selected&&this._data.core.selected.push(h.id),h.id},_parse_model_from_json:function(t,n,i){i=i?i.concat():[],n&&i.unshift(n);var r,o,s,a,l,c=!1,u=this._model.data,h=this._model.default_state;do c=\"j\"+this._id+\"_\"+ ++this._cnt;while(u[c]);l={id:!1,text:\"string\"==typeof t?t:\"\",icon:\"object\"==typeof t&&t.icon!==e?t.icon:!0,parent:n,parents:i,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:\"#\"},original:!1};for(r in h)h.hasOwnProperty(r)&&(l.state[r]=h[r]);if(t&&t.id&&(l.id=t.id),t&&t.text&&(l.text=t.text),t&&t.data&&t.data.jstree&&t.data.jstree.icon&&(l.icon=t.data.jstree.icon),t&&t.data&&(l.data=t.data,t.data.jstree))for(r in t.data.jstree)t.data.jstree.hasOwnProperty(r)&&(l.state[r]=t.data.jstree[r]);if(t&&\"object\"==typeof t.state)for(r in t.state)t.state.hasOwnProperty(r)&&(l.state[r]=t.state[r]);if(t&&\"object\"==typeof t.li_attr)for(r in t.li_attr)t.li_attr.hasOwnProperty(r)&&(l.li_attr[r]=t.li_attr[r]);if(l.li_attr.id&&!l.id&&(l.id=l.li_attr.id),l.id||(l.id=c),l.li_attr.id||(l.li_attr.id=l.id),t&&\"object\"==typeof t.a_attr)for(r in t.a_attr)t.a_attr.hasOwnProperty(r)&&(l.a_attr[r]=t.a_attr[r]);if(t&&t.children&&t.children.length){for(r=0,o=t.children.length;o>r;r++)s=this._parse_model_from_json(t.children[r],l.id,i),a=u[s],l.children.push(s),a.children_d.length&&(l.children_d=l.children_d.concat(a.children_d));l.children_d=l.children_d.concat(l.children)}return t&&t.children&&t.children===!0&&(l.state.loaded=!1,l.children=[],l.children_d=[]),delete t.data,delete t.children,l.original=t,u[l.id]=l,l.state.selected&&this._data.core.selected.push(l.id),l.id},_redraw:function(){var t,e,n,i=this._model.force_full_redraw?this._model.data[\"#\"].children.concat([]):this._model.changed.concat([]),r=document.createElement(\"UL\");for(e=0,n=i.length;n>e;e++)t=this.redraw_node(i[e],!0,this._model.force_full_redraw),t&&this._model.force_full_redraw&&r.appendChild(t);this._model.force_full_redraw&&(r.className=this.get_container_ul()[0].className,this.element.empty().append(r)),this._model.force_full_redraw=!1,this._model.changed=[],this.trigger(\"redraw\",{nodes:i})},redraw:function(t){t&&(this._model.force_full_redraw=!0),this._redraw()},redraw_node:function(e,n,i){var r=this.get_node(e),o=!1,s=!1,a=!1,l=!1,c=!1,u=!1,p=\"\",d=document,f=this._model.data,_=!1,g=!1;if(!r)return!1;if(\"#\"===r.id)return this.redraw(!0);if(n=n||0===r.children.length,e=d.getElementById(r.id))e=t(e),i||(o=e.parent().parent()[0],o===this.element[0]&&(o=null),s=e.index()),n||!r.children.length||e.children(\"ul\").length||(n=!0),n||(a=e.children(\"UL\")[0]),g=e.attr(\"aria-selected\"),_=e.children(\".jstree-anchor\")[0]===document.activeElement,e.remove();else if(n=!0,!i){if(o=\"#\"!==r.parent?t(\"#\"+r.parent,this.element)[0]:null,!(null===o||o&&f[r.parent].state.opened))return!1;s=t.inArray(r.id,null===o?f[\"#\"].children:f[r.parent].children)}e=h.cloneNode(!0),p=\"jstree-node \";for(l in r.li_attr)if(r.li_attr.hasOwnProperty(l)){if(\"id\"===l)continue;\"class\"!==l?e.setAttribute(l,r.li_attr[l]):p+=r.li_attr[l]}g&&\"false\"!==g&&e.setAttribute(\"aria-selected\",!0),!r.children.length&&r.state.loaded?p+=\" jstree-leaf\":(p+=r.state.opened?\" jstree-open\":\" jstree-closed\",e.setAttribute(\"aria-expanded\",r.state.opened)),null!==r.parent&&f[r.parent].children[f[r.parent].children.length-1]===r.id&&(p+=\" jstree-last\"),e.id=r.id,e.className=p,p=(r.state.selected?\" jstree-clicked\":\"\")+(r.state.disabled?\" jstree-disabled\":\"\");for(c in r.a_attr)if(r.a_attr.hasOwnProperty(c)){if(\"href\"===c&&\"#\"===r.a_attr[c])continue;\"class\"!==c?e.childNodes[1].setAttribute(c,r.a_attr[c]):p+=\" \"+r.a_attr[c]}if(p.length&&(e.childNodes[1].className=\"jstree-anchor \"+p),(r.icon&&r.icon!==!0||r.icon===!1)&&(r.icon===!1?e.childNodes[1].childNodes[0].className+=\" jstree-themeicon-hidden\":-1===r.icon.indexOf(\"/\")&&-1===r.icon.indexOf(\".\")?e.childNodes[1].childNodes[0].className+=\" \"+r.icon+\" jstree-themeicon-custom\":(e.childNodes[1].childNodes[0].style.backgroundImage=\"url(\"+r.icon+\")\",e.childNodes[1].childNodes[0].style.backgroundPosition=\"center center\",e.childNodes[1].childNodes[0].style.backgroundSize=\"auto\",e.childNodes[1].childNodes[0].className+=\" jstree-themeicon-custom\")),e.childNodes[1].innerHTML+=r.text,n&&r.children.length&&r.state.opened){for(u=d.createElement(\"UL\"),u.setAttribute(\"role\",\"group\"),u.className=\"jstree-children\",l=0,c=r.children.length;c>l;l++)u.appendChild(this.redraw_node(r.children[l],n,!0));e.appendChild(u)}return a&&e.appendChild(a),i||(o||(o=this.element[0]),o.getElementsByTagName(\"UL\").length?o=o.getElementsByTagName(\"UL\")[0]:(l=d.createElement(\"UL\"),l.setAttribute(\"role\",\"group\"),l.className=\"jstree-children\",o.appendChild(l),o=l),s<o.childNodes.length?o.insertBefore(e,o.childNodes[s]):o.appendChild(e),_&&e.childNodes[1].focus()),e},open_node:function(n,i,r){var o,s,a,l;if(t.isArray(n)){for(n=n.slice(),o=0,s=n.length;s>o;o++)this.open_node(n[o],i,r);return!0}if(n=this.get_node(n),!n||\"#\"===n.id)return!1;if(r=r===e?this.settings.core.animation:r,!this.is_closed(n))return i&&i.call(this,n,!1),!1;if(this.is_loaded(n))a=this.get_node(n,!0),l=this,a.length&&(n.children.length&&!this._firstChild(a.children(\"ul\")[0])&&(n.state.opened=!0,this.redraw_node(n,!0),a=this.get_node(n,!0)),r?a.children(\"ul\").css(\"display\",\"none\").end().removeClass(\"jstree-closed\").addClass(\"jstree-open\").attr(\"aria-expanded\",!0).children(\"ul\").stop(!0,!0).slideDown(r,function(){this.style.display=\"\",l.trigger(\"after_open\",{node:n})}):(a[0].className=a[0].className.replace(\"jstree-closed\",\"jstree-open\"),a[0].setAttribute(\"aria-expanded\",!0))),n.state.opened=!0,i&&i.call(this,n,!0),this.trigger(\"open_node\",{node:n}),r&&a.length||this.trigger(\"after_open\",{node:n});else{if(this.is_loading(n))return setTimeout(t.proxy(function(){this.open_node(n,i,r)},this),500);this.load_node(n,function(t,e){return e?this.open_node(t,i,r):i?i.call(this,t,!1):!1})}},_open_to:function(e){if(e=this.get_node(e),!e||\"#\"===e.id)return!1;var n,i,r=e.parents;for(n=0,i=r.length;i>n;n+=1)\"#\"!==n&&this.open_node(r[n],!1,0);return t(document.getElementById(e.id))},close_node:function(n,i){var r,o,s,a;if(t.isArray(n)){for(n=n.slice(),r=0,o=n.length;o>r;r++)this.close_node(n[r],i);return!0}return n=this.get_node(n),n&&\"#\"!==n.id?(i=i===e?this.settings.core.animation:i,s=this,a=this.get_node(n,!0),a.length&&(i?a.children(\"ul\").attr(\"style\",\"display:block !important\").end().removeClass(\"jstree-open\").addClass(\"jstree-closed\").attr(\"aria-expanded\",!1).children(\"ul\").stop(!0,!0).slideUp(i,function(){this.style.display=\"\",a.children(\"ul\").remove(),s.trigger(\"after_close\",{node:n})}):(a[0].className=a[0].className.replace(\"jstree-open\",\"jstree-closed\"),a.attr(\"aria-expanded\",!1).children(\"ul\").remove())),n.state.opened=!1,this.trigger(\"close_node\",{node:n}),void(i&&a.length||this.trigger(\"after_close\",{node:n}))):!1},toggle_node:function(e){var n,i;if(t.isArray(e)){for(e=e.slice(),n=0,i=e.length;i>n;n++)this.toggle_node(e[n]);return!0}return this.is_closed(e)?this.open_node(e):this.is_open(e)?this.close_node(e):void 0},open_all:function(t,e,n){if(t||(t=\"#\"),t=this.get_node(t),!t)return!1;var i,r,o,s=\"#\"===t.id?this.get_container_ul():this.get_node(t,!0);if(!s.length){for(i=0,r=t.children_d.length;r>i;i++)this.is_closed(this._model.data[t.children_d[i]])&&(this._model.data[t.children_d[i]].state.opened=!0);return this.trigger(\"open_all\",{node:t})}n=n||s,o=this,s=this.is_closed(t)?s.find(\"li.jstree-closed\").addBack():s.find(\"li.jstree-closed\"),s.each(function(){o.open_node(this,function(t,i){i&&this.is_parent(t)&&this.open_all(t,e,n)},e||0)}),0===n.find(\"li.jstree-closed\").length&&this.trigger(\"open_all\",{node:this.get_node(n)})},close_all:function(t,e){if(t||(t=\"#\"),t=this.get_node(t),!t)return!1;var n,i,r=\"#\"===t.id?this.get_container_ul():this.get_node(t,!0),o=this;if(!r.length){for(n=0,i=t.children_d.length;i>n;n++)this._model.data[t.children_d[n]].state.opened=!1;return this.trigger(\"close_all\",{node:t})}r=this.is_open(t)?r.find(\"li.jstree-open\").addBack():r.find(\"li.jstree-open\"),r.vakata_reverse().each(function(){o.close_node(this,e||0)}),this.trigger(\"close_all\",{node:t})},is_disabled:function(t){return t=this.get_node(t),t&&t.state&&t.state.disabled},enable_node:function(e){var n,i;if(t.isArray(e)){for(e=e.slice(),n=0,i=e.length;i>n;n++)this.enable_node(e[n]);return!0}return e=this.get_node(e),e&&\"#\"!==e.id?(e.state.disabled=!1,this.get_node(e,!0).children(\".jstree-anchor\").removeClass(\"jstree-disabled\"),void this.trigger(\"enable_node\",{node:e})):!1},disable_node:function(e){var n,i;if(t.isArray(e)){for(e=e.slice(),n=0,i=e.length;i>n;n++)this.disable_node(e[n]);return!0}return e=this.get_node(e),e&&\"#\"!==e.id?(e.state.disabled=!0,this.get_node(e,!0).children(\".jstree-anchor\").addClass(\"jstree-disabled\"),void this.trigger(\"disable_node\",{node:e})):!1},activate_node:function(t,e){if(this.is_disabled(t))return!1;if(this.settings.core.multiple&&(e.metaKey||e.ctrlKey||e.shiftKey)&&(!e.shiftKey||this._data.core.last_clicked&&this.get_parent(t)&&this.get_parent(t)===this._data.core.last_clicked.parent))if(e.shiftKey){var n,i,r=this.get_node(t).id,o=this._data.core.last_clicked.id,s=this.get_node(this._data.core.last_clicked.parent).children,a=!1;for(n=0,i=s.length;i>n;n+=1)s[n]===r&&(a=!a),s[n]===o&&(a=!a),a||s[n]===r||s[n]===o?this.select_node(s[n],!1,!1,e):this.deselect_node(s[n],!1,!1,e)}else this.is_selected(t)?this.deselect_node(t,!1,!1,e):this.select_node(t,!1,!1,e);else!this.settings.core.multiple&&(e.metaKey||e.ctrlKey||e.shiftKey)&&this.is_selected(t)?this.deselect_node(t,!1,!1,e):(this.deselect_all(!0),this.select_node(t,!1,!1,e),this._data.core.last_clicked=this.get_node(t));this.trigger(\"activate_node\",{node:this.get_node(t)})},hover_node:function(t){if(t=this.get_node(t,!0),!t||!t.length||t.children(\".jstree-hovered\").length)return!1;var e=this.element.find(\".jstree-hovered\"),n=this.element;e&&e.length&&this.dehover_node(e),t.children(\".jstree-anchor\").addClass(\"jstree-hovered\"),this.trigger(\"hover_node\",{node:this.get_node(t)}),setTimeout(function(){n.attr(\"aria-activedescendant\",t[0].id),t.attr(\"aria-selected\",!0)},0)},dehover_node:function(t){return t=this.get_node(t,!0),t&&t.length&&t.children(\".jstree-hovered\").length?(t.attr(\"aria-selected\",!1).children(\".jstree-anchor\").removeClass(\"jstree-hovered\"),void this.trigger(\"dehover_node\",{node:this.get_node(t)})):!1},select_node:function(e,n,i,r){var o,s,a;if(t.isArray(e)){for(e=e.slice(),s=0,a=e.length;a>s;s++)this.select_node(e[s],n,i,r);return!0}return e=this.get_node(e),e&&\"#\"!==e.id?(o=this.get_node(e,!0),void(e.state.selected||(e.state.selected=!0,this._data.core.selected.push(e.id),i||(o=this._open_to(e)),o&&o.length&&o.children(\".jstree-anchor\").addClass(\"jstree-clicked\"),this.trigger(\"select_node\",{node:e,selected:this._data.core.selected,event:r}),n||this.trigger(\"changed\",{action:\"select_node\",node:e,selected:this._data.core.selected,event:r})))):!1},deselect_node:function(e,n,i){var r,o,s;if(t.isArray(e)){for(e=e.slice(),r=0,o=e.length;o>r;r++)this.deselect_node(e[r],n,i);return!0}return e=this.get_node(e),e&&\"#\"!==e.id?(s=this.get_node(e,!0),void(e.state.selected&&(e.state.selected=!1,this._data.core.selected=t.vakata.array_remove_item(this._data.core.selected,e.id),s.length&&s.children(\".jstree-anchor\").removeClass(\"jstree-clicked\"),this.trigger(\"deselect_node\",{node:e,selected:this._data.core.selected,event:i}),n||this.trigger(\"changed\",{action:\"deselect_node\",node:e,selected:this._data.core.selected,event:i})))):!1},select_all:function(t){var e,n,i=this._data.core.selected.concat([]);for(this._data.core.selected=this._model.data[\"#\"].children_d.concat(),e=0,n=this._data.core.selected.length;n>e;e++)this._model.data[this._data.core.selected[e]]&&(this._model.data[this._data.core.selected[e]].state.selected=!0);this.redraw(!0),this.trigger(\"select_all\",{selected:this._data.core.selected}),t||this.trigger(\"changed\",{action:\"select_all\",selected:this._data.core.selected,old_selection:i})},deselect_all:function(t){var e,n,i=this._data.core.selected.concat([]);for(e=0,n=this._data.core.selected.length;n>e;e++)this._model.data[this._data.core.selected[e]]&&(this._model.data[this._data.core.selected[e]].state.selected=!1);this._data.core.selected=[],this.element.find(\".jstree-clicked\").removeClass(\"jstree-clicked\"),this.trigger(\"deselect_all\",{selected:this._data.core.selected,node:i}),t||this.trigger(\"changed\",{action:\"deselect_all\",selected:this._data.core.selected,old_selection:i})},is_selected:function(t){return t=this.get_node(t),t&&\"#\"!==t.id?t.state.selected:!1},get_selected:function(e){return e?t.map(this._data.core.selected,t.proxy(function(t){return this.get_node(t)},this)):this._data.core.selected},get_state:function(){var t,e={core:{open:[],scroll:{left:this.element.scrollLeft(),top:this.element.scrollTop()},selected:[]}};for(t in this._model.data)this._model.data.hasOwnProperty(t)&&\"#\"!==t&&(this._model.data[t].state.opened&&e.core.open.push(t),this._model.data[t].state.selected&&e.core.selected.push(t));return e},set_state:function(n,i){if(n){if(n.core){var r,o,s,a;if(n.core.open)return t.isArray(n.core.open)?(r=!0,o=!1,s=this,t.each(n.core.open.concat([]),function(e,a){o=s.get_node(a),o&&(s.is_loaded(a)?(s.is_closed(a)&&s.open_node(a,!1,0),n&&n.core&&n.core.open&&t.vakata.array_remove_item(n.core.open,a)):(s.is_loading(a)||s.open_node(a,t.proxy(function(){this.set_state(n,i)},s),0),r=!1))}),r&&(delete n.core.open,this.set_state(n,i)),!1):(delete n.core.open,this.set_state(n,i),!1);if(n.core.scroll)return n.core.scroll&&n.core.scroll.left!==e&&this.element.scrollLeft(n.core.scroll.left),n.core.scroll&&n.core.scroll.top!==e&&this.element.scrollTop(n.core.scroll.top),delete n.core.scroll,this.set_state(n,i),!1;if(n.core.selected)return a=this,this.deselect_all(),t.each(n.core.selected,function(t,e){a.select_node(e)}),delete n.core.selected,this.set_state(n,i),!1;if(t.isEmptyObject(n.core))return delete n.core,this.set_state(n,i),!1}return t.isEmptyObject(n)?(n=null,i&&i.call(this),this.trigger(\"set_state\"),!1):!0}return!1},refresh:function(e){this._data.core.state=this.get_state(),this._cnt=0,this._model.data={\"#\":{id:\"#\",parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}}};var n=this.get_container_ul()[0].className;e||this.element.html(\"<ul class='jstree-container-ul'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>\"+this.get_string(\"Loading ...\")+\"</a></li></ul>\"),this.load_node(\"#\",function(e,i){i&&(this.get_container_ul()[0].className=n,this.set_state(t.extend(!0,{},this._data.core.state),function(){this.trigger(\"refresh\")})),this._data.core.state=null})},set_id:function(e,n){if(e=this.get_node(e),!e||\"#\"===e.id)return!1;var i,r,o=this._model.data;for(o[e.parent].children[t.inArray(e.id,o[e.parent].children)]=n,i=0,r=e.parents.length;r>i;i++)o[e.parents[i]].children_d[t.inArray(e.id,o[e.parents[i]].children_d)]=n;for(i=0,r=e.children.length;r>i;i++)o[e.children[i]].parent=n;for(i=0,r=e.children_d.length;r>i;i++)o[e.children_d[i]].parents[t.inArray(e.id,o[e.children_d[i]].parents)]=n;return i=t.inArray(e.id,this._data.core.selected),-1!==i&&(this._data.core.selected[i]=n),i=this.get_node(e.id,!0),i&&i.attr(\"id\",n),delete o[e.id],e.id=n,o[n]=e,!0},get_text:function(t){return t=this.get_node(t),t&&\"#\"!==t.id?t.text:!1},set_text:function(e,n){var i,r,o,s;if(t.isArray(e)){for(e=e.slice(),i=0,r=e.length;r>i;i++)this.set_text(e[i],n);return!0}return e=this.get_node(e),e&&\"#\"!==e.id?(e.text=n,o=this.get_node(e,!0),o.length&&(o=o.children(\".jstree-anchor:eq(0)\"),s=o.children(\"I\").clone(),o.html(n).prepend(s),this.trigger(\"set_text\",{obj:e,text:n})),!0):!1},get_json:function(t,e,n){if(t=this.get_node(t||\"#\"),!t)return!1;e&&e.flat&&!n&&(n=[]);var i,r,o={id:t.id,text:t.text,icon:this.get_icon(t),li_attr:t.li_attr,a_attr:t.a_attr,state:{},data:e&&e.no_data?!1:t.data};if(e&&e.flat?o.parent=t.parent:o.children=[],!e||!e.no_state)for(i in t.state)t.state.hasOwnProperty(i)&&(o.state[i]=t.state[i]);if(e&&e.no_id&&(delete o.id,o.li_attr&&o.li_attr.id&&delete o.li_attr.id),e&&e.flat&&\"#\"!==t.id&&n.push(o),!e||!e.no_children)for(i=0,r=t.children.length;r>i;i++)e&&e.flat?this.get_json(t.children[i],e,n):o.children.push(this.get_json(t.children[i],e));return e&&e.flat?n:\"#\"===t.id?o.children:o},create_node:function(n,i,r,o,s){if(n=this.get_node(n),!n)return!1;if(r=r===e?\"last\":r,!r.toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(n))return this.load_node(n,function(){this.create_node(n,i,r,o,!0)});i||(i={text:this.get_string(\"New node\")}),i.text===e&&(i.text=this.get_string(\"New node\"));var a,l,c,u;switch(\"#\"===n.id&&(\"before\"===r&&(r=\"first\"),\"after\"===r&&(r=\"last\")),r){case\"before\":a=this.get_node(n.parent),r=t.inArray(n.id,a.children),n=a;break;case\"after\":a=this.get_node(n.parent),r=t.inArray(n.id,a.children)+1,n=a;break;case\"inside\":case\"first\":r=0;break;case\"last\":r=n.children.length;break;default:r||(r=0)}if(r>n.children.length&&(r=n.children.length),i.id||(i.id=!0),!this.check(\"create_node\",i,n,r))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(i.id===!0&&delete i.id,i=this._parse_model_from_json(i,n.id,n.parents.concat()),!i)return!1;for(a=this.get_node(i),l=[],l.push(i),l=l.concat(a.children_d),this.trigger(\"model\",{nodes:l,parent:n.id}),n.children_d=n.children_d.concat(l),c=0,u=n.parents.length;u>c;c++)this._model.data[n.parents[c]].children_d=this._model.data[n.parents[c]].children_d.concat(l);for(i=a,a=[],c=0,u=n.children.length;u>c;c++)a[c>=r?c+1:c]=n.children[c];return a[r]=i.id,n.children=a,this.redraw_node(n,!0),o&&o.call(this,this.get_node(i)),this.trigger(\"create_node\",{node:this.get_node(i),parent:n.id,position:r}),i.id},rename_node:function(e,n){var i,r,o;if(t.isArray(e)){for(e=e.slice(),i=0,r=e.length;r>i;i++)this.rename_node(e[i],n);return!0}return e=this.get_node(e),e&&\"#\"!==e.id?(o=e.text,this.check(\"rename_node\",e,this.get_parent(e),n)?(this.set_text(e,n),this.trigger(\"rename_node\",{node:e,text:n,old:o}),!0):(this.settings.core.error.call(this,this._data.core.last_error),!1)):!1},delete_node:function(e){var n,i,r,o,s,a,l,c,u,h;if(t.isArray(e)){for(e=e.slice(),n=0,i=e.length;i>n;n++)this.delete_node(e[n]);return!0}if(e=this.get_node(e),!e||\"#\"===e.id)return!1;if(r=this.get_node(e.parent),o=t.inArray(e.id,r.children),h=!1,!this.check(\"delete_node\",e,r,o))return this.settings.core.error.call(this,this._data.core.last_error),!1;for(-1!==o&&(r.children=t.vakata.array_remove(r.children,o)),s=e.children_d.concat([]),s.push(e.id),c=0,u=s.length;u>c;c++){for(a=0,l=e.parents.length;l>a;a++)o=t.inArray(s[c],this._model.data[e.parents[a]].children_d),-1!==o&&(this._model.data[e.parents[a]].children_d=t.vakata.array_remove(this._model.data[e.parents[a]].children_d,o));this._model.data[s[c]].state.selected&&(h=!0,o=t.inArray(s[c],this._data.core.selected),-1!==o&&(this._data.core.selected=t.vakata.array_remove(this._data.core.selected,o)))}for(this.trigger(\"delete_node\",{node:e,parent:r.id}),h&&this.trigger(\"changed\",{action:\"delete_node\",node:e,selected:this._data.core.selected,parent:r.id}),c=0,u=s.length;u>c;c++)delete this._model.data[s[c]];return this.redraw_node(r,!0),!0},check:function(e,n,i,r){n=n&&n.id?n:this.get_node(n),i=i&&i.id?i:this.get_node(i);var o=e.match(/^move_node|copy_node|create_node$/i)?i:n,s=this.settings.core.check_callback;return\"move_node\"!==e||n.id!==i.id&&t.inArray(n.id,i.children)!==r&&-1===t.inArray(i.id,n.children_d)?(o=this.get_node(o,!0),o.length&&(o=o.data(\"jstree\")),o&&o.functions&&(o.functions[e]===!1||o.functions[e]===!0)?(o.functions[e]===!1&&(this._data.core.last_error={error:\"check\",plugin:\"core\",id:\"core_02\",reason:\"Node data prevents function: \"+e,data:JSON.stringify({chk:e,pos:r,obj:n&&n.id?n.id:!1,par:i&&i.id?i.id:!1})}),o.functions[e]):s===!1||t.isFunction(s)&&s.call(this,e,n,i,r)===!1||s&&s[e]===!1?(this._data.core.last_error={error:\"check\",plugin:\"core\",id:\"core_03\",reason:\"User config for core.check_callback prevents function: \"+e,data:JSON.stringify({chk:e,pos:r,obj:n&&n.id?n.id:!1,par:i&&i.id?i.id:!1})},!1):!0):(this._data.core.last_error={error:\"check\",plugin:\"core\",id:\"core_01\",reason:\"Moving parent inside child\",data:JSON.stringify({chk:e,pos:r,obj:n&&n.id?n.id:!1,par:i&&i.id?i.id:!1})},!1)},last_error:function(){return this._data.core.last_error},move_node:function(n,i,r,o,s){var a,l,c,u,h,p,d,f,_,g,m,y,v;if(t.isArray(n)){for(n=n.reverse().slice(),a=0,l=n.length;l>a;a++)this.move_node(n[a],i,r,o,s);return!0}if(n=n&&n.id?n:this.get_node(n),i=this.get_node(i),r=r===e?0:r,!i||!n||\"#\"===n.id)return!1;if(!r.toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(i))return this.load_node(i,function(){this.move_node(n,i,r,o,!0)});if(c=(n.parent||\"#\").toString(),u=r.toString().match(/^(before|after)$/)&&\"#\"!==i.id?this.get_node(i.parent):i,h=this._model.data[n.id]?this:t.jstree.reference(n.id),p=!h||!h._id||this._id!==h._id)return this.copy_node(n,i,r,o,s)?(h&&h.delete_node(n),!0):!1;switch(\"#\"===u.id&&(\"before\"===r&&(r=\"first\"),\"after\"===r&&(r=\"last\")),r){case\"before\":r=t.inArray(i.id,u.children);break;case\"after\":r=t.inArray(i.id,u.children)+1;break;case\"inside\":case\"first\":r=0;break;case\"last\":r=u.children.length;break;default:r||(r=0)}if(r>u.children.length&&(r=u.children.length),!this.check(\"move_node\",n,u,r))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(n.parent===u.id){for(d=u.children.concat(),f=t.inArray(n.id,d),-1!==f&&(d=t.vakata.array_remove(d,f),r>f&&r--),f=[],_=0,g=d.length;g>_;_++)f[_>=r?_+1:_]=d[_];f[r]=n.id,u.children=f,this._node_changed(u.id),this.redraw(\"#\"===u.id)}else{for(f=n.children_d.concat(),f.push(n.id),_=0,g=n.parents.length;g>_;_++){for(d=[],v=h._model.data[n.parents[_]].children_d,m=0,y=v.length;y>m;m++)-1===t.inArray(v[m],f)&&d.push(v[m]);h._model.data[n.parents[_]].children_d=d}for(h._model.data[c].children=t.vakata.array_remove_item(h._model.data[c].children,n.id),_=0,g=u.parents.length;g>_;_++)this._model.data[u.parents[_]].children_d=this._model.data[u.parents[_]].children_d.concat(f);for(d=[],_=0,g=u.children.length;g>_;_++)d[_>=r?_+1:_]=u.children[_];for(d[r]=n.id,u.children=d,u.children_d.push(n.id),u.children_d=u.children_d.concat(n.children_d),n.parent=u.id,f=u.parents.concat(),f.unshift(u.id),v=n.parents.length,n.parents=f,f=f.concat(),_=0,g=n.children_d.length;g>_;_++)this._model.data[n.children_d[_]].parents=this._model.data[n.children_d[_]].parents.slice(0,-1*v),Array.prototype.push.apply(this._model.data[n.children_d[_]].parents,f);this._node_changed(c),this._node_changed(u.id),this.redraw(\"#\"===c||\"#\"===u.id)}return o&&o.call(this,n,u,r),this.trigger(\"move_node\",{node:n,parent:u.id,position:r,old_parent:c,is_multi:p,old_instance:h,new_instance:this}),!0},copy_node:function(n,i,r,o,s){var a,l,c,u,h,p,d,f,_,g,m;if(t.isArray(n)){for(n=n.reverse().slice(),a=0,l=n.length;l>a;a++)this.copy_node(n[a],i,r,o,s);return!0}if(n=n&&n.id?n:this.get_node(n),i=this.get_node(i),r=r===e?0:r,!i||!n||\"#\"===n.id)return!1;if(!r.toString().match(/^(before|after)$/)&&!s&&!this.is_loaded(i))return this.load_node(i,function(){this.copy_node(n,i,r,o,!0)});switch(f=(n.parent||\"#\").toString(),_=r.toString().match(/^(before|after)$/)&&\"#\"!==i.id?this.get_node(i.parent):i,g=this._model.data[n.id]?this:t.jstree.reference(n.id),m=!g||!g._id||this._id!==g._id,\"#\"===_.id&&(\"before\"===r&&(r=\"first\"),\"after\"===r&&(r=\"last\")),r){case\"before\":r=t.inArray(i.id,_.children);break;case\"after\":r=t.inArray(i.id,_.children)+1;break;case\"inside\":case\"first\":r=0;break;case\"last\":r=_.children.length;break;default:r||(r=0)}if(r>_.children.length&&(r=_.children.length),!this.check(\"copy_node\",n,_,r))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(d=g?g.get_json(n,{no_id:!0,no_data:!0,no_state:!0}):n,!d)return!1;if(d.id===!0&&delete d.id,d=this._parse_model_from_json(d,_.id,_.parents.concat()),!d)return!1;for(u=this.get_node(d),c=[],c.push(d),c=c.concat(u.children_d),this.trigger(\"model\",{nodes:c,parent:_.id}),h=0,p=_.parents.length;p>h;h++)this._model.data[_.parents[h]].children_d=this._model.data[_.parents[h]].children_d.concat(c);for(c=[],h=0,p=_.children.length;p>h;h++)c[h>=r?h+1:h]=_.children[h];return c[r]=u.id,_.children=c,_.children_d.push(u.id),_.children_d=_.children_d.concat(u.children_d),this._node_changed(_.id),this.redraw(\"#\"===_.id),o&&o.call(this,u,_,r),this.trigger(\"copy_node\",{node:u,original:n,parent:_.id,position:r,old_parent:f,is_multi:m,old_instance:g,new_instance:this}),u.id},cut:function(e){if(e||(e=this._data.core.selected.concat()),t.isArray(e)||(e=[e]),!e.length)return!1;var n,i,r,l=[];for(i=0,r=e.length;r>i;i++)n=this.get_node(e[i]),n&&n.id&&\"#\"!==n.id&&l.push(n);return l.length?(o=l,a=this,s=\"move_node\",void this.trigger(\"cut\",{node:e})):!1},copy:function(e){if(e||(e=this._data.core.selected.concat()),t.isArray(e)||(e=[e]),!e.length)return!1;var n,i,r,l=[];for(i=0,r=e.length;r>i;i++)n=this.get_node(e[i]),n&&n.id&&\"#\"!==n.id&&l.push(n);return l.length?(o=l,a=this,s=\"copy_node\",void this.trigger(\"copy\",{node:e})):!1},get_buffer:function(){return{mode:s,node:o,inst:a}},can_paste:function(){return s!==!1&&o!==!1},paste:function(t){return t=this.get_node(t),t&&s&&s.match(/^(copy_node|move_node)$/)&&o?(this[s](o,t)&&this.trigger(\"paste\",{parent:t.id,node:o,mode:s}),o=!1,s=!1,void(a=!1)):!1},edit:function(e,n){if(e=this._open_to(e),!e||!e.length)return!1;var i=this._data.core.rtl,r=this.element.width(),o=e.children(\".jstree-anchor\"),s=t(\"<span>\"),a=\"string\"==typeof n?n:this.get_text(e),l=t(\"<div />\",{css:{position:\"absolute\",top:\"-200px\",left:i?\"0px\":\"-1000px\",visibility:\"hidden\"}}).appendTo(\"body\"),c=t(\"<input />\",{value:a,\"class\":\"jstree-rename-input\",css:{padding:\"0\",border:\"1px solid silver\",\"box-sizing\":\"border-box\",display:\"inline-block\",height:this._data.core.li_height+\"px\",lineHeight:this._data.core.li_height+\"px\",width:\"150px\"},blur:t.proxy(function(){var t=s.children(\".jstree-rename-input\"),n=t.val();\"\"===n&&(n=a),l.remove(),s.replaceWith(o),s.remove(),this.set_text(e,a),this.rename_node(e,n)===!1&&this.set_text(e,a)},this),keydown:function(t){var e=t.which;27===e&&(this.value=a),(27===e||13===e||37===e||38===e||39===e||40===e||32===e)&&t.stopImmediatePropagation(),(27===e||13===e)&&(t.preventDefault(),this.blur())},click:function(t){t.stopImmediatePropagation()},mousedown:function(t){t.stopImmediatePropagation()},keyup:function(){c.width(Math.min(l.text(\"pW\"+this.value).width(),r))},keypress:function(t){return 13===t.which?!1:void 0}}),u={fontFamily:o.css(\"fontFamily\")||\"\",fontSize:o.css(\"fontSize\")||\"\",fontWeight:o.css(\"fontWeight\")||\"\",fontStyle:o.css(\"fontStyle\")||\"\",fontStretch:o.css(\"fontStretch\")||\"\",fontVariant:o.css(\"fontVariant\")||\"\",letterSpacing:o.css(\"letterSpacing\")||\"\",wordSpacing:o.css(\"wordSpacing\")||\"\"};this.set_text(e,\"\"),s.attr(\"class\",o.attr(\"class\")).append(o.contents().clone()).append(c),o.replaceWith(s),l.css(u),c.css(u).width(Math.min(l.text(\"pW\"+c[0].value).width(),r))[0].select()},set_theme:function(e,n){if(!e)return!1;if(n===!0){var i=this.settings.core.themes.dir;i||(i=t.jstree.path+\"/themes\"),n=i+\"/\"+e+\"/style.css\"}n&&-1===t.inArray(n,l)&&(t(\"head\").append('<link rel=\"stylesheet\" href=\"'+n+'\" type=\"text/css\" />'),l.push(n)),this._data.core.themes.name&&this.element.removeClass(\"jstree-\"+this._data.core.themes.name),this._data.core.themes.name=e,this.element.addClass(\"jstree-\"+e),this.element[this.settings.core.themes.responsive?\"addClass\":\"removeClass\"](\"jstree-\"+e+\"-responsive\"),this.trigger(\"set_theme\",{theme:e})},get_theme:function(){return this._data.core.themes.name},set_theme_variant:function(t){this._data.core.themes.variant&&this.element.removeClass(\"jstree-\"+this._data.core.themes.name+\"-\"+this._data.core.themes.variant),this._data.core.themes.variant=t,t&&this.element.addClass(\"jstree-\"+this._data.core.themes.name+\"-\"+this._data.core.themes.variant)},get_theme_variant:function(){return this._data.core.themes.variant},show_stripes:function(){this._data.core.themes.stripes=!0,this.get_container_ul().addClass(\"jstree-striped\")},hide_stripes:function(){this._data.core.themes.stripes=!1,this.get_container_ul().removeClass(\"jstree-striped\")},toggle_stripes:function(){this._data.core.themes.stripes?this.hide_stripes():this.show_stripes()},show_dots:function(){this._data.core.themes.dots=!0,this.get_container_ul().removeClass(\"jstree-no-dots\")},hide_dots:function(){this._data.core.themes.dots=!1,this.get_container_ul().addClass(\"jstree-no-dots\")},toggle_dots:function(){this._data.core.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this._data.core.themes.icons=!0,this.get_container_ul().removeClass(\"jstree-no-icons\")},hide_icons:function(){this._data.core.themes.icons=!1,this.get_container_ul().addClass(\"jstree-no-icons\")},toggle_icons:function(){this._data.core.themes.icons?this.hide_icons():this.show_icons()},set_icon:function(e,n){var i,r,o,s;if(t.isArray(e)){for(e=e.slice(),i=0,r=e.length;r>i;i++)this.set_icon(e[i],n);return!0}return e=this.get_node(e),e&&\"#\"!==e.id?(s=e.icon,e.icon=n,o=this.get_node(e,!0).children(\".jstree-anchor\").children(\".jstree-themeicon\"),n===!1?this.hide_icon(e):n===!0?o.removeClass(\"jstree-themeicon-custom \"+s).css(\"background\",\"\").removeAttr(\"rel\"):-1===n.indexOf(\"/\")&&-1===n.indexOf(\".\")?(o.removeClass(s).css(\"background\",\"\"),o.addClass(n+\" jstree-themeicon-custom\").attr(\"rel\",n)):(o.removeClass(s).css(\"background\",\"\"),o.addClass(\"jstree-themeicon-custom\").css(\"background\",\"url('\"+n+\"') center center no-repeat\").attr(\"rel\",n)),!0):!1},get_icon:function(t){return t=this.get_node(t),t&&\"#\"!==t.id?t.icon:!1},hide_icon:function(e){var n,i;if(t.isArray(e)){for(e=e.slice(),n=0,i=e.length;i>n;n++)this.hide_icon(e[n]);return!0}return e=this.get_node(e),e&&\"#\"!==e?(e.icon=!1,this.get_node(e,!0).children(\"a\").children(\".jstree-themeicon\").addClass(\"jstree-themeicon-hidden\"),!0):!1},show_icon:function(e){var n,i,r;\n",
" if(t.isArray(e)){for(e=e.slice(),n=0,i=e.length;i>n;n++)this.show_icon(e[n]);return!0}return e=this.get_node(e),e&&\"#\"!==e?(r=this.get_node(e,!0),e.icon=r.length?r.children(\"a\").children(\".jstree-themeicon\").attr(\"rel\"):!0,e.icon||(e.icon=!0),r.children(\"a\").children(\".jstree-themeicon\").removeClass(\"jstree-themeicon-hidden\"),!0):!1}},t.vakata={},t.fn.vakata_reverse=[].reverse,t.vakata.attributes=function(e,n){e=t(e)[0];var i=n?{}:[];return e&&e.attributes&&t.each(e.attributes,function(e,r){-1===t.inArray(r.nodeName.toLowerCase(),[\"style\",\"contenteditable\",\"hasfocus\",\"tabindex\"])&&null!==r.nodeValue&&\"\"!==t.trim(r.nodeValue)&&(n?i[r.nodeName]=r.nodeValue:i.push(r.nodeName))}),i},t.vakata.array_unique=function(t){var e,n,i,r=[];for(e=0,i=t.length;i>e;e++){for(n=0;e>=n&&t[e]!==t[n];n++);n===e&&r.push(t[e])}return r},t.vakata.array_remove=function(t,e,n){var i=t.slice((n||e)+1||t.length);return t.length=0>e?t.length+e:e,t.push.apply(t,i),t},t.vakata.array_remove_item=function(e,n){var i=t.inArray(n,e);return-1!==i?t.vakata.array_remove(e,i):e},function(){var e={},n=function(t){t=t.toLowerCase();var e=/(chrome)[ \\/]([\\w.]+)/.exec(t)||/(webkit)[ \\/]([\\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \\/]([\\w.]+)/.exec(t)||/(msie) ([\\w.]+)/.exec(t)||t.indexOf(\"compatible\")<0&&/(mozilla)(?:.*? rv:([\\w.]+)|)/.exec(t)||[];return{browser:e[1]||\"\",version:e[2]||\"0\"}},i=n(window.navigator.userAgent);i.browser&&(e[i.browser]=!0,e.version=i.version),e.chrome?e.webkit=!0:e.webkit&&(e.safari=!0),t.vakata.browser=e}(),t.vakata.browser.msie&&t.vakata.browser.version<8&&(t.jstree.defaults.core.animation=0);var p=document.createElement(\"I\");p.className=\"jstree-icon jstree-checkbox\",t.jstree.defaults.checkbox={visible:!0,three_state:!0,whole_node:!0,keep_selected_style:!0},t.jstree.plugins.checkbox=function(e,n){this.bind=function(){n.bind.call(this),this._data.checkbox.uto=!1,this.element.on(\"init.jstree\",t.proxy(function(){this._data.checkbox.visible=this.settings.checkbox.visible,this.settings.checkbox.keep_selected_style||this.element.addClass(\"jstree-checkbox-no-clicked\")},this)).on(\"loading.jstree\",t.proxy(function(){this[this._data.checkbox.visible?\"show_checkboxes\":\"hide_checkboxes\"]()},this)),this.settings.checkbox.three_state&&this.element.on(\"changed.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree\",t.proxy(function(){this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(t.proxy(this._undetermined,this),50)},this)).on(\"model.jstree\",t.proxy(function(e,n){var i,r,o,s,a,l,c=this._model.data,u=c[n.parent],h=n.nodes,p=[];if(u.state.selected){for(r=0,o=h.length;o>r;r++)c[h[r]].state.selected=!0;this._data.core.selected=this._data.core.selected.concat(h)}else for(r=0,o=h.length;o>r;r++)if(c[h[r]].state.selected){for(s=0,a=c[h[r]].children_d.length;a>s;s++)c[c[h[r]].children_d[s]].state.selected=!0;this._data.core.selected=this._data.core.selected.concat(c[h[r]].children_d)}for(r=0,o=u.children_d.length;o>r;r++)c[u.children_d[r]].children.length||p.push(c[u.children_d[r]].parent);for(p=t.vakata.array_unique(p),s=0,a=p.length;a>s;s++)for(u=c[p[s]];u&&\"#\"!==u.id;){for(i=0,r=0,o=u.children.length;o>r;r++)i+=c[u.children[r]].state.selected;if(i!==o)break;u.state.selected=!0,this._data.core.selected.push(u.id),l=this.get_node(u,!0),l&&l.length&&l.children(\".jstree-anchor\").addClass(\"jstree-clicked\"),u=this.get_node(u.parent)}this._data.core.selected=t.vakata.array_unique(this._data.core.selected)},this)).on(\"select_node.jstree\",t.proxy(function(e,n){var i,r,o,s,a=n.node,l=this._model.data,c=this.get_node(a.parent),u=this.get_node(a,!0);for(this._data.core.selected=t.vakata.array_unique(this._data.core.selected.concat(a.children_d)),i=0,r=a.children_d.length;r>i;i++)l[a.children_d[i]].state.selected=!0;for(;c&&\"#\"!==c.id;){for(o=0,i=0,r=c.children.length;r>i;i++)o+=l[c.children[i]].state.selected;if(o!==r)break;c.state.selected=!0,this._data.core.selected.push(c.id),s=this.get_node(c,!0),s&&s.length&&s.children(\".jstree-anchor\").addClass(\"jstree-clicked\"),c=this.get_node(c.parent)}u.length&&u.find(\".jstree-anchor\").addClass(\"jstree-clicked\")},this)).on(\"deselect_node.jstree\",t.proxy(function(e,n){var i,r,o,s=n.node,a=this.get_node(s,!0);for(i=0,r=s.children_d.length;r>i;i++)this._model.data[s.children_d[i]].state.selected=!1;for(i=0,r=s.parents.length;r>i;i++)this._model.data[s.parents[i]].state.selected=!1,o=this.get_node(s.parents[i],!0),o&&o.length&&o.children(\".jstree-anchor\").removeClass(\"jstree-clicked\");for(o=[],i=0,r=this._data.core.selected.length;r>i;i++)-1===t.inArray(this._data.core.selected[i],s.children_d)&&-1===t.inArray(this._data.core.selected[i],s.parents)&&o.push(this._data.core.selected[i]);this._data.core.selected=t.vakata.array_unique(o),a.length&&a.find(\".jstree-anchor\").removeClass(\"jstree-clicked\")},this)).on(\"delete_node.jstree\",t.proxy(function(t,e){for(var n,i,r,o,s=this.get_node(e.parent),a=this._model.data;s&&\"#\"!==s.id;){for(r=0,n=0,i=s.children.length;i>n;n++)r+=a[s.children[n]].state.selected;if(r!==i)break;s.state.selected=!0,this._data.core.selected.push(s.id),o=this.get_node(s,!0),o&&o.length&&o.children(\".jstree-anchor\").addClass(\"jstree-clicked\"),s=this.get_node(s.parent)}},this)).on(\"move_node.jstree\",t.proxy(function(e,n){var i,r,o,s,a,l=n.is_multi,c=n.old_parent,u=this.get_node(n.parent),h=this._model.data;if(!l)for(i=this.get_node(c);i&&\"#\"!==i.id;){for(r=0,o=0,s=i.children.length;s>o;o++)r+=h[i.children[o]].state.selected;if(r!==s)break;i.state.selected=!0,this._data.core.selected.push(i.id),a=this.get_node(i,!0),a&&a.length&&a.children(\".jstree-anchor\").addClass(\"jstree-clicked\"),i=this.get_node(i.parent)}for(i=u;i&&\"#\"!==i.id;){for(r=0,o=0,s=i.children.length;s>o;o++)r+=h[i.children[o]].state.selected;if(r===s)i.state.selected||(i.state.selected=!0,this._data.core.selected.push(i.id),a=this.get_node(i,!0),a&&a.length&&a.children(\".jstree-anchor\").addClass(\"jstree-clicked\"));else{if(!i.state.selected)break;i.state.selected=!1,this._data.core.selected=t.vakata.array_remove_item(this._data.core.selected,i.id),a=this.get_node(i,!0),a&&a.length&&a.children(\".jstree-anchor\").removeClass(\"jstree-clicked\")}i=this.get_node(i.parent)}},this))},this._undetermined=function(){var e,n,i=this._model.data,r=this._data.core.selected,o=[],s=this;for(e=0,n=r.length;n>e;e++)i[r[e]]&&i[r[e]].parents&&(o=o.concat(i[r[e]].parents));for(this.element.find(\".jstree-closed\").not(\":has(ul)\").each(function(){var t=s.get_node(this);!t.state.loaded&&t.original&&t.original.state&&t.original.state.undetermined&&t.original.state.undetermined===!0&&(o.push(t.id),o=o.concat(t.parents))}),o=t.vakata.array_unique(o),e=t.inArray(\"#\",o),-1!==e&&(o=t.vakata.array_remove(o,e)),this.element.find(\".jstree-undetermined\").removeClass(\"jstree-undetermined\"),e=0,n=o.length;n>e;e++)i[o[e]].state.selected||(r=this.get_node(o[e],!0),r&&r.length&&r.children(\"a\").children(\".jstree-checkbox\").addClass(\"jstree-undetermined\"))},this.redraw_node=function(e,i,r){if(e=n.redraw_node.call(this,e,i,r)){var o=e.getElementsByTagName(\"A\")[0];o.insertBefore(p.cloneNode(),o.childNodes[0])}return!r&&this.settings.checkbox.three_state&&(this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(t.proxy(this._undetermined,this),50)),e},this.activate_node=function(e,i){return(this.settings.checkbox.whole_node||t(i.target).hasClass(\"jstree-checkbox\"))&&(i.ctrlKey=!0),n.activate_node.call(this,e,i)},this.show_checkboxes=function(){this._data.core.themes.checkboxes=!0,this.element.children(\"ul\").removeClass(\"jstree-no-checkboxes\")},this.hide_checkboxes=function(){this._data.core.themes.checkboxes=!1,this.element.children(\"ul\").addClass(\"jstree-no-checkboxes\")},this.toggle_checkboxes=function(){this._data.core.themes.checkboxes?this.hide_checkboxes():this.show_checkboxes()}},t.jstree.defaults.contextmenu={select_node:!0,show_at_node:!0,items:function(){return{create:{separator_before:!1,separator_after:!0,_disabled:!1,label:\"Create\",action:function(e){var n=t.jstree.reference(e.reference),i=n.get_node(e.reference);n.create_node(i,{},\"last\",function(t){setTimeout(function(){n.edit(t)},0)})}},rename:{separator_before:!1,separator_after:!1,_disabled:!1,label:\"Rename\",action:function(e){var n=t.jstree.reference(e.reference),i=n.get_node(e.reference);n.edit(i)}},remove:{separator_before:!1,icon:!1,separator_after:!1,_disabled:!1,label:\"Delete\",action:function(e){var n=t.jstree.reference(e.reference),i=n.get_node(e.reference);n.delete_node(n.is_selected(i)?n.get_selected():i)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:\"Edit\",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:\"Cut\",action:function(e){var n=t.jstree.reference(e.reference),i=n.get_node(e.reference);n.cut(n.is_selected(i)?n.get_selected():i)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:\"Copy\",action:function(e){var n=t.jstree.reference(e.reference),i=n.get_node(e.reference);n.copy(n.is_selected(i)?n.get_selected():i)}},paste:{separator_before:!1,icon:!1,_disabled:function(e){return!t.jstree.reference(e.reference).can_paste()},separator_after:!1,label:\"Paste\",action:function(e){var n=t.jstree.reference(e.reference),i=n.get_node(e.reference);n.paste(i)}}}}}}},t.jstree.plugins.contextmenu=function(n,i){this.bind=function(){i.bind.call(this),this.element.on(\"contextmenu.jstree\",\".jstree-anchor\",t.proxy(function(t){t.preventDefault(),this.is_loading(t.currentTarget)||this.show_contextmenu(t.currentTarget,t.pageX,t.pageY,t)},this)).on(\"click.jstree\",\".jstree-anchor\",t.proxy(function(){this._data.contextmenu.visible&&t.vakata.context.hide()},this)),t(document).on(\"context_hide.vakata\",t.proxy(function(){this._data.contextmenu.visible=!1},this))},this.teardown=function(){this._data.contextmenu.visible&&t.vakata.context.hide(),i.teardown.call(this)},this.show_contextmenu=function(n,i,r,o){if(n=this.get_node(n),!n||\"#\"===n.id)return!1;var s=this.settings.contextmenu,a=this.get_node(n,!0),l=a.children(\".jstree-anchor\"),c=!1,u=!1;(s.show_at_node||i===e||r===e)&&(c=l.offset(),i=c.left,r=c.top+this._data.core.li_height),this.settings.contextmenu.select_node&&!this.is_selected(n)&&(this.deselect_all(),this.select_node(n,!1,!1,o)),u=s.items,t.isFunction(u)&&(u=u.call(this,n,t.proxy(function(t){this._show_contextmenu(n,i,r,t)},this))),t.isPlainObject(u)&&this._show_contextmenu(n,i,r,u)},this._show_contextmenu=function(e,n,i,r){var o=this.get_node(e,!0),s=o.children(\".jstree-anchor\");t(document).one(\"context_show.vakata\",t.proxy(function(e,n){var i=\"jstree-contextmenu jstree-\"+this.get_theme()+\"-contextmenu\";t(n.element).addClass(i)},this)),this._data.contextmenu.visible=!0,t.vakata.context.show(s,{x:n,y:i},r),this.trigger(\"show_contextmenu\",{node:e,x:n,y:i})}},function(t){var e=!1,n={element:!1,reference:!1,position_x:0,position_y:0,items:[],html:\"\",is_visible:!1};t.vakata.context={settings:{hide_onmouseleave:0,icons:!0},_trigger:function(e){t(document).triggerHandler(\"context_\"+e+\".vakata\",{reference:n.reference,element:n.element,position:{x:n.position_x,y:n.position_y}})},_execute:function(e){return e=n.items[e],e&&(!e._disabled||t.isFunction(e._disabled)&&!e._disabled({item:e,reference:n.reference,element:n.element}))&&e.action?e.action.call(null,{item:e,reference:n.reference,element:n.element,position:{x:n.position_x,y:n.position_y}}):!1},_parse:function(e,i){if(!e)return!1;i||(n.html=\"\",n.items=[]);var r,o=\"\",s=!1;return i&&(o+=\"<ul>\"),t.each(e,function(e,i){return i?(n.items.push(i),!s&&i.separator_before&&(o+=\"<li class='vakata-context-separator'><a href='#' \"+(t.vakata.context.settings.icons?\"\":'style=\"margin-left:0px;\"')+\">&#160;</a></li>\"),s=!1,o+=\"<li class='\"+(i._class||\"\")+(i._disabled===!0||t.isFunction(i._disabled)&&i._disabled({item:i,reference:n.reference,element:n.element})?\" vakata-contextmenu-disabled \":\"\")+\"' \"+(i.shortcut?\" data-shortcut='\"+i.shortcut+\"' \":\"\")+\">\",o+=\"<a href='#' rel='\"+(n.items.length-1)+\"'>\",t.vakata.context.settings.icons&&(o+=\"<i \",i.icon&&(o+=-1!==i.icon.indexOf(\"/\")||-1!==i.icon.indexOf(\".\")?\" style='background:url(\\\"\"+i.icon+\"\\\") center center no-repeat' \":\" class='\"+i.icon+\"' \"),o+=\"></i><span class='vakata-contextmenu-sep'>&#160;</span>\"),o+=i.label+(i.shortcut?' <span class=\"vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+i.shortcut+'\">'+(i.shortcut_label||\"\")+\"</span>\":\"\")+\"</a>\",i.submenu&&(r=t.vakata.context._parse(i.submenu,!0),r&&(o+=r)),o+=\"</li>\",void(i.separator_after&&(o+=\"<li class='vakata-context-separator'><a href='#' \"+(t.vakata.context.settings.icons?\"\":'style=\"margin-left:0px;\"')+\">&#160;</a></li>\",s=!0))):!0}),o=o.replace(/<li class\\='vakata-context-separator'\\><\\/li\\>$/,\"\"),i&&(o+=\"</ul>\"),i||(n.html=o,t.vakata.context._trigger(\"parse\")),o.length>10?o:!1},_show_submenu:function(n){if(n=t(n),n.length&&n.children(\"ul\").length){var i=n.children(\"ul\"),r=n.offset().left+n.outerWidth(),o=n.offset().top,s=i.width(),a=i.height(),l=t(window).width()+t(window).scrollLeft(),c=t(window).height()+t(window).scrollTop();e?n[r-(s+10+n.outerWidth())<0?\"addClass\":\"removeClass\"](\"vakata-context-left\"):n[r+s+10>l?\"addClass\":\"removeClass\"](\"vakata-context-right\"),o+a+10>c&&i.css(\"bottom\",\"-1px\"),i.show()}},show:function(i,r,o){var s,a,l,c,u,h,p,d,f=!0;switch(n.element&&n.element.length&&n.element.width(\"\"),f){case!r&&!i:return!1;case!!r&&!!i:n.reference=i,n.position_x=r.x,n.position_y=r.y;break;case!r&&!!i:n.reference=i,s=i.offset(),n.position_x=s.left+i.outerHeight(),n.position_y=s.top;break;case!!r&&!i:n.position_x=r.x,n.position_y=r.y}i&&!o&&t(i).data(\"vakata_contextmenu\")&&(o=t(i).data(\"vakata_contextmenu\")),t.vakata.context._parse(o)&&n.element.html(n.html),n.items.length&&(a=n.element,l=n.position_x,c=n.position_y,u=a.width(),h=a.height(),p=t(window).width()+t(window).scrollLeft(),d=t(window).height()+t(window).scrollTop(),e&&(l-=a.outerWidth(),l<t(window).scrollLeft()+20&&(l=t(window).scrollLeft()+20)),l+u+20>p&&(l=p-(u+20)),c+h+20>d&&(c=d-(h+20)),n.element.css({left:l,top:c}).show().find(\"a:eq(0)\").focus().parent().addClass(\"vakata-context-hover\"),n.is_visible=!0,t.vakata.context._trigger(\"show\"))},hide:function(){n.is_visible&&(n.element.hide().find(\"ul\").hide().end().find(\":focus\").blur(),n.is_visible=!1,t.vakata.context._trigger(\"hide\"))}},t(function(){e=\"rtl\"===t(\"body\").css(\"direction\");var i=!1;n.element=t(\"<ul class='vakata-context'></ul>\"),n.element.on(\"mouseenter\",\"li\",function(e){e.stopImmediatePropagation(),t.contains(this,e.relatedTarget)||(i&&clearTimeout(i),n.element.find(\".vakata-context-hover\").removeClass(\"vakata-context-hover\").end(),t(this).siblings().find(\"ul\").hide().end().end().parentsUntil(\".vakata-context\",\"li\").addBack().addClass(\"vakata-context-hover\"),t.vakata.context._show_submenu(this))}).on(\"mouseleave\",\"li\",function(e){t.contains(this,e.relatedTarget)||t(this).find(\".vakata-context-hover\").addBack().removeClass(\"vakata-context-hover\")}).on(\"mouseleave\",function(){t(this).find(\".vakata-context-hover\").removeClass(\"vakata-context-hover\"),t.vakata.context.settings.hide_onmouseleave&&(i=setTimeout(function(){return function(){t.vakata.context.hide()}}(this),t.vakata.context.settings.hide_onmouseleave))}).on(\"click\",\"a\",function(t){t.preventDefault()}).on(\"mouseup\",\"a\",function(){t(this).blur().parent().hasClass(\"vakata-context-disabled\")||t.vakata.context._execute(t(this).attr(\"rel\"))===!1||t.vakata.context.hide()}).on(\"keydown\",\"a\",function(e){var i=null;switch(e.which){case 13:case 32:e.type=\"mouseup\",e.preventDefault(),t(e.currentTarget).trigger(e);break;case 37:n.is_visible&&(n.element.find(\".vakata-context-hover\").last().parents(\"li:eq(0)\").find(\"ul\").hide().find(\".vakata-context-hover\").removeClass(\"vakata-context-hover\").end().end().children(\"a\").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 38:n.is_visible&&(i=n.element.find(\"ul:visible\").addBack().last().children(\".vakata-context-hover\").removeClass(\"vakata-context-hover\").prevAll(\"li:not(.vakata-context-separator)\").first(),i.length||(i=n.element.find(\"ul:visible\").addBack().last().children(\"li:not(.vakata-context-separator)\").last()),i.addClass(\"vakata-context-hover\").children(\"a\").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 39:n.is_visible&&(n.element.find(\".vakata-context-hover\").last().children(\"ul\").show().children(\"li:not(.vakata-context-separator)\").removeClass(\"vakata-context-hover\").first().addClass(\"vakata-context-hover\").children(\"a\").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 40:n.is_visible&&(i=n.element.find(\"ul:visible\").addBack().last().children(\".vakata-context-hover\").removeClass(\"vakata-context-hover\").nextAll(\"li:not(.vakata-context-separator)\").first(),i.length||(i=n.element.find(\"ul:visible\").addBack().last().children(\"li:not(.vakata-context-separator)\").first()),i.addClass(\"vakata-context-hover\").children(\"a\").focus(),e.stopImmediatePropagation(),e.preventDefault());break;case 27:t.vakata.context.hide(),e.preventDefault()}}).on(\"keydown\",function(t){t.preventDefault();var e=n.element.find(\".vakata-contextmenu-shortcut-\"+t.which).parent();e.parent().not(\".vakata-context-disabled\")&&e.mouseup()}).appendTo(\"body\"),t(document).on(\"mousedown\",function(e){n.is_visible&&!t.contains(n.element[0],e.target)&&t.vakata.context.hide()}).on(\"context_show.vakata\",function(){n.element.find(\"li:has(ul)\").children(\"a\").addClass(\"vakata-context-parent\"),e&&n.element.addClass(\"vakata-context-rtl\").css(\"direction\",\"rtl\"),n.element.find(\"ul\").hide().end()})})}(t),t.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0},t.jstree.plugins.dnd=function(e,n){this.bind=function(){n.bind.call(this),this.element.on(\"mousedown touchstart\",\".jstree-anchor\",t.proxy(function(e){var n=this.get_node(e.target),i=this.is_selected(n)?this.get_selected().length:1;return n&&n.id&&\"#\"!==n.id&&(1===e.which||\"touchstart\"===e.type)&&(this.settings.dnd.is_draggable===!0||t.isFunction(this.settings.dnd.is_draggable)&&this.settings.dnd.is_draggable.call(this,n))?(this.element.trigger(\"mousedown.jstree\"),t.vakata.dnd.start(e,{jstree:!0,origin:this,obj:this.get_node(n,!0),nodes:i>1?this.get_selected():[n.id]},'<div id=\"jstree-dnd\" class=\"jstree-'+this.get_theme()+'\"><i class=\"jstree-icon jstree-er\"></i>'+(i>1?i+\" \"+this.get_string(\"nodes\"):this.get_text(e.currentTarget,!0))+'<ins class=\"jstree-copy\" style=\"display:none;\">+</ins></div>')):void 0},this))}},t(function(){var e=!1,n=!1,i=!1,r=t('<div id=\"jstree-marker\">&#160;</div>').hide().appendTo(\"body\");t(document).bind(\"dnd_start.vakata\",function(){e=!1}).bind(\"dnd_move.vakata\",function(o,s){if(i&&clearTimeout(i),s.data.jstree&&(!s.event.target.id||\"jstree-marker\"!==s.event.target.id)){var a,l,c,u,h,p,d,f,_,g,m,y,v=t.jstree.reference(s.event.target),b=!1,w=!1,x=!1;if(v&&v._data&&v._data.dnd)if(r.attr(\"class\",\"jstree-\"+v.get_theme()),s.helper.children().attr(\"class\",\"jstree-\"+v.get_theme()).find(\".jstree-copy:eq(0)\")[s.data.origin&&s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey)?\"show\":\"hide\"](),s.event.target!==v.element[0]&&s.event.target!==v.get_container_ul()[0]||0!==v.get_container_ul().children().length){if(b=t(s.event.target).closest(\"a\"),b&&b.length&&b.parent().is(\".jstree-closed, .jstree-open, .jstree-leaf\")&&(w=b.offset(),x=s.event.pageY-w.top,c=b.height(),p=c/3>x?[\"b\",\"i\",\"a\"]:x>c-c/3?[\"a\",\"i\",\"b\"]:x>c/2?[\"i\",\"a\",\"b\"]:[\"i\",\"b\",\"a\"],t.each(p,function(o,x){switch(x){case\"b\":a=w.left-6,l=w.top-5,u=v.get_parent(b),h=b.parent().index();break;case\"i\":a=w.left-2,l=w.top-5+c/2+1,u=b.parent(),h=0;break;case\"a\":a=w.left-6,l=w.top-5+c,u=v.get_parent(b),h=b.parent().index()+1}for(d=!0,f=0,_=s.data.nodes.length;_>f;f++)if(g=s.data.origin&&s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey)?\"copy_node\":\"move_node\",m=h,\"move_node\"===g&&\"a\"===x&&s.data.origin&&s.data.origin===v&&u===v.get_parent(s.data.nodes[f])&&(y=v.get_node(u),m>t.inArray(s.data.nodes[f],y.children)&&(m-=1)),d=d&&(v&&v.settings&&v.settings.dnd&&v.settings.dnd.check_while_dragging===!1||v.check(g,s.data.origin&&s.data.origin!==v?s.data.origin.get_node(s.data.nodes[f]):s.data.nodes[f],u,m)),!d){v&&v.last_error&&(n=v.last_error());break}return d?(\"i\"===x&&b.parent().is(\".jstree-closed\")&&v.settings.dnd.open_timeout&&(i=setTimeout(function(t,e){return function(){t.open_node(e)}}(v,b),v.settings.dnd.open_timeout)),e={ins:v,par:u,pos:h},r.css({left:a+\"px\",top:l+\"px\"}).show(),s.helper.find(\".jstree-icon:eq(0)\").removeClass(\"jstree-er\").addClass(\"jstree-ok\"),n={},p=!0,!1):void 0}),p===!0))return}else{for(d=!0,f=0,_=s.data.nodes.length;_>f&&(d=d&&v.check(s.data.origin&&s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey)?\"copy_node\":\"move_node\",s.data.origin&&s.data.origin!==v?s.data.origin.get_node(s.data.nodes[f]):s.data.nodes[f],\"#\",\"last\"),d);f++);if(d)return e={ins:v,par:\"#\",pos:\"last\"},r.hide(),void s.helper.find(\".jstree-icon:eq(0)\").removeClass(\"jstree-er\").addClass(\"jstree-ok\")}e=!1,s.helper.find(\".jstree-icon\").removeClass(\"jstree-ok\").addClass(\"jstree-er\"),r.hide()}}).bind(\"dnd_scroll.vakata\",function(t,n){n.data.jstree&&(r.hide(),e=!1,n.helper.find(\".jstree-icon:eq(0)\").removeClass(\"jstree-ok\").addClass(\"jstree-er\"))}).bind(\"dnd_stop.vakata\",function(o,s){if(i&&clearTimeout(i),s.data.jstree){r.hide();var a,l,c=[];if(e){for(a=0,l=s.data.nodes.length;l>a;a++)c[a]=s.data.origin?s.data.origin.get_node(s.data.nodes[a]):s.data.nodes[a];e.ins[s.data.origin&&s.data.origin.settings.dnd.copy&&(s.event.metaKey||s.event.ctrlKey)?\"copy_node\":\"move_node\"](c,e.par,e.pos)}else a=t(s.event.target).closest(\".jstree\"),a.length&&n&&n.error&&\"check\"===n.error&&(a=a.jstree(!0),a&&a.settings.core.error.call(this,n))}}).bind(\"keyup keydown\",function(e,n){n=t.vakata.dnd._get(),n.data&&n.data.jstree&&n.helper.find(\".jstree-copy:eq(0)\")[n.data.origin&&n.data.origin.settings.dnd.copy&&(e.metaKey||e.ctrlKey)?\"show\":\"hide\"]()})}),function(t){t.fn.vakata_reverse=[].reverse;var e={element:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1};t.vakata.dnd={settings:{scroll_speed:10,scroll_proximity:20,helper_left:5,helper_top:10,threshold:5},_trigger:function(e,n){var i=t.vakata.dnd._get();i.event=n,t(document).triggerHandler(\"dnd_\"+e+\".vakata\",i)},_get:function(){return{data:e.data,element:e.element,helper:e.helper}},_clean:function(){e.helper&&e.helper.remove(),e.scroll_i&&(clearInterval(e.scroll_i),e.scroll_i=!1),e={element:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1},t(document).off(\"mousemove touchmove\",t.vakata.dnd.drag),t(document).off(\"mouseup touchend\",t.vakata.dnd.stop)},_scroll:function(n){if(!e.scroll_e||!e.scroll_l&&!e.scroll_t)return e.scroll_i&&(clearInterval(e.scroll_i),e.scroll_i=!1),!1;if(!e.scroll_i)return e.scroll_i=setInterval(t.vakata.dnd._scroll,100),!1;if(n===!0)return!1;var i=e.scroll_e.scrollTop(),r=e.scroll_e.scrollLeft();e.scroll_e.scrollTop(i+e.scroll_t*t.vakata.dnd.settings.scroll_speed),e.scroll_e.scrollLeft(r+e.scroll_l*t.vakata.dnd.settings.scroll_speed),(i!==e.scroll_e.scrollTop()||r!==e.scroll_e.scrollLeft())&&t.vakata.dnd._trigger(\"scroll\",e.scroll_e)},start:function(n,i,r){\"touchstart\"===n.type&&n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]&&(n.pageX=n.originalEvent.changedTouches[0].pageX,n.pageY=n.originalEvent.changedTouches[0].pageY,n.target=document.elementFromPoint(n.originalEvent.changedTouches[0].pageX-window.pageXOffset,n.originalEvent.changedTouches[0].pageY-window.pageYOffset)),e.is_drag&&t.vakata.dnd.stop({});try{n.currentTarget.unselectable=\"on\",n.currentTarget.onselectstart=function(){return!1},n.currentTarget.style&&(n.currentTarget.style.MozUserSelect=\"none\")}catch(o){}return e.init_x=n.pageX,e.init_y=n.pageY,e.data=i,e.is_down=!0,e.element=n.currentTarget,r!==!1&&(e.helper=t(\"<div id='vakata-dnd'></div>\").html(r).css({display:\"block\",margin:\"0\",padding:\"0\",position:\"absolute\",top:\"-2000px\",lineHeight:\"16px\",zIndex:\"10000\"})),t(document).bind(\"mousemove touchmove\",t.vakata.dnd.drag),t(document).bind(\"mouseup touchend\",t.vakata.dnd.stop),!1},drag:function(n){if(\"touchmove\"===n.type&&n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]&&(n.pageX=n.originalEvent.changedTouches[0].pageX,n.pageY=n.originalEvent.changedTouches[0].pageY,n.target=document.elementFromPoint(n.originalEvent.changedTouches[0].pageX-window.pageXOffset,n.originalEvent.changedTouches[0].pageY-window.pageYOffset)),e.is_down){if(!e.is_drag){if(!(Math.abs(n.pageX-e.init_x)>t.vakata.dnd.settings.threshold||Math.abs(n.pageY-e.init_y)>t.vakata.dnd.settings.threshold))return;e.helper&&(e.helper.appendTo(\"body\"),e.helper_w=e.helper.outerWidth()),e.is_drag=!0,t.vakata.dnd._trigger(\"start\",n)}var i=!1,r=!1,o=!1,s=!1,a=!1,l=!1,c=!1,u=!1,h=!1,p=!1;e.scroll_t=0,e.scroll_l=0,e.scroll_e=!1,t(n.target).parentsUntil(\"body\").addBack().vakata_reverse().filter(function(){return/^auto|scroll$/.test(t(this).css(\"overflow\"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)}).each(function(){var i=t(this),r=i.offset();return this.scrollHeight>this.offsetHeight&&(r.top+i.height()-n.pageY<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_t=1),n.pageY-r.top<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_t=-1)),this.scrollWidth>this.offsetWidth&&(r.left+i.width()-n.pageX<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_l=1),n.pageX-r.left<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_l=-1)),e.scroll_t||e.scroll_l?(e.scroll_e=t(this),!1):void 0}),e.scroll_e||(i=t(document),r=t(window),o=i.height(),s=r.height(),a=i.width(),l=r.width(),c=i.scrollTop(),u=i.scrollLeft(),o>s&&n.pageY-c<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_t=-1),o>s&&s-(n.pageY-c)<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_t=1),a>l&&n.pageX-u<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_l=-1),a>l&&l-(n.pageX-u)<t.vakata.dnd.settings.scroll_proximity&&(e.scroll_l=1),(e.scroll_t||e.scroll_l)&&(e.scroll_e=i)),e.scroll_e&&t.vakata.dnd._scroll(!0),e.helper&&(h=parseInt(n.pageY+t.vakata.dnd.settings.helper_top,10),p=parseInt(n.pageX+t.vakata.dnd.settings.helper_left,10),o&&h+25>o&&(h=o-50),a&&p+e.helper_w>a&&(p=a-(e.helper_w+2)),e.helper.css({left:p+\"px\",top:h+\"px\"})),t.vakata.dnd._trigger(\"move\",n)}},stop:function(n){\"touchend\"===n.type&&n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]&&(n.pageX=n.originalEvent.changedTouches[0].pageX,n.pageY=n.originalEvent.changedTouches[0].pageY,n.target=document.elementFromPoint(n.originalEvent.changedTouches[0].pageX-window.pageXOffset,n.originalEvent.changedTouches[0].pageY-window.pageYOffset)),e.is_drag&&t.vakata.dnd._trigger(\"stop\",n),t.vakata.dnd._clean()}}}(jQuery),t.jstree.defaults.search={ajax:!1,fuzzy:!0,case_sensitive:!1,show_only_matches:!1,close_opened_onclear:!0},t.jstree.plugins.search=function(e,n){this.bind=function(){n.bind.call(this),this._data.search.str=\"\",this._data.search.dom=t(),this._data.search.res=[],this._data.search.opn=[],this._data.search.sln=null,this.settings.search.show_only_matches&&this.element.on(\"search.jstree\",function(e,n){n.nodes.length&&(t(this).find(\"li\").hide().filter(\".jstree-last\").filter(function(){return this.nextSibling}).removeClass(\"jstree-last\"),n.nodes.parentsUntil(\".jstree\").addBack().show().filter(\"ul\").each(function(){t(this).children(\"li:visible\").eq(-1).addClass(\"jstree-last\")}))}).on(\"clear_search.jstree\",function(e,n){n.nodes.length&&t(this).find(\"li\").css(\"display\",\"\").filter(\".jstree-last\").filter(function(){return this.nextSibling}).removeClass(\"jstree-last\")})},this.search=function(e,n){if(e===!1||\"\"===t.trim(e))return this.clear_search();var i,r,o=this.settings.search,s=o.ajax?t.extend({},o.ajax):!1,a=null,l=[],c=[];if(this._data.search.res.length&&this.clear_search(),!n&&s!==!1)return s.data||(s.data={}),s.data.str=e,t.ajax(s).fail(t.proxy(function(){this._data.core.last_error={error:\"ajax\",plugin:\"search\",id:\"search_01\",reason:\"Could not load search parents\",data:JSON.stringify(s)},this.settings.core.error.call(this,this._data.core.last_error)},this)).done(t.proxy(function(n){n&&n.d&&(n=n.d),this._data.search.sln=t.isArray(n)?n:[],this._search_load(e)},this));if(this._data.search.str=e,this._data.search.dom=t(),this._data.search.res=[],this._data.search.opn=[],a=new t.vakata.search(e,!0,{caseSensitive:o.case_sensitive,fuzzy:o.fuzzy}),t.each(this._model.data,function(t,e){e.text&&a.search(e.text).isMatch&&(l.push(t),c=c.concat(e.parents))}),l.length){for(c=t.vakata.array_unique(c),this._search_open(c),i=0,r=l.length;r>i;i++)a=this.get_node(l[i],!0),a&&(this._data.search.dom=this._data.search.dom.add(a));this._data.search.res=l,this._data.search.dom.children(\".jstree-anchor\").addClass(\"jstree-search\")}this.trigger(\"search\",{nodes:this._data.search.dom,str:e,res:this._data.search.res})},this.clear_search=function(){this._data.search.dom.children(\".jstree-anchor\").removeClass(\"jstree-search\"),this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0),this.trigger(\"clear_search\",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res}),this._data.search.str=\"\",this._data.search.res=[],this._data.search.opn=[],this._data.search.dom=t()},this._search_open=function(e){var n=this;t.each(e.concat([]),function(t,i){i=document.getElementById(i),i&&n.is_closed(i)&&(n._data.search.opn.push(i.id),n.open_node(i,function(){n._search_open(e)},0))})},this._search_load=function(e){var n=!0,i=this,r=i._model.data;t.isArray(this._data.search.sln)&&(this._data.search.sln.length?(t.each(this._data.search.sln,function(o,s){r[s]&&(t.vakata.array_remove_item(i._data.search.sln,s),r[s].state.loaded||(i.load_node(s,function(t,n){n&&i._search_load(e)}),n=!1))}),n&&(this._data.search.sln=[],this._search_load(e))):(this._data.search.sln=null,this.search(e,!0)))}},function(t){t.vakata.search=function(t,e,n){n=n||{},n.fuzzy!==!1&&(n.fuzzy=!0),t=n.caseSensitive?t:t.toLowerCase();var i,r,o,s,a=n.location||0,l=n.distance||100,c=n.threshold||.6,u=t.length;return u>32&&(n.fuzzy=!1),n.fuzzy&&(i=1<<u-1,r=function(){var e={},n=0;for(n=0;u>n;n++)e[t.charAt(n)]=0;for(n=0;u>n;n++)e[t.charAt(n)]|=1<<u-n-1;return e}(),o=function(t,e){var n=t/u,i=Math.abs(a-e);return l?n+i/l:i?1:n}),s=function(e){if(e=n.caseSensitive?e:e.toLowerCase(),t===e||-1!==e.indexOf(t))return{isMatch:!0,score:0};if(!n.fuzzy)return{isMatch:!1,score:1};var s,l,h,p,d,f,_,g,m,y=e.length,v=c,b=e.indexOf(t,a),w=u+y,x=1,k=[];for(-1!==b&&(v=Math.min(o(0,b),v),b=e.lastIndexOf(t,a+u),-1!==b&&(v=Math.min(o(0,b),v))),b=-1,s=0;u>s;s++){for(h=0,p=w;p>h;)o(s,a+p)<=v?h=p:w=p,p=Math.floor((w-h)/2+h);for(w=p,f=Math.max(1,a-p+1),_=Math.min(a+p,y)+u,g=new Array(_+2),g[_+1]=(1<<s)-1,l=_;l>=f;l--)if(m=r[e.charAt(l-1)],g[l]=0===s?(g[l+1]<<1|1)&m:(g[l+1]<<1|1)&m|((d[l+1]|d[l])<<1|1)|d[l+1],g[l]&i&&(x=o(s,l-1),v>=x)){if(v=x,b=l-1,k.push(b),!(b>a))break;f=Math.max(1,2*a-b)}if(o(s+1,a)>v)break;d=g}return{isMatch:b>=0,score:x}},e===!0?{search:s}:s(e)}}(jQuery),t.jstree.defaults.sort=function(t,e){return this.get_text(t)>this.get_text(e)?1:-1},t.jstree.plugins.sort=function(e,n){this.bind=function(){n.bind.call(this),this.element.on(\"model.jstree\",t.proxy(function(t,e){this.sort(e.parent,!0)},this)).on(\"rename_node.jstree create_node.jstree\",t.proxy(function(t,e){this.sort(e.parent||e.node.parent,!1),this.redraw_node(e.parent||e.node.parent,!0)},this)).on(\"move_node.jstree copy_node.jstree\",t.proxy(function(t,e){this.sort(e.parent,!1),this.redraw_node(e.parent,!0)},this))},this.sort=function(e,n){var i,r;if(e=this.get_node(e),e&&e.children&&e.children.length&&(e.children.sort(t.proxy(this.settings.sort,this)),n))for(i=0,r=e.children_d.length;r>i;i++)this.sort(e.children_d[i],!1)}};var d=!1;t.jstree.defaults.state={key:\"jstree\",events:\"changed.jstree open_node.jstree close_node.jstree\",ttl:!1,filter:!1},t.jstree.plugins.state=function(e,n){this.bind=function(){n.bind.call(this);\n",
" var e=t.proxy(function(){this.element.on(this.settings.state.events,t.proxy(function(){d&&clearTimeout(d),d=setTimeout(t.proxy(function(){this.save_state()},this),100)},this))},this);this.element.on(\"ready.jstree\",t.proxy(function(){this.element.one(\"restore_state.jstree\",e),this.restore_state()||e()},this))},this.save_state=function(){var e={state:this.get_state(),ttl:this.settings.state.ttl,sec:+new Date};t.vakata.storage.set(this.settings.state.key,JSON.stringify(e))},this.restore_state=function(){var e=t.vakata.storage.get(this.settings.state.key);if(e)try{e=JSON.parse(e)}catch(n){return!1}return e&&e.ttl&&e.sec&&+new Date-e.sec>e.ttl?!1:(e&&e.state&&(e=e.state),e&&t.isFunction(this.settings.state.filter)&&(e=this.settings.state.filter.call(this,e)),e?(this.element.one(\"set_state.jstree\",function(n,i){i.instance.trigger(\"restore_state\",{state:t.extend(!0,{},e)})}),this.set_state(e),!0):!1)},this.clear_state=function(){return t.vakata.storage.del(this.settings.state.key)}},function(t){t.vakata.storage={set:function(t,e){return window.localStorage.setItem(t,e)},get:function(t){return window.localStorage.getItem(t)},del:function(t){return window.localStorage.removeItem(t)}}}(jQuery),t.jstree.defaults.types={\"#\":{},\"default\":{}},t.jstree.plugins.types=function(n,i){this.init=function(t,n){var r,o;if(n&&n.types&&n.types[\"default\"])for(r in n.types)if(\"default\"!==r&&\"#\"!==r&&n.types.hasOwnProperty(r))for(o in n.types[\"default\"])n.types[\"default\"].hasOwnProperty(o)&&n.types[r][o]===e&&(n.types[r][o]=n.types[\"default\"][o]);i.init.call(this,t,n),this._model.data[\"#\"].type=\"#\"},this.bind=function(){i.bind.call(this),this.element.on(\"model.jstree\",t.proxy(function(t,n){var i,r,o=this._model.data,s=n.nodes,a=this.settings.types,l=\"default\";for(i=0,r=s.length;r>i;i++)l=\"default\",o[s[i]].original&&o[s[i]].original.type&&a[o[s[i]].original.type]&&(l=o[s[i]].original.type),o[s[i]].data&&o[s[i]].data.jstree&&o[s[i]].data.jstree.type&&a[o[s[i]].data.jstree.type]&&(l=o[s[i]].data.jstree.type),o[s[i]].type=l,o[s[i]].icon===!0&&a[l].icon!==e&&(o[s[i]].icon=a[l].icon)},this))},this.get_json=function(e,n,r){var o,s,a=this._model.data,l=n?t.extend(!0,{},n,{no_id:!1}):{},c=i.get_json.call(this,e,l,r);if(c===!1)return!1;if(t.isArray(c))for(o=0,s=c.length;s>o;o++)c[o].type=c[o].id&&a[c[o].id]&&a[c[o].id].type?a[c[o].id].type:\"default\",n&&n.no_id&&(delete c[o].id,c[o].li_attr&&c[o].li_attr.id&&delete c[o].li_attr.id);else c.type=c.id&&a[c.id]&&a[c.id].type?a[c.id].type:\"default\",n&&n.no_id&&(c=this._delete_ids(c));return c},this._delete_ids=function(e){if(t.isArray(e)){for(var n=0,i=e.length;i>n;n++)e[n]=this._delete_ids(e[n]);return e}return delete e.id,e.li_attr&&e.li_attr.id&&delete e.li_attr.id,e.children&&t.isArray(e.children)&&(e.children=this._delete_ids(e.children)),e},this.check=function(n,r,o,s){if(i.check.call(this,n,r,o,s)===!1)return!1;r=r&&r.id?r:this.get_node(r),o=o&&o.id?o:this.get_node(o);var a,l,c,u,h=r&&r.id?t.jstree.reference(r.id):null;switch(h=h&&h._model&&h._model.data?h._model.data:null,n){case\"create_node\":case\"move_node\":case\"copy_node\":if(\"move_node\"!==n||-1===t.inArray(r.id,o.children)){if(a=this.get_rules(o),a.max_children!==e&&-1!==a.max_children&&a.max_children===o.children.length)return this._data.core.last_error={error:\"check\",plugin:\"types\",id:\"types_01\",reason:\"max_children prevents function: \"+n,data:JSON.stringify({chk:n,pos:s,obj:r&&r.id?r.id:!1,par:o&&o.id?o.id:!1})},!1;if(a.valid_children!==e&&-1!==a.valid_children&&-1===t.inArray(r.type,a.valid_children))return this._data.core.last_error={error:\"check\",plugin:\"types\",id:\"types_02\",reason:\"valid_children prevents function: \"+n,data:JSON.stringify({chk:n,pos:s,obj:r&&r.id?r.id:!1,par:o&&o.id?o.id:!1})},!1;if(h&&r.children_d&&r.parents){for(l=0,c=0,u=r.children_d.length;u>c;c++)l=Math.max(l,h[r.children_d[c]].parents.length);l=l-r.parents.length+1}(0>=l||l===e)&&(l=1);do{if(a.max_depth!==e&&-1!==a.max_depth&&a.max_depth<l)return this._data.core.last_error={error:\"check\",plugin:\"types\",id:\"types_03\",reason:\"max_depth prevents function: \"+n,data:JSON.stringify({chk:n,pos:s,obj:r&&r.id?r.id:!1,par:o&&o.id?o.id:!1})},!1;o=this.get_node(o.parent),a=this.get_rules(o),l++}while(o)}}return!0},this.get_rules=function(t){if(t=this.get_node(t),!t)return!1;var n=this.get_type(t,!0);return n.max_depth===e&&(n.max_depth=-1),n.max_children===e&&(n.max_children=-1),n.valid_children===e&&(n.valid_children=-1),n},this.get_type=function(e,n){return e=this.get_node(e),e?n?t.extend({type:e.type},this.settings.types[e.type]):e.type:!1},this.set_type=function(n,i){var r,o,s,a,l;if(t.isArray(n)){for(n=n.slice(),o=0,s=n.length;s>o;o++)this.set_type(n[o],i);return!0}return r=this.settings.types,n=this.get_node(n),r[i]&&n?(a=n.type,l=this.get_icon(n),n.type=i,(l===!0||r[a]&&r[a].icon&&l===r[a].icon)&&this.set_icon(n,r[i].icon!==e?r[i].icon:!0),!0):!1}},t.jstree.plugins.unique=function(e,n){this.check=function(e,i,r,o){if(n.check.call(this,e,i,r,o)===!1)return!1;if(i=i&&i.id?i:this.get_node(i),r=r&&r.id?r:this.get_node(r),!r||!r.children)return!0;var s,a,l=\"rename_node\"===e?o:i.text,c=[],u=this._model.data;for(s=0,a=r.children.length;a>s;s++)c.push(u[r.children[s]].text);switch(e){case\"delete_node\":return!0;case\"rename_node\":case\"copy_node\":return s=-1===t.inArray(l,c),s||(this._data.core.last_error={error:\"check\",plugin:\"unique\",id:\"unique_01\",reason:\"Child with name \"+l+\" already exists. Preventing: \"+e,data:JSON.stringify({chk:e,pos:o,obj:i&&i.id?i.id:!1,par:r&&r.id?r.id:!1})}),s;case\"move_node\":return s=i.parent===r.id||-1===t.inArray(l,c),s||(this._data.core.last_error={error:\"check\",plugin:\"unique\",id:\"unique_01\",reason:\"Child with name \"+l+\" already exists. Preventing: \"+e,data:JSON.stringify({chk:e,pos:o,obj:i&&i.id?i.id:!1,par:r&&r.id?r.id:!1})}),s}return!0}};var f=document.createElement(\"DIV\");f.setAttribute(\"unselectable\",\"on\"),f.className=\"jstree-wholerow\",f.innerHTML=\"&#160;\",t.jstree.plugins.wholerow=function(e,n){this.bind=function(){n.bind.call(this),this.element.on(\"loading\",t.proxy(function(){f.style.height=this._data.core.li_height+\"px\"},this)).on(\"ready.jstree set_state.jstree\",t.proxy(function(){this.hide_dots()},this)).on(\"ready.jstree\",t.proxy(function(){this.get_container_ul().addClass(\"jstree-wholerow-ul\")},this)).on(\"deselect_all.jstree\",t.proxy(function(){this.element.find(\".jstree-wholerow-clicked\").removeClass(\"jstree-wholerow-clicked\")},this)).on(\"changed.jstree\",t.proxy(function(t,e){this.element.find(\".jstree-wholerow-clicked\").removeClass(\"jstree-wholerow-clicked\");var n,i,r=!1;for(n=0,i=e.selected.length;i>n;n++)r=this.get_node(e.selected[n],!0),r&&r.length&&r.children(\".jstree-wholerow\").addClass(\"jstree-wholerow-clicked\")},this)).on(\"open_node.jstree\",t.proxy(function(t,e){this.get_node(e.node,!0).find(\".jstree-clicked\").parent().children(\".jstree-wholerow\").addClass(\"jstree-wholerow-clicked\")},this)).on(\"hover_node.jstree dehover_node.jstree\",t.proxy(function(t,e){this.get_node(e.node,!0).children(\".jstree-wholerow\")[\"hover_node\"===t.type?\"addClass\":\"removeClass\"](\"jstree-wholerow-hovered\")},this)).on(\"contextmenu.jstree\",\".jstree-wholerow\",t.proxy(function(e){e.preventDefault(),t(e.currentTarget).closest(\"li\").children(\"a:eq(0)\").trigger(\"contextmenu\",e)},this)).on(\"click.jstree\",\".jstree-wholerow\",function(e){e.stopImmediatePropagation();var n=t.Event(\"click\",{metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey});t(e.currentTarget).closest(\"li\").children(\"a:eq(0)\").trigger(n).focus()}).on(\"click.jstree\",\".jstree-leaf > .jstree-ocl\",t.proxy(function(e){e.stopImmediatePropagation();var n=t.Event(\"click\",{metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey});t(e.currentTarget).closest(\"li\").children(\"a:eq(0)\").trigger(n).focus()},this)).on(\"mouseover.jstree\",\".jstree-wholerow, .jstree-icon\",t.proxy(function(t){return t.stopImmediatePropagation(),this.hover_node(t.currentTarget),!1},this)).on(\"mouseleave.jstree\",\".jstree-node\",t.proxy(function(t){this.dehover_node(t.currentTarget)},this))},this.teardown=function(){this.settings.wholerow&&this.element.find(\".jstree-wholerow\").remove(),n.teardown.call(this)},this.redraw_node=function(e,i,r){if(e=n.redraw_node.call(this,e,i,r)){var o=f.cloneNode(!0);-1!==t.inArray(e.id,this._data.core.selected)&&(o.className+=\" jstree-wholerow-clicked\"),e.insertBefore(o,e.childNodes[0])}return e}}}}),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,r=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};i(\"widget/object_explorer\",[\"underscore\",\"jquery\",\"jstree\",\"backbone\",\"common/continuum_view\",\"common/has_properties\",\"common/logging\",\"source/column_data_source\"],function(i,o,s,a,l,c,u,h){var p,d,f,_,g,m,y;return _=u.logger,d=function(s){function a(){return this.createContextMenu=t(this.createContextMenu,this),this.onEvent=t(this.onEvent,this),g=a.__super__.constructor.apply(this,arguments)}return r(a,s),a.prototype.initialize=function(t){return a.__super__.initialize.call(this,t),this.onEvent=i.debounce(this.onEvent,t.debounce||200),this.showToolbar=t.showToolbar||!1,this.arrayLimit=t.arrayLimit||100,this.render()},a.prototype.base=function(){return null==this._base&&(this._base=n(\"common/base\")),this._base},a.prototype.resolve_ref=function(t){return this.base().Collections(t.type).get(t.id)},a.prototype.delegateEvents=function(t){var e,n,r,o,s;for(a.__super__.delegateEvents.call(this,t),o=i.keys(this.base().locations),s=[],n=0,r=o.length;r>n;n++)e=o[n],s.push(this.base().Collections(e).on(\"all\",this.onEvent));return s},a.prototype.onEvent=function(){return this.reRender()},a.prototype.createTree=function(t){var e,n,r,o,s,a,l,c;if(null==t&&(t=!0),o=function(){var t,r,o,a,l=this;for(o=i.keys(this.base().locations),a=[],t=0,r=o.length;r>t;t++)s=o[t],n=this.base().Collections(s),e=n.map(function(t,e){var n;return n={},n[t.id]=1,l.descend(e,t,n)}),a.push(this.node(s,n,null,e));return a}.call(this),t){for(c=[],a=0,l=o.length;l>a;a++)r=o[a],r.children.length>0&&c.push(r);return c}return o},a.prototype.descend=function(t,n,r){var o,s,a,l,u,h,p,d,f,g,m,y,v;return this.isRef(n)&&(f=!0,null==r[n.id]?n=this.base().Collections(n.type).get(n.id):_.info(\"object_explorer:descend Cyclic reference to \"+n.type+\":\"+n.id)),n instanceof c?(r=i.clone(r),r[n.id]=1,a=function(){var t,i;t=n.attributes,i=[];for(s in t)e.call(t,s)&&(y=t[s],this.isAttr(s)&&i.push(this.descend(s,y,r)));return i}.call(this),m=n.type,h=\"object\",y=null,l=null):i.isArray(n)?(g=n.length>this.arrayLimit,o=this.arrayLimit||n.length,a=function(){var t,e,i,o;for(i=n.slice(0,+this.arrayLimit+1||9e9),o=[],p=t=0,e=i.length;e>t;p=++t)y=i[p],o.push(this.descend(p,y,r));return o}.call(this),m=\"Array[\"+n.length+\"]\"+(g?\" (showing first \"+this.arrayLimit+\" items)\":\"\"),h=\"array\",y=null,l=null):i.isObject(n)?(a=function(){var t;t=[];for(d in n)e.call(n,d)&&(y=n[d],t.push(this.descend(d,y,r)));return t}.call(this),m=\"Object[\"+i.keys(n).length+\"]\",h=\"object\",y=null,l=null):(a=[],v=i.isUndefined(n)?[null,\"object\",null,\"orchid\"]:i.isNull(n)?[null,\"object\",null,\"teal\"]:i.isBoolean(n)?[\"Boolean\",\"boolean\",null,\"darkmagenta\"]:i.isNumber(n)?[\"Number\",\"number\",null,\"green\"]:i.isString(n)?[\"String\",\"string\",'\"'+n+'\"',\"firebrick\"]:i.isFunction(n)?[\"Function\",\"function\",null,null]:i.isDate(n)?[\"Date\",\"date\",null,null]:i.isRegExp(n)?[\"RegExp\",\"regexp\",null,null]:i.isElement(n)?[\"Element\",\"domnode\",null,null]:[typeof n,\"object\",null,null],m=v[0],h=v[1],y=v[2],l=v[3],null==y&&(y=\"\"+n),null==l&&(l=\"black\")),u=['<span style=\"color:gray\">'+t+\"</span>\"],null!=m&&(u=u.concat([\": \",'<span style=\"color:blue\">'+m+(f?'<span style=\"color:red\">*</span>':\"\")+\"</span>\"])),null!=y&&(u=u.concat([\" = \",'<span style=\"color:'+l+'\">'+y+\"</span>\"])),this.node(u.join(\"\"),n,h,a)},a.prototype.isRef=function(t){return i.isObject(t)&&(i.isEqual(i.keys(t),[\"id\",\"type\"])||i.isEqual(i.keys(t),[\"type\",\"id\"]))},a.prototype.isAttr=function(t){return t.length>0&&\"_\"!==t[0]},a.prototype.node=function(t,e,n,i,r){return{text:t,data:{obj:e instanceof c?{type:e.type,id:e.id}:null},icon:n?\"bk-icon-type-\"+n:null,children:i||[],state:{open:r||!1}}},a.prototype.renderToolbar=function(){var t,e,n=this;return e=o('<div class=\"bk-bs-btn-group\"></div>'),t=o('<button type=\"button\" class=\"bk-bs-btn bk-bs-btn-default\">Refresh</button>'),t.click(function(){return n.reRender()}),e.append(t),this.showToolbar||e.hide(),e},a.prototype.themeUrl=function(){return null},a.prototype.createContextMenu=function(t){var e,n;return e=t.original,n={}},a.prototype.renderTree=function(){var t,e=this;return t=o(\"<div/>\"),t.on(\"changed.jstree\",function(t,n){var i,r,o,s,a,l;for(l=[],i=s=0,a=n.selected.length;a>=0?a>s:s>a;i=a>=0?++s:--s)o=n.instance.get_node(n.selected[i]).data.ref,null!=o?(r=e.resolve_ref(o),l.push(r instanceof h.Model&&null!=e.mget(\"data_widget\")?e.mget(\"data_widget\").set_obj(\"source\",r):void 0)):l.push(void 0);return l}),t.jstree({core:{data:this.createTree(),themes:{url:this.themeUrl()}},contextmenu:{items:this.createContextMenu},plugins:[\"contextmenu\"]}),t},a.prototype.render=function(){return this.$toolbar=this.renderToolbar(),this.$tree=this.renderTree(),this.$el.append([this.$toolbar,this.$tree])},a.prototype.reRender=function(){return this.$tree.jstree(\"destroy\"),this.$el.empty(),this.render()},a}(l.View),p=function(t){function e(){return m=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.type=\"ObjectExplorer\",e.prototype.default_view=d,e.prototype.defaults=function(){return{data_widget:null}},e}(c),f=function(t){function e(){return y=e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.model=p,e}(a.Collection),{Model:p,Collection:new f,View:d}})}.call(this),function(){var t={}.hasOwnProperty,e=function(e,n){function i(){this.constructor=e}for(var r in n)t.call(n,r)&&(e[r]=n[r]);return i.prototype=n.prototype,e.prototype=new i,e.__super__=n.prototype,e};i(\"tool/object_explorer_tool\",[\"underscore\",\"jquery\",\"bootstrap/modal\",\"backbone\",\"./tool\",\"./event_generators\",\"./object_explorer_tool_template\",\"widget/object_explorer\"],function(t,n,i,r,o,s,a,l){var c,u,h,p,d,f,_;return c=s.ButtonEventGenerator,h=function(t){function i(){return d=i.__super__.constructor.apply(this,arguments)}return e(i,t),i.prototype.initialize=function(t){return i.__super__.initialize.call(this,t)},i.prototype.eventGeneratorClass=c,i.prototype.evgen_options={buttonText:\"Object Explorer\",buttonIcon:\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAJHSURBVEiJvZbPTlNREManQmtSvTvqI7gw4R1cQpP6ABoahKWURxBfgo0ulRfgGYA9lI1dIdEFMSo0sZLY3p+L+514eu85t7dKOskk58838+XMmTNnaoAtUu4tlM3MDLCqpwQ2KMrGPDzREwLLQJKmaU3zB2a2pu1fUjOzNaBpZpamaQ1IgOWZzLm1OrADfAQ6wCOgDfwAJsCudKK1dWGeyeYVUA/y5AmBhsh8+QqMNb4EHksvtTYRxpcdoFFKCCx5ZCOgD9xofgOcAm8UgbrGpzlMX7aOdKmMMAEGAve1tgUcA92Sa+kKs6V5Xz4GQBIl1KV3gN/AN2Azevlx8k3ZjoGOl3ThO9SmC9HJPxCeuPDm1ovPQiFtm9l9MxuZ2X7AYYssY9tAK8C5L9uGMA/zDpx2gQ/e6c4CZKvAoZeJh8BqAHfmJdF7soIxHVKm5ROwl3OyAhxp/4sUra3ksHvy4UuQcET2oJ9QfLhtYa6Ap9Irra3nsHX52OXvE4mWNqRVpAwX9hMJ6QXwOodreSH9LC0L6cWskLqkGQpwF0kzlM9ugVDARHd1C/wEngeclT4L4IVsb4WJVxrPyD2N4/D1xIV5Hr4rbWbWNLPvZvZuXkIzeyvbJl5pKzBrHCveR8B2yam2hXmpebXiTfn3NATOKX5P516iXTPP96SNBtBjWlz1h6yCuA/YVZOxML70mPUBe5uuxRiQtQ2uxbgm+9170lCLMZBttRbDAxSaKODAC7cL2wEVmqiZhJHk+O82sVaV7K5k4Z33H/QTdNyD5wyAAAAAAElFTkSuQmCC\"},i.prototype.toolType=\"ObjectExplorerTool\",i.prototype.tool_events={activated:\"_activated\",deactivated:\"_close_modal\"},i.prototype._activated=function(){var t=this;return this.$modal=n(a({})),this.$object_explorer_view=new l.View({el:this.$modal.find(\".bk-bs-modal-body\")}),n(\"body\").append(this.$modal),this.$modal.on(\"hidden\",function(){return t.plot_view.eventSink.trigger(\"clear_active_tool\")}),this.$modal.modal({show:!0})},i.prototype._close_modal=function(){return this.$modal.remove()},i}(o.View),u=function(t){function n(){return f=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.default_view=h,n.prototype.type=\"ObjectExplorerTool\",n.prototype.display_defaults=function(){return n.__super__.display_defaults.call(this)},n}(o.Model),p=function(t){function n(){return _=n.__super__.constructor.apply(this,arguments)}return e(n,t),n.prototype.model=u,n}(r.Collection),{Model:u,Collection:new p,View:h}})}.call(this),i(\"widget/data_table_template\",[],function(){var t=function(t){var e=function(t){\"undefined\"==typeof t&&null==t&&(t=\"\");var e=new String(t);return e.ecoSafe=!0,e};return function(){var t=[],n=this,i=function(e){\"undefined\"!=typeof e&&null!=e&&t.push(e.ecoSafe?e:n.escape(e))};return function(){var t,n,r,o,s,a,l,c,u,h,p;for(i(e('<table class=\"bk-bs-table bk-bs-table-bordered\">\\n <thead>\\n ')),this.counts&&i(e(\"\\n <th>counts</th>\\n \")),i(e(\"\\n <th>index</th>\\n \")),u=this.columns,r=0,a=u.length;a>r;r++)t=u[r],i(e(\"\\n \")),this.skip[t]||(i(e('\\n <th style=\"white-space: nowrap;\" data-cdx-column=\"')),i(t),i(e('\">\\n <a class=\"pandascolumn\">')),i(t),i(e(\"</a>\\n \")),i(this.sort_ascendings[t]===!0?e('\\n <i class=\"cdx-column-sort fa fa-sort-up\"></i>\\n '):this.sort_ascendings[t]===!1?e('\\n <i class=\"cdx-column-sort fa fa-sort-down\"></i>\\n '):e('\\n <i class=\"cdx-column-sort fa fa-sort\"></i>\\n ')),i(e(\"\\n </th>\\n \"))),i(e(\"\\n \"));for(i(e(\"\\n </thead>\\n \")),h=_.range(this.length),o=0,l=h.length;l>o;o++){for(n=h[o],i(e('\\n <tr class=\"pandasrow\" rownum=\"')),i(n),i(e('\">\\n ')),this.selected&&this.selected[n]?(i(e('\\n <td style=\"background-color:')),i(this.colors[n]),i(e('\">\\n ')),i(this.selected[n]),i(e(\"/\")),i(this.counts[n]),i(e(\"\\n </td>\\n \"))):(i(e(\"\\n <td> \")),i(this.counts[n]),i(e(\" </td>\\n \"))),i(e(\"\\n <td> \")),i(this.index[n]),i(e(\" </td>\\n \")),p=this.columns,s=0,c=p.length;c>s;s++)t=p[s],i(e(\"\\n \")),this.skip[t]||(i(e(\"\\n <td> \")),i(this.data[t][n]),i(e(\" </td>\\n \"))),i(e(\"\\n \"));i(e(\"\\n </tr>\\n \"))}i(e('\\n</table>\\n<form>\\n <center>\\n <ul class=\"pagination\">\\n <li><a href=\"javascript://\" class=\"cdx-go-first\">First</a></li>\\n <li><a href=\"javascript://\" class=\"cdx-go-prev\">Previous</a></li>\\n <li><a href=\"javascript://\" class=\"cdx-go-next\">Next</a></li>\\n <li><a href=\"javascript://\" class=\"cdx-go-last\">Last</a></li>\\n </ul>\\n <div class=\"paginatedisplay\">\\n Show <input type=\"text\" class=\"pandassize\" value=\"')),i(this.length),i(e('\"> records\\n From <input type=\"text\" class=\"pandasoffset\" value=\"')),i(this.offset),i(e('\">\\n to ')),i(this.length+this.offset),i(e(\" -\\n Total: \")),i(this.totallength),i(e(\"\\n </div>\\n </center>\\n</form>\\n\"))}.call(this),t.join(\"\")}.call(function(){var n,i={escape:function(t){return(\"\"+t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")},safe:e};for(n in t)i[n]=t[n];return i}())};return t}),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},e={}.hasOwnProperty,n=function(t,n){function i(){this.constructor=t}for(var r in n)e.call(n,r)&&(t[r]=n[r]);return i.prototype=n.prototype,t.prototype=new i,t.__super__=n.prototype,t};i(\"widget/data_table\",[\"underscore\",\"backbone\",\"common/has_parent\",\"common/continuum_view\",\"./data_table_template\"],function(e,i,r,o,s){var a,l,c,u,h,p,d;return u=13,l=function(i){function r(){return this.colors=t(this.colors,this),this.go_last=t(this.go_last,this),this.go_next=t(this.go_next,this),this.go_prev=t(this.go_prev,this),this.go_first=t(this.go_first,this),this.toggle_more_controls=t(this.toggle_more_controls,this),this.sort=t(this.sort,this),this.rowclick=t(this.rowclick,this),this.toggle_filterselected=t(this.toggle_filterselected,this),this.clearselected=t(this.clearselected,this),this.computedtxtbox=t(this.computedtxtbox,this),this.column_del=t(this.column_del,this),this.search=t(this.search,this),h=r.__super__.constructor.apply(this,arguments)}return n(r,i),r.prototype.template=s,r.prototype.initialize=function(t){return r.__super__.initialize.call(this,t),this.listenTo(this.model,\"destroy\",this.remove),this.listenTo(this.model,\"change\",this.render),this.render()},r.prototype.events={\"keyup .pandasgroup\":\"pandasgroup\",\"keyup .pandasoffset\":\"pandasoffset\",\"keyup .pandassize\":\"pandassize\",\"change .pandasagg\":\"pandasagg\",\"click .cdx-go-first\":\"go_first\",\"click .cdx-go-prev\":\"go_prev\",\"click .cdx-go-next\":\"go_next\",\"click .cdx-go-last\":\"go_last\",\"click .controlsmore\":\"toggle_more_controls\",\"click .cdx-column-sort\":\"sort\",\"click .pandasrow\":\"rowclick\",\"click .filterselected\":\"toggle_filterselected\",\"click .clearselected\":\"clearselected\",\"keyup .computedtxtbox\":\"computedtxtbox\",\"click .column_del\":\"column_del\",\"keyup .search\":\"search\"},r.prototype.search=function(t){var e,n;return t.keyCode===u?(e=$(t.currentTarget).val(),n=this.model.get(\"source\"),n.rpc(\"search\",[e]),t.preventDefault()):void 0},r.prototype.column_del=function(t){var n,i,r,o;return o=this.model.get(\"source\"),r=o.get(\"computed_columns\"),i=$(t.currentTarget).attr(\"name\"),n=e.filter(r,function(t){return t.name!==i}),o.rpc(\"set_computed_columns\",[n])},r.prototype.computedtxtbox=function(t){var e,n,i,r;return t.keyCode===u?(n=this.$(\".computedname\").val(),e=this.$(\".computedtxtbox\").val(),r=this.model.get(\"source\"),i=r.get(\"computed_columns\"),i.push({name:n,code:e}),r.rpc(\"set_computed_columns\",[i]),t.preventDefault()):void 0},r.prototype.clearselected=function(){return this.model.rpc(\"setselect\",[[]])},r.prototype.toggle_filterselected=function(){var t;return t=this.$(\".filterselected\").is(\":checked\"),this.mset(\"filterselected\",t),this.model.save()},r.prototype.rowclick=function(t){var n,i,r,o,s,a,l,c,u,h;return i=this.counts(),h=this.selected(),a=function(){var t,r,o,s,a;for(o=e.zip(h,i),a=[],t=0,r=o.length;r>t;t++)s=o[t],u=s[0],n=s[1],a.push(u/n);return a}(),h=function(){var t,e,n;for(n=[],r=t=0,e=a.length;e>t;r=++t)s=a[r],s>.5&&n.push(r);return n}(),c=Number($(t.currentTarget).attr(\"rownum\")),o=h.indexOf(c),l=-1===o?this.model.rpc(\"select\",[[c]]):this.model.rpc(\"deselect\",[[c]]),null},r.prototype.sort=function(t){var e;return e=$(t.currentTarget).parent().data(\"cdx-column\"),this.model.toggle_column_sort(e)},r.prototype.toggle_more_controls=function(){return this.controls_hide=this.controls_hide?!1:!0,this.render()},r.prototype.go_first=function(){return this.model.go_first()},r.prototype.go_prev=function(){return this.model.go_prev()},r.prototype.go_next=function(){return this.model.go_next()},r.prototype.go_last=function(){return this.model.go_last()},r.prototype.pandasoffset=function(t){var n;return t.keyCode===u?(n=this.$el.find(\".pandasoffset\").val(),n=Number(n),e.isNaN(n)&&(n=this.model.defaults.offset),this.model.save(\"offset\",n,{wait:!0}),t.preventDefault()):void 0},r.prototype.pandassize=function(t){var n,i;return t.keyCode===u?(i=this.$el.find(\".pandassize\").val(),n=Number(i),(e.isNaN(n)||\"\"===i)&&(n=this.model.defaults.length),n+this.mget(\"offset\")>this.mget(\"maxlength\")&&(n=this.mget(\"maxlength\")-this.mget(\"offset\")),this.model.save(\"length\",n,{wait:!0}),t.preventDefault()):void 0},r.prototype.pandasagg=function(){return this.model.save(\"agg\",this.$el.find(\".pandasagg\").val(),{wait:!0})},r.prototype.fromcsv=function(t){return t?e.map(t.split(\",\"),function(t){return t.trim()}):[]},r.prototype.pandasgroup=function(t){return t.keyCode===u?(this.model.set({group:this.fromcsv(this.$el.find(\".pandasgroup\").val()),offset:0}),this.model.save(),t.preventDefault(),!1):void 0},r.prototype.counts=function(){return this.mget(\"tabledata\").data._counts},r.prototype.selected=function(){return this.mget(\"tabledata\").data._selected},r.prototype.colors=function(){var t,n;return t=this.counts(),n=this.selected(),t&&n?e.map(e.zip(t,n),function(t){var e,i;return i=t[0],n=t[1],e=.3*n/i,\"rgba(0,0,255,\"+e+\")\"}):null},r.prototype.render=function(){var t,n,i,r,o,s,a,l,c,u,h;for(n=this.mget(\"group\"),e.isArray(n)&&(n=n.join(\",\")),o=this.mget(\"sort\"),e.isArray(o)&&(o=o.join(\",\")),t=this.colors(),s={},h=this.mget(\"sort\"),c=0,u=h.length;u>c;c++)r=h[c],s[r.column]=r.ascending;return a=this.mget(\"source\"),l={skip:{_counts:!0,_selected:!0,index:!0},computed_columns:this.mget(\"source\").get(\"computed_columns\"),columns:this.mget(\"tabledata\").column_names,data:this.mget(\"tabledata\").data,group:n,sort_ascendings:s,offset:this.mget(\"offset\"),length:this.model.length(),filterselected:this.mget(\"filterselected\"),totallength:this.mget(\"totallength\"),counts:this.mget(\"tabledata\").data._counts,selected:this.mget(\"tabledata\").data._selected,controls_hide:this.controls_hide,colors:t,index:this.mget(\"tabledata\").data.index},this.$el.empty(),i=this.template(l),this.$el.html(i),this.$(\".pandasagg\").find('option[value=\"'+this.mget(\"agg\")+'\"]').attr(\"selected\",\"selected\"),this.$el.addClass(\"bokehtable\")},r}(o.View),a=function(i){function r(){return this.toggle_column_sort=t(this.toggle_column_sort,this),p=r.__super__.constructor.apply(this,arguments)}return n(r,i),r.prototype.type=\"DataTable\",r.prototype.initialize=function(t,n){var i=this;return r.__super__.initialize.call(this,t,n),this.throttled_fetch=e.throttle(function(){return i.fetch()},500)},r.prototype.fetch=function(t){return r.__super__.fetch.call(this,t)},r.prototype.length=function(){return e.values(this.get(\"tabledata\").data)[0].length},r.prototype.toggle_column_sort=function(t){var n,i;return i=this.get(\"sort\"),this.unset(\"sort\",{silent:!0}),n=e.filter(i,function(e){return e.column===t}),n.length>0?(n=n[0],void(n.ascending?(n.ascending=!1,this.save(\"sort\",i,{wait:!0})):(i=e.filter(i,function(e){return e.column!==t}),this.save(\"sort\",i,{wait:!0})))):(i=e.clone(i),i.push({column:t,ascending:!0}),void this.save(\"sort\",i,{wait:!0}))},r.prototype.go_first=function(){return this.set(\"offset\",0),this.save()},r.prototype.go_prev=function(){var t;return t=this.get(\"offset\"),t-=this.length(),0>t&&(t=0),this.set(\"offset\",t),this.save()},r.prototype.go_next=function(){var t,e;return e=this.get(\"offset\"),e+=this.length(),t=this.get(\"maxlength\")-this.length(),e>t&&(e=t),this.set(\"offset\",e),this.save()},r.prototype.go_last=function(){var t;return t=this.get(\"maxlength\")-this.length(),this.set(\"offset\",t),this.save()},r.prototype.default_view=l,r.prototype.defaults=function(){return{sort:[],group:[],agg:\"sum\",offset:0,length:100,maxlength:1e3,tabledata:null,columns_names:[]}},r}(r),c=function(t){function e(){return d=e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.model=a,e}(i.Collection),{Model:a,Collection:new c,View:l}})}.call(this);var s={plugins:{},helper:{}};return function(t,e,n){function i(){this.refCounter=0,this.init()}function r(){function t(){var t=this;t._registerTimeout(setTimeout(function(){t.updateSettings({observeChanges:!0})},0))}function e(t){return function(e,n){return e[1]===n[1]?0:null===e[1]?1:null===n[1]?-1:e[1]<n[1]?t?-1:1:e[1]>n[1]?t?1:-1:0}}function i(t){return function(e,n){if(e[1]===n[1])return 0;if(null===e[1])return 1;if(null===n[1])return-1;var i=new Date(e[1]),r=new Date(n[1]);return r>i?t?-1:1:i>r?t?1:-1:0}}function r(t){return\"undefined\"!=typeof t.sortColumn}var o=this;this.init=function(e){var n,i,r=this,s=r.getSettings().columnSorting;if(r.sortingEnabled=!!s,r.sortingEnabled){r.sortIndex=[];var c=a.call(r);\"undefined\"!=typeof c?(n=c.sortColumn,i=c.sortOrder):(n=s.column,i=s.sortOrder),o.sortByColumn.call(r,n,i),r.sort=function(){var t=Array.prototype.slice.call(arguments);return o.sortByColumn.apply(r,t)},\"undefined\"==typeof r.getSettings().observeChanges&&t.call(r),\"afterInit\"==e&&(l.call(r),r.addHook(\"afterCreateRow\",o.afterCreateRow),r.addHook(\"afterRemoveRow\",o.afterRemoveRow),r.addHook(\"afterLoadData\",o.init))}else delete r.sort,r.removeHook(\"afterCreateRow\",o.afterCreateRow),r.removeHook(\"afterRemoveRow\",o.afterRemoveRow),r.removeHook(\"afterLoadData\",o.init)},this.setSortingColumn=function(t,e){var n=this;return\"undefined\"==typeof t?(delete n.sortColumn,void delete n.sortOrder):(n.sortOrder=n.sortColumn===t&&\"undefined\"==typeof e?!n.sortOrder:\"undefined\"!=typeof e?e:!0,void(n.sortColumn=t))},this.sortByColumn=function(t,e){var i=this;o.setSortingColumn.call(i,t,e),\"undefined\"!=typeof i.sortColumn&&(n.hooks.run(i,\"beforeColumnSort\",i.sortColumn,i.sortOrder),o.sort.call(i),i.render(),s.call(i),n.hooks.run(i,\"afterColumnSort\",i.sortColumn,i.sortOrder))};var s=function(){var t=this,e={};\"undefined\"!=typeof t.sortColumn&&(e.sortColumn=t.sortColumn),\"undefined\"!=typeof t.sortOrder&&(e.sortOrder=t.sortOrder),(e.hasOwnProperty(\"sortColumn\")||e.hasOwnProperty(\"sortOrder\"))&&n.hooks.run(t,\"persistentStateSave\",\"columnSorting\",e)},a=function(){var t=this,e={};return n.hooks.run(t,\"persistentStateLoad\",\"columnSorting\",e),e.value},l=function(){function t(){var t=i.view.TBODY.querySelector(\"tr\").querySelectorAll(\"th\");return t.length}function e(e){var i=n.Dom.closest(e,\"TH\");return n.Dom.index(i)-t()}var i=this;i.rootElement.on(\"click.handsontable\",\".columnSorting\",function(t){if(n.Dom.hasClass(t.target,\"columnSorting\")){var r=e(t.target);o.sortByColumn.call(i,r)}})};this.sort=function(){var t=this;if(\"undefined\"!=typeof t.sortOrder){t.sortingEnabled=!1,t.sortIndex.length=0;for(var n=this.colOffset(),r=0,o=this.countRows()-t.getSettings().minSpareRows;o>r;r++)this.sortIndex.push([r,t.getDataAtCell(r,this.sortColumn+n)]);var s,a=t.getCellMeta(0,t.sortColumn);switch(a.type){case\"date\":s=i;break;default:s=e}this.sortIndex.sort(s(t.sortOrder));for(var r=this.sortIndex.length;r<t.countRows();r++)this.sortIndex.push([r,t.getDataAtCell(r,this.sortColumn+n)]);t.sortingEnabled=!0}},this.translateRow=function(t){var e=this;return e.sortingEnabled&&e.sortIndex&&e.sortIndex.length&&e.sortIndex[t]?e.sortIndex[t][0]:t},this.untranslateRow=function(t){var e=this;if(e.sortingEnabled&&e.sortIndex&&e.sortIndex.length)for(var n=0;n<e.sortIndex.length;n++)if(e.sortIndex[n][0]==t)return n},this.getColHeader=function(t,e){this.getSettings().columnSorting&&n.Dom.addClass(e.querySelector(\".colHeader\"),\"columnSorting\")},this.afterCreateRow=function(t,e){var n=this;if(r(n)){for(var i=0;i<n.sortIndex.length;i++)n.sortIndex[i][0]>=t&&(n.sortIndex[i][0]+=e);for(var i=0;e>i;i++)n.sortIndex.splice(t+i,0,[t+i,n.getData()[t+i][n.sortColumn+n.colOffset()]]);s.call(n)}},this.afterRemoveRow=function(t,e){var n=this;if(r(n)){var i=o.translateRow.call(n,t);n.sortIndex.splice(t,e);for(var a=0;a<n.sortIndex.length;a++)n.sortIndex[a][0]>i&&(n.sortIndex[a][0]-=e);s.call(n)}},this.afterChangeSort=function(t){var e=this,n=!1,i={};if(t){for(var r=0;r<t.length;r++)if(t[r][1]==e.sortColumn){n=!0,i.row=o.translateRow.call(e,t[r][0]),i.col=t[r][1];break}n&&e._registerTimeout(setTimeout(function(){o.sort.call(e),e.render(),e.selectCell(o.untranslateRow.call(e,i.row),i.col)},0))}}}function s(e){var i=function(t,e,n,i){i.setCellMeta(t,e,\"comment\",n),i.render()},r=function(t,e,n){i(t.from.row,t.from.col,e,n)},o=function(){var t=c();t.style.display=\"none\",t.value=\"\"},s=function(i){function s(n){if(t(document).off(\"mouseover.htCommment\"),\"htCommentTextArea\"!=n.target.className&&-1==n.target.innerHTML.indexOf(\"Comment\")){var s=document.getElementsByClassName(\"htCommentTextArea\")[0].value;s.trim().length>1&&r(i,s,e),a(),o()}}t(document).on(\"mousedown.htCommment\",n.helper.proxy(s))},a=function(){t(document).off(\"mousedown.htCommment\"),t(document).on(\"mouseover.htCommment\",n.helper.proxy(u))},l=function(t,i){var r=e.view.wt.wtTable.getCell(t.from),o=n.Dom.offset(r),a=e.getColWidth(t.from.col);i.style.position=\"absolute\",i.style.left=o.left+a+\"px\",i.style.top=o.top+\"px\",i.style.zIndex=2,s(t,i)},c=function(t){var e=document.getElementsByClassName(\"htComments\")[0];if(!e){e=document.createElement(\"DIV\");var i=document.createElement(\"TEXTAREA\");n.Dom.addClass(i,\"htCommentTextArea\"),e.appendChild(i),n.Dom.addClass(e,\"htComments\"),document.getElementsByTagName(\"body\")[0].appendChild(e)\n",
" }return t=t||\"\",document.getElementsByClassName(\"htCommentTextArea\")[0].value=t,e},u=function(t){if(-1!=t.target.className.indexOf(\"htCommentCell\")){a();var i=e.view.wt.wtTable.getCoords(t.target),r={from:new f(i.row,i.col)};n.Comments.showComment(r)}else\"htCommentTextArea\"!=t.target.className&&o()};return{init:function(){t(document).on(\"mouseover.htCommment\",n.helper.proxy(u))},showComment:function(t){var n=e.getCellMeta(t.from.row,t.from.col),i=\"\";n.comment&&(i=n.comment);var r=c(i);r.style.display=\"block\",l(t,r)},removeComment:function(t,n){e.removeCellMeta(t,n,\"comment\"),e.render()},checkSelectionCommentsConsistency:function(){var t=!1,n=e.getSelectedRange().from;return e.getCellMeta(n.row,n.col).comment&&(t=!0),t}}}function a(t){var n,i=function(){e.localStorage[t+\"__persistentStateKeys\"]=JSON.stringify(n)},r=function(){var i=e.localStorage[t+\"__persistentStateKeys\"],r=\"string\"==typeof i?JSON.parse(i):void 0;n=r?r:[]},o=function(){n=[],i()};r(),this.saveValue=function(r,o){e.localStorage[t+\"_\"+r]=JSON.stringify(o),-1==n.indexOf(r)&&(n.push(r),i())},this.loadValue=function(n,i){n=\"undefined\"!=typeof n?n:i;var r=e.localStorage[t+\"_\"+n];return\"undefined\"==typeof r?void 0:JSON.parse(r)},this.reset=function(n){e.localStorage.removeItem(t+\"_\"+n)},this.resetAll=function(){for(var i=0;i<n.length;i++)e.localStorage.removeItem(t+\"_\"+n[i]);o()}}function l(){this.boundaries=null,this.callback=null}function c(){var t=[];return t.getInfo=function(t,e){for(var n=0,i=this.length;i>n;n++)if(this[n].row<=t&&this[n].row+this[n].rowspan-1>=t&&this[n].col<=e&&this[n].col+this[n].colspan-1>=e)return this[n]},t.setInfo=function(t){for(var e=0,n=this.length;n>e;e++)if(this[e].row===t.row&&this[e].col===t.col)return void(this[e]=t);this.push(t)},t.removeInfo=function(t,e){for(var n=0,i=this.length;i>n;n++)if(this[n].row===t&&this[n].col===e){this.splice(n,1);break}},t}function u(t){if(this.mergedCellInfoCollection=new c,n.helper.isArray(t))for(var e=0,i=t.length;i>e;e++)this.mergedCellInfoCollection.setInfo(t[e])}function h(){}function p(t){this.instance=t}function d(e,n){var i;if(n){this.instance=e,this.settings=n,this.main=document.createElement(\"div\"),i=this.main.style,i.position=\"absolute\",i.top=0,i.left=0;for(var r=[\"top\",\"left\",\"bottom\",\"right\",\"corner\"],o=0;5>o;o++){var s=r[o],a=document.createElement(\"DIV\");a.className=\"wtBorder \"+(this.settings.className||\"\"),this.settings[s]&&this.settings[s].hide&&(a.className+=\" hidden\"),i=a.style,i.backgroundColor=this.settings[s]&&this.settings[s].color?this.settings[s].color:n.border.color,i.height=this.settings[s]&&this.settings[s].width?this.settings[s].width+\"px\":n.border.width+\"px\",i.width=this.settings[s]&&this.settings[s].width?this.settings[s].width+\"px\":n.border.width+\"px\",this.main.appendChild(a)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=\" corner\",this.cornerStyle=this.corner.style,this.cornerStyle.width=\"5px\",this.cornerStyle.height=\"5px\",this.cornerStyle.border=\"2px solid #FFF\",this.disappear(),e.wtTable.bordersHolder||(e.wtTable.bordersHolder=document.createElement(\"div\"),e.wtTable.bordersHolder.className=\"htBorders\",e.wtTable.hider.appendChild(e.wtTable.bordersHolder)),e.wtTable.bordersHolder.insertBefore(this.main,e.wtTable.bordersHolder.firstChild);var l=!1,c=t(document.body);c.on(\"mousedown.walkontable.\"+e.guid,function(){l=!0}),c.on(\"mouseup.walkontable.\"+e.guid,function(){l=!1}),t(this.main.childNodes).on(\"mouseenter\",function(n){if(l&&e.getSetting(\"hideBorderOnMouseDownOver\")){n.preventDefault(),n.stopImmediatePropagation();var i=this.getBoundingClientRect(),r=t(this);r.hide();var o=function(t){return t.clientY<Math.floor(i.top)?!0:t.clientY>Math.ceil(i.top+i.height)?!0:t.clientX<Math.floor(i.left)?!0:t.clientX>Math.ceil(i.left+i.width)?!0:void 0};c.on(\"mousemove.border.\"+e.guid,function(t){o(t)&&(c.off(\"mousemove.border.\"+e.guid),r.show())})}})}}function f(t,e){\"undefined\"!=typeof t&&\"undefined\"!=typeof e?(this.row=t,this.col=e):(this.row=null,this.col=null)}function _(t,e,n){this.highlight=t,this.from=e,this.to=n}function g(){this.cache=[]}function m(t,e){this.total=t,this.countTH=e}function y(t,e,n,i){var r,o=0;for(p.apply(this,arguments),this.containerSizeFn=e,this.cellSizesSum=0,this.cellSizes=[],this.cellStretch=[],this.cellCount=0,this.visibleCellCount=0,this.remainingSize=0,this.strategy=i;;){if(r=n(o),void 0===r)break;this.cellSizesSum<this.getContainerSize(this.cellSizesSum+r)&&this.visibleCellCount++,this.cellSizes.push(r),this.cellSizesSum+=r,this.cellCount++,o++}var s=this.getContainerSize(this.cellSizesSum);this.remainingSize=this.cellSizesSum-s}function v(t){var e=[];if(this.guid=\"wt_\"+x(),t.cloneSource)this.cloneSource=t.cloneSource,this.cloneOverlay=t.cloneOverlay,this.wtSettings=t.cloneSource.wtSettings,this.wtTable=new O(this,t.table),this.wtScroll=new S(this),this.wtViewport=t.cloneSource.wtViewport,this.wtEvent=new w(this),this.selections=this.generateSelectionClones(this.cloneSource.selections);else{this.wtSettings=new E(this,t),this.wtTable=new O(this,t.table),this.wtScroll=new S(this),this.wtViewport=new P(this),this.wtEvent=new w(this);var i=this.getSetting(\"selections\");this.selections=i?this.generateSelections(i):[],this.wtScrollbars=new A(this)}if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var r=0,o=this.wtTable.THEAD.childNodes[0].childNodes.length;o>r;r++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[r].innerHTML);this.getSetting(\"columnHeaders\").length||this.update(\"columnHeaders\",[function(t,i){n.Dom.fastInnerText(i,e[t])}])}this.drawn=!1,this.drawInterrupted=!1}function b(e){this.instance=e,this.init(),this.clone=this.makeClone(\"debug\"),this.clone.wtTable.holder.style.opacity=.4,this.clone.wtTable.holder.style.textShadow=\"0 0 2px #ff0000\",this.lastTimeout=null;var i=this,r=0,o=0,s=i.clone.wtTable.holder.parentNode;t(document.body).on(\"mousemove.\"+this.instance.guid,function(t){i.instance.wtTable.holder.parentNode&&(t.clientX-r>-5&&t.clientX-r<5&&t.clientY-o>-5&&t.clientY-o<5||(r=t.clientX,o=t.clientY,n.Dom.addClass(s,\"wtDebugHidden\"),n.Dom.removeClass(s,\"wtDebugVisible\"),clearTimeout(this.lastTimeout),this.lastTimeout=setTimeout(function(){n.Dom.removeClass(s,\"wtDebugHidden\"),n.Dom.addClass(s,\"wtDebugVisible\")},1e3)))})}function w(i){var r=this;this.instance=i;var o=[null,null];this.dblClickTimeout=[null,null];var s,a=function(t){var e=r.parentCell(t.target);n.Dom.hasClass(t.target,\"corner\")?r.instance.getSetting(\"onCellCornerMouseDown\",t,t.target):e.TD&&r.instance.hasSetting(\"onCellMouseDown\")&&r.instance.getSetting(\"onCellMouseDown\",t,e.coords,e.TD,r.instance),2!==t.button&&e.TD&&(o[0]=e.TD,clearTimeout(r.dblClickTimeout[0]),r.dblClickTimeout[0]=setTimeout(function(){o[0]=null},1e3))},l=function(t){if(r.instance.hasSetting(\"onCellMouseOver\")){var e=r.instance.wtTable.TABLE,i=n.Dom.closest(t.target,[\"TD\",\"TH\"],e);i&&i!==s&&n.Dom.isChildOf(i,e)&&(s=i,r.instance.getSetting(\"onCellMouseOver\",t,r.instance.wtTable.getCoords(i),i,r.instance))}},c=function(t){if(2!==t.button){var e=r.parentCell(t.target);e.TD===o[0]&&e.TD===o[1]?(n.Dom.hasClass(t.target,\"corner\")?r.instance.getSetting(\"onCellCornerDblClick\",t,e.coords,e.TD,r.instance):r.instance.getSetting(\"onCellDblClick\",t,e.coords,e.TD,r.instance),o[0]=null,o[1]=null):e.TD===o[0]&&(o[1]=e.TD,clearTimeout(r.dblClickTimeout[1]),r.dblClickTimeout[1]=setTimeout(function(){o[1]=null},500))}};t(this.instance.wtTable.holder).on(\"mousedown\",a),t(this.instance.wtTable.TABLE).on(\"mouseover\",l),t(this.instance.wtTable.holder).on(\"mouseup\",c),t(e).on(\"resize.\"+this.instance.guid,function(){r.instance.draw()})}function x(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+t()+t()}function k(t,e,n){this.offset=t,this.total=e,this.countTH=n}function C(t,e,n){p.apply(this,arguments),this.containerSizeFn=e,this.sizeAtIndex=n,this.cellSizesSum=0,this.cellSizes=[],this.cellCount=0,this.visiblCellCount=0,this.remainingSize=-1/0,this.maxOuts=10,this.curOuts=this.maxOuts}function S(t){this.instance=t}function T(t){this.instance=t,this.type=\"corner\",this.init(),this.clone=this.makeClone(\"corner\")}function M(t){this.instance=t,this.type=\"horizontal\",this.cellSize=50,this.offset=0,this.init(),this.clone=this.makeClone(\"left\")}function D(t){this.instance=t,this.type=\"vertical\",this.cellSize=this.instance.wtSettings.settings.defaultRowHeight,this.offset,this.total,this.init(),this.clone=this.makeClone(\"top\")}function A(t){this.instance=t,t.update(\"scrollbarWidth\",n.Dom.getScrollbarWidth()),t.update(\"scrollbarHeight\",n.Dom.getScrollbarWidth()),this.vertical=new D(t),this.horizontal=new M(t),this.corner=new T(t),t.getSetting(\"debug\")&&(this.debug=new b(t)),this.registerListeners()}function R(t,e){this.instance=t,this.settings=e,this.cellRange=null,e.border&&(this.border=new d(t,e))}function E(t,e){var i=this;this.instance=t,this.defaults={table:void 0,debug:!1,stretchH:\"none\",currentRowClassName:null,currentColumnClassName:null,data:void 0,offsetRow:0,fixedColumnsLeft:0,fixedRowsTop:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,width:null,height:null,cellRenderer:function(t,e,r){var o=i.getSetting(\"data\",t,e);n.Dom.fastInnerText(r,void 0===o||null===o?\"\":o)},columnWidth:50,rowHeight:function(){return 23},defaultRowHeight:23,selections:null,hideBorderOnMouseDownOver:!1,onCellMouseDown:null,onCellMouseOver:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onScrollVertically:null,onScrollHorizontally:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1},this.settings={};for(var r in this.defaults)if(this.defaults.hasOwnProperty(r))if(void 0!==e[r])this.settings[r]=e[r];else{if(void 0===this.defaults[r])throw new Error('A required setting \"'+r+'\" was not provided');this.settings[r]=this.defaults[r]}}function O(t,e){this.instance=t,this.TABLE=e,n.Dom.removeTextNodes(this.TABLE);var i=this.TABLE.parentNode;if(!i||1!==i.nodeType||!n.Dom.hasClass(i,\"wtHolder\")){var r=document.createElement(\"DIV\");r.className=\"wtSpreader\",i&&i.insertBefore(r,this.TABLE),r.appendChild(this.TABLE)}if(this.spreader=this.TABLE.parentNode,i=this.spreader.parentNode,!i||1!==i.nodeType||!n.Dom.hasClass(i,\"wtHolder\")){var o=document.createElement(\"DIV\");o.className=\"wtHider\",i&&i.insertBefore(o,this.spreader),o.appendChild(this.spreader)}if(this.hider=this.spreader.parentNode,this.hiderStyle=this.hider.style,this.hiderStyle.position=\"relative\",i=this.hider.parentNode,!i||1!==i.nodeType||!n.Dom.hasClass(i,\"wtHolder\")){var s=document.createElement(\"DIV\");s.style.position=\"relative\",s.className=\"wtHolder\",t.cloneSource||(s.className+=\" ht_master\"),i&&i.insertBefore(s,this.hider),s.appendChild(this.hider)}if(this.holder=this.hider.parentNode,this.TBODY=this.TABLE.getElementsByTagName(\"TBODY\")[0],this.TBODY||(this.TBODY=document.createElement(\"TBODY\"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.getElementsByTagName(\"THEAD\")[0],this.THEAD||(this.THEAD=document.createElement(\"THEAD\"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.getElementsByTagName(\"COLGROUP\")[0],this.COLGROUP||(this.COLGROUP=document.createElement(\"COLGROUP\"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.instance.getSetting(\"columnHeaders\").length&&!this.THEAD.childNodes.length){var a=document.createElement(\"TR\");this.THEAD.appendChild(a)}this.colgroupChildrenLength=this.COLGROUP.childNodes.length,this.theadChildrenLength=this.THEAD.firstChild?this.THEAD.firstChild.childNodes.length:0,this.tbodyChildrenLength=this.TBODY.childNodes.length,this.oldCellCache=new g,this.currentCellCache=new g,this.rowFilter=null,this.columnFilter=null,this.columnWidthCache=[]}function j(t){this.wtTable=t,this.instance=t.instance,this.rowFilter=t.rowFilter,this.columnFilter=t.columnFilter,this.TABLE=t.TABLE,this.THEAD=t.THEAD,this.TBODY=t.TBODY,this.COLGROUP=t.COLGROUP,this.utils=j.utils}function P(n){this.instance=n,this.resetSettings();var i=this;t(e).on(\"resize.walkontable.\"+this.instance.guid,function(){i.clientHeight=i.getWorkspaceHeight()})}Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e=this.length>>>0,n=Number(arguments[1])||0;for(n=0>n?Math.ceil(n):Math.floor(n),0>n&&(n+=e);e>n;n++)if(n in this&&this[n]===t)return n;return-1}),Array.prototype.filter||(Array.prototype.filter=function(t,e){function n(t){return/NodeList/i.test(t.item)}function i(t){for(var e=[],n=0,i=t.length;i>n;n++)e[n]=t[n];return e}if(\"undefined\"==typeof this||null===this)throw new TypeError;if(\"function\"!=typeof t)throw new TypeError;e=e||this,n(e)&&(e=i(e));var r,o,s=e.length,a=[];for(r=0;s>r;r+=1)e.hasOwnProperty(r)&&(o=e[r],t.call(e,o,r,e)&&a.push(o));return a}),\"undefined\"==typeof WeakMap&&!function(){var t=Object.defineProperty;try{var n=!0;t(function(){},\"foo\",{})}catch(i){n=!1}var r=+new Date%1e9,o=function(){this.name=\"__st\"+(1e9*Math.random()>>>0)+(r++ +\"__\"),n||(this._wmCache=[])};o.prototype=n?{set:function(e,n){var i=e[this.name];i&&i[0]===e?i[1]=n:t(e,this.name,{value:[e,n],writable:!0})},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},\"delete\":function(t){this.set(t,void 0)}}:{set:function(t,e){if(\"undefined\"!=typeof t&&\"undefined\"!=typeof e){for(var n=0,i=this._wmCache.length;i>n;n++)if(this._wmCache[n].key==t)return void(this._wmCache[n].value=e);this._wmCache.push({key:t,value:e})}},get:function(t){if(\"undefined\"!=typeof t)for(var e=0,n=this._wmCache.length;n>e;e++)if(this._wmCache[e].key==t)return this._wmCache[e].value},\"delete\":function(t){if(\"undefined\"!=typeof t)for(var e=0,n=this._wmCache.length;n>e;e++)this._wmCache[e].key==t&&Array.prototype.slice.call(this._wmCache,e,1)}},e.WeakMap=o}(),n.activeGuid=null,n.Core=function(i,r){function o(){var t=!1;return{validatorsInQueue:0,addValidatorToQueue:function(){this.validatorsInQueue++,t=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0==this.validatorsInQueue&&0==t&&(t=!0,this.onQueueEmpty())}}}function s(e,i,r){function s(){var o;e.length&&(o=n.hooks.execute(b,\"beforeChange\",e,i),\"function\"==typeof o?t.when(result).then(function(){r()}):o===!1&&e.splice(0,e.length)),\"function\"!=typeof o&&r()}var a=new o;a.onQueueEmpty=s;for(var l=e.length-1;l>=0;l--)if(null===e[l])e.splice(l,1);else{var c=e[l][0],u=g.propToCol(e[l][1]),h=b.runHooksAndReturn(\"modifyCol\",u),p=b.getCellMeta(c,h);if(\"numeric\"===p.type&&\"string\"==typeof e[l][3]&&e[l][3].length>0&&/^-?[\\d\\s]*(\\.|\\,)?\\d*$/.test(e[l][3])){var d=e[l][3].length;numeral.language(\"undefined\"==typeof p.language?\"en\":e[l][3].indexOf(\".\")===d-3&&-1===e[l][3].indexOf(\",\")?\"en\":p.language),e[l][3]=numeral().unformat(e[l][3]||\"0\")}b.getCellValidator(p)&&(a.addValidatorToQueue(),b.validateCell(e[l][3],p,function(t,n){return function(i){if(\"boolean\"!=typeof i)throw new Error(\"Validation error: result is not boolean\");i===!1&&n.allowInvalid===!1&&(e.splice(t,1),n.valid=!0,--t),a.removeValidatorFormQueue()}}(l,p),i))}a.checkIfQueueIsEmpty()}function a(t,e){var i=t.length-1;if(!(0>i)){for(;i>=0;i--)if(null!==t[i]){if(null!=t[i][2]||null!=t[i][3]){if(d.settings.minSpareRows)for(;t[i][0]>b.countRows()-1;)g.createRow();if(\"array\"===b.dataType&&d.settings.minSpareCols)for(;g.propToCol(t[i][1])>b.countCols()-1;)g.createCol();g.set(t[i][0],t[i][1],t[i][3])}}else t.splice(i,1);b.forceFullRender=!0,m.adjustRowsAndCols(),n.hooks.run(b,\"beforeChangeRender\",t,e),y.refreshBorders(null,!0),n.hooks.run(b,\"afterChange\",t,e||\"edit\")}}function l(e,n,i){return\"object\"==typeof e?e:t.isPlainObject(i)?i:[[e,n,i]]}function c(t){if(t.hasOwnProperty(\"type\")){var e,i={};if(\"object\"==typeof t.type)e=t.type;else if(\"string\"==typeof t.type&&(e=n.cellTypes[t.type],void 0===e))throw new Error('You declared cell type \"'+t.type+'\" as a string that is not mapped to a known object. Cell type must be an object or a string mapped to an object in Handsontable.cellTypes');for(var r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(i[r]=e[r]);return i}}function u(t){return n.hooks.execute(b,\"modifyRow\",t)}function h(t){return n.hooks.execute(b,\"modifyCol\",t)}function p(){throw new Error(\"This method cannot be called because this Handsontable instance has been destroyed\")}var d,g,m,y,v,b=this,w=function(){},x=t(document.documentElement),k=t(document.body);n.helper.extend(w.prototype,N.prototype),n.helper.extend(w.prototype,r),n.helper.extend(w.prototype,c(r)),this.rootElement=i,this.container=document.createElement(\"DIV\"),this.container.className=\"htContainer\",i.prepend(this.container),this.container=t(this.container),this.guid=\"ht_\"+n.helper.randomString(),this.rootElement[0].id||(this.rootElement[0].id=this.guid),d={cellSettings:[],columnSettings:[],columnsSettingConflicts:[\"data\",\"width\"],settings:new w,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},m={alter:function(t,e,i,r,o){var s;switch(i=i||1,t){case\"insert_row\":s=g.createRow(e,i),s&&(y.isSelected()&&d.selRange.from.row>=e?(d.selRange.from.row=d.selRange.from.row+s,y.transformEnd(s,0)):y.refreshBorders());break;case\"insert_col\":if(s=g.createCol(e,i)){if(n.helper.isArray(b.getSettings().colHeaders)){var a=[e,0];a.length+=s,Array.prototype.splice.apply(b.getSettings().colHeaders,a)}y.isSelected()&&d.selRange.from.col>=e?(d.selRange.from.col=d.selRange.from.col+s,y.transformEnd(0,s)):y.refreshBorders()}break;case\"remove_row\":g.removeRow(e,i),d.cellSettings.splice(e,i),m.adjustRowsAndCols(),y.refreshBorders();break;case\"remove_col\":g.removeCol(e,i);for(var l=0,c=g.getAll().length;c>l;l++)l in d.cellSettings&&d.cellSettings[l].splice(e,i);n.helper.isArray(b.getSettings().colHeaders)&&(\"undefined\"==typeof e&&(e=-1),b.getSettings().colHeaders.splice(e,i)),d.columnSettings.splice(e,i),m.adjustRowsAndCols(),y.refreshBorders();break;default:throw new Error('There is no such action \"'+t+'\"')}o||m.adjustRowsAndCols()},adjustRowsAndCols:function(){var t,e,n,i;if(e=b.countRows(),e<d.settings.minRows)for(t=0;t<d.settings.minRows-e;t++)g.createRow(b.countRows(),1,!0);if(n=b.countEmptyRows(!0),n<d.settings.minSpareRows)for(;n<d.settings.minSpareRows&&b.countRows()<d.settings.maxRows;n++)g.createRow(b.countRows(),1,!0);if(i=b.countEmptyCols(!0),!d.settings.columns&&b.countCols()<d.settings.minCols)for(;b.countCols()<d.settings.minCols;i++)g.createCol(b.countCols(),1,!0);if(!d.settings.columns&&\"array\"===b.dataType&&i<d.settings.minSpareCols)for(;i<d.settings.minSpareCols&&b.countCols()<d.settings.maxCols;i++)g.createCol(b.countCols(),1,!0);var r=b.countRows(),o=b.countCols();if((0===r||0===o)&&y.deselect(),y.isSelected()){var s,a=d.selRange.from.row,l=d.selRange.from.col,c=d.selRange.to.row,u=d.selRange.to.col;a>r-1?(a=r-1,s=!0,c>a&&(c=a)):c>r-1&&(c=r-1,s=!0,a>c&&(a=c)),l>o-1?(l=o-1,s=!0,u>l&&(u=l)):u>o-1&&(u=o-1,s=!0,l>u&&(l=u)),s&&b.selectCell(a,l,c,u)}},populateFromArray:function(t,e,i,r,o){var s,a,l,c,u=[],h={};if(a=e.length,0===a)return!1;var p,f,_,g;switch(o){case\"shift_down\":for(p=i?i.col-t.col+1:0,f=i?i.row-t.row+1:0,e=n.helper.translateRowsToColumns(e),l=0,c=e.length,_=Math.max(c,p);_>l;l++)if(c>l){for(s=0,a=e[l].length;f-a>s;s++)e[l].push(e[l][s%a]);e[l].unshift(t.col+l,t.row,0),b.spliceCol.apply(b,e[l])}else e[l%c][0]=t.col+l,b.spliceCol.apply(b,e[l%c]);break;case\"shift_right\":for(p=i?i.col-t.col+1:0,f=i?i.row-t.row+1:0,s=0,a=e.length,g=Math.max(a,f);g>s;s++)if(a>s){for(l=0,c=e[s].length;p-c>l;l++)e[s].push(e[s][l%c]);e[s].unshift(t.row+s,t.col,0),b.spliceRow.apply(b,e[s])}else e[s%a][0]=t.row+s,b.spliceRow.apply(b,e[s%a]);break;case\"overwrite\":default:for(h.row=t.row,h.col=t.col,s=0;a>s&&!(i&&h.row>i.row||!d.settings.minSpareRows&&h.row>b.countRows()-1||h.row>=d.settings.maxRows);s++){for(h.col=t.col,c=e[s]?e[s].length:0,l=0;c>l&&!(i&&h.col>i.col||!d.settings.minSpareCols&&h.col>b.countCols()-1||h.col>=d.settings.maxCols);l++)b.getCellMeta(h.row,h.col).readOnly||u.push([h.row,h.col,e[s][l]]),h.col++,i&&l===c-1&&(l=-1);h.row++,i&&s===a-1&&(s=-1)}b.setDataAtCell(u,null,null,r||\"populateFromArray\")}}},this.selection=y={inProgress:!1,begin:function(){b.selection.inProgress=!0},finish:function(){var t=b.getSelected();n.hooks.run(b,\"afterSelectionEnd\",t[0],t[1],t[2],t[3]),n.hooks.run(b,\"afterSelectionEndByProp\",t[0],b.colToProp(t[1]),t[2],b.colToProp(t[3])),b.selection.inProgress=!1},isInProgress:function(){return b.selection.inProgress},setRangeStart:function(t){n.hooks.run(b,\"beforeSetRangeStart\",t),d.selRange=new _(t,t,t),y.setRangeEnd(t)},setRangeEnd:function(t,e){n.hooks.run(b,\"beforeSetRangeEnd\",t),b.selection.begin(),d.selRange.to=t,d.settings.multiSelect||(d.selRange.from=t),b.view.wt.selections.current.clear(),b.view.wt.selections.current.add(d.selRange.highlight),b.view.wt.selections.area.clear(),y.isMultiple()&&(b.view.wt.selections.area.add(d.selRange.from),b.view.wt.selections.area.add(d.selRange.to)),(d.settings.currentRowClassName||d.settings.currentColClassName)&&(b.view.wt.selections.highlight.clear(),b.view.wt.selections.highlight.add(d.selRange.from),b.view.wt.selections.highlight.add(d.selRange.to)),n.hooks.run(b,\"afterSelection\",d.selRange.from.row,d.selRange.from.col,d.selRange.to.row,d.selRange.to.col),n.hooks.run(b,\"afterSelectionByProp\",d.selRange.from.row,g.colToProp(d.selRange.from.col),d.selRange.to.row,g.colToProp(d.selRange.to.col)),e!==!1&&b.view.mainViewIsActive()&&b.view.scrollViewport(t),y.refreshBorders()},refreshBorders:function(t,e){e||v.destroyEditor(t),b.view.render(),y.isSelected()&&!e&&v.prepareEditor()},isMultiple:function(){return!(d.selRange.to.col===d.selRange.from.col&&d.selRange.to.row===d.selRange.from.row)},transformStart:function(t,e,n){var i=new f(t,e);b.runHooks(\"modifyTransformStart\",i),d.selRange.highlight.row+t>b.countRows()-1?n&&d.settings.minSpareRows>0?b.alter(\"insert_row\",b.countRows()):d.settings.autoWrapCol&&(i.row=1-b.countRows(),i.col=d.selRange.highlight.col+i.col==b.countCols()-1?1-b.countCols():1):d.settings.autoWrapCol&&d.selRange.highlight.row+i.row<0&&d.selRange.highlight.col+i.col>=0&&(i.row=b.countRows()-1,i.col=d.selRange.highlight.col+i.col==0?b.countCols()-1:-1),d.selRange.highlight.col+i.col>b.countCols()-1?n&&d.settings.minSpareCols>0?b.alter(\"insert_col\",b.countCols()):d.settings.autoWrapRow&&(i.row=d.selRange.highlight.row+i.row==b.countRows()-1?1-b.countRows():1,i.col=1-b.countCols()):d.settings.autoWrapRow&&d.selRange.highlight.col+i.col<0&&d.selRange.highlight.row+i.row>=0&&(i.row=d.selRange.highlight.row+i.row==0?b.countRows()-1:-1,i.col=b.countCols()-1);var r=b.countRows(),o=b.countCols(),s=new f(d.selRange.highlight.row+i.row,d.selRange.highlight.col+i.col);s.row<0?s.row=0:s.row>0&&s.row>=r&&(s.row=r-1),s.col<0?s.col=0:s.col>0&&s.col>=o&&(s.col=o-1),y.setRangeStart(s)},transformEnd:function(t,e){var n=new f(t,e);b.runHooks(\"modifyTransformEnd\",n);var i=b.countRows(),r=b.countCols(),o=new f(d.selRange.to.row+n.row,d.selRange.to.col+n.col);o.row<0?o.row=0:o.row>0&&o.row>=i&&(o.row=i-1),o.col<0?o.col=0:o.col>0&&o.col>=r&&(o.col=r-1),y.setRangeEnd(o)},isSelected:function(){return null!==d.selRange},inInSelection:function(t){return y.isSelected()?d.selRange.includes(t):!1},deselect:function(){y.isSelected()&&(b.selection.inProgress=!1,d.selRange=null,b.view.wt.selections.current.clear(),b.view.wt.selections.area.clear(),(d.settings.currentRowClassName||d.settings.currentColClassName)&&b.view.wt.selections.highlight.clear(),v.destroyEditor(),y.refreshBorders(),n.hooks.run(b,\"afterDeselect\"))},selectAll:function(){d.settings.multiSelect&&(y.setRangeStart(new f(0,0)),y.setRangeEnd(new f(b.countRows()-1,b.countCols()-1),!1))},empty:function(){if(y.isSelected()){var t,e,n=d.selRange.getTopLeftCorner(),i=d.selRange.getBottomRightCorner(),r=[];for(t=n.row;t<=i.row;t++)for(e=n.col;e<=i.col;e++)b.getCellMeta(t,e).readOnly||r.push([t,e,\"\"]);b.setDataAtCell(r)}}},this.init=function(){n.hooks.run(b,\"beforeInit\"),this.updateSettings(d.settings,!0),this.view=new n.TableView(this),v=new n.EditorManager(b,d,y,g),this.forceFullRender=!0,this.view.render(),\"object\"==typeof d.firstRun&&(n.hooks.run(b,\"afterChange\",d.firstRun[0],d.firstRun[1]),d.firstRun=!1),n.hooks.run(b,\"afterInit\")},this.validateCell=function(t,e,i,r){var o=b.getCellValidator(e);\"[object RegExp]\"===Object.prototype.toString.call(o)&&(o=function(t){return function(e,n){n(t.test(e))}}(o)),\"function\"==typeof o?(t=n.hooks.execute(b,\"beforeValidate\",t,e.row,e.prop,r),b._registerTimeout(setTimeout(function(){return o.call(e,t,function(o){e.valid=o,o=n.hooks.execute(b,\"afterValidate\",o,t,e.row,e.prop,r),i(o)}),t},0))):(e.valid=!0,i(!0))},this.setDataAtCell=function(t,e,n,i){var r,o,c,u=l(t,e,n),h=[];for(r=0,o=u.length;o>r;r++){if(\"object\"!=typeof u[r])throw new Error(\"Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter\");if(\"number\"!=typeof u[r][1])throw new Error(\"Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`\");c=g.colToProp(u[r][1]),h.push([u[r][0],c,g.get(u[r][0],c),u[r][2]])}i||\"object\"!=typeof t||(i=e),s(h,i,function(){a(h,i)})},this.setDataAtRowProp=function(t,e,n,i){var r,o,c=l(t,e,n),u=[];for(r=0,o=c.length;o>r;r++)u.push([c[r][0],c[r][1],g.get(c[r][0],c[r][1]),c[r][2]]);i||\"object\"!=typeof t||(i=e),s(u,i,function(){a(u,i)})},this.listen=function(){n.activeGuid=b.guid,document.activeElement&&document.activeElement!==document.body?document.activeElement.blur():document.activeElement||document.body.focus()},this.unlisten=function(){n.activeGuid=null},this.isListening=function(){return n.activeGuid===b.guid},this.destroyEditor=function(t){y.refreshBorders(t)},this.populateFromArray=function(t,e,n,i,r,o,s){if(\"object\"!=typeof n||\"object\"!=typeof n[0])throw new Error(\"populateFromArray parameter `input` must be an array of arrays\");return m.populateFromArray(new f(t,e),n,\"number\"==typeof i?new f(i,r):null,o,s)},this.spliceCol=function(){return g.spliceCol.apply(g,arguments)},this.spliceRow=function(){return g.spliceRow.apply(g,arguments)},this.getSelected=function(){return y.isSelected()?[d.selRange.from.row,d.selRange.from.col,d.selRange.to.row,d.selRange.to.col]:void 0},this.getSelectedRange=function(){return y.isSelected()?d.selRange:void 0},this.render=function(){b.view&&(b.forceFullRender=!0,y.refreshBorders(null,!0))},this.loadData=function(t){function e(){d.cellSettings.length=0}if(\"object\"==typeof t&&null!==t)t.push&&t.splice||(t=[t]);else{if(null!==t)throw new Error(\"loadData only accepts array of objects or array of arrays (\"+typeof t+\" given)\");t=[];for(var i,r=0,o=d.settings.startRows;o>r;r++){i=[];for(var s=0,a=d.settings.startCols;a>s;s++)i.push(null);t.push(i)}}d.isPopulated=!1,w.prototype.data=t,b.dataType=d.settings.dataSchema instanceof Array||t[0]instanceof Array?\"array\":\"function\"==typeof d.settings.dataSchema?\"function\":\"object\",g=new n.DataMap(b,d,w),e(),m.adjustRowsAndCols(),n.hooks.run(b,\"afterLoadData\"),d.firstRun?d.firstRun=[null,\"loadData\"]:(n.hooks.run(b,\"afterChange\",null,\"loadData\"),b.render()),d.isPopulated=!0},this.getData=function(t,e,n,i){return\"undefined\"==typeof t?g.getAll():g.getRange(new f(t,e),new f(n,i),g.DESTINATION_RENDERER)},this.getCopyableData=function(t,e,n,i){return g.getCopyableText(new f(t,e),new f(n,i))},this.updateSettings=function(t,e){var i,r;if(\"undefined\"!=typeof t.rows)throw new Error(\"'rows' setting is no longer supported. do you mean startRows, minRows or maxRows?\");if(\"undefined\"!=typeof t.cols)throw new Error(\"'cols' setting is no longer supported. do you mean startCols, minCols or maxCols?\");for(i in t)\"data\"!==i&&(void 0!==n.hooks.hooks[i]||void 0!==n.hooks.legacy[i]?(\"function\"==typeof t[i]||n.helper.isArray(t[i]))&&b.addHook(i,t[i]):!e&&t.hasOwnProperty(i)&&(w.prototype[i]=t[i]));if(void 0===t.data&&void 0===d.settings.data?b.loadData(null):void 0!==t.data?b.loadData(t.data):void 0!==t.columns&&g.createMap(),r=b.countCols(),d.cellSettings.length=0,r>0){var o,s;for(i=0;r>i;i++)d.columnSettings[i]=n.helper.columnFactory(w,d.columnsSettingConflicts),o=d.columnSettings[i].prototype,w.prototype.columns&&(s=w.prototype.columns[i],n.helper.extend(o,s),n.helper.extend(o,c(s)))}if(\"undefined\"!=typeof t.cell)for(i in t.cell){var a=t.cell[i];b.setCellMetaObject(a.row,a.col,a)}if(n.hooks.run(b,\"afterCellMetaReset\"),\"undefined\"!=typeof t.className&&(w.prototype.className&&b.rootElement.removeClass(w.prototype.className),t.className&&b.rootElement.addClass(t.className)),\"undefined\"!=typeof t.height){var l=t.height;\"function\"==typeof l&&(l=l()),b.rootElement[0].style.height=l+\"px\"}if(\"undefined\"!=typeof t.width){var u=t.width;\"function\"==typeof u&&(u=u()),b.rootElement[0].style.width=u+\"px\"}l&&(b.rootElement[0].style.overflow=\"auto\"),e||n.hooks.run(b,\"afterUpdateSettings\"),m.adjustRowsAndCols(),b.view&&!d.firstRun&&(b.forceFullRender=!0,y.refreshBorders(null,!0))},this.getValue=function(){var t=b.getSelected();if(w.prototype.getValue){if(\"function\"==typeof w.prototype.getValue)return w.prototype.getValue.call(b);if(t)return b.getData()[t[0]][w.prototype.getValue]}else if(t)return b.getDataAtCell(t[0],t[1])},this.getSettings=function(){return d.settings},this.clear=function(){y.selectAll(),y.empty()},this.alter=function(t,e,n,i,r){m.alter(t,e,n,i,r)},this.getCell=function(t,e){return b.view.getCellAtCoords(new f(t,e))},this.colToProp=function(t){return g.colToProp(t)},this.propToCol=function(t){return g.propToCol(t)},this.getDataAtCell=function(t,e){return g.get(t,g.colToProp(e))},this.getDataAtRowProp=function(t,e){return g.get(t,e)},this.getDataAtCol=function(t){var e=[];return e.concat.apply(e,g.getRange(new f(0,t),new f(d.settings.data.length-1,t),g.DESTINATION_RENDERER))},this.getDataAtProp=function(t){var e=[];return e.concat.apply(e,g.getRange(new f(0,g.propToCol(t)),new f(d.settings.data.length-1,g.propToCol(t)),g.DESTINATION_RENDERER))},this.getSourceDataAtCol=function(t){for(var e=[],n=d.settings.data,i=0;i<n.length;i++)e.push(n[i][t]);return e},this.getSourceDataAtRow=function(t){return d.settings.data[t]},this.getDataAtRow=function(t){var e=g.getRange(new f(t,0),new f(t,this.countCols()-1),g.DESTINATION_RENDERER);return e[0]},this.removeCellMeta=function(t,e,n){var i=b.getCellMeta(t,e);void 0!=i[n]&&delete d.cellSettings[t][e][n]},this.setCellMetaObject=function(t,e,n){if(\"object\"==typeof n)for(var i in n){var r=i,o=n[i];this.setCellMeta(t,e,r,o)}},this.setCellMeta=function(t,e,i,r){d.cellSettings[t]||(d.cellSettings[t]=[]),d.cellSettings[t][e]||(d.cellSettings[t][e]=new d.columnSettings[e]),d.cellSettings[t][e][i]=r,n.hooks.run(b,\"afterSetCellMeta\",t,e,i,r)},this.getCellMeta=function(t,e){var i,r=g.colToProp(e);if(t=u(t),e=h(e),d.columnSettings[e]||(d.columnSettings[e]=n.helper.columnFactory(w,d.columnsSettingConflicts)),d.cellSettings[t]||(d.cellSettings[t]=[]),d.cellSettings[t][e]||(d.cellSettings[t][e]=new d.columnSettings[e]),i=d.cellSettings[t][e],i.row=t,i.col=e,i.prop=r,i.instance=b,n.hooks.run(b,\"beforeGetCellMeta\",t,e,i),n.helper.extend(i,c(i)),i.cells){var o=i.cells.call(i,t,e,r);o&&(n.helper.extend(i,o),n.helper.extend(i,c(o)))}return n.hooks.run(b,\"afterGetCellMeta\",t,e,i),i};var C=n.helper.cellMethodLookupFactory(\"renderer\");this.getCellRenderer=function(t,e){var i=C.call(this,t,e);return n.renderers.getRenderer(i)},this.getCellEditor=n.helper.cellMethodLookupFactory(\"editor\"),this.getCellValidator=n.helper.cellMethodLookupFactory(\"validator\"),this.validateCells=function(t){var e=new o;e.onQueueEmpty=t;for(var n=b.countRows()-1;n>=0;){for(var i=b.countCols()-1;i>=0;)e.addValidatorToQueue(),b.validateCell(b.getDataAtCell(n,i),b.getCellMeta(n,i),function(){e.removeValidatorFormQueue()\n",
" },\"validateCells\"),i--;n--}e.checkIfQueueIsEmpty()},this.getRowHeader=function(t){if(void 0===t){for(var e=[],n=0,i=b.countRows();i>n;n++)e.push(b.getRowHeader(n));return e}return\"[object Array]\"===Object.prototype.toString.call(d.settings.rowHeaders)&&void 0!==d.settings.rowHeaders[t]?d.settings.rowHeaders[t]:\"function\"==typeof d.settings.rowHeaders?d.settings.rowHeaders(t):d.settings.rowHeaders&&\"string\"!=typeof d.settings.rowHeaders&&\"number\"!=typeof d.settings.rowHeaders?t+1:d.settings.rowHeaders},this.hasRowHeaders=function(){return!!d.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==d.settings.colHeaders&&null!==d.settings.colHeaders)return!!d.settings.colHeaders;for(var t=0,e=b.countCols();e>t;t++)if(b.getColHeader(t))return!0;return!1},this.getColHeader=function(t){if(void 0===t){for(var e=[],i=0,r=b.countCols();r>i;i++)e.push(b.getColHeader(i));return e}var o=t;return t=n.hooks.execute(b,\"modifyCol\",t),d.settings.columns&&d.settings.columns[t]&&d.settings.columns[t].title?d.settings.columns[t].title:\"[object Array]\"===Object.prototype.toString.call(d.settings.colHeaders)&&void 0!==d.settings.colHeaders[t]?d.settings.colHeaders[t]:\"function\"==typeof d.settings.colHeaders?d.settings.colHeaders(t):d.settings.colHeaders&&\"string\"!=typeof d.settings.colHeaders&&\"number\"!=typeof d.settings.colHeaders?n.helper.spreadsheetColumnLabel(o):d.settings.colHeaders},this._getColWidthFromSettings=function(t){var e=b.getCellMeta(0,t),n=e.width;if((void 0===n||n===d.settings.width)&&(n=e.colWidths),void 0!==n&&null!==n){switch(typeof n){case\"object\":n=n[t];break;case\"function\":n=n(t)}\"string\"==typeof n&&(n=parseInt(n,10))}return n},this.getColWidth=function(t){var e=b._getColWidthFromSettings(t);return e||(e=50),e=n.hooks.execute(b,\"modifyColWidth\",e,t)},this._getRowHeightFromSettings=function(t){var e=d.settings.rowHeights;if(void 0!==e&&null!==e){switch(typeof e){case\"object\":e=e[t];break;case\"function\":e=e(t)}\"string\"==typeof e&&(e=parseInt(e,10))}return e},this.getRowHeight=function(t){var e=b._getRowHeightFromSettings(t),i=b.checkIfRowIsOversized(t);return e=n.hooks.execute(b,\"modifyRowHeight\",e,t),i&&(e=e?Math.max(e,i):i),e},this.checkIfRowIsOversized=function(t){return b.view.wt.wtTable.oversizedRows?b.view.wt.wtTable.oversizedRows[t]:void 0},this.countRows=function(){return d.settings.data.length},this.countCols=function(){return\"object\"===b.dataType||\"function\"===b.dataType?d.settings.columns&&d.settings.columns.length?d.settings.columns.length:g.colToPropCache.length:\"array\"===b.dataType?d.settings.columns&&d.settings.columns.length?d.settings.columns.length:d.settings.data&&d.settings.data[0]&&d.settings.data[0].length?d.settings.data[0].length:0:void 0},this.rowOffset=function(){return b.view.wt.getSetting(\"offsetRow\")},this.colOffset=function(){return 0},this.countVisibleRows=function(){return b.view.wt.drawn?b.view.wt.wtTable.rowStrategy.countVisible():-1},this.countVisibleCols=function(){return b.view.wt.drawn?b.view.wt.wtTable.columnStrategy.countVisible():-1},this.countEmptyRows=function(t){for(var e,i=b.countRows()-1,r=0;i>=0;){if(e=n.hooks.execute(this,\"modifyRow\",i),b.isEmptyRow(e))r++;else if(t)break;i--}return r},this.countEmptyCols=function(t){if(b.countRows()<1)return 0;for(var e=b.countCols()-1,n=0;e>=0;){if(b.isEmptyCol(e))n++;else if(t)break;e--}return n},this.isEmptyRow=function(t){return d.settings.isEmptyRow.call(b,t)},this.isEmptyCol=function(t){return d.settings.isEmptyCol.call(b,t)},this.selectCell=function(t,e,n,i,r){if(\"number\"!=typeof t||0>t||t>=b.countRows())return!1;if(\"number\"!=typeof e||0>e||e>=b.countCols())return!1;if(\"undefined\"!=typeof n){if(\"number\"!=typeof n||0>n||n>=b.countRows())return!1;if(\"number\"!=typeof i||0>i||i>=b.countCols())return!1}var o=new f(t,e);return d.selRange=new _(o,o,o),document.activeElement&&document.activeElement!==document.documentElement&&document.activeElement!==document.body&&document.activeElement.blur(),b.listen(),\"undefined\"==typeof n?y.setRangeEnd(d.selRange.from,r):y.setRangeEnd(new f(n,i),r),b.selection.finish(),!0},this.selectCellByProp=function(){return arguments[1]=g.propToCol(arguments[1]),\"undefined\"!=typeof arguments[3]&&(arguments[3]=g.propToCol(arguments[3])),b.selectCell.apply(b,arguments)},this.deselectCell=function(){y.deselect()},this.destroy=function(){b._clearTimeouts(),b.view&&b.view.wt.destroy(),b.rootElement.empty(),b.rootElement.removeData(\"handsontable\"),b.rootElement.off(\".handsontable\"),t(e).off(\".\"+b.guid),x.off(\".\"+b.guid),k.off(\".\"+b.guid),n.hooks.run(b,\"afterDestroy\"),n.hooks.destroy(b);for(var i in b)b.hasOwnProperty(i)&&(\"function\"==typeof b[i]?\"runHooks\"!==i&&\"runHooksAndReturn\"!==i&&(b[i]=p):\"guid\"!==i&&(b[i]=null));d=null,g=null,m=null,y=null,v=null,b=null,w=null,x=null,k=null},this.getActiveEditor=function(){return v.getActiveEditor()},this.getInstance=function(){return b},this.addHook=function(t,e){n.hooks.add(t,e,b)},this.addHookOnce=function(t,e){n.hooks.once(t,e,b)},this.removeHook=function(t,e){n.hooks.remove(t,e,b)},this.runHooks=function(t,e,i,r,o,s,a){n.hooks.run(b,t,e,i,r,o,s,a)},this.runHooksAndReturn=function(t,e,i,r,o,s,a){return n.hooks.execute(b,t,e,i,r,o,s,a)},this.timeouts=[],this._registerTimeout=function(t){this.timeouts.push(t)},this._clearTimeouts=function(){for(var t=0,e=this.timeouts.length;e>t;t++)clearTimeout(this.timeouts[t])},this.version=\"0.11.1\"};var N=function(){};N.prototype={data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:null,colHeaders:null,colWidths:void 0,columns:void 0,cells:void 0,cell:[],minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,multiSelect:!0,fillHandle:!0,fixedRowsTop:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!1,autoWrapCol:!1,copyRowsLimit:1e3,copyColsLimit:1e3,pasteMode:\"overwrite\",currentRowClassName:void 0,currentColClassName:void 0,stretchH:\"none\",isEmptyRow:function(t){for(var e,n=0,i=this.countCols();i>n;n++)if(e=this.getDataAtCell(t,n),\"\"!==e&&null!==e&&\"undefined\"!=typeof e)return!1;return!0},isEmptyCol:function(t){for(var e,n=0,i=this.countRows();i>n;n++)if(e=this.getDataAtCell(n,t),\"\"!==e&&null!==e&&\"undefined\"!=typeof e)return!1;return!0},observeDOMVisibility:!0,allowInvalid:!0,invalidCellClassName:\"htInvalid\",placeholder:!1,placeholderCellClassName:\"htPlaceholder\",readOnlyCellClassName:\"htDimmed\",commentedCellClassName:\"htCommentCell\",fragmentSelection:!1,readOnly:!1,type:\"text\",copyable:!0,debug:!1,wordWrap:!0,noWordWrapClassName:\"htNoWrap\",contextMenu:void 0,undo:void 0,columnSorting:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0},n.DefaultSettings=N,t.fn.handsontable=function(t){var e,i,r,o,s,a=this.first(),l=a.data(\"handsontable\");if(\"string\"!=typeof t)return s=t||{},l?l.updateSettings(s):(l=new n.Core(a,s),a.data(\"handsontable\",l),l.init()),a;if(r=[],arguments.length>1)for(e=1,i=arguments.length;i>e;e++)r.push(arguments[e]);if(l){if(\"undefined\"==typeof l[t])throw new Error(\"Handsontable do not provide action: \"+t);o=l[t].apply(l,r)}return o},function(t){function e(){function t(t){return null!==t&&!n(t)&&(\"string\"==typeof t||\"number\"==typeof t)}function e(t){return null!==t&&(\"object\"==typeof t||\"function\"==typeof t)}function n(t){return t!==t}var i={arrayMap:[],weakMap:new WeakMap};return{get:function(n){return t(n)?i.arrayMap[n]:e(n)?i.weakMap.get(n):void 0},set:function(n,r){if(t(n))i.arrayMap[n]=r;else{if(!e(n))throw new Error(\"Invalid key type\");i.weakMap.set(n,r)}},\"delete\":function(n){t(n)?delete i.arrayMap[n]:e(n)&&i.weakMap[\"delete\"](n)}}}t.MultiMap||(t.MultiMap=e)}(e),n.Dom={},n.Dom.closest=function(t,e,n){for(;null!=t&&t!==n;){if(1===t.nodeType&&e.indexOf(t.nodeName)>-1)return t;t=t.parentNode}return null},n.Dom.isChildOf=function(t,e){for(var n=t.parentNode;null!=n;){if(n==e)return!0;n=n.parentNode}return!1},n.Dom.index=function(t){for(var e=0;t=t.previousSibling;)++e;return e},document.documentElement.classList?(n.Dom.hasClass=function(t,e){return t.classList.contains(e)},n.Dom.addClass=function(t,e){t.classList.add(e)},n.Dom.removeClass=function(t,e){t.classList.remove(e)}):(n.Dom.hasClass=function(t,e){return t.className.match(new RegExp(\"(\\\\s|^)\"+e+\"(\\\\s|$)\"))},n.Dom.addClass=function(t,e){\"\"==t.className?t.className=e:this.hasClass(t,e)||(t.className+=\" \"+e)},n.Dom.removeClass=function(t,e){if(this.hasClass(t,e)){var n=new RegExp(\"(\\\\s|^)\"+e+\"(\\\\s|$)\");t.className=t.className.replace(n,\" \").trim()}}),n.Dom.removeTextNodes=function(t,e){if(3===t.nodeType)e.removeChild(t);else if([\"TABLE\",\"THEAD\",\"TBODY\",\"TFOOT\",\"TR\"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,i=n.length-1;i>=0;i--)this.removeTextNodes(n[i],t)},n.Dom.empty=function(t){for(var e;e=t.lastChild;)t.removeChild(e)},n.Dom.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,n.Dom.fastInnerHTML=function(t,e){this.HTML_CHARACTERS.test(e)?t.innerHTML=e:this.fastInnerText(t,e)},n.Dom.fastInnerText=document.createTextNode(\"test\").textContent?function(t,e){var n=t.firstChild;n&&3===n.nodeType&&null===n.nextSibling?n.textContent=e:(this.empty(t),t.appendChild(document.createTextNode(e)))}:function(t,e){var n=t.firstChild;n&&3===n.nodeType&&null===n.nextSibling?n.data=e:(this.empty(t),t.appendChild(document.createTextNode(e)))},n.Dom.isVisible=function(t){for(var e=t;e!==document.documentElement;){if(null===e)return!1;if(11===e.nodeType){if(e.host){if(e.host.impl)return n.Dom.isVisible(e.host.impl);if(e.host)return n.Dom.isVisible(e.host);throw new Error(\"Lost in Web Components world\")}return!1}if(\"none\"===e.style.display)return!1;e=e.parentNode}return!0},n.Dom.offset=function(t){if(this.hasCaptionProblem()&&t.firstChild&&\"CAPTION\"===t.firstChild.nodeName){var n=t.getBoundingClientRect();return{top:n.top+(e.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0),left:n.left+(e.pageXOffset||document.documentElement.scrollLeft)-(document.documentElement.clientLeft||0)}}for(var i=t.offsetLeft,r=t.offsetTop,o=t;(t=t.offsetParent)&&t!==document.body;)i+=t.offsetLeft,r+=t.offsetTop,o=t;return o&&\"fixed\"===o.style.position&&(i+=e.pageXOffset||document.documentElement.scrollLeft,r+=e.pageYOffset||document.documentElement.scrollTop),{left:i,top:r}},n.Dom.getWindowScrollTop=function(){var t=e.scrollY;return void 0==t&&(t=document.documentElement.scrollTop),t},n.Dom.getWindowScrollLeft=function(){var t=e.scrollX;return void 0==t&&(t=document.documentElement.scrollLeft),t},n.Dom.getScrollTop=function(t){return t===e?n.Dom.getWindowScrollTop(t):t.scrollTop},n.Dom.getScrollLeft=function(t){return t===e?n.Dom.getWindowScrollLeft(t):t.scrollLeft},n.Dom.getComputedStyle=function(t){return t.currentStyle||document.defaultView.getComputedStyle(t)},n.Dom.outerWidth=function(t){return t.offsetWidth},n.Dom.outerHeight=function(t){return this.hasCaptionProblem()&&t.firstChild&&\"CAPTION\"===t.firstChild.nodeName?t.offsetHeight+t.firstChild.offsetHeight:t.offsetHeight},n.Dom.innerHeight=function(t){return t.clientHeight},n.Dom.innerWidth=function(t){return t.innerWidth},function(){function t(){var t=document.createElement(\"TABLE\");t.style.borderSpacing=0,t.style.borderWidth=0,t.style.padding=0;var e=document.createElement(\"TBODY\");t.appendChild(e),e.appendChild(document.createElement(\"TR\")),e.firstChild.appendChild(document.createElement(\"TD\")),e.firstChild.firstChild.innerHTML=\"<tr><td>t<br>t</td></tr>\";var n=document.createElement(\"CAPTION\");n.innerHTML=\"c<br>c<br>c<br>c\",n.style.padding=0,n.style.margin=0,t.insertBefore(n,e),document.body.appendChild(t),i=t.offsetHeight<2*t.lastChild.offsetHeight,document.body.removeChild(t)}function e(){var t=document.createElement(\"p\");t.style.width=\"100%\",t.style.height=\"200px\";var e=document.createElement(\"div\");e.style.position=\"absolute\",e.style.top=\"0px\",e.style.left=\"0px\",e.style.visibility=\"hidden\",e.style.width=\"200px\",e.style.height=\"150px\",e.style.overflow=\"hidden\",e.appendChild(t),(document.body||document.documentElement).appendChild(e);var n=t.offsetWidth;e.style.overflow=\"scroll\";var i=t.offsetWidth;return n==i&&(i=e.clientWidth),(document.body||document.documentElement).removeChild(e),n-i}var i;n.Dom.hasCaptionProblem=function(){return void 0===i&&t(),i},n.Dom.getCaretPosition=function(t){if(t.selectionStart)return t.selectionStart;if(document.selection){t.focus();var e=document.selection.createRange();if(null==e)return 0;var n=t.createTextRange(),i=n.duplicate();return n.moveToBookmark(e.getBookmark()),i.setEndPoint(\"EndToStart\",n),i.text.length}return 0},n.Dom.getSelectionEndPosition=function(t){if(t.selectionEnd)return t.selectionEnd;if(document.selection){var e=document.selection.createRange();if(null==e)return 0;var n=t.createTextRange();return n.text.indexOf(e.text)+e.text.length}},n.Dom.setCaretPosition=function(t,e,n){if(void 0===n&&(n=e),t.setSelectionRange)t.focus(),t.setSelectionRange(e,n);else if(t.createTextRange){var i=t.createTextRange();i.collapse(!0),i.moveEnd(\"character\",n),i.moveStart(\"character\",e),i.select()}};var r;n.Dom.getScrollbarWidth=function(){return void 0===r&&(r=e()),r}}(),n.TableView=function(i){var r=this,o=t(document.documentElement);this.instance=i,this.settings=i.getSettings(),i.rootElement.data(\"originalStyle\",i.rootElement[0].getAttribute(\"style\")),i.rootElement.addClass(\"handsontable\");var s=document.createElement(\"TABLE\");s.className=\"htCore\",this.THEAD=document.createElement(\"THEAD\"),s.appendChild(this.THEAD),this.TBODY=document.createElement(\"TBODY\"),s.appendChild(this.TBODY),i.$table=t(s),i.container.prepend(i.$table),i.rootElement.on(\"mousedown.handsontable\",function(t){r.isTextSelectionAllowed(t.target)||(l(),t.preventDefault(),e.focus())}),o.on(\"keyup.\"+i.guid,function(t){i.selection.isInProgress()&&!t.shiftKey&&i.selection.finish()});var a;this.isMouseDown=function(){return a},o.on(\"mouseup.\"+i.guid,function(t){i.selection.isInProgress()&&1===t.which&&i.selection.finish(),a=!1,n.helper.isOutsideInput(document.activeElement)&&i.unlisten()}),o.on(\"mousedown.\"+i.guid,function(t){var e=t.target;if(!e.shadowRoot){if(e!==r.wt.wtTable.spreader)for(;e!==document.documentElement;){if(null===e)return;if(e===i.rootElement[0])return;e=e.parentNode}r.settings.outsideClickDeselects?i.deselectCell():i.destroyEditor()}}),i.$table.on(\"selectstart\",function(t){r.settings.fragmentSelection||t.preventDefault()});var l=function(){e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():document.selection&&document.selection.empty()},c={debug:function(){return r.settings.debug},table:s,stretchH:this.settings.stretchH,data:i.getDataAtCell,totalRows:i.countRows,totalColumns:i.countCols,offsetRow:0,fixedColumnsLeft:function(){return r.settings.fixedColumnsLeft},fixedRowsTop:function(){return r.settings.fixedRowsTop},renderAllRows:r.settings.renderAllRows,rowHeaders:function(){return i.hasRowHeaders()?[function(t,e){r.appendRowHeader(t,e)}]:[]},columnHeaders:function(){return i.hasColHeaders()?[function(t,e){r.appendColHeader(t,e)}]:[]},columnWidth:i.getColWidth,rowHeight:i.getRowHeight,cellRenderer:function(t,e,i){var o=r.instance.colToProp(e),s=r.instance.getCellMeta(t,e),a=r.instance.getCellRenderer(s),l=r.instance.getDataAtRowProp(t,o);a(r.instance,i,t,e,o,l,s),n.hooks.run(r.instance,\"afterRenderer\",i,t,e,o,l,s)},selections:[{className:\"current\",border:{width:2,color:\"#5292F7\",cornerVisible:function(){return r.settings.fillHandle&&!r.isCellEdited()&&!i.selection.isMultiple()}}},{className:\"area\",border:{width:1,color:\"#89AFF9\",cornerVisible:function(){return r.settings.fillHandle&&!r.isCellEdited()&&i.selection.isMultiple()}}},{className:\"highlight\",highlightRowClassName:r.settings.currentRowClassName,highlightColumnClassName:r.settings.currentColClassName},{className:\"fill\",border:{width:1,color:\"red\"}}],hideBorderOnMouseDownOver:function(){return r.settings.fragmentSelection},onCellMouseDown:function(t,e,o,s){i.listen(),r.activeWt=s,a=!0,2===t.button&&i.selection.inInSelection(e)||(t.shiftKey?e.row>=0&&e.col>=0&&i.selection.setRangeEnd(e):e.row<0||e.col<0?(e.row<0&&i.selectCell(0,e.col,i.countRows()-1,e.col),e.col<0&&i.selectCell(e.row,0,e.row,i.countCols()-1)):i.selection.setRangeStart(e)),n.hooks.run(i,\"afterOnCellMouseDown\",t,e,o),r.activeWt=r.wt},onCellMouseOver:function(t,e,o,s){r.activeWt=s,e.row>=0&&e.col>=0&&a&&i.selection.setRangeEnd(e),n.hooks.run(i,\"afterOnCellMouseOver\",t,e,o),r.activeWt=r.wt},onCellCornerMouseDown:function(t){t.preventDefault(),n.hooks.run(i,\"afterOnCellCornerMouseDown\",t)},beforeDraw:function(t){r.beforeRender(t)},onDraw:function(t){r.onDraw(t)},onScrollVertically:function(){i.runHooks(\"afterScrollVertically\")},onScrollHorizontally:function(){i.runHooks(\"afterScrollHorizontally\")}};n.hooks.run(i,\"beforeInitWalkontable\",c),this.wt=new v(c),this.activeWt=this.wt,t(r.wt.wtTable.spreader).on(\"mousedown.handsontable, contextmenu.handsontable\",function(t){t.target===r.wt.wtTable.spreader&&3===t.which&&t.stopPropagation()}),o.on(\"click.\"+i.guid,function(){r.settings.observeDOMVisibility&&r.wt.drawInterrupted&&(r.instance.forceFullRender=!0,r.render())})},n.TableView.prototype.isTextSelectionAllowed=function(t){return n.helper.isInput(t)?!0:this.settings.fragmentSelection&&n.Dom.isChildOf(t,this.TBODY)?!0:!1},n.TableView.prototype.isCellEdited=function(){var t=this.instance.getActiveEditor();return t&&t.isOpened()},n.TableView.prototype.beforeRender=function(t){t&&n.hooks.run(this.instance,\"beforeRender\",this.instance.forceFullRender)},n.TableView.prototype.onDraw=function(t){t&&n.hooks.run(this.instance,\"afterRender\",this.instance.forceFullRender)},n.TableView.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.rootElement.triggerHandler(\"render.handsontable\")},n.TableView.prototype.getCellAtCoords=function(t){var e=this.wt.wtTable.getCell(t);return 0>e?null:e},n.TableView.prototype.scrollViewport=function(t){this.wt.scrollViewport(t)},n.TableView.prototype.appendRowHeader=function(t,e){var i=document.createElement(\"DIV\"),r=document.createElement(\"SPAN\");i.className=\"relative\",r.className=\"rowHeader\",t>-1?n.Dom.fastInnerHTML(r,this.instance.getRowHeader(t)):n.Dom.fastInnerText(r,\"\u00a0\"),i.appendChild(r),n.Dom.empty(e),e.appendChild(i),n.hooks.run(this.instance,\"afterGetRowHeader\",t,e)},n.TableView.prototype.appendColHeader=function(t,e){var i=document.createElement(\"DIV\"),r=document.createElement(\"SPAN\");i.className=\"relative\",r.className=\"colHeader\",n.Dom.fastInnerHTML(r,this.instance.getColHeader(t)),i.appendChild(r),n.Dom.empty(e),e.appendChild(i),n.hooks.run(this.instance,\"afterGetColHeader\",t,e)},n.TableView.prototype.maximumVisibleElementWidth=function(t){this.wt.wtScrollbars.horizontal.readWindowSize();var e=this.wt.wtViewport.getWorkspaceWidth(),n=e-t;return n>0?n:0},n.TableView.prototype.maximumVisibleElementHeight=function(t){this.wt.wtScrollbars.vertical.readWindowSize();var e=this.wt.wtViewport.getWorkspaceHeight(),n=e-t;return n>0?n:0},n.TableView.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},function(t){function e(t){var e,n;n={},e=t,this.getInstance=function(t){return t.guid in n||(n[t.guid]=new e(t)),n[t.guid]}}var n={},i=new WeakMap;t.editors={registerEditor:function(t,r){var o=new e(r);\"string\"==typeof t&&(n[t]=o),i.set(r,o)},getEditor:function(t,e){var r;if(\"function\"==typeof t)i.get(t)||this.registerEditor(null,t),r=i.get(t);else{if(\"string\"!=typeof t)throw Error('Only strings and functions can be passed as \"editor\" parameter ');r=n[t]}if(!r)throw Error('No editor registered under name \"'+t+'\"');return r.getInstance(e)}}}(n),function(e){e.EditorManager=function(n,i,r){var o,s=this,a=t(document),l=e.helper.keyCode,c=!1,u=function(){function t(t){if(n.isListening()&&(i.settings.beforeOnKeyDown&&i.settings.beforeOnKeyDown.call(n,t),e.hooks.run(n,\"beforeKeyDown\",t),!c&&!t.isImmediatePropagationStopped()&&(i.lastKeyCode=t.keyCode,r.isSelected()))){var a=(t.ctrlKey||t.metaKey)&&!t.altKey;if(!(o.isWaiting()||e.helper.isMetaKey(t.keyCode)||a||s.isEditorOpened())){var u=t.keyCode,m=String.fromCharCode(u),y=u>=65&&90>=u?!0:!1,v=u>=97&&122>=u?!0:!1;return(y&&!t.shiftKey||v&&t.shiftKey)&&(m=m.toLowerCase()),s.openEditor(m),t.preventDefault(),void t.stopPropagation()}var b=t.shiftKey?r.setRangeEnd:r.setRangeStart;switch(t.keyCode){case l.A:if(a){r.selectAll(),t.preventDefault(),t.stopPropagation();break}case l.ARROW_UP:s.isEditorOpened()&&!o.isWaiting()&&s.closeEditorAndSaveChanges(a),p(t.shiftKey),t.preventDefault(),t.stopPropagation();break;case l.ARROW_DOWN:s.isEditorOpened()&&!o.isWaiting()&&s.closeEditorAndSaveChanges(a),d(t.shiftKey),t.preventDefault(),t.stopPropagation();break;case l.ARROW_RIGHT:s.isEditorOpened()&&!o.isWaiting()&&s.closeEditorAndSaveChanges(a),_(t.shiftKey),t.preventDefault(),t.stopPropagation();break;case l.ARROW_LEFT:s.isEditorOpened()&&!o.isWaiting()&&s.closeEditorAndSaveChanges(a),g(t.shiftKey),t.preventDefault(),t.stopPropagation();break;case l.TAB:var w=\"function\"==typeof i.settings.tabMoves?i.settings.tabMoves(t):i.settings.tabMoves;t.shiftKey?r.transformStart(-w.row,-w.col):r.transformStart(w.row,w.col,!0),t.preventDefault(),t.stopPropagation();break;case l.BACKSPACE:case l.DELETE:r.empty(t),s.prepareEditor(),t.preventDefault();break;case l.F2:s.openEditor(),t.preventDefault();break;case l.ENTER:s.isEditorOpened()?(o.state!==e.EditorState.WAITING&&s.closeEditorAndSaveChanges(a),h(t.shiftKey)):n.getSettings().enterBeginsEditing?s.openEditor():h(t.shiftKey),t.preventDefault(),t.stopImmediatePropagation();break;case l.ESCAPE:s.isEditorOpened()&&s.closeEditorAndRestoreOriginalValue(a),t.preventDefault();break;case l.HOME:b(t.ctrlKey||t.metaKey?new f(0,i.selRange.from.col):new f(i.selRange.from.row,0)),t.preventDefault(),t.stopPropagation();break;case l.END:b(t.ctrlKey||t.metaKey?new f(n.countRows()-1,i.selRange.from.col):new f(i.selRange.from.row,n.countCols()-1)),t.preventDefault(),t.stopPropagation();break;case l.PAGE_UP:r.transformStart(-n.countVisibleRows(),0),n.view.wt.scrollVertical(-n.countVisibleRows()),n.view.render(),t.preventDefault(),t.stopPropagation();break;case l.PAGE_DOWN:r.transformStart(n.countVisibleRows(),0),n.view.wt.scrollVertical(n.countVisibleRows()),n.view.render(),t.preventDefault(),t.stopPropagation()}}}function u(t,e,n){\"TD\"==n.nodeName&&s.openEditor()}function h(t){var e=\"function\"==typeof i.settings.enterMoves?i.settings.enterMoves(event):i.settings.enterMoves;t?r.transformStart(-e.row,-e.col):r.transformStart(e.row,e.col,!0)}function p(t){t?r.transformEnd(-1,0):r.transformStart(-1,0)}function d(t){t?r.transformEnd(1,0):r.transformStart(1,0)}function _(t){t?r.transformEnd(0,1):r.transformStart(0,1)}function g(t){t?r.transformEnd(0,-1):r.transformStart(0,-1)}n.addHook(\"afterDocumentKeyDown\",function(e){t(e)}),a.on(\"keydown.\"+n.guid,function(t){n.runHooks(\"afterDocumentKeyDown\",t)}),n.view.wt.update(\"onCellDblClick\",u),n.addHook(\"afterDestroy\",function(){c=!0})};this.destroyEditor=function(t){this.closeEditor(t)},this.getActiveEditor=function(){return o},this.prepareEditor=function(){if(o&&o.isWaiting())return void this.closeEditor(!1,!1,function(t){t&&s.prepareEditor()});var t=i.selRange.highlight.row,r=i.selRange.highlight.col,a=n.colToProp(r),l=n.getCell(t,r),c=n.getDataAtCell(t,r),u=n.getCellMeta(t,r),h=n.getCellEditor(u);o=e.editors.getEditor(h,n),o.prepare(t,r,a,l,c,u)},this.isEditorOpened=function(){return o.isOpened()},this.openEditor=function(t){o.cellProperties.readOnly||o.beginEditing(t)},this.closeEditor=function(t,e,n){o?o.finishEditing(t,e,n):n&&n(!1)},this.closeEditorAndSaveChanges=function(t){return this.closeEditor(!1,t)},this.closeEditorAndRestoreOriginalValue=function(t){return this.closeEditor(!0,t)},u()}}(n),function(t){var e={};t.renderers={registerRenderer:function(t,n){e[t]=n},getRenderer:function(t){if(\"function\"==typeof t)return t;if(\"string\"!=typeof t)throw Error('Only strings and functions can be passed as \"renderer\" parameter ');if(!(t in e))throw Error('No editor registered under name \"'+t+'\"');return e[t]}}}(n),n.helper.isPrintableChar=function(t){return 32==t||t>=48&&57>=t||t>=96&&111>=t||t>=186&&192>=t||t>=219&&222>=t||t>=226||t>=65&&90>=t},n.helper.isMetaKey=function(t){var e=n.helper.keyCode,i=[e.ARROW_DOWN,e.ARROW_UP,e.ARROW_LEFT,e.ARROW_RIGHT,e.HOME,e.END,e.DELETE,e.BACKSPACE,e.F1,e.F2,e.F3,e.F4,e.F5,e.F6,e.F7,e.F8,e.F9,e.F10,e.F11,e.F12,e.TAB,e.PAGE_DOWN,e.PAGE_UP,e.ENTER,e.ESCAPE,e.SHIFT,e.CAPS_LOCK,e.ALT];return-1!=i.indexOf(t)},n.helper.isCtrlKey=function(t){var e=n.helper.keyCode;return-1!=[e.CONTROL_LEFT,224,e.COMMAND_LEFT,e.COMMAND_RIGHT].indexOf(t)},n.helper.stringify=function(t){switch(typeof t){case\"string\":case\"number\":return t+\"\";case\"object\":return null===t?\"\":t.toString();case\"undefined\":return\"\";default:return t.toString()}},n.helper.spreadsheetColumnLabel=function(t){for(var e,n=t+1,i=\"\";n>0;)e=(n-1)%26,i=String.fromCharCode(65+e)+i,n=parseInt((n-e)/26,10);return i},n.helper.isNumeric=function(t){var e=typeof t;return\"number\"==e?!isNaN(t)&&isFinite(t):\"string\"==e?t.length?1==t.length?/\\d/.test(t):/^\\s*[+-]?\\s*(?:(?:\\d+(?:\\.\\d+)?(?:e[+-]?\\d+)?)|(?:0x[a-f\\d]+))\\s*$/i.test(t):!1:\"object\"==e?!(!t||\"number\"!=typeof t.valueOf()||t instanceof Date):!1},n.helper.isDescendant=function(t,e){for(var n=e.parentNode;null!=n;){if(n==t)return!0;n=n.parentNode}return!1},n.helper.randomString=function(){return x()},n.helper.inherit=function(t,e){return e.prototype.constructor=e,t.prototype=new e,t.prototype.constructor=t,t},n.helper.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},n.helper.getPrototypeOf=function(t){var e;if(\"object\"==typeof t.__proto__)e=t.__proto__;else{var n,i=t.constructor;\"function\"==typeof t.constructor&&(n=i,delete t.constructor&&(i=t.constructor,t.constructor=n)),e=i?i.prototype:null}return e},n.helper.columnFactory=function(t,e){function i(){}n.helper.inherit(i,t);for(var r=0,o=e.length;o>r;r++)i.prototype[e[r]]=void 0;return i},n.helper.translateRowsToColumns=function(t){var e,n,i,r,o=[],s=0;for(e=0,n=t.length;n>e;e++)for(i=0,r=t[e].length;r>i;i++)i==s&&(o.push([]),s++),o[i].push(t[e][i]);return o},n.helper.to2dArray=function(t){for(var e=0,n=t.length;n>e;)t[e]=[t[e]],e++},n.helper.extendArray=function(t,e){for(var n=0,i=e.length;i>n;)t.push(e[n]),n++},n.helper.isInput=function(t){var e=[\"INPUT\",\"SELECT\",\"TEXTAREA\"];return e.indexOf(t.nodeName)>-1},n.helper.isOutsideInput=function(t){return n.helper.isInput(t)&&-1==t.className.indexOf(\"handsontableInput\")},n.helper.keyCode={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL_LEFT:91,COMMAND_LEFT:17,COMMAND_RIGHT:93,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,X:88,C:67,V:86},n.helper.isObject=function(t){return\"[object Object]\"==Object.prototype.toString.call(t)},n.helper.isArray=function(t){return Array.isArray?Array.isArray(t):\"[object Array]\"==Object.prototype.toString.call(t)},n.helper.pivot=function(t){var e=[];if(!t||0==t.length||!t[0]||0==t[0].length)return e;for(var n=t.length,i=t[0].length,r=0;n>r;r++)for(var o=0;i>o;o++)e[o]||(e[o]=[]),e[o][r]=t[r][o];return e},n.helper.proxy=function(t,e){return function(){return t.apply(e,arguments)}},n.helper.cellMethodLookupFactory=function(t,e){function i(t){var e=n.cellTypes[t];if(\"undefined\"==typeof e)throw new Error('You declared cell type \"'+t+'\" as a string that is not mapped to a known object. Cell type must be an object or a string mapped to an object in Handsontable.cellTypes');return e}return e=\"undefined\"==typeof e?!0:e,function(r,o){return function s(r){if(r){if(r.hasOwnProperty(t)&&void 0!==r[t])return r[t];if(r.hasOwnProperty(\"type\")&&r.type){var o;if(\"string\"!=typeof r.type)throw new Error(\"Cell type must be a string \");if(o=i(r.type),o.hasOwnProperty(t))return o[t];if(e)return}return s(n.helper.getPrototypeOf(r))}}(\"number\"==typeof r?this.getCellMeta(r,o):r)}},n.helper.toString=function(t){return\"\"+t},function(e){e.DataMap=function(t,e,n){this.instance=t,this.priv=e,this.GridSettings=n,this.dataSource=this.instance.getSettings().data,this.duckSchema=this.dataSource[0]?this.recursiveDuckSchema(this.dataSource[0]):{},this.createMap()},e.DataMap.prototype.DESTINATION_RENDERER=1,e.DataMap.prototype.DESTINATION_CLIPBOARD_GENERATOR=2,e.DataMap.prototype.recursiveDuckSchema=function(e){var n;if(t.isPlainObject(e)){n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=t.isPlainObject(e[i])?this.recursiveDuckSchema(e[i]):null)}else n=[];return n},e.DataMap.prototype.recursiveDuckColumns=function(e,n,i){var r,o;if(\"undefined\"==typeof n&&(n=0,i=\"\"),t.isPlainObject(e))for(o in e)e.hasOwnProperty(o)&&(null===e[o]?(r=i+o,this.colToPropCache.push(r),this.propToColCache.set(r,n),n++):n=this.recursiveDuckColumns(e[o],n,o+\".\"));return n},e.DataMap.prototype.createMap=function(){if(\"undefined\"==typeof this.getSchema())throw new Error(\"trying to create `columns` definition but you didnt' provide `schema` nor `data`\");var t,e,n=this.getSchema();this.colToPropCache=[],this.propToColCache=new MultiMap;var i=this.instance.getSettings().columns;if(i)for(t=0,e=i.length;e>t;t++)\"undefined\"!=typeof i[t].data&&(this.colToPropCache[t]=i[t].data,this.propToColCache.set(i[t].data,t));else this.recursiveDuckColumns(n)},e.DataMap.prototype.colToProp=function(t){return t=e.hooks.execute(this.instance,\"modifyCol\",t),this.colToPropCache&&\"undefined\"!=typeof this.colToPropCache[t]?this.colToPropCache[t]:t},e.DataMap.prototype.propToCol=function(t){var n;return n=\"undefined\"!=typeof this.propToColCache.get(t)?this.propToColCache.get(t):t,n=e.hooks.execute(this.instance,\"modifyCol\",n)},e.DataMap.prototype.getSchema=function(){var t=this.instance.getSettings().dataSchema;return t?\"function\"==typeof t?t():t:this.duckSchema},e.DataMap.prototype.createRow=function(n,i,r){var o,s,a=this.instance.countCols(),l=0;i||(i=1),(\"number\"!=typeof n||n>=this.instance.countRows())&&(n=this.instance.countRows()),s=n;for(var c=this.instance.getSettings().maxRows;i>l&&this.instance.countRows()<c;){if(\"array\"===this.instance.dataType){o=[];for(var u=0;a>u;u++)o.push(null)}else o=\"function\"===this.instance.dataType?this.instance.getSettings().dataSchema(n):t.extend(!0,{},this.getSchema());n===this.instance.countRows()?this.dataSource.push(o):this.dataSource.splice(n,0,o),l++,s++}return e.hooks.run(this.instance,\"afterCreateRow\",n,l,r),this.instance.forceFullRender=!0,l},e.DataMap.prototype.createCol=function(t,n,i){if(\"object\"===this.instance.dataType||this.instance.getSettings().columns)throw new Error(\"Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.\");var r,o,s=this.instance.countRows(),a=this.dataSource,l=0;n||(n=1),o=t;for(var c=this.instance.getSettings().maxCols;n>l&&this.instance.countCols()<c;){if(r=e.helper.columnFactory(this.GridSettings,this.priv.columnsSettingConflicts),\"number\"!=typeof t||t>=this.instance.countCols()){for(var u=0;s>u;u++)\"undefined\"==typeof a[u]&&(a[u]=[]),a[u].push(null);this.priv.columnSettings.push(r)}else{for(var u=0;s>u;u++)a[u].splice(o,0,null);this.priv.columnSettings.splice(o,0,r)}l++,o++}return e.hooks.run(this.instance,\"afterCreateCol\",t,l,i),this.instance.forceFullRender=!0,l},e.DataMap.prototype.removeRow=function(t,n){n||(n=1),\"number\"!=typeof t&&(t=-n),t=(this.instance.countRows()+t)%this.instance.countRows();var i=this.physicalRowsToLogical(t,n),r=e.hooks.execute(this.instance,\"beforeRemoveRow\",t,n);if(r!==!1){var o=this.dataSource,s=o.filter(function(t,e){return-1==i.indexOf(e)});o.length=0,Array.prototype.push.apply(o,s),e.hooks.run(this.instance,\"afterRemoveRow\",t,n),this.instance.forceFullRender=!0\n",
" }},e.DataMap.prototype.removeCol=function(t,n){if(\"object\"===this.instance.dataType||this.instance.getSettings().columns)throw new Error(\"cannot remove column with object data source or columns option specified\");n||(n=1),\"number\"!=typeof t&&(t=-n),t=(this.instance.countCols()+t)%this.instance.countCols();var i=e.hooks.execute(this.instance,\"beforeRemoveCol\",t,n);if(i!==!1){for(var r=this.dataSource,o=0,s=this.instance.countRows();s>o;o++)r[o].splice(t,n);this.priv.columnSettings.splice(t,n),e.hooks.run(this.instance,\"afterRemoveCol\",t,n),this.instance.forceFullRender=!0}},e.DataMap.prototype.spliceCol=function(t,n,i){var r=4<=arguments.length?[].slice.call(arguments,3):[],o=this.instance.getDataAtCol(t),s=o.slice(n,n+i),a=o.slice(n+i);e.helper.extendArray(r,a);for(var l=0;i>l;)r.push(null),l++;return e.helper.to2dArray(r),this.instance.populateFromArray(n,t,r,null,null,\"spliceCol\"),s},e.DataMap.prototype.spliceRow=function(t,n,i){var r=4<=arguments.length?[].slice.call(arguments,3):[],o=this.instance.getSourceDataAtRow(t),s=o.slice(n,n+i),a=o.slice(n+i);e.helper.extendArray(r,a);for(var l=0;i>l;)r.push(null),l++;return this.instance.populateFromArray(t,n,[r],null,null,\"spliceRow\"),s},e.DataMap.prototype.get=function(t,n){if(t=e.hooks.execute(this.instance,\"modifyRow\",t),\"string\"==typeof n&&n.indexOf(\".\")>-1){var i=n.split(\".\"),r=this.dataSource[t];if(!r)return null;for(var o=0,s=i.length;s>o;o++)if(r=r[i[o]],\"undefined\"==typeof r)return null;return r}return\"function\"==typeof n?n(this.dataSource.slice(t,t+1)[0]):this.dataSource[t]?this.dataSource[t][n]:null};var n=e.helper.cellMethodLookupFactory(\"copyable\",!1);e.DataMap.prototype.getCopyable=function(t,e){return n.call(this.instance,t,this.propToCol(e))?this.get(t,e):\"\"},e.DataMap.prototype.set=function(t,n,i,r){if(t=e.hooks.execute(this.instance,\"modifyRow\",t,r||\"datamapGet\"),\"string\"==typeof n&&n.indexOf(\".\")>-1){for(var o=n.split(\".\"),s=this.dataSource[t],a=0,l=o.length-1;l>a;a++)s=s[o[a]];s[o[a]]=i}else\"function\"==typeof n?n(this.dataSource.slice(t,t+1)[0],i):this.dataSource[t][n]=i},e.DataMap.prototype.physicalRowsToLogical=function(t,n){for(var i,r=this.instance.countRows(),o=(r+t)%r,s=[],a=n;r>o&&a;)i=e.hooks.execute(this.instance,\"modifyRow\",o),s.push(i),a--,o++;return s},e.DataMap.prototype.clear=function(){for(var t=0;t<this.instance.countRows();t++)for(var e=0;e<this.instance.countCols();e++)this.set(t,this.colToProp(e),\"\")},e.DataMap.prototype.getAll=function(){return this.dataSource},e.DataMap.prototype.getRange=function(t,e,n){var i,r,o,s,a,l=[],c=n===this.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get;for(r=Math.max(t.row,e.row),s=Math.max(t.col,e.col),i=Math.min(t.row,e.row);r>=i;i++){for(a=[],o=Math.min(t.col,e.col);s>=o;o++)a.push(c.call(this,i,this.colToProp(o)));l.push(a)}return l},e.DataMap.prototype.getText=function(t,e){return SheetClip.stringify(this.getRange(t,e,this.DESTINATION_RENDERER))},e.DataMap.prototype.getCopyableText=function(t,e){return SheetClip.stringify(this.getRange(t,e,this.DESTINATION_CLIPBOARD_GENERATOR))}}(n),function(t){t.renderers.cellDecorator=function(e,n,i,r,o,s,a){a.className&&(n.className=n.className?n.className+\" \"+a.className:a.className),a.readOnly&&t.Dom.addClass(n,a.readOnlyCellClassName),a.valid===!1&&a.invalidCellClassName&&t.Dom.addClass(n,a.invalidCellClassName),a.wordWrap===!1&&a.noWordWrapClassName&&t.Dom.addClass(n,a.noWordWrapClassName),!s&&a.placeholder&&t.Dom.addClass(n,a.placeholderCellClassName)}}(n),function(t){var e=function(e,n,i,r,o,s,a){t.renderers.cellDecorator.apply(this,arguments),!s&&a.placeholder&&(s=a.placeholder);var l=t.helper.stringify(s);if(a.rendererTemplate){t.Dom.empty(n);var c=document.createElement(\"TEMPLATE\");c.setAttribute(\"bind\",\"{{}}\"),c.innerHTML=a.rendererTemplate,HTMLTemplateElement.decorate(c),c.model=e.getSourceDataAtRow(i),n.appendChild(c)}else t.Dom.fastInnerText(n,l)};t.renderers.TextRenderer=e,t.renderers.registerRenderer(\"text\",e)}(n),function(t){var e=document.createElement(\"DIV\");e.className=\"htAutocompleteWrapper\";var n=document.createElement(\"DIV\");n.className=\"htAutocompleteArrow\",n.appendChild(document.createTextNode(\"\u25bc\"));var i=function(i,r,o,s,a,l,c){var u=(e.cloneNode(!0),n.cloneNode(!0));t.renderers.TextRenderer(i,r,o,s,a,l,c),r.appendChild(u),t.Dom.addClass(r,\"htAutocomplete\"),r.firstChild||r.appendChild(document.createTextNode(\"\u00a0\")),i.acArrowListener||(i.acArrowListener=function(){i.view.wt.getSetting(\"onCellDblClick\",null,new f(o,s),r)},i.rootElement.on(\"mousedown.htAutocompleteArrow\",\".htAutocompleteArrow\",i.acArrowListener),i.addHookOnce(\"afterDestroy\",function(){this.rootElement.off(\"mousedown.htAutocompleteArrow\")}))};t.AutocompleteRenderer=i,t.renderers.AutocompleteRenderer=i,t.renderers.registerRenderer(\"autocomplete\",i)}(n),function(e){var n=document.createElement(\"INPUT\");n.className=\"htCheckboxRendererInput\",n.type=\"checkbox\",n.setAttribute(\"autocomplete\",\"off\");var i=function(i,r,o,s,a,l,c){\"undefined\"==typeof c.checkedTemplate&&(c.checkedTemplate=!0),\"undefined\"==typeof c.uncheckedTemplate&&(c.uncheckedTemplate=!1),e.Dom.empty(r);var u=n.cloneNode(!1);l===c.checkedTemplate||l===e.helper.stringify(c.checkedTemplate)?(u.checked=!0,r.appendChild(u)):l===c.uncheckedTemplate||l===e.helper.stringify(c.uncheckedTemplate)?r.appendChild(u):null===l?(u.className+=\" noValue\",r.appendChild(u)):e.Dom.fastInnerText(r,\"#bad value#\");var h=t(u);c.readOnly?h.on(\"click\",function(t){t.preventDefault()}):(h.on(\"mousedown\",function(t){t.stopPropagation()}),h.on(\"mouseup\",function(t){t.stopPropagation()}),h.on(\"change\",function(){this.checked?i.setDataAtRowProp(o,a,c.checkedTemplate):i.setDataAtRowProp(o,a,c.uncheckedTemplate)})),i.CheckboxRenderer&&i.CheckboxRenderer.beforeKeyDownHookBound||(i.CheckboxRenderer={beforeKeyDownHookBound:!0},i.addHook(\"beforeKeyDown\",function(n){if(n.keyCode==e.helper.keyCode.SPACE)for(var r,o,s,a=i.getSelectedRange(),l=a.getTopLeftCorner(),c=a.getBottomRightCorner(),u=l.row;u<=c.row;u++)for(var h=l.col;h<=c.col;h++)if(r=i.getCell(u,h),s=i.getCellMeta(u,h),o=r.querySelectorAll(\"input[type=checkbox]\"),o.length>0&&!s.readOnly){n.isImmediatePropagationStopped()||(n.stopImmediatePropagation(),n.preventDefault());for(var p=0,d=o.length;d>p;p++)o[p].checked=!o[p].checked,t(o[p]).trigger(\"change\")}}))};e.CheckboxRenderer=i,e.renderers.CheckboxRenderer=i,e.renderers.registerRenderer(\"checkbox\",i)}(n),function(t){var e=function(e,n,i,r,o,s,a){t.helper.isNumeric(s)&&(\"undefined\"!=typeof a.language&&numeral.language(a.language),s=numeral(s).format(a.format||\"0\"),t.Dom.addClass(n,\"htNumeric\")),t.renderers.TextRenderer(e,n,i,r,o,s,a)};t.NumericRenderer=e,t.renderers.NumericRenderer=e,t.renderers.registerRenderer(\"numeric\",e)}(n),function(t){var e=function(t,e,i,r,o,s,a){n.renderers.TextRenderer.apply(this,arguments),s=e.innerHTML;var l,c=a.hashLength||s.length,u=a.hashSymbol||\"*\";for(l=\"\";l.split(u).length-1<c;l+=u);n.Dom.fastInnerHTML(e,l)};t.PasswordRenderer=e,t.renderers.PasswordRenderer=e,t.renderers.registerRenderer(\"password\",e)}(n),function(t){function e(e,n,i,r,o,s){t.renderers.cellDecorator.apply(this,arguments),t.Dom.fastInnerHTML(n,s)}t.renderers.registerRenderer(\"html\",e),t.renderers.HtmlRenderer=e}(n),function(t){function e(e){this.instance=e,this.state=t.EditorState.VIRGIN,this._opened=!1,this._closeCallback=null,this.init()}t.EditorState={VIRGIN:\"STATE_VIRGIN\",EDITING:\"STATE_EDITING\",WAITING:\"STATE_WAITING\",FINISHED:\"STATE_FINISHED\"},e.prototype._fireCallbacks=function(t){this._closeCallback&&(this._closeCallback(t),this._closeCallback=null)},e.prototype.init=function(){},e.prototype.getValue=function(){throw Error(\"Editor getValue() method unimplemented\")},e.prototype.setValue=function(){throw Error(\"Editor setValue() method unimplemented\")},e.prototype.open=function(){throw Error(\"Editor open() method unimplemented\")},e.prototype.close=function(){throw Error(\"Editor close() method unimplemented\")},e.prototype.prepare=function(e,n,i,r,o,s){this.TD=r,this.row=e,this.col=n,this.prop=i,this.originalValue=o,this.cellProperties=s,this.state=t.EditorState.VIRGIN},e.prototype.extend=function(){function t(){n.apply(this,arguments)}function e(t,e){function n(){}return n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t}var n=this.constructor;return e(t,n)},e.prototype.saveValue=function(t,e){if(e){var n=this.instance.getSelected();this.instance.populateFromArray(n[0],n[1],t,n[2],n[3],\"edit\")}else this.instance.populateFromArray(this.row,this.col,t,null,null,\"edit\")},e.prototype.beginEditing=function(e){this.state==t.EditorState.VIRGIN&&(this.instance.view.scrollViewport(new f(this.row,this.col)),this.instance.view.render(),this.state=t.EditorState.EDITING,e=\"string\"==typeof e?e:this.originalValue,this.setValue(t.helper.stringify(e)),this.open(),this._opened=!0,this.focus(),this.instance.view.render())},e.prototype.finishEditing=function(e,n,i){if(i){var r=this._closeCallback;this._closeCallback=function(t){r&&r(t),i(t)}}if(!this.isWaiting()){if(this.state==t.EditorState.VIRGIN){var o=this;return void this.instance._registerTimeout(setTimeout(function(){o._fireCallbacks(!0)},0))}if(this.state==t.EditorState.EDITING){if(e)return void this.cancelChanges();var s=[[String.prototype.trim.call(this.getValue())]];if(this.state=t.EditorState.WAITING,this.saveValue(s,n),this.instance.getCellValidator(this.cellProperties)){var o=this;this.instance.addHookOnce(\"afterValidate\",function(e){o.state=t.EditorState.FINISHED,o.discardEditor(e)})}else this.state=t.EditorState.FINISHED,this.discardEditor(!0)}}},e.prototype.cancelChanges=function(){this.state=t.EditorState.FINISHED,this.discardEditor()},e.prototype.discardEditor=function(e){this.state===t.EditorState.FINISHED&&(e===!1&&this.cellProperties.allowInvalid!==!0?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=t.EditorState.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this.state=t.EditorState.VIRGIN,this._fireCallbacks(!0)))},e.prototype.isOpened=function(){return this._opened},e.prototype.isWaiting=function(){return this.state===t.EditorState.WAITING},t.editors.BaseEditor=e}(n),function(n){var i=n.editors.BaseEditor.prototype.extend();i.prototype.init=function(){this.createElements(),this.bindEvents(),this.autoResize=z()},i.prototype.getValue=function(){return this.TEXTAREA.value},i.prototype.setValue=function(t){this.TEXTAREA.value=t};var r=function(t){var e=this,i=e.getActiveEditor(),r=n.helper.keyCode,o=(t.ctrlKey||t.metaKey)&&!t.altKey;if(t.target===i.TEXTAREA&&!t.isImmediatePropagationStopped()){if(17===t.keyCode||224===t.keyCode||91===t.keyCode||93===t.keyCode)return void t.stopImmediatePropagation();switch(t.keyCode){case r.ARROW_RIGHT:n.Dom.getCaretPosition(i.TEXTAREA)!==i.TEXTAREA.value.length&&t.stopImmediatePropagation();break;case r.ARROW_LEFT:0!==n.Dom.getCaretPosition(i.TEXTAREA)&&t.stopImmediatePropagation();break;case r.ENTER:var s=i.instance.getSelected(),a=!(s[0]===s[2]&&s[1]===s[3]);(o&&!a||t.altKey)&&(i.isOpened()?(i.setValue(i.getValue()+\"\\n\"),i.focus()):i.beginEditing(i.originalValue+\"\\n\"),t.stopImmediatePropagation()),t.preventDefault();break;case r.A:case r.X:case r.C:case r.V:if(o){t.stopImmediatePropagation();break}case r.BACKSPACE:case r.DELETE:case r.HOME:case r.END:t.stopImmediatePropagation()}}};i.prototype.open=function(){this.refreshDimensions(),this.instance.addHook(\"beforeKeyDown\",r)},i.prototype.close=function(){this.textareaParentStyle.display=\"none\",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook(\"beforeKeyDown\",r)},i.prototype.focus=function(){this.TEXTAREA.focus(),n.Dom.setCaretPosition(this.TEXTAREA,this.TEXTAREA.value.length)},i.prototype.createElements=function(){this.$body=t(document.body),this.TEXTAREA=document.createElement(\"TEXTAREA\"),this.$textarea=t(this.TEXTAREA),n.Dom.addClass(this.TEXTAREA,\"handsontableInput\"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement(\"DIV\"),n.Dom.addClass(this.TEXTAREA_PARENT,\"handsontableInputHolder\"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.top=0,this.textareaParentStyle.left=0,this.textareaParentStyle.display=\"none\",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.instance.rootElement[0].appendChild(this.TEXTAREA_PARENT);var e=this;this.instance._registerTimeout(setTimeout(function(){e.refreshDimensions()},0))},i.prototype.checkEditorSection=function(){return this.row<this.instance.getSettings().fixedRowsTop?this.col<this.instance.getSettings().fixedColumnsLeft?\"corner\":\"top\":this.col<this.instance.getSettings().fixedColumnsLeft?\"left\":void 0},i.prototype.getEditedCell=function(){var t,e=this.checkEditorSection();switch(e){case\"top\":t=this.instance.view.wt.wtScrollbars.vertical.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case\"corner\":t=this.instance.view.wt.wtScrollbars.corner.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case\"left\":t=this.instance.view.wt.wtScrollbars.horizontal.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:t=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=\"\"}return-1!=t&&-2!=t?t:void 0},i.prototype.refreshDimensions=function(){if(this.state===n.EditorState.EDITING&&(this.TD=this.getEditedCell(),this.TD)){{var i=t(this.TD),r=n.Dom.offset(this.TD),o=n.Dom.offset(this.instance.rootElement[0]),s=r.top-o.top-1,a=r.left-o.left-1,l=this.instance.getSettings(),c=l.rowHeaders===!1?0:1,u=l.colHeaders===!1?0:1;this.checkEditorSection()}0>s&&(s=0),0>a&&(a=0),c>0&&parseInt(i.css(\"border-top-width\"),10)>0&&(s+=1),u>0&&parseInt(i.css(\"border-left-width\"),10)>0&&(a+=1),this.textareaParentStyle.top=s+\"px\",this.textareaParentStyle.left=a+\"px\";var h=this.TD.offsetTop,p=this.TD.offsetLeft-this.instance.view.wt.wtScrollbars.horizontal.getScrollPosition(),d=i.width(),f=this.instance.view.maximumVisibleElementWidth(p)-10,_=i.outerHeight()-4,g=this.instance.view.maximumVisibleElementHeight(h)-2;parseInt(i.css(\"border-top-width\"),10)>0&&(_-=1),parseInt(i.css(\"border-left-width\"),10)>0&&c>0&&(d-=1),this.autoResize.init(this.$textarea[0],{fontSize:parseInt(e.getComputedStyle(i[0]).fontSize,10),minHeight:Math.min(_,g),maxHeight:g,minWidth:Math.min(d,f),maxWidth:f}),this.textareaParentStyle.display=\"block\"}},i.prototype.bindEvents=function(){var t=this;this.$textarea.on(\"cut.editor\",function(t){t.stopPropagation()}),this.$textarea.on(\"paste.editor\",function(t){t.stopPropagation()}),this.instance.addHook(\"afterScrollVertically\",function(){t.refreshDimensions()})},n.editors.TextEditor=i,n.editors.registerEditor(\"text\",n.editors.TextEditor)}(n),function(e){var n=e.editors.BaseEditor.prototype.extend();n.prototype.beginEditing=function(){var e=this.TD.querySelector('input[type=\"checkbox\"]');e&&t(e).trigger(\"click\")},n.prototype.finishEditing=function(){},n.prototype.init=function(){},n.prototype.open=function(){},n.prototype.close=function(){},n.prototype.getValue=function(){},n.prototype.setValue=function(){},n.prototype.focus=function(){},e.editors.CheckboxEditor=n,e.editors.registerEditor(\"checkbox\",n)}(n),function(e){var n=e.editors.TextEditor.prototype.extend();n.prototype.init=function(){if(!t.datepicker)throw new Error(\"jQuery UI Datepicker dependency not found. Did you forget to include jquery-ui.custom.js or its substitute?\");e.editors.TextEditor.prototype.init.apply(this,arguments),this.isCellEdited=!1;var n=this;this.instance.addHook(\"afterDestroy\",function(){n.destroyElements()})},n.prototype.createElements=function(){e.editors.TextEditor.prototype.createElements.apply(this,arguments),this.datePicker=document.createElement(\"DIV\"),e.Dom.addClass(this.datePicker,\"htDatepickerHolder\"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position=\"absolute\",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=99,document.body.appendChild(this.datePicker),this.$datePicker=t(this.datePicker);var n=this,i={dateFormat:\"yy-mm-dd\",showButtonPanel:!0,changeMonth:!0,changeYear:!0,onSelect:function(t){n.setValue(t),n.finishEditing(!1)}};this.$datePicker.datepicker(i),this.$datePicker.on(\"mousedown\",function(t){t.stopPropagation()}),this.hideDatepicker()},n.prototype.destroyElements=function(){this.$datePicker.datepicker(\"destroy\"),this.$datePicker.remove()},n.prototype.open=function(){e.editors.TextEditor.prototype.open.call(this),this.showDatepicker()},n.prototype.finishEditing=function(){this.hideDatepicker(),e.editors.TextEditor.prototype.finishEditing.apply(this,arguments)},n.prototype.showDatepicker=function(){var e=t(this.TD),n=e.offset();this.datePickerStyle.top=n.top+e.height()+\"px\",this.datePickerStyle.left=n.left+\"px\";var i={defaultDate:this.originalValue||void 0};t.extend(i,this.cellProperties),this.$datePicker.datepicker(\"option\",i),this.originalValue&&this.$datePicker.datepicker(\"setDate\",this.originalValue),this.datePickerStyle.display=\"block\"},n.prototype.hideDatepicker=function(){this.datePickerStyle.display=\"none\"},e.editors.DateEditor=n,e.editors.registerEditor(\"date\",n)}(n),function(e){var n=e.editors.TextEditor.prototype.extend();n.prototype.createElements=function(){e.editors.TextEditor.prototype.createElements.apply(this,arguments);var n=document.createElement(\"DIV\");n.className=\"handsontableEditor\",this.TEXTAREA_PARENT.appendChild(n),this.$htContainer=t(n),this.$htContainer.handsontable()},n.prototype.prepare=function(n,i,r,o,s,a){e.editors.TextEditor.prototype.prepare.apply(this,arguments);var l=this,c={startRows:0,startCols:0,minRows:0,minCols:0,className:\"listbox\",copyPaste:!1,cells:function(){return{readOnly:!0}},fillHandle:!1,afterOnCellMouseDown:function(){var t=this.getValue();void 0!==t&&l.setValue(t),l.instance.destroyEditor()}};this.cellProperties.handsontable&&(c=t.extend(c,a.handsontable)),this.$htContainer.handsontable(\"destroy\"),this.$htContainer.handsontable(c)};var i=function(t){if(!t.isImmediatePropagationStopped()){var n,i=this.getActiveEditor(),r=i.$htContainer.handsontable(\"getInstance\");if(t.keyCode==e.helper.keyCode.ARROW_DOWN)if(r.getSelected()){var o=r.getSelected()[0],s=r.countRows()-1;n=Math.min(s,o+1)}else n=0;else if(t.keyCode==e.helper.keyCode.ARROW_UP&&r.getSelected()){var o=r.getSelected()[0];n=o-1}void 0!==n&&(0>n?r.deselectCell():r.selectCell(n,0),t.preventDefault(),t.stopImmediatePropagation(),i.instance.listen(),i.TEXTAREA.focus())}};n.prototype.open=function(){this.instance.addHook(\"beforeKeyDown\",i),e.editors.TextEditor.prototype.open.apply(this,arguments),this.$htContainer.handsontable(\"render\"),this.cellProperties.strict?(this.$htContainer.handsontable(\"selectCell\",0,0),this.$textarea[0].style.visibility=\"hidden\"):(this.$htContainer.handsontable(\"deselectCell\"),this.$textarea[0].style.visibility=\"visible\"),e.Dom.setCaretPosition(this.$textarea[0],0,this.$textarea[0].value.length)},n.prototype.close=function(){this.instance.removeHook(\"beforeKeyDown\",i),this.instance.listen(),e.editors.TextEditor.prototype.close.apply(this,arguments)},n.prototype.focus=function(){this.instance.listen(),e.editors.TextEditor.prototype.focus.apply(this,arguments)},n.prototype.beginEditing=function(){var t=this.instance.getSettings().onBeginEditing;t&&t()===!1||e.editors.TextEditor.prototype.beginEditing.apply(this,arguments)},n.prototype.finishEditing=function(){if(this.$htContainer.handsontable(\"isListening\")&&this.instance.listen(),this.$htContainer.handsontable(\"getSelected\")){var t=this.$htContainer.handsontable(\"getInstance\").getValue();void 0!==t&&this.setValue(t)}return e.editors.TextEditor.prototype.finishEditing.apply(this,arguments)},e.editors.HandsontableEditor=n,e.editors.registerEditor(\"handsontable\",n)}(n),function(t){var n=t.editors.HandsontableEditor.prototype.extend();n.prototype.init=function(){t.editors.HandsontableEditor.prototype.init.apply(this,arguments),this.query=null,this.choices=[]},n.prototype.createElements=function(){t.editors.HandsontableEditor.prototype.createElements.apply(this,arguments);var n=function(){return-1!=e.navigator.platform.indexOf(\"Mac\")?\"htMacScroll\":\"\"};this.$htContainer.addClass(\"autocompleteEditor\"),this.$htContainer.addClass(n())},n.prototype.bindEvents=function(){var e=this;this.$textarea.on(\"keydown.autocompleteEditor\",function(n){var i=t.helper.keyCode;n.keyCode!==i.ARROW_DOWN&&n.keyCode!==i.ARROW_UP&&e.instance._registerTimeout(setTimeout(function(){e.queryChoices(e.TEXTAREA.value)},0))})},n.prototype.open=function(){t.editors.HandsontableEditor.prototype.open.apply(this,arguments),this.$textarea[0].style.visibility=\"visible\",this.focus();var e=this.$htContainer.handsontable(\"getInstance\"),n=this;e.updateSettings({colWidths:[t.Dom.outerWidth(this.TEXTAREA)-2],afterRenderer:function(t,e,i,r,o){var s=this.getCellMeta(e,i).filteringCaseSensitive===!0,a=s?o.indexOf(this.query):o.toLowerCase().indexOf(n.query.toLowerCase());if(-1!=a){var l=o.substr(a,n.query.length);t.innerHTML=o.replace(l,\"<strong>\"+l+\"</strong>\")}}}),this.queryChoices(this.TEXTAREA.value)},n.prototype.close=function(){t.editors.HandsontableEditor.prototype.close.apply(this,arguments)},n.prototype.queryChoices=function(e){if(this.query=e,\"function\"==typeof this.cellProperties.source){var n=this;this.cellProperties.source(e,function(t){n.updateChoicesList(t)})}else if(t.helper.isArray(this.cellProperties.source)){var i;if(e&&this.cellProperties.filter!==!1){var r=this.cellProperties.filteringCaseSensitive===!0,o=e.toLowerCase();i=this.cellProperties.source.filter(function(t){return r?-1!=t.indexOf(e):-1!=t.toLowerCase().indexOf(o)})}else i=this.cellProperties.source;this.updateChoicesList(i)}else this.updateChoicesList([])},n.prototype.updateChoicesList=function(e){var n=t.Dom.getCaretPosition(this.TEXTAREA),i=t.Dom.getSelectionEndPosition(this.TEXTAREA);this.choices=e,this.$htContainer.handsontable(\"loadData\",t.helper.pivot([e])),this.$htContainer.handsontable(\"updateSettings\",{height:this.getDropdownHeight()}),this.cellProperties.strict===!0&&this.highlightBestMatchingChoice(),this.instance.listen(),this.TEXTAREA.focus(),t.Dom.setCaretPosition(this.TEXTAREA,n,n!=i?i:void 0)},n.prototype.highlightBestMatchingChoice=function(){var t=this.findBestMatchingChoice();\"undefined\"==typeof t&&this.cellProperties.allowInvalid===!1&&(t=0),\"undefined\"==typeof t?this.$htContainer.handsontable(\"deselectCell\"):this.$htContainer.handsontable(\"selectCell\",t,0)},n.prototype.findBestMatchingChoice=function(){for(var t,e,n,i={},r=this.getValue().length,o=0,s=this.choices.length;s>o;o++)t=this.choices[o],e=r>0?t.indexOf(this.getValue()):t===this.getValue()?0:-1,-1!=e&&(n=t.length-e-r,(\"undefined\"==typeof i.indexOfValue||i.indexOfValue>e||i.indexOfValue==e&&i.charsLeft>n)&&(i.indexOfValue=e,i.charsLeft=n,i.index=o));return i.index},n.prototype.getDropdownHeight=function(){var t=this.$htContainer.handsontable(\"getInstance\").getRowHeight(0)||23;return this.choices.length>=10?10*t:this.choices.length*t+8},t.editors.AutocompleteEditor=n,t.editors.registerEditor(\"autocomplete\",n)}(n),function(e){var n=e.editors.TextEditor.prototype.extend();n.prototype.createElements=function(){e.editors.TextEditor.prototype.createElements.apply(this,arguments),this.TEXTAREA=document.createElement(\"input\"),this.TEXTAREA.setAttribute(\"type\",\"password\"),this.TEXTAREA.className=\"handsontableInput\",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.$textarea=t(this.TEXTAREA),e.Dom.empty(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)},e.editors.PasswordEditor=n,e.editors.registerEditor(\"password\",n)}(n),function(t){var e=t.editors.BaseEditor.prototype.extend();e.prototype.init=function(){this.select=document.createElement(\"SELECT\"),t.Dom.addClass(this.select,\"htSelectEditor\"),this.select.style.display=\"none\",this.instance.rootElement[0].appendChild(this.select)},e.prototype.prepare=function(){t.editors.BaseEditor.prototype.prepare.apply(this,arguments);var e,n=this.cellProperties.selectOptions;e=this.prepareOptions(\"function\"==typeof n?n(this.row,this.col,this.prop):n),t.Dom.empty(this.select);for(var i in e)if(e.hasOwnProperty(i)){var r=document.createElement(\"OPTION\");r.value=i,t.Dom.fastInnerHTML(r,e[i]),this.select.appendChild(r)}},e.prototype.prepareOptions=function(e){var n={};if(t.helper.isArray(e))for(var i=0,r=e.length;r>i;i++)n[e[i]]=e[i];else\"object\"==typeof e&&(n=e);return n},e.prototype.getValue=function(){return this.select.value},e.prototype.setValue=function(t){this.select.value=t};var n=function(e){var n=this,i=n.getActiveEditor();switch(e.keyCode){case t.helper.keyCode.ARROW_UP:var r=i.select.find(\"option:selected\").prev();1==r.length&&r.prop(\"selected\",!0),e.stopImmediatePropagation(),e.preventDefault();break;case t.helper.keyCode.ARROW_DOWN:var o=i.select.find(\"option:selected\").next();1==o.length&&o.prop(\"selected\",!0),e.stopImmediatePropagation(),e.preventDefault()}};e.prototype.open=function(){var e=t.Dom.outerWidth(this.TD),i=t.Dom.outerHeight(this.TD),r=t.Dom.offset(this.instance.rootElement[0]),o=t.Dom.offset(this.TD);this.select.style.height=i+\"px\",this.select.style.minWidth=e+\"px\",this.select.style.top=o.top-r.top+\"px\",this.select.style.left=o.left-r.left+\"px\",this.select.style.margin=\"0px\",this.select.style.display=\"\",this.instance.addHook(\"beforeKeyDown\",n)},e.prototype.close=function(){this.select.style.display=\"none\",this.instance.removeHook(\"beforeKeyDown\",n)},e.prototype.focus=function(){this.select.focus()},t.editors.SelectEditor=e,t.editors.registerEditor(\"select\",e)}(n),function(t){var e=t.editors.AutocompleteEditor.prototype.extend();e.prototype.prepare=function(){t.editors.AutocompleteEditor.prototype.prepare.apply(this,arguments),this.cellProperties.filter=!1,this.cellProperties.strict=!0},t.editors.DropdownEditor=e,t.editors.registerEditor(\"dropdown\",e)}(n),n.NumericValidator=function(t,e){null===t&&(t=\"\"),e(/^-?\\d*(\\.|\\,)?\\d*$/.test(t))};var I=function(t,e){var n=t,i=\"string\"==typeof n?n.toLowerCase():null;return function(t){for(var r=!1,o=0,s=t.length;s>o;o++){if(n===t[o]){r=!0;break}if(i===t[o].toLowerCase()){r=!0;break}}e(r)}};n.AutocompleteValidator=function(t,e){this.strict&&this.source?\"function\"==typeof this.source?this.source(t,I(t,e)):I(t,e)(this.source):e(!0)},n.AutocompleteCell={editor:n.editors.AutocompleteEditor,renderer:n.renderers.AutocompleteRenderer,validator:n.AutocompleteValidator},n.CheckboxCell={editor:n.editors.CheckboxEditor,renderer:n.renderers.CheckboxRenderer},n.TextCell={editor:n.editors.TextEditor,renderer:n.renderers.TextRenderer},n.NumericCell={editor:n.editors.TextEditor,renderer:n.renderers.NumericRenderer,validator:n.NumericValidator,dataType:\"number\"},n.DateCell={editor:n.editors.DateEditor,renderer:n.renderers.AutocompleteRenderer},n.HandsontableCell={editor:n.editors.HandsontableEditor,renderer:n.renderers.AutocompleteRenderer},n.PasswordCell={editor:n.editors.PasswordEditor,renderer:n.renderers.PasswordRenderer,copyable:!1},n.DropdownCell={editor:n.editors.DropdownEditor,renderer:n.renderers.AutocompleteRenderer,validator:n.AutocompleteValidator},n.cellTypes={text:n.TextCell,date:n.DateCell,numeric:n.NumericCell,checkbox:n.CheckboxCell,autocomplete:n.AutocompleteCell,handsontable:n.HandsontableCell,password:n.PasswordCell,dropdown:n.DropdownCell},n.cellLookup={validator:{numeric:n.NumericValidator,autocomplete:n.AutocompleteValidator}};var z=function(){var t,n={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,fontSize:11},i=document.body,r=document.createTextNode(\"\"),o=document.createElement(\"SPAN\"),s=function(t,n,i){e.attachEvent?t.attachEvent(\"on\"+n,i):t.addEventListener(n,i,!1)},a=function(t,n,i){e.detachEvent?t.detachEvent(\"on\"+n,i):t.removeEventListener(n,i,!1)},l=function(){void 0!==r.textContent?r.textContent=t.value:r.data=t.value,o.style.fontSize=n.fontSize+\"px\",i.appendChild(o);var e=o.clientWidth;i.removeChild(o),t.style.height=n.minHeight+\"px\",t.style.width=n.minWidth>e?n.minWidth+\"px\":e>n.maxWidth?n.maxWidth+\"px\":e+\"px\";var s=t.scrollHeight;n.minHeight>s?t.style.height=n.minHeight+\"px\":n.maxHeight<s?(t.style.height=n.maxHeight+\"px\",t.style.overflowY=\"visible\"):t.style.height=s+\"px\"},c=function(){e.setTimeout(l,0)},u=function(e){if(e&&e.minHeight)if(\"inherit\"==e.minHeight)n.minHeight=t.clientHeight;else{var i=parseInt(e.minHeight);isNaN(i)||(n.minHeight=i)}if(e&&e.maxHeight)if(\"inherit\"==e.maxHeight)n.maxHeight=t.clientHeight;else{var s=parseInt(e.maxHeight);isNaN(s)||(n.maxHeight=s)}if(e&&e.minWidth)if(\"inherit\"==e.minWidth)n.minWidth=t.clientWidth;else{var a=parseInt(e.minWidth);isNaN(a)||(n.minWidth=a)}if(e&&e.maxWidth)if(\"inherit\"==e.maxWidth)n.maxWidth=t.clientWidth;else{var l=parseInt(e.maxWidth);isNaN(l)||(n.maxWidth=l)}if(e&&e.fontSize)if(\"inherit\"==e.fontSize)n.fontSize=t.fontSize;else{var c=parseInt(e.fontSize);isNaN(c)||(n.fontSize=c)}o.firstChild||(o.className=\"autoResize\",o.style.display=\"inline-block\",o.appendChild(r))},h=function(e,i){t=e,u(i),\"TEXTAREA\"==t.nodeName&&(t.style.resize=\"none\",t.style.overflowY=\"\",t.style.height=n.minHeight+\"px\",t.style.minWidth=n.minWidth+\"px\",t.style.maxWidth=n.maxWidth+\"px\",t.style.fontSize=n.fontSize+\"px\",t.style.overflowY=\"hidden\"),s(t,\"change\",l),s(t,\"cut\",c),s(t,\"paste\",c),s(t,\"drop\",c),s(t,\"keydown\",c),l()};return{init:function(t,e){h(t,e)},unObserve:function(){a(t,\"change\",l),a(t,\"cut\",c),a(t,\"paste\",c),a(t,\"drop\",c),a(t,\"keydown\",c)}}};!function(t){function e(t){return t.split('\"').length-1}t.SheetClip={parse:function(t){var n,i,r,o,s,a,l,c=[],u=0;for(r=t.split(\"\\n\"),r.length>1&&\"\"===r[r.length-1]&&r.pop(),n=0,i=r.length;i>n;n+=1){for(r[n]=r[n].split(\"\t\"),o=0,s=r[n].length;s>o;o+=1)c[u]||(c[u]=[]),a&&0===o?(l=c[u].length-1,c[u][l]=c[u][l]+\"\\n\"+r[n][0],a&&1&e(r[n][0])&&(a=!1,c[u][l]=c[u][l].substring(0,c[u][l].length-1).replace(/\"\"/g,'\"'))):o===s-1&&0===r[n][o].indexOf('\"')?(c[u].push(r[n][o].substring(1).replace(/\"\"/g,'\"')),a=!0):(c[u].push(r[n][o].replace(/\"\"/g,'\"')),a=!1);a||(u+=1)}return c},stringify:function(t){var e,n,i,r,o,s=\"\";for(e=0,n=t.length;n>e;e+=1){for(i=0,r=t[e].length;r>i;i+=1)i>0&&(s+=\"\t\"),o=t[e][i],s+=\"string\"==typeof o?o.indexOf(\"\\n\")>-1?'\"'+o.replace(/\"/g,'\"\"')+'\"':o:null===o||void 0===o?\"\":o;n-1>e&&(s+=\"\\n\")}return s}}}(e);var H=function(){var t;return{getInstance:function(){return t?t.hasBeenDestroyed()&&t.init():t=new i,t.refCounter++,t}}}();i.prototype.init=function(){var t,e,n=this;this.copyCallbacks=[],this.cutCallbacks=[],this.pasteCallbacks=[],this.listenerElement=document.documentElement,e=document.body,document.getElementById(\"CopyPasteDiv\")?(this.elDiv=document.getElementById(\"CopyPasteDiv\"),this.elTextarea=this.elDiv.firstChild):(this.elDiv=document.createElement(\"DIV\"),this.elDiv.id=\"CopyPasteDiv\",t=this.elDiv.style,t.position=\"fixed\",t.top=\"-10000px\",t.left=\"-10000px\",e.appendChild(this.elDiv),this.elTextarea=document.createElement(\"TEXTAREA\"),this.elTextarea.className=\"copyPaste\",t=this.elTextarea.style,t.width=\"10000px\",t.height=\"10000px\",t.overflow=\"hidden\",this.elDiv.appendChild(this.elTextarea),\"undefined\"!=typeof t.opacity&&(t.opacity=0)),this.keydownListener=function(t){var e=!1;if(t.metaKey?e=!0:t.ctrlKey&&-1===navigator.userAgent.indexOf(\"Mac\")&&(e=!0),e){if(document.activeElement!==n.elTextarea&&(\"\"!=n.getSelectionText()||-1!=[\"INPUT\",\"SELECT\",\"TEXTAREA\"].indexOf(document.activeElement.nodeName)))return;n.selectNodeText(n.elTextarea),setTimeout(function(){n.selectNodeText(n.elTextarea)},0)}!e||67!==t.keyCode&&86!==t.keyCode&&88!==t.keyCode||(88===t.keyCode?setTimeout(function(){n.triggerCut(t)},0):86===t.keyCode&&setTimeout(function(){n.triggerPaste(t)},0))},this._bindEvent(this.listenerElement,\"keydown\",this.keydownListener)},i.prototype.selectNodeText=function(t){t.select()},i.prototype.getSelectionText=function(){var t=\"\";return e.getSelection?t=e.getSelection().toString():document.selection&&\"Control\"!=document.selection.type&&(t=document.selection.createRange().text),t\n",
" },i.prototype.copyable=function(t){if(\"string\"!=typeof t&&void 0===t.toString)throw new Error(\"copyable requires string parameter\");this.elTextarea.value=t},i.prototype.onCut=function(t){this.cutCallbacks.push(t)},i.prototype.onPaste=function(t){this.pasteCallbacks.push(t)},i.prototype.removeCallback=function(t){var e,n;for(e=0,n=this.copyCallbacks.length;n>e;e++)if(this.copyCallbacks[e]===t)return this.copyCallbacks.splice(e,1),!0;for(e=0,n=this.cutCallbacks.length;n>e;e++)if(this.cutCallbacks[e]===t)return this.cutCallbacks.splice(e,1),!0;for(e=0,n=this.pasteCallbacks.length;n>e;e++)if(this.pasteCallbacks[e]===t)return this.pasteCallbacks.splice(e,1),!0;return!1},i.prototype.triggerCut=function(t){var e=this;e.cutCallbacks&&setTimeout(function(){for(var n=0,i=e.cutCallbacks.length;i>n;n++)e.cutCallbacks[n](t)},50)},i.prototype.triggerPaste=function(t,e){var n=this;n.pasteCallbacks&&setTimeout(function(){for(var i=(e||n.elTextarea.value).replace(/\\n$/,\"\"),r=0,o=n.pasteCallbacks.length;o>r;r++)n.pasteCallbacks[r](i,t)},50)},i.prototype.destroy=function(){this.hasBeenDestroyed()||0!=--this.refCounter||(this.elDiv&&this.elDiv.parentNode&&(this.elDiv.parentNode.removeChild(this.elDiv),this.elDiv=null,this.elTextarea=null),this._unbindEvent(this.listenerElement,\"keydown\",this.keydownListener))},i.prototype.hasBeenDestroyed=function(){return!this.refCounter},i.prototype._bindEvent=function(){return e.jQuery?function(e,n,i){t(e).on(n+\".copypaste\",i)}:function(t,e,n){t.addEventListener(e,n,!1)}}(),i.prototype._unbindEvent=function(){return e.jQuery?function(e,n,i){t(e).off(n+\".copypaste\",i)}:function(t,e,n){t.removeEventListener(e,n,!1)}}();var L;!function(t){function n(t){return-1===t.indexOf(\"/\")&&-1===t.indexOf(\"~\")?t:t.replace(/~/g,\"~0\").replace(/\\//g,\"~1\")}function i(t,e){var r;for(var o in t)if(t.hasOwnProperty(o)){if(t[o]===e)return n(o)+\"/\";if(\"object\"==typeof t[o]&&(r=i(t[o],e),\"\"!=r))return n(o)+\"/\"+r}return\"\"}function r(t,e){if(t===e)return\"/\";var n=i(t,e);if(\"\"===n)throw new Error(\"Object not found in root\");return\"/\"+n}function o(t){for(var e=0,n=y.length;n>e;e++)if(y[e].obj===t)return y[e]}function s(t,e){for(var n=0,i=t.observers.length;i>n;n++)if(t.observers[n].callback===e)return t.observers[n].observer}function a(t,e){for(var n=0,i=t.observers.length;i>n;n++)if(t.observers[n].observer===e)return void t.observers.splice(n,1)}function l(t,e){p(e),Object.observe?h(e,t):clearTimeout(e.next);var n=o(t);a(n,e)}function c(t,n){var i,a=[],l=t,c=o(t);if(c?i=s(c,n):(c=new v(t),y.push(c)),i)return i;if(Object.observe)i=function(e){h(i,t),u(i,t);for(var o=0,s=e.length;s>o;){if((\"length\"!==e[o].name||!x(e[o].object))&&\"__Jasmine_been_here_before__\"!==e[o].name){var c=e[o].type;switch(c){case\"new\":c=\"add\";break;case\"deleted\":c=\"delete\";break;case\"updated\":c=\"update\"}m[c].call(e[o],a,r(l,e[o].object))}o++}a&&n&&n(a),i.patches=a,a=[]};else if(i={},c.value=JSON.parse(JSON.stringify(t)),n){i.callback=n,i.next=null;var d=this.intervals||[100,1e3,1e4,6e4],f=0,_=function(){p(i)},g=function(){clearTimeout(i.next),i.next=setTimeout(function(){_(),f=0,i.next=setTimeout(w,d[f++])},0)},w=function(){_(),f==d.length&&(f=d.length-1),i.next=setTimeout(w,d[f++])};\"undefined\"!=typeof e&&(e.addEventListener?(e.addEventListener(\"mousedown\",g),e.addEventListener(\"mouseup\",g),e.addEventListener(\"keydown\",g)):(e.attachEvent(\"onmousedown\",g),e.attachEvent(\"onmouseup\",g),e.attachEvent(\"onkeydown\",g))),i.next=setTimeout(w,d[f++])}return i.patches=a,i.object=t,c.observers.push(new b(n,i)),u(i,t)}function u(t,e){if(Object.observe){Object.observe(e,t);for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];i&&\"object\"==typeof i&&u(t,i)}}return t}function h(t,e){if(Object.observe){Object.unobserve(e,t);for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];i&&\"object\"==typeof i&&h(t,i)}}return t}function p(t){if(Object.observe)Object.deliverChangeRecords(t);else{for(var e,n=0,i=y.length;i>n;n++)if(y[n].obj===t.object){e=y[n];break}d(e.value,t.object,t.patches,\"\")}var r=t.patches;return r.length>0&&(t.patches=[],t.callback&&t.callback(r)),r}function d(t,e,i,r){for(var o=w(e),s=w(t),a=!1,l=!1,c=s.length-1;c>=0;c--){var u=s[c],h=t[u];if(e.hasOwnProperty(u)){var p=e[u];h instanceof Object?d(h,p,i,r+\"/\"+n(u)):h!=p&&(a=!0,i.push({op:\"replace\",path:r+\"/\"+n(u),value:p}),t[u]=p)}else i.push({op:\"remove\",path:r+\"/\"+n(u)}),delete t[u],l=!0}if(l||o.length!=s.length)for(var c=0;c<o.length;c++){var u=o[c];t.hasOwnProperty(u)||(i.push({op:\"add\",path:r+\"/\"+n(u),value:e[u]}),t[u]=JSON.parse(JSON.stringify(e[u])))}}function f(t,e){for(var n,i=!1,r=0,o=e.length;o>r;){n=e[r];for(var s=n.path.split(\"/\"),a=t,l=1,c=s.length;;)if(x(a)){var u=parseInt(s[l],10);if(l++,l>=c){i=g[n.op].call(n,a,u,t);break}a=a[u]}else{var h=s[l];if(-1!=h.indexOf(\"~\")&&(h=h.replace(/~1/g,\"/\").replace(/~0/g,\"~\")),l++,l>=c){i=_[n.op].call(n,a,h,t);break}a=a[h]}r++}return i}var _={add:function(t,e){return t[e]=this.value,!0},remove:function(t,e){return delete t[e],!0},replace:function(t,e){return t[e]=this.value,!0},move:function(t,e,n){var i={op:\"_get\",path:this.from};return f(n,[i]),f(n,[{op:\"remove\",path:this.from}]),f(n,[{op:\"add\",path:this.path,value:i.value}]),!0},copy:function(t,e,n){var i={op:\"_get\",path:this.from};return f(n,[i]),f(n,[{op:\"add\",path:this.path,value:i.value}]),!0},test:function(t,e){return JSON.stringify(t[e])===JSON.stringify(this.value)},_get:function(t,e){this.value=t[e]}},g={add:function(t,e){return t.splice(e,0,this.value),!0},remove:function(t,e){return t.splice(e,1),!0},replace:function(t,e){return t[e]=this.value,!0},move:_.move,copy:_.copy,test:_.test,_get:_._get},m={add:function(t,e){var i={op:\"add\",path:e+n(this.name),value:this.object[this.name]};t.push(i)},\"delete\":function(t,e){var i={op:\"remove\",path:e+n(this.name)};t.push(i)},update:function(t,e){var i={op:\"replace\",path:e+n(this.name),value:this.object[this.name]};t.push(i)}},y=[];t.intervals;var v=function(){function t(t){this.observers=[],this.obj=t}return t}(),b=function(){function t(t,e){this.callback=t,this.observer=e}return t}();t.unobserve=l,t.observe=c,t.generate=p;var w;w=Object.keys?Object.keys:function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e};var x;x=Array.isArray?Array.isArray:function(t){return t.push&&\"number\"==typeof t.length},t.apply=f}(L||(L={})),\"undefined\"!=typeof o&&(o.apply=L.apply,o.observe=L.observe,o.unobserve=L.unobserve,o.generate=L.generate),n.PluginHookClass=function(){function t(){this.hooks=e(),this.globalBucket={},this.legacy=i}var e=function(){return{beforeInitWalkontable:[],beforeInit:[],beforeRender:[],beforeSetRangeEnd:[],beforeChange:[],beforeChangeRender:[],beforeRemoveCol:[],beforeRemoveRow:[],beforeValidate:[],beforeGetCellMeta:[],beforeAutofill:[],beforeKeyDown:[],afterInit:[],afterLoadData:[],afterUpdateSettings:[],afterRender:[],afterRenderer:[],afterChange:[],afterValidate:[],afterGetCellMeta:[],afterSetCellMeta:[],afterGetColHeader:[],afterGetRowHeader:[],afterDestroy:[],afterRemoveRow:[],afterCreateRow:[],afterRemoveCol:[],afterCreateCol:[],afterDeselect:[],afterSelection:[],afterSelectionByProp:[],afterSelectionEnd:[],afterSelectionEndByProp:[],afterOnCellMouseDown:[],afterOnCellMouseOver:[],afterOnCellCornerMouseDown:[],afterScrollVertically:[],afterScrollHorizontally:[],afterCellMetaReset:[],afterDocumentKeyDown:[],modifyColWidth:[],modifyRowHeight:[],modifyRow:[],modifyCol:[]}},i={onBeforeChange:\"beforeChange\",onChange:\"afterChange\",onCreateRow:\"afterCreateRow\",onCreateCol:\"afterCreateCol\",onSelection:\"afterSelection\",onCopyLimit:\"afterCopyLimit\",onSelectionEnd:\"afterSelectionEnd\",onSelectionByProp:\"afterSelectionByProp\",onSelectionEndByProp:\"afterSelectionEndByProp\"};return t.prototype.getBucket=function(t){return t?(t.pluginHookBucket||(t.pluginHookBucket={}),t.pluginHookBucket):this.globalBucket},t.prototype.add=function(t,e,r){if(n.helper.isArray(e))for(var o=0,s=e.length;s>o;o++)this.add(t,e[o]);else{t in i&&(t=i[t]);var a=this.getBucket(r);\"undefined\"==typeof a[t]&&(a[t]=[]),e.skip=!1,-1==a[t].indexOf(e)&&a[t].push(e)}return this},t.prototype.once=function(t,e,i){if(n.helper.isArray(e))for(var r=0,o=e.length;o>r;r++)e[r].runOnce=!0,this.add(t,e[r],i);else e.runOnce=!0,this.add(t,e,i)},t.prototype.remove=function(t,e,n){var r=!1;t in i&&(t=i[t]);var o=this.getBucket(n);if(\"undefined\"!=typeof o[t])for(var s=0,a=o[t].length;a>s;s++)if(o[t][s]==e){o[t][s].skip=!0,r=!0;break}return r},t.prototype.run=function(t,e,n,r,o,s,a,l){e in i&&(e=i[e]),this._runBucket(this.globalBucket,t,e,n,r,o,s,a,l),this._runBucket(this.getBucket(t),t,e,n,r,o,s,a,l)},t.prototype._runBucket=function(t,e,n,i,r,o,s,a,l){var c=t[n];if(c)for(var u=0,h=c.length;h>u;u++)c[u].skip||(c[u].call(e,i,r,o,s,a,l),c[u].runOnce&&this.remove(n,c[u],t===this.globalBucket?null:e))},t.prototype.destroy=function(t){var e=this.getBucket(t);for(var n in e)if(e.hasOwnProperty(n))for(var i=0,r=e[n].length;r>i;i++)this.remove(n,e[n],t)},t.prototype.execute=function(t,e,n,r,o,s,a,l){return e in i&&(e=i[e]),n=this._executeBucket(this.globalBucket,t,e,n,r,o,s,a,l),n=this._executeBucket(this.getBucket(t),t,e,n,r,o,s,a,l)},t.prototype._executeBucket=function(t,e,n,i,r,o,s,a,l){var c,u=t[n];if(u)for(var h=0,p=u.length;p>h;h++)if(!u[h].skip&&(c=u[h].call(e,i,r,o,s,a,l),void 0!==c&&(i=c),u[h].runOnce&&this.remove(n,u[h],t===this.globalBucket?null:e),c===!1))return!1;return i},t.prototype.register=function(t){this.isRegistered(t)||(this.hooks[t]=[])},t.prototype.deregister=function(t){delete this.hooks[t]},t.prototype.isRegistered=function(t){return\"undefined\"!=typeof this.hooks[t]},t.prototype.getRegistered=function(){return Object.keys(this.hooks)},t}(),n.hooks=new n.PluginHookClass,n.PluginHooks=n.hooks,function(t){function e(){function e(t){var e=document,n=this;n.table=e.createElement(\"table\"),n.theadTh=e.createElement(\"th\"),n.table.appendChild(e.createElement(\"thead\")).appendChild(e.createElement(\"tr\")).appendChild(n.theadTh),n.tableStyle=n.table.style,n.tableStyle.tableLayout=\"auto\",n.tableStyle.width=\"auto\",n.tbody=e.createElement(\"tbody\"),n.table.appendChild(n.tbody),n.container=e.createElement(\"div\"),n.container.className=t.rootElement[0].className+\" hidden\",n.containerStyle=n.container.style,n.container.appendChild(n.table)}var i=this,r=5;this.beforeInit=function(){var t=this;t.autoColumnWidths=[],t.getSettings().autoColumnSize!==!1?t.autoColumnSizeTmp||(t.autoColumnSizeTmp={table:null,tableStyle:null,theadTh:null,tbody:null,container:null,containerStyle:null,determineBeforeNextRender:!0},t.addHook(\"beforeRender\",n.determineIfChanged),t.addHook(\"modifyColWidth\",n.modifyColWidth),t.addHook(\"afterDestroy\",n.afterDestroy),t.determineColumnWidth=i.determineColumnWidth):t.autoColumnSizeTmp&&(t.removeHook(\"beforeRender\",n.determineIfChanged),t.removeHook(\"modifyColWidth\",n.modifyColWidth),t.removeHook(\"afterDestroy\",n.afterDestroy),delete t.determineColumnWidth,i.afterDestroy.call(t))},this.determineIfChanged=function(t){t&&n.determineColumnsWidth.apply(this,arguments)},this.determineColumnWidth=function(n){var i=this,o=i.autoColumnSizeTmp;o.container||e.call(o,i),o.container.className=i.rootElement[0].className+\" htAutoColumnSize\",o.table.className=i.$table[0].className;for(var s=i.countRows(),a={},l=0,c=0;s>c;c++){var u=t.helper.stringify(i.getDataAtCell(c,n)),h=u.length;h>l&&(l=h),a[h]||(a[h]={needed:r,strings:[]}),a[h].needed&&(a[h].strings.push({value:u,row:c}),a[h].needed--)}var p=i.getSettings();p.colHeaders&&i.view.appendColHeader(n,o.theadTh),t.Dom.empty(o.tbody);for(var d in a)if(a.hasOwnProperty(d))for(var f=0,_=a[d].strings.length;_>f;f++){var g=a[d].strings[f].row,m=i.getCellMeta(g,n);m.col=n,m.row=g;var y=i.getCellRenderer(m),v=document.createElement(\"tr\"),b=document.createElement(\"td\");y(i,b,g,n,i.colToProp(n),a[d].strings[f].value,m),c++,v.appendChild(b),o.tbody.appendChild(v)}var w=i.rootElement[0].parentNode;w.appendChild(o.container);var x=t.Dom.outerWidth(o.table);return w.removeChild(o.container),x},this.determineColumnsWidth=function(){var t=this,e=this.getSettings();if(e.autoColumnSize||!e.colWidths)for(var n=this.countCols(),r=0;n>r;r++)t._getColWidthFromSettings(r)||(this.autoColumnWidths[r]=i.determineColumnWidth.call(t,r))},this.modifyColWidth=function(t,e){return this.autoColumnWidths[e]&&this.autoColumnWidths[e]>t?this.autoColumnWidths[e]:t},this.afterDestroy=function(){var t=this;t.autoColumnSizeTmp&&t.autoColumnSizeTmp.container&&t.autoColumnSizeTmp.container.parentNode&&t.autoColumnSizeTmp.container.parentNode.removeChild(t.autoColumnSizeTmp.container),t.autoColumnSizeTmp=null}}var n=new e;t.hooks.add(\"beforeInit\",n.beforeInit),t.hooks.add(\"afterUpdateSettings\",n.beforeInit)}(n);var F=new r;n.hooks.add(\"afterInit\",function(){F.init.call(this,\"afterInit\")}),n.hooks.add(\"afterUpdateSettings\",function(){F.init.call(this,\"afterUpdateSettings\")}),n.hooks.add(\"modifyRow\",F.translateRow),n.hooks.add(\"afterGetColHeader\",F.getColHeader),n.hooks.register(\"beforeColumnSort\"),n.hooks.register(\"afterColumnSort\"),function(e){function n(t,e){return-1!=t.indexOf(e)?t:(t=t.replace(\"htTop\",\"\").replace(\"htMiddle\",\"\").replace(\"htBottom\",\"\").replace(\" \",\"\"),t+=\" \"+e)}function i(t,e){return-1!=t.indexOf(e)?t:(t=t.replace(\"htLeft\",\"\").replace(\"htCenter\",\"\").replace(\"htRight\",\"\").replace(\"htJustify\",\"\").replace(\" \",\"\"),t+=\" \"+e)}function r(t,e,r,o){var s=this.getCellMeta(t,e),a=o;s.className&&(a=\"vertical\"===r?n(s.className,o):i(s.className,o)),this.setCellMeta(t,e,\"className\",a),this.render()}function o(t,e,n){if(t.from.row==t.to.row&&t.from.col==t.to.col)r.call(this,t.from.row,t.from.col,e,n);else for(var i=t.from.row;i<=t.to.row;i++)for(var o=t.from.col;o<=t.to.col;o++)r.call(this,i,o,e,n)}function s(t,n){this.instance=t;var i=this;i.menus=[],i.triggerRows=[],this.enabled=!0,this.instance.addHook(\"afterDestroy\",function(){i.destroy()}),this.defaultOptions={items:{row_above:{name:\"Insert row above\",callback:function(t,e){this.alter(\"insert_row\",e.start.row)},disabled:function(){var t=this.getSelected(),e=[0,t[1],this.view.wt.wtTable.getRowStrategy().cellCount-1,t[1]],n=e.join(\",\")==t.join(\",\");return t[0]<0||this.countRows()>=this.getSettings().maxRows||n}},row_below:{name:\"Insert row below\",callback:function(t,e){this.alter(\"insert_row\",e.end.row+1)},disabled:function(){var t=this.getSelected(),e=[0,t[1],this.view.wt.wtTable.getRowStrategy().cellCount-1,t[1]],n=e.join(\",\")==t.join(\",\");return this.getSelected()[0]<0||this.countRows()>=this.getSettings().maxRows||n}},hsep1:s.SEPARATOR,col_left:{name:\"Insert column on the left\",callback:function(t,e){this.alter(\"insert_col\",e.start.col)},disabled:function(){var t=this.getSelected(),e=[t[0],0,t[0],this.view.wt.wtTable.getColumnStrategy().cellCount-1],n=e.join(\",\")==t.join(\",\");return this.getSelected()[1]<0||this.countCols()>=this.getSettings().maxCols||n}},col_right:{name:\"Insert column on the right\",callback:function(t,e){this.alter(\"insert_col\",e.end.col+1)},disabled:function(){var t=this.getSelected(),e=[t[0],0,t[0],this.view.wt.wtTable.getColumnStrategy().cellCount-1],n=e.join(\",\")==t.join(\",\");return t[1]<0||this.countCols()>=this.getSettings().maxCols||n}},hsep2:s.SEPARATOR,remove_row:{name:\"Remove row\",callback:function(t,e){var n=e.end.row-e.start.row+1;this.alter(\"remove_row\",e.start.row,n)},disabled:function(){var t=this.getSelected(),e=[0,t[1],this.view.wt.wtTable.getRowStrategy().cellCount-1,t[1]],n=e.join(\",\")==t.join(\",\");return t[0]<0||n}},remove_col:{name:\"Remove column\",callback:function(t,e){var n=e.end.col-e.start.col+1;this.alter(\"remove_col\",e.start.col,n)},disabled:function(){var t=this.getSelected(),e=[t[0],0,t[0],this.view.wt.wtTable.getColumnStrategy().cellCount-1],n=e.join(\",\")==t.join(\",\");return t[1]<0||n}},hsep3:s.SEPARATOR,undo:{name:\"Undo\",callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}},redo:{name:\"Redo\",callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}},hsep4:s.SEPARATOR,make_read_only:{name:function(){var t=\"Read only\",e=i.checkSelectionReadOnlyConsistency(this);return e&&(t=i.markSelected(t)),t},callback:function(){var t=i.checkSelectionReadOnlyConsistency(this),e=this;this.getSelectedRange().forAll(function(n,i){e.getCellMeta(n,i).readOnly=t?!1:!0}),this.render()}},hsep5:s.SEPARATOR,aligment:{name:\"Alignment\",submenu:{items:{left:{name:function(){var t=\"Left\",e=i.checkSelectionAlignment(this,\"htLeft\");return e&&(t=i.markSelected(t)),t},callback:function(){o.call(this,this.getSelectedRange(),\"horizontal\",\"htLeft\")},disabled:!1},center:{name:function(){var t=\"Center\",e=i.checkSelectionAlignment(this,\"htCenter\");return e&&(t=i.markSelected(t)),t},callback:function(){o.call(this,this.getSelectedRange(),\"horizontal\",\"htCenter\")},disabled:!1},right:{name:function(){var t=\"Right\",e=i.checkSelectionAlignment(this,\"htRight\");return e&&(t=i.markSelected(t)),t},callback:function(){o.call(this,this.getSelectedRange(),\"horizontal\",\"htRight\")},disabled:!1},justify:{name:function(){var t=\"Justify\",e=i.checkSelectionAlignment(this,\"htJustify\");return e&&(t=i.markSelected(t)),t},callback:function(){o.call(this,this.getSelectedRange(),\"horizontal\",\"htJustify\")},disabled:!1},hsep1:s.SEPARATOR,top:{name:function(){var t=\"Top\",e=i.checkSelectionAlignment(this,\"htTop\");return e&&(t=i.markSelected(t)),t},callback:function(){o.call(this,this.getSelectedRange(),\"vertical\",\"htTop\")},disabled:!1},middle:{name:function(){var t=\"Middle\",e=i.checkSelectionAlignment(this,\"htMiddle\");return e&&(t=i.markSelected(t)),t},callback:function(){o.call(this,this.getSelectedRange(),\"vertical\",\"htMiddle\")},disabled:!1},bottom:{name:function(){var t=\"Bottom\",e=i.checkSelectionAlignment(this,\"htBottom\");return e&&(t=i.markSelected(t)),t},callback:function(){o.call(this,this.getSelectedRange(),\"vertical\",\"htBottom\")},disabled:!1}}}}}},i.options={},e.helper.extend(i.options,this.defaultOptions),this.updateOptions(n,this.options),this.bindMouseEvents(),this.markSelected=function(t){return\"<span class='selected'>\u2713</span>\"+t},this.checkSelectionAlignment=function(t,e){var n=!1;return t.getSelectedRange().forAll(function(i,r){var o=t.getCellMeta(i,r).className;return o&&-1!=o.indexOf(e)?(n=!0,!1):void 0}),n},this.checkSelectionReadOnlyConsistency=function(t){var e=!1;return t.getSelectedRange().forAll(function(n,i){return t.getCellMeta(n,i).readOnly?(e=!0,!1):void 0}),e},e.hooks.run(t,\"afterContextMenuDefaultOptions\",this.defaultOptions)}function a(){if(!this.rootElement[0].className.indexOf(\"htContextMenu\")){for(var t=0,e=0,n=this.getSettings().data.length,i=0;n>i;i++)this.getSettings().data[i].name==s.SEPARATOR?t+=2:e+=26;this.view.wt.wtScrollbars.vertical.fixedContainer.style.height=e+t+\"px\"}}function l(){var t=this,n=t.getSettings().contextMenu,i=e.helper.isObject(n)?n:{};n?(t.contextMenu||(t.contextMenu=new s(t,i)),t.contextMenu.enable(),e.helper.isArray(n)&&t.contextMenu.filterItems(n)):t.contextMenu&&(t.contextMenu.destroy(),delete t.contextMenu)}s.prototype.createMenu=function(n,i){n&&(n=n.replace(/ /g,\"_\"),n=\"htContextSubMenu_\"+n);var r;return r=n?t(\"body > .htContextMenu.\"+n)[0]:t(\"body > .htContextMenu\")[0],r||(r=document.createElement(\"DIV\"),e.Dom.addClass(r,\"htContextMenu\"),n&&e.Dom.addClass(r,n),document.getElementsByTagName(\"body\")[0].appendChild(r)),this.menus.indexOf(r)<0&&(this.menus.push(r),i=i||0,this.triggerRows.push(i)),r},s.prototype.bindMouseEvents=function(){function n(n){this.closeAll(),n.preventDefault(),n.stopPropagation();var i=this.instance.getSettings().rowHeaders,r=this.instance.getSettings().colHeaders;if(i||r||\"TD\"==n.target.nodeName||e.Dom.hasClass(n.target,\"current\")&&e.Dom.hasClass(n.target,\"wtBorder\")){var o=this.createMenu(),a=this.getItems(this.options);this.show(o,a),this.setMenuPosition(n,o),t(document).on(\"mousedown.htContextMenu\",e.helper.proxy(s.prototype.closeAll,this))}}this.instance.rootElement.on(\"contextmenu.htContextMenu\",e.helper.proxy(n,this))},s.prototype.bindTableEvents=function(){this._afterScrollCallback=function(){},this.instance.addHook(\"afterScrollVertically\",this._afterScrollCallback),this.instance.addHook(\"afterScrollHorizontally\",this._afterScrollCallback)},s.prototype.unbindTableEvents=function(){this._afterScrollCallback&&(this.instance.removeHook(\"afterScrollVertically\",this._afterScrollCallback),this.instance.removeHook(\"afterScrollHorizontally\",this._afterScrollCallback),this._afterScrollCallback=null)},s.prototype.performAction=function(e,n){var i=this,r=t(n).handsontable(\"getInstance\"),o=r.getSelected()[0],a=r.getData()[o];if(a.disabled!==!0&&(\"function\"!=typeof a.disabled||a.disabled.call(this.instance)!==!0)&&!a.hasOwnProperty(\"submenu\")){if(\"function\"!=typeof a.callback)return;var l=this.instance.getSelectedRange(),c=s.utils.normalizeSelection(l);a.callback.call(this.instance,a.key,c,e),i.closeAll(),this.instance.deselectCell()}},s.prototype.unbindMouseEvents=function(){this.instance.rootElement.off(\"contextmenu.htContextMenu\"),t(document).off(\"mousedown.htContextMenu\")},s.prototype.show=function(n,i){n.style.display=\"block\";var r=this;t(n).off(\"mousedown.htContextMenu\").on(\"mousedown.htContextMenu\",function(t){r.performAction(t,n)}),t(n).handsontable({data:s.utils.convertItemsToArray(i),colHeaders:!1,colWidths:[200],readOnly:!0,copyPaste:!1,columns:[{data:\"name\",renderer:e.helper.proxy(this.renderer,this)}],beforeKeyDown:function(t){r.onBeforeKeyDown(t,n)},afterOnCellMouseOver:function(t,e,i){r.onCellMouseOver(t,e,i,n)},renderAllRows:!0}),this.bindTableEvents(),t(n).handsontable(\"listen\")},s.prototype.close=function(e){this.hide(e),t(document).off(\"mousedown.htContextMenu\"),this.unbindTableEvents(),this.instance.listen()},s.prototype.closeAll=function(){for(;this.menus.length>0;){var t=this.menus.pop();t&&this.close(t)}this.triggerRows=[]},s.prototype.closeLastOpenedSubMenu=function(){var t=this.menus.pop();t&&this.hide(t)},s.prototype.hide=function(e){e.style.display=\"none\",t(e).handsontable(\"destroy\")},s.prototype.renderer=function(n,i,r,o,a,l){function c(t){return t.hasOwnProperty(\"submenu\")}function u(t){return new RegExp(s.SEPARATOR,\"i\").test(t.name)}function h(t){return t.disabled===!0||\"function\"==typeof t.disabled&&t.disabled.call(p.instance)===!0}var p=this,d=n.getData()[r],f=document.createElement(\"DIV\");\"function\"==typeof l&&(l=l.call(this.instance)),e.Dom.empty(i),i.appendChild(f),u(d)?e.Dom.addClass(i,\"htSeparator\"):e.Dom.fastInnerHTML(f,l),h(d)?(e.Dom.addClass(i,\"htDisabled\"),t(f).on(\"mouseenter\",function(){n.deselectCell()})):c(d)?(e.Dom.addClass(i,\"htSubmenu\"),t(f).on(\"mouseenter\",function(){n.selectCell(r,o)})):(e.Dom.removeClass(i,\"htSubmenu\"),e.Dom.removeClass(i,\"htDisabled\"),t(f).on(\"mouseenter\",function(){n.selectCell(r,o)}))},s.prototype.onCellMouseOver=function(e,n,i,r){var o=t(r).handsontable(\"getInstance\"),s=this.menus.length;if(s>0){var a=this.menus[s-1];a.id!=r.id&&this.closeLastOpenedSubMenu()}else this.closeLastOpenedSubMenu();if(-1!=i.className.indexOf(\"htSubmenu\")){var l=o.getData()[n.row],c=this.getItems(l.submenu),u=this.createMenu(l.name,n.row),h=i.getBoundingClientRect();this.show(u,c),this.setSubMenuPosition(h,u)}},s.prototype.onBeforeKeyDown=function(n,i){function r(t){var e=t.getCell(0,0);s.utils.isSeparator(e)||s.utils.isDisabled(e)?a(0,0,t):t.selectCell(0,0)}function o(t){var e=t.countRows()-1,n=t.getCell(e,0);s.utils.isSeparator(n)||s.utils.isDisabled(n)?l(e,0,t):t.selectCell(e,0)}function a(t,e,n){var i=t+1,r=i<n.countRows()?n.getCell(i,e):null;r&&(s.utils.isSeparator(r)||s.utils.isDisabled(r)?a(i,e,n):n.selectCell(i,e))}function l(t,e,n){var i=t-1,r=i>=0?n.getCell(i,e):null;r&&(s.utils.isSeparator(r)||s.utils.isDisabled(r)?l(i,e,n):n.selectCell(i,e))}function c(e,n,i,r){var o=e.getData()[r],s=n.getItems(o.submenu),a=n.createMenu(o.name,r),l=i.getBoundingClientRect();n.show(a,s),n.setSubMenuPosition(l,a);var c=t(a).handsontable(\"getInstance\");c.selectCell(0,0)}var u=this,h=t(i).handsontable(\"getInstance\"),p=h.getSelected();switch(n.keyCode){case e.helper.keyCode.ESCAPE:u.closeAll(),n.preventDefault(),n.stopImmediatePropagation();break;case e.helper.keyCode.ENTER:p&&u.performAction(n,i);break;case e.helper.keyCode.ARROW_DOWN:p?a(p[0],p[1],h,u):r(h,u),n.preventDefault(),n.stopImmediatePropagation();break;case e.helper.keyCode.ARROW_UP:p?l(p[0],p[1],h,u):o(h,u),n.preventDefault(),n.stopImmediatePropagation();break;case e.helper.keyCode.ARROW_RIGHT:if(p){var d=p[0],f=h.getCell(p[0],0);s.utils.hasSubMenu(f)&&c(h,u,f,d)}n.preventDefault(),n.stopImmediatePropagation();break;case e.helper.keyCode.ARROW_LEFT:if(p){if(-1!=i.className.indexOf(\"htContextSubMenu_\")){u.closeLastOpenedSubMenu();var _=u.menus.length;if(_>0){i=u.menus[_-1];var g=u.triggerRows.pop();h=t(i).handsontable(\"getInstance\"),h.selectCell(g,0)}}n.preventDefault(),n.stopImmediatePropagation()}}},s.prototype.getItems=function(t){function n(t){\"string\"==t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment