Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Jupyter notebook bokeh/bokeh-sage-6.10.ipynb

Views: 384
Kernel: SageMath 6.10

Bokeh inside SageMath 6.10 / Python 2

To see the published html, goto https://cloud.sagemath.com/20e4a191-73ea-4921-80e9-0a5d792fc511/raw/bokeh/bokeh-sage-6.10.html

import sys sys.version
'2.7.10 (default, Dec 28 2015, 04:30:58) \n[GCC 5.2.1 20151010]'
import numpy as np print(np) np.__version__
<module 'numpy' from '/projects/sage/sage-6.10/local/lib/python2.7/site-packages/numpy/__init__.pyc'>
'1.10.1'
import bokeh bokeh.__version__
'0.10.0'
from bokeh.io import output_notebook, show output_notebook()
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/ndg/httpsclient/subj_alt_name.py:22: UserWarning: Error importing pyasn1, subjectAltName check for SSL peer verification will be disabled. Import error is: No module named pyasn1.type warnings.warn(import_error_msg) /projects/sage/sage-6.10/local/lib/python2.7/site-packages/ndg/httpsclient/ssl_peer_verification.py:25: UserWarning: SubjectAltName support is disabled - check pyasn1 package installation to enable warnings.warn(SUBJ_ALT_NAME_SUPPORT_MSG) /projects/sage/sage-6.10/local/lib/python2.7/site-packages/ndg/httpsclient/subj_alt_name.py:22: UserWarning: Error importing pyasn1, subjectAltName check for SSL peer verification will be disabled. Import error is: No module named pyasn1.type warnings.warn(import_error_msg)
").addClass(this._triggerClass).html(s?t("").attr({src:s,alt:r,title:r}):r)),e[a?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,r,s=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&&(e=function(t){for(i=0,n=0,r=0;r",u=q?"
"+(W?l:"")+(this._isInRange(t,a)?"":"")+(W?"":l)+"
":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,c=this._get(t,"showWeek"),p=this._get(t,"dayNames"),d=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),b="",x=0;x<$[0];x++){for(k="",this.maxRows=4,M=0;M");b+=""}if(v||(y+=b+(!s&&m&&_?"":" ")),!t.yearshtml)if(t.yearshtml="",s||!_)y+=""+i+"";else{for(c=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),d=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e},f=d(c[0]),g=Math.max(f,d(c[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="";t.yearshtml+="",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),v&&(y+=(!s&&m&&_?"":" ")+b),y+=""},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),r=t.drawMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,s)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&&i>e?i:e;return n&&r>n?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(0>e?e:r[0]*r[1]),1));return 0>e&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),o=null,a=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),o=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(o+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!r||e.getTime()>=r.getTime())&&(!s||e.getTime()").appendTo(s)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,s,o=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(e.pageY-t(document).scrollTop()<o.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<o.scrollSensitivity&&(a=t(document).scrollTop(t(document).scrollTop()+o.scrollSpeed)),e.pageX-t(document).scrollLeft()<o.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())").addClass(this._triggerClass).html(s?t("").attr({src:s,alt:r,title:r}):r)),e[a?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,r,s=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&&(e=function(t){for(i=0,n=0,r=0;r",u=q?"
"+(W?l:"")+(this._isInRange(t,a)?"":"")+(W?"":l)+"
":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,c=this._get(t,"showWeek"),p=this._get(t,"dayNames"),d=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),b="",x=0;x<$[0];x++){for(k="",this.maxRows=4,M=0;M");b+=""}if(v||(y+=b+(!s&&m&&_?"":" ")),!t.yearshtml)if(t.yearshtml="",s||!_)y+=""+i+"";else{for(c=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),d=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e},f=d(c[0]),g=Math.max(f,d(c[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="";t.yearshtml+="",y+=t.yearshtml,t.yearshtml=null}return y+=this._get(t,"yearSuffix"),v&&(y+=(!s&&m&&_?"":" ")+b),y+=""},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),r=t.drawMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,s)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&&i>e?i:e;return n&&r>n?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(0>e?e:r[0]*r[1]),1));return 0>e&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),o=null,a=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),o=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(o+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!r||e.getTime()>=r.getTime())&&(!s||e.getTime()").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html(" "),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("
").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(t.each(i,function(i,n){var r,s;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),r=n.click,n.click=function(){r.apply(e.element[0],arguments)},s={icons:n.icons,text:n.showText},delete n.icons,delete n.showText,t("",n).button(s).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,r){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(r))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(r,s){n.position=[s.position.left-i.document.scrollLeft(),s.position.top-i.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",r,e(s))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,r=n.resizable,s=this.uiDialog.css("position"),o="string"==typeof r?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:o,start:function(n,r){t(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,e(r))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(r,s){n.height=t(this).height(),n.width=t(this).width(),t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",r,e(s))}}).css("position",s)},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var r=this,s=!1,o={};t.each(e,function(t,e){r._setOption(t,e),t in i&&(s=!0),t in n&&(o[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(t,e){var i,n,r=this.uiDialog;"dialogClass"===t&&r.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&(i=r.is(":data(ui-draggable)"),i&&!e&&r.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(n=r.is(":data(ui-resizable)"),n&&!e&&r.resizable("destroy"),n&&"string"==typeof e&&r.resizable("option","handles",e),n||e===!1||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight()); },_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("
").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(n){e._allowInteraction(n)||(n.preventDefault(),t(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=t("
").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{_position:function(){var e,i=this.options.position,n=[],r=[0,0];i?(("string"==typeof i||"object"==typeof i&&"0"in i)&&(n=i.split?i.split(" "):[i[0],i[1]],1===n.length&&(n[1]=n[0]),t.each(["left","top"],function(t,e){+n[t]===n[t]&&(r[t]=n[t],n[t]=e)}),i={my:n[0]+(r[0]<0?r[0]:"+"+r[0])+" "+n[1]+(r[1]").appendTo(s)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,s,o=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageYParseError: KaTeX parse error: Got function '\"' with no arguments as argument to '\"' at position 18: …"+it+"*(?:''|\"\̲"̲)"),t.querySele…|!~]?="),t.querySelectorAll(":enabled").length||z.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),z.push(",.*:")})),(w.matchesSelector=_t.test(O=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&r(function(t){w.disconnectedMatch=O.call(t,"div"),O.call(t,"[s!='']:x"),j.push("!=",ot)}),z=z.length&&new RegExp(z.join("|")),j=j.length&&new RegExp(j.join("|")),e=_t.test(N.compareDocumentPosition),F=e||_t.test(N.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},ParseError: KaTeX parse error: Expected '}', got '&' at position 191: …Position(e):1,1&̲i||!w.sortDetac…1']"),w.matchesSelector&&R&&(!j||!j.test(i))&&(!z||!z.test(i)))try{var n=O.call(t,i);if(n||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(r){}return e(i,I,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==I&&E(t),F(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==I&&E(t);var i=x.attrHandle[e.toLowerCase()],n=i&&G.call(x.attrHandle,e.toLowerCase())?i(t,e,!R):void 0;return void 0!==n?n:w.attributes||!R?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(P=!w.detectDuplicates,A=!w.sortStable&&t.slice(0),t.sort(ParseError: KaTeX parse error: Expected '}', got '&' at position 29: …[r++];)e===t[r]&̲&(n=i.push(r));…)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(r){var s=e.attr(r,t);return null==s?"!="===i:i?(s+="","="===i?s===n:"!="===i?s!==n:"^="===i?n&&0===s.indexOf(n):"*="===i?n&&s.indexOf(n)>-1:"ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 9: ="===i?n&̲&s.slice(-n.len…1"));return r[L]?n(function(t,e,i,n){for(var s,o=r(t,null,n,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,n,s){return e[0]=t,r(e,null,s,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(wt,xt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:n(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,xt).toLowerCase(),function(e){var i;do if(i=R?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===I.activeElement&&(!I.hasFocus||I.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.nodeType"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Ft.optgroup=Ft.option,Ft.tbody=Ft.tfoot=Ft.colgroup=Ft.caption=Ft.thead,Ft.th=Ft.td,K.extend({clone:function(t,e,i){var n,r,s,o,a=t.cloneNode(!0),l=K.contains(t.ownerDocument,t);if(!(Z.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||K.isXMLDoc(t)))for(o=_(a),s=_(t),n=0,r=s.length;r>n;n++)v(s[n],o[n]);if(e)if(i)for(s=s||_(t),o=o||_(a),n=0,r=s.length;r>n;n++)m(s[n],o[n]);else m(t,a);return o=_(a,"script"),o.length>0&&g(o,!l&&_(t,"script")),a},buildFragment:function(t,e,i,n){for(var r,s,o,a,l,u,h=e.createDocumentFragment(),c=[],p=0,d=t.length;d>p;p++)if(r=t[p],r||0===r)if("object"===K.type(r))K.merge(c,r.nodeType?[r]:r);else if(It.test(r)){for(s=s||h.appendChild(e.createElement("div")),o=(Et.exec(r)||["",""])[1].toLowerCase(),a=Ft[o]||Ft._default,s.innerHTML=a[1]+r.replace(Pt,"")+a[2],u=a[0];u--;)s=s.lastChild;K.merge(c,s.childNodes),s=h.firstChild,s.textContent=""}else c.push(e.createTextNode(r));for(h.textContent="",p=0;r=c[p++];)if((!n||-1===K.inArray(r,n))&&(l=K.contains(r.ownerDocument,r),s=_(h.appendChild(r),"script"),l&&g(s),i))for(u=0;r=s[u++];)zt.test(r.type||"")&&i.push(r);return h},cleanData:function(t){for(var e,i,n,r,s=K.event.special,o=0;void 0!==(i=t[o]);o++){if(K.acceptData(i)&&(r=i[_t.expando],r&&(e=_t.cache[r]))){if(e.events)for(n in e.events)s[n]?K.event.remove(i,n):K.removeEvent(i,n,e.handle);_t.cache[r]&&delete _t.cache[r]}delete vt.cache[i[vt.expando]]}}}),K.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?K.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=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 i,n=t?K.filter(t,this):this,r=0;null!=(i=n[r]);r++)e||1!==i.nodeType||K.cleanData(_(i)),i.parentNode&&(e&&K.contains(i.ownerDocument,i)&&g(_(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(K.cleanData(_(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 K.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Nt.test(t)&&!Ft[(Et.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Pt,"");try{for(;n>i;i++)e=this[i]||{},1===e.nodeType&&(K.cleanData(_(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,K.cleanData(_(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=Y.apply([],t);var i,n,r,s,o,a,l=0,u=this.length,h=this,c=u-1,p=t[0],g=K.isFunction(p);if(g||u>1&&"string"==typeof p&&!Z.checkClone&&Rt.test(p))return this.each(function(i){var n=h.eq(i);g&&(t[0]=p.call(this,i,n.html())),n.domManip(t,e)});if(u&&(i=K.buildFragment(t,this[0].ownerDocument,!1,this),n=i.firstChild,1===i.childNodes.length&&(i=n),n)){for(r=K.map(_(i,"script"),d),s=r.length;u>l;l++)o=i,l!==c&&(o=K.clone(o,!0,!0),s&&K.merge(r,_(o,"script"))),e.call(this[l],o,l);if(s)for(a=r[r.length-1].ownerDocument,K.map(r,f),l=0;s>l;l++)o=r[l],zt.test(o.type||"")&&!_t.access(o,"globalEval")&&K.contains(a,o)&&(o.src?K._evalUrl&&K._evalUrl(o.src):K.globalEval(o.textContent.replace(Ot,"")))}return this}}),K.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){K.fn[t]=function(t){for(var i,n=[],r=K(t),s=r.length-1,o=0;s>=o;o++)i=o===s?this:this.clone(!0),K(r[o])[e](i),V.apply(n,i.get());return this.pushStack(n)}});var Lt,Ht={},Bt=/^margin/,Wt=new RegExp("^("+wt+")(?!px)[a-z%]+ParseError: KaTeX parse error: Expected '}', got 'EOF' at end of input: …("^("+wt+")(.*)","i"),ParseError: KaTeX parse error: Expected '}', got '&' at position 478: …n(t,e,i,n){if(t&̲&3!==t.nodeType…t.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(K.css(t,e)),s="number"),null!=i&&i===i&&("number"!==s||K.cssNumber[a]||(i+="px"),Z.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),o&&"set"in o&&void 0===(i=o.set(t,i,n))||(l[e]=i)),void 0)}},css:function(t,e,i,n){var r,s,o,a=K.camelCase(e);return e=K.cssProps[a]||(K.cssProps[a]=k(t.style,a)),o=K.cssHooks[e]||K.cssHooks[a],o&&"get"in o&&(r=o.get(t,!0,i)),void 0===r&&(r=w(t,e,n)),"normal"===r&&e in Gt&&(r=Gt[e]),""===i||i?(s=parseFloat(r),i===!0||K.isNumeric(s)?s||0:r):r}}),K.each(["height","width"],function(t,e){K.cssHooks[e]={get:function(t,i,n){return i?Yt.test(K.css(t,"display"))&&0===t.offsetWidth?K.swap(t,Ut,function(){return D(t,e,n)}):D(t,e,n):void 0},set:function(t,i,n){var r=n&&qt(t);return M(t,i,n?C(t,e,n,"border-box"===K.css(t,"boxSizing",!1,r),r):0)}}}),K.cssHooks.marginRight=x(Z.reliableMarginRight,function(t,e){return e?K.swap(t,{display:"inline-block"},w,[t,"marginRight"]):void 0}),K.each({margin:"",padding:"",border:"Width"},function(t,e){K.cssHooks[t+e]={expand:function(i){for(var n=0,r={},s="string"==typeof i?i.split(" "):[i];4>n;n++)r[t+xt[n]+e]=s[n]||s[n-2]||s[0];return r}},Bt.test(t)||(K.cssHooks[t+e].set=M)}),K.fn.extend({css:function(t,e){return mt(this,function(t,e,i){var n,r,s={},o=0;if(K.isArray(e)){for(n=qt(t),r=e.length;r>o;o++)s[e[o]]=K.css(t,e[o],!1,n);return s}return void 0!==i?K.style(t,e,i):K.css(t,e)},t,e,arguments.length>1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){kt(this)?K(this).show():K(this).hide()})}}),K.Tween=S,S.prototype={constructor:S,init:function(t,e,i,n,r,s){this.elem=t,this.prop=i,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(K.cssNumber[i]?"":"px")},cur:function(){var t=S.propHooks[this.prop];return t&&t.get?t.get(this):S.propHooks._default.get(this)},run:function(t){var e,i=S.propHooks[this.prop];return this.options.duration?this.pos=e=K.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):S.propHooks._default.set(this),this}},S.prototype.init.prototype=S.prototype,S.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=K.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){K.fx.step[t.prop]?K.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[K.cssProps[t.prop]]||K.cssHooks[t.prop])?K.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},S.propHooks.scrollTop=S.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},K.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},K.fx=S.prototype.init,K.fx.step={};var Zt,Jt,Qt=/^(?:toggle|show|hide)/,Kt=newRegExp("(?:([+−])=∣)("+wt+")([a−z/,Kt=new RegExp("^(?:([+-])=|)("+wt+")([a-z%]*)","i"),te=/queueHooks$/,ee=[I],ie={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),r=Kt.exec(e),s=r&&r[3]||(K.cssNumber[t]?"":"px"),o=(K.cssNumber[t]||"px"!==s&&+n)&&Kt.exec(K.css(i.elem,t)),a=1,l=20;if(o&&o[3]!==s){s=s||o[3],r=r||[],o=+n||1;do a=a||".5",o/=a,K.style(i.elem,t,o+s);while(a!==(a=i.cur()/n)&&1!==a&&--l)}return r&&(o=i.start=+o||+n||0,i.unit=s,i.end=r[1]?o+(r[1]+1)*r[2]:+r[2]),i}]};K.Animation=K.extend(R,{tweener:function(t,e){K.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,r=t.length;r>n;n++)i=t[n],ie[i]=ie[i]||[],ie[i].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),K.speed=function(t,e,i){var n=t&&"object"==typeof t?K.extend({},t):{complete:i||!i&&e||K.isFunction(t)&&t,duration:t,easing:i&&e||e&&!K.isFunction(e)&&e};return n.duration=K.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in K.fx.speeds?K.fx.speeds[n.duration]:K.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){K.isFunction(n.old)&&n.old.call(this),n.queue&&K.dequeue(this,n.queue)},n},K.fn.extend({fadeTo:function(t,e,i,n){return this.filter(kt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=K.isEmptyObject(t),s=K.speed(e,i,n),o=function(){var e=R(this,K.extend({},t),s);(r||_t.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",s=K.timers,o=_t.get(this);if(r)o[r]&&o[r].stop&&n(o[r]);else for(r in o)o[r]&&o[r].stop&&te.test(r)&&n(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(i),e=!1,s.splice(r,1));(e||!i)&&K.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=_t.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],s=K.timers,o=n?n.length:0;for(i.finish=!0,K.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;o>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),K.each(["toggle","show","hide"],function(t,e){var i=K.fn[e];K.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(P(e,!0),t,n,r)}}),K.each({slideDown:P("show"),slideUp:P("hide"),slideToggle:P("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){K.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),K.timers=[],K.fx.tick=function(){var t,e=0,i=K.timers;for(Zt=K.now();e/g,">").replace(/"/g,""")}),function(){(function(){this.map&&i.push('\n
\n'),i.push('\n
\n
\n')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],105:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t("underscore"),o=t("./layout_box"),h=t("./logging").logging,a=t("../mapper/linear_mapper"),l=t("../mapper/log_mapper"),r=t("../mapper/categorical_mapper"),s=t("../mapper/grid_mapper"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="CartesianFrame",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),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 s.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)},e.prototype.map_to_screen=function(t,e,i,n,r){var s,o,a,l;return null==n&&(n="default"),null==r&&(r="default"),a=this.get("x_mappers")[n].v_map_to_target(t),s=i.v_vx_to_sx(a),l=this.get("y_mappers")[r].v_map_to_target(e),o=i.v_vy_to_sy(l),[s,o]},e.prototype._get_ranges=function(t){var e,i,n,r;if(r={},r["default"]=this.get(t+"_range"),e=this.get("extra_"+t+"_ranges"),null!=e)for(i in e)n=e[i],r[i]=this.resolve_ref(n);return r},e.prototype._get_mappers=function(t,e,i){var n,s,o,u;s={};for(o in e){if(u=e[o],"Range1d"===u.type||"DataRange1d"===u.type)n="log"===this.get(t+"_mapper_type")?l.Model:a.Model;else{if("FactorRange"!==u.type)return logger.warn("unknown range type for range '"+o+"': "+u),null;n=r.Model}s[o]=new n({source_range:u,target_range:i})}return s},e.prototype._update_mappers=function(){var t,e,i,n,r;i=this.get("x_mappers");for(e in i)t=i[e],t.set("target_range",this.get("h_range"));n=this.get("y_mappers"),r=[];for(e in n)t=n[e],r.push(t.set("target_range",this.get("v_range")));return r},e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{extra_x_ranges:{},extra_y_ranges:{}})},e}(o.Model),e.exports={Model:n}},{"../mapper/categorical_mapper":138,"../mapper/grid_mapper":139,"../mapper/linear_mapper":141,"../mapper/log_mapper":142,"./layout_box":117,"./logging":119,underscore:92}],106:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("./continuum_view"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.attributes={"class":"bk-closewrapper"},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t)},e.prototype.events={"click .bk-close":"close"},e.prototype.close=function(t){return this.view.remove(),this.remove()},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.view=t.view,this.render()},e.prototype.render=function(){return this.view.el.detach(),this.el.detach(),this.el.empty(),this.$el.html("[x]"),this.el.append(this.view.el.append(this.view.el)},e}(r),e.exports={View:n}},{"./continuum_view":109,underscore:92}],107:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("backbone"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e}(n.Collection),e.exports=r},{backbone:2}],108:[function(t,e,i){var n,r,s,o;r=function(t){var e;return e=Number(t).toString(16),e=1===e.length?"0"+e:e},s=function(t){var e,i,s;return t+="",0===t.indexOf("#")?t:null!=n[t]?n[t]:0===t.indexOf("rgb")?(i=t.match(/\d+/g),e=function(){var t,e,n;for(n=[],t=0,e=i.length;e>t;t++)s=i[t],n.push(r(s));return n}().join(""),"#"+e.slice(0,8)):t},o=function(t,e){var i,n,r;if(null==e&&(e=1),!t)return[0,0,0,0];for(i=s(t),i=i.replace(/ |#/g,""),i.length/g,">").replace(/"/g,""")}),function(){(function(){i.push("
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],124:[function(t,e,i){var n,r,s,o;n=["image","underlay","glyph","overlay","annotation","tool"],r=function(t){return t()},s=("undefined"!=typeof window&&null!==window?window.requestAnimationFrame:void 0)||("undefined"!=typeof window&&null!==window?window.mozRequestAnimationFrame:void 0)||("undefined"!=typeof window&&null!==window?window.webkitRequestAnimationFrame:void 0)||("undefined"!=typeof window&&null!==window?window.msRequestAnimationFrame:void 0)||r,o=function(t,e){var i,n,r,o,a,l,u,h;return l=[null,null,null,null],n=l[0],i=l[1],h=l[2],u=l[3],a=0,o=!1,r=function(){return a=new Date,h=null,o=!1,u=t.apply(n,i)},function(){var t,l;return t=new Date,l=e-(t-a),n=this,i=arguments,0>=l&&!o?(clearTimeout(h),o=!0,s(r)):h||(h=setTimeout(function(){return s(r)},l)),u}},e.exports={LEVELS:n,throttle_animation:o}},{}],125:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("./continuum_view"),r=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return s(i,t),i.prototype.tagName="div",i.prototype.initialize=function(t){return this.plot_model=t.plot_model,this.plot_view=t.plot_view},i.prototype.bind_bokeh_events=function(){},i.prototype.request_render=function(){return this.plot_view.request_render()},e.exports=i,i}(n)},{"./continuum_view":109}],126:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D=function(t,e){function i(){this.constructor=t}for(var n in e)T.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},T={}.hasOwnProperty,S=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};y=t("underscore"),d=t("./has_properties"),M=t("./svg_colors"),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.obj=this.get("obj"),this.attr=this.get("attr"),this.listenTo(this.obj,"change:"+this.attr,function(){return this._init(),this.obj.trigger("propchange")}),this._init()},e.prototype._init=function(){var t;if(t=this.obj.get(this.attr),y.isObject(t)&&!y.isArray(t))if(this.spec=t,y.isUndefined(this.spec.value)){if(null==this.spec.field)throw new Error("spec for property '"+attr+"' needs one of 'value' or 'field'");this.field=this.spec.field}else this.fixed_value=this.spec.value;else this.fixed_value=t;if(null!=this.field&&!y.isString(this.field))throw new Error("field value for property '"+attr+"' is not a string");return null!=this.fixed_value?this.validate(this.fixed_value,this.attr):void 0},e.prototype.value=function(){var t;return t=null!=this.fixed_value?this.fixed_value:NaN,this.transform([t])[0]},e.prototype.array=function(t){var e,i,n,r;return e=t.get("data"),null!=this.field&&this.field in e?this.transform(t.get_column(this.field)):(n=t.get_length(),null==n&&(n=1),r=this.value(),function(){var t,e,s;for(s=[],i=t=0,e=n;e>=0?e>t:t>e;i=e>=0?++t:--t)s.push(r);return s}())},e.prototype.transform=function(t){return t},e.prototype.validate=function(t,e){return!0},e}(d),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isNumber(t))throw new Error("numeric property '"+e+"' given invalid value: "+t);return!0},e.prototype.transform=function(t){var e,i,n,r;for(r=new Float64Array(t.length),e=i=0,n=t.length;n>=0?n>i:i>n;e=n>=0?++i:--i)r[e]=t[e];return r},e}(m),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r,s,o,a;if(e.__super__.initialize.call(this,t,i),r=this.get("obj"),n=this.get("attr"),this.units=null!=(s=null!=(o=null!=(a=this.spec)?a.units:void 0)?o:r.get(n+"_units"))?s:"rad","deg"!==this.units&&"rad"!==this.units)throw new Error("Angle units must be one of 'deg' or 'rad', given invalid value: "+this.units)},e.prototype.transform=function(t){var i;return"deg"===this.units&&(t=function(){var e,n,r;for(r=[],e=0,n=t.length;n>e;e++)i=t[e],r.push(i*Math.PI/180);return r}()),t=function(){var e,n,r;for(r=[],e=0,n=t.length;n>e;e++)i=t[e],r.push(-i);return r}(),e.__super__.transform.call(this,t)},e}(g),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.initialize=function(t,i){var n,r,s,o,a;if(e.__super__.initialize.call(this,t,i),r=this.get("obj"),n=this.get("attr"),this.units=null!=(s=null!=(o=null!=(a=this.spec)?a.units:void 0)?o:r.get(n+"_units"))?s:"data","data"!==this.units&&"screen"!==this.units)throw new Error("Distance units must be one of 'data' or 'screen', given invalid value: "+this.units)},e}(g),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isArray(t))throw new Error("array property '"+e+"' given invalid value: "+t);return!0},e}(m),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isBoolean(t))throw new Error("boolean property '"+e+"' given invalid value: "+t);return!0},e}(m),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(!y.isNumber(t)&&!y.isString(t))throw new Error("coordinate property '"+e+"' given invalid value: "+t);return!0},e}(m),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return D(e,t),e.prototype.validate=function(t,e){if(null==M[t.toLowerCase()]&&"#"!==t.substring(0,1)&&!this.valid_rgb(t))throw new Error("color property '"+e+"' given invalid value: "+t);return!0},e.prototype.valid_rgb=function(t){var e,i,n,r;switch(t.substring(0,4)){case"rgba":i={start:"rgba(",len:4,alpha:!0};break;case"rgb(":i={start:"rgb(",len:3,alpha:!1};break;default:return!1}if(new RegExp(".*?(\\.).*(,)").test(t))throw new Error("color expects integers for rgb in rgb/rgba tuple, received "+t);if(e=t.replace(i.start,"").replace(")","").split(",").map(parseFloat),e.length!==i.len)throw new Error("color expects rgba "+expect_len+"-tuple, received "+t);if(i.alpha&&!(0/g,">").replace(/"/g,""")}),function(){(function(){null!=this.logo&&"grey"===this.logo?i.push("\n \n"):null!=this.logo&&i.push("\n\n"),i.push("\n
\n
    \n
      \n
        \n
          \n
            \n
              \n
                \n
                \n
                  \n
                \n")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],137:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),r=t("backbone"),null!=i._bokehTest?(h=i._bokehTest,s=h.Hammer,u=h.mousewhweel):(s=t("hammerjs"),l=t("jquery-mousewheel")(n)),a=t("./logging").logger,o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this._hammer_element()},e.prototype._hammer_element=function(){var t;return t=this.get("hit_area"),this.hammer=new s(t[0]),this.hammer.get("doubletap").recognizeWith("tap"),this.hammer.get("tap").requireFailure("doubletap"),this.hammer.get("doubletap").dropRequireFailure("tap"),this.hammer.on("doubletap",function(t){return function(e){return t._doubletap(e)}}(this)),this.hammer.on("tap",function(t){return function(e){return t._tap(e)}}(this)),this.hammer.on("press",function(t){return function(e){return t._press(e)}}(this)),this.hammer.get("pan").set({direction:s.DIRECTION_ALL}),this.hammer.on("panstart",function(t){return function(e){return t._pan_start(e)}}(this)),this.hammer.on("pan",function(t){return function(e){return t._pan(e)}}(this)),this.hammer.on("panend",function(t){return function(e){return t._pan_end(e)}}(this)),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("pinchstart",function(t){return function(e){return t._pinch_start(e)}}(this)),this.hammer.on("pinch",function(t){return function(e){return t._pinch(e)}}(this)),this.hammer.on("pinchend",function(t){return function(e){return t._pinch_end(e)}}(this)),this.hammer.get("rotate").set({enable:!0}),this.hammer.on("rotatestart",function(t){return function(e){return t._rotate_start(e)}}(this)),this.hammer.on("rotate",function(t){return function(e){return t._rotate(e)}}(this)),this.hammer.on("rotateend",function(t){return function(e){return t._rotate_end(e)}}(this)),t.mousemove(function(t){return function(e){return t._mouse_move(e)}}(this)),t.mouseenter(function(t){return function(e){return t._mouse_enter(e)}}(this)),t.mouseleave(function(t){return function(e){return t._mouse_exit(e)}}(this)),t.mousewheel(function(t){return function(e,i){return t._mouse_wheel(e,i)}}(this)),n(document).keydown(function(t){return function(e){return t._key_down(e)}}(this)),n(document).keyup(function(t){return function(e){return t._key_up(e)}}(this))},e.prototype.register_tool=function(t){var e,i,n;return e=t.mget("event_type"),i=t.mget("id"),n=t.model.type,null==e?void a.debug("Button tool: "+n):("pan"===e||"pinch"===e||"rotate"===e?(a.debug("Registering tool: "+n+" for event '"+e+"'"),null!=t["_"+e+"_start"]&&t.listenTo(this,e+":start:"+i,t["_"+e+"_start"]),t["_"+e]&&t.listenTo(this,e+":"+i,t["_"+e]),t["_"+e+"_end"]&&t.listenTo(this,e+":end:"+i,t["_"+e+"_end"])):"move"===e?(a.debug("Registering tool: "+n+" for event '"+e+"'"),null!=t._move_enter&&t.listenTo(this,"move:enter",t._move_enter),t.listenTo(this,"move",t._move),null!=t._move_exit&&t.listenTo(this,"move:exit",t._move_exit)):(a.debug("Registering tool: "+n+" for event '"+e+"'"),t.listenTo(this,e+":"+i,t["_"+e])),null!=t._keydown&&(a.debug("Registering tool: "+n+" for event 'keydown'"),t.listenTo(this,"keydown",t._keydown)),null!=t._keyup&&(a.debug("Registering tool: "+n+" for event 'keyup'"),t.listenTo(this,"keyup",t._keyup)),null!=t._doubletap?(a.debug("Registering tool: "+n+" for event 'doubletap'"),t.listenTo(this,"doubletap",t._doubletap)):void 0)},e.prototype._trigger=function(t,e){var i,n,r,s;return s=this.get("tool_manager"),n=t.split(":")[0],r=s.get("gestures"),i=r[n].active,this._trigger_event(t,i,e)},e.prototype._trigger_event=function(t,e,i){return null!=e?("scroll"===t&&(i.preventDefault(),i.stopPropagation()),this.trigger(t+":"+e.id,i)):void 0},e.prototype._bokify_hammer=function(t){var e,i,r,s,o;return"mouse"===t.pointerType?(i=n(t.target).offset(),e=null!=(r=i.left)?r:0,o=null!=(s=i.top)?s:0,t.bokeh={sx:t.srcEvent.pageX-e,sy:t.srcEvent.pageY-o}):t.bokeh={sx:t.center.x,sy:t.center.y}},e.prototype._bokify_jq=function(t){var e,i,r,s,o;return i=n(t.currentTarget).offset(),e=null!=(r=i.left)?r:0,o=null!=(s=i.top)?s:0,t.bokeh={sx:t.pageX-e,sy:t.pageY-o}},e.prototype._tap=function(t){return this._bokify_hammer(t),this._trigger("tap",t)},e.prototype._doubletap=function(t){return this._bokify_hammer(t),this.trigger("doubletap",t)},e.prototype._press=function(t){return this._bokify_hammer(t),this._trigger("press",t)},e.prototype._pan_start=function(t){return this._bokify_hammer(t),t.bokeh.sx-=t.deltaX,t.bokeh.sy-=t.deltaY,this._trigger("pan:start",t)},e.prototype._pan=function(t){return this._bokify_hammer(t),this._trigger("pan",t)},e.prototype._pan_end=function(t){return this._bokify_hammer(t),this._trigger("pan:end",t)},e.prototype._pinch_start=function(t){return this._bokify_hammer(t),this._trigger("pinch:start",t)},e.prototype._pinch=function(t){return this._bokify_hammer(t),this._trigger("pinch",t)},e.prototype._pinch_end=function(t){return this._bokify_hammer(t),this._trigger("pinch:end",t)},e.prototype._rotate_start=function(t){return this._bokify_hammer(t),this._trigger("rotate:start",t)},e.prototype._rotate=function(t){return this._bokify_hammer(t),this._trigger("rotate",t)},e.prototype._rotate_end=function(t){return this._bokify_hammer(t),this._trigger("rotate:end",t)},e.prototype._mouse_enter=function(t){return this._bokify_jq(t),this.trigger("move:enter",t)},e.prototype._mouse_move=function(t){return this._bokify_jq(t),this.trigger("move",t)},e.prototype._mouse_exit=function(t){return this._bokify_jq(t),this.trigger("move:exit",t)},e.prototype._mouse_wheel=function(t,e){return this._bokify_jq(t),t.bokeh.delta=e,this._trigger("scroll",t)},e.prototype._key_down=function(t){return this.trigger("keydown",t)},e.prototype._key_up=function(t){return this.trigger("keyup",t)},e}(r.Model),e.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./logging":119,backbone:2,hammerjs:3,jquery:18,"jquery-mousewheel":4}],138:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),r=t("./linear_mapper"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.map_to_target=function(t,i){var n,r,o,a,l,u;return null==i&&(i=!1),s.isNumber(t)?i?t:e.__super__.map_to_target.call(this,t):(a=this.get("source_range"),r=a.get("factors"),t.indexOf(":")>=0?(l=t.split(":"),n=l[0],o=l[1],o=parseFloat(o),u=r.indexOf(n)+.5+a.get("offset")+o):u=r.indexOf(t)+1+a.get("offset"),i?u:e.__super__.map_to_target.call(this,u))},e.prototype.v_map_to_target=function(t,i){var n,r,o,a,l,u,h,c,p,d;if(null==i&&(i=!1),s.isNumber(t[0]))return i?t:e.__super__.v_map_to_target.call(this,t);for(u=this.get("source_range"),r=u.get("factors"),p=Array(t.length),o=a=0,h=t.length;h>=0?h>a:a>h;o=h>=0?++a:--a)d=t[o],d.indexOf(":")>=0?(c=d.split(":"),n=c[0],l=c[1],l=parseFloat(l),p[o]=r.indexOf(n)+.5+u.get("offset")+l):p[o]=r.indexOf(d)+1+u.get("offset");return i?p:e.__super__.v_map_to_target.call(this,p)},e.prototype.map_from_target=function(t,i){var n,r;return null==i&&(i=!1),t=e.__super__.map_from_target.call(this,t),i?t:(r=this.get("source_range"),n=r.get("factors"),n[Math.floor(t-.5-r.get("offset"))])},e.prototype.v_map_from_target=function(t,i){var n,r,s,o,a,l,u,h,c;for(null==i&&(i=!1),c=e.__super__.v_map_from_target.call(this,t),r=s=0,l=c.length;l>=0?l>s:s>l;r=l>=0?++s:--s)c[r]=c[r];if(i)return c;for(h=Array(c),a=this.get("source_range"),n=a.get("factors"),r=o=0,u=t.length;u>=0?u>o:o>u;r=u>=0?++o:--o)h[r]=n[Math.floor(c[r]-.5-a.get("offset"))];return h},e}(r.Model),e.exports={Model:n}},{"./linear_mapper":141,underscore:92}],139:[function(t,e,i){var n,r,s=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=t("../common/has_properties"),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return s(e,t),e.prototype.map_to_target=function(t,e){var i,n;return i=this.get("domain_mapper").map_to_target(t),n=this.get("codomain_mapper").map_to_target(e),[i,n]},e.prototype.v_map_to_target=function(t,e){var i,n;return i=this.get("domain_mapper").v_map_to_target(t),n=this.get("codomain_mapper").v_map_to_target(e),[i,n]},e.prototype.map_from_target=function(t,e){var i,n;return i=this.get("domain_mapper").map_from_target(t),n=this.get("codomain_mapper").map_from_target(e),[i,n]},e.prototype.v_map_from_target=function(t,e){var i,n;return i=this.get("domain_mapper").v_map_from_target(t),n=this.get("codomain_mapper").v_map_from_target(e),[i,n]},e}(r),e.exports={Model:n}},{"../common/has_properties":115}],140:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;s=t("underscore"),n=t("../common/has_properties"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.palette=this._build_palette(this.get("palette")),this.little_endian=this._is_little_endian(),null!=this.get("reserve_color")?(this.reserve_color=parseInt(this.get("reserve_color").slice(1),16),this.reserve_val=this.get("reserve_val")):void 0},e.prototype.v_map_screen=function(t){var e,i,n,r,o,a,l,u,h,c,p,d,f,g,m,_;if(i=new ArrayBuffer(4*t.length),n=new Uint32Array(i),h=null!=(p=this.get("low"))?p:s.min(t),o=null!=(d=this.get("high"))?d:s.max(t),e=this.palette.length-1,m=e/(o-h),c=-m*h,this.little_endian)for(a=l=0,f=t.length;f>=0?f>l:l>f;a=f>=0?++l:--l)r=t[a],r===this.reserve_val?_=this.reserve_color:(r>o&&(r=o),h>r&&(r=h),_=this.palette[Math.floor(r*m+c)]),n[a]=255</g,">").replace(/"/g,""")}),function(){(function(){i.push("

                \n \n You have no Plots. Follow the instructions below to create some.\n \n

                \n")}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],199:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y=function(t,e){function i(){this.constructor=t}for(var n in e)b.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},b={}.hasOwnProperty;c=t("underscore"),n=t("jquery"),p=t("../../common/base"),d=t("../../common/build_views"),s=t("../../common/continuum_view"),r=t("../../common/collection"),l=t("../../common/has_parent"),g=t("../../common/load_models"),f=t("./documentationtemplate"),_=t("../serverutils").utility,m=t("./userdocstemplate"),v=t("./wrappertemplate"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.template=v,e.prototype.attributes={"class":"panel-group"},e.prototype.events={"click .bokehdoclabel":"loaddoc","click .bokehdelete":"deldoc"},e.prototype.deldoc=function(t){return t.preventDefault(),this.model.destroy(),!1},e.prototype.loaddoc=function(){return this.model.load()},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render_init()},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t),this.listenTo(this.model,"loaded",this.render)},e.prototype.render_init=function(){var t;return t=this.template({model:this.model,bodyid:c.uniqueId()}),this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 11: el.html(t)}̲,e.prototype.re…el.find(".plots").append(this.plot_context_view.el),!0},e}(s),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.initialize=function(t){return this.docs=t.docs,this.collection=t.collection,this.views={},e.__super__.initialize.call(this,t),this.render()},e.prototype.attributes={"class":"usercontext"},e.prototype.events={"click .bokehrefresh":function(){return this.collection.fetch({update:!0})}},e.prototype.delegateEvents=function(t){return e.__super__.delegateEvents.call(this,t),this.listenTo(this.collection,"add",this.render),this.listenTo(this.collection,"remove",this.render),this.listenTo(this.collection,"add",function(t){return function(e,i,n){return t.listenTo(e,"loaded",function(){return t.listenTo(e.get("plot_context"),"change",function(){return t.trigger("show")})})}}(this)),this.listenTo(this.collection,"remove",function(t){return function(e,i,n){return t.stopListening(e)}}(this))},e.prototype.render_docs=function(){return this.el.html(f()),this.el.html(f()),this.el.append(this.docs)},e.prototype.render=function(){var t,e,i,n,r;if(0===this.collection.models.length&&this.docs)return this.render_docs();for(t=m(),c.map(c.values(this.views),function(t){return t.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 12: el.detach()}̲),r=this.collec…el.html(t),e=0,i=r.length;i>e;e++)n=r[e],this.$el.find(".accordion").append(this.views[n.id].el);return this},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.default_view=a,e.prototype.idAttribute="docid",e.prototype.defaults=function(){return c.extend({},e.__super__.defaults.call(this),{docid:null,title:null,plot_context:null,apikey:null})},e.prototype.sync=function(){},e.prototype.destroy=function(t){return e.__super__.destroy.call(this,t),n.ajax({url:"/bokeh/doc/"+this.get("docid")+"/",type:"delete"})},e.prototype.load=function(t){var e,i,n;if(!this.loaded)return t?(n=this.get("title"),i=_.load_doc_by_title(n)):(e=this.get("docid"),i=_.load_doc(e)),i.done(function(t){return function(e){return t.set("docid",e.docid),t.set("apikey",e.apikey),t.set("plot_context",e.plot_context_ref),t.trigger("loaded"),t.loaded=!0}}(this))},e}(l),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return y(e,t),e.prototype.model=o,e.prototype.subscribe=function(t,e){return t.subscribe("bokehuser:"+e,null),this.listenTo(t,"msg:bokehuser:"+e,function(t){return t=JSON.parse(t),"docchange"===t.msgtype?this.fetch({update:!0}):void 0})},e.prototype.fetch=function(t){var e,i,r;return c.isUndefined(t)&&(t={}),r=p.Config.prefix+"bokeh/userinfo/",e=i=n.get(r,{}),e.done(function(e){return function(i){var n;return n=i.docs,t.update?e.set(n,t):e.reset(n,t)}}(this)),e},e}(r),e.exports={UserDocs:u,UserDocsView:h,Doc:o,DocView:a}},{"../../common/base":99,"../../common/build_views":101,"../../common/collection":107,"../../common/continuum_view":109,"../../common/has_parent":114,"../../common/load_models":118,"../serverutils":197,"./documentationtemplate":198,"./userdocstemplate":200,"./wrappertemplate":201,jquery:18,underscore:92}],200:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){i.push('
                \n
                \n')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],201:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){i.push('\n')}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],202:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i, t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),l=t("underscore"),o=t("backbone"),u=t("../common/logging").logger,a=t("./remote_data_source"),r=function(t){function e(){return this.defaults=h(this.defaults,this),this.get_data=h(this.get_data,this),this.setup=h(this.setup,this),this.destroy=h(this.destroy,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="AjaxDataSource",e.prototype.destroy=function(){return null!=this.interval?clearInterval(this.interval):void 0},e.prototype.setup=function(t,e){return this.pv=t,this.get_data(this.get("mode")),this.get("polling_interval")?this.interval=setInterval(this.get_data,this.get("polling_interval"),this.get("mode"),this.get("max_size"),this.get("if_modified")):void 0},e.prototype.get_data=function(t,e,i){return null==e&&(e=0),null==i&&(i=!1),n.ajax({dataType:"json",ifModified:i,url:this.get("data_url"),xhrField:{withCredentials:!0},method:this.get("method"),contentType:"application/json"}).done(function(i){return function(n){var r,s,o,a,l;if("replace"===t)i.set("data",n);else if("append"===t){for(a=i.get("data"),l=i.columns(),s=0,o=l.length;o>s;s++)r=l[s],n[r]=a[r].concat(n[r]).slice(-e);i.set("data",n)}else u.error("unsupported mode: "+t);return u.trace(n),null}}(this)).error(function(){return u.error(arguments)}),null},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{mode:"replace"})},e}(a.RemoteDataSource),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.model=r,e.prototype.defaults={url:"",expr:null},e}(o.Collection),e.exports={Model:r,Collection:new s}},{"../common/logging":119,"./remote_data_source":205,backbone:2,jquery:18,underscore:92}],203:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=t("jquery"),l=t("underscore"),r=t("backbone"),u=t("../common/logging").logger,a=t("./remote_data_source"),s=function(t){function e(){return this.update=h(this.update,this),this.setup=h(this.setup,this),this.destroy=h(this.destroy,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="BlazeDataSource",e.prototype.destroy=function(){return null!=this.interval?clearInterval(this.interval):void 0},e.prototype.setup=function(t,e){return this.pv=t,this.update(),this.get("polling_interval")?this.interval=setInterval(this.update,this.get("polling_interval")):void 0},e.prototype.update=function(){var t;return t=JSON.stringify({expr:this.get("expr"),namespace:this.get("namespace")}),n.ajax({dataType:"json",url:this.get("data_url"),data:t,xhrField:{withCredentials:!0},method:"POST",contentType:"application/json"}).done(function(t){return function(e){var i,n,r,s,o,a,u,h;for(n=l.zip.apply(l,e.data),r={},h=e.names,o=s=0,a=h.length;a>s;o=++s)i=h[o],r[i]=n[o];return u=l.clone(t.get("data")),l.extend(u,r),t.set("data",u),null}}(this))},e}(a.RemoteDataSource),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.model=s,e.prototype.defaults={url:"",expr:null},e}(r.Collection),e.exports={Model:s,Collection:new o}},{"../common/logging":119,"./remote_data_source":205,backbone:2,jquery:18,underscore:92}],204:[function(t,e,i){var n,r,s,o,a,l=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;o=t("underscore"),r=t("../common/has_properties"),s=t("../common/selection_manager"),a=t("../common/hittest"),n=function(t){function e(){return this.defaults=l(this.defaults,this),e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="ColumnDataSource",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this,"change:selected",function(t){return function(){var e;return null!=(e=t.get("callback"))?e.execute(t):void 0}}(this))},e.prototype.get_column=function(t){var e;return null!=(e=this.get("data")[t])?e:null},e.prototype.get_length=function(){var t,e,i,n;return t=this.get("data"),0===o.keys(t).length?null:(i=o.uniq(function(){var i;i=[];for(e in t)n=t[e],i.push(n.length);return i}()),i[0])},e.prototype.columns=function(){return o.keys(this.get("data"))},e.prototype.defaults=function(){return o.extend({},e.__super__.defaults.call(this),{data:{},selection_manager:new s({source:this}),selected:a.create_hit_test_result()})},e}(r),e.exports={Model:n}},{"../common/has_properties":115,"../common/hittest":116,"../common/selection_manager":128,underscore:92}],205:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;o=t("underscore"),n=t("backbone"),r=t("./column_data_source"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e}(r.Model),e.exports={RemoteDataSource:s}},{"./column_data_source":204,backbone:2,underscore:92}],206:[function(t,e,i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_=function(t,e){function i(){this.constructor=t}for(var n in e)v.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},v={}.hasOwnProperty,y=function(t,e){return function(){return t.apply(e,arguments)}};n=t("jquery"),f=t("underscore"),s=t("backbone"),a=t("../common/has_properties"),m=t("../common/logging").logger,h=t("../range/range1d"),o=t("../range/data_range1d"),c=t("./remote_data_source"),g=function(t){var e,i,n,r;return e=!1,r=null,n=!1,i=function(){return e?n?m.debug("already bound, ignoring"):(m.debug("busy, so doing it later"),n=!0,r.done(function(){return n=!1,i()})):(m.debug("executing"),e=!0,r=t(),r.done(function(){return m.debug("done, setting to false"),e=!1,r=null}))}},d=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.callbacks=[],this.plot_state={data_x:i.data_x,data_y:i.data_y,screen_x:i.screen_x,screen_y:i.screen_y},this.glyph=i.glyph,this.data_source=i.data_source,this.render_state=i.render_state,this.auto_bounds=i.data_source.get("transform").auto_bounds},e.prototype.stoplistening_for_updates=function(){var t,e,i,n,r;for(n=this.callbacks,r=[],e=0,i=n.length;i>e;e++)t=n[e],r.push(this.stopListening.apply(this,t));return r},e.prototype.listen_for_updates=function(){var t,e,i,n,r;for(this.stoplistening_for_updates(),t=g(function(t){return function(){return t.update()}}(this)),t=f.debounce(t,100),t(),r=[this.plot_state.data_x,this.plot_state.data_x,this.plot_state.screen_x,this.plot_state.screen_y],e=0,i=r.length;i>e;e++)n=r[e],this.listenTo(n,"change",t),this.callbacks.push([n,"change",t]);return null},e.prototype.update=function(){return null},e.prototype.plot_state_json=function(){var t,e,i,n,r;r={},n=this.plot_state;for(e in n)t=n[e],i=new h.Model,i.set("start",t.get("start")),i.set("end",t.get("end")),r[e]=i;return r},e.prototype.update_url=function(){var t,e,i,n,r,s;return i=this.glyph,this.get("data_url")?(s=data_url,t=s.replace("/compute.json","/render")):t=i.get_base().Config.prefix+"render",e=this.glyph.get("doc"),r=this.data_source.get("id"),n=i.get("id"),s=t+"/"+e+"/"+r+"/"+n},e}(s.Model),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get("start")===e.screen_x.get("end")||e.screen_y.get("start")===e.screen_y.get("end")?(m.debug("skipping due to under-defined view state"),n.ajax()):(m.debug("Sent render State",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:"POST",dataType:"json",url:this.update_url(),xhrField:{withCredentials:!0},contentType:"application/json",data:JSON.stringify(t),success:function(t){return function(i){var n;return"NO UPDATE"===i.render_state?void m.info("No update"):(t.auto_bounds&&(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug("New render State:",i.render_state),n=f.clone(t.data_source.get("data")),f.extend(n,i.data),t.data_source.set("data",n),null)}}(this)}))},e}(d),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get("start")===e.screen_x.get("end")||e.screen_y.get("start")===e.screen_y.get("end")?(m.debug("skipping due to under-defined view state"),n.ajax()):(m.debug("Sent render State",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:"POST",dataType:"json",url:this.update_url(),xhrField:{withCredentials:!0},contentType:"application/json",data:JSON.stringify(t),success:function(t){return function(i){var n;return"NO UPDATE"===i.render_state?void m.info("No update"):(t.auto_bounds&&(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug("New render State:",i.render_state),n=f.clone(t.data_source.get("data")),f.extend(n,i.data),t.data_source.set("data",n),null)}}(this)}))},e}(d),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.update=function(){var t,e,i,r;return e=this.plot_state,i=this.render_state,i||(i={}),e.screen_x.get("start")===e.screen_x.get("end")||e.screen_y.get("start")===e.screen_y.get("end")?(m.debug("skipping due to under-defined view state"),n.ajax()):(m.debug("Sent render State",i),t={plot_state:this.plot_state_json(),render_state:i,auto_bounds:this.auto_bounds},r=n.ajax({method:"POST",dataType:"json",url:this.update_url(),xhrField:{withCredentials:!0},contentType:"application/json",data:JSON.stringify(t),success:function(t){return function(i){var n;return"NO UPDATE"===i.render_state?void m.info("No update"):(t.auto_bounds&&(e.data_x.set({start:i.x_range.start,end:i.x_range.end}),e.data_y.set({start:i.y_range.start,end:i.y_range.end}),t.auto_bounds=!1),m.debug("New render State:",i.render_state),n=f.clone(t.data_source.get("data")),f.extend(n,i.data),t.data_source.set("data",n),null)}}(this)}))},e}(d),p=function(t){function e(){return this.setup_proxy=y(this.setup_proxy,this),this.setup=y(this.setup,this),this.initialize=y(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return _(e,t),e.prototype.type="ServerDataSource",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i)},e.prototype.setup=function(t,e){var i,n,r,s,o;return s=o=i=n=r={data_x:t.x_range,data_y:t.y_range,screen_x:t.frame.get("h_range"),screen_y:t.frame.get("v_range"),glyph:e.model},this.setup_proxy(r)},e.prototype.setup_proxy=function(t){return t.data_source=this,"abstract rendering"===this.get("transform").resample?this.proxy=new r({},t):"line1d"===this.get("transform").resample?this.proxy=new u({},t):"heatmap"===this.get("transform").resample&&(this.proxy=new l({},t)),this.proxy.listen_for_updates()},e}(c.RemoteDataSource),e.exports={Model:p}},{"../common/has_properties":115,"../common/logging":119,"../range/data_range1d":144,"../range/range1d":146,"./remote_data_source":205,backbone:2,jquery:18,underscore:92}],207:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;o=t("underscore"),s=t("../common/has_properties"),a=function(t){var e,i,n,r,s;return null===t?"null":null==t?"undefined":t.constructor===Array?(i=function(){var i,n,r;for(r=[],i=0,n=t.length;n>i;i++)e=t[i],r.push(a(e));return r}().join(", "),"["+i+"]"):t.constructor===Object?(s=function(){var e;e=[];for(n in t)e.push(n+": "+a(t[n]));return e}().join(", "),"{"+s+"}"):t.constructor===String?'"'+t+'"':t.constructor===Function?"/g,">").replace(/"/g,""")}),function(){(function(){i.push('
                \n
                \n
                \n \n

                Image Preview (right click -> \'Save As\' to save PNG)

                \n
                \n
                \n \n
                \n
                \n \n
                \n
                \n
                ')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],230:[function(t,e,i){var n,r,s,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=t("./action_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype["do"]=function(){return this.plot_view.update_range()},e}(n.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return o(e,t),e.prototype.default_view=s,e.prototype.type="ResetTool",e.prototype.tool_name="Reset",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRTI5MDhFMDIwQjUxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyOUMzNDE3NDIwQkIxMUU0ODREQUYzNzM5QTM2MjBCRS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04Jz7Ztm9rGHslM1Hhjl2xlCn+4muQP/77RyHdf799uli5FuAAQC+l5Sj5nEBdwAAAABJRU5ErkJggg==",e}(n.Model),e.exports={Model:r,View:s}},{"./action_tool":226}],231:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;l=t("underscore"),n=t("backbone"),a=t("./tool"),u=t("./button_tool_template"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="li",e.prototype.template=u,e.prototype.events=function(){return"ontouchstart"in document?{"touchstart .bk-toolbar-button":"_clicked"}:{"click .bk-toolbar-button":"_clicked"}},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 121: …),this.render()}̲,e.prototype.re…el.children("button").addClass("active"):this.$el.children("button").removeClass("active"),this},e.prototype._clicked=function(t){},e}(n.View),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e}(a.View),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this.get("tool_name")})},e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:!1,tool_name:this.tool_name,icon:this.icon})},e}(a.Model),e.exports={Model:r,View:o,ButtonView:s}},{"./button_tool_template":232,"./tool":247,backbone:2,underscore:92}],232:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){i.push('\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],233:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),s=t("../../renderer/overlay/box_selection"),o=t("./select_tool"),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this._baseboint=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],null},e.prototype._pan=function(t){var e,i,n,r,s,o,a,l,u;return i=this.plot_view.canvas,n=[i.sx_to_vx(t.bokeh.sx),i.sy_to_vy(t.bokeh.sy)],s=this.plot_model.get("frame"),r=this.mget("dimensions"),o=this.model._get_dim_limits(this._baseboint,n,s,r),l=o[0],u=o[1],this.mget("overlay").set("data",{vxlim:l,vylim:u}),this.mget("select_every_mousemove")&&(e=null!=(a=t.srcEvent.shiftKey)?a:!1,this._select(l,u,!1,e)),null},e.prototype._pan_end=function(t){var e,i,n,r,s,o,a,l,u;return i=this.plot_view.canvas,n=[i.sx_to_vx(t.bokeh.sx),i.sy_to_vy(t.bokeh.sy)],s=this.plot_model.get("frame"),r=this.mget("dimensions"),o=this.model._get_dim_limits(this._baseboint,n,s,r),l=o[0],u=o[1],e=null!=(a=t.srcEvent.shiftKey)?a:!1,this._select(l,u,!0,e),this.mget("overlay").set("data",{}),this._baseboint=null,null},e.prototype._select=function(t,e,i,n){var r,s,o,a,l,u,h,c,p,d,f;for(c=t[0],p=t[1],d=e[0],f=e[1],null==n&&(n=!1),s={type:"rect",vx0:c,vx1:p,vy0:d,vy1:f},u=this.mget("renderers"),o=0,a=u.length;a>o;o++)l=u[o],r=l.get("data_source"),h=r.get("selection_manager"),h.select(this,this.plot_view.renderers[l.id],s,i,n);return null!=this.mget("callback")&&this._emit_callback(s),this._save_geometry(s,i,n),null},e.prototype._emit_callback=function(t){var e,i,n,r,s;n=this.mget("renderers")[0],e=this.plot_model.get("canvas"),i=this.plot_model.get("frame"),t.sx0=e.vx_to_sx(t.vx0),t.sx1=e.vx_to_sx(t.vx1),t.sy0=e.vy_to_sy(t.vy0),t.sy1=e.vy_to_sy(t.vy1),r=i.get("x_mappers")[n.get("x_range_name")],s=i.get("y_mappers")[n.get("y_range_name")],t.x0=r.map_from_target(t.vx0),t.x1=r.map_from_target(t.vx1),t.y0=s.map_from_target(t.vy0),t.y1=s.map_from_target(t.vy1),this.mget("callback").execute(this.model,{geometry:t})},e}(o.View),n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.default_view=r,e.prototype.type="BoxSelectTool",e.prototype.tool_name="Box Select",e.prototype.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBODVDNDBCRjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBODVDNDBDMDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE4NUM0MEJEMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4NUM0MEJFMjBCMzExRTQ4NERBRjM3MzlBMzYyMEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+hdQ7dQAAAJdJREFUeNpiXLhs5X8GBPgIxAJQNjZxfiD+wIAKGCkUZ0SWZGIYZIAF3YVoPkEHH6kojhUMyhD6jydEaAlgaWnwh9BAgf9DKpfxDxYHjeay0Vw2bHMZw2guG81lwyXKRnMZWlt98JdDTFAX/x9NQwPkIH6kGMAVEyjyo7lstC4jouc69Moh9L42rlyBTZyYXDS00xBAgAEAqsguPe03+cYAAAAASUVORK5CYII=",e.prototype.event_type="pan",e.prototype.default_order=30,e.prototype.initialize=function(t,i){var n;return e.__super__.initialize.call(this,t,i),this.register_property("tooltip",function(){return this._get_dim_tooltip(this.get("tool_name"),this._check_dims(this.get("dimensions"),"box select tool"))},!1),this.add_dependencies("tooltip",this,["dimensions"]),this.set("overlay",new s.Model),n=this.get("plot").get("renderers"),n.push(this.get("overlay")),this.get("plot").set("renderers",n)},e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{dimensions:["width","height"],select_every_mousemove:!1})},e}(o.Model),e.exports={Model:n,View:r}},{"../../renderer/overlay/box_selection":194,"./select_tool":240,underscore:92}],234:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../../renderer/overlay/box_selection"),o=t("./gesture_tool"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype._pan_start=function(t){var e;return e=this.plot_view.canvas,this._baseboint=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],null},e.prototype._pan=function(t){var e,i,n,r,s,o,a;return e=this.plot_view.canvas,i=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],r=this.plot_model.get("frame"),n=this.mget("dimensions"),s=this.model._get_dim_limits(this._baseboint,i,r,n),o=s[0],a=s[1],this.mget("overlay").set("data",{vxlim:o,vylim:a}),null},e.prototype._pan_end=function(t){var e,i,n,r,s,o,a;return e=this.plot_view.canvas,i=[e.sx_to_vx(t.bokeh.sx),e.sy_to_vy(t.bokeh.sy)],r=this.plot_model.get("frame"),n=this.mget("dimensions"),s=this.model._get_dim_limits(this._baseboint,i,r,n),o=s[0],a=s[1],this._update(o,a),this.mget("overlay").set("data",{}),this._baseboint=null,null},e.prototype._update=function(t,e){var i,n,r,s,o,a,l,u,h,c,p;if(!(Math.abs(t[1]-t[0])<=5||Math.abs(e[1]-e[0])/g,">").replace(/"/g,""")}),function(){(function(){i.push('\n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],247:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),n=t("../common/has_properties"),l=t("../common/logging").logger,r=t("../common/plot_widget"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.bind_bokeh_events=function(){return this.listenTo(this.model,"change:active",function(t){return function(){return t.mget("active")?t.activate():t.deactivate()}}(this))},e.prototype.activate=function(){},e.prototype.deactivate=function(){},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype._check_dims=function(t,e){var i,n,r;return n=[!1,!1],r=n[0],i=n[1],0===t.length?l.warn(e+" given empty dimensions"):1===t.length?"width"!==t[0]&&"height"!==t[0]&&l.warn(e+" given unrecognized dimensions: "+t):2===t.length?(t.indexOf("width")<0||t.indexOf("height")/g,">")},e.prototype.defaults=function(){return c.extend({},e.__super__.defaults.call(this),this.formatterDefaults)},e}(a),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="StringFormatter",e.prototype.formatterDefaults={font_style:null,text_align:null,text_color:null},e.prototype.format=function(t,i,r,s,o){var a,l,u,h;if(l=e.__super__.format.call(this,t,i,r,s,o),a=this.get("font_style"),u=this.get("text_align"),h=this.get("text_color"),null!=a||null!=u||null!=h){switch(l=n(""+l+""),a){case"bold":l=l.css("font-weight","bold");break;case"italic":l=l.css("font-style","italic")}null!=u&&(l=l.css("text-align",u)),null!=h&&(l=l.css("color",h)),l=l.prop("outerHTML")}return l},e}(s),l=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="NumberFormatter",e.prototype.formatterDefaults={font_style:null,text_align:null,text_color:null,format:"0,0",language:"en",rounding:"round"},e.prototype.format=function(t,i,n,r,s){var o,a,l;return o=this.get("format"),a=this.get("language"),l=function(){switch(this.get("rounding")){case"round":case"nearest":return Math.round;case"floor":case"rounddown":return Math.floor;case"ceil":case"roundup":return Math.ceil}}.call(this),n=u.format(n,o,a,l),e.__super__.format.call(this,t,i,n,r,s)},e}(h),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="BooleanFormatter",e.prototype.formatterDefaults={icon:"check"},e.prototype.format=function(t,e,i,r,s){return i?n("").addClass(this.get("icon")).html():""},e}(s),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return p(e,t),e.prototype.type="DateFormatter",e.prototype.formatterDefaults={format:"yy M d"},e.prototype.getFormat=function(){var t,e;return t=this.get("format"),e=function(){switch(t){case"ATOM":case"W3C":case"RFC-3339":case"ISO-8601":return"ISO-8601";case"COOKIE":return"COOKIE";case"RFC-850":return"RFC-850";case"RFC-1036":return"RFC-1036";case"RFC-1123":return"RFC-1123";case"RFC-2822":return"RFC-2822";case"RSS":case"RFC-822":return"RFC-822";case"TICKS":return"TICKS";case"TIMESTAMP":return"TIMESTAMP";default:return null}}(),null!=e?n.datepicker[e]:t},e.prototype.format=function(t,i,r,s,o){var a;return r=c.isString(r)?parseInt(r,10):r,a=n.datepicker.formatDate(this.getFormat(),new Date(r)),e.__super__.format.call(this,t,i,a,s,o)},e}(s),e.exports={String:{Model:h},Number:{Model:l},Boolean:{Model:r},Date:{Model:o}}},{"../../vendor/numeral.js-1.5.3/numeral.js":304,"../common/has_properties":115,jquery:18,underscore:92}],255:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty,p=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("bootstrap/button"),a=t("../common/continuum_view"),l=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="div",e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l;for(this.el.empty(),this.el.empty(),this.el.addClass("bk-bs-btn-group"),this.ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 204: …,p.call(i,r)>=0&̲&e.addClass("bk…el.append(e);return this},e.prototype.change_input=function(){var t,e,i,n;return t=function(){var t,n,r,s;for(r=this.ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 59: …=r[i],e.checked&̲&s.push(i);retu…el.empty(),r=this.mget("active"),u=this.mget("labels"),s=o=0,l=u.length;l>o;s=++o)a=u[s],e=n('").text(a).prepend(e),this.mget("inline")?(i.addClass("bk-bs-checkbox-inline"),this.$el.append(i)):(t=n('
                ').append(i),this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 26: …t));return this}̲,e.prototype.ch…("input"),s=[],i=t=0,n=r.length;n>t;i=++t)e=r[i],e.checked&&s.push(i);return s}.call(this),this.mset("active",t),this.model.save(),null!=(n=this.mget("callback"))?n.execute(this.model):void 0},e}(o),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="CheckboxGroup",e.prototype.default_view=s,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:[],labels:[],inline:!1,disabled:!1})},e}(a),e.exports={Model:r,View:s}},{"../common/continuum_view":109,"../common/has_parent":114,jquery:18,underscore:92}],257:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m,_,v,y,b,w,x,k,M,C,D,T,S,A,P,E,I=function(t,e){function i(){this.constructor=t}for(var n in e)N.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},N={}.hasOwnProperty,R=function(t,e){return function(){return t.apply(e,arguments)}};M=t("underscore"),null!=i._bokehTest?(P=void 0,E=void 0):(P=t("jquery-ui/draggable"),E=t("jquery-ui/droppable")),C=t("../common/build_views"),n=t("../common/close_wrapper"),r=t("../common/collection"),h=t("../common/continuum_view"),y=t("../common/has_parent"),b=t("../common/has_properties"),A=t("./crossfilter_template"),T=t("./crossfilter_column_template"),S=t("./crossfilter_facet_template"),p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.tag="div",e.prototype.attributes={"class":"bk-crossfilter"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.listenTo(this.model,"change:plot",this.render_plot),this.render(),this.render_plot()},e.prototype.render_plot=function(){var t;return null!=this.plot_view&&this.plot_view.remove(),t=this.mget("plot"),this.plot_view=new t.default_view({model:t}),this.el.find(".bk−crossfilter−plot").empty(),this.el.find(".bk-crossfilter-plot").empty(),this.el.find(".bk-crossfilter-plot").append(this.plot_view.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 9: el),this}̲,e.prototype.re…el.detach(),this.el.empty(),t=A(),this.el.empty(),t=A(),this.el.html(t),this.filterview=new v({el:this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 63: …odel:this.model}̲),this.facetsvi…el,model:this.model}),this.plotattributeview=new w({el:this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 20: …odel:this.model}̲),this.columnvi…(".bk-column-list").append(this.columnview.el),this.(".bk−crossfilter−configuration").height(this.mget("height")),this.(".bk-crossfilter-configuration").height(this.mget("height")),this.(".bk-crossfilter-configuration").width(400),this},e}(h),c=function(t){function e(){return this._set_columns=R(this._set_columns,this),e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.default_view=p,e.prototype.type="CrossFilter",e.prototype.initialize=function(t,i){return e.__super__.initialize.call(this,t,i),this.columns=new s,this._set_columns(),this.listenTo(this,"change:columns",this._set_columns)},e.prototype._set_columns=function(){return this.columns.reset(this.get("columns"))},e.prototype.defaults=function(){return M.extend({},e.__super__.defaults.call(this),{height:700,width:1300})},e}(y),d=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.model=c,e}(r),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.listenTo(this.model,"change:plot_selector",M.bind(this.render_selector,"plot")),this.listenTo(this.model,"change:x_selector",M.bind(this.render_selector,"x")),this.listenTo(this.model,"change:y_selector",M.bind(this.render_selector,"y")),this.listenTo(this.model,"change:agg_selector",M.bind(this.render_selector,"agg")),this.render_selector("plot"),this.render_selector("x"),this.render_selector("y"),this.render_selector("agg")},e.prototype.render_selector=function(t){var e,i;return i=this.(".bk−"+t+"−selector").empty(),e=this.mget(t+"selector"),this.plotselectorview=newe.defaultview(model:e),i.append(this.plotselectorview.(".bk-"+t+"-selector").empty(),e=this.mget(t+"_selector"),this.plot_selector_view=new e.default_view({model:e}),i.append(this.plot_selector_view.el)},e}(h),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.listenTo(this.collection,"all",this.render),this.render()},e.prototype.render=function(){return M.map(this.views,function(t){return t.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 12: el.detach()}̲),C(this.views,…el.append(t.views[e.id].ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 4: el)}̲}(this)),this},…el.html(S({name:this.name})),this},e}(h),_=function(t){function e(){return this.drop_tab=R(this.drop_tab,this),this.drop_y=R(this.drop_y,this),this.drop_x=R(this.drop_x,this),this.drop=R(this.drop,this),this.add_facet=R(this.add_facet,this),this.remove_facet=R(this.remove_facet,this),e.__super__.constructor.apply(this,arguments)}return I(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render_init(),this.render_all_facets(),this.listenTo(this.model,"change:facet_x",this.render_all_facets),this.listenTo(this.model,"change:facet_y",this.render_all_facets),this.listenTo(this.model,"change:facet_tab",this.render_all_facets)},e.prototype.render_init=function(){return this.facet_x_node=this.ParseError: KaTeX parse error: Double subscript at position 29: …"),this.facet_y_̲node=this.(".bk-facet-y"),this.facet_tab_node=this.ParseError: KaTeX parse error: Double subscript at position 31: …"),this.facet_x_̲node.droppable(…el));return o},e.prototype.remove_facet=function(t,e){var i,n,r,s,o,a;for(null==e&&(e=!0),s=["facet_x","facet_y","facet_tab"],n=0,r=s.length;r>n;n++)o=s[n],i=M.clone(this.model.get(o)),i=function(){var e,n,r;for(r=[],e=0,n=i.length;n>e;e++)a=i[e],a!==t&&r.push(a);return r}(),this.model.set(o,i);return e?this.model.save():void 0},e.prototype.add_facet=function(t,e){var i,n;return this.remove_facet(e,n=!1),i=M.clone(this.model.get(t)),i.indexOf(e)/g,">").replace(/"/g,""")}),function(){(function(){var t,e,r,s;for("Continuous"===this.label?i.push('\n
                \n'):i.push('\n
                \n'),i.push("\n "),i.push(n(this.name)),i.push(' ('),i.push(n(this.label)),i.push(')\n
                \n\n\n
                \n\n \n\n \n\n '),s=this.fields,e=0,r=s.length;r>e;e++)t=s[e],i.push("\n \n ");i.push("\n\n \n\n
                "),i.push(n(t)),i.push(" "),i.push(n(this[t])),i.push("
                \n\n
                ")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],259:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){i.push(n(this.name)),i.push("   [x]")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],260:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=t.safe,r=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){i.push('
                \n\n \n\n \n\n \n\n \n\n \n\n
                \n\n
                \n\n
                \n\n
                \n\n
                \n\n
                \n
                Filter
                \n
                \n
                \n\n
                \n
                Facet X
                \n
                \n
                \n\n
                \n
                Facet Y
                \n
                \n
                \n\n
                \n
                Facet Tab
                \n
                \n
                \n\n
                \n\n
                \n\n
                \n\n
                \n\n
                \n\n \n\n
                \n\n
                \n
                \n\n
                \n')}).call(this)}.call(t),t.safe=n,t.escape=r,i.join("")}},{}],261:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h,c,p,d,f,g,m=function(t,e){function i(){this.constructor=t}for(var n in e)_.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},_={}.hasOwnProperty;f=t("underscore"),n=t("jquery"),null!=i._bokehTest?(r=void 0,d=void 0,p=void 0,s=void 0):(r=t("jquery-ui/sortable"),d=t("slick_grid/slick.grid"),p=t("slick_grid/plugins/slick.rowselectionmodel"),s=t("slick_grid/plugins/slick.checkboxselectcolumn")),o=t("../common/continuum_view"),c=t("../common/has_properties"),a=t("../util/dom_util"),g=t("../common/hittest"),l=function(){function t(t){var e;this.source=t,this.data=this.source.get("data"),this.fields=f.keys(this.data),f.contains(this.fields,"index")||(this.data.index=function(){e=[];for(var t=0,i=this.getLength();i>=0?i>t:t>i;i>=0?t++:t--)e.push(t);return e}.apply(this),this.fields.push("index"))}return t.prototype.getLength=function(){return this.source.get_length()},t.prototype.getItem=function(t){var e,i,n,r,s;for(i={index:t},s=this.fields,n=0,r=s.length;r>n;n++)e=s[n],i[e]=this.data[e][t];return i},t.prototype._setItem=function(t,e){var i,n;for(i in e)n=e[i],this.data[i][t]=n},t.prototype.setItem=function(t,e){return this._setItem(t,e),this.updateSource()},t.prototype.getField=function(t,e){return this.data[e][t]},t.prototype._setField=function(t,e,i){this.data[e][t]=i},t.prototype.setField=function(t,e,i){return this._setField(t,e,i),this.updateSource()},t.prototype.updateSource=function(){return this.source.forceTrigger("data")},t.prototype.getItemMetadata=function(t){return null},t.prototype.getRecords=function(){var t;return function(){var e,i,n;for(n=[],t=e=0,i=this.getLength();i>=0?i>e:e>i;t=i>=0?++e:--e)n.push(this.getItem(t));return n}.call(this)},t.prototype.sort=function(t){var e,i,n,r,s,o,a;for(e=function(){var e,n,r;for(r=[],e=0,n=t.length;n>e;e++)i=t[e],r.push([i.sortCol.field,i.sortAsc?1:-1]);return r}(),f.isEmpty(e)&&(e=[["index",1]]),a=this.getRecords(),a.sort(function(t,i){var n,r,s,o,a,l,u,h;for(r=0,s=e.length;s>r;r++)if(o=e[r],n=o[0],l=o[1],u=t[n],h=i[n],a=u===h?0:u>h?l:-l,0!==a)return a;return 0}),n=r=0,s=a.length;s>r;n=++r)o=a[n],this._setItem(n,o);return this.updateSource()},t}(),h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.attributes={"class":"bk-data-table"},e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),a.waitForElement(this.el,function(t){return function(){return t.render()}}(this)),this.listenTo(this.model,"change",function(t){return function(){return t.render()}}(this)),i=this.mget("source"),this.listenTo(i,"change:data",function(t){return function(){return t.updateGrid()}}(this)),this.listenTo(i,"change:selected",function(t){return function(){return t.updateSelection()}}(this))},e.prototype.updateGrid=function(){return this.data=new l(this.mget("source")),this.grid.setData(this.data),this.grid.render()},e.prototype.updateSelection=function(){var t;return t=this.mget("source").get("selected"),this.grid.setSelectedRows(t["1d"].indices)},e.prototype.newIndexColumn=function(){return{id:f.uniqueId(),name:"#",field:"index",width:40,behavior:"select",cannotTriggerInsert:!0,resizable:!1,selectable:!1,sortable:!0,cssClass:"bk-cell-index"}},e.prototype.render=function(){var t,e,i,n,r,o;return i=function(){var t,i,n,r;for(n=this.mget("columns"),r=[],t=0,i=n.length;i>t;t++)e=n[t],r.push(e.toColumn());return r}.call(this),"checkbox"===this.mget("selectable")&&(t=new s({cssClass:"bk-cell-select"}),i.unshift(t.getColumnDefinition())),this.mget("row_headers")&&null!=this.mget("source").get_column("index")&&i.unshift(this.newIndexColumn()),o=this.mget("width"),n=this.mget("height"),r={enableCellNavigation:this.mget("selectable")!==!1,enableColumnReorder:!0,forceFitColumns:this.mget("fit_columns"),autoHeight:"auto"===n,multiColumnSort:this.mget("sortable"),editable:this.mget("editable"),autoEdit:!1},null!=o&&this.ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 48: …+"px"}),null!=n&̲&"auto"!==n&&th…el.css({height:this.mget("height")+"px"}),this.data=new l(this.mget("source")),this.grid=new d(this.el,this.data,i,r),this.grid.onSort.subscribe(function(t){return function(e,n){return i=n.sortCols,t.data.sort(i),t.grid.invalidate(),t.grid.render()}}(this)),this.mget("selectable")!==!1&&(this.grid.setSelectionModel(new p({selectActiveRow:null==t})),null!=t&&this.grid.registerPlugin(t),this.grid.onSelectedRowsChanged.subscribe(function(t){return function(e,i){var n;return n=g.create_hit_test_result(),n["1d"].indices=i.rows,t.mget("source").set("selected",n)}}(this))),this},e}(o),u=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return m(e,t),e.prototype.type="DataTable",e.prototype.default_view=h,e.prototype.defaults=function(){return f.extend({},e.__super__.defaults.call(this),{columns:[],width:null,height:400,fit_columns:!0,sortable:!0,editable:!1,selectable:!0,row_headers:!0})},e}(c),e.exports={Model:u,View:h}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_properties":115,"../common/hittest":116,"../util/dom_util":249,jquery:18,"jquery-ui/sortable":15,"slick_grid/plugins/slick.checkboxselectcolumn":305,"slick_grid/plugins/slick.rowselectionmodel":306,"slick_grid/slick.grid":308,underscore:92}],262:[function(t,e,i){(function(i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=t("underscore"),n=t("jquery"),r=null!=i._bokehTest?void 0:t("jquery-ui/datepicker"),s=t("../common/continuum_view"),l=t("../common/has_properties"),a=function(t){function e(){return this.onSelect=h(this.onSelect,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t,e;return this.$el.empty(),e=n("/g,">").replace(/"/g,""")}),function(){(function(){i.push('
                \n
                \n
                \n
                \n '),this.closable&&i.push('\n \n '),i.push('\n

                '),i.push(n(this.title)),i.push('

                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n')}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],266:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t("underscore"),n=t("jquery"),r=t("../common/continuum_view"),a=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="div",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,l,u,h,c,p,d,f,g;for(this.$el.empty(),d=null!=this.mget("default_value"),e=n(""),e.addClass("bk-bs-btn"),e.addClass("bk-bs-btn-"+this.mget("type")),e.text(this.mget("label")),i=n(''),d?(e.click(function(t){return function(){return t.change_input(t.mget("default_value"))}}(this)),a=n(""),a.addClass("bk-bs-btn"),a.addClass("bk-bs-btn-"+this.mget("type")),a.addClass("bk-bs-dropdown-toggle"),a.attr("data-bk-bs-toggle","dropdown"),a.append(i)):(e.addClass("bk-bs-dropdown-toggle"),e.attr("data-bk-bs-toggle","dropdown"),e.append(document.createTextNode(" ")),e.append(i),a=n("")),o=n('
                  '),r=n('
                • '),p=this.mget("menu"),l=0,c=p.length;c>l;l++)u=p[l],s=null!=u?(h=u[0],g=u[1],u,t=n("").text(h).data("value",g),f=this,t.click(function(t){return f.change_input(n(this).data("value"))}),n("
                • ").append(t)):r,o.append(s);return this.el.addClass("bk−bs−btn−group"),this.el.addClass("bk-bs-btn-group"),this.el.append([e,a,o]),this},e.prototype.change_input=function(t){var e;return this.mset("value",t),this.model.save(),null!=(e=this.mget("callback"))?e.execute(this.model):void 0},e}(r),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="Dropdown",e.prototype.default_view=o,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{value:null,default_value:null,label:"Dropdown",icon:null,type:"default",menu:[],disabled:!1})},e}(a),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,jquery:18,underscore:92}],267:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),n=t("../common/continuum_view"),o=t("../common/has_parent"),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tag="div",e.prototype.attributes={"class":"bk-hbox"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.views={},this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,n,r,s,o,a,u;e=this.model.children(),l(this.views,e),o=this.views;for(r in o)h.call(o,r)&&(a=o[r],a.el.detach());for(this.el.detach());for(this.el.empty(),u=this.mget("width"),null!=u&&this.ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 53: …eight"),null!=i&̲&this.el.css({height:i+"px"}),n=0,s=e.length;s>n;n++)t=e[n],this.el.append(this.views[t.id].el.append(this.views[t.id].el);return this},e}(n),r=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="HBox",e.prototype.default_view=s,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{children:[]})},e.prototype.children=function(){return this.get("children")},e}(o),e.exports={Model:r,View:s}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],268:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName="i",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e;return this.el.empty(),this.el.empty(),this.el.addClass("bk-fa"),this.ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 68: …"size"),null!=e&̲&this.el.css({"font-size":e+"em"}),t=this.mget("flip"),null!=t&&this.ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 47: …is.mget("spin")&̲&this.el.addClass("bk-fa-spin"),this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.type="Icon",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{name:"",size:null,flip:null,spin:!1})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,underscore:92}],269:[function(t,e,i){var n,r;r=t("../hbox"),n=t("./base"),e.exports=n("AppHBox",r)},{"../hbox":267,"./base":272}],270:[function(t,e,i){var n,r;r=t("../vbox"),n=t("./base"),e.exports=n("AppVBox",r)},{"../vbox":291,"./base":272}],271:[function(t,e,i){var n;n=t("../vboxform"),e.exports=t("./base")("AppVBoxForm",n)},{"../vboxform":292,"./base":272}],272:[function(t,e,i){var n,r,s,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;s=t("underscore"),o=t("../../common/build_views"),n=t("../../common/continuum_view"),r=t("../../common/has_parent"),e.exports=function(t,e){var i,n;return n=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.initialize=function(t){var i;return e.__super__.initialize.call(this,t),i=this.mget("app"),this.listenTo(i,"change:objects",this.render)},e}(e.View),i=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return a(i,e),i.prototype.type=t,i.prototype.default_view=n,i.prototype.children=function(){var t,e,i,n;return t=this.get("app"),n=this.get("children"),i=t.get("objects"),e=s.map(n,function(t){return function(e){return s.isString(e)?t.resolve_ref(i[e]):e}}(this))},i}(r),{Model:i,View:n}}},{"../../common/build_views":101,"../../common/continuum_view":109,"../../common/has_parent":114,underscore:92}],273:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;l=t("jquery"),n=t("underscore"),r=t("../common/continuum_view"),s=t("../common/has_parent"),u=t("./multiselecttemplate"),a=function(t){function e(){return this.render_selection=h(this.render_selection,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName="div",e.prototype.template=u,e.prototype.events={"change select":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change:value",this.render_selection),this.listenTo(this.model,"change:options",this.render),this.listenTo(this.model,"change:name",this.render),this.listenTo(this.model,"change:title",this.render)},e.prototype.render=function(){var t;return this.el.empty(),t=this.template(this.model.attributes),this.el.empty(),t=this.template(this.model.attributes),this.el.html(t),this.render_selection(),this},e.prototype.render_selection=function(){var t;return t={},l.map(this.mget("value"),function(e){return t[e]=!0}),this.ParseError: KaTeX parse error: Expected '}', got 'EOF' at end of input: …(i){return i=e.(i),t[i.attr("value")]?i.attr("selected","selected"):void 0}}(this))},e.prototype.change_input=function(){var t;return this.mset("value",this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 109: …s.model):void 0}̲,e}(r),o=functi…el.empty(),this},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="Panel",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{title:"",child:null,closable:!1})},e}(s),e.exports={Model:o,View:a}},{"../common/continuum_view":109,"../common/has_properties":115,jquery:18,underscore:92}],276:[function(t,e,i){var n,r,s,o,a,l=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,t),e.prototype.tagName="p",e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){return this.mget("height")&&this.ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 50: …s.mget("width")&̲&this.el.width(this.mget("width")),this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 32: …t("text")),this}̲,e}(n),s=functi…el.empty(),this.el.addClass("bk−bs−btn−group"),this.el.addClass("bk-bs-btn-group"),this.el.attr("data-bk-bs-toggle","buttons"),l=u.uniqueId("RadioButtonGroup"),i=this.mget("active"),h=this.mget("labels"),r=s=0,a=h.length;a>s;r=++s)o=h[r],t=n(''),e.text(o).prepend(t),e.addClass("bk-bs-btn-"+this.mget("type")),r===i&&e.addClass("bk-bs-active"),this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 25: …(e);return this}̲,e.prototype.ch…("input"),s=[],e=t=0,n=r.length;n>t;e=++t)i=r[e],i.checked&&s.push(e);return s}.call(this),this.mset("active",t[0]),this.model.save(),null!=(n=this.mget("callback"))?n.execute(this.model):void 0},e}(s),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.type="RadioButtonGroup",e.prototype.default_view=l,e.prototype.defaults=function(){return u.extend({},e.__super__.defaults.call(this),{active:null,labels:[],type:"default",disabled:!1})},e}(o),e.exports={Model:a,View:l}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../common/continuum_view":109,"../common/has_parent":114,"bootstrap/button":293,jquery:18,underscore:92}],279:[function(t,e,i){var n,r,s,o,a,l,u=function(t,e){function i(){this.constructor=t}for(var n in e)h.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},h={}.hasOwnProperty;l=t("underscore"),n=t("jquery"),r=t("../common/continuum_view"),s=t("../common/has_parent"),a=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.tagName="div",e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){var t,e,i,r,s,o,a,u,h,c;for(this.el.empty(),h=l.uniqueId("RadioGroup"),r=this.mget("active"),c=this.mget("labels"),s=o=0,u=c.length;u>o;s=++o)a=c[s],e=n(′").text(a).prepend(e),this.mget("inline")?(i.addClass("bk−bs−radio−inline"),this.el.empty(),h=l.uniqueId("RadioGroup"),r=this.mget("active"),c=this.mget("labels"),s=o=0,u=c.length;u>o;s=++o)a=c[s],e=n('").text(a).prepend(e),this.mget("inline")?(i.addClass("bk-bs-radio-inline"),this.el.append(i)):(t=n('
                  ').append(i),this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 26: …t));return this}̲,e.prototype.ch…("input"),s=[],e=t=0,n=r.length;n>t;e=++t)i=r[e],i.checked&&s.push(e);return s}.call(this),this.mset("active",t[0]),this.model.save()},e}(r),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return u(e,t),e.prototype.type="RadioGroup",e.prototype.default_view=a,e.prototype.defaults=function(){return l.extend({},e.__super__.defaults.call(this),{active:null,labels:[],inline:!1,disabled:!1})},e}(s),e.exports={Model:o,View:a}},{"../common/continuum_view":109,"../common/has_parent":114,jquery:18,underscore:92}],280:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),l=t("../common/logging").logger,u=t("./selecttemplate"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,t),e.prototype.tagName="div",e.prototype.template=u,e.prototype.events={"change select":"change_input"},e.prototype.change_input=function(){var t,e;return e=this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 150: …s.model):void 0}̲,e.prototype.in…el.empty(),t=this.template(this.model.attributes),this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 16: el.html(t),this}̲,e}(n),s=functi…el.html(""),t=this.mget("layout"),this.layout_view=new t.default_view({model:t}),this.el.append(this.layoutview.el.append(this.layout_view.el),this},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return a(e,t),e.prototype.type="SimpleApp",e.prototype.default_view=o,e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114}],283:[function(t,e,i){var n,r,s,o,a,l,u,h=function(t,e){return function(){return t.apply(e,arguments)}},c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;a=t("underscore"),n=t("../common/continuum_view"),r=t("../common/has_parent"),l=t("../common/logging").logger,u=t("./slidertemplate"),o=function(t){function e(){return this.slide=h(this.slide,this),e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName="div",e.prototype.template=u,e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render()},e.prototype.render=function(){var t,e,i,n;return this.el.empty(),t=this.template(this.model.attributes),this.el.empty(),t=this.template(this.model.attributes),this.el.html(t),e=this.mget("end"),i=this.mget("start"),n=this.mget("step")||(e-i)/50,l.debug("slider render: min, max, step = ("+i+", "+e+", "+n+")"),this.(".slider").slider(orientation:this.mget("orientation"),animate:"fast",slide:a.throttle(this.slide,200),value:this.mget("value"),min:i,max:e,step:n),this.(".slider").slider({orientation:this.mget("orientation"),animate:"fast",slide:a.throttle(this.slide,200),value:this.mget("value"),min:i,max:e,step:n}),this.("#"+this.mget("id")).val(this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 34: …("value")),this}̲,e.prototype.sl…("#"+this.mget("id")).val(e.value),this.mset("value",n),this.model.save(),null!=(i=this.mget("callback"))?i.execute(this.model):void 0},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="Slider",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{title:"",value:.5,start:0,end:1,step:0,orientation:"horizontal"})},e}(r),e.exports={Model:s,View:o}},{"../common/continuum_view":109,"../common/has_parent":114,"../common/logging":119,"./slidertemplate":284,underscore:92}],284:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){i.push('\n/g,">").replace(/"/g,""")}),function(){(function(){var t,e,r,s,o,a,l,u;for(i.push('\n
                  \n '),l=this.tabs,t=r=0,o=l.length;o>r;t=++r)u=l[t],i.push('\n
                  \n ');i.push("\n
                  \n")}).call(this)}.call(t),t.safe=r,t.escape=s,i.join("")}},{}],288:[function(t,e,i){var n,r,s,o,a,l,u,h,c=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;a=t("underscore"),l=t("../common/build_views"),n=t("../common/continuum_view"),r=t("../common/has_parent"),u=t("../common/logging").logger,h=t("./text_input_template"),o=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.tagName="div",e.prototype.attributes={"class":"bk-widget-form-group"},e.prototype.template=h,e.prototype.events={"change input":"change_input"},e.prototype.initialize=function(t){return e.__super__.initialize.call(this,t),this.render(),this.listenTo(this.model,"change",this.render)},e.prototype.render=function(){return this.ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 51: …tributes)),this}̲,e.prototype.ch…("input").val(),u.debug("widget/text_input: value = "+e),this.mset("value",e),this.model.save(),null!=(t=this.mget("callback"))?t.execute(this.model):void 0},e}(n),s=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return c(e,t),e.prototype.type="TextInput",e.prototype.default_view=o,e.prototype.defaults=function(){return a.extend({},e.__super__.defaults.call(this),{name:"",value:"",title:""})},e}(r),e.exports={Model:s,View:o}},{"../common/build_views":101,"../common/continuum_view":109,"../common/has_parent":114,"../common/logging":119,"./text_input_template":289,underscore:92}],289:[function(t,e,i){e.exports=function(t){t||(t={});var e,i=[],n=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?s(t):""},r=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){i.push('\n/g,">")}function getFormatter(t,e){function i(t,e,i,n,r){return o.format(t,e,i,n,r)}var n=data.getItemMetadata&&data.getItemMetadata(t),r=n&&n.columns&&(n.columns[e.id]||n.columns[getColumnIndex(e.id)]),s=r&&r.formatter||n&&n.formatter||e.formatter||options.formatterFactory&&options.formatterFactory.getFormatter(e)||options.defaultFormatter;if(void 0!==s.format){var o=s;s=i}return s}function getEditor(t,e){var i,n=columns[e],r=data.getItemMetadata&&data.getItemMetadata(t),s=r&&r.columns;return i=s&&s[n.id]&&void 0!==s[n.id].editor?s[n.id].editor:s&&s[e]&&void 0!==s[e].editor?s[e].editor:n.editor||options.editorFactory&&options.editorFactory.getEditor(n),void 0!==i.default_view&&(i=i.default_view),i}function getDataItemValueForColumn(t,e){return options.dataItemColumnValueExtractor?options.dataItemColumnValueExtractor(t,e):t[e.field]}function appendRowHtml(t,e,i,n){var r=getDataItem(e),s=n>e&&!r,o="bk-slick-row"+(s?" loading":"")+(e===activeRow?" active":"")+(e%2==1?" odd":" even");r||(o+=" "+options.addNewRowCssClass);var a=data.getItemMetadata&&data.getItemMetadata(e);a&&a.cssClasses&&(o+=" "+a.cssClasses),t.push("
                  ");for(var l,u,h=0,c=columns.length;c>h;h++){if(u=columns[h],l=1,a&&a.columns){var p=a.columns[u.id]||a.columns[h];l=p&&p.colspan||1,"*"===l&&(l=c-h)}if(columnPosRight[Math.min(c-1,h+l-1)]>i.leftPx){if(columnPosLeft[h]>i.rightPx)break;appendCellHtml(t,e,h,l,r)}l>1&&(h+=l-1)}t.push("
                  ")}function appendCellHtml(t,e,i,n,r){var s=columns[i],o="bk-slick-cell l"+i+" r"+Math.min(columns.length-1,i+n-1)+(s.cssClass?" "+s.cssClass:"");e===activeRow&&i===activeCell&&(o+=" active");for(var a in cellCssClasses)cellCssClasses[a][e]&&cellCssClasses[a][e][s.id]&&(o+=" "+cellCssClasses[a][e][s.id]);if(t.push("
                  "),r){var l=getDataItemValueForColumn(r,s);t.push(getFormatter(e,s)(e,i,l,s,r))}t.push("
                  "),rowsCache[e].cellRenderQueue.push(i),rowsCache[e].cellColSpans[i]=n}function cleanupRows(t){for(var e in rowsCache)(e=parseInt(e,10))!==activeRow&&(e #grayscale");filter:gray;-webkit-filter:grayscale(100%)}.bk-logo-notebook{margin-right:10px}.bk-logo-small{width:20px;height:20px;background-image:url(data:image/png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d37Fv/GtwwhzhxGVAprjbg0gCAEeIgwCZyTV2Z1REEW8O4py0wsjeloKoMr6iCY6dP92H6Vw/oTyICIthibxjm/DfN9lVz8IqtqKYLUXfoKVMVQVVJOElGjrnnUt9T9wbgp8AyYKaGlqingHZU/uG2NTZSVqwHQTWkx9hxjkpWDaCg6Ckj5qebgBVbT3V3NNXMSiWSDdGV3hrtzla7J+duwPOToIg42ChPQOQjspnSlp1V+Gjdged7+8UN5CRAV7a5EdFNwCjEaBR27b3W890TE7g24NAP/mMDXRWrGoFPQI9ls/MWO2dWFAar/xcOIImbbpA3zgAAAABJRU5ErkJggg==)}.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/y7cQnBaJghIX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M/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//SYidgFhftrVQX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Ja67599fNf3zk63ft7ojwIbfHF80XkDkbxgESC9PQ+TyazE5GAp/Clafpq8WFNEXhX3p9V27n0LlV7dukSBNUsnpcASKnaM/Y3UXvjgL4/q7bz1hVW9WxKWMnoD0atzWxX7EnT2HjvfjAxJw74m9nqOpcuV9VFQLq4OxVV3exp4tOHsPldyTA88K+xw2+SKB/HP+ZWEKz1VgSdcbOn80be4X5/4V199eau+OJaB5YgcjbD78x4oH9W1VtqO2+950DbB++Ft0nuhfbKL0yyhk8JepIohwApFZ5BdVUy2f34xMzdRTbZscNgsv4fCI1BY5O1DJEAAAAASUVORK5CYII=)}.bk-sidebar{box-sizing:border-box}.bk-button-bar .bk-bs-dropdown{padding:10px 10px 0 5px}.bk-button-bar .bk-bs-dropdown a{color:transparent;font-size:0;display:block;float:left;width:13px;height:13px;margin:5px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAGdSURBVCiRXZJPSxtRFMV/dyYTunBREASRIkKwddPSjYIL+x2K9plR+owR7K7L7vsZutIkZqhO8jZ+h25aQilUkbaUgv2zEOpGpAsZnbld+BJC7ubAvYd77uEeYaTaB25bhJqi44Kcq9LYWDOt/lxVkQG542ZFaQP3gB6wBLwDFoGfKtQ2qua7qhIAJB1XEeUE9CtSPLCxWQbObGxWEL0P+k2Uk3barQBImrrgWvmE8NnGpgaQpO4OcArM2Nhc+d4e8DCUcL6UwZYIk0WYzw9Zy4CnHm+9hNcvJI/+3GhuJUndR+A3yCpoCGQ2NkWfnKQuAMqo5Ih2gakScBeYBj32vE3gw5DqAtBCFGAcuCwBF8CRIFX1SiNf6AGPQXLwSgq7Aq+zMGPLrPdNB16h50+92uvul4MiWlJ4FZShAZxFebQztL0MHHoEICiiBvCrRJiI31wBvii8zQt9WV9f/Zek7sjG5lFzvzsWBvJGYA2Ye1599mOQiKTjZlVpCcwA74En/UQonIqwaX0ihJFKUlcH6sAE8Bdo2tg0B/9S5T8JNaZ11wlT0wAAAABJRU5ErkJggg==)}.bk-button-bar .bk-button-bar-list{margin:0;padding:0}.bk-button-bar-list>li{list-style-type:none;float:left;padding:0;margin:0;position:relative;display:block;overflow:visible;background-color:transparent}.bk-button-bar-list>li:last-child:after{content:"|";font-size:90%;color:lightgray;display:inline-block;float:left;height:28px;line-height:28px;padding:0 3px}.bk-button-bar-list.bk-bs-dropdown:after{content:"|";font-size:90%;color:lightgray;display:inline-block;float:left;height:28px;line-height:28px;padding:0 3px}.bk-button-bar-list[type='help'] li:after{content:"" !important;display:none}.bk-button-bar-list>a:after{content:"|";font-size:90%;color:lightgray;display:inline-block;float:left;height:28px;line-height:28px;padding:0 3px}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu{padding:10px 8px}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu li{float:none;clear:both;font-family:Helvetica,sans-serif;line-height:1.5em}.bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu li input{margin-right:8px}.bk-button-bar-list .bk-toolbar-button{width:30px;height:28px;padding:5px;border:0;border-radius:0 !important;-moz-border-radius:0 !important;-webkit-border-radius:0 !important;background:transparent !important}.bk-button-bar-list .bk-toolbar-button .bk-btn-icon{height:16px;margin:0 !important;border:none !important;background:transparent !important;display:block;position:relative;z-index:10}.bk-button-bar-list .bk-toolbar-button span.tip{display:none}.bk-button-bar-list .bk-toolbar-button span.tip:before{display:none;content:" ";position:relative;width:100%;background-position:top left;background-repeat:no-repeat}.bk-button-bar-list li::hover .bk-toolbar-button{cursor:pointer;background:transparent !important}.bk-button-bar-list li:hover .bk-toolbar-button span.tip:before{display:inline-block}.bk-button-bar-list li:hover .bk-toolbar-button span.tip{z-index:100;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;display:inline-block;position:relative;top:25px;padding:3px 5px;transition:all .6s ease;-webkit-transition:all .6s ease;-moz-transition:all .6s ease;-o-transition:all .6s ease}.bk-button-bar-list li:hover .bk-toolbar-button span.tip>*{display:block;text-align:left}.bk-button-bar-list li:hover .bk-toolbar-button span.tip span{width:200px;white-space:normal}.bk-button-bar-list .bk-toolbar-button.active{background:#fff;-box-shadow:none !important;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;outline:none !important;border-bottom:2px solid #26aae1}.bk-button-bar>.bk-toolbar-button.active{border-bottom:2px solid #26aae1}.bk-plot-above.bk-toolbar-active{border-bottom:2px solid #e5e5e5}.bk-plot-below.bk-toolbar-active{border-top:2px solid #e5e5e5;padding-bottom:45px}.bk-plot-above.bk-toolbar-active,.bk-plot-below.bk-toolbar-active{height:30px}.bk-plot-above.bk-toolbar-active .bk-logo,.bk-plot-below.bk-toolbar-active .bk-logo{float:left;top:5px;margin:5px 0}.bk-plot-above.bk-toolbar-active .bk-button-bar,.bk-plot-below.bk-toolbar-active .bk-button-bar{float:right;position:relative;top:5px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list{float:left}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown{margin-right:20px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before{right:-6px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after{right:-12px;position:absolute}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu:after,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-button-bar-list .bk-bs-dropdown-menu:after{content:""}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button{float:left}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help{float:right}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip{right:0;text-align:left;width:200px;white-space:normal}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip>*,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button.help span.tip>*{margin-left:0;margin-right:0}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip{top:41px;left:0;z-index:100;position:absolute;width:auto;padding:0 10px 5px 10px}.bk-plot-above.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip:before,.bk-plot-below.bk-toolbar-active .bk-button-bar .bk-toolbar-button span.tip:before{top:-7px;left:-5px;width:100%;height:9px;padding:0 10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAJCAYAAAAGuM1UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJk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qxcBTdPBEQACQMM2AGk+Jqgn64CKA/EFJ1BeC2QoE9B9AUBOPTFxAFTnDxBgAI5eL2ABBdyaAAAAAElFTkSuQmCC);display:block !important}.bk-plot-left.bk-toolbar-active{border-right:2px solid #e5e5e5}.bk-plot-right.bk-toolbar-active{border-left:2px solid #e5e5e5}.bk-plot-left.bk-toolbar-active,.bk-plot-right.bk-toolbar-active{display:block;margin:45px 0 0 0}.bk-plot-left.bk-toolbar-active .bk-logo,.bk-plot-right.bk-toolbar-active .bk-logo{left:6px;margin-bottom:20px}.bk-plot-left.bk-toolbar-active .bk-button-bar,.bk-plot-right.bk-toolbar-active .bk-button-bar{position:relative;left:3px}.bk-plot-left.bk-toolbar-active .bk-button-bar:before,.bk-plot-right.bk-toolbar-active .bk-button-bar:before,.bk-plot-left.bk-toolbar-active .bk-button-bar:after,.bk-plot-right.bk-toolbar-active .bk-button-bar:after{content:" ";display:block;height:0;clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list:after{content:" ";height:0;display:block;clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:before{top:}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list.bk-bs-dropdown:after{content:" \2014";float:none;clear:both;display:block;width:30px;height:8px;line-height:8px;padding:3px 0;text-align:center}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li{clear:both}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li:last-child:after,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li:last-child:after{content:" \2014";float:none;clear:both;display:block;width:30px;height:8px;line-height:8px;padding:3px 0;text-align:center}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button.active,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button.active{border-bottom:0;border-right:2px solid #26aae1}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button.help span.tip:before,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button.help span.tip:before{left:-57%}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button span.tip,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button span.tip{position:absolute;top:4px;left:40px;padding:5px 10px 5px 10px}.bk-plot-left.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .bk-toolbar-button span.tip:before,.bk-plot-right.bk-toolbar-active .bk-button-bar .bk-button-bar-list>li .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-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}.bk-bs-caret{color:lightgray;display:inline-block;width:0;height:0;position:relative;left:11px;top:3px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.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:none !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-crossfilter-plot{float:left;display:inline-block}.bk-facet-label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;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,0.5) !important;transform:scale(0.5,0.5) !important}.bk-crossfilter .bk-widget-form{padding:5px}.bk-data-table{font-size:11px}.bk-data-table input[type="checkbox"]{margin-left:4px;margin-right:4px}.bk-data-table *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.bk-data-table *:before,.bk-data-table *:after{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.bk-cell-special-defaults{border-right-color:silver;border-right-style:solid;background:#f5f5f5}.bk-cell-select{border-right-color:silver;border-right-style:solid;background:#f5f5f5}.bk-cell-index{border-right-color:silver;border-right-style:solid;background:#f5f5f5;text-align:right;color:gray}.bk-slick-row.selected .bk-cell-index{background-color:transparent}.bk-slick-cell{padding-left:4px;padding-right:4px}.bk-slick-cell.active{border-style:dashed}.bk-slick-cell.editable{padding-left:0;padding-right:0}.bk-cell-editor input,.bk-cell-editor select,.bk-cell-editor .bk-ui-spinner{width:100%;height:100%;border:0;margin:0;padding:0;outline:0;background:transparent;vertical-align:baseline}.bk-cell-editor input{padding-left:4px;padding-right:4px}.bk-cell-editor-completion{font-size:11px}.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:-ms-flexbox;display:box;box-orient:horizontal;box-align:stretch;display:flex;display:-webkit-flex;flex-direction:row;flex-wrap:nowrap}.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%;width:auto}.bk-widget-form{padding:30px 30px 30px 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,0.075);box-shadow:inset 0 1px 1px rgba(0,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,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.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-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:normal;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,0.125);box-shadow:inset 0 3px 5px rgba(0,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}.bk-canvas-wrapper{position:relative;font-size:12pt;float:left}.bk-canvas{clear:both;position:absolute;font-size:12pt}.bk-canvas-wrapper .bk-canvas-map{position:absolute !important;z-index:-5}.bk-tooltip{position:absolute;padding:5px;border:1px solid #1e4b6c;background-color:#1e4b6c;border-radius:5px;pointer-events:none}.bk-tooltip.bk-left::before{position:absolute;margin:-7px 0 0 0;top:50%;width:0;height:0;border-style:solid;border-width:7px 0 7px 0;border-color:transparent;content:" ";display:block;left:-10px;border-right-width:10px;border-right-color:#1e4b6c}.bk-tooltip.bk-right::after{position:absolute;margin:-7px 0 0 0;top:50%;width:0;height:0;border-style:solid;border-width:7px 0 7px 0;border-color:transparent;content:" ";display:block;right:-10px;border-left-width:10px;border-left-color:#1e4b6c}.bk-tooltip.bk-tooltip-custom.bk-left::before{border-right-color:black}.bk-tooltip.bk-tooltip-custom.bk-right::after{border-left-color:black}.bk-tooltip.bk-tooltip-custom{border-color:black;background-color:white}.bk-tooltip-row-label{color:#9ab9b1;font-family:Helvetica,sans-serif;text-align:right}.bk-tooltip-row-value{color:#e2ddbd;font-family:Helvetica,sans-serif}.bk-tooltip-color-block{width:12px;height:12px;margin-left:5px;margin-right:5px;outline:#ddd solid 1px;display:inline-block}.bk-canvas-map{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}.bk-table{overflow:auto}.bokehdelete{float:right}.plottitle{padding-left:50px;padding-bottom:10px} /*# sourceMappingURL=bokeh.min.css.map */ /* END /projects/sage/sage-6.10/local/lib/python2.7/site-packages/bokeh/server/static/css/bokeh.min.css */
                  BokehJS successfully loaded.
    from bokeh.plotting import figure import numpy as np x = np.linspace(0, 4*np.pi, 100) y = np.sin(x) plot = figure(title="Sine Function") plot.xaxis.axis_label='x' plot.yaxis.axis_label='amplitude' plot.line(x, y, line_color='blue', line_width=2r, legend='sin(x)') plot.circle(x, 2*y, fill_color='red', line_color='black', fill_alpha=float(0.2), size=10r, legend='2sin(x)') #line_dash is an aribrary length list of lengths #alternating in [color, blank, color, ...] plot.line(x, np.sin(2*x), line_color='green', line_dash=[10r,5r,2r,5r], line_width=2r, legend='sin(2x)') show(plot)
    from bokeh.sampledata.iris import flowers flowers.head()
    sepal_length sepal_width petal_length petal_width species
    0 5.1 3.5 1.4 0.2 setosa
    1 4.9 3.0 1.4 0.2 setosa
    2 4.7 3.2 1.3 0.2 setosa
    3 4.6 3.1 1.5 0.2 setosa
    4 5.0 3.6 1.4 0.2 setosa
    from bokeh.charts import Scatter plot = Scatter(flowers, x='petal_length', y='petal_width', color='species', legend='top_left', title='Flower Morphology') show(plot)
    /projects/sage/sage-6.10/local/lib/python2.7/site-packages/bokeh/charts/_attributes.py:78: FutureWarning: sort(columns=....) is deprecated, use sort_values(by=.....) df = df.sort(columns=columns)