{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Lesson 0b: Introduction to JupyterLab" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "application/javascript": [ "\n", "(function(root) {\n", " function now() {\n", " return new Date();\n", " }\n", "\n", " var force = true;\n", "\n", " if (typeof root._bokeh_onload_callbacks === \"undefined\" || force === true) {\n", " root._bokeh_onload_callbacks = [];\n", " root._bokeh_is_loading = undefined;\n", " }\n", "\n", " var JS_MIME_TYPE = 'application/javascript';\n", " var HTML_MIME_TYPE = 'text/html';\n", " var EXEC_MIME_TYPE = 'application/vnd.bokehjs_exec.v0+json';\n", " var CLASS_NAME = 'output_bokeh rendered_html';\n", "\n", " /**\n", " * Render data to the DOM node\n", " */\n", " function render(props, node) {\n", " var script = document.createElement(\"script\");\n", " node.appendChild(script);\n", " }\n", "\n", " /**\n", " * Handle when an output is cleared or removed\n", " */\n", " function handleClearOutput(event, handle) {\n", " var cell = handle.cell;\n", "\n", " var id = cell.output_area._bokeh_element_id;\n", " var server_id = cell.output_area._bokeh_server_id;\n", " // Clean up Bokeh references\n", " if (id != null && id in Bokeh.index) {\n", " Bokeh.index[id].model.document.clear();\n", " delete Bokeh.index[id];\n", " }\n", "\n", " if (server_id !== undefined) {\n", " // Clean up Bokeh references\n", " var cmd = \"from bokeh.io.state import curstate; print(curstate().uuid_to_server['\" + server_id + \"'].get_sessions()[0].document.roots[0]._id)\";\n", " cell.notebook.kernel.execute(cmd, {\n", " iopub: {\n", " output: function(msg) {\n", " var id = msg.content.text.trim();\n", " if (id in Bokeh.index) {\n", " Bokeh.index[id].model.document.clear();\n", " delete Bokeh.index[id];\n", " }\n", " }\n", " }\n", " });\n", " // Destroy server and session\n", " var cmd = \"import bokeh.io.notebook as ion; ion.destroy_server('\" + server_id + \"')\";\n", " cell.notebook.kernel.execute(cmd);\n", " }\n", " }\n", "\n", " /**\n", " * Handle when a new output is added\n", " */\n", " function handleAddOutput(event, handle) {\n", " var output_area = handle.output_area;\n", " var output = handle.output;\n", "\n", " // limit handleAddOutput to display_data with EXEC_MIME_TYPE content only\n", " if ((output.output_type != \"display_data\") || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n", " return\n", " }\n", "\n", " var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n", "\n", " if (output.metadata[EXEC_MIME_TYPE][\"id\"] !== undefined) {\n", " toinsert[toinsert.length - 1].firstChild.textContent = output.data[JS_MIME_TYPE];\n", " // store reference to embed id on output_area\n", " output_area._bokeh_element_id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n", " }\n", " if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n", " var bk_div = document.createElement(\"div\");\n", " bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n", " var script_attrs = bk_div.children[0].attributes;\n", " for (var i = 0; i < script_attrs.length; i++) {\n", " toinsert[toinsert.length - 1].firstChild.setAttribute(script_attrs[i].name, script_attrs[i].value);\n", " }\n", " // store reference to server id on output_area\n", " output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n", " }\n", " }\n", "\n", " function register_renderer(events, OutputArea) {\n", "\n", " function append_mime(data, metadata, element) {\n", " // create a DOM node to render to\n", " var toinsert = this.create_output_subarea(\n", " metadata,\n", " CLASS_NAME,\n", " EXEC_MIME_TYPE\n", " );\n", " this.keyboard_manager.register_events(toinsert);\n", " // Render to node\n", " var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n", " render(props, toinsert[toinsert.length - 1]);\n", " element.append(toinsert);\n", " return toinsert\n", " }\n", "\n", " /* Handle when an output is cleared or removed */\n", " events.on('clear_output.CodeCell', handleClearOutput);\n", " events.on('delete.Cell', handleClearOutput);\n", "\n", " /* Handle when a new output is added */\n", " events.on('output_added.OutputArea', handleAddOutput);\n", "\n", " /**\n", " * Register the mime type and append_mime function with output_area\n", " */\n", " OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n", " /* Is output safe? */\n", " safe: true,\n", " /* Index of renderer in `output_area.display_order` */\n", " index: 0\n", " });\n", " }\n", "\n", " // register the mime type if in Jupyter Notebook environment and previously unregistered\n", " if (root.Jupyter !== undefined) {\n", " var events = require('base/js/events');\n", " var OutputArea = require('notebook/js/outputarea').OutputArea;\n", "\n", " if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n", " register_renderer(events, OutputArea);\n", " }\n", " }\n", "\n", " \n", " if (typeof (root._bokeh_timeout) === \"undefined\" || force === true) {\n", " root._bokeh_timeout = Date.now() + 5000;\n", " root._bokeh_failed_load = false;\n", " }\n", "\n", " var NB_LOAD_WARNING = {'data': {'text/html':\n", " \"
\\n\"+\n", " \"

\\n\"+\n", " \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", " \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", " \"

\\n\"+\n", " \"\\n\"+\n", " \"\\n\"+\n", " \"from bokeh.resources import INLINE\\n\"+\n", " \"output_notebook(resources=INLINE)\\n\"+\n", " \"\\n\"+\n", " \"
\"}};\n", "\n", " function display_loaded() {\n", " var el = document.getElementById(null);\n", " if (el != null) {\n", " el.textContent = \"BokehJS is loading...\";\n", " }\n", " if (root.Bokeh !== undefined) {\n", " if (el != null) {\n", " el.textContent = \"BokehJS \" + root.Bokeh.version + \" successfully loaded.\";\n", " }\n", " } else if (Date.now() < root._bokeh_timeout) {\n", " setTimeout(display_loaded, 100)\n", " }\n", " }\n", "\n", "\n", " function run_callbacks() {\n", " try {\n", " root._bokeh_onload_callbacks.forEach(function(callback) {\n", " if (callback != null)\n", " callback();\n", " });\n", " } finally {\n", " delete root._bokeh_onload_callbacks\n", " }\n", " console.debug(\"Bokeh: all callbacks have finished\");\n", " }\n", "\n", " function load_libs(css_urls, js_urls, callback) {\n", " if (css_urls == null) css_urls = [];\n", " if (js_urls == null) js_urls = [];\n", "\n", " root._bokeh_onload_callbacks.push(callback);\n", " if (root._bokeh_is_loading > 0) {\n", " console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n", " return null;\n", " }\n", " if (js_urls == null || js_urls.length === 0) {\n", " run_callbacks();\n", " return null;\n", " }\n", " console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n", " root._bokeh_is_loading = css_urls.length + js_urls.length;\n", "\n", " function on_load() {\n", " root._bokeh_is_loading--;\n", " if (root._bokeh_is_loading === 0) {\n", " console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n", " run_callbacks()\n", " }\n", " }\n", "\n", " function on_error() {\n", " console.error(\"failed to load \" + url);\n", " }\n", "\n", " for (var i = 0; i < css_urls.length; i++) {\n", " var url = css_urls[i];\n", " const element = document.createElement(\"link\");\n", " element.onload = on_load;\n", " element.onerror = on_error;\n", " element.rel = \"stylesheet\";\n", " element.type = \"text/css\";\n", " element.href = url;\n", " console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n", " document.body.appendChild(element);\n", " }\n", "\n", " for (var i = 0; i < js_urls.length; i++) {\n", " var url = js_urls[i];\n", " var element = document.createElement('script');\n", " element.onload = on_load;\n", " element.onerror = on_error;\n", " element.async = false;\n", " element.src = url;\n", " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n", " document.head.appendChild(element);\n", " }\n", " };\n", "\n", " function inject_raw_css(css) {\n", " const element = document.createElement(\"style\");\n", " element.appendChild(document.createTextNode(css));\n", " document.body.appendChild(element);\n", " }\n", "\n", " var js_urls = [];\n", " var css_urls = [];\n", "\n", " var inline_js = [\n", " function(Bokeh) {\n", " /* BEGIN bokeh.min.js */\n", " /*!\n", " * Copyright (c) 2012 - 2018, Anaconda, Inc., and Bokeh Contributors\n", " * All rights reserved.\n", " * \n", " * Redistribution and use in source and binary forms, with or without modification,\n", " * are permitted provided that the following conditions are met:\n", " * \n", " * Redistributions of source code must retain the above copyright notice,\n", " * this list of conditions and the following disclaimer.\n", " * \n", " * Redistributions in binary form must reproduce the above copyright notice,\n", " * this list of conditions and the following disclaimer in the documentation\n", " * and/or other materials provided with the distribution.\n", " * \n", " * Neither the name of Anaconda nor the names of any contributors\n", " * may be used to endorse or promote products derived from this software\n", " * without specific prior written permission.\n", " * \n", " * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n", " * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n", " * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n", " * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n", " * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n", " * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n", " * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n", " * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n", " * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n", " * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\n", " * THE POSSIBILITY OF SUCH DAMAGE.\n", " */\n", " !function(t,e){var n,i,r,o,s;t.Bokeh=(n=[function(t,e,n){var i=t(160),r=t(35);n.overrides={};var o=r.clone(i);n.Models=function(t){var e=n.overrides[t]||o[t];if(null==e)throw new Error(\"Model '\"+t+\"' does not exist. This could be due to a widget\\n or a custom model not being registered before first usage.\");return e},n.Models.register=function(t,e){n.overrides[t]=e},n.Models.unregister=function(t){delete n.overrides[t]},n.Models.register_models=function(t,e,n){if(void 0===e&&(e=!1),null!=t)for(var i in t){var r=t[i];e||!o.hasOwnProperty(i)?o[i]=r:null!=n?n(i):console.warn(\"Model '\"+i+\"' was already registered\")}},n.register_models=n.Models.register_models,n.Models.registered_names=function(){return Object.keys(o)}},function(t,e,n){var i=t(17),r=t(54),o=t(300),s=t(301),a=t(2);n.DEFAULT_SERVER_WEBSOCKET_URL=\"ws://localhost:5006/ws\",n.DEFAULT_SESSION_ID=\"default\";var l=0,c=function(){function t(t,e,r,o,a){void 0===t&&(t=n.DEFAULT_SERVER_WEBSOCKET_URL),void 0===e&&(e=n.DEFAULT_SESSION_ID),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=null),this.url=t,this.id=e,this.args_string=r,this._on_have_session_hook=o,this._on_closed_permanently_hook=a,this._number=l++,this.socket=null,this.session=null,this.closed_permanently=!1,this._current_handler=null,this._pending_ack=null,this._pending_replies={},this._pending_messages=[],this._receiver=new s.Receiver,i.logger.debug(\"Creating websocket \"+this._number+\" to '\"+this.url+\"' session '\"+this.id+\"'\")}return t.prototype.connect=function(){var t=this;if(this.closed_permanently)return Promise.reject(new Error(\"Cannot connect() a closed ClientConnection\"));if(null!=this.socket)return Promise.reject(new Error(\"Already connected\"));this._pending_replies={},this._current_handler=null;try{var e=this.url+\"?bokeh-protocol-version=1.0&bokeh-session-id=\"+this.id;return null!=this.args_string&&this.args_string.length>0&&(e+=\"&\"+this.args_string),this.socket=new WebSocket(e),new Promise(function(e,n){t.socket.binaryType=\"arraybuffer\",t.socket.onopen=function(){return t._on_open(e,n)},t.socket.onmessage=function(e){return t._on_message(e)},t.socket.onclose=function(e){return t._on_close(e)},t.socket.onerror=function(){return t._on_error(n)}})}catch(t){return i.logger.error(\"websocket creation failed to url: \"+this.url),i.logger.error(\" - \"+t),Promise.reject(t)}},t.prototype.close=function(){this.closed_permanently||(i.logger.debug(\"Permanently closing websocket connection \"+this._number),this.closed_permanently=!0,null!=this.socket&&this.socket.close(1e3,\"close method called on ClientConnection \"+this._number),this.session._connection_closed(),null!=this._on_closed_permanently_hook&&(this._on_closed_permanently_hook(),this._on_closed_permanently_hook=null))},t.prototype._schedule_reconnect=function(t){var e=this;setTimeout(function(){e.closed_permanently||i.logger.info(\"Websocket connection \"+e._number+\" disconnected, will not attempt to reconnect\")},t)},t.prototype.send=function(t){if(null==this.socket)throw new Error(\"not connected so cannot send \"+t);t.send(this.socket)},t.prototype.send_with_reply=function(t){var e=this,n=new Promise(function(n,i){e._pending_replies[t.msgid()]=[n,i],e.send(t)});return n.then(function(t){if(\"ERROR\"===t.msgtype())throw new Error(\"Error reply \"+t.content.text);return t},function(t){throw t})},t.prototype._pull_doc_json=function(){var t=o.Message.create(\"PULL-DOC-REQ\",{}),e=this.send_with_reply(t);return e.then(function(t){if(!(\"doc\"in t.content))throw new Error(\"No 'doc' field in PULL-DOC-REPLY\");return t.content.doc},function(t){throw t})},t.prototype._repull_session_doc=function(){var t=this;null==this.session?i.logger.debug(\"Pulling session for first time\"):i.logger.debug(\"Repulling session\"),this._pull_doc_json().then(function(e){if(null==t.session)if(t.closed_permanently)i.logger.debug(\"Got new document after connection was already closed\");else{var n=r.Document.from_json(e),s=r.Document._compute_patch_since_json(e,n);if(s.events.length>0){i.logger.debug(\"Sending \"+s.events.length+\" changes from model construction back to server\");var l=o.Message.create(\"PATCH-DOC\",{},s);t.send(l)}t.session=new a.ClientSession(t,n,t.id);for(var c=0,h=t._pending_messages;c\",\"*\"],n.HTTPMethod=[\"POST\",\"GET\"],n.HexTileOrientation=[\"pointytop\",\"flattop\"],n.HoverMode=[\"mouse\",\"hline\",\"vline\"],n.LatLon=[\"lat\",\"lon\"],n.LegendClickPolicy=[\"none\",\"hide\",\"mute\"],n.LegendLocation=n.Anchor,n.LineCap=[\"butt\",\"round\",\"square\"],n.LineJoin=[\"miter\",\"round\",\"bevel\"],n.LinePolicy=[\"prev\",\"next\",\"nearest\",\"interp\",\"none\"],n.Location=[\"above\",\"below\",\"left\",\"right\"],n.Logo=[\"normal\",\"grey\"],n.MarkerType=[\"asterisk\",\"circle\",\"circle_cross\",\"circle_x\",\"cross\",\"dash\",\"diamond\",\"diamond_cross\",\"hex\",\"inverted_triangle\",\"square\",\"square_cross\",\"square_x\",\"triangle\",\"x\"],n.Orientation=[\"vertical\",\"horizontal\"],n.OutputBackend=[\"canvas\",\"svg\",\"webgl\"],n.PaddingUnits=[\"percent\",\"absolute\"],n.Place=[\"above\",\"below\",\"left\",\"right\",\"center\"],n.PointPolicy=[\"snap_to_data\",\"follow_mouse\",\"none\"],n.RadiusDimension=[\"x\",\"y\",\"max\",\"min\"],n.RenderLevel=[\"image\",\"underlay\",\"glyph\",\"annotation\",\"overlay\"],n.RenderMode=[\"canvas\",\"css\"],n.ResetPolicy=[\"standard\",\"event_only\"],n.RoundingFunction=[\"round\",\"nearest\",\"floor\",\"rounddown\",\"ceil\",\"roundup\"],n.Side=[\"above\",\"below\",\"left\",\"right\"],n.SizingMode=[\"stretch_width\",\"stretch_height\",\"stretch_both\",\"scale_width\",\"scale_height\",\"scale_both\",\"fixed\"],n.SliderCallbackPolicy=[\"continuous\",\"throttle\",\"mouseup\"],n.Sort=[\"ascending\",\"descending\"],n.SpatialUnits=[\"screen\",\"data\"],n.StartEnd=[\"start\",\"end\"],n.StepMode=[\"after\",\"before\",\"center\"],n.TapBehavior=[\"select\",\"inspect\"],n.TextAlign=[\"left\",\"right\",\"center\"],n.TextBaseline=[\"top\",\"middle\",\"bottom\",\"alphabetic\",\"hanging\",\"ideographic\"],n.TextureRepetition=[\"repeat\",\"repeat_x\",\"repeat_y\",\"no_repeat\"],n.TickLabelOrientation=[\"vertical\",\"horizontal\",\"parallel\",\"normal\"],n.TooltipAttachment=[\"horizontal\",\"vertical\",\"left\",\"right\",\"above\",\"below\"],n.UpdateMode=[\"replace\",\"append\"],n.VerticalAlign=[\"top\",\"middle\",\"bottom\"]},function(t,e,n){var i=t(426),r=t(22),o=t(19),s=t(37),a=t(18),l=t(40),c=t(24),h=t(35),u=t(46),_=t(33),d=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;for(var i in n._subtype=void 0,n.document=null,n.destroyed=new r.Signal0(n,\"destroyed\"),n.change=new r.Signal0(n,\"change\"),n.transformchange=new r.Signal0(n,\"transformchange\"),n.attributes={},n.properties={},n._set_after_defaults={},n._pending=!1,n._changing=!1,n.props){var o=n.props[i],s=o.type,a=o.default_value;if(null==s)throw new Error(\"undefined property type for \"+n.type+\".\"+i);n.properties[i]=new s(n,i,a)}null==e.id&&n.setv({id:l.uniqueId()},{silent:!0});var c=e.__deferred__||!1;return c&&delete(e=h.clone(e)).__deferred__,n.setv(e,{silent:!0}),c||n.finalize(),n}return i.__extends(e,t),Object.defineProperty(e.prototype,\"type\",{get:function(){return this.constructor.__name__},set:function(t){this.constructor.__name__=t},enumerable:!0,configurable:!0}),e.initClass=function(){this.prototype.props={},this.prototype.mixins=[],this.define({id:[a.Any]})},e._fix_default=function(t,e){return void 0===t?void 0:u.isFunction(t)?t:u.isObject(t)?u.isArray(t)?function(){return c.copy(t)}:function(){return h.clone(t)}:function(){return t}},e.define=function(t){var e=function(e){var i=t[e];if(null!=n.prototype.props[e])throw new Error(\"attempted to redefine property '\"+n.prototype.type+\".\"+e+\"'\");if(null!=n.prototype[e])throw new Error(\"attempted to redefine attribute '\"+n.prototype.type+\".\"+e+\"'\");Object.defineProperty(n.prototype,e,{get:function(){var t=this.getv(e);return t},set:function(t){var n;return this.setv(((n={})[e]=t,n)),this},configurable:!1,enumerable:!0});var r=i,o=r[0],s=r[1],a=r[2],l={type:o,default_value:n._fix_default(s,e),internal:a||!1},c=h.clone(n.prototype.props);c[e]=l,n.prototype.props=c},n=this;for(var i in t)e(i)},e.internal=function(t){var e={};for(var n in t){var i=t[n],r=i[0],o=i[1];e[n]=[r,o,!0]}this.define(e)},e.mixin=function(){for(var t=[],e=0;e0&&(this._pending=!0);for(var c=0;c1)return s(t,n);var o={x:e.x+r*(n.x-e.x),y:e.y+r*(n.y-e.y)};return s(t,o)}n.point_in_poly=function(t,e,n,i){for(var r=!1,o=n[n.length-1],s=i[i.length-1],a=0;a0&&c<1&&h>0&&h<1,x:d,y:p}}},function(t,e,n){var i=t(426),r=t(14),o=t(27),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.children=[],e}return i.__extends(e,t),e.__name__=\"Stack\",e}(r.Layoutable);n.Stack=s;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._measure=function(t){for(var e=0,n=0,i=0,r=this.children;i0)for(var S=h(k.height/C.length),M=0,E=C;M0)for(var P=h(k.width/z.length),j=0,N=z;j0)for(var p=0;pm?m:y,v--}}}_=\"fixed\"==this.sizing.width_policy&&null!=this.sizing.width?this.sizing.width:t.width!=1/0&&this.is_width_expanding()?t.width:u.size.width;for(var b=0,w=0;w0)for(var w=0;wA?A:y,v--}}}var C=this._measure_cells(function(t,e){return{width:u.col_widths[e],height:u.row_heights[t]}}),T=C.row_heights,S=C.col_widths,M=C.size_hints,E=this._measure_totals(T,S);return{size:E,row_heights:T,col_widths:S,size_hints:M}},e.prototype._measure=function(t){var e=this._measure_grid(t).size;return e},e.prototype._set_geometry=function(e,n){t.prototype._set_geometry.call(this,e,n);for(var r=this._state,o=r.nrows,s=r.ncols,l=r.rspacing,_=r.cspacing,d=this._measure_grid(e),p=d.row_heights,f=d.col_widths,m=d.size_hints,v=this._state.rows.map(function(t,e){return i.__assign({},t,{top:0,height:p[e],get bottom(){return this.top+this.height}})}),g=this._state.cols.map(function(t,e){return i.__assign({},t,{left:0,width:f[e],get right(){return this.left+this.width}})}),y=m.map(function(t,e){return i.__assign({},e,{outer:new a.BBox,inner:new a.BBox})}),b=0,w=this.absolute?e.top:0;bn[e]}(s,a)?n=l(i*r):i=l(n/r);else\"fixed\"==s?i=l(n/r):\"fixed\"==a&&(n=l(i*r))}return{width:n,height:i}},t.prototype.measure=function(t){var e=this;if(!this.sizing.visible)return{width:0,height:0};var n=function(t){return\"fixed\"==e.sizing.width_policy&&null!=e.sizing.width?e.sizing.width:t},o=function(t){return\"fixed\"==e.sizing.height_policy&&null!=e.sizing.height?e.sizing.height:t},s=new r.Sizeable(t).shrink_by(this.sizing.margin).map(n,o),a=this._measure(s),l=this.clip_size(a),c=n(l.width),h=o(l.height),u=this.apply_aspect(s,{width:c,height:h});return i.__assign({},a,u)},t.prototype.compute=function(t){void 0===t&&(t={});var e=this.measure({width:null!=t.width&&this.is_width_expanding()?t.width:1/0,height:null!=t.height&&this.is_height_expanding()?t.height:1/0}),n=e.width,i=e.height,r=new o.BBox({left:0,top:0,width:n,height:i}),s=void 0;if(null!=e.inner){var a=e.inner,l=a.left,c=a.top,h=a.right,u=a.bottom;s=new o.BBox({left:l,top:c,right:n-h,bottom:i-u})}this.set_geometry(r,s)},Object.defineProperty(t.prototype,\"xview\",{get:function(){return this.bbox.xview},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"yview\",{get:function(){return this.bbox.yview},enumerable:!0,configurable:!0}),t.prototype.clip_width=function(t){return a(this.sizing.min_width,s(t,this.sizing.max_width))},t.prototype.clip_height=function(t){return a(this.sizing.min_height,s(t,this.sizing.max_height))},t.prototype.clip_size=function(t){var e=t.width,n=t.height;return{width:this.clip_width(e),height:this.clip_height(n)}},t.__name__=\"Layoutable\",t}();n.Layoutable=c;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._measure=function(t){var e,n,i=this.sizing,r=i.width_policy,o=i.height_policy;if(t.width==1/0)e=null!=this.sizing.width?this.sizing.width:0;else if(\"fixed\"==r)e=null!=this.sizing.width?this.sizing.width:0;else if(\"min\"==r)e=null!=this.sizing.width?s(t.width,this.sizing.width):0;else if(\"fit\"==r)e=null!=this.sizing.width?s(t.width,this.sizing.width):t.width;else{if(\"max\"!=r)throw new Error(\"unrechable\");e=null!=this.sizing.width?a(t.width,this.sizing.width):t.width}if(t.height==1/0)n=null!=this.sizing.height?this.sizing.height:0;else if(\"fixed\"==o)n=null!=this.sizing.height?this.sizing.height:0;else if(\"min\"==o)n=null!=this.sizing.height?s(t.height,this.sizing.height):0;else if(\"fit\"==o)n=null!=this.sizing.height?s(t.height,this.sizing.height):t.height;else{if(\"max\"!=o)throw new Error(\"unrechable\");n=null!=this.sizing.height?a(t.height,this.sizing.height):t.height}return{width:e,height:n}},e.__name__=\"LayoutItem\",e}(c);n.LayoutItem=h;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._measure=function(t){var e=this,n=this._content_size(),i=t.bounded_to(this.sizing.size).bounded_to(n),r=function(){switch(e.sizing.width_policy){case\"fixed\":return null!=e.sizing.width?e.sizing.width:n.width;case\"min\":return n.width;case\"fit\":return i.width;case\"max\":return Math.max(n.width,i.width);default:throw new Error(\"unexpected\")}}(),o=function(){switch(e.sizing.height_policy){case\"fixed\":return null!=e.sizing.height?e.sizing.height:n.height;case\"min\":return n.height;case\"fit\":return i.height;case\"max\":return Math.max(n.height,i.height);default:throw new Error(\"unexpected\")}}();return{width:r,height:o}},e.__name__=\"ContentLayoutable\",e}(c);n.ContentLayoutable=u},function(t,e,n){var i=t(426),r=t(16),o=t(14),s=t(46),a=Math.PI/2,l=\"left\",c=\"center\",h={above:{parallel:0,normal:-a,horizontal:0,vertical:-a},below:{parallel:0,normal:a,horizontal:0,vertical:a},left:{parallel:-a,normal:0,horizontal:0,vertical:-a},right:{parallel:a,normal:0,horizontal:0,vertical:a}},u={above:{justified:\"top\",parallel:\"alphabetic\",normal:\"middle\",horizontal:\"alphabetic\",vertical:\"middle\"},below:{justified:\"bottom\",parallel:\"hanging\",normal:\"middle\",horizontal:\"hanging\",vertical:\"middle\"},left:{justified:\"top\",parallel:\"alphabetic\",normal:\"middle\",horizontal:\"middle\",vertical:\"alphabetic\"},right:{justified:\"top\",parallel:\"alphabetic\",normal:\"middle\",horizontal:\"middle\",vertical:\"alphabetic\"}},_={above:{justified:c,parallel:c,normal:l,horizontal:c,vertical:l},below:{justified:c,parallel:c,normal:l,horizontal:c,vertical:l},left:{justified:c,parallel:c,normal:\"right\",horizontal:\"right\",vertical:c},right:{justified:c,parallel:c,normal:l,horizontal:l,vertical:c}},d={above:\"right\",below:l,left:\"right\",right:l},p={above:l,below:\"right\",left:\"right\",right:l},f=function(t){function e(e,n){var i=t.call(this)||this;switch(i.side=e,i.obj=n,i.side){case\"above\":i._dim=0,i._normals=[0,-1];break;case\"below\":i._dim=0,i._normals=[0,1];break;case\"left\":i._dim=1,i._normals=[-1,0];break;case\"right\":i._dim=1,i._normals=[1,0];break;default:throw new Error(\"unreachable\")}return i.is_horizontal?i.set_sizing({width_policy:\"max\",height_policy:\"fixed\"}):i.set_sizing({width_policy:\"fixed\",height_policy:\"max\"}),i}return i.__extends(e,t),e.prototype._content_size=function(){return new r.Sizeable(this.get_oriented_size())},e.prototype.get_oriented_size=function(){var t=this.obj.get_size(),e=t.width,n=t.height;return!this.obj.rotate||this.is_horizontal?{width:e,height:n}:{width:n,height:e}},e.prototype.has_size_changed=function(){var t=this.get_oriented_size(),e=t.width,n=t.height;return this.is_horizontal?this.bbox.height!=n:this.bbox.width!=e},Object.defineProperty(e.prototype,\"dimension\",{get:function(){return this._dim},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"normals\",{get:function(){return this._normals},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"is_horizontal\",{get:function(){return 0==this._dim},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"is_vertical\",{get:function(){return 1==this._dim},enumerable:!0,configurable:!0}),e.prototype.apply_label_text_heuristics=function(t,e){var n,i,r=this.side;s.isString(e)?(n=u[r][e],i=_[r][e]):0===e?(n=\"whatever\",i=\"whatever\"):e<0?(n=\"middle\",i=d[r]):(n=\"middle\",i=p[r]),t.textBaseline=n,t.textAlign=i},e.prototype.get_label_angle_heuristic=function(t){return h[this.side][t]},e.__name__=\"SidePanel\",e}(o.ContentLayoutable);n.SidePanel=f},function(t,e,n){var i=Math.min,r=Math.max,o=function(){function t(t){void 0===t&&(t={}),this.width=null!=t.width?t.width:0,this.height=null!=t.height?t.height:0}return t.prototype.bounded_to=function(e){var n=e.width,i=e.height;return new t({width:this.width==1/0&&null!=n?n:this.width,height:this.height==1/0&&null!=i?i:this.height})},t.prototype.expanded_to=function(e){var n=e.width,i=e.height;return new t({width:n!=1/0?r(this.width,n):this.width,height:i!=1/0?r(this.height,i):this.height})},t.prototype.expand_to=function(t){var e=t.width,n=t.height;this.width=r(this.width,e),this.height=r(this.height,n)},t.prototype.narrowed_to=function(e){var n=e.width,r=e.height;return new t({width:i(this.width,n),height:i(this.height,r)})},t.prototype.narrow_to=function(t){var e=t.width,n=t.height;this.width=i(this.width,e),this.height=i(this.height,n)},t.prototype.grow_by=function(e){var n=e.left,i=e.right,r=e.top,o=e.bottom,s=this.width+n+i,a=this.height+r+o;return new t({width:s,height:a})},t.prototype.shrink_by=function(e){var n=e.left,i=e.right,o=e.top,s=e.bottom,a=r(this.width-n-i,0),l=r(this.height-o-s,0);return new t({width:a,height:l})},t.prototype.map=function(e,n){return new t({width:e(this.width),height:(null!=n?n:e)(this.height)})},t.__name__=\"Sizeable\",t}();n.Sizeable=o},function(t,e,n){var i=t(46),r={},o=function(){function t(t,e){this.name=t,this.level=e}return t.__name__=\"LogLevel\",t}();n.LogLevel=o;var s=function(){function t(e,n){void 0===n&&(n=t.INFO),this._name=e,this.set_level(n)}return Object.defineProperty(t,\"levels\",{get:function(){return Object.keys(t.log_levels)},enumerable:!0,configurable:!0}),t.get=function(e,n){if(void 0===n&&(n=t.INFO),e.length>0){var i=r[e];return null==i&&(r[e]=i=new t(e,n)),i}throw new TypeError(\"Logger.get() expects a non-empty string name and an optional log-level\")},Object.defineProperty(t.prototype,\"level\",{get:function(){return this.get_level()},enumerable:!0,configurable:!0}),t.prototype.get_level=function(){return this._log_level},t.prototype.set_level=function(e){if(e instanceof o)this._log_level=e;else{if(!i.isString(e)||null==t.log_levels[e])throw new Error(\"Logger.set_level() expects a log-level object or a string name of a log-level\");this._log_level=t.log_levels[e]}var n=\"[\"+this._name+\"]\";for(var r in t.log_levels){var s=t.log_levels[r];s.level0){var p=this.source.selection_policy.hit_test(e,r);u=u||this.source.selection_policy.do_selection(p,this.source,n,i)}return u},e.prototype.inspect=function(t,e){var n=!1;if(t instanceof s.GlyphRendererView){var i=t.hit_test(e);if(null!=i){n=!i.is_empty();var r=this.get_or_create_inspector(t.model);r.update(i,!0,!1),this.source.setv({inspected:r},{silent:!0}),this.source.inspect.emit([t,{geometry:e}])}}else if(t instanceof a.GraphRendererView){var i=t.model.inspection_policy.hit_test(e,t);n=n||t.model.inspection_policy.do_inspection(i,e,t,!1,!1)}return n},e.prototype.clear=function(t){this.source.selected.clear(),null!=t&&this.get_or_create_inspector(t.model).clear()},e.prototype.get_or_create_inspector=function(t){return null==this.inspectors[t.id]&&(this.inspectors[t.id]=new o.Selection),this.inspectors[t.id]},e.__name__=\"SelectionManager\",e}(r.HasProps);n.SelectionManager=c,c.initClass()},function(t,e,n){var i=function(){function t(){this._dev=!1}return Object.defineProperty(t.prototype,\"dev\",{get:function(){return this._dev},set:function(t){this._dev=t},enumerable:!0,configurable:!0}),t.__name__=\"Settings\",t}();n.Settings=i,n.settings=new i},function(t,e,n){var i=t(426),r=t(32),o=t(28),s=t(24),a=function(){function t(t,e){this.sender=t,this.name=e}return t.prototype.connect=function(t,e){void 0===e&&(e=null),c.has(this.sender)||c.set(this.sender,[]);var n=c.get(this.sender);if(null!=u(n,this,t,e))return!1;var i=e||t;h.has(i)||h.set(i,[]);var r=h.get(i),o={signal:this,slot:t,context:e};return n.push(o),r.push(o),!0},t.prototype.disconnect=function(t,e){void 0===e&&(e=null);var n=c.get(this.sender);if(null==n||0===n.length)return!1;var i=u(n,this,t,e);if(null==i)return!1;var r=e||t,o=h.get(r);return i.signal=null,d(n),d(o),!0},t.prototype.emit=function(t){for(var e=c.get(this.sender)||[],n=0,i=e;n0,\"'step' must be a positive number\"),null==e&&(e=t,t=0);for(var i=Math.max,o=Math.ceil,s=Math.abs,a=t<=e?n:-n,l=i(o(s(e-t)/n),0),c=Array(l),h=0;h=0?e:t.length+e]},n.zip=function(){for(var t=[],e=0;ei||void 0===n)return 1;if(no&&(e=o),null==n||n>o-e?n=o-e:n<0&&(n=0);for(var s=o-n+i.length,a=new t.constructor(s),l=0;l0?0:i-1;r>=0&&rn&&(n=e);return n},n.max_by=function(t,e){if(0==t.length)throw new Error(\"max_by() called with an empty array\");for(var n=t[0],i=e(n),r=1,o=t.length;ri&&(n=s,i=a)}return n},n.sum=function(t){for(var e=0,n=0,i=t.length;n=0&&h>=0))throw new Error(\"invalid bbox {x: \"+a+\", y: \"+l+\", width: \"+c+\", height: \"+h+\"}\");this.x0=a,this.y0=l,this.x1=a+c,this.y1=l+h}else{var u,_=void 0,d=void 0,p=void 0;if(\"width\"in t)if(\"left\"in t)_=t.left,d=_+t.width;else if(\"right\"in t)d=t.right,_=d-t.width;else{var f=t.width/2;_=t.hcenter-f,d=t.hcenter+f}else _=t.left,d=t.right;if(\"height\"in t)if(\"top\"in t)u=t.top,p=u+t.height;else if(\"bottom\"in t)p=t.bottom,u=p-t.height;else{var m=t.height/2;u=t.vcenter-m,p=t.vcenter+m}else u=t.top,p=t.bottom;if(!(_<=d&&u<=p))throw new Error(\"invalid bbox {left: \"+_+\", top: \"+u+\", right: \"+d+\", bottom: \"+p+\"}\");this.x0=_,this.y0=u,this.x1=d,this.y1=p}}return t.prototype.toString=function(){return\"BBox({left: \"+this.left+\", top: \"+this.top+\", width: \"+this.width+\", height: \"+this.height+\"})\"},Object.defineProperty(t.prototype,\"left\",{get:function(){return this.x0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"top\",{get:function(){return this.y0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"right\",{get:function(){return this.x1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"bottom\",{get:function(){return this.y1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"p0\",{get:function(){return[this.x0,this.y0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"p1\",{get:function(){return[this.x1,this.y1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"x\",{get:function(){return this.x0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"y\",{get:function(){return this.y0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"width\",{get:function(){return this.x1-this.x0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"height\",{get:function(){return this.y1-this.y0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"rect\",{get:function(){return{x0:this.x0,y0:this.y0,x1:this.x1,y1:this.y1}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"box\",{get:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"h_range\",{get:function(){return{start:this.x0,end:this.x1}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"v_range\",{get:function(){return{start:this.y0,end:this.y1}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"ranges\",{get:function(){return[this.h_range,this.v_range]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"aspect\",{get:function(){return this.width/this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"hcenter\",{get:function(){return(this.left+this.right)/2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,\"vcenter\",{get:function(){return(this.top+this.bottom)/2},enumerable:!0,configurable:!0}),t.prototype.contains=function(t,e){return t>=this.x0&&t<=this.x1&&e>=this.y0&&e<=this.y1},t.prototype.clip=function(t,e){return tthis.x1&&(t=this.x1),ethis.y1&&(e=this.y1),[t,e]},t.prototype.union=function(e){return new t({x0:i(this.x0,e.x0),y0:i(this.y0,e.y0),x1:r(this.x1,e.x1),y1:r(this.y1,e.y1)})},t.prototype.equals=function(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1},Object.defineProperty(t.prototype,\"xview\",{get:function(){var t=this;return{compute:function(e){return t.left+e},v_compute:function(e){for(var n=new Float64Array(e.length),i=t.left,r=0;re?(s&&(clearTimeout(s),s=null),a=c,o=t.apply(i,r),s||(i=r=null)):s||!1===n.trailing||(s=setTimeout(l,h)),o}},n.once=function(t){var e,n=!1;return function(){return n||(n=!0,e=t()),e}}},function(t,e,n){n.fixup_ctx=function(t){(function(t){t.setLineDash||(t.setLineDash=function(e){t.mozDash=e,t.webkitLineDash=e}),t.getLineDash||(t.getLineDash=function(){return t.mozDash})})(t),function(t){t.setLineDashOffset=function(e){t.lineDashOffset=e,t.mozDashOffset=e,t.webkitLineDashOffset=e},t.getLineDashOffset=function(){return t.mozDashOffset}}(t),function(t){t.setImageSmoothingEnabled=function(e){t.imageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.oImageSmoothingEnabled=e,t.webkitImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e},t.getImageSmoothingEnabled=function(){var e=t.imageSmoothingEnabled;return null==e||e}}(t),function(t){t.measureText&&null==t.html5MeasureText&&(t.html5MeasureText=t.measureText,t.measureText=function(e){var n=t.html5MeasureText(e);return n.ascent=1.6*t.html5MeasureText(\"m\").width,n})}(t),function(t){t.ellipse||(t.ellipse=function(e,n,i,r,o,s,a,l){void 0===l&&(l=!1);var c=.551784;t.translate(e,n),t.rotate(o);var h=i,u=r;l&&(h=-i,u=-r),t.moveTo(-h,0),t.bezierCurveTo(-h,u*c,-h*c,u,0,u),t.bezierCurveTo(h*c,u,h,u*c,h,0),t.bezierCurveTo(h,-u*c,h*c,-u,0,-u),t.bezierCurveTo(-h*c,-u,-h,-u*c,-h,0),t.rotate(-o),t.translate(-e,-n)})}(t)},n.get_scale_ratio=function(t,e,n){if(\"svg\"==n)return 1;if(e){var i=window.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return i/r}return 1}},function(t,e,n){var i=t(41),r=t(24);function o(t){var e=Number(t).toString(16);return 1==e.length?\"0\"+e:e}function s(t){if(0==(t+=\"\").indexOf(\"#\"))return t;if(i.is_svg_color(t))return i.svg_colors[t];if(0==t.indexOf(\"rgb\")){var e=t.replace(/^rgba?\\(|\\s+|\\)$/g,\"\").split(\",\"),n=e.slice(0,3).map(o).join(\"\");return 4==e.length&&(n+=o(Math.floor(255*parseFloat(e[3])))),\"#\"+n.slice(0,8)}return t}function a(t){var e;switch(t.substring(0,4)){case\"rgba\":e={start:\"rgba(\",len:4,alpha:!0};break;case\"rgb(\":e={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);var n=t.replace(e.start,\"\").replace(\")\",\"\").split(\",\").map(parseFloat);if(n.length!=e.len)throw new Error(\"color expects rgba \"+e.len+\"-tuple, received \"+t);if(e.alpha&&!(0<=n[3]&&n[3]<=1))throw new Error(\"color expects rgba 4-tuple to have alpha value between 0 and 1\");if(r.includes(n.slice(0,3).map(function(t){return 0<=t&&t<=255}),!1))throw new Error(\"color expects rgb to have value between 0 and 255\");return!0}n.is_color=function(t){return i.is_svg_color(t.toLowerCase())||\"#\"==t.substring(0,1)||a(t)},n.rgb2hex=function(t,e,n){var i=o(255&t),r=o(255&e),s=o(255&n);return\"#\"+i+r+s},n.color2hex=s,n.color2rgba=function(t,e){if(void 0===e&&(e=1),!t)return[0,0,0,0];var n=s(t);(n=n.replace(/ |#/g,\"\")).length<=4&&(n=n.replace(/(.)/g,\"$1$1\"));for(var i=n.match(/../g).map(function(t){return parseInt(t,16)/255});i.length<3;)i.push(0);return i.length<4&&i.push(e),i.slice(0,4)},n.valid_rgb=a},function(t,e,n){var i;n.is_ie=(i=\"undefined\"!=typeof navigator?navigator.userAgent:\"\").indexOf(\"MSIE\")>=0||i.indexOf(\"Trident\")>0||i.indexOf(\"Edge\")>0,n.is_mobile=\"undefined\"!=typeof window&&(\"ontouchstart\"in window||navigator.maxTouchPoints>0),n.is_little_endian=function(){var t=new ArrayBuffer(4),e=new Uint8Array(t),n=new Uint32Array(t);n[1]=168496141;var i=!0;return 10==e[4]&&11==e[5]&&12==e[6]&&13==e[7]&&(i=!1),i}()},function(t,e,n){var i=t(24),r=t(33),o=t(46),s=function(){function t(){this._dict={}}return t.prototype._existing=function(t){return t in this._dict?this._dict[t]:null},t.prototype.add_value=function(t,e){var n=this._existing(t);null==n?this._dict[t]=e:o.isArray(n)?n.push(e):this._dict[t]=[n,e]},t.prototype.remove_value=function(t,e){var n=this._existing(t);if(o.isArray(n)){var s=i.difference(n,[e]);s.length>0?this._dict[t]=s:delete this._dict[t]}else r.isEqual(n,e)&&delete this._dict[t]},t.prototype.get_one=function(t,e){var n=this._existing(t);if(o.isArray(n)){if(1===n.length)return n[0];throw new Error(e)}return n},t.__name__=\"MultiDict\",t}();n.MultiDict=s;var a=function(){function t(e){if(null==e)this._values=[];else if(e instanceof t)this._values=i.copy(e._values);else{this._values=[];for(var n=0,r=e;n2*Math.PI;)t-=2*Math.PI;return t}function r(t,e){return Math.abs(i(t-e))}function o(){return Math.random()}n.angle_norm=i,n.angle_dist=r,n.angle_between=function(t,e,n,o){var s=r(e,n);if(0==s)return!1;var a=i(t),l=r(e,a)<=s&&r(a,n)<=s;return 0==o?l:!l},n.random=o,n.randomIn=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},n.atan2=function(t,e){return Math.atan2(e[1]-t[1],e[0]-t[0])},n.rnorm=function(t,e){for(var n,i;n=o(),i=(2*(i=o())-1)*Math.sqrt(1/Math.E*2),!(-4*n*n*Math.log(n)>=i*i););var r=i/n;return r=t+e*r},n.clamp=function(t,e,n){return t>n?n:tl[e][0]&&t0){this.index=new i(t.length);for(var e=0,n=t;eo&&(i=(e=[o,i])[0],o=e[1]),r>s&&(r=(n=[s,r])[0],s=n[1]),{x0:i,y0:r,x1:o,y1:s}},Object.defineProperty(t.prototype,\"bbox\",{get:function(){if(null==this.index)return r.empty();var t=this.index,e=t.minX,n=t.minY,i=t.maxX,o=t.maxY;return{x0:e,y0:n,x1:i,y1:o}},enumerable:!0,configurable:!0}),t.prototype.search=function(t){var e=this;if(null==this.index)return[];var n=this._normalize(t),i=n.x0,r=n.y0,o=n.x1,s=n.y1,a=this.index.search(i,r,o,s);return a.map(function(t){return e.points[t]})},t.prototype.indices=function(t){return this.search(t).map(function(t){var e=t.i;return e})},t.__name__=\"SpatialIndex\",t}();n.SpatialIndex=o},function(t,e,n){var i=t(21);function r(){for(var t=new Array(32),e=0;e<32;e++)t[e]=\"0123456789ABCDEF\".substr(Math.floor(16*Math.random()),1);return t[12]=\"4\",t[16]=\"0123456789ABCDEF\".substr(3&t[16].charCodeAt(0)|8,1),t.join(\"\")}n.startsWith=function(t,e,n){return void 0===n&&(n=0),t.substr(n,e.length)==e},n.uuid4=r;var o=1e3;n.uniqueId=function(t){var e=i.settings.dev?\"j\"+o++:r();return null!=t?t+\"-\"+e:e},n.escape=function(t){return t.replace(/(?:[&<>\"'`])/g,function(t){switch(t){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return\""\";case\"'\":return\"'\";case\"`\":return\"`\";default:return t}})},n.unescape=function(t){return t.replace(/&(amp|lt|gt|quot|#x27|#x60);/g,function(t,e){switch(e){case\"amp\":return\"&\";case\"lt\":return\"<\";case\"gt\":return\">\";case\"quot\":return'\"';case\"#x27\":return\"'\";case\"#x60\":return\"`\";default:return e}})},n.use_strict=function(t){return\"'use strict';\\n\"+t}},function(t,e,n){n.svg_colors={indianred:\"#CD5C5C\",lightcoral:\"#F08080\",salmon:\"#FA8072\",darksalmon:\"#E9967A\",lightsalmon:\"#FFA07A\",crimson:\"#DC143C\",red:\"#FF0000\",firebrick:\"#B22222\",darkred:\"#8B0000\",pink:\"#FFC0CB\",lightpink:\"#FFB6C1\",hotpink:\"#FF69B4\",deeppink:\"#FF1493\",mediumvioletred:\"#C71585\",palevioletred:\"#DB7093\",coral:\"#FF7F50\",tomato:\"#FF6347\",orangered:\"#FF4500\",darkorange:\"#FF8C00\",orange:\"#FFA500\",gold:\"#FFD700\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",lemonchiffon:\"#FFFACD\",lightgoldenrodyellow:\"#FAFAD2\",papayawhip:\"#FFEFD5\",moccasin:\"#FFE4B5\",peachpuff:\"#FFDAB9\",palegoldenrod:\"#EEE8AA\",khaki:\"#F0E68C\",darkkhaki:\"#BDB76B\",lavender:\"#E6E6FA\",thistle:\"#D8BFD8\",plum:\"#DDA0DD\",violet:\"#EE82EE\",orchid:\"#DA70D6\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",mediumorchid:\"#BA55D3\",mediumpurple:\"#9370DB\",blueviolet:\"#8A2BE2\",darkviolet:\"#9400D3\",darkorchid:\"#9932CC\",darkmagenta:\"#8B008B\",purple:\"#800080\",indigo:\"#4B0082\",slateblue:\"#6A5ACD\",darkslateblue:\"#483D8B\",mediumslateblue:\"#7B68EE\",greenyellow:\"#ADFF2F\",chartreuse:\"#7FFF00\",lawngreen:\"#7CFC00\",lime:\"#00FF00\",limegreen:\"#32CD32\",palegreen:\"#98FB98\",lightgreen:\"#90EE90\",mediumspringgreen:\"#00FA9A\",springgreen:\"#00FF7F\",mediumseagreen:\"#3CB371\",seagreen:\"#2E8B57\",forestgreen:\"#228B22\",green:\"#008000\",darkgreen:\"#006400\",yellowgreen:\"#9ACD32\",olivedrab:\"#6B8E23\",olive:\"#808000\",darkolivegreen:\"#556B2F\",mediumaquamarine:\"#66CDAA\",darkseagreen:\"#8FBC8F\",lightseagreen:\"#20B2AA\",darkcyan:\"#008B8B\",teal:\"#008080\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",lightcyan:\"#E0FFFF\",paleturquoise:\"#AFEEEE\",aquamarine:\"#7FFFD4\",turquoise:\"#40E0D0\",mediumturquoise:\"#48D1CC\",darkturquoise:\"#00CED1\",cadetblue:\"#5F9EA0\",steelblue:\"#4682B4\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",lightblue:\"#ADD8E6\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",deepskyblue:\"#00BFFF\",dodgerblue:\"#1E90FF\",cornflowerblue:\"#6495ED\",royalblue:\"#4169E1\",blue:\"#0000FF\",mediumblue:\"#0000CD\",darkblue:\"#00008B\",navy:\"#000080\",midnightblue:\"#191970\",cornsilk:\"#FFF8DC\",blanchedalmond:\"#FFEBCD\",bisque:\"#FFE4C4\",navajowhite:\"#FFDEAD\",wheat:\"#F5DEB3\",burlywood:\"#DEB887\",tan:\"#D2B48C\",rosybrown:\"#BC8F8F\",sandybrown:\"#F4A460\",goldenrod:\"#DAA520\",darkgoldenrod:\"#B8860B\",peru:\"#CD853F\",chocolate:\"#D2691E\",saddlebrown:\"#8B4513\",sienna:\"#A0522D\",brown:\"#A52A2A\",maroon:\"#800000\",white:\"#FFFFFF\",snow:\"#FFFAFA\",honeydew:\"#F0FFF0\",mintcream:\"#F5FFFA\",azure:\"#F0FFFF\",aliceblue:\"#F0F8FF\",ghostwhite:\"#F8F8FF\",whitesmoke:\"#F5F5F5\",seashell:\"#FFF5EE\",beige:\"#F5F5DC\",oldlace:\"#FDF5E6\",floralwhite:\"#FFFAF0\",ivory:\"#FFFFF0\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lavenderblush:\"#FFF0F5\",mistyrose:\"#FFE4E1\",gainsboro:\"#DCDCDC\",lightgray:\"#D3D3D3\",lightgrey:\"#D3D3D3\",silver:\"#C0C0C0\",darkgray:\"#A9A9A9\",darkgrey:\"#A9A9A9\",gray:\"#808080\",grey:\"#808080\",dimgray:\"#696969\",dimgrey:\"#696969\",lightslategray:\"#778899\",lightslategrey:\"#778899\",slategray:\"#708090\",slategrey:\"#708090\",darkslategray:\"#2F4F4F\",darkslategrey:\"#2F4F4F\",black:\"#000000\"},n.is_svg_color=function(t){return t in n.svg_colors}},function(t,e,n){var i=t(424),r=t(396),o=t(425),s=t(40),a=t(46);function l(t){for(var e=[],n=1;n.1&&Math.abs(t)<1e3):return\"%0.3f\";default:return\"%0.3e\"}}();return l(i,t)}return\"\"+t}function h(t,e,i,r){if(null==i)return c;if(null!=r&&(t in r||e in r)){var o=e in r?e:t,s=r[o];if(a.isString(s)){if(s in n.DEFAULT_FORMATTERS)return n.DEFAULT_FORMATTERS[s];throw new Error(\"Unknown tooltip field formatter type '\"+s+\"'\")}return function(t,e,n){return s.format(t,e,n)}}return n.DEFAULT_FORMATTERS.numeral}function u(t,e,n,i){if(\"$\"==t[0]){if(t.substring(1)in i)return i[t.substring(1)];throw new Error(\"Unknown special variable '\"+t+\"'\")}var r=e.get_column(t);if(null==r)return null;if(a.isNumber(n))return r[n];var o=r[n.index];if(a.isTypedArray(o)||a.isArray(o)){if(a.isArray(o[0])){var s=o[n.dim2];return s[n.dim1]}return o[n.flat_index]}return o}n.sprintf=l,n.DEFAULT_FORMATTERS={numeral:function(t,e,n){return r.format(t,e)},datetime:function(t,e,n){return o(t,e)},printf:function(t,e,n){return l(e,t)}},n.basic_formatter=c,n.get_formatter=h,n.get_value=u,n.replace_placeholders=function(t,e,n,i,r){void 0===r&&(r={});var o=t.replace(/(?:^|[^@])([@|\\$](?:\\w+|{[^{}]+}))(?:{[^{}]+})?/g,function(t,e,n){return\"\"+e});return t=(t=(t=t.replace(/@\\$name/g,function(t){return\"@{\"+r.name+\"}\"})).replace(/(^|[^\\$])\\$(\\w+)/g,function(t,e,n){return e+\"@$\"+n})).replace(/(^|[^@])@(?:(\\$?\\w+)|{([^{}]+)})(?:{([^{}]+)})?/g,function(t,a,l,c,_){var d=u(l=null!=c?c:l,e,n,r);if(null==d)return\"\"+a+s.escape(\"???\");if(\"safe\"==_)return\"\"+a+d;var p=h(l,o,_,i);return\"\"+a+s.escape(p(d,_,r))})}},function(t,e,n){var i=t(5),r={};n.measure_font=function(t){if(null!=r[t])return r[t];var e=i.span({style:{font:t}},\"Hg\"),n=i.div({style:{display:\"inline-block\",width:\"1px\",height:\"0px\"}}),o=i.div({},e,n);document.body.appendChild(o);try{n.style.verticalAlign=\"baseline\";var s=i.offset(n).top-i.offset(e).top;n.style.verticalAlign=\"bottom\";var a=i.offset(n).top-i.offset(e).top,l={height:a,ascent:s,descent:a-s};return r[t]=l,l}finally{document.body.removeChild(o)}};var o={};n.measure_text=function(t,e){var n=o[e];if(null!=n){var r=n[t];if(null!=r)return r}else o[e]={};var s=i.div({style:{display:\"inline-block\",\"white-space\":\"nowrap\",font:e}},t);document.body.appendChild(s);try{var a=s.getBoundingClientRect(),l=a.width,c=a.height;return o[e][t]={width:l,height:c},{width:l,height:c}}finally{document.body.removeChild(s)}}},function(t,e,n){var i=(\"undefined\"!=typeof window?window.requestAnimationFrame:void 0)||(\"undefined\"!=typeof window?window.webkitRequestAnimationFrame:void 0)||(\"undefined\"!=typeof window?window.mozRequestAnimationFrame:void 0)||(\"undefined\"!=typeof window?window.msRequestAnimationFrame:void 0)||function(t){return t(Date.now()),-1};n.throttle=function(t,e){var n=null,r=0,o=!1,s=function(){r=Date.now(),n=null,o=!1,t()};return function(){var t=Date.now(),a=e-(t-r);a<=0&&!o?(null!=n&&clearTimeout(n),o=!0,i(s)):n||o||(n=setTimeout(function(){return i(s)},a))}}},function(t,e,n){n.concat=function(t){for(var e=[],n=1;n\":case\"vertical_wave\":u.moveTo(c,0),u.lineTo(3*c,o),u.lineTo(c,r),u.stroke();break;case\"*\":case\"criss_cross\":l(u,r),s(u,r,o),a(u,r,o)}return h}var h=function(){function t(t,e){void 0===e&&(e=\"\"),this.obj=t,this.prefix=e,this.cache={};for(var n=0,i=this.attrs;n0;)this.remove_root(this._roots[0])}finally{this._pop_all_models_freeze()}},t.prototype.interactive_start=function(t){null==this._interactive_plot&&(this._interactive_plot=t,this._interactive_plot.trigger_event(new a.LODStart)),this._interactive_timestamp=Date.now()},t.prototype.interactive_stop=function(t){null!=this._interactive_plot&&this._interactive_plot.id===t.id&&this._interactive_plot.trigger_event(new a.LODEnd),this._interactive_plot=null,this._interactive_timestamp=null},t.prototype.interactive_duration=function(){return null==this._interactive_timestamp?-1:Date.now()-this._interactive_timestamp},t.prototype.destructively_move=function(t){if(t===this)throw new Error(\"Attempted to overwrite a document with itself\");t.clear();var e=d.copy(this._roots);this.clear();for(var n=0,i=e;n=0&&this._callbacks.splice(e,1)},t.prototype._trigger_on_change=function(t){for(var e=0,n=this._callbacks;e0||d.difference(f,a).length>0)throw new Error(\"Not implemented: computing add/remove of document roots\");var g={},y=[];for(var b in n._all_models)if(b in o){var w=t._events_to_sync_objects(o[b],u[b],n,g);y=y.concat(w)}return{references:t._references_json(p.values(g),!1),events:y}},t.prototype.to_json_string=function(t){return void 0===t&&(t=!0),JSON.stringify(this.to_json(t))},t.prototype.to_json=function(e){void 0===e&&(e=!0);var n=this._roots.map(function(t){return t.id}),i=p.values(this._all_models);return{version:o.version,title:this._title,roots:{root_ids:n,references:t._references_json(i,e)}}},t.from_json_string=function(e){var n=JSON.parse(e);return t.from_json(n)},t.from_json=function(e){s.logger.debug(\"Creating Document from JSON\");var n=e.version,i=-1!==n.indexOf(\"+\")||-1!==n.indexOf(\"-\"),r=\"Library versions: JS (\"+o.version+\") / Python (\"+n+\")\";i||o.version===n?s.logger.debug(r):(s.logger.warn(\"JS/Python version mismatch\"),s.logger.warn(r));var a=e.roots,l=a.root_ids,c=a.references,h=t._instantiate_references_json(c,{});t._initialize_references_json(c,{},h);for(var u=new t,_=0,d=l;_\");if(\"SCRIPT\"==e.tagName){var r=i.div({class:n.BOKEH_ROOT});i.replaceWith(e,r),e=r}return e}n.BOKEH_ROOT=r.bk_root,n._resolve_element=function(t){var e=t.elementid;return null!=e?o(e):document.body},n._resolve_root_elements=function(t){var e={};if(null!=t.roots)for(var n in t.roots)e[n]=o(t.roots[n]);return e}},function(t,e,n){var i=t(54),r=t(17),o=t(28),s=t(40),a=t(46),l=t(59),c=t(58),h=t(55),u=t(59);n.add_document_standalone=u.add_document_standalone,n.index=u.index;var _=t(58);n.add_document_from_session=_.add_document_from_session;var d=t(57);n.embed_items_notebook=d.embed_items_notebook,n.kernels=d.kernels;var p=t(55);function f(t,e,n,o){a.isString(t)&&(t=JSON.parse(s.unescape(t)));var u={};for(var _ in t){var d=t[_];u[_]=i.Document.from_json(d)}for(var p=0,f=e;p0?t.consume(e.buffers[0].buffer):t.consume(e.content.data);var n=t.message;null!=n&&this.apply_json_patch(n.content,n.buffers)}function h(t,e){if(\"undefined\"!=typeof Jupyter&&null!=Jupyter.notebook.kernel){o.logger.info(\"Registering Jupyter comms for target \"+t);var i=Jupyter.notebook.kernel.comm_manager;try{i.register_target(t,function(n){o.logger.info(\"Registering Jupyter comms for target \"+t);var i=new r.Receiver;n.on_msg(c.bind(e,i))})}catch(t){o.logger.warn(\"Jupyter comms failed to register. push_notebook() will not function. (exception reported: \"+t+\")\")}}else if(e.roots()[0].id in n.kernels){o.logger.info(\"Registering JupyterLab comms for target \"+t);var s=n.kernels[e.roots()[0].id];try{s.registerCommTarget(t,function(n){o.logger.info(\"Registering JupyterLab comms for target \"+t);var i=new r.Receiver;n.onMsg=c.bind(e,i)})}catch(t){o.logger.warn(\"Jupyter comms failed to register. push_notebook() will not function. (exception reported: \"+t+\")\")}}else console.warn(\"Jupyter notebooks comms not available. push_notebook() will not function. If running JupyterLab ensure the latest jupyterlab_bokeh extension is installed. In an exported notebook this warning is expected.\")}t(307),t(310),n.kernels={},n.embed_items_notebook=function(t,e){if(1!=s.size(t))throw new Error(\"embed_items_notebook expects exactly one document in docs_json\");for(var n=i.Document.from_json(s.values(t)[0]),r=0,o=e;r=0;e--)t.lineTo(this._upper_sx[e],this._upper_sy[e]);t.closePath(),this.visuals.fill.doit&&(this.visuals.fill.set_value(t),t.fill()),t.beginPath(),t.moveTo(this._lower_sx[0],this._lower_sy[0]);for(var e=0,n=this._lower_sx.length;ethis.sleft&&tthis.stop&&el||(_[r].push(h[f]),_[o].push(0));for(var f=0,m=u.length;fl||(d[r].push(u[f]),d[o].push(0));var v={major:this._format_major_labels(_[r],h)},g={major:[[],[]],minor:[[],[]]};return g.major[r]=n.v_compute(_[r]),g.minor[r]=n.v_compute(d[r]),g.major[o]=_[o],g.minor[o]=d[o],\"vertical\"==this.model.orientation&&(g.major[r]=p.map(g.major[r],function(e){return t-e}),g.minor[r]=p.map(g.minor[r],function(e){return t-e})),{coords:g,labels:v}},e.__name__=\"ColorBarView\",e}(r.AnnotationView);n.ColorBarView=v;var g=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=v,this.mixins([\"text:major_label_\",\"text:title_\",\"line:major_tick_\",\"line:minor_tick_\",\"line:border_\",\"line:bar_\",\"fill:background_\"]),this.define({location:[u.Any,\"top_right\"],orientation:[u.Orientation,\"vertical\"],title:[u.String],title_standoff:[u.Number,2],width:[u.Any,\"auto\"],height:[u.Any,\"auto\"],scale_alpha:[u.Number,1],ticker:[u.Instance,function(){return new o.BasicTicker}],formatter:[u.Instance,function(){return new s.BasicTickFormatter}],major_label_overrides:[u.Any,{}],color_mapper:[u.Instance],label_standoff:[u.Number,5],margin:[u.Number,30],padding:[u.Number,10],major_tick_in:[u.Number,5],major_tick_out:[u.Number,0],minor_tick_in:[u.Number,0],minor_tick_out:[u.Number,0]}),this.override({background_fill_color:\"#ffffff\",background_fill_alpha:.95,bar_line_color:null,border_line_color:null,major_label_text_align:\"center\",major_label_text_baseline:\"middle\",major_label_text_font_size:\"8pt\",major_tick_line_color:\"#ffffff\",minor_tick_line_color:null,title_text_font_size:\"10pt\",title_text_font_style:\"italic\"})},e.__name__=\"ColorBar\",e}(r.Annotation);n.ColorBar=g,g.initClass()},function(t,e,n){var i=t(63);n.Annotation=i.Annotation;var r=t(64);n.Arrow=r.Arrow;var o=t(65);n.ArrowHead=o.ArrowHead;var s=t(65);n.OpenHead=s.OpenHead;var a=t(65);n.NormalHead=a.NormalHead;var l=t(65);n.TeeHead=l.TeeHead;var c=t(65);n.VeeHead=c.VeeHead;var h=t(66);n.Band=h.Band;var u=t(67);n.BoxAnnotation=u.BoxAnnotation;var _=t(68);n.ColorBar=_.ColorBar;var d=t(70);n.Label=d.Label;var p=t(71);n.LabelSet=p.LabelSet;var f=t(72);n.Legend=f.Legend;var m=t(73);n.LegendItem=m.LegendItem;var v=t(74);n.PolyAnnotation=v.PolyAnnotation;var g=t(75);n.Slope=g.Slope;var y=t(76);n.Span=y.Span;var b=t(77);n.TextAnnotation=b.TextAnnotation;var w=t(78);n.Title=w.Title;var x=t(79);n.ToolbarPanel=x.ToolbarPanel;var A=t(80);n.Tooltip=A.Tooltip;var k=t(81);n.Whisker=k.Whisker},function(t,e,n){var i=t(426),r=t(77),o=t(5),s=t(18),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.visuals.warm_cache()},e.prototype._get_size=function(){var t=this.plot_view.canvas_view.ctx;this.visuals.text.set_value(t);var e=t.measureText(this.model.text),n=e.width,i=e.ascent;return{width:n,height:i}},e.prototype.render=function(){if(this.model.visible||\"css\"!=this.model.render_mode||o.undisplay(this.el),this.model.visible){var t;switch(this.model.angle_units){case\"rad\":t=-this.model.angle;break;case\"deg\":t=-this.model.angle*Math.PI/180;break;default:throw new Error(\"unreachable code\")}var e=null!=this.panel?this.panel:this.plot_view.frame,n=this.plot_view.frame.xscales[this.model.x_range_name],i=this.plot_view.frame.yscales[this.model.y_range_name],r=\"data\"==this.model.x_units?n.compute(this.model.x):e.xview.compute(this.model.x),s=\"data\"==this.model.y_units?i.compute(this.model.y):e.yview.compute(this.model.y);r+=this.model.x_offset,s-=this.model.y_offset;var a=\"canvas\"==this.model.render_mode?this._canvas_text.bind(this):this._css_text.bind(this);a(this.plot_view.canvas_view.ctx,this.model.text,r,s,t)}},e.__name__=\"LabelView\",e}(r.TextAnnotationView);n.LabelView=a;var l=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=a,this.mixins([\"text\",\"line:border_\",\"fill:background_\"]),this.define({x:[s.Number],x_units:[s.SpatialUnits,\"data\"],y:[s.Number],y_units:[s.SpatialUnits,\"data\"],text:[s.String],angle:[s.Angle,0],angle_units:[s.AngleUnits,\"rad\"],x_offset:[s.Number,0],y_offset:[s.Number,0],x_range_name:[s.String,\"default\"],y_range_name:[s.String,\"default\"]}),this.override({background_fill_color:null,border_line_color:null})},e.__name__=\"Label\",e}(r.TextAnnotation);n.Label=l,l.initClass()},function(t,e,n){var i=t(426),r=t(77),o=t(212),s=t(5),a=t(18),l=t(303),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(){if(t.prototype.initialize.call(this),this.set_data(this.model.source),\"css\"==this.model.render_mode)for(var e=0,n=this._text.length;e0?(this.el.style.top=p+\"px\",this.el.style.left=d+\"px\"):o.undisplay(this.el)}},e.__name__=\"TooltipView\",e}(r.AnnotationView);n.TooltipView=h;var u=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=h,this.define({attachment:[s.TooltipAttachment,\"horizontal\"],inner_only:[s.Boolean,!0],show_arrow:[s.Boolean,!0]}),this.override({level:\"overlay\"}),this.internal({data:[s.Any,[]],custom:[s.Any]})},e.prototype.clear=function(){this.data=[]},e.prototype.add=function(t,e,n){this.data=this.data.concat([[t,e,n]])},e.__name__=\"Tooltip\",e}(r.Annotation);n.Tooltip=u,u.initClass()},function(t,e,n){var i=t(426),r=t(63),o=t(212),s=t(65),a=t(18),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.set_data(this.model.source)},e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.source.streaming,function(){return e.set_data(e.model.source)}),this.connect(this.model.source.patching,function(){return e.set_data(e.model.source)}),this.connect(this.model.source.change,function(){return e.set_data(e.model.source)})},e.prototype.set_data=function(e){t.prototype.set_data.call(this,e),this.visuals.warm_cache(e),this.plot_view.request_render()},e.prototype._map_data=function(){var t,e,n,i=this.plot_view.frame,r=this.model.dimension,o=i.xscales[this.model.x_range_name],s=i.yscales[this.model.y_range_name],a=\"height\"==r?s:o,l=\"height\"==r?o:s,c=\"height\"==r?i.yview:i.xview,h=\"height\"==r?i.xview:i.yview;t=\"data\"==this.model.properties.lower.units?a.v_compute(this._lower):c.v_compute(this._lower),e=\"data\"==this.model.properties.upper.units?a.v_compute(this._upper):c.v_compute(this._upper),n=\"data\"==this.model.properties.base.units?l.v_compute(this._base):h.v_compute(this._base);var u=\"height\"==r?[1,0]:[0,1],_=u[0],d=u[1],p=[t,n],f=[e,n];this._lower_sx=p[_],this._lower_sy=p[d],this._upper_sx=f[_],this._upper_sy=f[d]},e.prototype.render=function(){if(this.model.visible){this._map_data();var t=this.plot_view.canvas_view.ctx;if(this.visuals.line.doit)for(var e=0,n=this._lower_sx.length;eu&&(u=f)}return u>0&&(u+=i),u},Object.defineProperty(e.prototype,\"normals\",{get:function(){return this.panel.normals},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"dimension\",{get:function(){return this.panel.dimension},enumerable:!0,configurable:!0}),e.prototype.compute_labels=function(t){for(var e=this.model.formatter.doFormat(t,this),n=0;nc(l-_)?(i=u(h(o,s),l),r=h(u(o,s),_)):(i=h(o,s),r=u(o,s)),[i,r]}throw new Error(\"user bounds '\"+e+\"' not understood\")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"rule_coords\",{get:function(){var t=this.dimension,e=(t+1)%2,n=this.ranges[0],i=this.computed_bounds,r=i[0],o=i[1],s=new Array(2),a=new Array(2),l=[s,a];return l[t][0]=Math.max(r,n.min),l[t][1]=Math.min(o,n.max),l[t][0]>l[t][1]&&(l[t][0]=l[t][1]=NaN),l[e][0]=this.loc,l[e][1]=this.loc,l},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"tick_coords\",{get:function(){for(var t=this.dimension,e=(t+1)%2,n=this.ranges[0],i=this.computed_bounds,r=i[0],o=i[1],s=this.model.ticker.get_ticks(r,o,n,this.loc,{}),a=s.major,l=s.minor,c=[[],[]],h=[[],[]],u=[n.min,n.max],_=u[0],d=u[1],p=0;pd||(c[t].push(a[p]),c[e].push(this.loc));for(var p=0;pd||(h[t].push(l[p]),h[e].push(this.loc));return{major:c,minor:h}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"loc\",{get:function(){var t=this.model.fixed_location;if(null!=t){if(a.isNumber(t))return t;var e=this.ranges,n=e[1];if(n instanceof l.FactorRange)return n.synthetic(t);throw new Error(\"unexpected\")}var i=this.ranges,r=i[1];switch(this.panel.side){case\"left\":case\"below\":return r.start;case\"right\":case\"above\":return r.end}},enumerable:!0,configurable:!0}),e.prototype.serializable_state=function(){return i.__assign({},t.prototype.serializable_state.call(this),{bbox:this.layout.bbox.box})},e.__name__=\"AxisView\",e}(r.GuideRendererView);n.AxisView=_;var d=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=_,this.mixins([\"line:axis_\",\"line:major_tick_\",\"line:minor_tick_\",\"text:major_label_\",\"text:axis_label_\"]),this.define({bounds:[o.Any,\"auto\"],ticker:[o.Instance],formatter:[o.Instance],x_range_name:[o.String,\"default\"],y_range_name:[o.String,\"default\"],axis_label:[o.String,\"\"],axis_label_standoff:[o.Int,5],major_label_standoff:[o.Int,5],major_label_orientation:[o.Any,\"horizontal\"],major_label_overrides:[o.Any,{}],major_tick_in:[o.Number,2],major_tick_out:[o.Number,6],minor_tick_in:[o.Number,0],minor_tick_out:[o.Number,4],fixed_location:[o.Any,null]}),this.override({axis_line_color:\"black\",major_tick_line_color:\"black\",minor_tick_line_color:\"black\",major_label_text_font_size:\"8pt\",major_label_text_align:\"center\",major_label_text_baseline:\"alphabetic\",axis_label_text_font_size:\"10pt\",axis_label_text_font_style:\"italic\"})},e.__name__=\"Axis\",e}(r.GuideRenderer);n.Axis=d,d.initClass()},function(t,e,n){var i=t(426),r=t(82),o=t(226),s=t(108),a=t(18),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._render=function(t,e,n){this._draw_group_separators(t,e,n)},e.prototype._draw_group_separators=function(t,e,n){var i,r=this.ranges[0],o=this.computed_bounds,s=o[0],a=o[1];if(r.tops&&!(r.tops.length<2)&&this.visuals.separator_line.doit){for(var l=this.dimension,c=(l+1)%2,h=[[],[]],u=0,_=0;_s&&m1&&(l.tops[e]=a.tops),l.tops[n]=a.tops.map(function(e){return t.loc}),l},enumerable:!0,configurable:!0}),e.__name__=\"CategoricalAxisView\",e}(r.AxisView);n.CategoricalAxisView=l;var c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=l,this.mixins([\"line:separator_\",\"text:group_\",\"text:subgroup_\"]),this.define({group_label_orientation:[a.Any,\"parallel\"],subgroup_label_orientation:[a.Any,\"parallel\"]}),this.override({ticker:function(){return new o.CategoricalTicker},formatter:function(){return new s.CategoricalTickFormatter},separator_line_color:\"lightgrey\",separator_line_width:2,group_text_font_style:\"bold\",group_text_font_size:\"8pt\",group_text_color:\"grey\",subgroup_text_font_style:\"bold\",subgroup_text_font_size:\"8pt\"})},e.__name__=\"CategoricalAxis\",e}(r.Axis);n.CategoricalAxis=c,c.initClass()},function(t,e,n){var i=t(426),r=t(82),o=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.__name__=\"ContinuousAxis\",e}(r.Axis);n.ContinuousAxis=o},function(t,e,n){var i=t(426),r=t(87),o=t(109),s=t(229),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.__name__=\"DatetimeAxisView\",e}(r.LinearAxisView);n.DatetimeAxisView=a;var l=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=a,this.override({ticker:function(){return new s.DatetimeTicker},formatter:function(){return new o.DatetimeTickFormatter}})},e.__name__=\"DatetimeAxis\",e}(r.LinearAxis);n.DatetimeAxis=l,l.initClass()},function(t,e,n){var i=t(82);n.Axis=i.Axis;var r=t(83);n.CategoricalAxis=r.CategoricalAxis;var o=t(84);n.ContinuousAxis=o.ContinuousAxis;var s=t(85);n.DatetimeAxis=s.DatetimeAxis;var a=t(87);n.LinearAxis=a.LinearAxis;var l=t(88);n.LogAxis=l.LogAxis;var c=t(89);n.MercatorAxis=c.MercatorAxis},function(t,e,n){var i=t(426),r=t(82),o=t(84),s=t(107),a=t(225),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.__name__=\"LinearAxisView\",e}(r.AxisView);n.LinearAxisView=l;var c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=l,this.override({ticker:function(){return new a.BasicTicker},formatter:function(){return new s.BasicTickFormatter}})},e.__name__=\"LinearAxis\",e}(o.ContinuousAxis);n.LinearAxis=c,c.initClass()},function(t,e,n){var i=t(426),r=t(82),o=t(84),s=t(112),a=t(233),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.__name__=\"LogAxisView\",e}(r.AxisView);n.LogAxisView=l;var c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=l,this.override({ticker:function(){return new a.LogTicker},formatter:function(){return new s.LogTickFormatter}})},e.__name__=\"LogAxis\",e}(o.ContinuousAxis);n.LogAxis=c,c.initClass()},function(t,e,n){var i=t(426),r=t(82),o=t(87),s=t(113),a=t(234),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.__name__=\"MercatorAxisView\",e}(r.AxisView);n.MercatorAxisView=l;var c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=l,this.override({ticker:function(){return new a.MercatorTicker({dimension:\"lat\"})},formatter:function(){return new s.MercatorTickFormatter({dimension:\"lat\"})}})},e.__name__=\"MercatorAxis\",e}(o.LinearAxis);n.MercatorAxis=c,c.initClass()},function(t,e,n){var i=t(426),r=t(62),o=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.__name__=\"Callback\",e}(r.Model);n.Callback=o},function(t,e,n){var i=t(426),r=t(90),o=t(18),s=t(35),a=t(40),l=function(e){function n(t){return e.call(this,t)||this}return i.__extends(n,e),n.initClass=function(){this.define({args:[o.Any,{}],code:[o.String,\"\"],use_strict:[o.Boolean,!1]})},Object.defineProperty(n.prototype,\"names\",{get:function(){return s.keys(this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,\"values\",{get:function(){return s.values(this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,\"func\",{get:function(){var t=this.use_strict?a.use_strict(this.code):this.code;return new(Function.bind.apply(Function,[void 0].concat(this.names,[\"cb_obj\",\"cb_data\",\"require\",\"exports\",t])))},enumerable:!0,configurable:!0}),n.prototype.execute=function(e,n){return void 0===n&&(n={}),this.func.apply(e,this.values.concat(e,n,t,{}))},n.__name__=\"CustomJS\",n}(r.Callback);n.CustomJS=l,l.initClass()},function(t,e,n){var i=t(91);n.CustomJS=i.CustomJS;var r=t(93);n.OpenURL=r.OpenURL},function(t,e,n){var i=t(426),r=t(90),o=t(42),s=t(18),a=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({url:[s.String,\"http://\"],same_tab:[s.Boolean,!1]})},e.prototype.execute=function(t,e){for(var n=this,i=e.source,r=function(t){var e=o.replace_placeholders(n.url,i,t);n.same_tab?window.location.href=e:window.open(e)},s=i.selected,a=0,l=s.indices;a0?a.every(e,l.isBoolean)?(e.length!==t.get_length()&&s.logger.warn(\"BooleanFilter \"+this.id+\": length of booleans doesn't match data source\"),a.range(0,e.length).filter(function(t){return!0===e[t]})):(s.logger.warn(\"BooleanFilter \"+this.id+\": booleans should be array of booleans, defaulting to no filtering\"),null):(null!=e&&0==e.length?s.logger.warn(\"BooleanFilter \"+this.id+\": booleans is empty, defaulting to no filtering\"):s.logger.warn(\"BooleanFilter \"+this.id+\": booleans was not set, defaulting to no filtering\"),null)},e.__name__=\"BooleanFilter\",e}(r.Filter);n.BooleanFilter=c,c.initClass()},function(t,e,n){var i=t(426),r=t(103),o=t(18),s=t(35),a=t(40),l=function(e){function n(t){return e.call(this,t)||this}return i.__extends(n,e),n.initClass=function(){this.define({args:[o.Any,{}],code:[o.String,\"\"],use_strict:[o.Boolean,!1]})},Object.defineProperty(n.prototype,\"names\",{get:function(){return s.keys(this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,\"values\",{get:function(){return s.values(this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,\"func\",{get:function(){var t=this.use_strict?a.use_strict(this.code):this.code;return new(Function.bind.apply(Function,[void 0].concat(this.names,[\"source\",\"require\",\"exports\",t])))},enumerable:!0,configurable:!0}),n.prototype.compute_indices=function(n){return this.filter=this.func.apply(this,this.values.concat([n,t,{}])),e.prototype.compute_indices.call(this,n)},n.__name__=\"CustomJSFilter\",n}(r.Filter);n.CustomJSFilter=l,l.initClass()},function(t,e,n){var i=t(426),r=t(62),o=t(18),s=t(46),a=t(24),l=t(17),c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({filter:[o.Array,null]})},e.prototype.compute_indices=function(t){var e=this.filter;return null!=e&&e.length>=0?s.isArrayOf(e,s.isBoolean)?a.range(0,e.length).filter(function(t){return!0===e[t]}):s.isArrayOf(e,s.isInteger)?e:(l.logger.warn(\"Filter \"+this.id+\": filter should either be array of only booleans or only integers, defaulting to no filtering\"),null):(l.logger.warn(\"Filter \"+this.id+\": filter was not set to be an array, defaulting to no filtering\"),null)},e.__name__=\"Filter\",e}(r.Model);n.Filter=c,c.initClass()},function(t,e,n){var i=t(426),r=t(103),o=t(18),s=t(17),a=t(24),l=function(t){function e(e){var n=t.call(this,e)||this;return n.indices=null,n}return i.__extends(e,t),e.initClass=function(){this.define({column_name:[o.String],group:[o.String]})},e.prototype.compute_indices=function(t){var e=this,n=t.get_column(this.column_name);return null==n?(s.logger.warn(\"group filter: groupby column not found in data source\"),null):(this.indices=a.range(0,t.get_length()||0).filter(function(t){return n[t]===e.group}),0===this.indices.length&&s.logger.warn(\"group filter: group '\"+this.group+\"' did not match any values in column '\"+this.column_name+\"'\"),this.indices)},e.__name__=\"GroupFilter\",e}(r.Filter);n.GroupFilter=l,l.initClass()},function(t,e,n){var i=t(101);n.BooleanFilter=i.BooleanFilter;var r=t(102);n.CustomJSFilter=r.CustomJSFilter;var o=t(103);n.Filter=o.Filter;var s=t(104);n.GroupFilter=s.GroupFilter;var a=t(106);n.IndexFilter=a.IndexFilter},function(t,e,n){var i=t(426),r=t(103),o=t(18),s=t(17),a=t(46),l=t(24),c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({indices:[o.Array,null]})},e.prototype.compute_indices=function(t){return null!=this.indices&&this.indices.length>=0?l.every(this.indices,a.isInteger)?this.indices:(s.logger.warn(\"IndexFilter \"+this.id+\": indices should be array of integers, defaulting to no filtering\"),null):(s.logger.warn(\"IndexFilter \"+this.id+\": indices was not set, defaulting to no filtering\"),null)},e.__name__=\"IndexFilter\",e}(r.Filter);n.IndexFilter=c,c.initClass()},function(t,e,n){var i=t(426),r=t(116),o=t(18),s=t(46),a=function(t){function e(e){var n=t.call(this,e)||this;return n.last_precision=3,n}return i.__extends(e,t),e.initClass=function(){this.define({precision:[o.Any,\"auto\"],use_scientific:[o.Boolean,!0],power_limit_high:[o.Number,5],power_limit_low:[o.Number,-3]})},Object.defineProperty(e.prototype,\"scientific_limit_low\",{get:function(){return Math.pow(10,this.power_limit_low)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"scientific_limit_high\",{get:function(){return Math.pow(10,this.power_limit_high)},enumerable:!0,configurable:!0}),e.prototype.doFormat=function(t,e){if(0==t.length)return[];var n=0;t.length>=2&&(n=Math.abs(t[1]-t[0])/1e4);var i=!1;if(this.use_scientific)for(var r=0,o=t;rn&&(l>=this.scientific_limit_high||l<=this.scientific_limit_low)){i=!0;break}}var c=new Array(t.length),h=this.precision;if(null==h||s.isNumber(h))if(i)for(var u=0,_=t.length;u<_;u++)c[u]=t[u].toExponential(h||void 0);else for(var u=0,_=t.length;u<_;u++)c[u]=t[u].toFixed(h||void 0).replace(/(\\.[0-9]*?)0+$/,\"$1\").replace(/\\.$/,\"\");else for(var d=this.last_precision,p=this.last_precision<=15;p?d<=15:d>=15;p?d++:d--){var f=!0;if(i){for(var u=0,_=t.length;u<_;u++)if(c[u]=t[u].toExponential(d),u>0&&c[u]===c[u-1]){f=!1;break}if(f)break}else{for(var u=0,_=t.length;u<_;u++)if(c[u]=t[u].toFixed(d).replace(/(\\.[0-9]*?)0+$/,\"$1\").replace(/\\.$/,\"\"),u>0&&c[u]==c[u-1]){f=!1;break}if(f)break}if(f){this.last_precision=d;break}}return c},e.__name__=\"BasicTickFormatter\",e}(r.TickFormatter);n.BasicTickFormatter=a,a.initClass()},function(t,e,n){var i=t(426),r=t(116),o=t(24),s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype.doFormat=function(t,e){return o.copy(t)},e.__name__=\"CategoricalTickFormatter\",e}(r.TickFormatter);n.CategoricalTickFormatter=s},function(t,e,n){var i=t(426),r=t(425),o=t(116),s=t(17),a=t(18),l=t(42),c=t(24),h=t(46);function u(t){return r(t,\"%Y %m %d %H %M %S\").split(/\\s+/).map(function(t){return parseInt(t,10)})}function _(t,e){if(h.isFunction(e))return e(t);var n=l.sprintf(\"$1%06d\",function(t){return Math.round(t/1e3%1*1e6)}(t));return-1==(e=e.replace(/((^|[^%])(%%)*)%f/,n)).indexOf(\"%\")?e:r(t,e)}var d=[\"microseconds\",\"milliseconds\",\"seconds\",\"minsec\",\"minutes\",\"hourmin\",\"hours\",\"days\",\"months\",\"years\"],p=function(t){function e(e){var n=t.call(this,e)||this;return n.strip_leading_zeros=!0,n}return i.__extends(e,t),e.initClass=function(){this.define({microseconds:[a.Array,[\"%fus\"]],milliseconds:[a.Array,[\"%3Nms\",\"%S.%3Ns\"]],seconds:[a.Array,[\"%Ss\"]],minsec:[a.Array,[\":%M:%S\"]],minutes:[a.Array,[\":%M\",\"%Mm\"]],hourmin:[a.Array,[\"%H:%M\"]],hours:[a.Array,[\"%Hh\",\"%H:%M\"]],days:[a.Array,[\"%m/%d\",\"%a%d\"]],months:[a.Array,[\"%m/%Y\",\"%b %Y\"]],years:[a.Array,[\"%Y\"]]})},e.prototype.initialize=function(){t.prototype.initialize.call(this),this._update_width_formats()},e.prototype._update_width_formats=function(){var t=+r(new Date),e=function(e){var n=e.map(function(e){return _(t,e).length}),i=c.sort_by(c.zip(n,e),function(t){var e=t[0];return e});return c.unzip(i)};this._width_formats={microseconds:e(this.microseconds),milliseconds:e(this.milliseconds),seconds:e(this.seconds),minsec:e(this.minsec),minutes:e(this.minutes),hourmin:e(this.hourmin),hours:e(this.hours),days:e(this.days),months:e(this.months),years:e(this.years)}},e.prototype._get_resolution_str=function(t,e){var n=1.1*t;switch(!1){case!(n<.001):return\"microseconds\";case!(n<1):return\"milliseconds\";case!(n<60):return e>=60?\"minsec\":\"seconds\";case!(n<3600):return e>=3600?\"hourmin\":\"minutes\";case!(n<86400):return\"hours\";case!(n<2678400):return\"days\";case!(n<31536e3):return\"months\";default:return\"years\"}},e.prototype.doFormat=function(t,e){if(0==t.length)return[];for(var n=Math.abs(t[t.length-1]-t[0])/1e3,i=n/(t.length-1),r=this._get_resolution_str(i,n),o=this._width_formats[r],a=o[1][0],l=[],c=d.indexOf(r),h={},p=0,f=d;p0&&r[o]==r[o-1]){i=!0;break}return i?this.basic_formatter.doFormat(t,e):r},e.__name__=\"LogTickFormatter\",e}(r.TickFormatter);n.LogTickFormatter=l,l.initClass()},function(t,e,n){var i=t(426),r=t(107),o=t(18),s=t(36),a=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({dimension:[o.LatLon]})},e.prototype.doFormat=function(e,n){if(null==this.dimension)throw new Error(\"MercatorTickFormatter.dimension not configured\");if(0==e.length)return[];var i=e.length,r=new Array(i);if(\"lon\"==this.dimension)for(var o=0;o=x&&v.push([b,C])}for(var T=this.model.properties.direction.value(),S=[],M=0,E=v;M=w&&m.push([y,k])}return o.create_hit_test_result_from_hits(m)},e.prototype.draw_legend_for_index=function(t,e,n){var i=e.x0,r=e.y0,o=e.x1,s=e.y1,a=n+1,l=new Array(a);l[n]=(i+o)/2;var c=new Array(a);c[n]=(r+s)/2;var h=.5*Math.min(Math.abs(o-i),Math.abs(s-r)),u=new Array(a);u[n]=.4*h;var _=new Array(a);_[n]=.8*h,this._render(t,[n],{sx:l,sy:c,sinner_radius:u,souter_radius:_})},e.__name__=\"AnnulusView\",e}(r.XYGlyphView);n.AnnulusView=l;var c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=l,this.mixins([\"line\",\"fill\"]),this.define({inner_radius:[s.DistanceSpec],outer_radius:[s.DistanceSpec]})},e.__name__=\"Annulus\",e}(r.XYGlyph);n.Annulus=c,c.initClass()},function(t,e,n){var i=t(426),r=t(153),o=t(149),s=t(18),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._map_data=function(){\"data\"==this.model.properties.radius.units?this.sradius=this.sdist(this.renderer.xscale,this._x,this._radius):this.sradius=this._radius},e.prototype._render=function(t,e,n){var i=n.sx,r=n.sy,o=n.sradius,s=n._start_angle,a=n._end_angle;if(this.visuals.line.doit)for(var l=this.model.properties.direction.value(),c=0,h=e;c1?(_[n]=u,d[n]=u/h):(_[n]=u*h,d[n]=u),this._render(t,[n],{sx:l,sy:c,sw:_,sh:d,_angle:[0]})},e.prototype._bounds=function(t){var e=t.x0,n=t.x1,i=t.y0,r=t.y1;return{x0:e-this.max_w2,x1:n+this.max_w2,y0:i-this.max_h2,y1:r+this.max_h2}},e.__name__=\"EllipseOvalView\",e}(r.CenterRotatableView);n.EllipseOvalView=s;var a=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.__name__=\"EllipseOval\",e}(r.CenterRotatable);n.EllipseOval=a},function(t,e,n){var i=t(426),r=t(9),o=t(18),s=t(27),a=t(36),l=t(51),c=t(50),h=t(62),u=t(17),_=t(25),d=t(35),p=t(46),f=t(136),m=t(192),v=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._nohit_warned={},t}return i.__extends(n,e),Object.defineProperty(n.prototype,\"renderer\",{get:function(){return this.parent},enumerable:!0,configurable:!0}),n.prototype.initialize=function(){e.prototype.initialize.call(this),this._nohit_warned={},this.visuals=new l.Visuals(this.model);var n=this.renderer.plot_view.gl;if(null!=n){var i=null;try{i=t(508)}catch(t){if(\"MODULE_NOT_FOUND\"!==t.code)throw t;u.logger.warn(\"WebGL was requested and is supported, but bokeh-gl(.min).js is not available, falling back to 2D rendering.\")}if(null!=i){var r=i[this.model.type+\"GLGlyph\"];null!=r&&(this.glglyph=new r(n.ctx,this))}}},n.prototype.set_visuals=function(t){this.visuals.warm_cache(t),null!=this.glglyph&&this.glglyph.set_visuals_changed()},n.prototype.render=function(t,e,n){t.beginPath(),null!=this.glglyph&&this.glglyph.render(t,e,n)||this._render(t,e,n)},n.prototype.has_finished=function(){return!0},n.prototype.notify_finished=function(){this.renderer.notify_finished()},n.prototype._bounds=function(t){return t},n.prototype.bounds=function(){return this._bounds(this.index.bbox)},n.prototype.log_bounds=function(){for(var t=s.empty(),e=this.index.search(s.positive_x()),n=0,i=e;nt.x1&&(t.x1=r.x1)}for(var o=this.index.search(s.positive_y()),a=0,l=o;at.y1&&(t.y1=c.y1)}return this._bounds(t)},n.prototype.get_anchor_point=function(t,e,n){var i=n[0],r=n[1];switch(t){case\"center\":return{x:this.scenterx(e,i,r),y:this.scentery(e,i,r)};default:return null}},n.prototype.sdist=function(t,e,n,i,r){var o,s;void 0===i&&(i=\"edge\"),void 0===r&&(r=!1);var a=e.length;if(\"center\"==i){var l=_.map(n,function(t){return t/2});o=new Float64Array(a);for(var c=0;c=0;o--)t.lineTo(n[o],i[o]);t.closePath(),r.call(t)},e.prototype._render=function(t,e,n){var i=this,r=n.sx1,o=n.sx2,s=n.sy;this.visuals.fill.doit&&(this.visuals.fill.set_value(t),this._inner(t,r,o,s,t.fill)),this.visuals.hatch.doit2(t,0,function(){return i._inner(t,r,o,s,t.fill)},function(){return i.renderer.request_render()})},e.prototype._hit_point=function(t){for(var e=this,n=s.create_empty_hit_test_result(),i=this.sy.length,r=new Float64Array(2*i),o=new Float64Array(2*i),a=0,l=i;a0){i=this._image[e];var r=this._image_shape[e];this._height[e]=r[0],this._width[e]=r[1]}else{var o=this._image[e];i=a.concat(o),this._height[e]=o.length,this._width[e]=o[0].length}var s=t.v_compute(i);this._set_image_data_from_buffer(e,s)}},e.prototype._render=function(t,e,n){var i=n.image_data,r=n.sx,o=n.sy,s=n.sw,a=n.sh,l=t.getImageSmoothingEnabled();t.setImageSmoothingEnabled(!1),t.globalAlpha=this.model.global_alpha;for(var c=0,h=e;c0){i=this._image[e].buffer;var r=this._image_shape[e];this._height[e]=r[0],this._width[e]=r[1]}else{var s=this._image[e],a=o.concat(s);i=new ArrayBuffer(4*a.length);for(var l=new Uint32Array(i),c=0,h=a.length;c0?(o.logger.trace(\"ImageURL failed to load \"+a+\" image, retrying in \"+i+\" ms\"),setTimeout(function(){return l.src=a},i)):o.logger.warn(\"ImageURL unable to load \"+a+\" image after \"+n+\" retries\"),t.retries[e]-=1},l.onload=function(){t.image[e]=l,t.renderer.request_render()},l.src=a},s=this,l=0,c=this._url.length;l1&&(t.stroke(),o=!1)}o?t.lineTo(i[c],r[c]):(t.beginPath(),t.moveTo(i[c],r[c]),o=!0),s=c}o&&t.stroke()},e.prototype._hit_point=function(t){for(var e=this,n=s.create_empty_hit_test_result(),i={x:t.sx,y:t.sy},r=9999,o=Math.max(2,this.visuals.line.line_width.value()/2),a=0,l=this.sx.length-1;a0&&(l[c]=u)}return a.indices=s.keys(l).map(function(t){return parseInt(t,10)}),a.multiline_indices=l,a},e.prototype.get_interpolation_hit=function(t,e,n){var i=[this._xs[t][e],this._ys[t][e],this._xs[t][e+1],this._ys[t][e+1]],r=i[0],o=i[1],s=i[2],a=i[3];return h.line_interpolation(this.renderer,n,r,o,s,a)},e.prototype.draw_legend_for_index=function(t,e,n){h.generic_line_legend(this.visuals,t,e,n)},e.prototype.scenterx=function(){throw new Error(\"not implemented\")},e.prototype.scentery=function(){throw new Error(\"not implemented\")},e.__name__=\"MultiLineView\",e}(c.GlyphView);n.MultiLineView=u;var _=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=u,this.coords([[\"xs\",\"ys\"]]),this.mixins([\"line\"])},e.__name__=\"MultiLine\",e}(c.Glyph);n.MultiLine=_,_.initClass()},function(t,e,n){var i=t(426),r=t(39),o=t(127),s=t(149),a=t(24),l=t(25),c=t(9),h=t(46),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._index_data=function(){for(var t=[],e=0,n=this._xs.length;e1)for(var s=1,l=this._xs[e][i].length;s1){for(var v=!1,g=1;g0;){var o=a.find_last_index(r,function(t){return c.isStrictNaN(t)}),s=void 0;o>=0?s=r.splice(o):(s=r,r=[]);var l=s.filter(function(t){return!c.isStrictNaN(t)});e[n].push(l)}}return e},e.prototype._index_data=function(){for(var t=this._build_discontinuous_object(this._xs),e=this._build_discontinuous_object(this._ys),n=[],i=0,o=this._xs.length;i=0,b=n-this.sy1[a]<=this.sh[a]&&n-this.sy1[a]>=0;b&&w&&v.push(a)}var T=s.create_empty_hit_test_result();return T.indices=v,T},e.prototype._map_dist_corner_for_data_side_length=function(t,e,n){for(var i=t.length,r=new Float64Array(i),o=new Float64Array(i),s=0;s1&&(t.stroke(),u=!1)}u?(t.lineTo(v,y),t.lineTo(g,b)):(t.beginPath(),t.moveTo(c[m],h[m]),u=!0),_=m}t.lineTo(c[d-1],h[d-1]),t.stroke()}},e.prototype.draw_legend_for_index=function(t,e,n){o.generic_line_legend(this.visuals,t,e,n)},e.__name__=\"StepView\",e}(r.XYGlyphView);n.StepView=a;var l=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=a,this.mixins([\"line\"]),this.define({mode:[s.StepMode,\"before\"]})},e.__name__=\"Step\",e}(r.XYGlyph);n.Step=l,l.initClass()},function(t,e,n){var i=t(426),r=t(153),o=t(9),s=t(18),a=t(43),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._rotate_point=function(t,e,n,i,r){var o=(t-n)*Math.cos(r)-(e-i)*Math.sin(r)+n,s=(t-n)*Math.sin(r)+(e-i)*Math.cos(r)+i;return[o,s]},e.prototype._text_bounds=function(t,e,n,i){var r=[t,t+n,t+n,t,t],o=[e,e,e-i,e-i,e];return[r,o]},e.prototype._render=function(t,e,n){var i=n.sx,r=n.sy,o=n._x_offset,s=n._y_offset,l=n._angle,c=n._text;this._sys=[],this._sxs=[];for(var h=0,u=e;h=0;o--)t.lineTo(e[o],i[o]);t.closePath(),r.call(t)},e.prototype._render=function(t,e,n){var i=this,r=n.sx,o=n.sy1,s=n.sy2;this.visuals.fill.doit&&(this.visuals.fill.set_value(t),this._inner(t,r,o,s,t.fill)),this.visuals.hatch.doit2(t,0,function(){return i._inner(t,r,o,s,t.fill)},function(){return i.renderer.request_render()})},e.prototype.scenterx=function(t){return this.sx[t]},e.prototype.scentery=function(t){return(this.sy1[t]+this.sy2[t])/2},e.prototype._hit_point=function(t){for(var e=this,n=s.create_empty_hit_test_result(),i=this.sx.length,r=new Float64Array(2*i),o=new Float64Array(2*i),a=0,l=i;ao[1]&&(n=o[1]);else{e=o[0],n=o[1];for(var a=0,l=this.plot_view.axis_views;a0||b>0)return{width:y>0?y:void 0,height:b>0?b:void 0}}return{}})},e.prototype.serializable_state=function(){return i.__assign({},t.prototype.serializable_state.call(this),{bbox:this.layout.bbox.box,children:this.child_views.map(function(t){return t.serializable_state()})})},e.__name__=\"LayoutDOMView\",e}(h.DOMView);n.LayoutDOMView=_;var d=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({width:[l.Number,null],height:[l.Number,null],min_width:[l.Number,null],min_height:[l.Number,null],max_width:[l.Number,null],max_height:[l.Number,null],margin:[l.Any,[0,0,0,0]],width_policy:[l.Any,\"auto\"],height_policy:[l.Any,\"auto\"],aspect_ratio:[l.Any,null],sizing_mode:[l.SizingMode,null],visible:[l.Boolean,!0],disabled:[l.Boolean,!1],align:[l.Any,\"start\"],background:[l.Color,null],css_classes:[l.Array,[]]})},e.__name__=\"LayoutDOM\",e}(r.Model);n.LayoutDOM=d,d.initClass()},function(t,e,n){var i=t(426),r=t(161),o=t(11),s=t(18),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._update_layout=function(){var t=this.child_views.map(function(t){return t.layout});this.layout=new o.Row(t),this.layout.cols=this.model.cols,this.layout.spacing=[0,this.model.spacing],this.layout.set_sizing(this.box_sizing())},e.__name__=\"RowView\",e}(r.BoxView);n.RowView=a;var l=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=a,this.define({cols:[s.Any,\"auto\"]})},e.__name__=\"Row\",e}(r.Box);n.Row=l,l.initClass()},function(t,e,n){var i=t(426),r=t(166),o=t(13),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),Object.defineProperty(e.prototype,\"child_models\",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype._update_layout=function(){this.layout=new o.LayoutItem,this.layout.set_sizing(this.box_sizing())},e.__name__=\"SpacerView\",e}(r.LayoutDOMView);n.SpacerView=s;var a=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=s},e.__name__=\"Spacer\",e}(r.LayoutDOM);n.Spacer=a,a.initClass()},function(t,e,n){var i=t(426),r=t(13),o=t(5),s=t(24),a=t(18),l=t(166),c=t(62),h=t(309),u=t(312),_=t(304),d=t(308),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.properties.tabs.change,function(){return e.rebuild()}),this.connect(this.model.properties.active.change,function(){return e.on_active_change()})},Object.defineProperty(e.prototype,\"child_models\",{get:function(){return this.model.tabs.map(function(t){return t.child})},enumerable:!0,configurable:!0}),e.prototype._update_layout=function(){var t=this.model.tabs_location,e=\"above\"==t||\"below\"==t,n=this.scroll_el,a=this.headers_el;this.header=new(function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(r,t),r.prototype._measure=function(i){var r=o.size(n),l=o.children(a).slice(0,3).map(function(t){return o.size(t)}),c=t.prototype._measure.call(this,i),h=c.width,u=c.height;if(e){var _=r.width+s.sum(l.map(function(t){return t.width}));return{width:i.width!=1/0?i.width:_,height:u}}var d=r.height+s.sum(l.map(function(t){return t.height}));return{width:h,height:i.height!=1/0?i.height:d}},r}(r.ContentBox))(this.header_el),e?this.header.set_sizing({width_policy:\"fit\",height_policy:\"fixed\"}):this.header.set_sizing({width_policy:\"fixed\",height_policy:\"fit\"});var l=1,c=1;switch(t){case\"above\":l-=1;break;case\"below\":l+=1;break;case\"left\":c-=1;break;case\"right\":c+=1}var h={layout:this.header,row:l,col:c},u=this.child_views.map(function(t){return{layout:t.layout,row:1,col:1}});this.layout=new r.Grid([h].concat(u)),this.layout.set_sizing(this.box_sizing())},e.prototype.update_position=function(){t.prototype.update_position.call(this),this.header_el.style.position=\"absolute\",o.position(this.header_el,this.header.bbox);var e=this.model.tabs_location,n=\"above\"==e||\"below\"==e,i=o.size(this.scroll_el),r=o.scroll_size(this.headers_el);if(n){var s=this.header.bbox.width;r.width>s?(this.wrapper_el.style.maxWidth=s-i.width+\"px\",o.display(this.scroll_el)):(this.wrapper_el.style.maxWidth=\"\",o.undisplay(this.scroll_el))}else{var a=this.header.bbox.height;r.height>a?(this.wrapper_el.style.maxHeight=a-i.height+\"px\",o.display(this.scroll_el)):(this.wrapper_el.style.maxHeight=\"\",o.undisplay(this.scroll_el))}for(var l=this.child_views,c=0,h=l;cn-1&&(e.model.active=n-1)}}),r.appendChild(a)}return r});this.headers_el=o.div({class:[u.bk_headers]},a),this.wrapper_el=o.div({class:u.bk_headers_wrapper},this.headers_el);var l=o.div({class:[_.bk_btn,_.bk_btn_default],disabled:\"\"},o.div({class:[d.bk_caret,h.bk_left]})),c=o.div({class:[_.bk_btn,_.bk_btn_default]},o.div({class:[d.bk_caret,h.bk_right]})),p=0,f=function(t){return function(){var n=e.model.tabs.length;0==(p=\"left\"==t?Math.max(p-1,0):Math.min(p+1,n-1))?l.setAttribute(\"disabled\",\"\"):l.removeAttribute(\"disabled\"),p==n-1?c.setAttribute(\"disabled\",\"\"):c.removeAttribute(\"disabled\");var i=o.children(e.headers_el).slice(0,p).map(function(t){return t.getBoundingClientRect()});if(r){var a=-s.sum(i.map(function(t){return t.width}));e.headers_el.style.left=a+\"px\"}else{var h=-s.sum(i.map(function(t){return t.height}));e.headers_el.style.top=h+\"px\"}}};l.addEventListener(\"click\",f(\"left\")),c.addEventListener(\"click\",f(\"right\")),this.scroll_el=o.div({class:_.bk_btn_group},l,c),this.header_el=o.div({class:[u.bk_tabs_header,h.bk_side(i)]},this.scroll_el,this.wrapper_el),this.el.appendChild(this.header_el)},e.prototype.change_active=function(t){t!=this.model.active&&(this.model.active=t,null!=this.model.callback&&this.model.callback.execute(this.model))},e.prototype.on_active_change=function(){for(var t=this.model.active,e=o.children(this.headers_el),n=0,i=e;n=n.length?c:n[d],s[h]=p},u=0,_=t.length;u<_;u++)h(u,_)}},function(t,e,n){var i=t(426),r=t(172),o=t(180),s=t(18),a=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({factors:[s.Array],markers:[s.Array],start:[s.Number,0],end:[s.Number],default_value:[s.MarkerType,\"circle\"]})},e.prototype.v_compute=function(t){var e=new Array(t.length);return r.cat_v_compute(t,this.factors,this.markers,e,this.start,this.end,this.default_value),e},e.__name__=\"CategoricalMarkerMapper\",e}(o.Mapper);n.CategoricalMarkerMapper=a,a.initClass()},function(t,e,n){var i=t(426),r=t(172),o=t(180),s=t(18),a=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({factors:[s.Array],patterns:[s.Array],start:[s.Number,0],end:[s.Number],default_value:[s.HatchPatternType,\" \"]})},e.prototype.v_compute=function(t){var e=new Array(t.length);return r.cat_v_compute(t,this.factors,this.patterns,e,this.start,this.end,this.default_value),e},e.__name__=\"CategoricalPatternMapper\",e}(o.Mapper);n.CategoricalPatternMapper=a,a.initClass()},function(t,e,n){var i=t(426),r=t(180),o=t(18),s=t(46),a=t(30),l=t(31);function c(t){return s.isNumber(t)?t:(\"#\"!=t[0]&&(t=a.color2hex(t)),9!=t.length&&(t+=\"ff\"),parseInt(t.slice(1),16))}function h(t){for(var e=new Uint32Array(t.length),n=0,i=t.length;nh?null!=a?a:n[h]:n[v]}else e[d]=n[h]}},e.__name__=\"LinearColorMapper\",e}(r.ContinuousColorMapper);n.LinearColorMapper=s},function(t,e,n){var i=t(426),r=t(176),o=t(25),s=null!=Math.log1p?Math.log1p:function(t){return Math.log(1+t)},a=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype._v_compute=function(t,e,n,i){for(var r=i.nan_color,a=i.low_color,l=i.high_color,c=n.length,h=null!=this.low?this.low:o.min(t),u=null!=this.high?this.high:o.max(t),_=c/(s(u)-s(h)),d=n.length-1,p=0,f=t.length;pu)e[p]=null!=l?l:n[d];else if(m!=u)if(md&&(g=d),e[p]=n[g]}else e[p]=n[d]}},e.__name__=\"LogColorMapper\",e}(r.ContinuousColorMapper);n.LogColorMapper=a},function(t,e,n){var i=t(426),r=t(297),o=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype.compute=function(t){throw new Error(\"mapping single values is not supported\")},e.__name__=\"Mapper\",e}(r.Transform);n.Mapper=o},function(t,e,n){var i=t(426),r=t(183),o=Math.sqrt(3);function s(t,e){t.moveTo(-e,e),t.lineTo(e,-e),t.moveTo(-e,-e),t.lineTo(e,e)}function a(t,e){t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-e,0),t.lineTo(e,0)}function l(t,e){t.moveTo(0,e),t.lineTo(e/1.5,0),t.lineTo(0,-e),t.lineTo(-e/1.5,0),t.closePath()}function c(t,e){var n=e*o,i=n/3;t.moveTo(-e,i),t.lineTo(e,i),t.lineTo(0,i-n),t.closePath()}function h(t,e,n,i,r){var o=.65*n;a(t,n),s(t,o),i.doit&&(i.set_vectorize(t,e),t.stroke())}function u(t,e,n,i,r){t.arc(0,0,n,0,2*Math.PI,!1),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),a(t,n),t.stroke())}function _(t,e,n,i,r){t.arc(0,0,n,0,2*Math.PI,!1),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),s(t,n),t.stroke())}function d(t,e,n,i,r){a(t,n),i.doit&&(i.set_vectorize(t,e),t.stroke())}function p(t,e,n,i,r){l(t,n),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),t.stroke())}function f(t,e,n,i,r){l(t,n),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),a(t,n),t.stroke())}function m(t,e,n,i,r){!function(t,e){var n=e/2,i=o*n;t.moveTo(e,0),t.lineTo(n,-i),t.lineTo(-n,-i),t.lineTo(-e,0),t.lineTo(-n,i),t.lineTo(n,i),t.closePath()}(t,n),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),t.stroke())}function v(t,e,n,i,r){t.rotate(Math.PI),c(t,n),t.rotate(-Math.PI),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),t.stroke())}function g(t,e,n,i,r){var o=2*n;t.rect(-n,-n,o,o),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),t.stroke())}function y(t,e,n,i,r){var o=2*n;t.rect(-n,-n,o,o),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),a(t,n),t.stroke())}function b(t,e,n,i,r){var o=2*n;t.rect(-n,-n,o,o),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),s(t,n),t.stroke())}function w(t,e,n,i,r){c(t,n),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),t.stroke())}function x(t,e,n,i,r){!function(t,e){t.moveTo(-e,0),t.lineTo(e,0)}(t,n),i.doit&&(i.set_vectorize(t,e),t.stroke())}function A(t,e,n,i,r){s(t,n),i.doit&&(i.set_vectorize(t,e),t.stroke())}function k(t,e){var n,o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(n,t),n.initClass=function(){this.prototype._render_one=e},n}(r.MarkerView);o.initClass();var s=((n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=o},e}(r.Marker)).__name__=t,n);return s.initClass(),s}n.Asterisk=k(\"Asterisk\",h),n.CircleCross=k(\"CircleCross\",u),n.CircleX=k(\"CircleX\",_),n.Cross=k(\"Cross\",d),n.Dash=k(\"Dash\",x),n.Diamond=k(\"Diamond\",p),n.DiamondCross=k(\"DiamondCross\",f),n.Hex=k(\"Hex\",m),n.InvertedTriangle=k(\"InvertedTriangle\",v),n.Square=k(\"Square\",g),n.SquareCross=k(\"SquareCross\",y),n.SquareX=k(\"SquareX\",b),n.Triangle=k(\"Triangle\",w),n.X=k(\"X\",A),n.marker_funcs={asterisk:h,circle:function(t,e,n,i,r){t.arc(0,0,n,0,2*Math.PI,!1),r.doit&&(r.set_vectorize(t,e),t.fill()),i.doit&&(i.set_vectorize(t,e),t.stroke())},circle_cross:u,circle_x:_,cross:d,diamond:p,diamond_cross:f,hex:m,inverted_triangle:v,square:g,square_cross:y,square_x:b,triangle:w,dash:x,x:A}},function(t,e,n){var i=t(426);i.__exportStar(t(181),n);var r=t(183);n.Marker=r.Marker;var o=t(184);n.Scatter=o.Scatter},function(t,e,n){var i=t(426),r=t(153),o=t(9),s=t(18),a=t(24),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._render=function(t,e,n){for(var i=n.sx,r=n.sy,o=n._size,s=n._angle,a=0,l=e;a=2){this.map.setZoom(r);var o=this._get_projected_bounds(),s=o[0],a=o[1];a-s<0&&this.map.setZoom(i)}this.unpause()}this._set_bokeh_ranges()},e.prototype._build_map=function(){var t=this,e=google.maps;this.map_types={satellite:e.MapTypeId.SATELLITE,terrain:e.MapTypeId.TERRAIN,roadmap:e.MapTypeId.ROADMAP,hybrid:e.MapTypeId.HYBRID};var n=this.model.map_options,i={center:new e.LatLng(n.lat,n.lng),zoom:n.zoom,disableDefaultUI:!0,mapTypeId:this.map_types[n.map_type],scaleControl:n.scale_control,tilt:n.tilt};null!=n.styles&&(i.styles=JSON.parse(n.styles)),this.map=new e.Map(this.canvas_view.map_el,i),e.event.addListener(this.map,\"idle\",function(){return t._set_bokeh_ranges()}),e.event.addListener(this.map,\"bounds_changed\",function(){return t._set_bokeh_ranges()}),e.event.addListenerOnce(this.map,\"tilesloaded\",function(){return t._render_finished()}),this.connect(this.model.properties.map_options.change,function(){return t._update_options()}),this.connect(this.model.map_options.properties.styles.change,function(){return t._update_styles()}),this.connect(this.model.map_options.properties.lat.change,function(){return t._update_center(\"lat\")}),this.connect(this.model.map_options.properties.lng.change,function(){return t._update_center(\"lng\")}),this.connect(this.model.map_options.properties.zoom.change,function(){return t._update_zoom()}),this.connect(this.model.map_options.properties.map_type.change,function(){return t._update_map_type()}),this.connect(this.model.map_options.properties.scale_control.change,function(){return t._update_scale_control()}),this.connect(this.model.map_options.properties.tilt.change,function(){return t._update_tilt()})},e.prototype._render_finished=function(){this._tiles_loaded=!0,this.notify_finished()},e.prototype.has_finished=function(){return t.prototype.has_finished.call(this)&&!0===this._tiles_loaded},e.prototype._get_latlon_bounds=function(){var t=this.map.getBounds(),e=t.getNorthEast(),n=t.getSouthWest(),i=n.lng(),r=e.lng(),o=n.lat(),s=e.lat();return[i,r,o,s]},e.prototype._get_projected_bounds=function(){var t=this._get_latlon_bounds(),e=t[0],n=t[1],i=t[2],r=t[3],s=o.wgs84_mercator.forward([e,i]),a=s[0],l=s[1],c=o.wgs84_mercator.forward([n,r]),h=c[0],u=c[1];return[a,h,l,u]},e.prototype._set_bokeh_ranges=function(){var t=this._get_projected_bounds(),e=t[0],n=t[1],i=t[2],r=t[3];this.frame.x_range.setv({start:e,end:n}),this.frame.y_range.setv({start:i,end:r})},e.prototype._update_center=function(t){var e=this.map.getCenter().toJSON();e[t]=this.model.map_options[t],this.map.setCenter(e),this._set_bokeh_ranges()},e.prototype._update_map_type=function(){this.map.setOptions({mapTypeId:this.map_types[this.model.map_options.map_type]})},e.prototype._update_scale_control=function(){this.map.setOptions({scaleControl:this.model.map_options.scale_control})},e.prototype._update_tilt=function(){this.map.setOptions({tilt:this.model.map_options.tilt})},e.prototype._update_options=function(){this._update_styles(),this._update_center(\"lat\"),this._update_center(\"lng\"),this._update_zoom(),this._update_map_type()},e.prototype._update_styles=function(){this.map.setOptions({styles:JSON.parse(this.model.map_options.styles)})},e.prototype._update_zoom=function(){this.map.setOptions({zoom:this.model.map_options.zoom}),this._set_bokeh_ranges()},e.prototype._map_hook=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3];this.canvas_view.map_el.style.top=i+\"px\",this.canvas_view.map_el.style.left=n+\"px\",this.canvas_view.map_el.style.width=r+\"px\",this.canvas_view.map_el.style.height=o+\"px\",null==this.map&&\"undefined\"!=typeof google&&null!=google.maps&&this._build_map()},e.prototype._paint_empty=function(t,e){var n=this.layout._width.value,i=this.layout._height.value,r=e[0],o=e[1],s=e[2],a=e[3];t.clearRect(0,0,n,i),t.beginPath(),t.moveTo(0,0),t.lineTo(0,i),t.lineTo(n,i),t.lineTo(n,0),t.lineTo(0,0),t.moveTo(r,o),t.lineTo(r+s,o),t.lineTo(r+s,o+a),t.lineTo(r,o+a),t.lineTo(r,o),t.closePath(),null!=this.model.border_fill_color&&(t.fillStyle=this.model.border_fill_color,t.fill())},e.__name__=\"GMapPlotView\",e}(s.PlotView);n.GMapPlotView=l},function(t,e,n){var i=t(185);n.MapOptions=i.MapOptions;var r=t(185);n.GMapOptions=r.GMapOptions;var o=t(185);n.GMapPlot=o.GMapPlot;var s=t(188);n.Plot=s.Plot},function(t,e,n){var i=t(426),r=t(18),o=t(22),s=t(24),a=t(35),l=t(46),c=t(166),h=t(78),u=t(204),_=t(286),d=t(212),p=t(197),f=t(191),m=t(189);n.PlotView=m.PlotView;var v=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=m.PlotView,this.mixins([\"line:outline_\",\"fill:background_\",\"fill:border_\"]),this.define({toolbar:[r.Instance,function(){return new _.Toolbar}],toolbar_location:[r.Location,\"right\"],toolbar_sticky:[r.Boolean,!0],plot_width:[r.Number,600],plot_height:[r.Number,600],frame_width:[r.Number,null],frame_height:[r.Number,null],title:[r.Any,function(){return new h.Title({text:\"\"})}],title_location:[r.Location,\"above\"],above:[r.Array,[]],below:[r.Array,[]],left:[r.Array,[]],right:[r.Array,[]],center:[r.Array,[]],renderers:[r.Array,[]],x_range:[r.Instance,function(){return new f.DataRange1d}],extra_x_ranges:[r.Any,{}],y_range:[r.Instance,function(){return new f.DataRange1d}],extra_y_ranges:[r.Any,{}],x_scale:[r.Instance,function(){return new u.LinearScale}],y_scale:[r.Instance,function(){return new u.LinearScale}],lod_factor:[r.Number,10],lod_interval:[r.Number,300],lod_threshold:[r.Number,2e3],lod_timeout:[r.Number,500],hidpi:[r.Boolean,!0],output_backend:[r.OutputBackend,\"canvas\"],min_border:[r.Number,5],min_border_top:[r.Number,null],min_border_left:[r.Number,null],min_border_bottom:[r.Number,null],min_border_right:[r.Number,null],inner_width:[r.Number],inner_height:[r.Number],outer_width:[r.Number],outer_height:[r.Number],match_aspect:[r.Boolean,!1],aspect_scale:[r.Number,1],reset_policy:[r.ResetPolicy,\"standard\"]}),this.override({outline_line_color:\"#e5e5e5\",border_fill_color:\"#ffffff\",background_fill_color:\"#ffffff\"})},Object.defineProperty(e.prototype,\"width\",{get:function(){var t=this.getv(\"width\");return null!=t?t:this.plot_width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"height\",{get:function(){var t=this.getv(\"height\");return null!=t?t:this.plot_height},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.reset=new o.Signal0(this,\"reset\");for(var e=0,n=a.values(this.extra_x_ranges).concat(this.x_range);e=0},n.prototype.can_redo=function(){return this.state.index=c.end&&(r=!0,c.end=_,(e||n)&&(c.start=_+p)),null!=d&&d<=c.start&&(r=!0,c.start=d,(e||n)&&(c.end=d-p))):(null!=_&&_>=c.start&&(r=!0,c.start=_,(e||n)&&(c.end=_+p)),null!=d&&d<=c.end&&(r=!0,c.end=d,(e||n)&&(c.start=d-p)))}}if(!(n&&r&&i))for(var f=0,m=t;f0&&h0&&h>i&&(l=(i-c)/(h-c)),l=Math.max(0,Math.min(1,l))}return l},n.prototype.update_range=function(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i=!0),this.pause();var r=this.frame,o=r.x_ranges,s=r.y_ranges;if(null==t){for(var a in o){var l=o[a];l.reset()}for(var c in s){var l=s[c];l.reset()}this.update_dataranges()}else{var h=[];for(var u in o){var l=o[u];h.push([l,t.xrs[u]])}for(var _ in s){var l=s[_];h.push([l,t.yrs[_]])}n&&this._update_ranges_together(h),this._update_ranges_individually(h,e,n,i)}this.unpause()},n.prototype.reset_range=function(){this.update_range(null)},n.prototype._invalidate_layout=function(){var t=this;(function(){for(var e=0,n=t.model.side_panels;e=0&&nt.model.lod_timeout&&e.interactive_stop(t.model),t.request_paint()},this.model.lod_timeout):e.interactive_stop(this.model)}for(var i in this.renderer_views){var r=this.renderer_views[i];if(null==this.range_update_timestamp||r instanceof a.GlyphRendererView&&r.set_data_timestamp>this.range_update_timestamp){this.update_dataranges();break}}var o=this.canvas_view.ctx,s=this.canvas.pixel_ratio;o.save(),o.scale(s,s),o.translate(.5,.5);var l=[this.frame._left.value,this.frame._top.value,this.frame._width.value,this.frame._height.value];if(this._map_hook(o,l),this._paint_empty(o,l),this.prepare_webgl(s,l),this.clear_webgl(),this.visuals.outline_line.doit){o.save(),this.visuals.outline_line.set_value(o);var c=l[0],h=l[1],u=l[2],_=l[3];c+u==this.layout._width.value&&(u-=1),h+_==this.layout._height.value&&(_-=1),o.strokeRect(c,h,u,_),o.restore()}this._paint_levels(o,[\"image\",\"underlay\",\"glyph\"],l,!0),this._paint_levels(o,[\"annotation\"],l,!1),this._paint_levels(o,[\"overlay\"],l,!1),null==this._initial_state_info.range&&this.set_initial_range(),o.restore()}},n.prototype._paint_levels=function(t,e,n,i){for(var r=0,o=e;r0&&(e=e.filter(function(e){return c.includes(t,e.name)})),s.logger.debug(\"computed \"+e.length+\" renderers for DataRange1d \"+this.id);for(var l=0,h=e;l_&&(\"start\"==this.follow?r=i+u*_:\"end\"==this.follow&&(i=r-u*_)),[i,r]},e.prototype.update=function(t,e,n,i){if(!this.have_updated_interactively){var r=this.computed_renderers(),o=this._compute_plot_bounds(r,t);null!=i&&(o=this.adjust_bounds_for_aspect(o,i)),this._plot_bounds[n]=o;var s=this._compute_min_max(this._plot_bounds,e),a=s[0],l=s[1],c=this._compute_range(a,l),h=c[0],u=c[1];null!=this._initial_start&&(\"log\"==this.scale_hint?this._initial_start>0&&(h=this._initial_start):h=this._initial_start),null!=this._initial_end&&(\"log\"==this.scale_hint?this._initial_end>0&&(u=this._initial_end):u=this._initial_end);var _=[this.start,this.end],d=_[0],p=_[1];if(h!=d||u!=p){var f={};h!=d&&(f.start=h),u!=p&&(f.end=u),this.setv(f)}\"auto\"==this.bounds&&this.setv({bounds:[h,u]},{silent:!0}),this.change.emit()}},e.prototype.reset=function(){this.have_updated_interactively=!1,this.setv({range_padding:this._initial_range_padding,range_padding_units:this._initial_range_padding_units,follow:this._initial_follow,follow_interval:this._initial_follow_interval,default_span:this._initial_default_span},{silent:!0}),this.change.emit()},e.__name__=\"DataRange1d\",e}(r.DataRange);n.DataRange1d=h,h.initClass()},function(t,e,n){var i=t(426),r=t(194),o=t(18),s=t(25),a=t(24),l=t(46);function c(t,e,n){void 0===n&&(n=0);for(var i={},r=0;rthis.end},enumerable:!0,configurable:!0}),e.__name__=\"Range\",e}(r.Model);n.Range=a,a.initClass()},function(t,e,n){var i=t(426),r=t(194),o=t(18),s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({start:[o.Number,0],end:[o.Number,1],reset_start:[o.Number],reset_end:[o.Number]})},e.prototype._set_auto_bounds=function(){if(\"auto\"==this.bounds){var t=Math.min(this.reset_start,this.reset_end),e=Math.max(this.reset_start,this.reset_end);this.setv({bounds:[t,e]},{silent:!0})}},e.prototype.initialize=function(){t.prototype.initialize.call(this),null==this.reset_start&&(this.reset_start=this.start),null==this.reset_end&&(this.reset_end=this.end),this._set_auto_bounds()},Object.defineProperty(e.prototype,\"min\",{get:function(){return Math.min(this.start,this.end)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"max\",{get:function(){return Math.max(this.start,this.end)},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this._set_auto_bounds(),this.start!=this.reset_start||this.end!=this.reset_end?this.setv({start:this.reset_start,end:this.reset_end}):this.change.emit()},e.__name__=\"Range1d\",e}(r.Range);n.Range1d=s,s.initClass()},function(t,e,n){var i=t(426),r=t(201),o=t(18),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.__name__=\"DataRendererView\",e}(r.RendererView);n.DataRendererView=s;var a=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({x_range_name:[o.String,\"default\"],y_range_name:[o.String,\"default\"]}),this.override({level:\"glyph\"})},e.__name__=\"DataRenderer\",e}(r.Renderer);n.DataRenderer=a,a.initClass()},function(t,e,n){var i=t(426),r=t(196),o=t(136),s=t(140),a=t(128),l=t(150),c=t(211),h=t(17),u=t(18),_=t(25),d=t(24),p=t(35),f=t(192),m={fill:{},line:{}},v={fill:{fill_alpha:.3,fill_color:\"grey\"},line:{line_alpha:.3,line_color:\"grey\"}},g={fill:{fill_alpha:.2},line:{}},y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(){t.prototype.initialize.call(this);var e=this.model.glyph,n=d.includes(e.mixins,\"fill\"),i=d.includes(e.mixins,\"line\"),r=p.clone(e.attributes);function o(t){var o=p.clone(r);return n&&p.extend(o,t.fill),i&&p.extend(o,t.line),new e.constructor(o)}delete r.id,this.glyph=this.build_glyph_view(e);var s=this.model.selection_glyph;null==s?s=o({fill:{},line:{}}):\"auto\"===s&&(s=o(m)),this.selection_glyph=this.build_glyph_view(s);var a=this.model.nonselection_glyph;null==a?a=o({fill:{},line:{}}):\"auto\"===a&&(a=o(g)),this.nonselection_glyph=this.build_glyph_view(a);var l=this.model.hover_glyph;null!=l&&(this.hover_glyph=this.build_glyph_view(l));var c=this.model.muted_glyph;null!=c&&(this.muted_glyph=this.build_glyph_view(c));var h=o(v);this.decimated_glyph=this.build_glyph_view(h),this.xscale=this.plot_view.frame.xscales[this.model.x_range_name],this.yscale=this.plot_view.frame.yscales[this.model.y_range_name],this.set_data(!1)},e.prototype.build_glyph_view=function(t){return new t.default_view({model:t,parent:this})},e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.change,function(){return e.request_render()}),this.connect(this.model.glyph.change,function(){return e.set_data()}),this.connect(this.model.data_source.change,function(){return e.set_data()}),this.connect(this.model.data_source.streaming,function(){return e.set_data()}),this.connect(this.model.data_source.patching,function(t){return e.set_data(!0,t)}),this.connect(this.model.data_source.selected.change,function(){return e.request_render()}),this.connect(this.model.data_source._select,function(){return e.request_render()}),null!=this.hover_glyph&&this.connect(this.model.data_source.inspect,function(){return e.request_render()}),this.connect(this.model.properties.view.change,function(){return e.set_data()}),this.connect(this.model.view.change,function(){return e.set_data()});var n=this.plot_view.frame,i=n.x_ranges,r=n.y_ranges;for(var o in i){var s=i[o];s instanceof f.FactorRange&&this.connect(s.change,function(){return e.set_data()})}for(var a in r){var s=r[a];s instanceof f.FactorRange&&this.connect(s.change,function(){return e.set_data()})}this.connect(this.model.glyph.transformchange,function(){return e.set_data()})},e.prototype.have_selection_glyphs=function(){return null!=this.selection_glyph&&null!=this.nonselection_glyph},e.prototype.set_data=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=null);var n=Date.now(),i=this.model.data_source;this.all_indices=this.model.view.indices,this.glyph.model.setv({x_range_name:this.model.x_range_name,y_range_name:this.model.y_range_name},{silent:!0}),this.glyph.set_data(i,this.all_indices,e),this.glyph.set_visuals(i),this.decimated_glyph.set_visuals(i),this.have_selection_glyphs()&&(this.selection_glyph.set_visuals(i),this.nonselection_glyph.set_visuals(i)),null!=this.hover_glyph&&this.hover_glyph.set_visuals(i),null!=this.muted_glyph&&this.muted_glyph.set_visuals(i);var r=this.plot_model.lod_factor;this.decimated=[];for(var o=0,s=Math.floor(this.all_indices.length/r);o0?b[\"1d\"].indices:_.map(Object.keys(b[\"2d\"].indices),function(t){return parseInt(t)})),x=_.filter(c,function(e){return w.has(t.all_indices[e])}),A=this.plot_model.lod_threshold;null!=this.model.document&&this.model.document.interactive_duration()>0&&!n&&null!=A&&this.all_indices.length>A?(c=this.decimated,v=this.decimated_glyph,g=this.decimated_glyph,y=this.selection_glyph):(v=this.model.muted&&null!=this.muted_glyph?this.muted_glyph:this.glyph,g=this.nonselection_glyph,y=this.selection_glyph),null!=this.hover_glyph&&x.length&&(c=d.difference(c,x));var k,C=null;if(f.length&&this.have_selection_glyphs()){for(var T=Date.now(),S={},M=0,E=f;M0){for(var a=n[0],l=0,c=n;l0){for(var a=n[0],l=0,c=n;l0?this.selected_glyphs[0]:null},enumerable:!0,configurable:!0}),e.prototype.add_to_selected_glyphs=function(t){this.selected_glyphs.push(t)},e.prototype.update=function(t,e,n){this.final=e,n?this.update_through_union(t):(this.indices=t.indices,this.line_indices=t.line_indices,this.selected_glyphs=t.selected_glyphs,this.get_view=t.get_view,this.multiline_indices=t.multiline_indices,this.image_indices=t.image_indices)},e.prototype.clear=function(){this.final=!0,this.indices=[],this.line_indices=[],this.multiline_indices={},this.get_view=function(){return null},this.selected_glyphs=[]},e.prototype.is_empty=function(){return 0==this.indices.length&&0==this.line_indices.length&&0==this.image_indices.length},e.prototype.update_through_union=function(t){this.indices=s.union(t.indices,this.indices),this.selected_glyphs=s.union(t.selected_glyphs,this.selected_glyphs),this.line_indices=s.union(t.line_indices,this.line_indices),this.get_view()||(this.get_view=t.get_view),this.multiline_indices=a.merge(t.multiline_indices,this.multiline_indices)},e.prototype.update_through_intersection=function(t){this.indices=s.intersection(t.indices,this.indices),this.selected_glyphs=s.union(t.selected_glyphs,this.selected_glyphs),this.line_indices=s.union(t.line_indices,this.line_indices),this.get_view()||(this.get_view=t.get_view),this.multiline_indices=a.merge(t.multiline_indices,this.multiline_indices)},e.__name__=\"Selection\",e}(r.Model);n.Selection=l,l.initClass()},function(t,e,n){var i=t(426),r=t(217),o=t(17),s=t(18),a=function(t){function e(e){var n=t.call(this,e)||this;return n.initialized=!1,n}return i.__extends(e,t),e.initClass=function(){this.define({content_type:[s.String,\"application/json\"],http_headers:[s.Any,{}],method:[s.HTTPMethod,\"POST\"],if_modified:[s.Boolean,!1]})},e.prototype.destroy=function(){null!=this.interval&&clearInterval(this.interval),t.prototype.destroy.call(this)},e.prototype.setup=function(){var t=this;!this.initialized&&(this.initialized=!0,this.get_data(this.mode),this.polling_interval)&&(this.interval=setInterval(function(){return t.get_data(t.mode,t.max_size,t.if_modified)},this.polling_interval))},e.prototype.get_data=function(t,e,n){var i=this;void 0===e&&(e=0),void 0===n&&(n=!1);var r=this.prepare_request();r.addEventListener(\"load\",function(){return i.do_load(r,t,e)}),r.addEventListener(\"error\",function(){return i.do_error(r)}),r.send()},e.prototype.prepare_request=function(){var t=new XMLHttpRequest;t.open(this.method,this.data_url,!0),t.withCredentials=!1,t.setRequestHeader(\"Content-Type\",this.content_type);var e=this.http_headers;for(var n in e){var i=e[n];t.setRequestHeader(n,i)}return t},e.prototype.do_load=function(t,e,n){if(200===t.status){var i=JSON.parse(t.responseText);this.load_data(i,e,n)}},e.prototype.do_error=function(t){o.logger.error(\"Failed to fetch JSON from \"+this.data_url+\" with code \"+t.status)},e.__name__=\"AjaxDataSource\",e}(r.RemoteDataSource);n.AjaxDataSource=a,a.initClass()},function(t,e,n){var i=t(426),r=t(62),o=t(18),s=t(209),a=t(24),l=t(213),c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({filters:[o.Array,[]],source:[o.Instance]}),this.internal({indices:[o.Array,[]],indices_map:[o.Any,{}]})},e.prototype.initialize=function(){t.prototype.initialize.call(this),this.compute_indices()},e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.properties.filters.change,function(){e.compute_indices(),e.change.emit()});var n=function(){var t=function(){return e.compute_indices()};null!=e.source&&(e.connect(e.source.change,t),e.source instanceof l.ColumnarDataSource&&(e.connect(e.source.streaming,t),e.connect(e.source.patching,t)))},i=null!=this.source;i?n():this.connect(this.properties.source.change,function(){i||(n(),i=!0)})},e.prototype.compute_indices=function(){var t=this,e=this.filters.map(function(e){return e.compute_indices(t.source)}).filter(function(t){return null!=t});e.length>0?this.indices=a.intersection.apply(this,e):this.source instanceof l.ColumnarDataSource&&(this.indices=this.source.get_indices()),this.indices_map_to_subset()},e.prototype.indices_map_to_subset=function(){this.indices_map={};for(var t=0;tn?i.slice(-n):i}if(c.isTypedArray(t)){var r=t.length+e.length;if(null!=n&&r>n){var o=r-n,s=t.length,i=void 0;t.length1&&o.logger.warn(\"Bokeh does not support Polygons with holes in, only exterior ring used.\");for(var d=t.coordinates[0],u=0;u1&&o.logger.warn(\"Bokeh does not support Polygons with holes in, only exterior ring used.\"),m.push(y[0])}for(var h=m.reduce(r),u=0;un&&l0&&c.length>0){for(var _=r/h,d=s.range(0,h).map(function(t){return t*_}),p=0,f=d.slice(1);p1?this.interval=(e[1]-e[0])*o.ONE_DAY:this.interval=31*o.ONE_DAY},e.prototype.get_ticks_no_defaults=function(t,e,n,i){var r=function(t,e){var n=o.last_month_no_later_than(new Date(t)),i=o.last_month_no_later_than(new Date(e));i.setUTCMonth(i.getUTCMonth()+1);for(var r=[],s=n;r.push(o.copy_date(s)),s.setUTCMonth(s.getUTCMonth()+1),!(s>i););return r}(t,e),s=this.days,l=this.interval,c=a.concat(r.map(function(t){return function(t,e){for(var n=t.getUTCMonth(),i=[],r=0,a=s;r0&&r.length>0){for(var f=_/s,m=o.range(0,s).map(function(t){return t*f}),v=0,g=m.slice(1);v0&&r.length>0){for(var M=Math.pow(l,S)/s,m=o.range(1,s+1).map(function(t){return t*M}),E=0,z=m;E1?this.interval=(e[1]-e[0])*o.ONE_MONTH:this.interval=12*o.ONE_MONTH},e.prototype.get_ticks_no_defaults=function(t,e,n,i){var r=function(t,e){var n=o.last_year_no_later_than(new Date(t)),i=o.last_year_no_later_than(new Date(e));i.setUTCFullYear(i.getUTCFullYear()+1);for(var r=[],s=n;r.push(o.copy_date(s)),s.setUTCFullYear(s.getUTCFullYear()+1),!(s>i););return r}(t,e),s=this.months,l=a.concat(r.map(function(t){return s.map(function(e){var n=o.copy_date(t);return n.setUTCMonth(e),n})})),c=l.map(function(t){return t.getTime()}),h=c.filter(function(n){return t<=n&&n<=e});return{major:h,minor:[]}},e.__name__=\"MonthsTicker\",e}(r.SingleIntervalTicker);n.MonthsTicker=l,l.initClass()},function(t,e,n){var i=t(426),r=t(228),o=t(18),s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({interval:[o.Number]})},e.prototype.get_interval=function(t,e,n){return this.interval},Object.defineProperty(e.prototype,\"min_interval\",{get:function(){return this.interval},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"max_interval\",{get:function(){return this.interval},enumerable:!0,configurable:!0}),e.__name__=\"SingleIntervalTicker\",e}(r.ContinuousTicker);n.SingleIntervalTicker=s,s.initClass()},function(t,e,n){var i=t(426),r=t(62),o=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.__name__=\"Ticker\",e}(r.Model);n.Ticker=o},function(t,e,n){function i(t){return new Date(t.getTime())}function r(t){var e=i(t);return e.setUTCDate(1),e.setUTCHours(0),e.setUTCMinutes(0),e.setUTCSeconds(0),e.setUTCMilliseconds(0),e}n.ONE_MILLI=1,n.ONE_SECOND=1e3,n.ONE_MINUTE=60*n.ONE_SECOND,n.ONE_HOUR=60*n.ONE_MINUTE,n.ONE_DAY=24*n.ONE_HOUR,n.ONE_MONTH=30*n.ONE_DAY,n.ONE_YEAR=365*n.ONE_DAY,n.copy_date=i,n.last_month_no_later_than=r,n.last_year_no_later_than=function(t){var e=r(t);return e.setUTCMonth(0),e}},function(t,e,n){var i=t(426),r=t(225),o=t(236),s=t(238),a=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.interval=s.ONE_YEAR,this.basic_ticker=new r.BasicTicker({num_minor_ticks:0})},e.prototype.get_ticks_no_defaults=function(t,e,n,i){var r=s.last_year_no_later_than(new Date(t)).getUTCFullYear(),o=s.last_year_no_later_than(new Date(e)).getUTCFullYear(),a=this.basic_ticker.get_ticks_no_defaults(r,o,n,i).major,l=a.map(function(t){return Date.UTC(t,0,1)}),c=l.filter(function(n){return t<=n&&n<=e});return{major:c,minor:[]}},e.__name__=\"YearsTicker\",e}(o.SingleIntervalTicker);n.YearsTicker=a},function(t,e,n){var i=t(426),r=t(243),o=t(18),s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({use_latlon:[o.Boolean,!1]})},e.prototype.get_image_url=function(t,e,n){var i,r,o,s,a,l,c=this.string_lookup_replace(this.url,this.extra_url_vars);return this.use_latlon?(i=this.get_tile_geographic_bounds(t,e,n),s=i[0],l=i[1],o=i[2],a=i[3]):(r=this.get_tile_meter_bounds(t,e,n),s=r[0],l=r[1],o=r[2],a=r[3]),c.replace(\"{XMIN}\",s.toString()).replace(\"{YMIN}\",l.toString()).replace(\"{XMAX}\",o.toString()).replace(\"{YMAX}\",a.toString())},e.__name__=\"BBoxTileSource\",e}(r.MercatorTileSource);n.BBoxTileSource=s,s.initClass()},function(t,e,n){var i=t(46),r=function(){function t(){this.images=[]}return t.prototype.pop=function(){var t=this.images.pop();return null!=t?t:new Image},t.prototype.push=function(t){var e;this.images.length>50||(i.isArray(t)?(e=this.images).push.apply(e,t):this.images.push(t))},t.__name__=\"ImagePool\",t}();n.ImagePool=r},function(t,e,n){var i=t(240);n.BBoxTileSource=i.BBoxTileSource;var r=t(243);n.MercatorTileSource=r.MercatorTileSource;var o=t(244);n.QUADKEYTileSource=o.QUADKEYTileSource;var s=t(245);n.TileRenderer=s.TileRenderer;var a=t(246);n.TileSource=a.TileSource;var l=t(248);n.TMSTileSource=l.TMSTileSource;var c=t(249);n.WMTSTileSource=c.WMTSTileSource},function(t,e,n){var i=t(426),r=t(246),o=t(18),s=t(24),a=t(247),l=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({snap_to_zoom:[o.Boolean,!1],wrap_around:[o.Boolean,!0]}),this.override({x_origin_offset:20037508.34,y_origin_offset:20037508.34,initial_resolution:156543.03392804097})},e.prototype.initialize=function(){var e=this;t.prototype.initialize.call(this),this._resolutions=s.range(this.min_zoom,this.max_zoom+1).map(function(t){return e.get_resolution(t)})},e.prototype._computed_initial_resolution=function(){return null!=this.initial_resolution?this.initial_resolution:2*Math.PI*6378137/this.tile_size},e.prototype.is_valid_tile=function(t,e,n){return!(!this.wrap_around&&(t<0||t>=Math.pow(2,n))||e<0||e>=Math.pow(2,n))},e.prototype.parent_by_tile_xyz=function(t,e,n){var i=this.tile_xyz_to_quadkey(t,e,n),r=i.substring(0,i.length-1);return this.quadkey_to_tile_xyz(r)},e.prototype.get_resolution=function(t){return this._computed_initial_resolution()/Math.pow(2,t)},e.prototype.get_resolution_by_extent=function(t,e,n){var i=(t[2]-t[0])/n,r=(t[3]-t[1])/e;return[i,r]},e.prototype.get_level_by_extent=function(t,e,n){for(var i=(t[2]-t[0])/n,r=(t[3]-t[1])/e,o=Math.max(i,r),s=0,a=0,l=this._resolutions;ac){if(0==s)return 0;if(s>0)return s-1}s+=1}return s-1},e.prototype.get_closest_level_by_extent=function(t,e,n){var i=(t[2]-t[0])/n,r=(t[3]-t[1])/e,o=Math.max(i,r),s=this._resolutions.reduce(function(t,e){return Math.abs(e-o)_?(c=s-r,h*=u):(c*=_,h=a-o)}var d=(c-(s-r))/2,p=(h-(a-o))/2;return[r-d,o-p,s+d,a+p]},e.prototype.tms_to_wmts=function(t,e,n){return[t,Math.pow(2,n)-1-e,n]},e.prototype.wmts_to_tms=function(t,e,n){return[t,Math.pow(2,n)-1-e,n]},e.prototype.pixels_to_meters=function(t,e,n){var i=this.get_resolution(n),r=t*i-this.x_origin_offset,o=e*i-this.y_origin_offset;return[r,o]},e.prototype.meters_to_pixels=function(t,e,n){var i=this.get_resolution(n),r=(t+this.x_origin_offset)/i,o=(e+this.y_origin_offset)/i;return[r,o]},e.prototype.pixels_to_tile=function(t,e){var n=Math.ceil(t/this.tile_size);n=0===n?n:n-1;var i=Math.max(Math.ceil(e/this.tile_size)-1,0);return[n,i]},e.prototype.pixels_to_raster=function(t,e,n){var i=this.tile_size<=c;p--)for(var f=l;f<=u;f++)this.is_valid_tile(f,p,e)&&d.push([f,p,e,this.get_tile_meter_bounds(f,p,e)]);return this.sort_tiles_from_center(d,[l,c,u,_]),d},e.prototype.quadkey_to_tile_xyz=function(t){for(var e=0,n=0,i=t.length,r=i;r>0;r--){var o=t.charAt(i-r),s=1<0;r--){var o=1<0;)if(a=a.substring(0,a.length-1),r=this.quadkey_to_tile_xyz(a),t=r[0],e=r[1],n=r[2],o=this.denormalize_xyz(t,e,n,s),t=o[0],e=o[1],n=o[2],this.tile_xyz_to_key(t,e,n)in this.tiles)return[t,e,n];return[0,0,0]},e.prototype.normalize_xyz=function(t,e,n){if(this.wrap_around){var i=Math.pow(2,n);return[(t%i+i)%i,e,n]}return[t,e,n]},e.prototype.denormalize_xyz=function(t,e,n,i){return[t+i*Math.pow(2,n),e,n]},e.prototype.denormalize_meters=function(t,e,n,i){return[t+2*i*Math.PI*6378137,e]},e.prototype.calculate_world_x_by_tile_xyz=function(t,e,n){return Math.floor(t/Math.pow(2,n))},e.__name__=\"MercatorTileSource\",e}(r.TileSource);n.MercatorTileSource=l,l.initClass()},function(t,e,n){var i=t(426),r=t(243),o=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype.get_image_url=function(t,e,n){var i=this.string_lookup_replace(this.url,this.extra_url_vars),r=this.tms_to_wmts(t,e,n),o=r[0],s=r[1],a=r[2],l=this.tile_xyz_to_quadkey(o,s,a);return i.replace(\"{Q}\",l)},e.__name__=\"QUADKEYTileSource\",e}(r.MercatorTileSource);n.QUADKEYTileSource=o},function(t,e,n){var i=t(426),r=t(241),o=t(249),s=t(196),a=t(195),l=t(5),c=t(18),h=t(24),u=t(46),_=t(20),d=t(212),p=t(313),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(){this._tiles=[],t.prototype.initialize.call(this)},e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.change,function(){return e.request_render()}),this.connect(this.model.tile_source.change,function(){return e.request_render()})},e.prototype.get_extent=function(){return[this.x_range.start,this.y_range.start,this.x_range.end,this.y_range.end]},Object.defineProperty(e.prototype,\"map_plot\",{get:function(){return this.plot_model},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"map_canvas\",{get:function(){return this.plot_view.canvas_view.ctx},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"map_frame\",{get:function(){return this.plot_view.frame},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"x_range\",{get:function(){return this.map_plot.x_range},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"y_range\",{get:function(){return this.map_plot.y_range},enumerable:!0,configurable:!0}),e.prototype._set_data=function(){this.pool=new r.ImagePool,this.extent=this.get_extent(),this._last_height=void 0,this._last_width=void 0},e.prototype._update_attribution=function(){null!=this.attribution_el&&l.removeElement(this.attribution_el);var t=this.model.tile_source.attribution;if(u.isString(t)&&t.length>0){var e=this.plot_view,n=e.layout,i=e.frame,r=n._width.value-i._right.value,o=n._height.value-i._bottom.value,s=i._width.value;this.attribution_el=l.div({class:p.bk_tile_attribution,style:{position:\"absolute\",right:r+\"px\",bottom:o+\"px\",\"max-width\":s-4+\"px\",padding:\"2px\",\"background-color\":\"rgba(255,255,255,0.5)\",\"font-size\":\"7pt\",\"line-height\":\"1.05\",\"white-space\":\"nowrap\",overflow:\"hidden\",\"text-overflow\":\"ellipsis\"}});var a=this.plot_view.canvas_view.events_el;a.appendChild(this.attribution_el),this.attribution_el.innerHTML=t,this.attribution_el.title=this.attribution_el.textContent.replace(/\\s*\\n\\s*/g,\" \")}},e.prototype._map_data=function(){this.initial_extent=this.get_extent();var t=this.model.tile_source.get_level_by_extent(this.initial_extent,this.map_frame._height.value,this.map_frame._width.value),e=this.model.tile_source.snap_to_zoom_level(this.initial_extent,this.map_frame._height.value,this.map_frame._width.value,t);this.x_range.start=e[0],this.y_range.start=e[1],this.x_range.end=e[2],this.y_range.end=e[3],this.x_range instanceof a.Range1d&&(this.x_range.reset_start=e[0],this.x_range.reset_end=e[2]),this.y_range instanceof a.Range1d&&(this.y_range.reset_start=e[1],this.y_range.reset_end=e[3]),this._update_attribution()},e.prototype._on_tile_load=function(t,e){t.img=e.target,t.loaded=!0,this.request_render()},e.prototype._on_tile_cache_load=function(t,e){t.img=e.target,t.loaded=!0,t.finished=!0,this.notify_finished()},e.prototype._on_tile_error=function(t){t.finished=!0},e.prototype._create_tile=function(t,e,n,i,r){void 0===r&&(r=!1);var o=this.model.tile_source.normalize_xyz(t,e,n),s=o[0],a=o[1],l=o[2],c=this.pool.pop(),h={img:c,tile_coords:[t,e,n],normalized_coords:[s,a,l],quadkey:this.model.tile_source.tile_xyz_to_quadkey(t,e,n),cache_key:this.model.tile_source.tile_xyz_to_key(t,e,n),bounds:i,loaded:!1,finished:!1,x_coord:i[0],y_coord:i[3]};c.onload=r?this._on_tile_cache_load.bind(this,h):this._on_tile_load.bind(this,h),c.onerror=this._on_tile_error.bind(this,h),c.alt=\"\",c.src=this.model.tile_source.get_image_url(s,a,l),this.model.tile_source.tiles[h.cache_key]=h,this._tiles.push(h)},e.prototype._enforce_aspect_ratio=function(){if(this._last_height!==this.map_frame._height.value||this._last_width!==this.map_frame._width.value){var t=this.get_extent(),e=this.model.tile_source.get_level_by_extent(t,this.map_frame._height.value,this.map_frame._width.value),n=this.model.tile_source.snap_to_zoom_level(t,this.map_frame._height.value,this.map_frame._width.value,e);this.x_range.setv({start:n[0],end:n[2]}),this.y_range.setv({start:n[1],end:n[3]}),this.extent=n,this._last_height=this.map_frame._height.value,this._last_width=this.map_frame._width.value}},e.prototype.has_finished=function(){if(!t.prototype.has_finished.call(this))return!1;if(0===this._tiles.length)return!1;for(var e=0,n=this._tiles;ei&&(r=this.extent,l=i,c=!0),c&&(this.x_range.setv({x_range:{start:r[0],end:r[2]}}),this.y_range.setv({start:r[1],end:r[3]}),this.extent=r),this.extent=r;for(var u=e.get_tiles_by_extent(r,l),_=[],d=[],p=[],f=[],m=0,v=u;m=a?[1,p/a]:[a/p,1])[0];return t[0]<=e[0]?(i=t[0],(r=t[0]+_*f)>l&&(r=l)):(r=t[0],(i=t[0]-_*f)h&&(o=h)):(o=t[1],(s=t[1]-_/a)r.end)&&(this.v_axis_only=!0),(no.end)&&(this.h_axis_only=!0)}null!=this.model.document&&this.model.document.interactive_start(this.plot_model)},e.prototype._pan=function(t){this._update(t.deltaX,t.deltaY),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)},e.prototype._pan_end=function(t){this.h_axis_only=!1,this.v_axis_only=!1,null!=this.pan_info&&this.plot_view.push_state(\"pan\",{range:this.pan_info})},e.prototype._update=function(t,e){var n,i,r,o,s,a,l=this.plot_view.frame,c=t-this.last_dx,h=e-this.last_dy,u=l.bbox.h_range,_=u.start-c,d=u.end-c,p=l.bbox.v_range,f=p.start-h,m=p.end-h,v=this.model.dimensions;\"width\"!=v&&\"both\"!=v||this.v_axis_only?(n=u.start,i=u.end,r=0):(n=_,i=d,r=-c),\"height\"!=v&&\"both\"!=v||this.h_axis_only?(o=p.start,s=p.end,a=0):(o=f,s=m,a=-h),this.last_dx=t,this.last_dy=e;var g=l.xscales,y=l.yscales,b={};for(var w in g){var x=g[w],A=x.r_invert(n,i),k=A[0],C=A[1];b[w]={start:k,end:C}}var T={};for(var S in y){var x=y[S],M=x.r_invert(o,s),k=M[0],C=M[1];T[S]={start:k,end:C}}this.pan_info={xrs:b,yrs:T,sdx:r,sdy:a},this.plot_view.update_range(this.pan_info,!0)},e.__name__=\"PanToolView\",e}(r.GestureToolView);n.PanToolView=a;var l=function(t){function e(e){var n=t.call(this,e)||this;return n.tool_name=\"Pan\",n.event_type=\"pan\",n.default_order=10,n}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=a,this.define({dimensions:[o.Dimensions,\"both\"]})},Object.defineProperty(e.prototype,\"tooltip\",{get:function(){return this._get_dim_tooltip(\"Pan\",this.dimensions)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"icon\",{get:function(){switch(this.dimensions){case\"both\":return s.bk_tool_icon_pan;case\"width\":return s.bk_tool_icon_xpan;case\"height\":return s.bk_tool_icon_ypan}},enumerable:!0,configurable:!0}),e.__name__=\"PanTool\",e}(r.GestureTool);n.PanTool=l,l.initClass()},function(t,e,n){var i=t(426),r=t(274),o=t(74),s=t(5),a=t(18),l=t(24),c=t(306),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.data={sx:[],sy:[]}},e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.properties.active.change,function(){return e._active_change()})},e.prototype._active_change=function(){this.model.active||this._clear_data()},e.prototype._keyup=function(t){t.keyCode==s.Keys.Enter&&this._clear_data()},e.prototype._doubletap=function(t){var e=t.shiftKey;this._do_select(this.data.sx,this.data.sy,!0,e),this.plot_view.push_state(\"poly_select\",{selection:this.plot_view.get_selection()}),this._clear_data()},e.prototype._clear_data=function(){this.data={sx:[],sy:[]},this.model.overlay.update({xs:[],ys:[]})},e.prototype._tap=function(t){var e=t.sx,n=t.sy,i=this.plot_view.frame;i.bbox.contains(e,n)&&(this.data.sx.push(e),this.data.sy.push(n),this.model.overlay.update({xs:l.copy(this.data.sx),ys:l.copy(this.data.sy)}))},e.prototype._do_select=function(t,e,n,i){var r={type:\"poly\",sx:t,sy:e};this._select(r,n,i)},e.prototype._emit_callback=function(t){var e=this.computed_renderers[0],n=this.plot_view.frame,r=n.xscales[e.x_range_name],o=n.yscales[e.y_range_name],s=r.v_invert(t.sx),a=o.v_invert(t.sy),l=i.__assign({x:s,y:a},t);null!=this.model.callback&&this.model.callback.execute(this.model,{geometry:l})},e.__name__=\"PolySelectToolView\",e}(r.SelectToolView);n.PolySelectToolView=h;var u=function(){return new o.PolyAnnotation({level:\"overlay\",xs_units:\"screen\",ys_units:\"screen\",fill_color:{value:\"lightgrey\"},fill_alpha:{value:.5},line_color:{value:\"black\"},line_alpha:{value:1},line_width:{value:2},line_dash:{value:[4,4]}})},_=function(t){function e(e){var n=t.call(this,e)||this;return n.tool_name=\"Poly Select\",n.icon=c.bk_tool_icon_polygon_select,n.event_type=\"tap\",n.default_order=11,n}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=h,this.define({callback:[a.Any],overlay:[a.Instance,u]})},e.__name__=\"PolySelectTool\",e}(r.SelectTool);n.PolySelectTool=_,_.initClass()},function(t,e,n){var i=t(426),r=t(67),o=t(17),s=t(18),a=t(269),l=t(306);function c(t){switch(t){case 1:return 2;case 2:return 1;case 4:return 5;case 5:return 4;default:return t}}function h(t,e,n,i){if(null==e)return!1;var r=n.compute(e);return Math.abs(t-r)r.right)&&(o=!1)}if(null!=r.bottom&&null!=r.top){var a=i.invert(e);(ar.top)&&(o=!1)}return o}function _(t,e,n){var i=0;return t>=n.start&&t<=n.end&&(i+=1),e>=n.start&&e<=n.end&&(i+=1),i}function d(t,e,n,i){var r=e.compute(t),o=e.invert(r+n);return o>=i.start&&o<=i.end?o:t}function p(t,e,n){return t>e.start?(e.end=t,n):(e.end=e.start,e.start=t,c(n))}function f(t,e,n){return t=h&&(t.start=l,t.end=c)}n.flip_side=c,n.is_near=h,n.is_inside=u,n.sides_inside=_,n.compute_value=d,n.compute_end_side=p,n.compute_start_side=f,n.update_range=m;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.side=0,this.model.update_overlay_from_ranges()},e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),null!=this.model.x_range&&this.connect(this.model.x_range.change,function(){return e.model.update_overlay_from_ranges()}),null!=this.model.y_range&&this.connect(this.model.y_range.change,function(){return e.model.update_overlay_from_ranges()})},e.prototype._pan_start=function(t){this.last_dx=0,this.last_dy=0;var e=this.model.x_range,n=this.model.y_range,i=this.plot_view.frame,o=i.xscales.default,s=i.yscales.default,a=this.model.overlay,l=a.left,c=a.right,_=a.top,d=a.bottom,p=this.model.overlay.properties.line_width.value()+r.EDGE_TOLERANCE;null!=e&&this.model.x_interaction&&(h(t.sx,l,o,p)?this.side=1:h(t.sx,c,o,p)?this.side=2:u(t.sx,t.sy,o,s,a)&&(this.side=3)),null!=n&&this.model.y_interaction&&(0==this.side&&h(t.sy,d,s,p)&&(this.side=4),0==this.side&&h(t.sy,_,s,p)?this.side=5:u(t.sx,t.sy,o,s,this.model.overlay)&&(3==this.side?this.side=7:this.side=6))},e.prototype._pan=function(t){var e=this.plot_view.frame,n=t.deltaX-this.last_dx,i=t.deltaY-this.last_dy,r=this.model.x_range,o=this.model.y_range,s=e.xscales.default,a=e.yscales.default;if(null!=r)if(3==this.side||7==this.side)m(r,s,n,e.x_range);else if(1==this.side){var l=d(r.start,s,n,e.x_range);this.side=f(l,r,this.side)}else if(2==this.side){var c=d(r.end,s,n,e.x_range);this.side=p(c,r,this.side)}if(null!=o)if(6==this.side||7==this.side)m(o,a,i,e.y_range);else if(4==this.side){o.start=d(o.start,a,i,e.y_range);var l=d(o.start,a,i,e.y_range);this.side=f(l,o,this.side)}else if(5==this.side){o.end=d(o.end,a,i,e.y_range);var c=d(o.end,a,i,e.y_range);this.side=p(c,o,this.side)}this.last_dx=t.deltaX,this.last_dy=t.deltaY},e.prototype._pan_end=function(t){this.side=0},e.__name__=\"RangeToolView\",e}(a.GestureToolView);n.RangeToolView=v;var g=function(){return new r.BoxAnnotation({level:\"overlay\",render_mode:\"canvas\",fill_color:\"lightgrey\",fill_alpha:{value:.5},line_color:{value:\"black\"},line_alpha:{value:1},line_width:{value:.5},line_dash:[2,2]})},y=function(t){function e(e){var n=t.call(this,e)||this;return n.tool_name=\"Range Tool\",n.icon=l.bk_tool_icon_range,n.event_type=\"pan\",n.default_order=1,n}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=v,this.define({x_range:[s.Instance,null],x_interaction:[s.Boolean,!0],y_range:[s.Instance,null],y_interaction:[s.Boolean,!0],overlay:[s.Instance,g]})},e.prototype.initialize=function(){t.prototype.initialize.call(this),this.overlay.in_cursor=\"grab\",this.overlay.ew_cursor=null!=this.x_range&&this.x_interaction?\"ew-resize\":null,this.overlay.ns_cursor=null!=this.y_range&&this.y_interaction?\"ns-resize\":null},e.prototype.update_overlay_from_ranges=function(){null==this.x_range&&null==this.y_range&&(this.overlay.left=null,this.overlay.right=null,this.overlay.bottom=null,this.overlay.top=null,o.logger.warn(\"RangeTool not configured with any Ranges.\")),null==this.x_range?(this.overlay.left=null,this.overlay.right=null):(this.overlay.left=this.x_range.start,this.overlay.right=this.x_range.end),null==this.y_range?(this.overlay.bottom=null,this.overlay.top=null):(this.overlay.bottom=this.y_range.start,this.overlay.top=this.y_range.end)},e.__name__=\"RangeTool\",e}(a.GestureTool);n.RangeTool=y,y.initClass()},function(t,e,n){var i=t(426),r=t(269),o=t(197),s=t(198),a=t(289),l=t(18),c=t(5),h=t(3),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),Object.defineProperty(e.prototype,\"computed_renderers\",{get:function(){var t=this.model.renderers,e=this.plot_model.renderers,n=this.model.names;return a.compute_renderers(t,e,n)},enumerable:!0,configurable:!0}),e.prototype._computed_renderers_by_data_source=function(){for(var t={},e=0,n=this.computed_renderers;e.9?e=.9:e<-.9&&(e=-.9),this._update_ranges(e)},e.prototype._update_ranges=function(t){var e,n,i,r,o=this.plot_view.frame,s=o.bbox.h_range,a=o.bbox.v_range,l=[s.start,s.end],c=l[0],h=l[1],u=[a.start,a.end],_=u[0],d=u[1];switch(this.model.dimension){case\"height\":var p=Math.abs(d-_);e=c,n=h,i=_-p*t,r=d-p*t;break;case\"width\":var f=Math.abs(h-c);e=c-f*t,n=h-f*t,i=_,r=d;break;default:throw new Error(\"this shouldn't have happened\")}var m=o.xscales,v=o.yscales,g={};for(var y in m){var b=m[y],w=b.r_invert(e,n),x=w[0],A=w[1];g[y]={start:x,end:A}}var k={};for(var C in v){var b=v[C],T=b.r_invert(i,r),x=T[0],A=T[1];k[C]={start:x,end:A}}var S={xrs:g,yrs:k,factor:t};this.plot_view.push_state(\"wheel_pan\",{range:S}),this.plot_view.update_range(S,!1,!0),null!=this.model.document&&this.model.document.interactive_start(this.plot_model)},e.__name__=\"WheelPanToolView\",e}(r.GestureToolView);n.WheelPanToolView=a;var l=function(t){function e(e){var n=t.call(this,e)||this;return n.tool_name=\"Wheel Pan\",n.icon=s.bk_tool_icon_wheel_pan,n.event_type=\"scroll\",n.default_order=12,n}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=a,this.define({dimension:[o.Dimension,\"width\"]}),this.internal({speed:[o.Number,.001]})},Object.defineProperty(e.prototype,\"tooltip\",{get:function(){return this._get_dim_tooltip(this.tool_name,this.dimension)},enumerable:!0,configurable:!0}),e.__name__=\"WheelPanTool\",e}(r.GestureTool);n.WheelPanTool=l,l.initClass()},function(t,e,n){var i=t(426),r=t(269),o=t(48),s=t(18),a=t(31),l=t(306),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._pinch=function(t){var e,n=t.sx,i=t.sy,r=t.scale;e=r>=1?20*(r-1):-20/r,this._scroll({type:\"wheel\",sx:n,sy:i,delta:e})},e.prototype._scroll=function(t){var e=this.plot_view.frame,n=e.bbox.h_range,i=e.bbox.v_range,r=t.sx,s=t.sy,a=this.model.dimensions,l=(\"width\"==a||\"both\"==a)&&n.start=0){var v=_.match(/\\$color(\\[.*\\])?:(\\w*)/),y=v[1],b=void 0===y?\"\":y,w=v[2],x=t.get_column(w);if(null==x){var A=u.span({},w+\" unknown\");m.appendChild(A);continue}var k=b.indexOf(\"hex\")>=0,C=b.indexOf(\"swatch\")>=0,T=f.isNumber(e)?x[e]:null;if(null==T){var S=u.span({},\"(null)\");m.appendChild(S);continue}k&&(T=d.color2hex(T));var r=u.span({},T);m.appendChild(r),C&&(r=u.span({class:g.bk_tooltip_color_block,style:{backgroundColor:T}},\" \"),m.appendChild(r))}else{var r=u.span();r.innerHTML=h.replace_placeholders(_.replace(\"$~\",\"$data_\"),t,e,this.model.formatters,n),m.appendChild(r)}}return o},e.__name__=\"HoverToolView\",e}(r.InspectToolView);n.HoverToolView=w;var x=function(t){function e(e){var n=t.call(this,e)||this;return n.tool_name=\"Hover\",n.icon=v.bk_tool_icon_hover,n}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=w,this.define({tooltips:[_.Any,[[\"index\",\"$index\"],[\"data (x, y)\",\"($x, $y)\"],[\"screen (x, y)\",\"($sx, $sy)\"]]],formatters:[_.Any,{}],renderers:[_.Any,\"auto\"],names:[_.Array,[]],mode:[_.HoverMode,\"mouse\"],point_policy:[_.PointPolicy,\"snap_to_data\"],line_policy:[_.LinePolicy,\"nearest\"],show_arrow:[_.Boolean,!0],anchor:[_.Anchor,\"center\"],attachment:[_.TooltipAttachment,\"horizontal\"],callback:[_.Any]})},e.__name__=\"HoverTool\",e}(r.InspectTool);n.HoverTool=x,x.initClass()},function(t,e,n){var i=t(426),r=t(259),o=t(283),s=t(18),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.__name__=\"InspectToolView\",e}(r.ButtonToolView);n.InspectToolView=a;var l=function(t){function e(e){var n=t.call(this,e)||this;return n.event_type=\"move\",n}return i.__extends(e,t),e.initClass=function(){this.prototype.button_view=o.OnOffButtonView,this.define({toggleable:[s.Boolean,!0]}),this.override({active:!0})},e.__name__=\"InspectTool\",e}(r.ButtonTool);n.InspectTool=l,l.initClass()},function(t,e,n){var i=t(426),r=t(259),o=t(309),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.model.active?this.el.classList.add(o.bk_active):this.el.classList.remove(o.bk_active)},e.prototype._clicked=function(){var t=this.model.active;this.model.active=!t},e.__name__=\"OnOffButtonView\",e}(r.ButtonToolButtonView);n.OnOffButtonView=s},function(t,e,n){var i=t(426),r=t(18),o=t(50),s=t(24),a=t(62),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),Object.defineProperty(e.prototype,\"plot_view\",{get:function(){return this.parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"plot_model\",{get:function(){return this.parent.model},enumerable:!0,configurable:!0}),e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.properties.active.change,function(){e.model.active?e.activate():e.deactivate()})},e.prototype.activate=function(){},e.prototype.deactivate=function(){},e.__name__=\"ToolView\",e}(o.View);n.ToolView=l;var c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.internal({active:[r.Boolean,!1]})},Object.defineProperty(e.prototype,\"synthetic_renderers\",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype._get_dim_tooltip=function(t,e){switch(e){case\"width\":return t+\" (x-axis)\";case\"height\":return t+\" (y-axis)\";case\"both\":return t}},e.prototype._get_dim_limits=function(t,e,n,i){var r,o=t[0],a=t[1],l=e[0],c=e[1],h=n.bbox.h_range;\"width\"==i||\"both\"==i?(r=[s.min([o,l]),s.max([o,l])],r=[s.max([r[0],h.start]),s.min([r[1],h.end])]):r=[h.start,h.end];var u,_=n.bbox.v_range;return\"height\"==i||\"both\"==i?(u=[s.min([a,c]),s.max([a,c])],u=[s.max([u[0],_.start]),s.min([u[1],_.end])]):u=[_.start,_.end],[r,u]},e.__name__=\"Tool\",e}(a.Model);n.Tool=c,c.initClass()},function(t,e,n){var i=t(426),r=t(18),o=t(22),s=t(62),a=t(282),l=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({tools:[r.Array,[]],active:[r.Boolean,!1],disabled:[r.Boolean,!1]})},Object.defineProperty(e.prototype,\"button_view\",{get:function(){return this.tools[0].button_view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"event_type\",{get:function(){return this.tools[0].event_type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"tooltip\",{get:function(){return this.tools[0].tooltip},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"tool_name\",{get:function(){return this.tools[0].tool_name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"icon\",{get:function(){return this.tools[0].computed_icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"computed_icon\",{get:function(){return this.icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,\"toggleable\",{get:function(){var t=this.tools[0];return t instanceof a.InspectTool&&t.toggleable},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.do=new o.Signal0(this,\"do\")},e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.do,function(){return e.doit()}),this.connect(this.properties.active.change,function(){return e.set_active()})},e.prototype.doit=function(){for(var t=0,e=this.tools;t0)if(\"multi\"==_)for(var k=0,C=A;k0&&this.actions.push(w(A))}for(var x in this.inspectors=[],n){var A=n[x];A.length>0&&this.inspectors.push(w(A,!0))}for(var E in this.gestures){var d=this.gestures[E];0!=d.tools.length&&(d.tools=o.sort_by(d.tools,function(t){return t.default_order}),\"pinch\"!=E&&\"scroll\"!=E&&\"multi\"!=E&&(d.tools[0].active=!0))}},e.__name__=\"ProxyToolbar\",e}(s.ToolbarBase);n.ProxyToolbar=h;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(){this.model.toolbar.toolbar_location=this.model.toolbar_location,t.prototype.initialize.call(this)},Object.defineProperty(e.prototype,\"child_models\",{get:function(){return[this.model.toolbar]},enumerable:!0,configurable:!0}),e.prototype._update_layout=function(){this.layout=new c.ContentBox(this.child_views[0].el);var t=this.model.toolbar;t.horizontal?this.layout.set_sizing({width_policy:\"fit\",min_width:100,height_policy:\"fixed\"}):this.layout.set_sizing({width_policy:\"fixed\",height_policy:\"fit\",min_height:100})},e.__name__=\"ToolbarBoxView\",e}(l.LayoutDOMView);n.ToolbarBoxView=u;var _=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=u,this.define({toolbar:[r.Instance],toolbar_location:[r.Location,\"right\"]})},e.__name__=\"ToolbarBox\",e}(l.LayoutDOM);n.ToolbarBox=_,_.initClass()},function(t,e,n){var i=t(24);n.compute_renderers=function(t,e,n){if(null==t)return[];var r=\"auto\"==t?e:t;return n.length>0&&(r=r.filter(function(t){return i.includes(n,t.name)})),r}},function(t,e,n){var i=t(426),r=t(297),o=t(18),s=t(35),a=t(40),l=function(e){function n(t){return e.call(this,t)||this}return i.__extends(n,e),n.initClass=function(){this.define({args:[o.Any,{}],func:[o.String,\"\"],v_func:[o.String,\"\"],use_strict:[o.Boolean,!1]})},Object.defineProperty(n.prototype,\"names\",{get:function(){return s.keys(this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,\"values\",{get:function(){return s.values(this.args)},enumerable:!0,configurable:!0}),n.prototype._make_transform=function(t,e){var n=this.use_strict?a.use_strict(e):e;return new(Function.bind.apply(Function,[void 0].concat(this.names,[t,\"require\",\"exports\",n])))},Object.defineProperty(n.prototype,\"scalar_transform\",{get:function(){return this._make_transform(\"x\",this.func)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,\"vector_transform\",{get:function(){return this._make_transform(\"xs\",this.v_func)},enumerable:!0,configurable:!0}),n.prototype.compute=function(e){return this.scalar_transform.apply(this,this.values.concat([e,t,{}]))},n.prototype.v_compute=function(e){return this.vector_transform.apply(this,this.values.concat([e,t,{}]))},n.__name__=\"CustomJSTransform\",n}(r.Transform);n.CustomJSTransform=l,l.initClass()},function(t,e,n){var i=t(426),r=t(297),o=t(192),s=t(18),a=t(46),l=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({value:[s.Number,0],range:[s.Instance]})},e.prototype.v_compute=function(t){var e;if(this.range instanceof o.FactorRange)e=this.range.v_synthetic(t);else{if(!a.isArrayableOf(t,a.isNumber))throw new Error(\"unexpected\");e=t}for(var n=new Float64Array(e.length),i=0;ie.x?-1:t.x==e.x?0:1}):r.sort(function(t,e){return t.xthis._x_sorted[this._x_sorted.length-1])return NaN}else{if(tthis._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}if(t==this._x_sorted[0])return this._y_sorted[0];var e=r.find_last_index(this._x_sorted,function(e){return ethis._x_sorted[this._x_sorted.length-1])return NaN}else{if(tthis._x_sorted[this._x_sorted.length-1])return this._y_sorted[this._y_sorted.length-1]}var e;switch(this.mode){case\"after\":e=s.find_last_index(this._x_sorted,function(e){return t>=e});break;case\"before\":e=s.find_index(this._x_sorted,function(e){return t<=e});break;case\"center\":var n=this._x_sorted.map(function(e){return Math.abs(e-t)}),i=s.min(n);e=s.find_index(n,function(t){return i===t});break;default:throw new Error(\"unknown mode: \"+this.mode)}return-1!=e?this._y_sorted[e]:NaN},e.__name__=\"StepInterpolator\",e}(r.Interpolator);n.StepInterpolator=a,a.initClass()},function(t,e,n){var i=t(426),r=t(62),o=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.__name__=\"Transform\",e}(r.Model);n.Transform=o},function(t,e,n){var i,r,o,s;t(379),t(372),t(389),\"undefined\"==typeof Promise&&t(378).polyfill(),void 0===Math.log10&&(Math.log10=function(t){return Math.log(t)*Math.LOG10E}),void 0===Number.isInteger&&(Number.isInteger=function(t){return\"number\"==typeof t&&isFinite(t)&&Math.floor(t)===t}),void 0===String.prototype.repeat&&(String.prototype.repeat=function(t){if(null==this)throw new TypeError(\"can't convert \"+this+\" to object\");var e=\"\"+this;if((t=+t)!=t&&(t=0),t<0)throw new RangeError(\"repeat count must be non-negative\");if(t==1/0)throw new RangeError(\"repeat count must be less than infinity\");if(t=Math.floor(t),0==e.length||0==t)return\"\";if(e.length*t>=1<<28)throw new RangeError(\"repeat count must not overflow maximum string size\");for(var n=\"\";1==(1&t)&&(n+=e),0!=(t>>>=1);)e+=e;return n}),void 0===Array.from&&(Array.from=(i=Object.prototype.toString,r=function(t){return\"function\"==typeof t||\"[object Function]\"===i.call(t)},o=Math.pow(2,53)-1,s=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),o)},function(t){var e=Object(t);if(null==t)throw new TypeError(\"Array.from requires an array-like object - not null or undefined\");var n,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!r(i))throw new TypeError(\"Array.from: when provided, the second argument must be a function\");arguments.length>2&&(n=arguments[2])}for(var o=s(e.length),a=r(this)?Object(new this(o)):new Array(o),l=0\n", " // 13. If IsConstructor(C) is true, then\n", " ;l0)throw new Error(\"BokehJS only supports receiving buffers, not sending\");var n=JSON.stringify(this.header),i=JSON.stringify(this.metadata),r=JSON.stringify(this.content);t.send(n),t.send(i),t.send(r)},t.prototype.msgid=function(){return this.header.msgid},t.prototype.msgtype=function(){return this.header.msgtype},t.prototype.reqid=function(){return this.header.reqid},t.prototype.problem=function(){return\"msgid\"in this.header?\"msgtype\"in this.header?null:\"No msgtype in header\":\"No msgid in header\"},t.__name__=\"Message\",t}();n.Message=r},function(t,e,n){var i=t(300),r=function(){function t(){this.message=null,this._partial=null,this._fragments=[],this._buf_header=null,this._current_consumer=this._HEADER}return t.prototype.consume=function(t){this._current_consumer(t)},t.prototype._HEADER=function(t){this._assume_text(t),this.message=null,this._partial=null,this._fragments=[t],this._buf_header=null,this._current_consumer=this._METADATA},t.prototype._METADATA=function(t){this._assume_text(t),this._fragments.push(t),this._current_consumer=this._CONTENT},t.prototype._CONTENT=function(t){this._assume_text(t),this._fragments.push(t);var e=this._fragments.slice(0,3),n=e[0],r=e[1],o=e[2];this._partial=i.Message.assemble(n,r,o),this._check_complete()},t.prototype._BUFFER_HEADER=function(t){this._assume_text(t),this._buf_header=t,this._current_consumer=this._BUFFER_PAYLOAD},t.prototype._BUFFER_PAYLOAD=function(t){this._assume_binary(t),this._partial.assemble_buffer(this._buf_header,t),this._check_complete()},t.prototype._assume_text=function(t){if(t instanceof ArrayBuffer)throw new Error(\"Expected text fragment but received binary fragment\")},t.prototype._assume_binary=function(t){if(!(t instanceof ArrayBuffer))throw new Error(\"Expected binary fragment but received text fragment\")},t.prototype._check_complete=function(){this._partial.complete()?(this.message=this._partial,this._current_consumer=this._HEADER):this._current_consumer=this._BUFFER_HEADER},t.__name__=\"Receiver\",t}();n.Receiver=r},function(t,e,n){n.safely=function(t,e){void 0===e&&(e=!1);try{return t()}catch(t){if(function(t){var e=document.createElement(\"div\");e.style.backgroundColor=\"#f2dede\",e.style.border=\"1px solid #a94442\",e.style.borderRadius=\"4px\",e.style.display=\"inline-block\",e.style.fontFamily=\"sans-serif\",e.style.marginTop=\"5px\",e.style.minWidth=\"200px\",e.style.padding=\"5px 5px 5px 10px\",e.classList.add(\"bokeh-error-box-into-flames\");var n=document.createElement(\"span\");n.style.backgroundColor=\"#a94442\",n.style.borderRadius=\"0px 4px 0px 0px\",n.style.color=\"white\",n.style.cursor=\"pointer\",n.style.cssFloat=\"right\",n.style.fontSize=\"0.8em\",n.style.margin=\"-6px -6px 0px 0px\",n.style.padding=\"2px 5px 4px 5px\",n.title=\"close\",n.setAttribute(\"aria-label\",\"close\"),n.appendChild(document.createTextNode(\"x\")),n.addEventListener(\"click\",function(){return s.removeChild(e)});var i=document.createElement(\"h3\");i.style.color=\"#a94442\",i.style.margin=\"8px 0px 0px 0px\",i.style.padding=\"0px\",i.appendChild(document.createTextNode(\"Bokeh Error\"));var r=document.createElement(\"pre\");r.style.whiteSpace=\"unset\",r.style.overflowX=\"auto\";var o=t instanceof Error?t.message:t;r.appendChild(document.createTextNode(o)),e.appendChild(n),e.appendChild(i),e.appendChild(r);var s=document.getElementsByTagName(\"body\")[0];s.insertBefore(e,s.firstChild)}(t),e)return;throw t}}},function(t,e,n){t(311);var i=t(5);i.styles.append(\".bk-root .bk-shading {\\n position: absolute;\\n display: block;\\n border: 1px dashed green;\\n}\\n\"),n.bk_annotation=\"bk-annotation\",n.bk_shading=\"bk-shading\",n.bk_annotation_child=\"bk-annotation-child\"},function(t,e,n){t(311);var i=t(5);i.styles.append(\".bk-root .bk-btn {\\n height: 100%;\\n display: inline-block;\\n text-align: center;\\n vertical-align: middle;\\n white-space: nowrap;\\n cursor: pointer;\\n padding: 6px 12px;\\n font-size: 12px;\\n border: 1px solid transparent;\\n border-radius: 4px;\\n outline: 0;\\n user-select: none;\\n -ms-user-select: none;\\n -moz-user-select: none;\\n -webkit-user-select: none;\\n}\\n.bk-root .bk-btn:hover,\\n.bk-root .bk-btn:focus {\\n text-decoration: none;\\n}\\n.bk-root .bk-btn:active,\\n.bk-root .bk-btn.bk-active {\\n background-image: none;\\n box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);\\n}\\n.bk-root .bk-btn[disabled] {\\n cursor: not-allowed;\\n pointer-events: none;\\n opacity: 0.65;\\n box-shadow: none;\\n}\\n.bk-root .bk-btn-default {\\n color: #333;\\n background-color: #fff;\\n border-color: #ccc;\\n}\\n.bk-root .bk-btn-default:hover {\\n background-color: #f5f5f5;\\n border-color: #b8b8b8;\\n}\\n.bk-root .bk-btn-default.bk-active {\\n background-color: #ebebeb;\\n border-color: #adadad;\\n}\\n.bk-root .bk-btn-default[disabled],\\n.bk-root .bk-btn-default[disabled]:hover,\\n.bk-root .bk-btn-default[disabled]:focus,\\n.bk-root .bk-btn-default[disabled]:active,\\n.bk-root .bk-btn-default[disabled].bk-active {\\n background-color: #e6e6e6;\\n border-color: #ccc;\\n}\\n.bk-root .bk-btn-primary {\\n color: #fff;\\n background-color: #428bca;\\n border-color: #357ebd;\\n}\\n.bk-root .bk-btn-primary:hover {\\n background-color: #3681c1;\\n border-color: #2c699e;\\n}\\n.bk-root .bk-btn-primary.bk-active {\\n background-color: #3276b1;\\n border-color: #285e8e;\\n}\\n.bk-root .bk-btn-primary[disabled],\\n.bk-root .bk-btn-primary[disabled]:hover,\\n.bk-root .bk-btn-primary[disabled]:focus,\\n.bk-root .bk-btn-primary[disabled]:active,\\n.bk-root .bk-btn-primary[disabled].bk-active {\\n background-color: #506f89;\\n border-color: #357ebd;\\n}\\n.bk-root .bk-btn-success {\\n color: #fff;\\n background-color: #5cb85c;\\n border-color: #4cae4c;\\n}\\n.bk-root .bk-btn-success:hover {\\n background-color: #4eb24e;\\n border-color: #409240;\\n}\\n.bk-root .bk-btn-success.bk-active {\\n background-color: #47a447;\\n border-color: #398439;\\n}\\n.bk-root .bk-btn-success[disabled],\\n.bk-root .bk-btn-success[disabled]:hover,\\n.bk-root .bk-btn-success[disabled]:focus,\\n.bk-root .bk-btn-success[disabled]:active,\\n.bk-root .bk-btn-success[disabled].bk-active {\\n background-color: #667b66;\\n border-color: #4cae4c;\\n}\\n.bk-root .bk-btn-warning {\\n color: #fff;\\n background-color: #f0ad4e;\\n border-color: #eea236;\\n}\\n.bk-root .bk-btn-warning:hover {\\n background-color: #eea43b;\\n border-color: #e89014;\\n}\\n.bk-root .bk-btn-warning.bk-active {\\n background-color: #ed9c28;\\n border-color: #d58512;\\n}\\n.bk-root .bk-btn-warning[disabled],\\n.bk-root .bk-btn-warning[disabled]:hover,\\n.bk-root .bk-btn-warning[disabled]:focus,\\n.bk-root .bk-btn-warning[disabled]:active,\\n.bk-root .bk-btn-warning[disabled].bk-active {\\n background-color: #c89143;\\n border-color: #eea236;\\n}\\n.bk-root .bk-btn-danger {\\n color: #fff;\\n background-color: #d9534f;\\n border-color: #d43f3a;\\n}\\n.bk-root .bk-btn-danger:hover {\\n background-color: #d5433e;\\n border-color: #bd2d29;\\n}\\n.bk-root .bk-btn-danger.bk-active {\\n background-color: #d2322d;\\n border-color: #ac2925;\\n}\\n.bk-root .bk-btn-danger[disabled],\\n.bk-root .bk-btn-danger[disabled]:hover,\\n.bk-root .bk-btn-danger[disabled]:focus,\\n.bk-root .bk-btn-danger[disabled]:active,\\n.bk-root .bk-btn-danger[disabled].bk-active {\\n background-color: #a55350;\\n border-color: #d43f3a;\\n}\\n.bk-root .bk-btn-group {\\n height: 100%;\\n display: flex;\\n display: -webkit-flex;\\n flex-wrap: nowrap;\\n -webkit-flex-wrap: nowrap;\\n align-items: center;\\n -webkit-align-items: center;\\n flex-direction: row;\\n -webkit-flex-direction: row;\\n}\\n.bk-root .bk-btn-group > .bk-btn {\\n flex-grow: 1;\\n -webkit-flex-grow: 1;\\n}\\n.bk-root .bk-btn-group > .bk-btn + .bk-btn {\\n margin-left: -1px;\\n}\\n.bk-root .bk-btn-group > .bk-btn:first-child:not(:last-child) {\\n border-bottom-right-radius: 0;\\n border-top-right-radius: 0;\\n}\\n.bk-root .bk-btn-group > .bk-btn:not(:first-child):last-child {\\n border-bottom-left-radius: 0;\\n border-top-left-radius: 0;\\n}\\n.bk-root .bk-btn-group > .bk-btn:not(:first-child):not(:last-child) {\\n border-radius: 0;\\n}\\n.bk-root .bk-btn-group .bk-dropdown-toggle {\\n flex: 0 0 0;\\n -webkit-flex: 0 0 0;\\n padding: 6px 6px;\\n}\\n\"),n.bk_btn=\"bk-btn\",n.bk_btn_group=\"bk-btn-group\",n.bk_btn_default=\"bk-btn-default\",n.bk_btn_primary=\"bk-btn-primary\",n.bk_btn_success=\"bk-btn-success\",n.bk_btn_warning=\"bk-btn-warning\",n.bk_btn_danger=\"bk-btn-danger\",n.bk_btn_type=function(t){switch(t){case\"default\":return n.bk_btn_default;case\"primary\":return n.bk_btn_primary;case\"success\":return n.bk_btn_success;case\"warning\":return n.bk_btn_warning;case\"danger\":return n.bk_btn_danger}},n.bk_dropdown_toggle=\"bk-dropdown-toggle\"},function(t,e,n){t(311),n.bk_canvas=\"bk-canvas\",n.bk_canvas_map=\"bk-canvas-map\",n.bk_canvas_overlays=\"bk-canvas-overlays\",n.bk_canvas_events=\"bk-canvas-events\"},function(t,e,n){t(311);var i=t(5);i.styles.append('.bk-root .bk-tool-icon-box-select {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg0kduFrowAAAIdJREFUWMPtVtEKwCAI9KL//4e9DPZ3+wP3KgOjNZouFYI4C8q7s7DtB1lGIeMoRMRinCLXg/ML3EcFqpjjloOyZxRntxpwQ8HsgHYARKFAtSFrCg3TCdMFCE1BuuALEXJLjC4qENsFVXCESZw38/kWLOkC/K4PcOc/Hj03WkoDT3EaWW9egQul6CUbq90JTwAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .bk-tool-icon-box-zoom {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg82t254aQAAAkBJREFUWMPN11+E1FEUB/DPTFn2qaeIpcSwr5NlUyJiKWVXWUqvlUh/iE3RY9mUekkPPURtLKNRrFJEeuphGfUUaVliiX1aVjGs6aG7+XX9ZnZ+d2fTl2vmnHvPPfeee/79Sk+may2/UQq/q7Qu+bAJoxjHIKqB/wlfUMcMVqI9bLZ+DGIKwzlzQ2GcxCx2xwvKOUKlaHTiX8bHNspjDONHkOmJBW5jIof/FvPh/06MZOb6cRc7cGn1AKUE5cdzlM/gAr5F/O24H3xkFRfxAbVygvK+cIsspjGWo1zgjeFpxL+BvnLw7laBA4xjIFJwrgu52DoVjKdY4HBEX8dSF3JLYe1fe6UcYCii3xWQjdfuSTnAtoheKCC7GNED5Zx4L4qt61jbTLHA94geKSC7P7ZeShQ0Inoi1IJuEOeORooFXkV0FZNdZs5qvFfKAeqYy7nZ6yg//HG0MBfffh71lFrQDCW2EvEP4mt4okZUDftz9rmGZkotmMxJRtlisy+MTniAWrty3AlXw0hFM2TD89l+oNsoOJXjbIs4EpqNtTCLXbiZ0g+M4mFObj8U3vsNjoZCVcmk60ZwthpepLZkB/AsivWfOJZxtpUQHfWib7KWDwzjeegBZJSdKFiE2qJTFFTwElsi/unQ/awXrU4WGMD7nOJxBY/1EO2iYConq93CHT1GOwucjdqnRyFz+VcHmMNefMY9nNkA3SWUOoXhQviSWQ4huLIRFlirFixnQq/XaKXUgg2xQNGv4V7x/RcW+AXPB3h7H1PaiQAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .bk-tool-icon-zoom-in {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgsUBmL8iQAAA2JJREFUWMO9l12IlFUYx3//MzPrLpSjkm5oN4FFIWVEl66IQlFYwtLOzozsjHdGRSCRF0sfBEXRVV0FQuQiLm5CZNBFgRRaRLVFhbJ2EdiN5gbK7toObTPn6eYdPTvNzPvOBz5Xh/ec5/n/n89zXtEHmZqeSXSuXBz/3zfdKvBWJHQrwZuRcP0El+QkbQXeBX6WZEgm6TtJk5lM5o4Lc+cV6qpf4Ga20Tm338zeATItVK9Ker6yvPzp4NDQ3+XieGsCU9MzTYumGbhz7m4ze9/MHgvBgItACrgfGAj2jgAvAYs3wlEujjc13kii8YyZrXXOfWhmo9GnFUlvOOemarVapVqtkslksmb2KjARqL62ecuWN9NxbRInzrldAXhV0uFSIfdew7G/gNLU9MwS8CwSmE3Oz88fcXG5blfpqVRq0Ix8VIAAX0XgrVL7HDCHGcCaWrV60LUBN8Dae58aQIxEqcA592I9M610JL0cpG/U9TIHJNKY3RV5z0R+7Nd4HZ0P1g/2RMBuegLAsRMnb4vT8d5vqKfMzOgtAlADrkmqGywmiMBTwfr3dC9j1Xv/r6Tvg/5/5ejxE6cO7M9faVbQZrYNOFSPmqQvVo9FKexvi5uWX58943aM7DwAfBDY+FbSCxP5sdkGx55GeguzrUEXPaSo2pFkAbiSZQCAzZJOmdkjwd6SpB/M7KykQTPbA2wDhoIzRzcNDx9MJwGNIXdJ0mEzmwbujL7dbma7gd03A7lKfnTOvf74nl0r6bonTUbujRSUCrm2d4L3/kvn3JPe+8+BDW2i9o+kT7z3kxP5sYsA6W47oE64TsR7P9tQL4vA2mh9WdIscKxUyJ0M7aR7acOGzikD65EQLEjaa2ZXzMwDFeB6qZBbbLTRE4EGeSaozNOZgYFf8qP7lmIvs354n0qlHpB0T7B9Ogl4IgJJrmjv/SiQjbrkD+BMUkfSbYATPdckrTOzkciWAXOlQu5cYgLdPEIapud9wMOR9zVJH3ViKx333mtHMJvNuoWFhZ3A+ojMcja77njXBEKwJJfTcqUyCIQ34Mf7nnh0paMnXacFuGoC1mr3AtuDfLzd8Zuyl+rfuGn4HLAD+Az4qZQf+61TAj0Noj8vX6oC35SL43u7teG6rf5+iXppwW7/JUL5D03qaFRvvUe+AAAAAElFTkSuQmCC\");\\n}\\n.bk-root .bk-tool-icon-zoom-out {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgsHgty9VwAAA0FJREFUWMO9l09oXFUUxn/fmXlpItppi22k7UJBRSlVkCytSAuKUloIdjKT0El3FXVXdVFKRVAQV7qQohsNwdA0UFvBhYtqUVyIVlRaogtFQVq7qSTVjA3z3nHzBq/jvPmTN/Ss7rv3nvN99/y794kByMzcfE/7picn/jenmwWeRUI3E7wdCRskuCSTdDfwBvCtJEdySV9KOhpF0e0/LF5SqKtBgbv7ZjObcvfXgShD9Zqk5+orKx8Oj4z8NT05kU1gZm6+bdK0Azezu9z9hLs/HoIBvwAF4H5gKFh7B3gBWFY3460kWve4+3oze9fdx9OpVUmvmNlMHMf1RqNBFEUldz8OHAxUX9q6bduryut+Sfvc/Wz62ZD0fK1afjND9y3gGSRwv1GMojstTxUUCoVhdyopEYDzKXjWwZ4FFnEHWBc3Goet00m7lZlZYQixKw0FZnakGZksHUnHgvCN5/KARBH37enpOVg58H13HV0Kxg/kIuD/ngSA2ZMLt3bTSZJkUzNk7k4+D0AM/CGpaXCyBw/sC8Y/qZd2GpZiuL9YLN4Sx/HpoP5/c/exQ1OVq+1yyt13SLoArEsJnMjlgfOffvK3u58Kprab2QezJxfG2iTzUzI70wRPG9jbmpmb95SNB9mpzp7/j2yVdNbdx4K565K+cvfPJQ27+x5gBzAS7Hlvy+jo4WIvoC3kWpcvS3rR3eeAO9K529x9N7C7zX6AC2b28hN7Hl1Vt44niVq13LUjmtlYkiQfA5s6eO+GpDNJkhw9NFX5ueNt2ARodyF1IHIN2JiOl4H16fiKpK+B2Vq1vBAqFAf4IJkGNiIhWJK0192vunsC1IE/a9XycquNXARa5OnApeeioaHvKuP7r3dTGsiLqFAo7JR0T7B8rhfwXARa2us4UEqr5Ffgs151i/08oTNKdIO770ptObBYq5Yv5ibQq/sl3Qc8lJ4+lnSqH1vFfp9koZRKJVtaWnqkWXqSVkqlDe+vmUDWpZMlK/X6MBDegKf3P/nYaj8ErN9fqZBYEsf3Ag8G8Xit33BaniTcvGX0IvAw8BHwTa1y4Md+CeRqRL9fudwAvpienNi7Vhu21uwflOT+L+i1X2TJP57iUvUFtHWsAAAAAElFTkSuQmCC\");\\n}\\n.bk-root .bk-tool-icon-help {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABltpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIKICAgICAgICAgICAgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPHRpZmY6Q29tcHJlc3Npb24+NTwvdGlmZjpDb21wcmVzc2lvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzI8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+MzI8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MzI8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDpBODVDNDBDMzIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpBODVDNDBDNDIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpBODVDNDBDMTIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpBODVDNDBDMjIwQjMxMUU0ODREQUYzNzM5QTM2MjBCRTwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPGRjOnN1YmplY3Q+CiAgICAgICAgICAgIDxyZGY6U2VxLz4KICAgICAgICAgPC9kYzpzdWJqZWN0PgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxNjoxMToyOCAxMToxMTo4MjwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+UGl4ZWxtYXRvciAzLjY8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cphjt2AAAAT7SURBVFgJxRdbaFxFdGb2bhui227BWrsVKYgf2kJUbP9EUPuzEB803WTXJjH61Q/7Ya1+CMYKEVTsh4J/EpvY7BoabUiNiA8s1p+4KIhpoUUEselHqyS76TbZ3HuP58ydc3d2u4+IkQxczpz3mZkzZ86VYpXjvenpjZsLhUcliE4AuUuASAgptmt1EFdwPiclzIIUUwubNn17OJlcXo1p2UpodHRiux9xB1Eug1+slbzhFxGOKc851tu7/0oznYYBDA8Pt0U2tL8KQryIq2tvZqQhD0QJHRz3yqWhgYGBpXpydQMwqz6NCnurleCSADkJEfgKfOePqL80R/wV1ZaQyr1LenKfkPCkEPKeaj0xg7vxVL3duCmA0Vyuw/fl52hgBxsBED+h4Cv9z3R/zbRm8MTJTx7HQN7GQB6w5C4L4SX7M5lfLBpurjXMyvNIShiyi0l1pL8n9b7EDGPR8fHxzSsQ6XDB3618/xqo6Pk25V5MpVJllgHM1BO58RdQ612kOYZ+GXdij70TYQB05mpj+1kU5G2fB+l3PZtOf8NGx6ambnMXb3yAxg8wjSEG6OKKR9oicBQD+ZvpH2Wzj0lQpxCPG9qMv1x6hHNCsSAlHM7ZOa682vlI9tRDbvHGbD3nZAPpDoD/3JIrLpAs26UFkC3EMUA99hpfGtEBfJjNJnS2Gwnadnvl+Xw+iuc3DAJuNyIaSCHpilVldyDjjUxj3WDZIAhxhHHyRcdNuA7AAfUaXzVKODpzFiZ4/uLvh5G+m2no+C/pyIf7MqlEJB7bpqR6nXkEUfbeawuLaZsW2ISfNQ2vtaktQlGFQyIVGT0o2+2EC4iQNGwjBIN9qdQ5Qg4mk4X4rW3vCClLtowE2FOFUxKDfNmiZci3ovKKRFPh4FK9q4Zbdr+lKKJiA13TcHR2dmLBgdmQ0GAS2MZaEowY+XbAk09IvgtYZGp16SyvFhaHcIUh645t8T9DBCcnz5zZ4hZLu3DzK2QlL1QQa0Y+pHiJKPSuOGj3PmZTheM5w2TwqBxnvBZOTk7G5gvXJ5Aelms8wnJURL+olSWcfEhf6gDoUXPMq6ZlqbzWU2pE+3hi4s6F68tfIj9cBMlikr7Z0/P0b/X0yIcUXsDCF1WhtL4OROHaXk+xlkbV0Cu732Nmhc4peaWSg73pA8dq5RkvO37ldUTfXCKZv2q45MkhvG87WQEzpCCUSvV1d9GONBy3lMvgKSwrZig8gjAietWY0QriylO2jIo4yVbOSb7KB/qmI9BPKjHpSSXYauRyn92Nq9/Kcrj13x3s3v8D481glQ/0raiNYgX9njPSBOImbrHZePl+tfFmc9sH+Xaoh8NjOKSVdDMhjjYzQLy+dFceH5+IJQf9VYXX4tROg4ZFU8m31M3mfPEqUoJqCGJfvWpo2xnNfdrhC28n06SCeSzNZxlvBINGRXCtKS7EY1uV6V7HWAm38y1cXaXsMcOCvr9ySPj+af7A1U2HJXHzVNvUXVLIGyPf+jV0pf8GHoN+TLAyPkidTCi2RpPApmnR0Bd1zGRaB/B8Oj2HSw7LLbVR1MmskW8RdEWVXSJf3JbpAMgRtc4IZoxTh9qotQjCasm46M0YX9pV1VmbpvRH5OwwgdRtSg2vKaAz/1dNKVtb17Y8DCL4HVufHxMOYl1/zTgIgiYvBnFKfaNp3YjTdPz3n9Na8//X7/k/O1tdwopcZlcAAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-hover {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4oVHp0SwAAAQJJREFUWMPtlsENgzAMRb8RQ5VJItFDOgaZAMaAA0iZpN3KPZSoEEHSQBCViI/G8pfNt/KAFFcPshPdoAGgZkYVVYjQAFCyFLN8tlAbXRwAxp61nc9XCkGERpZCxRDvBl0zoxp7K98GAACxxH29srNNmPsK2l7zHoHHXZDr+/9vwDfB3kgeSB5IHkgeOH0DmesJjSXi6pUvkYt5u9teVy6aWREDM0D0BRvmGRV5N6DsQkMzI64FidtI5t3AOKWaFhuioY8dlYf9TO1PREUh/9HVeAqzIThHgWZ6MuNmC1jiL1mK4pAzlKUojEmNsxcmL0J60tazWjLZFpClPbd9BMJfL95145YajN5RHQAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .bk-tool-icon-crosshair {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADEUlEQVRYR81XXVIaQRCeHqug8CXmBNETaE4gniDwIgpVspxAbxC9ATkBkCpQ8gKeQDiB5AQxNyAvUlrldr7eHxyGXZi1rMJ5opbp7m++7un+htSGF204vsoMoNXrlzSpfWa1oxQfhAegCZGaEtPorHo8znIoJwCt6+td8uk7ApUQCIHTF4BNAWzImq8ap6cP68CsBdDp9i9ZqXM7ML79g/EnCWD+jgMKENKqWT+tXK0CkQqgNRjs0OxpQIqKhoMxaG6/6JeRnK7T6yO2UvVqhYSlLX+ryORfgKn9ORDFIy7ky41yGcwsr0QAQfDH5zucOswx819fs4egI9OFCcD8DjBF7VNbEX0JzdWEt3NHSSASAcCxBDqMgt/623kvyTgNgNjJIfTjk4D4FqaJR1715MjmYAmA5Bx3AwUXQL+t105KaTlcBSC26XRvhjEIoLiq1yqXpr8FAGG16/ug4IT27fxBWu7EiQuAiImJpEMKE6nYM30uAIDDttSUOPfJP7JzbjPhAiBIh9QE67vIvoOi9WJfCwDavf40ulpjbCqmUf+W753ezURuh7Dg1SqflwAEHU6pgfyBq9Y4qx0LG++2fnZ/eUzcstmdM2AWH+jfc+liWdBJfSENf8Lifi3GVwC9mybOfi5dzatWVrbbLIHNva8p5h/16gkaFiLGGxbufkoE6XguwePiXLF3XmMfCUCUAqtKXU7sumd1CowOuJEi3Pg1FBpjitIGhyvVSfvmjci6ZR+rFQfDiPVE2jFYeICQ+PoewwjC5h7CZld6DBdyu6nDSKgzOyIMhmhK5TTqXYbRorZYM46TmpKAAOrGWwSJJekSB1yqJNOzp1Gs7YJ0EDeySDIMtJbQHh6Kf/uFfNFZkolJICRmz0P8DKWZuIG2g1hpok+Mk0Qphs0h9lzMtWRoNvYLuVImUWrmPJDlBKeRBDfATGOpHkhw670QSHWGLLckmF1PTsMlYqMJpyUbiO0weiMMceqLVTcotnMCYAYJJbcuQrVgZFP0NOOJYpr62pf3AmrHfWUG4O7abefGAfwH7EXSMJafOlYAAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-lasso-select {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgwlGP1qdAAABMBJREFUWMO9V1uIVVUY/r61z57ZMx4DnbzgkbQXL5iCJphlWdpIGY4jpFBkEiU9ZNaDRRcITcIwMwgxoQtU2IMXdAZfMjFvpERXYiSbysyBEXFmyuHMnLP32uvrwT2xnY5nxvHQ93Jg7fWv71/r//7L4a59TRgqJk+Z6v3a+sv0OI5nk5wu6VaSVZImAThHsgjgrKTvM5nMUWvtmf5n8HodCIKgOgzDhc65pSTrJQWDsSNpJX1ljHnDOfdT37oZLLHv+8OMMasKhcIJ59xHAJYMlhwAJGUAzJfUTHLFuFzOG5QDU6dNMyQfs9Yedc5tBpAD4IYYNQGoBrDtQnt7/b0LFrJsCHzfn2itfQfAnZLiazytA3AaQAuAiwDaEgeNpGkkswAWSBqRONB38b88z5uTKePt6iiKXkk8jq+iJC5LOmiMaTLGHLPWhmWeHr7vV0dRtATAapAzIVmSo51zyzIlbm2stesFPA6pKk0r6Ryg93y/ek8YFvPOOTg3cDSiKCoC2OP7/rEoirYm4rUkF12lAWNM1lr7lqQn0+QA8gI2jBg5cj6Aj8OwmB+KAKIoukhyp6SRJAUgl0ndPLDWPi9pJQCbuviXvu+/GIZhW1dnJ24UJFuTjCCA2ADA8sYGWmsXS3qmL94kDYAtkh4Nw7ANlQJ5U6INT1KrAYC9zQdykl7nFSj5fXp5Y8NWVBhy7mUAjqShMYdMXV2dJ2klyRwAJ8lIeuGWCRMP7N7frEqSG2OmAFhKshNAp5wrmO7u7jEAngPQm1S2z2pqapr+OPt7XEly0oxwzq2RdFmSD2AMgKKJouhhAL4kA+Cs53l7e3t7uytJHgRBreTWkXwkKVJnJD0B4GAGwIJE9R6AFufc6UqSZ7PZbD6ff5dkA4CQZEHSqwAOISmXtwGIE+F1SeqqIP8d+Xz+C0mLJYWSAODteXffczjdDQNJ0BWMCoLg5gqIbRTJNwHsljQhUb0luWPM2LE7Thw/9m/5NCT/TByxAOYWi8X6/gdWV1dnfN8fNRBxJpMZTXKdc+6IpFVJWAEgkvSJpA0X2tvtVTaSjgOYBCAEEADYSHK87/sfhmEYA9gShuEDkgzJHyWtB/B1irQ2juP7ADxkrX0wOUOpzmdpzEY590HJ7Ni1r2kSyZOSiv2+hSRjSTXp/QAukzySNJOJkmalyNIl10hqMcasdc61XDNcQRD8BnITgNp+36r6kfcNFMMlLQGwTNLMEuQGQBfJl2bdPru+HDkAZAqFQux53jZHEsC6aw0eg2gylNRBcqcx5v04ji999+03AwsWAOI4Lsy9a94WkisAnE5a5WCJYwCfA1g7LJudI2lTHMeXBm1faiQzxkyRtF3S5CTupeAB+KG2tnZFT0/P30NO2VKLzrmfAbwGMipjG5Oc0dPTc0Md05SZ5U4Q2FxChErtEYD7jTGNQ3UgM8Asv90Yc9I5LSKRlXSI5CxJa0jWSALJjKRnAewfkniT+vwf7N7fXHK9rq7O7+jo+BTA/NRrdBpjnnLOnUrvXd7YMPQXSBunneno6IhIHgYwW1JtkgmBpBkATlVMAwOk3nFJ+VSoqgCMr6gIy2FcLtdKspAedyQN/98caDt/3kpyabUmf8WvG/8A1vODTBVE/0MAAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-pan {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4lKssI9gAAAOtJREFUWMPVll0KwyAMgNPgoc0JzDX2Mtgp3csKErSamGabIEUo/T6bHz0ezxdsjPJ5kvUDaROem7VJAp3gufkbtwtI+JYEOsHNEugIN0mgM1wtsVoF1MnyKtZHZBW4DVxoMh6jaAW0MTfnBAbALyUwCD6UwEB4VyJN4FXx4aqUAACgFLjzrsRP9AECAP4Cm88QtJeJrGivdeNdPpko+j1H7XzUB+6WYHmo4eDk4wj41XFMEfBZGXpK0F/eB+QhVcXslVo7i6eANjF5NYSojCN7wi05MJNgbfKiMaPZA75TBVKCrWWbnGrb3DPePZ9Bcbe/QecAAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-xpan {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4X4hxZdgAAAMpJREFUWMPtlsEKwjAMhr/pwOOedINJe/PobWXCfAIvgo/nA4heOiilZQqN2yE5lpD/I38SWt3uD9aMHSuHAiiAAmwaYCqoM/0KMABtQYDW11wEaHyiEei28bWb8LGOkk5C4iEEgE11YBQWDyHGuAMD0CeS30IQPfACbC3o+Vd2bOIOWMCtoO1mC+ap3CfmoCokFs/SZd6E0ILjnzrhvFbyEJ2FIZzXyB6iZ3AkjITn8WOdSbbAoaD4NSW+tIZdQYBOPyQKoAAKkIsPv0se4A/1UC0AAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-ypan {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4anK0lywAAAMVJREFUWMPtlzEKwzAMRX/S7rlpIMXeOnaLaME36FLo8XqCdNFghGljyc4kgQi2Q/SUj0F/eL7eMMTKz6j9wNlYPGRrFcSoLH4XxQPvdQeYuPOlcLbw2dRTgqvoXEaolWM0aP4LYm0NkHYWzyFSSwlmzjw2sR6OvAXNwgEcwAEcwAEcwAEcoGYk20SiMCHlmVoCzACoojEqjHBmCeJOCOo1lgPA7Q8E8TvdjMmHuzsV3NFD4w+1t+Ai/gTx3qHuOFqdMQB8ASMwJX0IEHOeAAAAAElFTkSuQmCC\");\\n}\\n.bk-root .bk-tool-icon-range {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABCJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjMyPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4zMjwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxkYzpzdWJqZWN0PgogICAgICAgICAgICA8cmRmOkJhZy8+CiAgICAgICAgIDwvZGM6c3ViamVjdD4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTgtMDQtMjhUMTQ6MDQ6NDk8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPlBpeGVsbWF0b3IgMy43PC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrsrWBhAAAD60lEQVRYCcVWv2scRxSemZ097SHbSeWkcYwwclDhzr1Q5T6QE1LghP6BGNIYJGRWNlaZItiFK1mr+JAu4HQu0kjpU8sgF3ITAsaFg0hOvt2Zyfvmdsa7a610Unx44Zgf773vvfneezPHNzrbhn3CT3xC3wPXYOC8LDzqdi8YY/gwh4BeknS/2th6dr2kf94AOp3OFyWgMyziOPbMDxV9FTtJnl1ut795Xd0/YQ0/vtYQwMT1KXWCfr2IjOWwtNehwN4xL9ykTrm6Pzl58yLn3J+mKh9mXbT3uRjGEDph+O8/TjfP5dBp7Ha7AX7O3o5nZeD/0E/OGyXntDgzA0X6qmCnrVutVlrUWV9f/3xo+pwhGDhvEPHOjoxnZjJggXmMHzBQ7NGNp9vxk61fr0HR7e/u7pZzCGHlc7qwBYYTT7tJYSx1AQzppyFPft5apta9w7SKcn0b7P7+/jCsDQ5mbc0dCmIJGDN0ehdcjsmkm6A6KUeKFOTE11PLxrC7Ukqh3ylL2fT0NAP9q6ur6rRCJJYsbKB0JsbCKMuy+xREePDyxQPCz+Crlw062QcA5wBOOt1l6vIl2WiI9F1fN6Q+BBqit6hEC4Hk08GQJMn4myjSP7RavVxgdaVUh/3U6HCMsPr9pYnJKRziHtWQ+un58+hGs6nsjQSjpuTyKGN3CX+FBwHXSiEVgjP+O8X6N12kIePES+GzTKAkGbNp8yJsGUMVzz8jPKReiyAQRimy5/cjye5RpF8utFp/+nwmT7d/NMzcFkS7yjJNGDaPURQxIQThEQy0SyF4l5WJYYhBa816vZ6dU7A6CAhbZVow/pDe0O9hVOoCi13r4BgBAvJHqMSQL2vE/iH6IAXEwgrRVUmBoRRwnwJQT98xEeVeSUyB4dJ5nwJBKdCFFGRmUCcu7rwIYypCTblaChuNBhWODrman5ub+4v0rMNBt8z6Ezh7GksJQpCbm79cMQE7QBFm/X6f0rjWnv8WRYg/QdbUpwDAEBy8vPyA8rNGzg3a8MiElwiM7dAtRqNoNptjGPM1laVxP9umWEMGLOKhKUOJDtBwDmzsw9fC/CzHr9SGuCTi2LbbKvVtmqXpCjMihBFa79Wrt5fGx9PDzc3fmu32Lf8qFliwU9emKhBSp+kRKn/hu9k1COEDbFdt/BoKWOAkuEbdVYyoIXv8+I/QK9dMHEb1Knb7MHOv8LFFOsjzCVHWOD7Ltn+MXCRF4729vWMDK+p8rLkvwjLg4N4v741m5YuwCI9CvHp1Ha8gFdBoPnQAkGsYYGxxcfEI7QQlFCTGUXwjAz4tWF+EpymOWu7fglE7qsOvrYE6g4+9/x/vhRbMdLOCFgAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .bk-tool-icon-polygon-select {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjc1OfiVKAAAAe1JREFUWMPt1r9rU1EUB/DPK0XbqphFHETo4OCiFhwF0V1KHbRSROLqon+AUMVRRFBwEbRFMBiV+mMW/wIxi5OD1kERRVKRJHUwLvfBTZrU5OWBGXLgQu7Jfe98z/ec7z0vKa88b2q1BDtRHdAPBaylm1NzsxsOjPnPNt6WSWprbft+/c3I3zOAjhT1Y4+fvcjEQJIXnVECSa+AhqIHqlHH5lWCZoe+Gk4GRgDG86j9SAUdlDBSQaZhlOkuHyoVdJmsw98D1S5fM4NYM1LCpqM+Lwa240oLgmZzpVZvzKT75VLZcqksSZKWlQeAy/iORVwIvh31xvotvK7VG3Px4aWHj3Jl4C2uYSvq+Bn8v6LLbaVWb9zsBiKLCvbiNG7gLm7jAYqbPHMJMziZ9lsKoh8GtqCEVVzHftwJn+TFHp4/hg8BSCYVfMOZoPEv2NZGdy9WCGUr9toDR3E2/H4V6nwRe/BmgN65H1ZhvMuB3XiKIyFoGefwO6ysVkUlrNUNsyAK/jli533Q+Y8cJFvAeXyMS1CI/jiMr/gUtD2LQwMGr4R3p7bY3oQHQ5b38CT4D2AXXg6YcQXHpyYnlqKsi5iOAVSwL9zd7zJ09r+Cpwq72omFMazjT9Dnibym0dTkRDUKrrgwH7MwXVyYB38BstaGDfLUTsgAAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-redo {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4itK+dVQAAAaFJREFUWMPt1L1rFFEUBfDfJDaBBSslIFjbaSFp1FJQFMVCHkzhKIqdUYOCoBgErVz8rCwiTDMwBCIKipDWyip/gxAIWAmBgBC0eYFh2Gx2l9lFcA5M8e59782Zc84dWrT435Hs1siLchqn43MS0zgW22vYxjesYjVLw3YjBPKinMUTBOwf8J5fKLGYpWFjJAJ5Uc7gIW6jM6Kim3iNZ1katgYmEL/6I+YasvY7Lg6iRpIX5VF8wuEe/XV8wGf8jN6LWTiAc7iEQ7ucPZ+lYW0vAtfwvlbfwCKW9gpXDOv1mJvZHiSO91MiyYsyiQSuxtpXXM7SsDmM5nlRdrCMMz3sOJWl4Xevc/vwBzdwAl+yNNwZxfRI+GxelK9ikHcwh8d4NNR/YFRES1ZwoTYdR7I0rNf3TzVNIGbmSvR/Bx08mIgCFSVu4l2ltIWD9WxNGR+W8KOynqnZ0rwCeVG+wa0hjrxtWoF5dAfc28V8Mib/n+Nev5dnabg/zgw87aNEN/bHOwVRiRe4Wym9zNKwMKkpgIWKEt24njxiJlq0aPFv4i9ZWXMSPPhE/QAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .bk-tool-icon-reset {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4gWqH8eQAABLdJREFUWMPtlktsVGUUx3/nfvfOlLQaY2IiRRMQIRpI0PjamJhoVASDvNpCpYw1vJQYSVwZwIVQF6wwRHmkAUof9ElrI6VqDAXcID4TF0IiYQMkSlTokNCZ+b7jove2t+NMH7rQBWd3v+989/zP+Z8X3Jb/WGQySvUNTQBJESkNguAVYIWqzhaRhwBU9WcR+QXoymazn6jqzUQiMQSQzWZRVdal1vwzAI2tHQBPOuc2AbWTdOyQ53n7nHNfRwee51GzqoIQMCLDpr3x/tLQ0oZzrk5Vj0/BOEBt+KYuOlBVGlrahr0Wob27t3gEjnZ2AyQzmUwHsDgP6J/AYRE553neDwDOuUdU9QngNeCumK4TkRMhZUORcYC1qysLA6iuSQHIwkWLD6lqapQsuSmwTVV3h99I7EcAR462A2xR2Ilq6ehTaejvO1774kuLNALR33eclsaGsQDe3fYegHl43vyNwEeqGl1963mm2jl7YZRTQ82qlWP4HM6ZToC5ztkW4LHQoALru7s6Di5dvlIj/e6ujrEAWoZDn8hmMjXATMACGaAVuBjXTVVXFc/AxhaA+4zvn1DV+eHxVWPMAmvtb5GeMWZyZVhI2rt7qVy2pOh9U1snwIPW2vMi4oWJuBPYHkVAVScPoKmtkzVVK6cEMsyJraHhiCqJqJUwj/JRz7TW1iSSyR2rVyylqa0Ta+24Ic8vXaAEmDFc/l5Z2A/80OibuVyuz/f9ElUdHCmvw82t5HK5h6y1PYhsz2YyGw43t2KtBZHIGwB6+j4rCkBVUdV7gXrggnPuu8h4eP+xMeZS2D0rJYZ6AdAMzAt1b4nI26p6IFZOY8pugijcKSIHVLUK0LyST4vnrVfnWr3mjmP4QTATaERkXkypRFX3isjmuHdRJEK6Ckqquopp06bdKCkp2Sgi7XnGLcg7gzeutwNIiPYc8HixqIrIOlU9ONVIhHPEd851icgSVXUiskVV94gIqoonIt0i8gfQCfwae38e6BWRXuBZz5jZ8VbaOE4EIqlZVUEQBLlkMplS1QER2RwkEnsSyaREDUzyeNsvIhvCMqkH1kdIJ2o+k8iJB1LVVRfjZ6nqqlEAIbdVQGto8Lrv+/dbawcjAL7vc+6bs+zetetfLSHxniIFGofGGsU2oC7eOCbDfZ7nQawBOSAX74SF9oEPImOq+r7nmVmxb5raukZa8UReGmNmhbMkAwwBH467EYVZe49z7kdgenj8k7V2oTHm8kgdWcvrNdVFjR8cHkYzjDH9wLjDaEwEzpwa4MypgWvAjtjxfGNMj4jMiT+M+kFsZI/Q6Pv+HGNMT8w4wI7TAyevxXVPD5z8+zD64tRXAMHVK1eaVLUyVvuDqroV2BOnJF4ZIedviUidqt4Re9s+vbx8zZXLl7PR2+nl5Tz/zNOFp2FzxzGAklw22wUsLLaSKXwf8vhosZUM6PeDYEUum70VHfpBwKsVyyfeikOP6oBNwN1TrLbfgX3A1kKLzKeff8nLLzw38T5wZDgxn1LnNk5lLRfP26/OnR2hwfNYW2Atn9RCsrf+EECyrKysDFimqhXhyjY3VLkAXBKRDqA7nU6nS0tLhyIj6XSaN9bVclv+l/IXAmkwvZc+jNUAAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-save {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4UexUIzAAAAIRJREFUWMNjXLhs5X+GAQRMDAMMWJDYjGhyf7CoIQf8x2H+f0KGM9M7BBio5FNcITo408CoA0YdQM1cwEhtB/ylgqMkCJmFLwrOQguj/xTg50hmkeyARAYGhlNUCIXjDAwM0eREwTUGBgbz0Ww46oBRB4w6YNQBow4YdcCIahP+H5EhAAAH2R8hH3Rg0QAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .bk-tool-icon-tap-select {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo3NzIwRUFGMDYyMjE2ODExOTdBNUNBNjVEQTY5OTRDRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCOTJBQzE0RDQ0RDUxMUU0QTE0ODk2NTE1M0M0MkZENCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCOTJBQzE0QzQ0RDUxMUU0QTE0ODk2NTE1M0M0MkZENCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1LjEgTWFjaW50b3NoIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTQ0QzIwMUM1RjIxNjgxMUE3QkFFMzhGRjc2NTI3MjgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzcyMEVBRjA2MjIxNjgxMTk3QTVDQTY1REE2OTk0Q0UiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6eYZ88AAADLklEQVR42rSXf2TUYRzHv7tuGcfE6Vwb5zLSSjEj7Y9KWqfEmFZJP+yPMdKKmUrrn0iUfjhWlLFi6YfNrF+StBoTo39iYkTGco4xxxG59P7k/T2PT8/37nu3bx9ezvPj+zyf5/PreS78bGLS8SmrwE6yje3NHJsDBTALpknBz6JhH3NiYAB0gHqPOVv52wJ6QQ48BzdAttTioRJjdeA8mAHHS2xuk3p+M8M16ipVQE49Ds6CiFO9RLjGONf05QLx6wPQaBlbBlPgJVgkP0ETiIJ2sB/E1XfimjfgBOOlKDUqCGOcqBcQnw6BYW5YTo4wbvQhMmCfGRemC2rBiGXzWUb+kM/NRZ6CHWBM9ce5R61NgX6ayhSJ5EPlItlDRNkz4JbFHf06BkSzHjXxM+gDv1S/mPUo2AXWgt9UUHL/IVhS8yUV1/EbV3o4N+NaoE9Fu/i827K5pNYHnqAVJECShWmAaddpscYFFXwR7vnXBRGlnUN/L6kqKJlxnRUuDbaDBiL+vst5d4gpcpBrqk/2jIgCKVUolhntplzivHmwh4stGOPfwBWwl/2dpp8p7xjQZqFLiQJtauKkivYm+kzccpK57yXfOUe+P23JqAnVbhMFmlXntCWnxbT31am9ZJ4BJifsUmNTqt0cYhA5ypympPg7VkEKunPbVb8cIG+0kyHLJZNR7fUMooUKFHAPkfQo58VLK+RzwRDd4FdWG9mjpaAXzqkJa1R7kQttqEABWXMjOOxxVRfnhRm5URX1prk/0pQHwNcKlchZ+jdpC+hFdVqO0my9Hj5dkYgCn1Rfh/KdlNDHrJhPqlDih+IfBd6qwpOgEqYMsorJ2HtWxtagLJDn/W3KRfPOZhoeBJfZPgVeGKeKrkQBh5dLXl25Ny3pc4/1fkTdbvFqFQgbxWeYD0hXulhQ0pYiM1jG547fcbMQpVnHTZEn9W3ljsCzwHxCdVteNHIZvQa7/7cC7nV6zHIfyFP9EXjFa7YxKAVqPP4bxhhoLWW+z9JyCb6M/MREg59/RlmmXbmneIybB+YC/ay+yrffqEddDzwGvKxxDmzhc0tc80XVgblqFfgjwAAPubcGjAOl1wAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .bk-tool-icon-undo {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4em8Dh0gAAAatJREFUWMPt1rFrFFEQBvDfGhACASshkL/ALpWVrSAKEQV5sIULWlgZNSgIFkGIVQ412gkBt1lYLERREFJqJRaW1oHAoZUQsDqwecWy7N3tbe6C4H2wxc682Zn3zTfvLXPM8b8j6RqYF+UCzsfnHBawGt3fMcAX7GEvS8NgKgXkRbmMxwg41TLsN0psZmnodyogL8pFPMIdLHUk7hA7eJKl4U/rAuKu3+HslFr/FZezNPSTFslX8QErDe4DvMVH/Iq9F7VwGpdwZUjsPtaSFjv/1vCBPjaxO0xcNbHejLpZrrlvJCMCT+JzA+2fcC1Lw+GE4l3CG1yIptfjCtiKoqtiJ0vD3aM0Py/K57iIMxgkQxat4EdN7e9xdRzlk+LEEPvDWvIDXJ928sYxjL36icWK+VaWhlezOIqbGFirJd/H7szugrwoX+D2BDEvszSsT5OBdfRaru/F9dPXQF6U27g/KnmWhgctxqyzBrZGMNGL/rHI0nDkKXiKexXTsywNGx0OnFbFNk3BRoWJXnw//j+ivCi32/S8CxPVNiWOAdUiJtXITIqYY45/Cn8B2D97FYW2H+IAAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-wheel-pan {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgswOmEYWAAABddJREFUWMO9l09oXNcVxn/n3vc0fzRjj2RHyIZ6ERuy6CarxJtS0pQSCsXNpqGFWK5tTHAwyqIGN7VdEts1LV04BEoxdlJnUbfNogtDCYWQRZOSxtAUCoFiJY0pWJVUjeTKM9LMe+9+Xcyb8ZMychuofeHCffeee7/vnXvOuefYlV/+mv932//tb91z/Y2rvxmMHQ+4FcEfOIGN4A+UwDDwoQScc7vM7AIwB8yZ2QXn3K77Ab6OgJnVgeOSbkqaBiaACUnTkm4Cx3OZzwf+qzcRQup1zNZ9RwDe+0YI4YKZTUn6zCGSMLOfAF/03r+QZdnyfwO+ePEiI6N1nPMgMDMkETLRbd2mXG8gCbd9YiIKIUxLKoLfBN7I+80+CUlTIYTp7RMT0b3Af37p8kh5y9gZcy4Fzt+5szqSaxkzUR7dwtrKMmaGW242d0t6vrD/He/90865o865o977p4F3Ctp4frnZ3L0Z+OryUrVSrZ0z8ZxhHjhcq1XPrS43q/0flDlK9XpPA2ma7gMeyvfPx3H8TJZlH4YQWiGEVpZlH8Zx/Awwn8s8lKbpvmq1ahvB641SXNk6dhLskNA2MIBtwKHK1vGTW8bKMRbAMgyPqWeETxUM8VSSJAv52JmZA0iSZMHMThWwnipXKp8hsLLcSaIR92oU8xjSayCQXotiHotG3Ku3m+0EOQwPQCDggMf7BzQajSs5eAk4B5zLx4O1vD2eJMmAQKliscgASJMw21pansFs1swQ/DNLmUmTMNuXX+taXHTDaj5OW612R1JZ0nFJJ/J+XFJ5aWmpA6S5bHV8fHsPHFU6q3pJCjtFxtrKMuXRLUUXXxdrRLazFOtUolZlsGhmACsgnHPTwJnCnjP5HMBKLotzxsTE9rgDL0t6LoriKsDIaB31ZEK+JxQJRHFUBR2NqLw8OTkZR0OC0ntm9k1JWU7OA4vD/mZ+YfElsANmNEKi75vztzB5M8uAr+bx48me88g757PQ1U5zNg52YH7hX8l6f+4Fi3c3BqHNmkI4YQOV2MGCNu9qHPYCewfzbrC+XSGcWEcgTRKA3wFfyzdDz5d+D3x9CIcfA4eBbQS9LscskgfLnHNPAnslvS/pbZDHLLPADpx9N9fqpSIBH8cxWZY9m6bpb4Ev5fN/iKLo2TRNgdx/eo8Wk5O7Ts/N/SOSdMjHdj4kmgkIEJLJzPZKetvMTkIvFLsR25Ml2gfuF5M7vnA66sdooJYkCSGERe/9VAjhzRxoKk3Tvg3U8nulVqvx8cyNpER2umM+SdOkbc5B8JhpqBdIgTRR24h+lpKen731aRIN7thscH9Zlv0d2F8YD2TIX7F2uw3A7ZWV1a0TYz9ca8cJZHRbuRuaDfUCw9/qJHamPOKToAwHtHN6lMvlSkH2o7wDMDo6WuGuQbbn5+YAKNcb3J5fSvrhtTY+vsOPuD1IOyRhMOkj9kSx29HfXB5RUnS964NT2+3vbGbxG9auO2cDNuV6A8NTb5TitBuOpQkfYD2vwOxgmvBB2g3Hto5X42EJyVsFlztbKpXGNgqVSqUxSWcLU2+tdToa9hasLjfPYlwGa+bTi8Dl1dvNsyvNtQQL9MO2w+HM7BqwlAtPdrvdq9773WAVsIr3fne3270KTOYyS2Z2bbXdHhogKmPj7YWF+VOSXs/v/9KdO+0fVBrjbRkgB/KIDBnYu9f/7D+ZmfmRxPd6qwB8YmZXcq1MAQ/nJhTM+OnDe/a8+PGNG9lm19V/D1Qw7HXZlcRa69+U6w38l5/4ipxzf5X0CPBILjcGPJH34pVcc8692FxcXLlXRnTwwH7+9P4f8aWe3fY59LIqo1NMyQBCCHNmdgx4BegUWefjDvCKmR0LIcz9L8nokSNH+PRvH4HC3YQ098pSbevg24qlmZmNmtmjkg4D3+j/tZldkvQXSa3PW5ptlpL3ZaIN99OS9F7+IgKUgSyEkNyv2nHT7DZX0dr9rpjua2l2r4rogRAYVqZvnPsPqVnpEXjEaB4AAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-wheel-zoom {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEgskILvMJQAABTtJREFUWMPdl1+MXVUVxn/fPvf2zrSFmUKnoBCUdjRoVaIxEpO2JhilMYBCtBQS2hejpg1Uo2NUrIFAoyGmtiE+GHwQGtvQJhqDmKYRBv+URFsFDNCSptH60DJTO3dKnX/33rM/H7rvsDu9M20fDMaVnGTvtb69z7fWXmvtc/TEzqd4OyXwNsv/FwFJQVI/sA14SZKRLOlPkr5TrVYXHz70quYkEEK4TtI2YAgYkrQthHDdhV5uuw+43/ZrwCbgRttgY/tjtrc0m83X3/f+D6ydnJhYcB4BSZcBA7aP2d4ELAGW2N5k+xgwkDB0IH19CGGH7R8B1aQeAf4KvAw0ku4K2zu7uru3ApdPEyiKohd4TNKjtjt5h6RHgccSNrddbvuHtm9Jqoak7xVF8WFgdavV+pSk5cCObNmXgK++85prCj3z28HKqZMnH7D9YAY4BvwujT8BvCuL1INX9vVt+dfwcCvNb7f9q2RuSfrGvWu/sL2Nf3LX7pzvj4ENSGBPVarVd4fRkZFltjdmoMGiKO4IIWwIIWwoiuIOYDDzeOPoyMiyFLkum7WJCMDztrcrTTrIRuAQZ6NcK1utL4dWq/VZoC8BhqvV6l1lWb4YYxyLMY6VZflitVq9CxhOmL60hhCKeYiV7WMKIXw9jT1HpXw3c+bOAKzOjJubzebJrKQCQLPZPClpc7bP6rMYKtjXth2OMf7tIkr11Wz8oQDc1Fb09vY+kQw1YAuwJY2nbUluAnCWpKkaFl6IQIzxivaR2SYA89sJVK/Xp2x32R6w/a30DNjuqtfrU0ArYecDCEqgLqm94T0dEm9mBG7PxkdDlkBnkhebgIezNQ8nHcCZPL9ijE1Jf/bZZoPtzbavmqNZLbf9tSxq+yoduuJ+SZ+zXSZyBXCqU+d8fvC5yRUrV+0G2j3g2hDCLyXd/+Su3QdnvP/zCuH72LWsgf2k0oHlH2c2odlkxcpVEdgr6aDtjyb8x20/J+mA7T9I6rL9SWA5dne2/GdXLl58qNJh398An85yTMA+4DOz8Dgu6Zu2dwJXJ91ltm8Gbp7Fgb+EEB4aHhpq5CEtACqVyr3AC0AlPS8k3TSmQ2YPhhBuS/1/LpmS9JTtNTHGfwBU2uUALARotVqniqJYH2Pck85pfavVaufAwnQvnHc0McaDKVptebN94QAnJB0EdtjekydyZXqjs/0ZgLIs/w6sy8bnYGYJ63pgERKC05JutT1kOwITwL9tvzlzUQUYB+Zjs2DBgu6xsbGJZHstByZbezregcBXeCsEz1bnzXt5anLyzLq71zDLxTRdVgemdx0fv2e2w5thO5DbiqL4oKT3ZKpnpyYnz+SY2ZpTAPZmJfdIrVZbNBNUq9UW2X4kU+2dcf53Aj1pj2PA7y/6m1DS00A9za9uNBq7iqJYBuoGdRdFsazRaOzKSqye1rTbaa/tlbYrqXQP2X4FIA9/J1l39xrC0v7+w5IeB8XkwS1lWe6TGJAYKMty31tfO4qSHl/a3384I3CDpI+kzC4lnRfrue6GytEjR8oQwlY73gC0L4qlth/q0M1/LYWtR48cKQF6enrC6dOnVwGLEpnxnp7en4+O1i/tszzGOCTpPmB7ahb57QUwBWyXdF+McWg6MScmuoA8OX8xOlpvXGz422XYTsB/SnpA0h7bX5R0WzI9HUL4qe2XbI+dk3xl+V7gxoztD5jRI+YK/zkEEokx2/uB/RdzIfUtueqVN04cXwF8G3iHY3z9Urw/j8ClyhsnjrcS2Vv/J/8NLxT+/zqBTkcxU/cfEkyEAu3kmjAAAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-box-edit {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEg4QfHjM1QAAAGRJREFUWMNjXLhsJcNAAiaGAQYsDAwM/+lsJ+OgCwGsLqMB+D8o08CoA0YdMOqAUQewDFQdMBoFIyoN/B/U7YFRB7DQIc7xyo9GwbBMA4xDqhxgISH1klXbDYk0QOseEeOgDgEAIS0JQleje6IAAAAASUVORK5CYII=\");\\n}\\n.bk-root .bk-tool-icon-freehand-draw {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADTElEQVRYCeWWTWwMYRjH/88721X1lZJIGxJxcEE4OOiBgzjXWh8TJKR76kWacOBGxdEJIdk4VChZI/phidRBHMRRIr7DSUiaSCRFRM3u88gz+o7Z6bBTdjmYZPf9eJ55fv/5zzvvDPC/H9QsA66Olo9Ga+/MdR+Ljm2/KQIULsz9FqItGdOfJKLhApLgVkiSCGODjWit7QpKWy+TNrFeXvzKVUT8NiTVaIgDcbiCFJ7GiT8WkARXAdYBK0Lbhi/CenArRNskuM7/tgNp4ArQ42dwjf3WY5gWTqC7O/NbNn2Xkfw/YwdSw/We14HP2IEZwX+y9cZ9SH0LmgFP7UCz4KkENBNeV0Cz4b8U8DfgKiDxMWwUXETqLvJpCQpXZfawbzS7t9v5pL19cHBwfja7YA0y/lyCM0+E5hv5+piZXwKYcF23as+37bTXsQVqgkL0p/34fHR7DcBtbetFsBmGDwMOJCggYG55yw7dMlk6DuC1Bdu2RsCU9TYWQq2IoGbsreZ5NzvEqfSBsIsIy8OTbcdgiRHeh4o8AFAEwDakbY2AaCCpH7V9aGhoUUUy3UyVbkPYFuYLDlUZH8XBpwxkK0Dbgxg5HcVi0ent7a0RULMIozaHBSMfF9b2SzdutFcFB2FkwMIJOG6qfteXOa1nHZ48tyefuwyfT9s6wtzZ3t7eZse2DR2I228TtHXzuWCx9g8MtK5cuHCZTH4tiHEOa4xFngvTyS8f35d6enomiCi4/foEXBkZaQuukChL4FYA2Whd7YcC4gEdW3CpdL3LtGAVCVYJywEyTpAuJKeMOKXZs/Bw947C50KhUFOG4cwz35cjWNBlHGeD53n3xsfHP/T19U1qciggar8Fa4I3PHobIotBWBtc2hSiChyZxVzM53Pv7FVH6Tp3uVy+g0r1ImD2GjIrQGYIxjnfuXTZGICS5k/bBwJoubwEFX4TLah9EXomJGMA3za+f9913Yl4TnzsDQ+vE6YTZOjHh4ngibstt1pzQwd04F0bPStEBpXqRoBeQ/AKghfBnOEKgS+Q7z91Xfdz/HGKg8Ox7z8iYD9z6wqTkZFgnvhMGP9VZ2or1XVkPM9z0mytSfVsHa1RLBZbLoyNzUnK+ydz3wC6I9x+lwbngwAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .bk-tool-icon-poly-draw {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEjglo9eZgwAAAc5JREFUWMPt1zFrU1EUB/DfS4OmVTGDIChCP4BgnQXRxVHqIJUupp9AB8VBQcRBQUXIB9DWQoMRiXZzcnQSA34A7aAuHSJKkgo2LvfBrU3aJnlYkBy4vHcP557zP/9z3r33JdXa647N0kHSZd5Nn0rSxc8G3cXp85sMcnZZ8vge3osZ+l3vB8CWFA0iL14t79h210swAjACMAIwAjACkB90D/8/GchI9ve4nPwTBh5E9ws7OepzGWb9EddSn51Op9ZstadSg4VK1UKlKkmSDSMLALewiuNh/hVJq71Wxttmqz0dG88vPc+MgWP4grvYG3SLOBrZFFFrttqPe4HIDxh4GSei+98iSlusuYopXEAjBtEPA3tQwUpwluAbDm4TPJUz+BTW9l2Ce6G7L0X/Bw8D3T/7SKKIDzHg7QCcxjvcQAEtXAnrrg/RP0/DKPbqgcN4iVOR7gcO4dcQgRuoh7HSqwlP4n20m63jJu5n8MkWMYfP3UowhzdR8FU8w9iQwevBdyq3/27CMRzAE5yLuvsRLg+ZcR1nJ8YL81HWJUzGAPaFZwe/Q5MdyYDyNHgjzO90YyGHtVDncuiJchaHw8R4oREFV5qdiVmYLM3OgD9k5209/atmIAAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .bk-tool-icon-point-draw {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gEMEiERGWPELgAAA4RJREFUWMO1lr1uG1cQhb9ztdRSP7AF1QxgwKlcuZSqRC9gWUUUINWqTh5AnaFOnVPEteQmRuhCURqWsSqqc9IolREXdEvQBElxtdw7KURSFEVKu4w8wAKLxdw9Z+bMnRmZGXfZ29//II8th4WwGVNyIoQLYB5vxA9Caq04iUd9A+7ZlsNC2I7TdSd2hZXMJKlnTqp9jtl/GBaqoyQ0noFKpUIzBicYYc+DEFpxkglc4oVJa5gvDn8v1xV2irG3FM4NSVwjUKlUaMcpJhCGmSEJQ6QGD8M5WnHCd8+f3QCXpPLx8WNwv0j6Bm9FMK7FJ3WBE+R/2t7c/GBmFvSBrzRTCsyTDjXrxUgEMtpxynJYmJoBJ4VAybwVARgvL7Oik0okCodnKpVKX7P0leiVMb0VvbJT+upznK4vh0GIeQwwQStJkHQD3MwsCALTJRG7Qrdrj5m/djgYaIa0hlkRdJk26XEgC9txurccBtVW3IudBImmZuACUP+ZlIDBt9FKcubYNTcAH/X0RYM1E7utJPlqe+uZzPxUcEkiSS4sTT95n15Mud0xWC0o2PAWOCdK3KYZlFxfM+tHOcnMzNr1es18ug+cgsVjP4yBU/Ppfrter1m/+l0+zYygML1xRVHU7TSb1cSzBzoBzszsH+AMdJJ49jrNZjWKou6wBnwOzcyndBpNbuueURR1Dw8Pq35p9cc5p/Dy9Dypt7jXrtdGwQECS9NPhr6Gq6txUzNigE6zydLK6lTw12/KT4FGFEUfJX2YJNONq5tVs4ODA7sD/DnwJ/BoADZuE3tHFs12dna6d4C/BI6AlbyzI8ii2TTw12/KK33gb2cdXsNZoAntbZC2SeO4c9592k/5eNQbiwvFd1kJuFGwLJr1wSPg/SwpvyFBHufOeXcFeAlE97U/uCxOY+P3b+Bn4B3Q+L8EdJfD4a+/AbC4UBzPxiPg3wlHZquB28Cn2IuR9x3gr3uV4DbwfvSDOvi4uFA8BDZmIRHkjHpS9Ht9iRqd8+5G3g05mAGcQbsdiX5QJ428G7Kygo8XYdb1/K4NWVmjzkNge2sz84bs+ELmpDDLtqWsNZBXgvmw8CTtpWVMT7x5YWBjLARnwZfKQNYN2U2LPvrh+5nBt7c2M2/It9bArCTKR8eZN+SJ13AScPnoODeRdqNenH+wul5w2gUr2WUjMFAt8bZ/0axX/wNnv4H8vTFb1QAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .bk-tool-icon-poly-edit {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gELFi46qJmxxAAABV9JREFUWMOdl19vFFUYxn9n9u9sCyylUIzWUoMQBAWCMdEEIt6xIRQSLIEKtvHe6AcA4yeQb7CAUNJy0daLeomJN8SEULAC2kBBapBKoLvbmdl/c14vdmY7u91tF95kknPOnHmf95znPc97Ro2OTeBbdjFDT3c32ZxVHUOE9kSMB0/m6ExuoJn1H+ur6Y+OTfD50SMN5168OgrAlyf7CfuD+z7+iDs3p8hkLUQ0iFQ/yFl5Nm/qonfHVva+s32Zw9GxCYILsZ08tpNfBhbs+1YN4OH9+7huGdECSBVfqUosbsllfmauBqiR+cCNwOr7AEo8pPHJnymXykhg5fUWjoQpl0vVvhZhbSzGoUOHqgBlt6B6uruj2Zy1E9jo0fhfeyL2x4Mnc8VErK0KUEOB64JSyptfG4RSytsJjUJVxw2lsFy3urL9nx1Qd25ObctkrVMi+jQivd7U2ZyV/3Hzpq7h3h1b/7p9Y0o8v8rwAbTWrGpSocN/FGDlbAI0Rl23PCBan0Ok158H9Ipwzi25A/Mzc9Gl/BYx/E4kYqC1NKRARNAaDCNUM27Z+Zr+ouXs0q4+LSLBHPYCFkTkC6uU39kwCdsS7WRKmaYUiAhdnZ3MPX2K4+QjQI+C94A93rMzm8ltMwyDeDzWjMZeEb2pYQDdW3vITU2jtUZ5QThOPgm8C7wP7J15OPsBsB3oWpGnVWisCeDS1VHj4vBI92+/3tgB7Ab2AruAXiDBK5oIOkhtkEYRNRuJhObrd8Dl9ewf4D5wG7hVLpen29vb5wzD+BrkbBMaL3d1dk5nsrnlFDTTFWAWmAZueWD3gCemGde2k2fw1Al1YXhEvjozoO49eczdqekrWmsc2zlrmvEKOGoW1GUjFLqSk2KpJrCLwyMCPAP+BO54QL8DM6YZX/ClsP9YnwKkXnIBP4jdIpJRpdJTCYdMwwi98KU0Hjc/dDILNyUcwTCWdOSMJ0TRmBktGRhLugu0xyLk7CIqVNm+0bGJptl1YXikD0grpY4Rjc4a8Fbgdab/6OGbAJeCUuyJnnHmZH9pbSyGuBXV8NUwlUpR1EWyixmSyTWEwqGlJ2Swbo2JXbAAfgDGgGQA9I1A9t1tlq0AxrXxn0ilUpw4fhQqYkH/sT41OTnJJwf2s6FjI5mshdYa7bqVR2uezr9MJmJt14FvGrh/O9D+e6UkM/xyCuCqEKCYnJyUTKFQrZDHjxzGshwWLQcRsOz8Hi85P23id0ug/XilAMLBmm4tPGdoaKjSH5+oAGrhwvBI9SjZTn4QSK9yenoD7dlrExPoJlXW8G8ytpNHxRKk02lGxsdRKFwXLNvx5yY94HQLGhGk4LFCYQSqaE0AwWM1eOoEbR0dKBSW7bC4mKuffxs4D/wCLKwQQPAUzIkslfp6cVomROWSolh0GjldAM4nzDi2k9/i5UAzC9aKfwNJ3zgJg9YEvN6+C7SHgKm69+sD7RfNnKTTaZRPQfAut4oFV//IS7gkcB34VlVo8kGzphlfB+DU+TfNGBpZtRastvrvARJmfMF28ge9sc2B9/PNnCilMIDwK6y8/ow/Ai4kvILTljAXvDvEvrqKSUs60KolzPjBxspavQD2tKqCAGF/Ba+xE/Wbilu54wZV8NEKF5fXzQHl/bh4hUsE0WAXSlDMYcQSrQXgCmsTseXHsJkNnjqBFGwKJaHsKlxtUHYVhbLCzr1kaOA4bcn1y1Swmb+iLpJKpVrfgdpfsiVVCYcgluwgnU7jEgJ4s5UkLFtWYyHyEg0/N1q1tmQH+YXnAMFr97Nmv3p+0QsHQRsF8qpBOE5+rb9Nkaj50tVQKjqh4OU3GNL/1/So3vuUgbAAAAAASUVORK5CYII=\");\\n}\\n'),n.bk_tool_icon_box_select=\"bk-tool-icon-box-select\",n.bk_tool_icon_box_zoom=\"bk-tool-icon-box-zoom\",n.bk_tool_icon_zoom_in=\"bk-tool-icon-zoom-in\",n.bk_tool_icon_zoom_out=\"bk-tool-icon-zoom-out\",n.bk_tool_icon_help=\"bk-tool-icon-help\",n.bk_tool_icon_hover=\"bk-tool-icon-hover\",n.bk_tool_icon_crosshair=\"bk-tool-icon-crosshair\",n.bk_tool_icon_lasso_select=\"bk-tool-icon-lasso-select\",n.bk_tool_icon_pan=\"bk-tool-icon-pan\",n.bk_tool_icon_xpan=\"bk-tool-icon-xpan\",n.bk_tool_icon_ypan=\"bk-tool-icon-ypan\",n.bk_tool_icon_range=\"bk-tool-icon-range\",n.bk_tool_icon_polygon_select=\"bk-tool-icon-polygon-select\",n.bk_tool_icon_redo=\"bk-tool-icon-redo\",n.bk_tool_icon_reset=\"bk-tool-icon-reset\",n.bk_tool_icon_save=\"bk-tool-icon-save\",n.bk_tool_icon_tap_select=\"bk-tool-icon-tap-select\",n.bk_tool_icon_undo=\"bk-tool-icon-undo\",n.bk_tool_icon_wheel_pan=\"bk-tool-icon-wheel-pan\",n.bk_tool_icon_wheel_zoom=\"bk-tool-icon-wheel-zoom\",n.bk_tool_icon_box_edit=\"bk-tool-icon-box-edit\",n.bk_tool_icon_freehand_draw=\"bk-tool-icon-freehand-draw\",n.bk_tool_icon_poly_draw=\"bk-tool-icon-poly-draw\",n.bk_tool_icon_point_draw=\"bk-tool-icon-point-draw\",n.bk_tool_icon_poly_edit=\"bk-tool-icon-poly-edit\"},function(t,e,n){t(311);var i=t(5);i.styles.append(\".bk-root .bk-logo {\\n margin: 5px;\\n position: relative;\\n display: block;\\n background-repeat: no-repeat;\\n}\\n.bk-root .bk-logo.bk-grey {\\n filter: url(\\\"data:image/svg+xml;utf8,#grayscale\\\");\\n /* Firefox 10+, Firefox on Android */\\n filter: gray;\\n /* IE6-9 */\\n -webkit-filter: grayscale(100%);\\n /* Chrome 19+, Safari 6+, Safari 6+ iOS */\\n}\\n.bk-root .bk-logo-small {\\n width: 20px;\\n height: 20px;\\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAOkSURBVDiNjZRtaJVlGMd/1/08zzln5zjP1LWcU9N0NkN8m2CYjpgQYQXqSs0I84OLIC0hkEKoPtiH3gmKoiJDU7QpLgoLjLIQCpEsNJ1vqUOdO7ppbuec5+V+rj4ctwzd8IIbbi6u+8f1539dt3A78eXC7QizUF7gyV1fD1Yqg4JWz84yffhm0qkFqBogB9rM8tZdtwVsPUhWhGcFJngGeWrPzHm5oaMmkfEg1usvLFyc8jLRqDOMru7AyC8saQr7GG7f5fvDeH7Ej8CM66nIF+8yngt6HWaKh7k49Soy9nXurCi1o3qUbS3zWfrYeQDTB/Qj6kX6Ybhw4B+bOYoLKCC9H3Nu/leUTZ1JdRWkkn2ldcCamzrcf47KKXdAJllSlxAOkRgyHsGC/zRday5Qld9DyoM4/q/rUoy/CXh3jzOu3bHUVZeU+DEn8FInkPBFlu3+nW3Nw0mk6vCDiWg8CeJaxEwuHS3+z5RgY+YBR6V1Z1nxSOfoaPa4LASWxxdNp+VWTk7+4vzaou8v8PN+xo+KY2xsw6une2frhw05CTYOmQvsEhjhWjn0bmXPjpE1+kplmmkP3suftwTubK9Vq22qKmrBhpY4jvd5afdRA3wGjFAgcnTK2s4hY0/GPNIb0nErGMCRxWOOX64Z8RAC4oCXdklmEvcL8o0BfkNK4lUg9HTl+oPlQxdNo3Mg4Nv175e/1LDGzZen30MEjRUtmXSfiTVu1kK8W4txyV6BMKlbgk3lMwYCiusNy9fVfvvwMxv8Ynl6vxoByANLTWplvuj/nF9m2+PDtt1eiHPBr1oIfhCChQMBw6Aw0UulqTKZdfVvfG7VcfIqLG9bcldL/+pdWTLxLUy8Qq38heUIjh4XlzZxzQm19lLFlr8vdQ97rjZVOLf8nclzckbcD4wxXMidpX30sFd37Fv/GtwwhzhxGVAprjbg0gCAEeIgwCZyTV2Z1REEW8O4py0wsjeloKoMr6iCY6dP92H6Vw/oTyICIthibxjm/DfN9lVz8IqtqKYLUXfoKVMVQVVJOElGjrnnUt9T9wbgp8AyYKaGlqingHZU/uG2NTZSVqwHQTWkx9hxjkpWDaCg6Ckj5qebgBVbT3V3NNXMSiWSDdGV3hrtzla7J+duwPOToIg42ChPQOQjspnSlp1V+Gjdged7+8UN5CRAV7a5EdFNwCjEaBR27b3W890TE7g24NAP/mMDXRWrGoFPQI9ls/MWO2dWFAar/xcOIImbbpA3zgAAAABJRU5ErkJggg==);\\n}\\n.bk-root .bk-logo-notebook {\\n display: inline-block;\\n vertical-align: middle;\\n margin-right: 5px;\\n}\\n\"),n.bk_logo=\"bk-logo\",n.bk_logo_notebook=\"bk-logo-notebook\",n.bk_logo_small=\"bk-logo-small\",n.bk_grey=\"bk-grey\"},function(t,e,n){t(311);var i=t(5);i.styles.append(\".bk-root .bk-menu {\\n position: absolute;\\n left: 0;\\n width: 100%;\\n z-index: 100;\\n cursor: pointer;\\n font-size: 12px;\\n background-color: #fff;\\n border: 1px solid #ccc;\\n border-radius: 4px;\\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\\n}\\n.bk-root .bk-menu.bk-above {\\n bottom: 100%;\\n}\\n.bk-root .bk-menu.bk-below {\\n top: 100%;\\n}\\n.bk-root .bk-menu > .bk-divider {\\n height: 1px;\\n margin: 7.5px 0;\\n overflow: hidden;\\n background-color: #e5e5e5;\\n}\\n.bk-root .bk-menu > :not(.bk-divider) {\\n padding: 6px 12px;\\n}\\n.bk-root .bk-menu > :not(.bk-divider):hover,\\n.bk-root .bk-menu > :not(.bk-divider).bk-active {\\n background-color: #e6e6e6;\\n}\\n.bk-root .bk-caret {\\n display: inline-block;\\n vertical-align: middle;\\n width: 0;\\n height: 0;\\n margin: 0 5px;\\n}\\n.bk-root .bk-caret.bk-down {\\n border-top: 4px solid;\\n}\\n.bk-root .bk-caret.bk-up {\\n border-bottom: 4px solid;\\n}\\n.bk-root .bk-caret.bk-down,\\n.bk-root .bk-caret.bk-up {\\n border-right: 4px solid transparent;\\n border-left: 4px solid transparent;\\n}\\n.bk-root .bk-caret.bk-left {\\n border-right: 4px solid;\\n}\\n.bk-root .bk-caret.bk-right {\\n border-left: 4px solid;\\n}\\n.bk-root .bk-caret.bk-left,\\n.bk-root .bk-caret.bk-right {\\n border-top: 4px solid transparent;\\n border-bottom: 4px solid transparent;\\n}\\n\"),n.bk_menu=\"bk-menu\",n.bk_caret=\"bk-caret\",n.bk_divider=\"bk-divider\"},function(t,e,n){var i=t(5);i.styles.append(\"\"),n.bk_active=\"bk-active\",n.bk_inline=\"bk-inline\",n.bk_left=\"bk-left\",n.bk_right=\"bk-right\",n.bk_above=\"bk-above\",n.bk_below=\"bk-below\",n.bk_up=\"bk-up\",n.bk_down=\"bk-down\",n.bk_side=function(t){switch(t){case\"above\":return n.bk_above;case\"below\":return n.bk_below;case\"left\":return n.bk_left;case\"right\":return n.bk_right}}},function(t,e,n){t(311);var i=t(5);i.styles.append(\"/* notebook specific tweaks so no black outline and matching padding\\n/* can't be wrapped inside bk-root. here are the offending jupyter lines:\\n/* https://github.com/jupyter/notebook/blob/master/notebook/static/notebook/less/renderedhtml.less#L59-L76 */\\n.rendered_html .bk-root .bk-tooltip table,\\n.rendered_html .bk-root .bk-tooltip tr,\\n.rendered_html .bk-root .bk-tooltip th,\\n.rendered_html .bk-root .bk-tooltip td {\\n border: none;\\n padding: 1px;\\n}\\n\")},function(t,e,n){var i=t(5);i.styles.append(\".bk-root {\\n position: relative;\\n width: auto;\\n height: auto;\\n z-index: 0;\\n box-sizing: border-box;\\n font-family: Helvetica, Arial, sans-serif;\\n font-size: 10pt;\\n}\\n.bk-root .bk,\\n.bk-root .bk:before,\\n.bk-root .bk:after {\\n box-sizing: inherit;\\n margin: 0;\\n border: 0;\\n padding: 0;\\n background-image: none;\\n font-family: inherit;\\n font-size: 100%;\\n line-height: 1.42857143;\\n}\\n.bk-root pre.bk {\\n font-family: Courier, monospace;\\n}\\n\"),n.bk_root=\"bk-root\"},function(t,e,n){t(311);var i=t(5);i.styles.append('.bk-root .bk-tabs-header {\\n display: flex;\\n display: -webkit-flex;\\n flex-wrap: nowrap;\\n -webkit-flex-wrap: nowrap;\\n align-items: center;\\n -webkit-align-items: center;\\n overflow: hidden;\\n user-select: none;\\n -ms-user-select: none;\\n -moz-user-select: none;\\n -webkit-user-select: none;\\n}\\n.bk-root .bk-tabs-header .bk-btn-group {\\n height: auto;\\n margin-right: 5px;\\n}\\n.bk-root .bk-tabs-header .bk-btn-group > .bk-btn {\\n flex-grow: 0;\\n -webkit-flex-grow: 0;\\n height: auto;\\n padding: 4px 4px;\\n}\\n.bk-root .bk-tabs-header .bk-headers-wrapper {\\n flex-grow: 1;\\n -webkit-flex-grow: 1;\\n overflow: hidden;\\n color: #666666;\\n}\\n.bk-root .bk-tabs-header.bk-above .bk-headers-wrapper {\\n border-bottom: 1px solid #e6e6e6;\\n}\\n.bk-root .bk-tabs-header.bk-right .bk-headers-wrapper {\\n border-left: 1px solid #e6e6e6;\\n}\\n.bk-root .bk-tabs-header.bk-below .bk-headers-wrapper {\\n border-top: 1px solid #e6e6e6;\\n}\\n.bk-root .bk-tabs-header.bk-left .bk-headers-wrapper {\\n border-right: 1px solid #e6e6e6;\\n}\\n.bk-root .bk-tabs-header.bk-above,\\n.bk-root .bk-tabs-header.bk-below {\\n flex-direction: row;\\n -webkit-flex-direction: row;\\n}\\n.bk-root .bk-tabs-header.bk-above .bk-headers,\\n.bk-root .bk-tabs-header.bk-below .bk-headers {\\n flex-direction: row;\\n -webkit-flex-direction: row;\\n}\\n.bk-root .bk-tabs-header.bk-left,\\n.bk-root .bk-tabs-header.bk-right {\\n flex-direction: column;\\n -webkit-flex-direction: column;\\n}\\n.bk-root .bk-tabs-header.bk-left .bk-headers,\\n.bk-root .bk-tabs-header.bk-right .bk-headers {\\n flex-direction: column;\\n -webkit-flex-direction: column;\\n}\\n.bk-root .bk-tabs-header .bk-headers {\\n position: relative;\\n display: flex;\\n display: -webkit-flex;\\n flex-wrap: nowrap;\\n -webkit-flex-wrap: nowrap;\\n align-items: center;\\n -webkit-align-items: center;\\n}\\n.bk-root .bk-tabs-header .bk-tab {\\n padding: 4px 8px;\\n border: solid transparent;\\n white-space: nowrap;\\n cursor: pointer;\\n}\\n.bk-root .bk-tabs-header .bk-tab:hover {\\n background-color: #f2f2f2;\\n}\\n.bk-root .bk-tabs-header .bk-tab.bk-active {\\n color: #4d4d4d;\\n background-color: white;\\n border-color: #e6e6e6;\\n}\\n.bk-root .bk-tabs-header .bk-tab .bk-close {\\n margin-left: 10px;\\n}\\n.bk-root .bk-tabs-header.bk-above .bk-tab {\\n border-width: 3px 1px 0px 1px;\\n border-radius: 4px 4px 0 0;\\n}\\n.bk-root .bk-tabs-header.bk-right .bk-tab {\\n border-width: 1px 3px 1px 0px;\\n border-radius: 0 4px 4px 0;\\n}\\n.bk-root .bk-tabs-header.bk-below .bk-tab {\\n border-width: 0px 1px 3px 1px;\\n border-radius: 0 0 4px 4px;\\n}\\n.bk-root .bk-tabs-header.bk-left .bk-tab {\\n border-width: 1px 0px 1px 3px;\\n border-radius: 4px 0 0 4px;\\n}\\n.bk-root .bk-close {\\n display: inline-block;\\n width: 10px;\\n height: 10px;\\n vertical-align: middle;\\n background-image: url(\\'data:image/svg+xml;utf8,\\\\\\n \\\\\\n \\\\\\n \\\\\\n \\');\\n}\\n.bk-root .bk-close:hover {\\n background-image: url(\\'data:image/svg+xml;utf8,\\\\\\n \\\\\\n \\\\\\n \\\\\\n \\');\\n}\\n'),n.bk_tabs_header=\"bk-tabs-header\",n.bk_headers_wrapper=\"bk-headers-wrapper\",n.bk_headers=\"bk-headers\",n.bk_tab=\"bk-tab\",n.bk_close=\"bk-close\"},function(t,e,n){t(311);var i=t(5);i.styles.append(\".bk-root .bk-tile-attribution a {\\n color: black;\\n}\\n\"),n.bk_tile_attribution=\"bk-tile-attribution\"},function(t,e,n){t(311);var i=t(5);i.styles.append('.bk-root .bk-toolbar-hidden {\\n visibility: hidden;\\n opacity: 0;\\n transition: visibility 0.3s linear, opacity 0.3s linear;\\n}\\n.bk-root .bk-toolbar,\\n.bk-root .bk-button-bar {\\n display: flex;\\n display: -webkit-flex;\\n flex-wrap: nowrap;\\n -webkit-flex-wrap: nowrap;\\n align-items: center;\\n -webkit-align-items: center;\\n user-select: none;\\n -ms-user-select: none;\\n -moz-user-select: none;\\n -webkit-user-select: none;\\n}\\n.bk-root .bk-toolbar .bk-logo {\\n flex-shrink: 0;\\n -webkit-flex-shrink: 0;\\n}\\n.bk-root .bk-toolbar.bk-above,\\n.bk-root .bk-toolbar.bk-below {\\n flex-direction: row;\\n -webkit-flex-direction: row;\\n justify-content: flex-end;\\n -webkit-justify-content: flex-end;\\n}\\n.bk-root .bk-toolbar.bk-above .bk-button-bar,\\n.bk-root .bk-toolbar.bk-below .bk-button-bar {\\n display: flex;\\n display: -webkit-flex;\\n flex-direction: row;\\n -webkit-flex-direction: row;\\n}\\n.bk-root .bk-toolbar.bk-above .bk-logo,\\n.bk-root .bk-toolbar.bk-below .bk-logo {\\n order: 1;\\n -webkit-order: 1;\\n margin-left: 5px;\\n margin-right: 0px;\\n}\\n.bk-root .bk-toolbar.bk-left,\\n.bk-root .bk-toolbar.bk-right {\\n flex-direction: column;\\n -webkit-flex-direction: column;\\n justify-content: flex-start;\\n -webkit-justify-content: flex-start;\\n}\\n.bk-root .bk-toolbar.bk-left .bk-button-bar,\\n.bk-root .bk-toolbar.bk-right .bk-button-bar {\\n display: flex;\\n display: -webkit-flex;\\n flex-direction: column;\\n -webkit-flex-direction: column;\\n}\\n.bk-root .bk-toolbar.bk-left .bk-logo,\\n.bk-root .bk-toolbar.bk-right .bk-logo {\\n order: 0;\\n -webkit-order: 0;\\n margin-bottom: 5px;\\n margin-top: 0px;\\n}\\n.bk-root .bk-toolbar-button {\\n width: 30px;\\n height: 30px;\\n background-size: 60%;\\n background-color: transparent;\\n background-repeat: no-repeat;\\n background-position: center center;\\n}\\n.bk-root .bk-toolbar-button:hover {\\n background-color: #f9f9f9;\\n}\\n.bk-root .bk-toolbar-button:focus {\\n outline: none;\\n}\\n.bk-root .bk-toolbar-button::-moz-focus-inner {\\n border: 0;\\n}\\n.bk-root .bk-toolbar.bk-above .bk-toolbar-button {\\n border-bottom: 2px solid transparent;\\n}\\n.bk-root .bk-toolbar.bk-above .bk-toolbar-button.bk-active {\\n border-bottom-color: #26aae1;\\n}\\n.bk-root .bk-toolbar.bk-below .bk-toolbar-button {\\n border-top: 2px solid transparent;\\n}\\n.bk-root .bk-toolbar.bk-below .bk-toolbar-button.bk-active {\\n border-top-color: #26aae1;\\n}\\n.bk-root .bk-toolbar.bk-right .bk-toolbar-button {\\n border-left: 2px solid transparent;\\n}\\n.bk-root .bk-toolbar.bk-right .bk-toolbar-button.bk-active {\\n border-left-color: #26aae1;\\n}\\n.bk-root .bk-toolbar.bk-left .bk-toolbar-button {\\n border-right: 2px solid transparent;\\n}\\n.bk-root .bk-toolbar.bk-left .bk-toolbar-button.bk-active {\\n border-right-color: #26aae1;\\n}\\n.bk-root .bk-button-bar + .bk-button-bar:before {\\n content: \" \";\\n display: inline-block;\\n background-color: lightgray;\\n}\\n.bk-root .bk-toolbar.bk-above .bk-button-bar + .bk-button-bar:before,\\n.bk-root .bk-toolbar.bk-below .bk-button-bar + .bk-button-bar:before {\\n height: 10px;\\n width: 1px;\\n}\\n.bk-root .bk-toolbar.bk-left .bk-button-bar + .bk-button-bar:before,\\n.bk-root .bk-toolbar.bk-right .bk-button-bar + .bk-button-bar:before {\\n height: 1px;\\n width: 10px;\\n}\\n'),n.bk_toolbar=\"bk-toolbar\",n.bk_toolbar_hidden=\"bk-toolbar-hidden\",n.bk_toolbar_button=\"bk-toolbar-button\",n.bk_button_bar=\"bk-button-bar\",n.bk_toolbar_button_custom_action=\"bk-toolbar-button-custom-action\"},function(t,e,n){t(311);var i=t(5);i.styles.append('.bk-root {\\n /* Same border color used everywhere */\\n /* Gray of icons */\\n}\\n.bk-root .bk-tooltip {\\n font-weight: 300;\\n font-size: 12px;\\n position: absolute;\\n padding: 5px;\\n border: 1px solid #e5e5e5;\\n color: #2f2f2f;\\n background-color: white;\\n pointer-events: none;\\n opacity: 0.95;\\n z-index: 100;\\n}\\n.bk-root .bk-tooltip > div:not(:first-child) {\\n /* gives space when multiple elements are being hovered over */\\n margin-top: 5px;\\n border-top: #e5e5e5 1px dashed;\\n}\\n.bk-root .bk-tooltip.bk-left.bk-tooltip-arrow::before {\\n position: absolute;\\n margin: -7px 0 0 0;\\n top: 50%;\\n width: 0;\\n height: 0;\\n border-style: solid;\\n border-width: 7px 0 7px 0;\\n border-color: transparent;\\n content: \" \";\\n display: block;\\n left: -10px;\\n border-right-width: 10px;\\n border-right-color: #909599;\\n}\\n.bk-root .bk-tooltip.bk-left::before {\\n left: -10px;\\n border-right-width: 10px;\\n border-right-color: #909599;\\n}\\n.bk-root .bk-tooltip.bk-right.bk-tooltip-arrow::after {\\n position: absolute;\\n margin: -7px 0 0 0;\\n top: 50%;\\n width: 0;\\n height: 0;\\n border-style: solid;\\n border-width: 7px 0 7px 0;\\n border-color: transparent;\\n content: \" \";\\n display: block;\\n right: -10px;\\n border-left-width: 10px;\\n border-left-color: #909599;\\n}\\n.bk-root .bk-tooltip.bk-right::after {\\n right: -10px;\\n border-left-width: 10px;\\n border-left-color: #909599;\\n}\\n.bk-root .bk-tooltip.bk-above::before {\\n position: absolute;\\n margin: 0 0 0 -7px;\\n left: 50%;\\n width: 0;\\n height: 0;\\n border-style: solid;\\n border-width: 0 7px 0 7px;\\n border-color: transparent;\\n content: \" \";\\n display: block;\\n top: -10px;\\n border-bottom-width: 10px;\\n border-bottom-color: #909599;\\n}\\n.bk-root .bk-tooltip.bk-below::after {\\n position: absolute;\\n margin: 0 0 0 -7px;\\n left: 50%;\\n width: 0;\\n height: 0;\\n border-style: solid;\\n border-width: 0 7px 0 7px;\\n border-color: transparent;\\n content: \" \";\\n display: block;\\n bottom: -10px;\\n border-top-width: 10px;\\n border-top-color: #909599;\\n}\\n.bk-root .bk-tooltip-row-label {\\n text-align: right;\\n color: #26aae1;\\n /* blue from toolbar highlighting */\\n}\\n.bk-root .bk-tooltip-row-value {\\n color: default;\\n /* seems to be necessary for notebook */\\n}\\n.bk-root .bk-tooltip-color-block {\\n width: 12px;\\n height: 12px;\\n margin-left: 5px;\\n margin-right: 5px;\\n outline: #dddddd solid 1px;\\n display: inline-block;\\n}\\n'),n.bk_tooltip=\"bk-tooltip\",n.bk_tooltip_arrow=\"bk-tooltip-arrow\",n.bk_tooltip_custom=\"bk-tooltip-custom\",n.bk_tooltip_row_label=\"bk-tooltip-row-label\",n.bk_tooltip_row_value=\"bk-tooltip-row-value\",n.bk_tooltip_color_block=\"bk-tooltip-color-block\"},function(t,e,n){function i(){var t=document.getElementsByTagName(\"body\")[0],e=document.getElementsByClassName(\"bokeh-test-div\");1==e.length&&(t.removeChild(e[0]),delete e[0]);var n=document.createElement(\"div\");n.classList.add(\"bokeh-test-div\"),n.style.display=\"none\",t.insertBefore(n,t.firstChild)}n.results={},n.init=function(){i()},n.record=function(t,e){n.results[t]=e,i()},n.count=function(t){null==n.results[t]&&(n.results[t]=0),n.results[t]+=1,i()},n.clear=function(){for(var t=0,e=Object.keys(n.results);t1?((e=i).width=arguments[0],e.height=arguments[1]):e=t||i,!(this instanceof n))return new n(e);this.width=e.width||i.width,this.height=e.height||i.height,this.enableMirroring=void 0!==e.enableMirroring?e.enableMirroring:i.enableMirroring,this.canvas=this,this.__document=e.document||document,e.ctx?this.__ctx=e.ctx:(this.__canvas=this.__document.createElement(\"canvas\"),this.__ctx=this.__canvas.getContext(\"2d\")),this.__setDefaultStyles(),this.__stack=[this.__getStyleState()],this.__groupStack=[],this.__root=this.__document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\"),this.__root.setAttribute(\"version\",1.1),this.__root.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),this.__root.setAttributeNS(\"http://www.w3.org/2000/xmlns/\",\"xmlns:xlink\",\"http://www.w3.org/1999/xlink\"),this.__root.setAttribute(\"width\",this.width),this.__root.setAttribute(\"height\",this.height),this.__ids={},this.__defs=this.__document.createElementNS(\"http://www.w3.org/2000/svg\",\"defs\"),this.__root.appendChild(this.__defs),this.__currentElement=this.__document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\"),this.__root.appendChild(this.__currentElement)}).prototype.__createElement=function(t,e,n){void 0===e&&(e={});var i,r,o=this.__document.createElementNS(\"http://www.w3.org/2000/svg\",t),s=Object.keys(e);for(n&&(o.setAttribute(\"fill\",\"none\"),o.setAttribute(\"stroke\",\"none\")),i=0;i0){\"path\"===this.__currentElement.nodeName&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());var n=this.__createElement(\"g\");e.appendChild(n),this.__currentElement=n}var i=this.__currentElement.getAttribute(\"transform\");i?i+=\" \":i=\"\",i+=t,this.__currentElement.setAttribute(\"transform\",i)},n.prototype.scale=function(t,e){void 0===e&&(e=t),this.__addTransform(s(\"scale({x},{y})\",{x:t,y:e}))},n.prototype.rotate=function(t){var e=180*t/Math.PI;this.__addTransform(s(\"rotate({angle},{cx},{cy})\",{angle:e,cx:0,cy:0}))},n.prototype.translate=function(t,e){this.__addTransform(s(\"translate({x},{y})\",{x:t,y:e}))},n.prototype.transform=function(t,e,n,i,r,o){this.__addTransform(s(\"matrix({a},{b},{c},{d},{e},{f})\",{a:t,b:e,c:n,d:i,e:r,f:o}))},n.prototype.beginPath=function(){var t;this.__currentDefaultPath=\"\",this.__currentPosition={},t=this.__createElement(\"path\",{},!0),this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t},n.prototype.__applyCurrentDefaultPath=function(){var t=this.__currentElement;\"path\"===t.nodeName?t.setAttribute(\"d\",this.__currentDefaultPath):console.error(\"Attempted to apply path command to node\",t.nodeName)},n.prototype.__addPathCommand=function(t){this.__currentDefaultPath+=\" \",this.__currentDefaultPath+=t},n.prototype.moveTo=function(t,e){\"path\"!==this.__currentElement.nodeName&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(s(\"M {x} {y}\",{x:t,y:e}))},n.prototype.closePath=function(){this.__currentDefaultPath&&this.__addPathCommand(\"Z\")},n.prototype.lineTo=function(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf(\"M\")>-1?this.__addPathCommand(s(\"L {x} {y}\",{x:t,y:e})):this.__addPathCommand(s(\"M {x} {y}\",{x:t,y:e}))},n.prototype.bezierCurveTo=function(t,e,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(s(\"C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}\",{cp1x:t,cp1y:e,cp2x:n,cp2y:i,x:r,y:o}))},n.prototype.quadraticCurveTo=function(t,e,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(s(\"Q {cpx} {cpy} {x} {y}\",{cpx:t,cpy:e,x:n,y:i}))};var c=function(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]};n.prototype.arcTo=function(t,e,n,i,r){var o=this.__currentPosition&&this.__currentPosition.x,s=this.__currentPosition&&this.__currentPosition.y;if(void 0!==o&&void 0!==s){if(r<0)throw new Error(\"IndexSizeError: The radius provided (\"+r+\") is negative.\");if(o===t&&s===e||t===n&&e===i||0===r)this.lineTo(t,e);else{var a=c([o-t,s-e]),l=c([n-t,i-e]);if(a[0]*l[1]!=a[1]*l[0]){var h=a[0]*l[0]+a[1]*l[1],u=Math.acos(Math.abs(h)),_=c([a[0]+l[0],a[1]+l[1]]),d=r/Math.sin(u/2),p=t+d*_[0],f=e+d*_[1],m=[-a[1],a[0]],v=[l[1],-l[0]],g=function(t){var e=t[0],n=t[1];return n>=0?Math.acos(e):-Math.acos(e)},y=g(m),b=g(v);this.lineTo(p+m[0]*r,f+m[1]*r),this.arc(p,f,r,y,b)}else this.lineTo(t,e)}}},n.prototype.stroke=function(){\"path\"===this.__currentElement.nodeName&&this.__currentElement.setAttribute(\"paint-order\",\"fill stroke markers\"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement(\"stroke\")},n.prototype.fill=function(){\"path\"===this.__currentElement.nodeName&&this.__currentElement.setAttribute(\"paint-order\",\"stroke fill markers\"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement(\"fill\")},n.prototype.rect=function(t,e,n,i){\"path\"!==this.__currentElement.nodeName&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()},n.prototype.fillRect=function(t,e,n,i){var r;r=this.__createElement(\"rect\",{x:t,y:e,width:n,height:i},!0),this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement(\"fill\")},n.prototype.strokeRect=function(t,e,n,i){var r;r=this.__createElement(\"rect\",{x:t,y:e,width:n,height:i},!0),this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement(\"stroke\")},n.prototype.__clearCanvas=function(){for(var t=this.__closestGroupOrSvg(),e=t.getAttribute(\"transform\"),n=this.__root.childNodes[1],i=n.childNodes,r=i.length-1;r>=0;r--)i[r]&&n.removeChild(i[r]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)},n.prototype.clearRect=function(t,e,n,i){if(0!==t||0!==e||n!==this.width||i!==this.height){var r,o=this.__closestGroupOrSvg();r=this.__createElement(\"rect\",{x:t,y:e,width:n,height:i,fill:\"#FFFFFF\"},!0),o.appendChild(r)}else this.__clearCanvas()},n.prototype.createLinearGradient=function(t,e,n,r){var o=this.__createElement(\"linearGradient\",{id:a(this.__ids),x1:t+\"px\",x2:n+\"px\",y1:e+\"px\",y2:r+\"px\",gradientUnits:\"userSpaceOnUse\"},!1);return this.__defs.appendChild(o),new i(o,this)},n.prototype.createRadialGradient=function(t,e,n,r,o,s){var l=this.__createElement(\"radialGradient\",{id:a(this.__ids),cx:r+\"px\",cy:o+\"px\",r:s+\"px\",fx:t+\"px\",fy:e+\"px\",gradientUnits:\"userSpaceOnUse\"},!1);return this.__defs.appendChild(l),new i(l,this)},n.prototype.__parseFont=function(){var t=/^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))(?:\\s*\\/\\s*(normal|[.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])))?\\s*([-,\\'\\\"\\sa-z0-9]+?)\\s*$/i.exec(this.font),e={style:t[1]||\"normal\",size:t[4]||\"10px\",family:t[6]||\"sans-serif\",weight:t[3]||\"normal\",decoration:t[2]||\"normal\",href:null};return\"underline\"===this.__fontUnderline&&(e.decoration=\"underline\"),this.__fontHref&&(e.href=this.__fontHref),e},n.prototype.__wrapTextLink=function(t,e){if(t.href){var n=this.__createElement(\"a\");return n.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",t.href),n.appendChild(e),n}return e},n.prototype.__applyText=function(t,e,n,i){var r,o,s=this.__parseFont(),a=this.__closestGroupOrSvg(),c=this.__createElement(\"text\",{\"font-family\":s.family,\"font-size\":s.size,\"font-style\":s.style,\"font-weight\":s.weight,\"text-decoration\":s.decoration,x:e,y:n,\"text-anchor\":(r=this.textAlign,o={left:\"start\",right:\"end\",center:\"middle\",start:\"start\",end:\"end\"},o[r]||o.start),\"dominant-baseline\":l(this.textBaseline)},!0);c.appendChild(this.__document.createTextNode(t)),this.__currentElement=c,this.__applyStyleToCurrentElement(i),a.appendChild(this.__wrapTextLink(s,c))},n.prototype.fillText=function(t,e,n){this.__applyText(t,e,n,\"fill\")},n.prototype.strokeText=function(t,e,n){this.__applyText(t,e,n,\"stroke\")},n.prototype.measureText=function(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)},n.prototype.arc=function(t,e,n,i,r,o){if(i!==r){i%=2*Math.PI,r%=2*Math.PI,i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));var a=t+n*Math.cos(r),l=e+n*Math.sin(r),c=t+n*Math.cos(i),h=e+n*Math.sin(i),u=o?0:1,_=0,d=r-i;d<0&&(d+=2*Math.PI),_=o?d>Math.PI?0:1:d>Math.PI?1:0,this.lineTo(c,h),this.__addPathCommand(s(\"A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}\",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:_,sweepFlag:u,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}},n.prototype.clip=function(){var t=this.__closestGroupOrSvg(),e=this.__createElement(\"clipPath\"),n=a(this.__ids),i=this.__createElement(\"g\");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute(\"id\",n),e.appendChild(this.__currentElement),this.__defs.appendChild(e),t.setAttribute(\"clip-path\",s(\"url(#{id})\",{id:n})),t.appendChild(i),this.__currentElement=i},n.prototype.drawImage=function(){var t,e,i,r,o,s,a,l,c,h,u,_,d,p,f=Array.prototype.slice.call(arguments),m=f[0],v=0,g=0;if(3===f.length)t=f[1],e=f[2],o=m.width,s=m.height,i=o,r=s;else if(5===f.length)t=f[1],e=f[2],i=f[3],r=f[4],o=m.width,s=m.height;else{if(9!==f.length)throw new Error(\"Inavlid number of arguments passed to drawImage: \"+arguments.length);v=f[1],g=f[2],o=f[3],s=f[4],t=f[5],e=f[6],i=f[7],r=f[8]}a=this.__closestGroupOrSvg(),this.__currentElement;var y=\"translate(\"+t+\", \"+e+\")\";if(m instanceof n){if((l=m.getSvg().cloneNode(!0)).childNodes&&l.childNodes.length>1){for(c=l.childNodes[0];c.childNodes.length;)p=c.childNodes[0].getAttribute(\"id\"),this.__ids[p]=p,this.__defs.appendChild(c.childNodes[0]);if(h=l.childNodes[1]){var b,w=h.getAttribute(\"transform\");b=w?w+\" \"+y:y,h.setAttribute(\"transform\",b),a.appendChild(h)}}}else\"IMG\"===m.nodeName?((u=this.__createElement(\"image\")).setAttribute(\"width\",i),u.setAttribute(\"height\",r),u.setAttribute(\"preserveAspectRatio\",\"none\"),(v||g||o!==m.width||s!==m.height)&&((_=this.__document.createElement(\"canvas\")).width=i,_.height=r,(d=_.getContext(\"2d\")).drawImage(m,v,g,o,s,0,0,i,r),m=_),u.setAttribute(\"transform\",y),u.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",\"CANVAS\"===m.nodeName?m.toDataURL():m.getAttribute(\"src\")),a.appendChild(u)):\"CANVAS\"===m.nodeName&&((u=this.__createElement(\"image\")).setAttribute(\"width\",i),u.setAttribute(\"height\",r),u.setAttribute(\"preserveAspectRatio\",\"none\"),(_=this.__document.createElement(\"canvas\")).width=i,_.height=r,(d=_.getContext(\"2d\")).imageSmoothingEnabled=!1,d.mozImageSmoothingEnabled=!1,d.oImageSmoothingEnabled=!1,d.webkitImageSmoothingEnabled=!1,d.drawImage(m,v,g,o,s,0,0,i,r),m=_,u.setAttribute(\"transform\",y),u.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",m.toDataURL()),a.appendChild(u))},n.prototype.createPattern=function(t,e){var i,o=this.__document.createElementNS(\"http://www.w3.org/2000/svg\",\"pattern\"),s=a(this.__ids);return o.setAttribute(\"id\",s),o.setAttribute(\"width\",t.width),o.setAttribute(\"height\",t.height),\"CANVAS\"===t.nodeName||\"IMG\"===t.nodeName?((i=this.__document.createElementNS(\"http://www.w3.org/2000/svg\",\"image\")).setAttribute(\"width\",t.width),i.setAttribute(\"height\",t.height),i.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",\"CANVAS\"===t.nodeName?t.toDataURL():t.getAttribute(\"src\")),o.appendChild(i),this.__defs.appendChild(o)):t instanceof n&&(o.appendChild(t.__root.childNodes[1]),this.__defs.appendChild(o)),new r(o,this)},n.prototype.setLineDash=function(t){t&&t.length>0?this.lineDash=t.join(\",\"):this.lineDash=null},n.prototype.drawFocusRing=function(){},n.prototype.createImageData=function(){},n.prototype.getImageData=function(){},n.prototype.putImageData=function(){},n.prototype.globalCompositeOperation=function(){},n.prototype.setTransform=function(){},\"object\"==typeof window&&(window.C2S=n),\"object\"==typeof e&&\"object\"==typeof e.exports&&(e.exports=n)}()},function(t,e,n){var i,r=t(342),o=t(352),s=t(357),a=t(351),l=t(357),c=t(359),h=Function.prototype.bind,u=Object.defineProperty,_=Object.prototype.hasOwnProperty;i=function(t,e,n){var i,o=c(e)&&l(e.value);return delete(i=r(e)).writable,delete i.value,i.get=function(){return!n.overwriteDefinition&&_.call(this,t)?o:(e.value=h.call(o,n.resolveContext?n.resolveContext(this):this),u(this,t,e),this[t])},i},e.exports=function(t){var e=o(arguments[1]);return null!=e.resolveContext&&s(e.resolveContext),a(t,function(t,n){return i(n,t,e)})}},function(t,e,n){var i=t(339),r=t(352),o=t(345),s=t(360);(e.exports=function(t,e){var n,o,a,l,c;return arguments.length<2||\"string\"!=typeof t?(l=e,e=t,t=null):l=arguments[2],null==t?(n=a=!0,o=!1):(n=s.call(t,\"c\"),o=s.call(t,\"e\"),a=s.call(t,\"w\")),c={value:e,configurable:n,enumerable:o,writable:a},l?i(r(l),c):c}).gs=function(t,e,n){var a,l,c,h;return\"string\"!=typeof t?(c=n,n=e,e=t,t=null):c=arguments[3],null==e?e=void 0:o(e)?null==n?n=void 0:o(n)||(c=n,n=void 0):(c=e,e=n=void 0),null==t?(a=!0,l=!1):(a=s.call(t,\"c\"),l=s.call(t,\"e\")),h={get:e,set:n,configurable:a,enumerable:l},c?i(r(c),h):h}},function(t,e,n){var i=t(359);e.exports=function(){return i(this).length=0,this}},function(t,e,n){var i=t(333),r=t(337),o=t(359),s=Array.prototype.indexOf,a=Object.prototype.hasOwnProperty,l=Math.abs,c=Math.floor;e.exports=function(t){var e,n,h,u;if(!i(t))return s.apply(this,arguments);for(n=r(o(this).length),h=arguments[1],h=isNaN(h)?0:h>=0?c(h):r(this.length)-c(l(h)),e=h;e=55296&&g<=56319&&(x+=t[++n]),x=A?_.call(A,k,x,f):x,e?(d.value=x,p(m,f,d)):m[f]=x,++f;v=f}if(void 0===v)for(v=s(t.length),e&&(m=new e(v)),n=0;n0?1:-1}},function(t,e,n){e.exports=t(334)()?Number.isNaN:t(335)},function(t,e,n){e.exports=function(){var t=Number.isNaN;return\"function\"==typeof t&&!t({})&&t(NaN)&&!t(34)}},function(t,e,n){e.exports=function(t){return t!=t}},function(t,e,n){var i=t(330),r=Math.abs,o=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&&isFinite(t)?i(t)*o(r(t)):t}},function(t,e,n){var i=t(336),r=Math.max;e.exports=function(t){return r(0,i(t))}},function(t,e,n){var i=t(357),r=t(359),o=Function.prototype.bind,s=Function.prototype.call,a=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(n,c){var h,u=arguments[2],_=arguments[3];return n=Object(r(n)),i(c),h=a(n),_&&h.sort(\"function\"==typeof _?o.call(_,n):void 0),\"function\"!=typeof t&&(t=h[t]),s.call(t,h,function(t,i){return l.call(n,t)?s.call(c,u,n[t],t,n,i):e})}}},function(t,e,n){e.exports=t(340)()?Object.assign:t(341)},function(t,e,n){e.exports=function(){var t,e=Object.assign;return\"function\"==typeof e&&(e(t={foo:\"raz\"},{bar:\"dwa\"},{trzy:\"trzy\"}),t.foo+t.bar+t.trzy===\"razdwatrzy\")}},function(t,e,n){var i=t(348),r=t(359),o=Math.max;e.exports=function(t,e){var n,s,a,l=o(arguments.length,2);for(t=Object(r(t)),a=function(i){try{t[i]=e[i]}catch(t){n||(n=t)}},s=1;s-1}},function(t,e,n){var i=Object.prototype.toString,r=i.call(\"\");e.exports=function(t){return\"string\"==typeof t||t&&\"object\"==typeof t&&(t instanceof String||i.call(t)===r)||!1}},function(t,e,n){var i=Object.create(null),r=Math.random;e.exports=function(){var t;do{t=r().toString(36).slice(2)}while(i[t]);return t}},function(t,e,n){var i,r=t(354),o=t(360),s=t(320),a=t(384),l=t(368),c=Object.defineProperty;i=e.exports=function(t,e){if(!(this instanceof i))throw new TypeError(\"Constructor requires 'new'\");l.call(this,t),e=e?o.call(e,\"key+value\")?\"key+value\":o.call(e,\"key\")?\"key\":\"value\":\"value\",c(this,\"__kind__\",s(\"\",e))},r&&r(i,l),delete i.prototype.constructor,i.prototype=Object.create(l.prototype,{_resolve:s(function(t){return\"value\"===this.__kind__?this.__list__[t]:\"key+value\"===this.__kind__?[t,this.__list__[t]]:t})}),c(i.prototype,a.toStringTag,s(\"c\",\"Array Iterator\"))},function(t,e,n){var i=t(326),r=t(357),o=t(363),s=t(367),a=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var n,h,u,_,d,p,f,m,v=arguments[2];if(a(t)||i(t)?n=\"array\":o(t)?n=\"string\":t=s(t),r(e),u=function(){_=!0},\"array\"!==n)if(\"string\"!==n)for(h=t.next();!h.done;){if(l.call(e,v,h.value,u),_)return;h=t.next()}else for(p=t.length,d=0;d=55296&&m<=56319&&(f+=t[++d]),l.call(e,v,f,u),!_);++d);else c.call(t,function(t){return l.call(e,v,t,u),_})}},function(t,e,n){var i=t(326),r=t(363),o=t(365),s=t(370),a=t(371),l=t(384).iterator;e.exports=function(t){return\"function\"==typeof a(t)[l]?t[l]():i(t)?new o(t):r(t)?new s(t):new o(t)}},function(t,e,n){var i,r=t(321),o=t(339),s=t(357),a=t(359),l=t(320),c=t(319),h=t(384),u=Object.defineProperty,_=Object.defineProperties;e.exports=i=function(t,e){if(!(this instanceof i))throw new TypeError(\"Constructor requires 'new'\");_(this,{__list__:l(\"w\",a(t)),__context__:l(\"w\",e),__nextIndex__:l(\"w\",0)}),e&&(s(e.on),e.on(\"_add\",this._onAdd),e.on(\"_delete\",this._onDelete),e.on(\"_clear\",this._onClear))},delete i.prototype.constructor,_(i.prototype,o({_next:l(function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(e,n){e>=t&&(this.__redo__[n]=++e)},this),this.__redo__.push(t)):u(this,\"__redo__\",l(\"c\",[t])))}),_onDelete:l(function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach(function(e,n){e>t&&(this.__redo__[n]=--e)},this)))}),_onClear:l(function(){this.__redo__&&r.call(this.__redo__),this.__nextIndex__=0})}))),u(i.prototype,h.iterator,l(function(){return this}))},function(t,e,n){var i=t(326),r=t(347),o=t(363),s=t(384).iterator,a=Array.isArray;e.exports=function(t){return!(!r(t)||!a(t)&&!o(t)&&!i(t)&&\"function\"!=typeof t[s])}},function(t,e,n){var i,r=t(354),o=t(320),s=t(384),a=t(368),l=Object.defineProperty;i=e.exports=function(t){if(!(this instanceof i))throw new TypeError(\"Constructor requires 'new'\");t=String(t),a.call(this,t),l(this,\"__length__\",o(\"\",t.length))},r&&r(i,a),delete i.prototype.constructor,i.prototype=Object.create(a.prototype,{_next:o(function(){if(this.__list__)return this.__nextIndex__=55296&&e<=56319?n+this.__list__[this.__nextIndex__++]:n})}),l(i.prototype,s.toStringTag,o(\"c\",\"String Iterator\"))},function(t,e,n){var i=t(369);e.exports=function(t){if(!i(t))throw new TypeError(t+\" is not iterable\");return t}},function(t,e,n){t(373)()||Object.defineProperty(t(329),\"Map\",{value:t(377),configurable:!0,enumerable:!1,writable:!0})},function(t,e,n){e.exports=function(){var t,e,n;if(\"function\"!=typeof Map)return!1;try{t=new Map([[\"raz\",\"one\"],[\"dwa\",\"two\"],[\"trzy\",\"three\"]])}catch(t){return!1}return\"[object Map]\"===String(t)&&3===t.size&&\"function\"==typeof t.clear&&\"function\"==typeof t.delete&&\"function\"==typeof t.entries&&\"function\"==typeof t.forEach&&\"function\"==typeof t.get&&\"function\"==typeof t.has&&\"function\"==typeof t.keys&&\"function\"==typeof t.set&&\"function\"==typeof t.values&&(e=t.entries(),!1===(n=e.next()).done&&!!n.value&&\"raz\"===n.value[0]&&\"one\"===n.value[1])}},function(t,e,n){e.exports=\"undefined\"!=typeof Map&&\"[object Map]\"===Object.prototype.toString.call(new Map)},function(t,e,n){e.exports=t(353)(\"key\",\"value\",\"key+value\")},function(t,e,n){var i,r=t(354),o=t(320),s=t(368),a=t(384).toStringTag,l=t(375),c=Object.defineProperties,h=s.prototype._unBind;i=e.exports=function(t,e){if(!(this instanceof i))return new i(t,e);s.call(this,t.__mapKeysData__,t),e&&l[e]||(e=\"key+value\"),c(this,{__kind__:o(\"\",e),__values__:o(\"w\",t.__mapValuesData__)})},r&&r(i,s),i.prototype=Object.create(s.prototype,{constructor:o(i),_resolve:o(function(t){return\"value\"===this.__kind__?this.__values__[t]:\"key\"===this.__kind__?this.__list__[t]:[this.__list__[t],this.__values__[t]]}),_unBind:o(function(){this.__values__=null,h.call(this)}),toString:o(function(){return\"[object Map Iterator]\"})}),Object.defineProperty(i.prototype,a,o(\"c\",\"Map Iterator\"))},function(t,e,n){var i,r=t(321),o=t(322),s=t(354),a=t(357),l=t(359),c=t(320),h=t(393),u=t(384),_=t(371),d=t(366),p=t(376),f=t(374),m=Function.prototype.call,v=Object.defineProperties,g=Object.getPrototypeOf;e.exports=i=function(){var t,e,n,r=arguments[0];if(!(this instanceof i))throw new TypeError(\"Constructor requires 'new'\");return n=f&&s&&Map!==i?s(new Map,g(this)):this,null!=r&&_(r),v(n,{__mapKeysData__:c(\"c\",t=[]),__mapValuesData__:c(\"c\",e=[])}),r?(d(r,function(n){var i=l(n)[0];n=n[1],-1===o.call(t,i)&&(t.push(i),e.push(n))},n),n):n},f&&(s&&s(i,Map),i.prototype=Object.create(Map.prototype,{constructor:c(i)})),h(v(i.prototype,{clear:c(function(){this.__mapKeysData__.length&&(r.call(this.__mapKeysData__),r.call(this.__mapValuesData__),this.emit(\"_clear\"))}),delete:c(function(t){var e=o.call(this.__mapKeysData__,t);return-1!==e&&(this.__mapKeysData__.splice(e,1),this.__mapValuesData__.splice(e,1),this.emit(\"_delete\",e,t),!0)}),entries:c(function(){return new p(this,\"key+value\")}),forEach:c(function(t){var e,n,i=arguments[1];for(a(t),e=this.entries(),n=e._next();void 0!==n;)m.call(t,i,this.__mapValuesData__[n],this.__mapKeysData__[n],this),n=e._next()}),get:c(function(t){var e=o.call(this.__mapKeysData__,t);if(-1!==e)return this.__mapValuesData__[e]}),has:c(function(t){return-1!==o.call(this.__mapKeysData__,t)}),keys:c(function(){return new p(this,\"key\")}),set:c(function(t,e){var n,i=o.call(this.__mapKeysData__,t);return-1===i&&(i=this.__mapKeysData__.push(t)-1,n=!0),this.__mapValuesData__[i]=e,n&&this.emit(\"_add\",i,t),this}),size:c.gs(function(){return this.__mapKeysData__.length}),values:c(function(){return new p(this,\"value\")}),toString:c(function(){return\"[object Map]\"})})),Object.defineProperty(i.prototype,u.iterator,c(function(){return this.entries()})),Object.defineProperty(i.prototype,u.toStringTag,c(\"c\",\"Map\"))},function(t,e,n){\n", " /*!\n", " * @overview es6-promise - a tiny implementation of Promises/A+.\n", " * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n", " * @license Licensed under MIT license\n", " * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n", " * @version v4.2.6+9869a4bc\n", " */\n", " !function(t,i){\"object\"==typeof n&&void 0!==e?e.exports=i():t.ES6Promise=i()}(this,function(){\"use strict\";function e(t){return\"function\"==typeof t}var n=Array.isArray?Array.isArray:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},i=0,r=void 0,o=void 0,s=function(t,e){d[i]=t,d[i+1]=e,2===(i+=2)&&(o?o(p):y())},a=\"undefined\"!=typeof window?window:void 0,l=a||{},c=l.MutationObserver||l.WebKitMutationObserver,h=\"undefined\"==typeof self&&\"undefined\"!=typeof process&&\"[object process]\"==={}.toString.call(process),u=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function _(){var t=setTimeout;return function(){return t(p,1)}}var d=new Array(1e3);function p(){for(var t=0;t0;){var i=n-1>>1,r=this.values[i];if(e>=r)break;this.ids[n]=this.ids[i],this.values[n]=r,n=i}this.ids[n]=t,this.values[n]=e},t.prototype.pop=function(){if(0!==this.length){var t=this.ids[0];if(this.length--,this.length>0){for(var e=this.ids[0]=this.ids[this.length],n=this.values[0]=this.values[this.length],i=this.length>>1,r=0;r=n)break;this.ids[r]=a,this.values[r]=l,r=o}this.ids[r]=e,this.values[r]=n}return this.ids.pop(),this.values.pop(),t}},t.prototype.peek=function(){return this.ids[0]},t.prototype.peekValue=function(){return this.values[0]};var e=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],n=function(n,i,r,o){if(void 0===i&&(i=16),void 0===r&&(r=Float64Array),void 0===n)throw new Error(\"Missing required argument: numItems.\");if(isNaN(n)||n<=0)throw new Error(\"Unpexpected numItems value: \"+n+\".\");this.numItems=+n,this.nodeSize=Math.min(Math.max(+i,2),65535);var s=n,a=s;this._levelBounds=[4*s];do{s=Math.ceil(s/this.nodeSize),a+=s,this._levelBounds.push(4*a)}while(1!==s);this.ArrayType=r||Float64Array,this.IndexArrayType=a<16384?Uint16Array:Uint32Array;var l=e.indexOf(this.ArrayType),c=4*a*this.ArrayType.BYTES_PER_ELEMENT;if(l<0)throw new Error(\"Unexpected typed array class: \"+r+\".\");o&&o instanceof ArrayBuffer?(this.data=o,this._boxes=new this.ArrayType(this.data,8,4*a),this._indices=new this.IndexArrayType(this.data,8+c,a),this._pos=4*a,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new ArrayBuffer(8+c+a*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*a),this._indices=new this.IndexArrayType(this.data,8+c,a),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+l]),new Uint16Array(this.data,2,1)[0]=i,new Uint32Array(this.data,4,1)[0]=n),this._queue=new t};function i(t,e,n){return t>1;e[r]>t?i=r:n=r+1}return e[n]}function o(t,e,n,i,r){var o=t[i];t[i]=t[r],t[r]=o;var s=4*i,a=4*r,l=e[s],c=e[s+1],h=e[s+2],u=e[s+3];e[s]=e[a],e[s+1]=e[a+1],e[s+2]=e[a+2],e[s+3]=e[a+3],e[a]=l,e[a+1]=c,e[a+2]=h,e[a+3]=u;var _=n[i];n[i]=n[r],n[r]=_}function s(t,e){var n=t^e,i=65535^n,r=65535^(t|e),o=t&(65535^e),s=n|i>>1,a=n>>1^n,l=r>>1^i&o>>1^r,c=n&r>>1^o>>1^o;a=(n=s)&(i=a)>>2^i&(n^i)>>2,l^=n&(r=l)>>2^i&(o=c)>>2,c^=i&r>>2^(n^i)&o>>2,a=(n=s=n&n>>2^i&i>>2)&(i=a)>>4^i&(n^i)>>4,l^=n&(r=l)>>4^i&(o=c)>>4,c^=i&r>>4^(n^i)&o>>4,l^=(n=s=n&n>>4^i&i>>4)&(r=l)>>8^(i=a)&(o=c)>>8;var h=t^e,u=(i=(c^=i&r>>8^(n^i)&o>>8)^c>>1)|65535^(h|(n=l^l>>1));return((u=1431655765&((u=858993459&((u=252645135&((u=16711935&(u|u<<8))|u<<4))|u<<2))|u<<1))<<1|(h=1431655765&((h=858993459&((h=252645135&((h=16711935&(h|h<<8))|h<<4))|h<<2))|h<<1)))>>>0}return n.from=function(t){if(!(t instanceof ArrayBuffer))throw new Error(\"Data must be an instance of ArrayBuffer.\");var i=new Uint8Array(t,0,2),r=i[0],o=i[1];if(251!==r)throw new Error(\"Data does not appear to be in a Flatbush format.\");if(o>>4!=3)throw new Error(\"Got v\"+(o>>4)+\" data when expected v3.\");var s=new Uint16Array(t,2,1),a=s[0],l=new Uint32Array(t,4,1),c=l[0];return new n(c,a,e[15&o],t)},n.prototype.add=function(t,e,n,i){var r=this._pos>>2;this._indices[r]=r,this._boxes[this._pos++]=t,this._boxes[this._pos++]=e,this._boxes[this._pos++]=n,this._boxes[this._pos++]=i,tthis.maxX&&(this.maxX=n),i>this.maxY&&(this.maxY=i)},n.prototype.finish=function(){if(this._pos>>2!==this.numItems)throw new Error(\"Added \"+(this._pos>>2)+\" items when expected \"+this.numItems+\".\");for(var t=this.maxX-this.minX,e=this.maxY-this.minY,n=new Uint32Array(this.numItems),i=0;i=s)){for(var a=e[r+s>>1],l=r-1,c=s+1;;){do{l++}while(e[l]a);if(l>=c)break;o(e,n,i,l,c)}t(e,n,i,r,c),t(e,n,i,c+1,s)}}(n,this._boxes,this._indices,0,this.numItems-1);for(var d=0,p=0;dg&&(g=k),C>y&&(y=C)}this._indices[this._pos>>2]=b,this._boxes[this._pos++]=m,this._boxes[this._pos++]=v,this._boxes[this._pos++]=g,this._boxes[this._pos++]=y}},n.prototype.search=function(t,e,n,i,r){if(this._pos!==this._boxes.length)throw new Error(\"Data not yet indexed - call index.finish().\");for(var o=this._boxes.length-4,s=this._levelBounds.length-1,a=[],l=[];void 0!==o;){for(var c=Math.min(o+4*this.nodeSize,this._levelBounds[s]),h=o;h>2];nthis._boxes[h+2]||e>this._boxes[h+3]||(o<4*this.numItems?(void 0===r||r(u))&&l.push(u):(a.push(u),a.push(s-1)))}s=a.pop(),o=a.pop()}return l},n.prototype.neighbors=function(t,e,n,o,s){if(void 0===n&&(n=1/0),void 0===o&&(o=1/0),this._pos!==this._boxes.length)throw new Error(\"Data not yet indexed - call index.finish().\");for(var a=this._boxes.length-4,l=this._queue,c=[],h=o*o;void 0!==a;){for(var u=Math.min(a+4*this.nodeSize,r(a,this._levelBounds)),_=a;_>2],p=i(t,this._boxes[_],this._boxes[_+2]),f=i(e,this._boxes[_+1],this._boxes[_+3]),m=p*p+f*f;a<4*this.numItems?(void 0===s||s(d))&&l.push(-d-1,m):l.push(d,m)}for(;l.length&&l.peek()<0;){var v=l.peekValue();if(v>h)return l.clear(),c;if(c.push(-l.pop()-1),c.length===n)return l.clear(),c}a=l.pop()}return l.clear(),c},n},\"object\"==typeof n&&void 0!==e?e.exports=r():(i=i||self).Flatbush=r()},function(t,e,n){\n", " /*! Hammer.JS - v2.0.7 - 2016-04-22\n", " * http://hammerjs.github.io/\n", " *\n", " * Copyright (c) 2016 Jorik Tangelder;\n", " * Licensed under the MIT license */\n", " !function(t,n,i,r){\"use strict\";var o,s=[\"\",\"webkit\",\"Moz\",\"MS\",\"ms\",\"o\"],a=n.createElement(\"div\"),l=\"function\",c=Math.round,h=Math.abs,u=Date.now;function _(t,e,n){return setTimeout(y(t,n),e)}function d(t,e,n){return!!Array.isArray(t)&&(p(t,n[e],n),!0)}function p(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==r)for(i=0;i\\s*\\(/gm,\"{anonymous}()@\"):\"Unknown Stack Trace\",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,r,i),e.apply(this,arguments)}}o=\"function\"!=typeof Object.assign?function(t){if(t===r||null===t)throw new TypeError(\"Cannot convert undefined or null to object\");for(var e=Object(t),n=1;n-1}function T(t){return t.trim().split(/\\s+/g)}function S(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;in[e]}):i.sort()),i}function z(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),a=0;a1&&!n.firstMultiple?n.firstMultiple=$(e):1===o&&(n.firstMultiple=!1);var s=n.firstInput,a=n.firstMultiple,l=a?a.center:s.center,c=e.center=tt(i);e.timeStamp=u(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=rt(l,c),e.distance=it(l,c),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==R&&o.eventType!==F||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=nt(e.deltaX,e.deltaY);var _,d,p=et(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=h(p.x)>h(p.y)?p.x:p.y,e.scale=a?(_=a.pointers,it((d=i)[0],d[1],Z)/it(_[0],_[1],Z)):1,e.rotation=a?function(t,e){return rt(e[1],e[0],Z)+rt(t[1],t[0],Z)}(a.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,o,s,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=V&&(l>B||a.velocity===r)){var c=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,_=et(l,c,u);i=_.x,o=_.y,n=h(_.x)>h(_.y)?_.x:_.y,s=nt(c,u),t.lastInterval=e}else n=a.velocity,i=a.velocityX,o=a.velocityY,s=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=o,e.direction=s}(n,e);var f=t.element;k(e.srcEvent.target,f)&&(f=e.srcEvent.target),e.target=f}(t,n),t.emit(\"hammer.input\",n),t.recognize(n),t.session.prevInput=n}function $(t){for(var e=[],n=0;n=h(e)?t<0?U:G:e<0?H:Y}function it(t,e,n){n||(n=q);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function rt(t,e,n){n||(n=q);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}K.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(P(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(P(this.element),this.evWin,this.domHandler)}};var ot={mousedown:R,mousemove:D,mouseup:F},st=\"mousedown\",at=\"mousemove mouseup\";function lt(){this.evEl=st,this.evWin=at,this.pressed=!1,K.apply(this,arguments)}g(lt,K,{handler:function(t){var e=ot[t.type];e&R&&0===t.button&&(this.pressed=!0),e&D&&1!==t.which&&(e=F),this.pressed&&(e&F&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:\"mouse\",srcEvent:t}))}});var ct={pointerdown:R,pointermove:D,pointerup:F,pointercancel:V,pointerout:V},ht={2:\"touch\",3:\"pen\",4:\"mouse\",5:\"kinect\"},ut=\"pointerdown\",_t=\"pointermove pointerup pointercancel\";function dt(){this.evEl=ut,this.evWin=_t,K.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(ut=\"MSPointerDown\",_t=\"MSPointerMove MSPointerUp MSPointerCancel\"),g(dt,K,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace(\"ms\",\"\"),r=ct[i],o=ht[t.pointerType]||t.pointerType,s=\"touch\"==o,a=S(e,t.pointerId,\"pointerId\");r&R&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(F|V)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var pt={touchstart:R,touchmove:D,touchend:F,touchcancel:V},ft=\"touchstart\",mt=\"touchstart touchmove touchend touchcancel\";function vt(){this.evTarget=ft,this.evWin=mt,this.started=!1,K.apply(this,arguments)}g(vt,K,{handler:function(t){var e=pt[t.type];if(e===R&&(this.started=!0),this.started){var n=function(t,e){var n=M(t.touches),i=M(t.changedTouches);return e&(F|V)&&(n=E(n.concat(i),\"identifier\",!0)),[n,i]}.call(this,t,e);e&(F|V)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:\"touch\",srcEvent:t})}}});var gt={touchstart:R,touchmove:D,touchend:F,touchcancel:V},yt=\"touchstart touchmove touchend touchcancel\";function bt(){this.evTarget=yt,this.targetIds={},K.apply(this,arguments)}g(bt,K,{handler:function(t){var e=gt[t.type],n=function(t,e){var n=M(t.touches),i=this.targetIds;if(e&(R|D)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=M(t.changedTouches),a=[],l=this.target;if(o=n.filter(function(t){return k(t.target,l)}),e===R)for(r=0;r-1&&i.splice(t,1)},wt)}}g(At,K,{handler:function(t,e,n){var i=\"touch\"==n.pointerType,r=\"mouse\"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(t,e){t&R?(this.primaryTouch=e.changedPointers[0].identifier,kt.call(this,e)):t&(F|V)&&kt.call(this,e)}).call(this,e,n);else if(r&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n=Rt&&i(e.options.event+Lt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&r&e.direction},attrTest:function(t){return Ht.prototype.attrTest.call(this,t)&&(this.state&It||!(this.state&It)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ut(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),g(Wt,Ht,{defaults:{event:\"pinch\",threshold:0,pointers:2},getTouchAction:function(){return[Et]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&It)},emit:function(t){if(1!==t.scale){var e=t.scale<1?\"in\":\"out\";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),g(Jt,Vt,{defaults:{event:\"press\",pointers:1,time:251,threshold:9},getTouchAction:function(){return[St]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distancee.time;if(this._input=t,!i||!n||t.eventType&(F|V)&&!r)this.reset();else if(t.eventType&R)this.reset(),this._timer=_(function(){this.state=Dt,this.tryEmit()},e.time,this);else if(t.eventType&F)return Dt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Dt&&(t&&t.eventType&F?this.manager.emit(this.options.event+\"up\",t):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}}),g(Xt,Ht,{defaults:{event:\"rotate\",threshold:0,pointers:2},getTouchAction:function(){return[Et]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&It)}}),g(qt,Ht,{defaults:{event:\"swipe\",threshold:10,velocity:.3,direction:W|J,pointers:1},getTouchAction:function(){return Yt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(W|J)?e=t.overallVelocity:n&W?e=t.overallVelocityX:n&J&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&t.eventType&F},emit:function(t){var e=Ut(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),g(Zt,Vt,{defaults:{event:\"tap\",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Mt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance-1?function(t,e){var n,i,r,o,s;return s=t.toString(),n=s.split(\"e\")[0],o=s.split(\"e\")[1],i=n.split(\".\")[0],r=n.split(\".\")[1]||\"\",s=i+r+h(o-r.length),e>0&&(s+=\".\"+h(e)),s}(t,e):(n(t*s)/s).toFixed(e),i&&(r=new RegExp(\"0{1,\"+i+\"}$\"),o=o.replace(r,\"\")),o}function _(t,e,n){return e.indexOf(\"$\")>-1?function(t,e,n){var i,o,a=e,l=a.indexOf(\"$\"),c=a.indexOf(\"(\"),h=a.indexOf(\"+\"),u=a.indexOf(\"-\"),_=\"\",p=\"\";if(-1===a.indexOf(\"$\")?\"infix\"===r[s].currency.position?(p=r[s].currency.symbol,r[s].currency.spaceSeparated&&(p=\" \"+p+\" \")):r[s].currency.spaceSeparated&&(_=\" \"):a.indexOf(\" $\")>-1?(_=\" \",a=a.replace(\" $\",\"\")):a.indexOf(\"$ \")>-1?(_=\" \",a=a.replace(\"$ \",\"\")):a=a.replace(\"$\",\"\"),o=d(t,a,n,p),-1===e.indexOf(\"$\"))switch(r[s].currency.position){case\"postfix\":o.indexOf(\")\")>-1?((o=o.split(\"\")).splice(-1,0,_+r[s].currency.symbol),o=o.join(\"\")):o=o+_+r[s].currency.symbol;break;case\"infix\":break;case\"prefix\":o.indexOf(\"(\")>-1||o.indexOf(\"-\")>-1?(o=o.split(\"\"),i=Math.max(c,u)+1,o.splice(i,0,r[s].currency.symbol+_),o=o.join(\"\")):o=r[s].currency.symbol+_+o;break;default:throw Error('Currency position should be among [\"prefix\", \"infix\", \"postfix\"]')}else l<=1?o.indexOf(\"(\")>-1||o.indexOf(\"+\")>-1||o.indexOf(\"-\")>-1?(o=o.split(\"\"),i=1,(l-1?((o=o.split(\"\")).splice(-1,0,_+r[s].currency.symbol),o=o.join(\"\")):o=o+_+r[s].currency.symbol;return o}(t,e,n):e.indexOf(\"%\")>-1?function(t,e,n){var i,r=\"\";return t*=100,e.indexOf(\" %\")>-1?(r=\" \",e=e.replace(\" %\",\"\")):e=e.replace(\"%\",\"\"),(i=d(t,e,n)).indexOf(\")\")>-1?((i=i.split(\"\")).splice(-1,0,r+\"%\"),i=i.join(\"\")):i=i+r+\"%\",i}(t,e,n):e.indexOf(\":\")>-1?function(t){var e=Math.floor(t/60/60),n=Math.floor((t-60*e*60)/60),i=Math.round(t-60*e*60-60*n);return e+\":\"+(n<10?\"0\"+n:n)+\":\"+(i<10?\"0\"+i:i)}(t):d(t,e,n)}function d(t,e,n,i){var o,l,c,h,_,d,p,f,m,v,g,y,b,w,x,A,k,C,T,S=!1,M=!1,E=!1,z=\"\",O=!1,P=!1,j=!1,N=!1,I=!1,B=\"\",R=\"\",D=Math.abs(t),F=[\"B\",\"KiB\",\"MiB\",\"GiB\",\"TiB\",\"PiB\",\"EiB\",\"ZiB\",\"YiB\"],V=[\"B\",\"KB\",\"MB\",\"GB\",\"TB\",\"PB\",\"EB\",\"ZB\",\"YB\"],L=\"\",U=!1,G=!1;if(0===t&&null!==a)return a;if(!isFinite(t))return\"\"+t;if(0===e.indexOf(\"{\")){var H=e.indexOf(\"}\");if(-1===H)throw Error('Format should also contain a \"}\"');y=e.slice(1,H),e=e.slice(H+1)}else y=\"\";if(e.indexOf(\"}\")===e.length-1){var Y=e.indexOf(\"{\");if(-1===Y)throw Error('Format should also contain a \"{\"');b=e.slice(Y+1,-1),e=e.slice(0,Y+1)}else b=\"\";if(T=-1===e.indexOf(\".\")?e.match(/([0-9]+).*/):e.match(/([0-9]+)\\..*/),C=null===T?-1:T[1].length,-1!==e.indexOf(\"-\")&&(U=!0),e.indexOf(\"(\")>-1?(S=!0,e=e.slice(1,-1)):e.indexOf(\"+\")>-1&&(M=!0,e=e.replace(/\\+/g,\"\")),e.indexOf(\"a\")>-1){if(v=e.split(\".\")[0].match(/[0-9]+/g)||[\"0\"],v=parseInt(v[0],10),O=e.indexOf(\"aK\")>=0,P=e.indexOf(\"aM\")>=0,j=e.indexOf(\"aB\")>=0,N=e.indexOf(\"aT\")>=0,I=O||P||j||N,e.indexOf(\" a\")>-1?(z=\" \",e=e.replace(\" a\",\"\")):e=e.replace(\"a\",\"\"),_=Math.floor(Math.log(D)/Math.LN10)+1,p=0==(p=_%3)?3:p,v&&0!==D&&(d=Math.floor(Math.log(D)/Math.LN10)+1-v,f=3*~~((Math.min(v,_)-p)/3),D/=Math.pow(10,f),-1===e.indexOf(\".\")&&v>3))for(e+=\"[.]\",A=(A=0===d?0:3*~~(d/3)-d)<0?A+3:A,o=0;o=Math.pow(10,12)&&!I||N?(z+=r[s].abbreviations.trillion,t/=Math.pow(10,12)):D=Math.pow(10,9)&&!I||j?(z+=r[s].abbreviations.billion,t/=Math.pow(10,9)):D=Math.pow(10,6)&&!I||P?(z+=r[s].abbreviations.million,t/=Math.pow(10,6)):(D=Math.pow(10,3)&&!I||O)&&(z+=r[s].abbreviations.thousand,t/=Math.pow(10,3)))}if(e.indexOf(\"b\")>-1)for(e.indexOf(\" b\")>-1?(B=\" \",e=e.replace(\" b\",\"\")):e=e.replace(\"b\",\"\"),h=0;h<=F.length;h++)if(l=Math.pow(1024,h),c=Math.pow(1024,h+1),t>=l&&t0&&(t/=l);break}if(e.indexOf(\"d\")>-1)for(e.indexOf(\" d\")>-1?(B=\" \",e=e.replace(\" d\",\"\")):e=e.replace(\"d\",\"\"),h=0;h<=V.length;h++)if(l=Math.pow(1e3,h),c=Math.pow(1e3,h+1),t>=l&&t0&&(t/=l);break}if(e.indexOf(\"o\")>-1&&(e.indexOf(\" o\")>-1?(R=\" \",e=e.replace(\" o\",\"\")):e=e.replace(\"o\",\"\"),r[s].ordinal&&(R+=r[s].ordinal(t))),e.indexOf(\"[.]\")>-1&&(E=!0,e=e.replace(\"[.]\",\".\")),m=t.toString().split(\".\")[0],g=e.split(\".\")[1],w=e.indexOf(\",\"),g){if(-1!==g.indexOf(\"*\")?L=u(t,t.toString().split(\".\")[1].length,n):g.indexOf(\"[\")>-1?(g=(g=g.replace(\"]\",\"\")).split(\"[\"),L=u(t,g[0].length+g[1].length,n,g[1].length)):L=u(t,g.length,n),m=L.split(\".\")[0],L.split(\".\")[1].length){var W=i?z+i:r[s].delimiters.decimal;L=W+L.split(\".\")[1]}else L=\"\";E&&0===Number(L.slice(1))&&(L=\"\")}else m=u(t,null,n);return m.indexOf(\"-\")>-1&&(m=m.slice(1),G=!0),m.length-1&&(m=m.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g,\"$1\"+r[s].delimiters.thousands)),0===e.indexOf(\".\")&&(m=\"\"),x=e.indexOf(\"(\"),k=e.indexOf(\"-\"),y+(x2||(s.length<2?!s[0].match(/^\\d+.*\\d$/)||s[0].match(l):1===s[0].length?!s[0].match(/^\\d+$/)||s[0].match(l)||!s[1].match(/^\\d+$/):!s[0].match(/^\\d+.*\\d$/)||s[0].match(l)||!s[1].match(/^\\d+$/))))},e.exports={format:function(t,e,n,r){return null!=n&&n!==i.culture()&&i.setCulture(n),_(Number(t),null!=e?e:l,null==r?Math.round:r)}}},function(t,e,n){var i=t(417),r=t(415),o=t(419),s=t(414),a=t(405),l=t(410);function c(t,e){if(!(this instanceof c))return new c(t);e=e||function(t){if(t)throw t};var n=i(t);if(\"object\"==typeof n){var o=c.projections.get(n.projName);if(o){if(n.datumCode&&\"none\"!==n.datumCode){var h=a[n.datumCode];h&&(n.datum_params=h.towgs84?h.towgs84.split(\",\"):null,n.ellps=h.ellipse,n.datumName=h.datumName?h.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||\"enu\";var u=s.sphere(n.a,n.b,n.rf,n.ellps,n.sphere),_=s.eccentricity(u.a,u.b,u.rf,n.R_A),d=n.datum||l(n.datumCode,n.datum_params,u.a,u.b,_.es,_.ep2);r(this,n),r(this,o),this.a=u.a,this.b=u.b,this.rf=u.rf,this.sphere=u.sphere,this.es=_.es,this.e=_.e,this.ep2=_.ep2,this.datum=d,this.init(),e(null,this)}else e(t)}else e(t)}c.projections=o,c.projections.start(),e.exports=c},function(t,e,n){e.exports=function(t,e,n){var i,r,o,s=n.x,a=n.y,l=n.z||0,c={};for(o=0;o<3;o++)if(!e||2!==o||void 0!==n.z)switch(0===o?(i=s,r=\"x\"):1===o?(i=a,r=\"y\"):(i=l,r=\"z\"),t.axis[o]){case\"e\":c[r]=i;break;case\"w\":c[r]=-i;break;case\"n\":c[r]=i;break;case\"s\":c[r]=-i;break;case\"u\":void 0!==n[r]&&(c.z=i);break;case\"d\":void 0!==n[r]&&(c.z=-i);break;default:return null}return c}},function(t,e,n){var i=2*Math.PI,r=t(402);e.exports=function(t){return Math.abs(t)<=3.14159265359?t:t-r(t)*i}},function(t,e,n){e.exports=function(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}},function(t,e,n){var i=Math.PI/2;e.exports=function(t,e){for(var n,r,o=.5*t,s=i-2*Math.atan(e),a=0;a<=15;a++)if(n=t*Math.sin(s),r=i-2*Math.atan(e*Math.pow((1-n)/(1+n),o))-s,s+=r,Math.abs(r)<=1e-10)return s;return-9999}},function(t,e,n){e.exports=function(t){return t<0?-1:1}},function(t,e,n){e.exports=function(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}},function(t,e,n){var i=Math.PI/2;e.exports=function(t,e,n){var r=t*n,o=.5*t;return r=Math.pow((1-r)/(1+r),o),Math.tan(.5*(i-e))/r}},function(t,e,n){n.wgs84={towgs84:\"0,0,0\",ellipse:\"WGS84\",datumName:\"WGS84\"},n.ch1903={towgs84:\"674.374,15.056,405.346\",ellipse:\"bessel\",datumName:\"swiss\"},n.ggrs87={towgs84:\"-199.87,74.79,246.62\",ellipse:\"GRS80\",datumName:\"Greek_Geodetic_Reference_System_1987\"},n.nad83={towgs84:\"0,0,0\",ellipse:\"GRS80\",datumName:\"North_American_Datum_1983\"},n.nad27={nadgrids:\"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat\",ellipse:\"clrk66\",datumName:\"North_American_Datum_1927\"},n.potsdam={towgs84:\"606.0,23.0,413.0\",ellipse:\"bessel\",datumName:\"Potsdam Rauenberg 1950 DHDN\"},n.carthage={towgs84:\"-263.0,6.0,431.0\",ellipse:\"clark80\",datumName:\"Carthage 1934 Tunisia\"},n.hermannskogel={towgs84:\"653.0,-212.0,449.0\",ellipse:\"bessel\",datumName:\"Hermannskogel\"},n.ire65={towgs84:\"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15\",ellipse:\"mod_airy\",datumName:\"Ireland 1965\"},n.rassadiran={towgs84:\"-133.63,-157.5,-158.62\",ellipse:\"intl\",datumName:\"Rassadiran\"},n.nzgd49={towgs84:\"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993\",ellipse:\"intl\",datumName:\"New Zealand Geodetic Datum 1949\"},n.osgb36={towgs84:\"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894\",ellipse:\"airy\",datumName:\"Airy 1830\"},n.s_jtsk={towgs84:\"589,76,480\",ellipse:\"bessel\",datumName:\"S-JTSK (Ferro)\"},n.beduaram={towgs84:\"-106,-87,188\",ellipse:\"clrk80\",datumName:\"Beduaram\"},n.gunung_segara={towgs84:\"-403,684,41\",ellipse:\"bessel\",datumName:\"Gunung Segara Jakarta\"},n.rnb72={towgs84:\"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1\",ellipse:\"intl\",datumName:\"Reseau National Belge 1972\"}},function(t,e,n){n.MERIT={a:6378137,rf:298.257,ellipseName:\"MERIT 1983\"},n.SGS85={a:6378136,rf:298.257,ellipseName:\"Soviet Geodetic System 85\"},n.GRS80={a:6378137,rf:298.257222101,ellipseName:\"GRS 1980(IUGG, 1980)\"},n.IAU76={a:6378140,rf:298.257,ellipseName:\"IAU 1976\"},n.airy={a:6377563.396,b:6356256.91,ellipseName:\"Airy 1830\"},n.APL4={a:6378137,rf:298.25,ellipseName:\"Appl. Physics. 1965\"},n.NWL9D={a:6378145,rf:298.25,ellipseName:\"Naval Weapons Lab., 1965\"},n.mod_airy={a:6377340.189,b:6356034.446,ellipseName:\"Modified Airy\"},n.andrae={a:6377104.43,rf:300,ellipseName:\"Andrae 1876 (Den., Iclnd.)\"},n.aust_SA={a:6378160,rf:298.25,ellipseName:\"Australian Natl & S. Amer. 1969\"},n.GRS67={a:6378160,rf:298.247167427,ellipseName:\"GRS 67(IUGG 1967)\"},n.bessel={a:6377397.155,rf:299.1528128,ellipseName:\"Bessel 1841\"},n.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:\"Bessel 1841 (Namibia)\"},n.clrk66={a:6378206.4,b:6356583.8,ellipseName:\"Clarke 1866\"},n.clrk80={a:6378249.145,rf:293.4663,ellipseName:\"Clarke 1880 mod.\"},n.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:\"Clarke 1858\"},n.CPM={a:6375738.7,rf:334.29,ellipseName:\"Comm. des Poids et Mesures 1799\"},n.delmbr={a:6376428,rf:311.5,ellipseName:\"Delambre 1810 (Belgium)\"},n.engelis={a:6378136.05,rf:298.2566,ellipseName:\"Engelis 1985\"},n.evrst30={a:6377276.345,rf:300.8017,ellipseName:\"Everest 1830\"},n.evrst48={a:6377304.063,rf:300.8017,ellipseName:\"Everest 1948\"},n.evrst56={a:6377301.243,rf:300.8017,ellipseName:\"Everest 1956\"},n.evrst69={a:6377295.664,rf:300.8017,ellipseName:\"Everest 1969\"},n.evrstSS={a:6377298.556,rf:300.8017,ellipseName:\"Everest (Sabah & Sarawak)\"},n.fschr60={a:6378166,rf:298.3,ellipseName:\"Fischer (Mercury Datum) 1960\"},n.fschr60m={a:6378155,rf:298.3,ellipseName:\"Fischer 1960\"},n.fschr68={a:6378150,rf:298.3,ellipseName:\"Fischer 1968\"},n.helmert={a:6378200,rf:298.3,ellipseName:\"Helmert 1906\"},n.hough={a:6378270,rf:297,ellipseName:\"Hough\"},n.intl={a:6378388,rf:297,ellipseName:\"International 1909 (Hayford)\"},n.kaula={a:6378163,rf:298.24,ellipseName:\"Kaula 1961\"},n.lerch={a:6378139,rf:298.257,ellipseName:\"Lerch 1979\"},n.mprts={a:6397300,rf:191,ellipseName:\"Maupertius 1738\"},n.new_intl={a:6378157.5,b:6356772.2,ellipseName:\"New International 1967\"},n.plessis={a:6376523,rf:6355863,ellipseName:\"Plessis 1817 (France)\"},n.krass={a:6378245,rf:298.3,ellipseName:\"Krassovsky, 1942\"},n.SEasia={a:6378155,b:6356773.3205,ellipseName:\"Southeast Asia\"},n.walbeck={a:6376896,b:6355834.8467,ellipseName:\"Walbeck\"},n.WGS60={a:6378165,rf:298.3,ellipseName:\"WGS 60\"},n.WGS66={a:6378145,rf:298.25,ellipseName:\"WGS 66\"},n.WGS7={a:6378135,rf:298.26,ellipseName:\"WGS 72\"},n.WGS84={a:6378137,rf:298.257223563,ellipseName:\"WGS 84\"},n.sphere={a:6370997,b:6370997,ellipseName:\"Normal Sphere (r=6370997)\"}},function(t,e,n){n.greenwich=0,n.lisbon=-9.131906111111,n.paris=2.337229166667,n.bogota=-74.080916666667,n.madrid=-3.687938888889,n.rome=12.452333333333,n.bern=7.439583333333,n.jakarta=106.807719444444,n.ferro=-17.666666666667,n.brussels=4.367975,n.stockholm=18.058277777778,n.athens=23.7163375,n.oslo=10.722916666667},function(t,e,n){n.ft={to_meter:.3048},n[\"us-ft\"]={to_meter:1200/3937}},function(t,e,n){var i=t(397),r=t(422),o=i(\"WGS84\");function s(t,e,n){var i;return Array.isArray(n)?(i=r(t,e,n),3===n.length?[i.x,i.y,i.z]:[i.x,i.y]):r(t,e,n)}function a(t){return t instanceof i?t:t.oProj?t.oProj:i(t)}e.exports=function(t,e,n){t=a(t);var i,r=!1;return void 0===e?(e=t,t=o,r=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,e=t,t=o,r=!0),e=a(e),n?s(t,e,n):(i={forward:function(n){return s(t,e,n)},inverse:function(n){return s(e,t,n)}},r&&(i.oProj=e),i)}},function(t,e,n){var i=1,r=2,o=4,s=5,a=484813681109536e-20;e.exports=function(t,e,n,l,c,h){var u={};return u.datum_type=o,t&&\"none\"===t&&(u.datum_type=s),e&&(u.datum_params=e.map(parseFloat),0===u.datum_params[0]&&0===u.datum_params[1]&&0===u.datum_params[2]||(u.datum_type=i),u.datum_params.length>3&&(0===u.datum_params[3]&&0===u.datum_params[4]&&0===u.datum_params[5]&&0===u.datum_params[6]||(u.datum_type=r,u.datum_params[3]*=a,u.datum_params[4]*=a,u.datum_params[5]*=a,u.datum_params[6]=u.datum_params[6]/1e6+1))),u.a=n,u.b=l,u.es=c,u.ep2=h,u}},function(t,e,n){var i=Math.PI/2;n.compareDatums=function(t,e){return t.datum_type===e.datum_type&&!(t.a!==e.a||Math.abs(this.es-e.es)>5e-11)&&(1===t.datum_type?this.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:2!==t.datum_type||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6])},n.geodeticToGeocentric=function(t,e,n){var r,o,s,a,l=t.x,c=t.y,h=t.z?t.z:0;if(c<-i&&c>-1.001*i)c=-i;else if(c>i&&c<1.001*i)c=i;else if(c<-i||c>i)return null;return l>Math.PI&&(l-=2*Math.PI),o=Math.sin(c),a=Math.cos(c),s=o*o,{x:((r=n/Math.sqrt(1-e*s))+h)*a*Math.cos(l),y:(r+h)*a*Math.sin(l),z:(r*(1-e)+h)*o}},n.geocentricToGeodetic=function(t,e,n,r){var o,s,a,l,c,h,u,_,d,p,f,m,v,g,y,b,w=t.x,x=t.y,A=t.z?t.z:0;if(o=Math.sqrt(w*w+x*x),s=Math.sqrt(w*w+x*x+A*A),o/n<1e-12){if(g=0,s/n<1e-12)return y=i,b=-r,{x:t.x,y:t.y,z:t.z}}else g=Math.atan2(x,w);a=A/s,l=o/s,c=1/Math.sqrt(1-e*(2-e)*l*l),_=l*(1-e)*c,d=a*c,v=0;do{v++,u=n/Math.sqrt(1-e*d*d),h=e*u/(u+(b=o*_+A*d-u*(1-e*d*d))),c=1/Math.sqrt(1-h*(2-h)*l*l),m=(f=a*c)*_-(p=l*(1-h)*c)*d,_=p,d=f}while(m*m>1e-24&&v<30);return y=Math.atan(f/Math.abs(p)),{x:g,y:y,z:b}},n.geocentricToWgs84=function(t,e,n){if(1===e)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(2===e){var i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],l=n[5],c=n[6];return{x:c*(t.x-l*t.y+a*t.z)+i,y:c*(l*t.x+t.y-s*t.z)+r,z:c*(-a*t.x+s*t.y+t.z)+o}}},n.geocentricFromWgs84=function(t,e,n){if(1===e)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(2===e){var i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],l=n[5],c=n[6],h=(t.x-i)/c,u=(t.y-r)/c,_=(t.z-o)/c;return{x:h+l*u-a*_,y:-l*h+u+s*_,z:a*h-s*u+_}}}},function(t,e,n){var i=1,r=2,o=t(411);function s(t){return t===i||t===r}e.exports=function(t,e,n){return o.compareDatums(t,e)?n:5===t.datum_type||5===e.datum_type?n:t.es!==e.es||t.a!==e.a||s(t.datum_type)||s(e.datum_type)?(n=o.geodeticToGeocentric(n,t.es,t.a),s(t.datum_type)&&(n=o.geocentricToWgs84(n,t.datum_type,t.datum_params)),s(e.datum_type)&&(n=o.geocentricFromWgs84(n,e.datum_type,e.datum_params)),o.geocentricToGeodetic(n,e.es,e.a,e.b)):n}},function(t,e,n){var i=t(416),r=t(418),o=t(423);function s(t){var e=this;if(2===arguments.length){var n=arguments[1];\"string\"==typeof n?\"+\"===n.charAt(0)?s[t]=r(arguments[1]):s[t]=o(arguments[1]):s[t]=n}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?s.apply(e,t):s(t)});if(\"string\"==typeof t){if(t in s)return s[t]}else\"EPSG\"in t?s[\"EPSG:\"+t.EPSG]=t:\"ESRI\"in t?s[\"ESRI:\"+t.ESRI]=t:\"IAU2000\"in t?s[\"IAU2000:\"+t.IAU2000]=t:console.log(t);return}}i(s),e.exports=s},function(t,e,n){var i=t(406);n.eccentricity=function(t,e,n,i){var r=t*t,o=e*e,s=(r-o)/r,a=0;i?(r=(t*=1-s*(.16666666666666666+s*(.04722222222222222+.022156084656084655*s)))*t,s=0):a=Math.sqrt(s);var l=(r-o)/o;return{es:s,e:a,ep2:l}},n.sphere=function(t,e,n,r,o){if(!t){var s=i[r];s||(s=i.WGS84),t=s.a,e=s.b,n=s.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)<1e-10)&&(o=!0,e=t),{a:t,b:e,rf:n,sphere:o}}},function(t,e,n){e.exports=function(t,e){var n,i;if(t=t||{},!e)return t;for(i in e)void 0!==(n=e[i])&&(t[i]=n);return t}},function(t,e,n){e.exports=function(t){t(\"EPSG:4326\",\"+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees\"),t(\"EPSG:4269\",\"+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees\"),t(\"EPSG:3857\",\"+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs\"),t.WGS84=t[\"EPSG:4326\"],t[\"EPSG:3785\"]=t[\"EPSG:3857\"],t.GOOGLE=t[\"EPSG:3857\"],t[\"EPSG:900913\"]=t[\"EPSG:3857\"],t[\"EPSG:102113\"]=t[\"EPSG:3857\"]}},function(t,e,n){var i=t(413),r=t(423),o=t(418),s=[\"GEOGCS\",\"GEOCCS\",\"PROJCS\",\"LOCAL_CS\"];e.exports=function(t){return function(t){return\"string\"==typeof t}(t)?function(t){return t in i}(t)?i[t]:function(t){return s.some(function(e){return t.indexOf(e)>-1})}(t)?r(t):function(t){return\"+\"===t[0]}(t)?o(t):void 0:t}},function(t,e,n){var i=.017453292519943295,r=t(407),o=t(408);e.exports=function(t){var e,n,s,a={},l=t.split(\"+\").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.split(\"=\");return n.push(!0),t[n[0].toLowerCase()]=n[1],t},{}),c={proj:\"projName\",datum:\"datumCode\",rf:function(t){a.rf=parseFloat(t)},lat_0:function(t){a.lat0=t*i},lat_1:function(t){a.lat1=t*i},lat_2:function(t){a.lat2=t*i},lat_ts:function(t){a.lat_ts=t*i},lon_0:function(t){a.long0=t*i},lon_1:function(t){a.long1=t*i},lon_2:function(t){a.long2=t*i},alpha:function(t){a.alpha=parseFloat(t)*i},lonc:function(t){a.longc=t*i},x_0:function(t){a.x0=parseFloat(t)},y_0:function(t){a.y0=parseFloat(t)},k_0:function(t){a.k0=parseFloat(t)},k:function(t){a.k0=parseFloat(t)},a:function(t){a.a=parseFloat(t)},b:function(t){a.b=parseFloat(t)},r_a:function(){a.R_A=!0},zone:function(t){a.zone=parseInt(t,10)},south:function(){a.utmSouth=!0},towgs84:function(t){a.datum_params=t.split(\",\").map(function(t){return parseFloat(t)})},to_meter:function(t){a.to_meter=parseFloat(t)},units:function(t){a.units=t,o[t]&&(a.to_meter=o[t].to_meter)},from_greenwich:function(t){a.from_greenwich=t*i},pm:function(t){a.from_greenwich=(r[t]?r[t]:parseFloat(t))*i},nadgrids:function(t){\"@null\"===t?a.datumCode=\"none\":a.nadgrids=t},axis:function(t){3===t.length&&-1!==\"ewnsud\".indexOf(t.substr(0,1))&&-1!==\"ewnsud\".indexOf(t.substr(1,1))&&-1!==\"ewnsud\".indexOf(t.substr(2,1))&&(a.axis=t)}};for(e in l)n=l[e],e in c?\"function\"==typeof(s=c[e])?s(n):a[s]=n:a[e]=n;return\"string\"==typeof a.datumCode&&\"WGS84\"!==a.datumCode&&(a.datumCode=a.datumCode.toLowerCase()),a}},function(t,e,n){var i=[t(421),t(420)],r={},o=[];function s(t,e){var n=o.length;return t.names?(o[n]=t,t.names.forEach(function(t){r[t.toLowerCase()]=n}),this):(console.log(e),!0)}n.add=s,n.get=function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==r[e]&&o[r[e]]?o[r[e]]:void 0},n.start=function(){i.forEach(s)}},function(t,e,n){function i(t){return t}n.init=function(){},n.forward=i,n.inverse=i,n.names=[\"longlat\",\"identity\"]},function(t,e,n){var i=t(400),r=Math.PI/2,o=57.29577951308232,s=t(399),a=Math.PI/4,l=t(404),c=t(401);n.init=function(){var t=this.b/this.a;this.es=1-t*t,\"x0\"in this||(this.x0=0),\"y0\"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=i(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},n.forward=function(t){var e,n,i=t.x,c=t.y;if(c*o>90&&c*o<-90&&i*o>180&&i*o<-180)return null;if(Math.abs(Math.abs(c)-r)<=1e-10)return null;if(this.sphere)e=this.x0+this.a*this.k0*s(i-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(a+.5*c));else{var h=Math.sin(c),u=l(this.e,c,h);e=this.x0+this.a*this.k0*s(i-this.long0),n=this.y0-this.a*this.k0*Math.log(u)}return t.x=e,t.y=n,t},n.inverse=function(t){var e,n,i=t.x-this.x0,o=t.y-this.y0;if(this.sphere)n=r-2*Math.atan(Math.exp(-o/(this.a*this.k0)));else{var a=Math.exp(-o/(this.a*this.k0));if(-9999===(n=c(this.e,a)))return null}return e=s(this.long0+i/(this.a*this.k0)),t.x=e,t.y=n,t},n.names=[\"Mercator\",\"Popular Visualisation Pseudo Mercator\",\"Mercator_1SP\",\"Mercator_Auxiliary_Sphere\",\"merc\"]},function(t,e,n){var i=.017453292519943295,r=57.29577951308232,o=1,s=2,a=t(412),l=t(398),c=t(397),h=t(403);e.exports=function t(e,n,u){var _;return Array.isArray(u)&&(u=h(u)),e.datum&&n.datum&&function(t,e){return(t.datum.datum_type===o||t.datum.datum_type===s)&&\"WGS84\"!==e.datumCode||(e.datum.datum_type===o||e.datum.datum_type===s)&&\"WGS84\"!==t.datumCode}(e,n)&&(_=new c(\"WGS84\"),u=t(e,_,u),e=_),\"enu\"!==e.axis&&(u=l(e,!1,u)),\"longlat\"===e.projName?u={x:u.x*i,y:u.y*i}:(e.to_meter&&(u={x:u.x*e.to_meter,y:u.y*e.to_meter}),u=e.inverse(u)),e.from_greenwich&&(u.x+=e.from_greenwich),u=a(e.datum,n.datum,u),n.from_greenwich&&(u={x:u.x-n.grom_greenwich,y:u.y}),\"longlat\"===n.projName?u={x:u.x*r,y:u.y*r}:(u=n.forward(u),n.to_meter&&(u={x:u.x/n.to_meter,y:u.y/n.to_meter})),\"enu\"!==n.axis?l(n,!0,u):u}},function(t,e,n){var i=.017453292519943295,r=t(415);function o(t,e,n){t[e]=n.map(function(t){var e={};return s(t,e),e}).reduce(function(t,e){return r(t,e)},{})}function s(t,e){var n;Array.isArray(t)?(\"PARAMETER\"===(n=t.shift())&&(n=t.shift()),1===t.length?Array.isArray(t[0])?(e[n]={},s(t[0],e[n])):e[n]=t[0]:t.length?\"TOWGS84\"===n?e[n]=t:(e[n]={},[\"UNIT\",\"PRIMEM\",\"VERT_DATUM\"].indexOf(n)>-1?(e[n]={name:t[0].toLowerCase(),convert:t[1]},3===t.length&&(e[n].auth=t[2])):\"SPHEROID\"===n?(e[n]={name:t[0],a:t[1],rf:t[2]},4===t.length&&(e[n].auth=t[3])):[\"GEOGCS\",\"GEOCCS\",\"DATUM\",\"VERT_CS\",\"COMPD_CS\",\"LOCAL_CS\",\"FITTED_CS\",\"LOCAL_DATUM\"].indexOf(n)>-1?(t[0]=[\"name\",t[0]],o(e,n,t)):t.every(function(t){return Array.isArray(t)})?o(e,n,t):s(t,e[n])):e[n]=!0):e[t]=!0}function a(t){return t*i}e.exports=function(t,e){var n=JSON.parse((\",\"+t).replace(/\\s*\\,\\s*([A-Z_0-9]+?)(\\[)/g,',[\"$1\",').slice(1).replace(/\\s*\\,\\s*([A-Z_0-9]+?)\\]/g,',\"$1\"]').replace(/,\\[\"VERTCS\".+/,\"\")),i=n.shift(),o=n.shift();n.unshift([\"name\",o]),n.unshift([\"type\",i]),n.unshift(\"output\");var l={};return s(n,l),function(t){function e(e){var n=t.to_meter||1;return parseFloat(e,10)*n}\"GEOGCS\"===t.type?t.projName=\"longlat\":\"LOCAL_CS\"===t.type?(t.projName=\"identity\",t.local=!0):\"object\"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),\"metre\"===t.units&&(t.units=\"meter\"),t.UNIT.convert&&(\"GEOGCS\"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=parseFloat(t.UNIT.convert,10)*t.DATUM.SPHEROID.a):t.to_meter=parseFloat(t.UNIT.convert,10))),t.GEOGCS&&(t.GEOGCS.DATUM?t.datumCode=t.GEOGCS.DATUM.name.toLowerCase():t.datumCode=t.GEOGCS.name.toLowerCase(),\"d_\"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),\"new_zealand_geodetic_datum_1949\"!==t.datumCode&&\"new_zealand_1949\"!==t.datumCode||(t.datumCode=\"nzgd49\"),\"wgs_1984\"===t.datumCode&&(\"Mercator_Auxiliary_Sphere\"===t.PROJECTION&&(t.sphere=!0),t.datumCode=\"wgs84\"),\"_ferro\"===t.datumCode.slice(-6)&&(t.datumCode=t.datumCode.slice(0,-6)),\"_jakarta\"===t.datumCode.slice(-8)&&(t.datumCode=t.datumCode.slice(0,-8)),~t.datumCode.indexOf(\"belge\")&&(t.datumCode=\"rnb72\"),t.GEOGCS.DATUM&&t.GEOGCS.DATUM.SPHEROID&&(t.ellps=t.GEOGCS.DATUM.SPHEROID.name.replace(\"_19\",\"\").replace(/[Cc]larke\\_18/,\"clrk\"),\"international\"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps=\"intl\"),t.a=t.GEOGCS.DATUM.SPHEROID.a,t.rf=parseFloat(t.GEOGCS.DATUM.SPHEROID.rf,10)),~t.datumCode.indexOf(\"osgb_1936\")&&(t.datumCode=\"osgb36\")),t.b&&!isFinite(t.b)&&(t.b=t.a),[[\"standard_parallel_1\",\"Standard_Parallel_1\"],[\"standard_parallel_2\",\"Standard_Parallel_2\"],[\"false_easting\",\"False_Easting\"],[\"false_northing\",\"False_Northing\"],[\"central_meridian\",\"Central_Meridian\"],[\"latitude_of_origin\",\"Latitude_Of_Origin\"],[\"latitude_of_origin\",\"Central_Parallel\"],[\"scale_factor\",\"Scale_Factor\"],[\"k0\",\"scale_factor\"],[\"latitude_of_center\",\"Latitude_of_center\"],[\"lat0\",\"latitude_of_center\",a],[\"longitude_of_center\",\"Longitude_Of_Center\"],[\"longc\",\"longitude_of_center\",a],[\"x0\",\"false_easting\",e],[\"y0\",\"false_northing\",e],[\"long0\",\"central_meridian\",a],[\"lat0\",\"latitude_of_origin\",a],[\"lat0\",\"standard_parallel_1\",a],[\"lat1\",\"standard_parallel_1\",a],[\"lat2\",\"standard_parallel_2\",a],[\"alpha\",\"azimuth\",a],[\"srsCode\",\"name\"]].forEach(function(e){return n=t,r=(i=e)[0],o=i[1],void(!(r in n)&&o in n&&(n[r]=n[o],3===i.length&&(n[r]=i[2](n[r]))));var n,i,r,o}),t.long0||!t.longc||\"Albers_Conic_Equal_Area\"!==t.projName&&\"Lambert_Azimuthal_Equal_Area\"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||\"Stereographic_South_Pole\"!==t.projName&&\"Polar Stereographic (variant B)\"!==t.projName||(t.lat0=a(t.lat1>0?90:-90),t.lat_ts=t.lat1)}(l.output),r(e,l.output)}},function(t,e,n){!function(){\"use strict\";var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\\x25]+/,modulo:/^\\x25{2}/,placeholder:/^\\x25(?:([1-9]\\d*)\\$|\\(([^)]+)\\))?(\\+)?(0|'[^$])?(-)?(\\d+)?(?:\\.(\\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\\d]*)/i,key_access:/^\\.([a-z_][a-z_\\d]*)/i,index_access:/^\\[(\\d+)\\]/,sign:/^[+-]/};function e(n){return function(n,i){var r,o,s,a,l,c,h,u,_,d=1,p=n.length,f=\"\";for(o=0;o=0),a.type){case\"b\":r=parseInt(r,10).toString(2);break;case\"c\":r=String.fromCharCode(parseInt(r,10));break;case\"d\":case\"i\":r=parseInt(r,10);break;case\"j\":r=JSON.stringify(r,null,a.width?parseInt(a.width):0);break;case\"e\":r=a.precision?parseFloat(r).toExponential(a.precision):parseFloat(r).toExponential();break;case\"f\":r=a.precision?parseFloat(r).toFixed(a.precision):parseFloat(r);break;case\"g\":r=a.precision?String(Number(r.toPrecision(a.precision))):parseFloat(r);break;case\"o\":r=(parseInt(r,10)>>>0).toString(8);break;case\"s\":r=String(r),r=a.precision?r.substring(0,a.precision):r;break;case\"t\":r=String(!!r),r=a.precision?r.substring(0,a.precision):r;break;case\"T\":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=a.precision?r.substring(0,a.precision):r;break;case\"u\":r=parseInt(r,10)>>>0;break;case\"v\":r=r.valueOf(),r=a.precision?r.substring(0,a.precision):r;break;case\"x\":r=(parseInt(r,10)>>>0).toString(16);break;case\"X\":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}t.json.test(a.type)?f+=r:(!t.number.test(a.type)||u&&!a.sign?_=\"\":(_=u?\"+\":\"-\",r=r.toString().replace(t.sign,\"\")),c=a.pad_char?\"0\"===a.pad_char?\"0\":a.pad_char.charAt(1):\" \",h=a.width-(_+r).length,l=a.width&&h>0?c.repeat(h):\"\",f+=a.align?_+r+l:\"0\"===c?_+l+r:l+_+r)}return f}(function(e){if(r[e])return r[e];for(var n,i=e,o=[],s=0;i;){if(null!==(n=t.text.exec(i)))o.push(n[0]);else if(null!==(n=t.modulo.exec(i)))o.push(\"%\");else{if(null===(n=t.placeholder.exec(i)))throw new SyntaxError(\"[sprintf] unexpected placeholder\");if(n[2]){s|=1;var a=[],l=n[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");for(a.push(c[1]);\"\"!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))a.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(\"[sprintf] failed to parse named argument key\");a.push(c[1])}n[2]=a}else s|=2;if(3===s)throw new Error(\"[sprintf] mixing positional and named placeholders is not (yet) supported\");o.push({placeholder:n[0],param_no:n[1],keys:n[2],sign:n[3],pad_char:n[4],align:n[5],width:n[6],precision:n[7],type:n[8]})}i=i.substring(n[0].length)}return r[e]=o}(n),arguments)}function i(t,n){return e.apply(null,[t].concat(n||[]))}var r=Object.create(null);void 0!==n&&(n.sprintf=e,n.vsprintf=i),\"undefined\"!=typeof window&&(window.sprintf=e,window.vsprintf=i)}()},function(t,e,n){!function(t){\"object\"==typeof e&&e.exports?e.exports=t():this.tz=t()}(function(){function t(t,e,n){var i,r=e.day[1];do{i=new Date(Date.UTC(n,e.month,Math.abs(r++)))}while(e.day[0]<7&&i.getUTCDay()!=e.day[0]);return(i={clock:e.clock,sort:i.getTime(),rule:e,save:6e4*e.save,offset:t.offset})[i.clock]=i.sort+6e4*e.time,i.posix?i.wallclock=i[i.clock]+(t.offset+e.saved):i.posix=i[i.clock]-(t.offset+e.saved),i}function e(e,n,i){var r,o,s,a,l,c,h,u=e[e.zone],_=[],d=new Date(i).getUTCFullYear(),p=1;for(r=1,o=u.length;r=d-p;--h)for(r=0,o=c.length;r=_[r][n]&&_[r][_[r].clock]>s[_[r].clock]&&(a=_[r])}return a&&((l=/^(.*)\\/(.*)$/.exec(s.format))?a.abbrev=l[a.save?2:1]:a.abbrev=s.format.replace(/%s/,a.rule.letter)),a||s}function n(t,n){return\"UTC\"==t.zone?n:(t.entry=e(t,\"posix\",n),n+t.entry.offset+t.entry.save)}function i(t,n){return\"UTC\"==t.zone?n:(t.entry=i=e(t,\"wallclock\",n),0<(r=n-i.wallclock)&&r9)e+=c*l[h-10];else{if(o=new Date(n(t,e)),h<7)for(;c;)o.setUTCDate(o.getUTCDate()+a),o.getUTCDay()==h&&(c-=a);else 7==h?o.setUTCFullYear(o.getUTCFullYear()+c):8==h?o.setUTCMonth(o.getUTCMonth()+c):o.setUTCDate(o.getUTCDate()+c);null==(e=i(t,o.getTime()))&&(e=i(t,o.getTime()+864e5*a)-864e5*a)}return e}var o={clock:function(){return+new Date},zone:\"UTC\",entry:{abbrev:\"UTC\",offset:0,save:0},UTC:1,z:function(t,e,n,i){var r,o,s=this.entry.offset+this.entry.save,a=Math.abs(s/1e3),l=[],c=3600;for(r=0;r<3;r++)l.push((\"0\"+Math.floor(a/c)).slice(-2)),a%=c,c/=60;return\"^\"!=n||s?(\"^\"==n&&(i=3),3==i?(o=(o=l.join(\":\")).replace(/:00$/,\"\"),\"^\"!=n&&(o=o.replace(/:00$/,\"\"))):i?(o=l.slice(0,i+1).join(\":\"),\"^\"==n&&(o=o.replace(/:00$/,\"\"))):o=l.slice(0,2).join(\"\"),o=(o=(s<0?\"-\":\"+\")+o).replace(/([-+])(0)/,{_:\" $1\",\"-\":\"$1\"}[n]||\"$1$2\")):\"Z\"},\"%\":function(t){return\"%\"},n:function(t){return\"\\n\"},t:function(t){return\"\\t\"},U:function(t){return c(t,0)},W:function(t){return c(t,1)},V:function(t){return h(t)[0]},G:function(t){return h(t)[1]},g:function(t){return h(t)[1]%100},j:function(t){return Math.floor((t.getTime()-Date.UTC(t.getUTCFullYear(),0))/864e5)+1},s:function(t){return Math.floor(t.getTime()/1e3)},C:function(t){return Math.floor(t.getUTCFullYear()/100)},N:function(t){return t.getTime()%1e3*1e6},m:function(t){return t.getUTCMonth()+1},Y:function(t){return t.getUTCFullYear()},y:function(t){return t.getUTCFullYear()%100},H:function(t){return t.getUTCHours()},M:function(t){return t.getUTCMinutes()},S:function(t){return t.getUTCSeconds()},e:function(t){return t.getUTCDate()},d:function(t){return t.getUTCDate()},u:function(t){return t.getUTCDay()||7},w:function(t){return t.getUTCDay()},l:function(t){return t.getUTCHours()%12||12},I:function(t){return t.getUTCHours()%12||12},k:function(t){return t.getUTCHours()},Z:function(t){return this.entry.abbrev},a:function(t){return this[this.locale].day.abbrev[t.getUTCDay()]},A:function(t){return this[this.locale].day.full[t.getUTCDay()]},h:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},b:function(t){return this[this.locale].month.abbrev[t.getUTCMonth()]},B:function(t){return this[this.locale].month.full[t.getUTCMonth()]},P:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)].toLowerCase()},p:function(t){return this[this.locale].meridiem[Math.floor(t.getUTCHours()/12)]},R:function(t,e){return this.convert([e,\"%H:%M\"])},T:function(t,e){return this.convert([e,\"%H:%M:%S\"])},D:function(t,e){return this.convert([e,\"%m/%d/%y\"])},F:function(t,e){return this.convert([e,\"%Y-%m-%d\"])},x:function(t,e){return this.convert([e,this[this.locale].date])},r:function(t,e){return this.convert([e,this[this.locale].time12||\"%I:%M:%S\"])},X:function(t,e){return this.convert([e,this[this.locale].time24])},c:function(t,e){return this.convert([e,this[this.locale].dateTime])},convert:function(t){if(!t.length)return\"1.0.22\";var e,o,s,l,c,h=Object.create(this),u=[];for(e=0;e=r?Math.floor((n-r)/7)+1:0}function h(t){var e,n,i;return n=t.getUTCFullYear(),e=new Date(Date.UTC(n,0)).getUTCDay(),(i=c(t,1)+(e>1&&e<=4?1:0))?53!=i||4==e||3==e&&29==new Date(n,1,29).getDate()?[i,t.getUTCFullYear()]:[1,t.getUTCFullYear()+1]:(n=t.getUTCFullYear()-1,e=new Date(Date.UTC(n,0)).getUTCDay(),[i=4==e||3==e&&29==new Date(n,1,29).getDate()?53:52,t.getUTCFullYear()-1])}return s=s.toLowerCase().split(\"|\"),\"delmHMSUWVgCIky\".replace(/./g,function(t){o[t].pad=2}),o.N.pad=9,o.j.pad=3,o.k.style=\"_\",o.l.style=\"_\",o.e.style=\"_\",function(){return o.convert(arguments)}})},function(t,e,n){\n", " /*! *****************************************************************************\n", " Copyright (c) Microsoft Corporation. All rights reserved.\n", " Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\n", " this file except in compliance with the License. You may obtain a copy of the\n", " License at http://www.apache.org/licenses/LICENSE-2.0\n", " \n", " THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n", " KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\n", " WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\n", " MERCHANTABLITY OR NON-INFRINGEMENT.\n", " \n", " See the Apache Version 2.0 License for specific language governing permissions\n", " and limitations under the License.\n", " ***************************************************************************** */\n", " var i,r,o,s,a,l,c,h,u,_,d,p,f,m,v,g,y,b,w;!function(t){var n=\"object\"==typeof global?global:\"object\"==typeof self?self:\"object\"==typeof this?this:{};function i(t,e){return t!==n&&(\"function\"==typeof Object.create?Object.defineProperty(t,\"__esModule\",{value:!0}):t.__esModule=!0),function(n,i){return t[n]=e?e(n,i):i}}\"object\"==typeof e&&\"object\"==typeof e.exports?t(i(n,i(e.exports))):t(i(n))}(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};i=function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)},r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a=function(t,e){return function(n,i){e(n,i,t)}},l=function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(s,a)}l((i=i.apply(t,e||[])).next())})},h=function(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},d=function(t,e){var n=\"function\"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},p=function(){for(var t=[],e=0;e1||a(t,e)})})}function a(t,e){try{(n=r[t](e)).value instanceof f?Promise.resolve(n.value.v).then(l,c):h(o[0][2],n)}catch(t){h(o[0][3],t)}var n}function l(t){a(\"next\",t)}function c(t){a(\"throw\",t)}function h(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}},v=function(t){var e,n;return e={},i(\"next\"),i(\"throw\",function(t){throw t}),i(\"return\"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:f(t[i](e)),done:\"return\"===i}:r?r(e):e}:r}},g=function(t){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=_(t),e={},i(\"next\"),i(\"throw\"),i(\"return\"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise(function(i,r){e=t[n](e),function(t,e,n,i){Promise.resolve(i).then(function(e){t({value:e,done:n})},e)}(i,r,e.done,e.value)})}}},y=function(t,e){return Object.defineProperty?Object.defineProperty(t,\"raw\",{value:e}):t.raw=e,t},b=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},w=function(t){return t&&t.__esModule?t:{default:t}},t(\"__extends\",i),t(\"__assign\",r),t(\"__rest\",o),t(\"__decorate\",s),t(\"__param\",a),t(\"__metadata\",l),t(\"__awaiter\",c),t(\"__generator\",h),t(\"__exportStar\",u),t(\"__values\",_),t(\"__read\",d),t(\"__spread\",p),t(\"__await\",f),t(\"__asyncGenerator\",m),t(\"__asyncDelegator\",v),t(\"__asyncValues\",g),t(\"__makeTemplateObject\",y),t(\"__importStar\",b),t(\"__importDefault\",w)})}],i={base:0,\"client/connection\":1,\"client/session\":2,\"core/bokeh_events\":3,\"core/build_views\":4,\"core/dom\":5,\"core/dom_view\":6,\"core/enums\":7,\"core/has_props\":8,\"core/hittest\":9,\"core/layout/alignments\":10,\"core/layout/grid\":11,\"core/layout/html\":12,\"core/layout/index\":13,\"core/layout/layoutable\":14,\"core/layout/side_panel\":15,\"core/layout/types\":16,\"core/logging\":17,\"core/properties\":18,\"core/property_mixins\":19,\"core/selection_manager\":20,\"core/settings\":21,\"core/signaling\":22,\"core/ui_events\":23,\"core/util/array\":24,\"core/util/arrayable\":25,\"core/util/assert\":26,\"core/util/bbox\":27,\"core/util/callback\":28,\"core/util/canvas\":29,\"core/util/color\":30,\"core/util/compat\":31,\"core/util/data_structures\":32,\"core/util/eq\":33,\"core/util/math\":34,\"core/util/object\":35,\"core/util/projections\":36,\"core/util/refs\":37,\"core/util/serialization\":38,\"core/util/spatial\":39,\"core/util/string\":40,\"core/util/svg_colors\":41,\"core/util/templating\":42,\"core/util/text\":43,\"core/util/throttle\":44,\"core/util/typed_array\":45,\"core/util/types\":46,\"core/util/wheel\":47,\"core/util/zoom\":48,\"core/vectorization\":49,\"core/view\":50,\"core/visuals\":51,\"document/document\":52,\"document/events\":53,\"document/index\":54,\"embed/dom\":55,\"embed/index\":56,\"embed/notebook\":57,\"embed/server\":58,\"embed/standalone\":59,index:60,main:61,model:62,\"models/annotations/annotation\":63,\"models/annotations/arrow\":64,\"models/annotations/arrow_head\":65,\"models/annotations/band\":66,\"models/annotations/box_annotation\":67,\"models/annotations/color_bar\":68,\"models/annotations/index\":69,\"models/annotations/label\":70,\"models/annotations/label_set\":71,\"models/annotations/legend\":72,\"models/annotations/legend_item\":73,\"models/annotations/poly_annotation\":74,\"models/annotations/slope\":75,\"models/annotations/span\":76,\"models/annotations/text_annotation\":77,\"models/annotations/title\":78,\"models/annotations/toolbar_panel\":79,\"models/annotations/tooltip\":80,\"models/annotations/whisker\":81,\"models/axes/axis\":82,\"models/axes/categorical_axis\":83,\"models/axes/continuous_axis\":84,\"models/axes/datetime_axis\":85,\"models/axes/index\":86,\"models/axes/linear_axis\":87,\"models/axes/log_axis\":88,\"models/axes/mercator_axis\":89,\"models/callbacks/callback\":90,\"models/callbacks/customjs\":91,\"models/callbacks/index\":92,\"models/callbacks/open_url\":93,\"models/canvas/canvas\":94,\"models/canvas/cartesian_frame\":95,\"models/canvas/index\":96,\"models/expressions/cumsum\":97,\"models/expressions/expression\":98,\"models/expressions/index\":99,\"models/expressions/stack\":100,\"models/filters/boolean_filter\":101,\"models/filters/customjs_filter\":102,\"models/filters/filter\":103,\"models/filters/group_filter\":104,\"models/filters/index\":105,\"models/filters/index_filter\":106,\"models/formatters/basic_tick_formatter\":107,\"models/formatters/categorical_tick_formatter\":108,\"models/formatters/datetime_tick_formatter\":109,\"models/formatters/func_tick_formatter\":110,\"models/formatters/index\":111,\"models/formatters/log_tick_formatter\":112,\"models/formatters/mercator_tick_formatter\":113,\"models/formatters/numeral_tick_formatter\":114,\"models/formatters/printf_tick_formatter\":115,\"models/formatters/tick_formatter\":116,\"models/glyphs/annular_wedge\":117,\"models/glyphs/annulus\":118,\"models/glyphs/arc\":119,\"models/glyphs/area\":120,\"models/glyphs/bezier\":121,\"models/glyphs/box\":122,\"models/glyphs/center_rotatable\":123,\"models/glyphs/circle\":124,\"models/glyphs/ellipse\":125,\"models/glyphs/ellipse_oval\":126,\"models/glyphs/glyph\":127,\"models/glyphs/harea\":128,\"models/glyphs/hbar\":129,\"models/glyphs/hex_tile\":130,\"models/glyphs/image\":131,\"models/glyphs/image_base\":132,\"models/glyphs/image_rgba\":133,\"models/glyphs/image_url\":134,\"models/glyphs/index\":135,\"models/glyphs/line\":136,\"models/glyphs/multi_line\":137,\"models/glyphs/multi_polygons\":138,\"models/glyphs/oval\":139,\"models/glyphs/patch\":140,\"models/glyphs/patches\":141,\"models/glyphs/quad\":142,\"models/glyphs/quadratic\":143,\"models/glyphs/ray\":144,\"models/glyphs/rect\":145,\"models/glyphs/segment\":146,\"models/glyphs/step\":147,\"models/glyphs/text\":148,\"models/glyphs/utils\":149,\"models/glyphs/varea\":150,\"models/glyphs/vbar\":151,\"models/glyphs/wedge\":152,\"models/glyphs/xy_glyph\":153,\"models/graphs/graph_hit_test_policy\":154,\"models/graphs/index\":155,\"models/graphs/layout_provider\":156,\"models/graphs/static_layout_provider\":157,\"models/grids/grid\":158,\"models/grids/index\":159,\"models/index\":160,\"models/layouts/box\":161,\"models/layouts/column\":162,\"models/layouts/grid_box\":163,\"models/layouts/html_box\":164,\"models/layouts/index\":165,\"models/layouts/layout_dom\":166,\"models/layouts/row\":167,\"models/layouts/spacer\":168,\"models/layouts/tabs\":169,\"models/layouts/widget_box\":170,\"models/mappers/categorical_color_mapper\":171,\"models/mappers/categorical_mapper\":172,\"models/mappers/categorical_marker_mapper\":173,\"models/mappers/categorical_pattern_mapper\":174,\"models/mappers/color_mapper\":175,\"models/mappers/continuous_color_mapper\":176,\"models/mappers/index\":177,\"models/mappers/linear_color_mapper\":178,\"models/mappers/log_color_mapper\":179,\"models/mappers/mapper\":180,\"models/markers/defs\":181,\"models/markers/index\":182,\"models/markers/marker\":183,\"models/markers/scatter\":184,\"models/plots/gmap_plot\":185,\"models/plots/gmap_plot_canvas\":186,\"models/plots/index\":187,\"models/plots/plot\":188,\"models/plots/plot_canvas\":189,\"models/ranges/data_range\":190,\"models/ranges/data_range1d\":191,\"models/ranges/factor_range\":192,\"models/ranges/index\":193,\"models/ranges/range\":194,\"models/ranges/range1d\":195,\"models/renderers/data_renderer\":196,\"models/renderers/glyph_renderer\":197,\"models/renderers/graph_renderer\":198,\"models/renderers/guide_renderer\":199,\"models/renderers/index\":200,\"models/renderers/renderer\":201,\"models/scales/categorical_scale\":202,\"models/scales/index\":203,\"models/scales/linear_scale\":204,\"models/scales/log_scale\":205,\"models/scales/scale\":206,\"models/selections/index\":207,\"models/selections/interaction_policy\":208,\"models/selections/selection\":209,\"models/sources/ajax_data_source\":210,\"models/sources/cds_view\":211,\"models/sources/column_data_source\":212,\"models/sources/columnar_data_source\":213,\"models/sources/data_source\":214,\"models/sources/geojson_data_source\":215,\"models/sources/index\":216,\"models/sources/remote_data_source\":217,\"models/sources/server_sent_data_source\":218,\"models/sources/web_data_source\":219,\"models/textures/canvas_texture\":220,\"models/textures/image_url_texture\":221,\"models/textures/index\":222,\"models/textures/texture\":223,\"models/tickers/adaptive_ticker\":224,\"models/tickers/basic_ticker\":225,\"models/tickers/categorical_ticker\":226,\"models/tickers/composite_ticker\":227,\"models/tickers/continuous_ticker\":228,\"models/tickers/datetime_ticker\":229,\"models/tickers/days_ticker\":230,\"models/tickers/fixed_ticker\":231,\"models/tickers/index\":232,\"models/tickers/log_ticker\":233,\"models/tickers/mercator_ticker\":234,\"models/tickers/months_ticker\":235,\"models/tickers/single_interval_ticker\":236,\"models/tickers/ticker\":237,\"models/tickers/util\":238,\"models/tickers/years_ticker\":239,\"models/tiles/bbox_tile_source\":240,\"models/tiles/image_pool\":241,\"models/tiles/index\":242,\"models/tiles/mercator_tile_source\":243,\"models/tiles/quadkey_tile_source\":244,\"models/tiles/tile_renderer\":245,\"models/tiles/tile_source\":246,\"models/tiles/tile_utils\":247,\"models/tiles/tms_tile_source\":248,\"models/tiles/wmts_tile_source\":249,\"models/tools/actions/action_tool\":250,\"models/tools/actions/custom_action\":251,\"models/tools/actions/help_tool\":252,\"models/tools/actions/redo_tool\":253,\"models/tools/actions/reset_tool\":254,\"models/tools/actions/save_tool\":255,\"models/tools/actions/undo_tool\":256,\"models/tools/actions/zoom_in_tool\":257,\"models/tools/actions/zoom_out_tool\":258,\"models/tools/button_tool\":259,\"models/tools/edit/box_edit_tool\":260,\"models/tools/edit/edit_tool\":261,\"models/tools/edit/freehand_draw_tool\":262,\"models/tools/edit/point_draw_tool\":263,\"models/tools/edit/poly_draw_tool\":264,\"models/tools/edit/poly_edit_tool\":265,\"models/tools/edit/poly_tool\":266,\"models/tools/gestures/box_select_tool\":267,\"models/tools/gestures/box_zoom_tool\":268,\"models/tools/gestures/gesture_tool\":269,\"models/tools/gestures/lasso_select_tool\":270,\"models/tools/gestures/pan_tool\":271,\"models/tools/gestures/poly_select_tool\":272,\"models/tools/gestures/range_tool\":273,\"models/tools/gestures/select_tool\":274,\"models/tools/gestures/tap_tool\":275,\"models/tools/gestures/wheel_pan_tool\":276,\"models/tools/gestures/wheel_zoom_tool\":277,\"models/tools/index\":278,\"models/tools/inspectors/crosshair_tool\":279,\"models/tools/inspectors/customjs_hover\":280,\"models/tools/inspectors/hover_tool\":281,\"models/tools/inspectors/inspect_tool\":282,\"models/tools/on_off_button\":283,\"models/tools/tool\":284,\"models/tools/tool_proxy\":285,\"models/tools/toolbar\":286,\"models/tools/toolbar_base\":287,\"models/tools/toolbar_box\":288,\"models/tools/util\":289,\"models/transforms/customjs_transform\":290,\"models/transforms/dodge\":291,\"models/transforms/index\":292,\"models/transforms/interpolator\":293,\"models/transforms/jitter\":294,\"models/transforms/linear_interpolator\":295,\"models/transforms/step_interpolator\":296,\"models/transforms/transform\":297,polyfill:298,\"protocol/index\":299,\"protocol/message\":300,\"protocol/receiver\":301,safely:302,\"styles/annotations\":303,\"styles/buttons\":304,\"styles/canvas\":305,\"styles/icons\":306,\"styles/logo\":307,\"styles/menus\":308,\"styles/mixins\":309,\"styles/notebook\":310,\"styles/root\":311,\"styles/tabs\":312,\"styles/tiles\":313,\"styles/toolbar\":314,\"styles/tooltips\":315,testing:316,version:317},r={},(s=(o=function(t){var e=r[t];if(!e){var s=function(t){if(\"number\"==typeof t)return t;if(\"bokehjs\"===t)return 61;\"@bokehjs/\"===t.slice(0,\"@bokehjs/\".length)&&(t=t.slice(\"@bokehjs/\".length));var e=i[t];if(null!=e)return e;var n=t.length>0&&\"/\"===t[t.lenght-1],r=i[t+(n?\"\":\"/\")+\"index\"];return null!=r?r:t}(t);if(e=r[s])r[t]=e;else{if(!n[s]){var a=new Error(\"Cannot find module '\"+t+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}e={exports:{}},r[s]=e,r[t]=e,n[s].call(e.exports,o,e,e.exports)}}return e.exports})(61)).require=o,s.register_plugin=function(t,e,r){for(var a in t)n[a]=t[a];for(var a in e)i[a]=e[a];var l=o(r);for(var a in l)s[a]=l[a];return l},s)}(this);\n", " //# sourceMappingURL=bokeh.min.js.map\n", " /* END bokeh.min.js */\n", " },\n", " \n", " function(Bokeh) {\n", " /* BEGIN bokeh-widgets.min.js */\n", " /*!\n", " * Copyright (c) 2012 - 2018, Anaconda, Inc., and Bokeh Contributors\n", " * All rights reserved.\n", " * \n", " * Redistribution and use in source and binary forms, with or without modification,\n", " * are permitted provided that the following conditions are met:\n", " * \n", " * Redistributions of source code must retain the above copyright notice,\n", " * this list of conditions and the following disclaimer.\n", " * \n", " * Redistributions in binary form must reproduce the above copyright notice,\n", " * this list of conditions and the following disclaimer in the documentation\n", " * and/or other materials provided with the distribution.\n", " * \n", " * Neither the name of Anaconda nor the names of any contributors\n", " * may be used to endorse or promote products derived from this software\n", " * without specific prior written permission.\n", " * \n", " * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n", " * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n", " * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n", " * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n", " * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n", " * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n", " * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n", " * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n", " * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n", " * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\n", " * THE POSSIBILITY OF SUCH DAMAGE.\n", " */\n", " !function(t,e){var n;n=t.Bokeh,function(t,e,i){if(null!=n)return n.register_plugin(t,{\"models/widgets/abstract_button\":436,\"models/widgets/abstract_icon\":437,\"models/widgets/abstract_slider\":438,\"models/widgets/autocomplete_input\":439,\"models/widgets/button\":440,\"models/widgets/button_group\":441,\"models/widgets/checkbox_button_group\":442,\"models/widgets/checkbox_group\":443,\"models/widgets/color_picker\":444,\"models/widgets/control\":445,\"models/widgets/date_picker\":446,\"models/widgets/date_range_slider\":447,\"models/widgets/date_slider\":448,\"models/widgets/div\":449,\"models/widgets/dropdown\":450,\"models/widgets/file_input\":451,\"models/widgets/index\":452,\"models/widgets/input_group\":453,\"models/widgets/input_widget\":454,\"models/widgets/main\":455,\"models/widgets/markup\":456,\"models/widgets/multiselect\":457,\"models/widgets/paragraph\":458,\"models/widgets/password_input\":459,\"models/widgets/pretext\":460,\"models/widgets/radio_button_group\":461,\"models/widgets/radio_group\":462,\"models/widgets/range_slider\":463,\"models/widgets/selectbox\":464,\"models/widgets/slider\":465,\"models/widgets/spinner\":466,\"models/widgets/text_input\":467,\"models/widgets/textarea_input\":468,\"models/widgets/toggle\":469,\"models/widgets/widget\":487,\"styles/clearfix\":471,\"styles/widgets/inputs\":472,\"styles/widgets/nouislider\":473,\"styles/widgets/pikaday\":474,\"styles/widgets/sliders\":475},455);throw new Error(\"Cannot find Bokeh. You have to load it prior to loading plugins.\")}({436:function(t,e,n){var i=t(426),o=t(18),r=t(5),a=t(4),s=t(445),l=t(304),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(){t.prototype.initialize.call(this),this.icon_views={}},e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.change,function(){return e.render()})},e.prototype.remove=function(){a.remove_views(this.icon_views),t.prototype.remove.call(this)},e.prototype._render_button=function(){for(var t=[],e=0;e0&&(this.model.value=this.menu.children[this._hover_index].textContent,this.input_el.focus(),this._hide_menu())},e.prototype._update_completions=function(t){r.empty(this.menu);for(var e=0,n=t;e0&&this.menu.children[0].classList.add(l.bk_active)},e.prototype._show_menu=function(){var t=this;if(!this._open){this._open=!0,this._hover_index=0,this._last_value=this.model.value,r.display(this.menu);var e=function(n){var i=n.target;i instanceof HTMLElement&&!t.el.contains(i)&&(document.removeEventListener(\"click\",e),t._hide_menu())};document.addEventListener(\"click\",e)}},e.prototype._hide_menu=function(){this._open&&(this._open=!1,r.undisplay(this.menu))},e.prototype._menu_click=function(t){t.target!=t.currentTarget&&t.target instanceof Element&&(this.model.value=t.target.textContent,this.input_el.focus(),this._hide_menu())},e.prototype._menu_hover=function(t){if(t.target!=t.currentTarget&&t.target instanceof Element){var e=0;for(e=0;e0&&(this.menu.children[this._hover_index].classList.remove(l.bk_active),this._hover_index=s.clamp(t,0,e-1),this.menu.children[this._hover_index].classList.add(l.bk_active))},e.prototype._keydown=function(t){},e.prototype._keyup=function(t){switch(t.keyCode){case r.Keys.Enter:this.change_input();break;case r.Keys.Esc:this._hide_menu();break;case r.Keys.Up:this._bump_hover(this._hover_index-1);break;case r.Keys.Down:this._bump_hover(this._hover_index+1);break;default:var e=this.input_el.value;if(e.lengthi||this._o.position.indexOf(\"right\")>-1&&s-e+t.offsetWidth>0)&&(s=s-e+t.offsetWidth),(this._o.reposition&&l+n>o+r||this._o.position.indexOf(\"top\")>-1&&l-n-t.offsetHeight>0)&&(l=l-n-t.offsetHeight),this.el.style.left=s+\"px\",this.el.style.top=l+\"px\"}};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.change,function(){return e.render()})},e.prototype.render=function(){var e=this;null!=this._picker&&this._picker.destroy(),t.prototype.render.call(this),this.input_el=r.input({type:\"text\",class:l.bk_input,disabled:this.model.disabled}),this.group_el.appendChild(this.input_el),this._picker=new s({field:this.input_el,defaultDate:this._unlocal_date(new Date(this.model.value)),setDefaultDate:!0,minDate:null!=this.model.min_date?this._unlocal_date(new Date(this.model.min_date)):void 0,maxDate:null!=this.model.max_date?this._unlocal_date(new Date(this.model.max_date)):void 0,onSelect:function(t){return e._on_select(t)}}),this._root_element.appendChild(this._picker.el)},e.prototype._unlocal_date=function(t){var e=t.toISOString().substr(0,10),n=e.split(\"-\");return new Date(Number(n[0]),Number(n[1])-1,Number(n[2]))},e.prototype._on_select=function(t){this.model.value=t.toDateString(),this.change_input()},e.__name__=\"DatePickerView\",e}(o.InputWidgetView);n.DatePickerView=u;var c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=u,this.define({value:[a.Any,(new Date).toDateString()],min_date:[a.Any],max_date:[a.Any]})},e.__name__=\"DatePicker\",e}(o.InputWidget);n.DatePicker=c,c.initClass()},447:function(t,e,n){var i=t(426),o=t(425),r=t(438),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.__name__=\"DateRangeSliderView\",e}(r.AbstractRangeSliderView);n.DateRangeSliderView=a;var s=function(t){function e(e){var n=t.call(this,e)||this;return n.behaviour=\"drag\",n.connected=[!1,!0,!1],n}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=a,this.override({format:\"%d %b %Y\"})},e.prototype._formatter=function(t,e){return o(t,e)},e.__name__=\"DateRangeSlider\",e}(r.AbstractSlider);n.DateRangeSlider=s,s.initClass()},448:function(t,e,n){var i=t(426),o=t(425),r=t(438),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.__name__=\"DateSliderView\",e}(r.AbstractSliderView);n.DateSliderView=a;var s=function(t){function e(e){var n=t.call(this,e)||this;return n.behaviour=\"tap\",n.connected=[!0,!1],n}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=a,this.override({format:\"%d %b %Y\"})},e.prototype._formatter=function(t,e){return o(t,e)},e.__name__=\"DateSlider\",e}(r.AbstractSlider);n.DateSlider=s,s.initClass()},449:function(t,e,n){var i=t(426),o=t(456),r=t(18),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.model.render_as_text?this.markup_el.textContent=this.model.text:this.markup_el.innerHTML=this.model.text},e.__name__=\"DivView\",e}(o.MarkupView);n.DivView=a;var s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=a,this.define({render_as_text:[r.Boolean,!1]})},e.__name__=\"Div\",e}(o.Markup);n.Div=s,s.initClass()},450:function(t,e,n){var i=t(426),o=t(436),r=t(3),a=t(5),s=t(18),l=t(46),u=t(309),c=t(304),d=t(308),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._open=!1,e}return i.__extends(e,t),e.prototype.render=function(){var e=this;t.prototype.render.call(this);var n=a.div({class:[d.bk_caret,u.bk_down]});if(this.model.is_split){var i=this._render_button(n);i.classList.add(c.bk_dropdown_toggle),i.addEventListener(\"click\",function(){return e._toggle_menu()}),this.group_el.appendChild(i)}else this.button_el.appendChild(n);var o=this.model.menu.map(function(t,n){if(null==t)return a.div({class:d.bk_divider});var i=l.isString(t)?t:t[0],o=a.div({},i);return o.addEventListener(\"click\",function(){return e._item_click(n)}),o});this.menu=a.div({class:[d.bk_menu,u.bk_below]},o),this.el.appendChild(this.menu),a.undisplay(this.menu)},e.prototype._show_menu=function(){var t=this;if(!this._open){this._open=!0,a.display(this.menu);var e=function(n){var i=n.target;i instanceof HTMLElement&&!t.el.contains(i)&&(document.removeEventListener(\"click\",e),t._hide_menu())};document.addEventListener(\"click\",e)}},e.prototype._hide_menu=function(){this._open&&(this._open=!1,a.undisplay(this.menu))},e.prototype._toggle_menu=function(){this._open?this._hide_menu():this._show_menu()},e.prototype.click=function(){this.model.is_split?(this._hide_menu(),this.model.trigger_event(new r.ButtonClick),this.model.value=this.model.default_value,null!=this.model.callback&&this.model.callback.execute(this.model),t.prototype.click.call(this)):this._toggle_menu()},e.prototype._item_click=function(t){this._hide_menu();var e=this.model.menu[t];if(null!=e){var n=l.isString(e)?e:e[1];l.isString(n)?(this.model.trigger_event(new r.MenuItemClick(n)),this.model.value=n,null!=this.model.callback&&this.model.callback.execute(this.model)):(n.execute(this.model,{index:t}),null!=this.model.callback&&this.model.callback.execute(this.model))}},e.__name__=\"DropdownView\",e}(o.AbstractButtonView);n.DropdownView=p;var h=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.default_view=p,this.define({split:[s.Boolean,!1],menu:[s.Array,[]],value:[s.String],default_value:[s.String]}),this.override({label:\"Dropdown\"})},Object.defineProperty(e.prototype,\"is_split\",{get:function(){return this.split||null!=this.default_value},enumerable:!0,configurable:!0}),e.__name__=\"Dropdown\",e}(o.AbstractButton);n.Dropdown=h,h.initClass()},451:function(t,e,n){var i=t(426),o=t(18),r=t(487),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.change,function(){return e.render()}),this.connect(this.model.properties.width.change,function(){return e.render()})},e.prototype.render=function(){var t=this;this.dialogEl||(this.dialogEl=document.createElement(\"input\"),this.dialogEl.type=\"file\",this.dialogEl.multiple=!1,null!=this.model.accept&&\"\"!=this.model.accept&&(this.dialogEl.accept=this.model.accept),this.dialogEl.style.width=\"{this.model.width}px\",this.dialogEl.onchange=function(e){return t.load_file(e)},this.el.appendChild(this.dialogEl))},e.prototype.load_file=function(t){var e=this,n=new FileReader;this.model.filename=t.target.files[0].name,n.onload=function(t){return e.file(t)},n.readAsDataURL(t.target.files[0])},e.prototype.file=function(t){var e=t.target.result,n=e.split(\",\"),i=n[1],o=n[0].split(\":\")[1].split(\";\")[0];this.model.value=i,this.model.mime_type=o},e.__name__=\"FileInputView\",e}(r.WidgetView);n.FileInputView=a;var s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.prototype.type=\"FileInput\",this.prototype.default_view=a,this.define({value:[o.String,\"\"],mime_type:[o.String,\"\"],filename:[o.String,\"\"],accept:[o.String,\"\"]})},e.__name__=\"FileInput\",e}(r.Widget);n.FileInput=s,s.initClass()},452:function(t,e,n){var i=t(436);n.AbstractButton=i.AbstractButton;var o=t(437);n.AbstractIcon=o.AbstractIcon;var r=t(439);n.AutocompleteInput=r.AutocompleteInput;var a=t(440);n.Button=a.Button;var s=t(442);n.CheckboxButtonGroup=s.CheckboxButtonGroup;var l=t(443);n.CheckboxGroup=l.CheckboxGroup;var u=t(444);n.ColorPicker=u.ColorPicker;var c=t(446);n.DatePicker=c.DatePicker;var d=t(447);n.DateRangeSlider=d.DateRangeSlider;var p=t(448);n.DateSlider=p.DateSlider;var h=t(449);n.Div=h.Div;var f=t(450);n.Dropdown=f.Dropdown;var _=t(451);n.FileInput=_.FileInput;var m=t(454);n.InputWidget=m.InputWidget;var b=t(456);n.Markup=b.Markup;var g=t(457);n.MultiSelect=g.MultiSelect;var v=t(458);n.Paragraph=v.Paragraph;var k=t(459);n.PasswordInput=k.PasswordInput;var y=t(460);n.PreText=y.PreText;var w=t(461);n.RadioButtonGroup=w.RadioButtonGroup;var x=t(462);n.RadioGroup=x.RadioGroup;var S=t(463);n.RangeSlider=S.RangeSlider;var C=t(464);n.Select=C.Select;var D=t(465);n.Slider=D.Slider;var A=t(466);n.Spinner=A.Spinner;var E=t(467);n.TextInput=E.TextInput;var U=t(468);n.TextAreaInput=U.TextAreaInput;var V=t(469);n.Toggle=V.Toggle;var M=t(487);n.Widget=M.Widget},453:function(t,e,n){var i=t(426),o=t(445),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.change,function(){return e.render()})},e.__name__=\"InputGroupView\",e}(o.ControlView);n.InputGroupView=r;var a=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.__name__=\"InputGroup\",e}(o.Control);n.InputGroup=a},454:function(t,e,n){var i=t(426),o=t(445),r=t(5),a=t(18),s=t(472),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.properties.title.change,function(){e.label_el.textContent=e.model.title})},e.prototype.render=function(){t.prototype.render.call(this);var e=this.model.title;this.label_el=r.label({style:{display:0==e.length?\"none\":\"\"}},e),this.group_el=r.div({class:s.bk_input_group},this.label_el),this.el.appendChild(this.group_el)},e.prototype.change_input=function(){null!=this.model.callback&&this.model.callback.execute(this.model)},e.__name__=\"InputWidgetView\",e}(o.ControlView);n.InputWidgetView=l;var u=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({title:[a.String,\"\"],callback:[a.Any]})},e.__name__=\"InputWidget\",e}(o.Control);n.InputWidget=u,u.initClass()},455:function(t,e,n){var i=t(452);n.Widgets=i;var o=t(0);o.register_models(i)},456:function(t,e,n){var i=t(426),o=t(13),r=t(5),a=t(18),s=t(487),l=t(471),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.change,function(){e.render(),e.root.compute_layout()})},e.prototype._update_layout=function(){this.layout=new o.VariadicBox(this.el),this.layout.set_sizing(this.box_sizing())},e.prototype.render=function(){t.prototype.render.call(this);var e=i.__assign({},this.model.style,{display:\"inline-block\"});this.markup_el=r.div({class:l.bk_clearfix,style:e}),this.el.appendChild(this.markup_el)},e.__name__=\"MarkupView\",e}(s.WidgetView);n.MarkupView=u;var c=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.initClass=function(){this.define({text:[a.String,\"\"],style:[a.Any,{}]})},e.__name__=\"Markup\",e}(s.Widget);n.Markup=c,c.initClass()},457:function(t,e,n){var i=t(426),o=t(5),r=t(46),a=t(32),s=t(18),l=t(454),u=t(472),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.connect_signals=function(){var e=this;t.prototype.connect_signals.call(this),this.connect(this.model.properties.value.change,function(){return e.render_selection()}),this.connect(this.model.properties.options.change,function(){return e.render()}),this.connect(this.model.properties.name.change,function(){return e.render()}),this.connect(this.model.properties.title.change,function(){return e.render()}),this.connect(this.model.properties.size.change,function(){return e.render()}),this.connect(this.model.properties.disabled.change,function(){return e.render()})},e.prototype.render=function(){var e=this;t.prototype.render.call(this);var n=this.model.options.map(function(t){var e,n;return r.isString(t)?e=n=t:(e=t[0],n=t[1]),o.option({value:e},n)});this.select_el=o.select({multiple:!0,class:u.bk_input,name:this.model.name,disabled:this.model.disabled},n),this.select_el.addEventListener(\"change\",function(){return e.change_input()}),this.group_el.appendChild(this.select_el),this.render_selection()},e.prototype.render_selection=function(){for(var t=new a.Set(this.model.value),e=0,n=Array.from(this.el.querySelectorAll(\"option\"));e *:not(:first-child) {\\n margin-left: 5px;\\n}\\n.bk-root .bk-input-group input[type=\"checkbox\"] + span,\\n.bk-root .bk-input-group input[type=\"radio\"] + span {\\n position: relative;\\n top: -2px;\\n margin-left: 3px;\\n}\\n'),n.bk_input=\"bk-input\",n.bk_input_group=\"bk-input-group\"},473:function(t,e,n){t(311);var i=t(5);i.styles.append('.bk-root {\\n /* Functional styling;\\n * These styles are required for noUiSlider to function.\\n * You don\\'t need to change these rules to apply your design.\\n */\\n /* Painting and performance;\\n * Browsers can paint handles in their own layer.\\n */\\n /* Slider size and handle placement;\\n */\\n /* Styling;\\n */\\n /* Handles and cursors;\\n */\\n /* Handle stripes;\\n */\\n /* Disabled state;\\n */\\n /* Base;\\n *\\n */\\n /* Values;\\n *\\n */\\n /* Markings;\\n *\\n */\\n /* Horizontal layout;\\n *\\n */\\n /* Vertical layout;\\n *\\n */\\n}\\n.bk-root .bk-noUi-target,\\n.bk-root .bk-noUi-target * {\\n -webkit-touch-callout: none;\\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\\n -webkit-user-select: none;\\n -ms-touch-action: none;\\n touch-action: none;\\n -ms-user-select: none;\\n -moz-user-select: none;\\n user-select: none;\\n -moz-box-sizing: border-box;\\n box-sizing: border-box;\\n}\\n.bk-root .bk-noUi-target {\\n position: relative;\\n direction: ltr;\\n}\\n.bk-root .bk-noUi-base {\\n width: 100%;\\n height: 100%;\\n position: relative;\\n z-index: 1;\\n /* Fix 401 */\\n}\\n.bk-root .bk-noUi-connect {\\n position: absolute;\\n right: 0;\\n top: 0;\\n left: 0;\\n bottom: 0;\\n}\\n.bk-root .bk-noUi-origin {\\n position: absolute;\\n height: 0;\\n width: 0;\\n}\\n.bk-root .bk-noUi-handle {\\n position: relative;\\n z-index: 1;\\n}\\n.bk-root .bk-noUi-state-tap .bk-noUi-connect,\\n.bk-root .bk-noUi-state-tap .bk-noUi-origin {\\n -webkit-transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;\\n transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;\\n}\\n.bk-root .bk-noUi-state-drag * {\\n cursor: inherit !important;\\n}\\n.bk-root .bk-noUi-base,\\n.bk-root .bk-noUi-handle {\\n -webkit-transform: translate3d(0, 0, 0);\\n transform: translate3d(0, 0, 0);\\n}\\n.bk-root .bk-noUi-horizontal {\\n height: 18px;\\n}\\n.bk-root .bk-noUi-horizontal .bk-noUi-handle {\\n width: 34px;\\n height: 28px;\\n left: -17px;\\n top: -6px;\\n}\\n.bk-root .bk-noUi-vertical {\\n width: 18px;\\n}\\n.bk-root .bk-noUi-vertical .bk-noUi-handle {\\n width: 28px;\\n height: 34px;\\n left: -6px;\\n top: -17px;\\n}\\n.bk-root .bk-noUi-target {\\n background: #FAFAFA;\\n border-radius: 4px;\\n border: 1px solid #D3D3D3;\\n box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;\\n}\\n.bk-root .bk-noUi-connect {\\n background: #3FB8AF;\\n border-radius: 4px;\\n box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45);\\n -webkit-transition: background 450ms;\\n transition: background 450ms;\\n}\\n.bk-root .bk-noUi-draggable {\\n cursor: ew-resize;\\n}\\n.bk-root .bk-noUi-vertical .bk-noUi-draggable {\\n cursor: ns-resize;\\n}\\n.bk-root .bk-noUi-handle {\\n border: 1px solid #D9D9D9;\\n border-radius: 3px;\\n background: #FFF;\\n cursor: default;\\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;\\n}\\n.bk-root .bk-noUi-active {\\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;\\n}\\n.bk-root .bk-noUi-handle:before,\\n.bk-root .bk-noUi-handle:after {\\n content: \"\";\\n display: block;\\n position: absolute;\\n height: 14px;\\n width: 1px;\\n background: #E8E7E6;\\n left: 14px;\\n top: 6px;\\n}\\n.bk-root .bk-noUi-handle:after {\\n left: 17px;\\n}\\n.bk-root .bk-noUi-vertical .bk-noUi-handle:before,\\n.bk-root .bk-noUi-vertical .bk-noUi-handle:after {\\n width: 14px;\\n height: 1px;\\n left: 6px;\\n top: 14px;\\n}\\n.bk-root .bk-noUi-vertical .bk-noUi-handle:after {\\n top: 17px;\\n}\\n.bk-root [disabled] .bk-noUi-connect {\\n background: #B8B8B8;\\n}\\n.bk-root [disabled].bk-noUi-target,\\n.bk-root [disabled].bk-noUi-handle,\\n.bk-root [disabled] .bk-noUi-handle {\\n cursor: not-allowed;\\n}\\n.bk-root .bk-noUi-pips,\\n.bk-root .bk-noUi-pips * {\\n -moz-box-sizing: border-box;\\n box-sizing: border-box;\\n}\\n.bk-root .bk-noUi-pips {\\n position: absolute;\\n color: #999;\\n}\\n.bk-root .bk-noUi-value {\\n position: absolute;\\n white-space: nowrap;\\n text-align: center;\\n}\\n.bk-root .bk-noUi-value-sub {\\n color: #ccc;\\n font-size: 10px;\\n}\\n.bk-root .bk-noUi-marker {\\n position: absolute;\\n background: #CCC;\\n}\\n.bk-root .bk-noUi-marker-sub {\\n background: #AAA;\\n}\\n.bk-root .bk-noUi-marker-large {\\n background: #AAA;\\n}\\n.bk-root .bk-noUi-pips-horizontal {\\n padding: 10px 0;\\n height: 80px;\\n top: 100%;\\n left: 0;\\n width: 100%;\\n}\\n.bk-root .bk-noUi-value-horizontal {\\n -webkit-transform: translate3d(-50%, 50%, 0);\\n transform: translate3d(-50%, 50%, 0);\\n}\\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker {\\n margin-left: -1px;\\n width: 2px;\\n height: 5px;\\n}\\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker-sub {\\n height: 10px;\\n}\\n.bk-root .bk-noUi-marker-horizontal.bk-noUi-marker-large {\\n height: 15px;\\n}\\n.bk-root .bk-noUi-pips-vertical {\\n padding: 0 10px;\\n height: 100%;\\n top: 0;\\n left: 100%;\\n}\\n.bk-root .bk-noUi-value-vertical {\\n -webkit-transform: translate3d(0, 50%, 0);\\n transform: translate3d(0, 50%, 0);\\n padding-left: 25px;\\n}\\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker {\\n width: 5px;\\n height: 2px;\\n margin-top: -1px;\\n}\\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker-sub {\\n width: 10px;\\n}\\n.bk-root .bk-noUi-marker-vertical.bk-noUi-marker-large {\\n width: 15px;\\n}\\n.bk-root .bk-noUi-tooltip {\\n display: block;\\n position: absolute;\\n border: 1px solid #D9D9D9;\\n border-radius: 3px;\\n background: #fff;\\n color: #000;\\n padding: 5px;\\n text-align: center;\\n white-space: nowrap;\\n}\\n.bk-root .bk-noUi-horizontal .bk-noUi-tooltip {\\n -webkit-transform: translate(-50%, 0);\\n transform: translate(-50%, 0);\\n left: 50%;\\n bottom: 120%;\\n}\\n.bk-root .bk-noUi-vertical .bk-noUi-tooltip {\\n -webkit-transform: translate(0, -50%);\\n transform: translate(0, -50%);\\n top: 50%;\\n right: 120%;\\n}\\n.bk-root .bk-noUi-handle {\\n cursor: grab;\\n cursor: -webkit-grab;\\n}\\n.bk-root .bk-noUi-handle.bk-noUi-active {\\n cursor: grabbing;\\n cursor: -webkit-grabbing;\\n}\\n.bk-root .bk-noUi-tooltip {\\n display: none;\\n white-space: nowrap;\\n}\\n.bk-root .bk-noUi-handle:hover .bk-noUi-tooltip {\\n display: block;\\n}\\n.bk-root .bk-noUi-horizontal {\\n width: 100%;\\n height: 10px;\\n}\\n.bk-root .bk-noUi-horizontal.bk-noUi-target {\\n margin: 5px 0px;\\n}\\n.bk-root .bk-noUi-horizontal .bk-noUi-handle {\\n width: 14px;\\n height: 18px;\\n left: -7px;\\n top: -5px;\\n}\\n.bk-root .bk-noUi-vertical {\\n width: 10px;\\n height: 100%;\\n}\\n.bk-root .bk-noUi-vertical.bk-noUi-target {\\n margin: 0px 5px;\\n}\\n.bk-root .bk-noUi-vertical .bk-noUi-handle {\\n width: 18px;\\n height: 14px;\\n left: -5px;\\n top: -7px;\\n}\\n.bk-root .bk-noUi-handle:after,\\n.bk-root .bk-noUi-handle:before {\\n display: none;\\n}\\n.bk-root .bk-noUi-connect {\\n box-shadow: none;\\n}\\n')},474:function(t,e,n){t(311);var i=t(5);i.styles.append('.bk-root {\\n @charset \"UTF-8\";\\n /*!\\n * Pikaday\\n * Copyright © 2014 David Bushell | BSD & MIT license | https://dbushell.com/\\n */\\n /*\\nclear child float (pika-lendar), using the famous micro clearfix hack\\nhttp://nicolasgallagher.com/micro-clearfix-hack/\\n*/\\n /* styling for abbr */\\n}\\n.bk-root .pika-single {\\n z-index: 9999;\\n display: block;\\n position: relative;\\n color: #333;\\n background: #fff;\\n border: 1px solid #ccc;\\n border-bottom-color: #bbb;\\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\\n}\\n.bk-root .pika-single:before,\\n.bk-root .pika-single:after {\\n content: \" \";\\n display: table;\\n}\\n.bk-root .pika-single:after {\\n clear: both;\\n}\\n.bk-root .pika-single.is-hidden {\\n display: none;\\n}\\n.bk-root .pika-single.is-bound {\\n position: absolute;\\n box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.5);\\n}\\n.bk-root .pika-lendar {\\n float: left;\\n width: 240px;\\n margin: 8px;\\n}\\n.bk-root .pika-title {\\n position: relative;\\n text-align: center;\\n}\\n.bk-root .pika-label {\\n display: inline-block;\\n position: relative;\\n z-index: 9999;\\n overflow: hidden;\\n margin: 0;\\n padding: 5px 3px;\\n font-size: 14px;\\n line-height: 20px;\\n font-weight: bold;\\n background-color: #fff;\\n}\\n.bk-root .pika-title select {\\n cursor: pointer;\\n position: absolute;\\n z-index: 9998;\\n margin: 0;\\n left: 0;\\n top: 5px;\\n opacity: 0;\\n}\\n.bk-root .pika-prev,\\n.bk-root .pika-next {\\n display: block;\\n cursor: pointer;\\n position: relative;\\n outline: none;\\n border: 0;\\n padding: 0;\\n width: 20px;\\n height: 30px;\\n /* hide text using text-indent trick, using width value (it\\'s enough) */\\n text-indent: 20px;\\n white-space: nowrap;\\n overflow: hidden;\\n background-color: transparent;\\n background-position: center center;\\n background-repeat: no-repeat;\\n background-size: 75% 75%;\\n opacity: 0.5;\\n}\\n.bk-root .pika-prev:hover,\\n.bk-root .pika-next:hover {\\n opacity: 1;\\n}\\n.bk-root .pika-prev,\\n.bk-root .is-rtl .pika-next {\\n float: left;\\n background-image: url(\\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==\\');\\n}\\n.bk-root .pika-next,\\n.bk-root .is-rtl .pika-prev {\\n float: right;\\n background-image: url(\\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=\\');\\n}\\n.bk-root .pika-prev.is-disabled,\\n.bk-root .pika-next.is-disabled {\\n cursor: default;\\n opacity: 0.2;\\n}\\n.bk-root .pika-select {\\n display: inline-block;\\n}\\n.bk-root .pika-table {\\n width: 100%;\\n border-collapse: collapse;\\n border-spacing: 0;\\n border: 0;\\n}\\n.bk-root .pika-table th,\\n.bk-root .pika-table td {\\n width: 14.28571429%;\\n padding: 0;\\n}\\n.bk-root .pika-table th {\\n color: #999;\\n font-size: 12px;\\n line-height: 25px;\\n font-weight: bold;\\n text-align: center;\\n}\\n.bk-root .pika-button {\\n cursor: pointer;\\n display: block;\\n box-sizing: border-box;\\n -moz-box-sizing: border-box;\\n outline: none;\\n border: 0;\\n margin: 0;\\n width: 100%;\\n padding: 5px;\\n color: #666;\\n font-size: 12px;\\n line-height: 15px;\\n text-align: right;\\n background: #f5f5f5;\\n}\\n.bk-root .pika-week {\\n font-size: 11px;\\n color: #999;\\n}\\n.bk-root .is-today .pika-button {\\n color: #33aaff;\\n font-weight: bold;\\n}\\n.bk-root .is-selected .pika-button,\\n.bk-root .has-event .pika-button {\\n color: #fff;\\n font-weight: bold;\\n background: #33aaff;\\n box-shadow: inset 0 1px 3px #178fe5;\\n border-radius: 3px;\\n}\\n.bk-root .has-event .pika-button {\\n background: #005da9;\\n box-shadow: inset 0 1px 3px #0076c9;\\n}\\n.bk-root .is-disabled .pika-button,\\n.bk-root .is-inrange .pika-button {\\n background: #D5E9F7;\\n}\\n.bk-root .is-startrange .pika-button {\\n color: #fff;\\n background: #6CB31D;\\n box-shadow: none;\\n border-radius: 3px;\\n}\\n.bk-root .is-endrange .pika-button {\\n color: #fff;\\n background: #33aaff;\\n box-shadow: none;\\n border-radius: 3px;\\n}\\n.bk-root .is-disabled .pika-button {\\n pointer-events: none;\\n cursor: default;\\n color: #999;\\n opacity: 0.3;\\n}\\n.bk-root .is-outside-current-month .pika-button {\\n color: #999;\\n opacity: 0.3;\\n}\\n.bk-root .is-selection-disabled {\\n pointer-events: none;\\n cursor: default;\\n}\\n.bk-root .pika-button:hover,\\n.bk-root .pika-row.pick-whole-week:hover .pika-button {\\n color: #fff;\\n background: #ff8000;\\n box-shadow: none;\\n border-radius: 3px;\\n}\\n.bk-root .pika-table abbr {\\n border-bottom: none;\\n cursor: help;\\n}\\n')},475:function(t,e,n){t(311),t(473);var i=t(5);i.styles.append(\".bk-root .bk-slider-title {\\n white-space: nowrap;\\n}\\n.bk-root .bk-slider-value {\\n font-weight: 600;\\n}\\n\"),n.bk_slider_value=\"bk-slider-value\",n.bk_slider_title=\"bk-slider-title\",n.bk_input_group=\"bk-input-group\"},476:function(t,e,n){\n", " /*! nouislider - 10.1.0 - 2017-07-28 17:11:18 */var i;i=function(){\"use strict\";var t=\"10.1.0\";function e(t){t.preventDefault()}function n(t){return\"number\"==typeof t&&!isNaN(t)&&isFinite(t)}function i(t,e,n){n>0&&(a(t,e),setTimeout(function(){s(t,e)},n))}function o(t){return Array.isArray(t)?t:[t]}function r(t){var e=(t=String(t)).split(\".\");return e.length>1?e[1].length:0}function a(t,e){t.classList?t.classList.add(e):t.className+=\" \"+e}function s(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp(\"(^|\\\\b)\"+e.split(\" \").join(\"|\")+\"(\\\\b|$)\",\"gi\"),\" \")}function l(t){var e=void 0!==window.pageXOffset,n=\"CSS1Compat\"===(t.compatMode||\"\"),i=e?window.pageXOffset:n?t.documentElement.scrollLeft:t.body.scrollLeft,o=e?window.pageYOffset:n?t.documentElement.scrollTop:t.body.scrollTop;return{x:i,y:o}}function u(t,e){return 100/(e-t)}function c(t,e){return 100*e/(t[1]-t[0])}function d(t,e){for(var n=1;t>=e[n];)n+=1;return n}function p(t,e,n){if(n>=t.slice(-1)[0])return 100;var i,o,r,a,s=d(n,t);return i=t[s-1],o=t[s],r=e[s-1],a=e[s],r+function(t,e){return c(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}([i,o],n)/u(r,a)}function h(t,e,n,i){if(100===i)return i;var o,r,a=d(i,t);return n?(o=t[a-1],r=t[a],i-o>(r-o)/2?r:o):e[a-1]?t[a-1]+function(t,e){return Math.round(t/e)*e}(i-t[a-1],e[a-1]):i}function f(e,i,o){var r;if(\"number\"==typeof i&&(i=[i]),\"[object Array]\"!==Object.prototype.toString.call(i))throw new Error(\"noUiSlider (\"+t+\"): 'range' contains invalid value.\");if(!n(r=\"min\"===e?0:\"max\"===e?100:parseFloat(e))||!n(i[0]))throw new Error(\"noUiSlider (\"+t+\"): 'range' value isn't numeric.\");o.xPct.push(r),o.xVal.push(i[0]),r?o.xSteps.push(!isNaN(i[1])&&i[1]):isNaN(i[1])||(o.xSteps[0]=i[1]),o.xHighestCompleteStep.push(0)}function _(t,e,n){if(!e)return!0;n.xSteps[t]=c([n.xVal[t],n.xVal[t+1]],e)/u(n.xPct[t],n.xPct[t+1]);var i=(n.xVal[t+1]-n.xVal[t])/n.xNumSteps[t],o=Math.ceil(Number(i.toFixed(3))-1),r=n.xVal[t]+n.xNumSteps[t]*o;n.xHighestCompleteStep[t]=r}function m(t,e,n){this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var i,o=[];for(i in t)t.hasOwnProperty(i)&&o.push([t[i],i]);for(o.length&&\"object\"==typeof o[0][0]?o.sort(function(t,e){return t[0][0]-e[0][0]}):o.sort(function(t,e){return t[0]-e[0]}),i=0;i=100)return t.slice(-1)[0];var i,o,r,a,s=d(n,e);return i=t[s-1],o=t[s],r=e[s-1],a=e[s],function(t,e){return e*(t[1]-t[0])/100+t[0]}([i,o],(n-r)*u(r,a))}(this.xVal,this.xPct,t)},m.prototype.getStep=function(t){return t=h(this.xPct,this.xSteps,this.snap,t)},m.prototype.getNearbySteps=function(t){var e=d(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},m.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(r);return Math.max.apply(null,t)},m.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var b={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};function g(e){if(function(t){return\"object\"==typeof t&&\"function\"==typeof t.to&&\"function\"==typeof t.from}(e))return!0;throw new Error(\"noUiSlider (\"+t+\"): 'format' requires 'to' and 'from' methods.\")}function v(e,i){if(!n(i))throw new Error(\"noUiSlider (\"+t+\"): 'step' is not numeric.\");e.singleStep=i}function k(e,n){if(\"object\"!=typeof n||Array.isArray(n))throw new Error(\"noUiSlider (\"+t+\"): 'range' is not an object.\");if(void 0===n.min||void 0===n.max)throw new Error(\"noUiSlider (\"+t+\"): Missing 'min' or 'max' in 'range'.\");if(n.min===n.max)throw new Error(\"noUiSlider (\"+t+\"): 'range' 'min' and 'max' cannot be equal.\");e.spectrum=new m(n,e.snap,e.singleStep)}function y(e,n){if(n=o(n),!Array.isArray(n)||!n.length)throw new Error(\"noUiSlider (\"+t+\"): 'start' option is incorrect.\");e.handles=n.length,e.start=n}function w(e,n){if(e.snap=n,\"boolean\"!=typeof n)throw new Error(\"noUiSlider (\"+t+\"): 'snap' option must be a boolean.\")}function x(e,n){if(e.animate=n,\"boolean\"!=typeof n)throw new Error(\"noUiSlider (\"+t+\"): 'animate' option must be a boolean.\")}function S(e,n){if(e.animationDuration=n,\"number\"!=typeof n)throw new Error(\"noUiSlider (\"+t+\"): 'animationDuration' option must be a number.\")}function C(e,n){var i,o=[!1];if(\"lower\"===n?n=[!0,!1]:\"upper\"===n&&(n=[!1,!0]),!0===n||!1===n){for(i=1;i=50)throw new Error(\"noUiSlider (\"+t+\"): 'padding' option must be less than half the range.\")}}function V(e,n){switch(n){case\"ltr\":e.dir=0;break;case\"rtl\":e.dir=1;break;default:throw new Error(\"noUiSlider (\"+t+\"): 'direction' option was not recognized.\")}}function M(e,n){if(\"string\"!=typeof n)throw new Error(\"noUiSlider (\"+t+\"): 'behaviour' must be a string containing options.\");var i=n.indexOf(\"tap\")>=0,o=n.indexOf(\"drag\")>=0,r=n.indexOf(\"fixed\")>=0,a=n.indexOf(\"snap\")>=0,s=n.indexOf(\"hover\")>=0;if(r){if(2!==e.handles)throw new Error(\"noUiSlider (\"+t+\"): 'fixed' behaviour must be used with 2 handles\");A(e,e.start[1]-e.start[0])}e.events={tap:i||a,drag:o,fixed:r,snap:a,hover:s}}function N(e,n){if(e.multitouch=n,\"boolean\"!=typeof n)throw new Error(\"noUiSlider (\"+t+\"): 'multitouch' option must be a boolean.\")}function I(e,n){if(!1!==n)if(!0===n){e.tooltips=[];for(var i=0;i-1?1:\"steps\"===e?2:0,!r&&s&&(f=0),c===v&&l||(o[p.toFixed(5)]=[c,f]),u=p}}),o}(i,n,s),u=e.format||{to:Math.round};return f=k.appendChild(B(l,o,u))}function P(){var t=c.getBoundingClientRect(),e=\"offset\"+[\"Width\",\"Height\"][r.ort];return 0===r.ort?t.width||c[e]:t.height||c[e]}function F(t,e,n,i){var o=function(o){return!k.hasAttribute(\"disabled\")&&(a=k,s=r.cssClasses.tap,(a.classList?!a.classList.contains(s):!new RegExp(\"\\\\b\"+s+\"\\\\b\").test(a.className))&&!!(o=function(t,e,n){var i,o,a=0===t.type.indexOf(\"touch\"),s=0===t.type.indexOf(\"mouse\"),u=0===t.type.indexOf(\"pointer\");if(0===t.type.indexOf(\"MSPointer\")&&(u=!0),a&&r.multitouch){var c=function(t){return t.target===n||n.contains(t.target)};if(\"touchstart\"===t.type){var d=Array.prototype.filter.call(t.touches,c);if(d.length>1)return!1;i=d[0].pageX,o=d[0].pageY}else{var p=Array.prototype.find.call(t.changedTouches,c);if(!p)return!1;i=p.pageX,o=p.pageY}}else if(a){if(t.touches.length>1)return!1;i=t.changedTouches[0].pageX,o=t.changedTouches[0].pageY}return e=e||l(A),(s||u)&&(i=t.clientX+e.x,o=t.clientY+e.y),t.pageOffset=e,t.points=[i,o],t.cursor=s||u,t}(o,i.pageOffset,i.target||e))&&!(t===b.start&&void 0!==o.buttons&&o.buttons>1)&&(!i.hover||!o.buttons)&&(v||o.preventDefault(),o.calcPoint=o.points[r.ort],void n(o,i)));var a,s},a=[];return t.split(\" \").forEach(function(t){e.addEventListener(t,o,!!v&&{passive:!0}),a.push([t,o])}),a}function O(t){var e,n,i,o,a,s,u=t-(e=c,n=r.ort,i=e.getBoundingClientRect(),o=e.ownerDocument,a=o.documentElement,s=l(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),n?i.top+s.y-a.clientTop:i.left+s.x-a.clientLeft),d=100*u/P();return r.dir?100-d:d}function L(t,e,n,i){var o=n.slice(),r=[!t,t],a=[t,!t];i=i.slice(),t&&i.reverse(),i.length>1?i.forEach(function(t,n){var i=Q(o,t,o[t]+e,r[n],a[n],!1);!1===i?e=0:(e=i-o[t],o[t]=i)}):r=a=[!0];var s=!1;i.forEach(function(t,i){s=$(t,n[t]+e,r[i],a[i])||s}),s&&i.forEach(function(t){W(\"update\",t),W(\"slide\",t)})}function W(t,e,n){Object.keys(D).forEach(function(i){var o=i.split(\".\")[0];t===o&&D[i].forEach(function(t){t.call(h,C.map(r.format.to),e,C.slice(),n||!1,y.slice())})})}function j(t,e){\"mouseout\"===t.type&&\"HTML\"===t.target.nodeName&&null===t.relatedTarget&&Y(t,e)}function G(t,e){if(-1===navigator.appVersion.indexOf(\"MSIE 9\")&&0===t.buttons&&0!==e.buttonsProperty)return Y(t,e);var n=(r.dir?-1:1)*(t.calcPoint-e.startCalcPoint),i=100*n/e.baseSize;L(n>0,i,e.locations,e.handleNumbers)}function Y(t,n){n.handle&&(s(n.handle,r.cssClasses.active),x-=1),n.listeners.forEach(function(t){E.removeEventListener(t[0],t[1])}),0===x&&(s(k,r.cssClasses.drag),J(),t.cursor&&(U.style.cursor=\"\",U.removeEventListener(\"selectstart\",e))),n.handleNumbers.forEach(function(t){W(\"change\",t),W(\"set\",t),W(\"end\",t)})}function H(t,n){var i;if(1===n.handleNumbers.length){var o=d[n.handleNumbers[0]];if(o.hasAttribute(\"disabled\"))return!1;i=o.children[0],x+=1,a(i,r.cssClasses.active)}t.stopPropagation();var s=[],l=F(b.move,E,G,{target:t.target,handle:i,listeners:s,startCalcPoint:t.calcPoint,baseSize:P(),pageOffset:t.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:t.buttons,locations:y.slice()}),u=F(b.end,E,Y,{target:t.target,handle:i,listeners:s,handleNumbers:n.handleNumbers}),c=F(\"mouseout\",E,j,{target:t.target,handle:i,listeners:s,handleNumbers:n.handleNumbers});s.push.apply(s,l.concat(u,c)),t.cursor&&(U.style.cursor=getComputedStyle(t.target).cursor,d.length>1&&a(k,r.cssClasses.drag),U.addEventListener(\"selectstart\",e,!1)),n.handleNumbers.forEach(function(t){W(\"start\",t)})}function q(t){t.stopPropagation();var e=O(t.calcPoint),n=function(t){var e=100,n=!1;return d.forEach(function(i,o){if(!i.hasAttribute(\"disabled\")){var r=Math.abs(y[o]-t);r1&&(i&&e>0&&(n=Math.max(n,t[e-1]+r.margin)),o&&e1&&r.limit&&(i&&e>0&&(n=Math.min(n,t[e-1]+r.limit)),o&&e50?-1:1,n=3+(d.length+e*t);d[t].childNodes[0].style.zIndex=n})}function $(t,e,n,i){return!1!==(e=Q(y,t,e,n,i,!1))&&(function(t,e){y[t]=e,C[t]=S.fromStepping(e);var n=function(){d[t].style[r.style]=X(e),Z(t),Z(t+1)};window.requestAnimationFrame&&r.useRequestAnimationFrame?window.requestAnimationFrame(n):n()}(t,e),!0)}function Z(t){if(p[t]){var e=0,n=100;0!==t&&(e=y[t-1]),t!==p.length-1&&(n=y[t]),p[t].style[r.style]=X(e),p[t].style[r.styleOposite]=X(100-n)}}function tt(t,e){null!==t&&!1!==t&&(\"number\"==typeof t&&(t=String(t)),!1===(t=r.format.from(t))||isNaN(t)||$(e,S.toStepping(t),!1,!1))}function et(t,e){var n=o(t),a=void 0===y[0];e=void 0===e||!!e,n.forEach(tt),r.animate&&!a&&i(k,r.cssClasses.tap,r.animationDuration),w.forEach(function(t){$(t,y[t],!0,!1)}),J(),w.forEach(function(t){W(\"update\",t),null!==n[t]&&e&&W(\"set\",t)})}function nt(){var t=C.map(r.format.to);return 1===t.length?t[0]:t}function it(t,e){D[t]=D[t]||[],D[t].push(e),\"update\"===t.split(\".\")[0]&&d.forEach(function(t,e){W(\"update\",e)})}if(k.noUiSlider)throw new Error(\"noUiSlider (\"+t+\"): Slider was already initialized.\");return function(t){a(t,r.cssClasses.target),0===r.dir?a(t,r.cssClasses.ltr):a(t,r.cssClasses.rtl),0===r.ort?a(t,r.cssClasses.horizontal):a(t,r.cssClasses.vertical),c=V(t,r.cssClasses.base)}(k),function(t,e){d=[],(p=[]).push(N(e,t[0]));for(var n=0;nn.stepAfter.startValue&&(o=n.stepAfter.startValue-i),r=i>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&i-n.stepBefore.highestStep,100===t?o=null:0===t&&(r=null);var a=S.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(a))),null!==r&&!1!==r&&(r=Number(r.toFixed(a))),[r,o]})},on:it,off:function(t){var e=t&&t.split(\".\")[0],n=e&&t.substring(e.length);Object.keys(D).forEach(function(t){var i=t.split(\".\")[0],o=t.substring(i.length);e&&e!==i||n&&n!==o||delete D[t]})},get:nt,set:et,reset:function(t){et(r.start,t)},__moveHandles:function(t,e,n){L(t,e,y,n)},options:u,updateOptions:function(t,e){var n=nt(),i=[\"margin\",\"limit\",\"padding\",\"range\",\"animate\",\"snap\",\"step\",\"format\"];i.forEach(function(e){void 0!==t[e]&&(u[e]=t[e])});var o=z(u);i.forEach(function(e){void 0!==t[e]&&(r[e]=o[e])}),S=o.spectrum,r.margin=o.margin,r.limit=o.limit,r.padding=o.padding,r.pips&&T(r.pips),y=[],et(t.start||n,e)},target:k,removePips:R,pips:T},(m=r.events).fixed||d.forEach(function(t,e){F(b.start,t.children[0],H,{handleNumbers:[e]})}),m.tap&&F(b.start,c,q,{}),m.hover&&F(b.move,c,K,{hover:!0}),m.drag&&p.forEach(function(t,e){if(!1!==t&&0!==e&&e!==p.length-1){var n=d[e-1],i=d[e],o=[t];a(t,r.cssClasses.draggable),m.fixed&&(o.push(n.children[0]),o.push(i.children[0])),o.forEach(function(t){F(b.start,t,H,{handles:[n,i],handleNumbers:[e-1,e]})})}}),et(r.start),r.pips&&T(r.pips),r.tooltips&&(_=d.map(I),it(\"update\",function(t,e,n){if(_[e]){var i=t[e];!0!==r.tooltips[e]&&(i=r.tooltips[e].to(n[e])),_[e].innerHTML=i}})),it(\"update\",function(t,e,n,i,o){w.forEach(function(t){var e=d[t],i=Q(y,t,0,!0,!0,!0),a=Q(y,t,100,!0,!0,!0),s=o[t],l=r.ariaFormat.to(n[t]);e.children[0].setAttribute(\"aria-valuemin\",i.toFixed(1)),e.children[0].setAttribute(\"aria-valuemax\",a.toFixed(1)),e.children[0].setAttribute(\"aria-valuenow\",s.toFixed(1)),e.children[0].setAttribute(\"aria-valuetext\",l)})}),h}return{version:t,create:function(e,n){if(!e||!e.nodeName)throw new Error(\"noUiSlider (\"+t+\"): create requires a single element, got: \"+e);var i=z(n),o=O(e,i,n);return e.noUiSlider=o,o}}},\"object\"==typeof n?e.exports=i():window.noUiSlider=i()},477:function(t,e,n){var i=function(t,e,n,i){t.addEventListener(e,n,!!i)},o=function(t,e,n,i){t.removeEventListener(e,n,!!i)},r=function(t,e){return-1!==(\" \"+t.className+\" \").indexOf(\" \"+e+\" \")},a=function(t,e){r(t,e)||(t.className=\"\"===t.className?e:t.className+\" \"+e)},s=function(t,e){var n;t.className=(n=(\" \"+t.className+\" \").replace(\" \"+e+\" \",\" \")).trim?n.trim():n.replace(/^\\s+|\\s+$/g,\"\")},l=function(t){return/Array/.test(Object.prototype.toString.call(t))},u=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},c=function(t){var e=t.getDay();return 0===e||6===e},d=function(t){\n", " // solution lifted from date.js (MIT license): https://github.com/datejs/Datejs\n", " return t%4==0&&t%100!=0||t%400==0},p=function(t,e){return[31,d(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},h=function(t){u(t)&&t.setHours(0,0,0,0)},f=function(t,e){return t.getTime()===e.getTime()},_=function(t,e,n){var i,o;for(i in e)(o=void 0!==t[i])&&\"object\"==typeof e[i]&&null!==e[i]&&void 0===e[i].nodeName?u(e[i])?n&&(t[i]=new Date(e[i].getTime())):l(e[i])?n&&(t[i]=e[i].slice(0)):t[i]=_({},e[i],n):!n&&o||(t[i]=e[i]);return t},m=function(t,e,n){var i;document.createEvent?((i=document.createEvent(\"HTMLEvents\")).initEvent(e,!0,!1),i=_(i,n),t.dispatchEvent(i)):document.createEventObject&&(i=document.createEventObject(),i=_(i,n),t.fireEvent(\"on\"+e,i))},b=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},g={field:null,bound:void 0,ariaLabel:\"Use the arrow keys to pick a date\",position:\"bottom left\",reposition:!0,format:\"YYYY-MM-DD\",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:\"\",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:\"left\",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:\"Previous Month\",nextMonth:\"Next Month\",months:[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],weekdays:[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"],weekdaysShort:[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},v=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},k=function(t){var e=[],n=\"false\";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'';e.push(\"is-outside-current-month\"),t.enableSelectionDaysInNextAndPreviousMonths||e.push(\"is-selection-disabled\")}return t.isDisabled&&e.push(\"is-disabled\"),t.isToday&&e.push(\"is-today\"),t.isSelected&&(e.push(\"is-selected\"),n=\"true\"),t.hasEvent&&e.push(\"has-event\"),t.isInRange&&e.push(\"is-inrange\"),t.isStartRange&&e.push(\"is-startrange\"),t.isEndRange&&e.push(\"is-endrange\"),'\"},y=function(t,e,n){var i=new Date(n,e,t),o=function(t){t.setHours(0,0,0,0);var e=t.getDate(),n=t.getDay(),i=function(t){return(t+7-1)%7};t.setDate(e+3-i(n));var o=new Date(t.getFullYear(),0,4),r=(t.getTime()-o.getTime())/864e5;return 1+Math.round((r-3+i(o.getDay()))/7)}(i);return''+o+\"\"},w=function(t,e,n,i){return''+(e?t.reverse():t).join(\"\")+\"\"},x=function(t,e,n,i,o,r){var a,s,u,c,d,p=t._o,h=n===p.minYear,f=n===p.maxYear,_='
',m=!0,b=!0;for(u=[],a=0;a<12;a++)u.push('\");for(c='
'+p.i18n.months[i]+'
\",l(p.yearRange)?(a=p.yearRange[0],s=p.yearRange[1]+1):(a=n-p.yearRange,s=1+n+p.yearRange),u=[];a=p.minYear&&u.push('\");return d='
'+n+p.yearSuffix+'
\",p.showMonthAfterYear?_+=d+c:_+=c+d,h&&(0===i||p.minMonth>=i)&&(m=!1),f&&(11===i||p.maxMonth<=i)&&(b=!1),0===e&&(_+='\"),e===t._o.numberOfMonths-1&&(_+='\"),_+=\"
\"},S=function(t,e,n){return''+function(t){var e,n=[];for(t.showWeekNumber&&n.push(\"\"),e=0;e<7;e++)n.push('\");return\"\"+(t.isRTL?n.reverse():n).join(\"\")+\"\"}(t)+\"\"+e.join(\"\")+\"
'+v(t,e,!0)+\"
\"},C=function(t){var e=this,n=e.config(t);e._onMouseDown=function(t){if(e._v){var i=(t=t||window.event).target||t.srcElement;if(i)if(r(i,\"is-disabled\")||(!r(i,\"pika-button\")||r(i,\"is-empty\")||r(i.parentNode,\"is-disabled\")?r(i,\"pika-prev\")?e.prevMonth():r(i,\"pika-next\")&&e.nextMonth():(e.setDate(new Date(i.getAttribute(\"data-pika-year\"),i.getAttribute(\"data-pika-month\"),i.getAttribute(\"data-pika-day\"))),n.bound&&setTimeout(function(){e.hide(),n.blurFieldOnSelect&&n.field&&n.field.blur()},100))),r(i,\"pika-select\"))e._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},e._onChange=function(t){var n=(t=t||window.event).target||t.srcElement;n&&(r(n,\"pika-select-month\")?e.gotoMonth(n.value):r(n,\"pika-select-year\")&&e.gotoYear(n.value))},e._onKeyChange=function(t){if(t=t||window.event,e.isVisible())switch(t.keyCode){case 13:case 27:n.field&&n.field.blur();break;case 37:e.adjustDate(\"subtract\",1);break;case 38:e.adjustDate(\"subtract\",7);break;case 39:e.adjustDate(\"add\",1);break;case 40:e.adjustDate(\"add\",7);break;case 8:case 46:e.setDate(null)}},e._parseFieldValue=function(){return n.parse?n.parse(n.field.value,n.format):new Date(Date.parse(n.field.value))},e._onInputChange=function(t){var n;t.firedBy!==e&&(n=e._parseFieldValue(),u(n)&&e.setDate(n),e._v||e.show())},e._onInputFocus=function(){e.show()},e._onInputClick=function(){e.show()},e._onInputBlur=function(){var t=document.activeElement;do{if(r(t,\"pika-single\"))return}while(t=t.parentNode);e._c||(e._b=setTimeout(function(){e.hide()},50)),e._c=!1},e._onClick=function(t){var i=(t=t||window.event).target||t.srcElement,o=i;if(i){do{if(r(o,\"pika-single\")||o===n.trigger)return}while(o=o.parentNode);e._v&&i!==n.trigger&&o!==n.trigger&&e.hide()}},e.el=document.createElement(\"div\"),e.el.className=\"pika-single\"+(n.isRTL?\" is-rtl\":\"\")+(n.theme?\" \"+n.theme:\"\"),i(e.el,\"mousedown\",e._onMouseDown,!0),i(e.el,\"touchend\",e._onMouseDown,!0),i(e.el,\"change\",e._onChange),n.keyboardInput&&i(document,\"keydown\",e._onKeyChange),n.field&&(n.container?n.container.appendChild(e.el):n.bound?document.body.appendChild(e.el):n.field.parentNode.insertBefore(e.el,n.field.nextSibling),i(n.field,\"change\",e._onInputChange),n.defaultDate||(n.defaultDate=e._parseFieldValue(),n.setDefaultDate=!0));var o=n.defaultDate;u(o)?n.setDefaultDate?e.setDate(o,!0):e.gotoDate(o):e.gotoDate(new Date),n.bound?(this.hide(),e.el.className+=\" is-bound\",i(n.trigger,\"click\",e._onInputClick),i(n.trigger,\"focus\",e._onInputFocus),i(n.trigger,\"blur\",e._onInputBlur)):this.show()};C.prototype={config:function(t){this._o||(this._o=_({},g,!0));var e=_(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme=\"string\"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn=\"function\"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,u(e.minDate)||(e.minDate=!1),u(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate100&&(e.yearRange=100);return e},toString:function(t){return t=t||this._o.format,u(this._d)?this._o.toString?this._o.toString(this._d,t):this._d.toDateString():\"\"},getDate:function(){return u(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value=\"\",m(this._o.field,\"change\",{firedBy:this})),this.draw();if(\"string\"==typeof t&&(t=new Date(Date.parse(t))),u(t)){var n=this._o.minDate,i=this._o.maxDate;u(n)&&ti&&(t=i),this._d=new Date(t.getTime()),h(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),m(this._o.field,\"change\",{firedBy:this})),e||\"function\"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(t){var e=!0;if(u(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=t.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),e=o=o&&(this._y=o,!isNaN(a)&&this._m>a&&(this._m=a));for(var l=0;l\";this.el.innerHTML=s,n.bound&&\"hidden\"!==n.field.type&&setTimeout(function(){n.trigger.focus()},1),\"function\"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute(\"aria-label\",n.ariaLabel)}},adjustPosition:function(){var t,e,n,i,o,r,l,u,c,d,p,h;if(!this._o.container){if(this.el.style.position=\"absolute\",t=this._o.trigger,e=t,n=this.el.offsetWidth,i=this.el.offsetHeight,o=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,l=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop,p=!0,h=!0,\"function\"==typeof t.getBoundingClientRect)d=t.getBoundingClientRect(),u=d.left+window.pageXOffset,c=d.bottom+window.pageYOffset;else for(u=e.offsetLeft,c=e.offsetTop+e.offsetHeight;e=e.offsetParent;)u+=e.offsetLeft,c+=e.offsetTop;(this._o.reposition&&u+n>o||this._o.position.indexOf(\"right\")>-1&&u-n+t.offsetWidth>0)&&(u=u-n+t.offsetWidth,p=!1),(this._o.reposition&&c+i>r+l||this._o.position.indexOf(\"top\")>-1&&c-i-t.offsetHeight>0)&&(c=c-i-t.offsetHeight,h=!1),this.el.style.left=u+\"px\",this.el.style.top=c+\"px\",a(this.el,p?\"left-aligned\":\"right-aligned\"),a(this.el,h?\"bottom-aligned\":\"top-aligned\"),s(this.el,p?\"right-aligned\":\"left-aligned\"),s(this.el,h?\"top-aligned\":\"bottom-aligned\")}},render:function(t,e,n){var i=this._o,o=new Date,r=p(t,e),a=new Date(t,e,1).getDay(),s=[],l=[];h(o),i.firstDay>0&&(a-=i.firstDay)<0&&(a+=7);for(var d=0===e?11:e-1,_=11===e?0:e+1,m=0===e?t-1:t,b=11===e?t+1:t,g=p(m,d),v=r+a,x=v;x>7;)x-=7;v+=7-x;for(var C=!1,D=0,A=0;D=r+a,I=D-a+1,B=e,R=t,T=i.startRange&&f(i.startRange,E),P=i.endRange&&f(i.endRange,E),F=i.startRange&&i.endRange&&i.startRangei.maxDate||i.disableWeekends&&c(E)||i.disableDayFn&&i.disableDayFn(E);N&&(D/g,\">\")},t.__name__=\"CellFormatter\",t}(e(62).Model);n.CellFormatter=c;var u=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.initClass=function(){this.define({font_style:[l.FontStyle,\"normal\"],text_align:[l.TextAlign,\"left\"],text_color:[l.Color]})},t.prototype.doFormat=function(e,t,n,o,r){var i=this.font_style,A=this.text_align,l=this.text_color,s=a.div({},null==n?\"\":\"\"+n);switch(i){case\"bold\":s.style.fontWeight=\"bold\";break;case\"italic\":s.style.fontStyle=\"italic\"}return null!=A&&(s.style.textAlign=A),null!=l&&(s.style.color=l),s.outerHTML},t.__name__=\"StringFormatter\",t}(c);n.StringFormatter=u,u.initClass();var d=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.initClass=function(){this.define({format:[l.String,\"0,0\"],language:[l.String,\"en\"],rounding:[l.RoundingFunction,\"round\"]})},t.prototype.doFormat=function(t,n,o,i,A){var l=this,a=this.format,s=this.language,c=function(){switch(l.rounding){case\"round\":case\"nearest\":return Math.round;case\"floor\":case\"rounddown\":return Math.floor;case\"ceil\":case\"roundup\":return Math.ceil}}();return o=r.format(o,a,s,c),e.prototype.doFormat.call(this,t,n,o,i,A)},t.__name__=\"NumberFormatter\",t}(u);n.NumberFormatter=d,d.initClass();var p=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.initClass=function(){this.define({icon:[l.String,\"check\"]})},t.prototype.doFormat=function(e,t,n,o,r){return n?a.i({class:this.icon}).outerHTML:\"\"},t.__name__=\"BooleanFormatter\",t}(c);n.BooleanFormatter=p,p.initClass();var f=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.initClass=function(){this.define({format:[l.String,\"ISO-8601\"]})},t.prototype.getFormat=function(){switch(this.format){case\"ATOM\":case\"W3C\":case\"RFC-3339\":case\"ISO-8601\":return\"%Y-%m-%d\";case\"COOKIE\":return\"%a, %d %b %Y\";case\"RFC-850\":return\"%A, %d-%b-%y\";case\"RFC-1123\":case\"RFC-2822\":return\"%a, %e %b %Y\";case\"RSS\":case\"RFC-822\":case\"RFC-1036\":return\"%a, %e %b %y\";case\"TIMESTAMP\":return;default:return this.format}},t.prototype.doFormat=function(t,n,o,r,i){o=s.isString(o)?parseInt(o,10):o;var l=A(o,this.getFormat());return e.prototype.doFormat.call(this,t,n,l,r,i)},t.__name__=\"DateFormatter\",t}(c);n.DateFormatter=f,f.initClass();var h=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.initClass=function(){this.define({template:[l.String,\"<%= value %>\"]})},t.prototype.doFormat=function(e,t,n,r,A){var l=this.template;return null==n?\"\":i(l)(o.__assign({},A,{value:n}))},t.__name__=\"HTMLTemplateFormatter\",t}(c);n.HTMLTemplateFormatter=h,h.initClass()},480:function(e,t,n){var o=e(426),r=e(18),i=e(5),A=e(491),l=e(481);function a(e,t,n,o,r){var A=r.collapsed,l=r.level,a=r.title,s=i.span({class:\"slick-group-toggle \"+(A?\"collapsed\":\"expanded\"),style:{\"margin-left\":15*l+\"px\"}}),c=i.span({class:\"slick-group-title\",level:l},a);return\"\"+s.outerHTML+c.outerHTML}function s(e,t){var n=this.getDataItem(t.row);n instanceof A.Group&&e.target.classList.contains(\"slick-group-toggle\")&&(n.collapsed?this.getData().expandGroup(n.groupingKey):this.getData().collapseGroup(n.groupingKey),e.stopImmediatePropagation(),e.preventDefault(),this.invalidate(),this.render())}var c=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.initClass=function(){this.prototype.type=\"GroupingInfo\",this.define({getter:[r.String,\"\"],aggregators:[r.Array,[]],collapsed:[r.Boolean,!1]})},Object.defineProperty(t.prototype,\"comparer\",{get:function(){return function(e,t){return e.value===t.value?0:e.value>t.value?1:-1}},enumerable:!0,configurable:!0}),t.__name__=\"GroupingInfo\",t}(e(62).Model);n.GroupingInfo=c,c.initClass();var u=function(e){function t(t,n,o,r){var i=e.call(this,t,n)||this;return i.columns=o,i.groupingInfos=[],i.groupingDelimiter=\":|:\",i.target=r,i}return o.__extends(t,e),t.prototype.setGrouping=function(e){this.groupingInfos=e,this.toggledGroupsByLevel=e.map(function(){return{}}),this.refresh()},t.prototype.extractGroups=function(e,t){var n=this,o=[],r=new Map,i=t?t.level+1:0,l=this.groupingInfos[i],a=l.comparer,s=l.getter;return e.forEach(function(e){var l=n.source.data[s][e],a=r.get(l);if(!a){var c=t?\"\"+t.groupingKey+n.groupingDelimiter+l:\"\"+l;a=Object.assign(new A.Group,{value:l,level:i,groupingKey:c}),o.push(a),r.set(l,a)}a.rows.push(e)}),i$/,\"span>\"))}),delete o[0].editor,this.data=new u(this.model.source,this.model.view,o,this.model.target),this.data.setGrouping(this.model.grouping),this.el.style.width=this.model.width+\"px\",this.grid=new A.Grid(this.el,this.data,o,n),this.grid.onClick.subscribe(s)},t.__name__=\"DataCubeView\",t}(l.DataTableView);n.DataCubeView=d;var p=function(e){function t(t){return e.call(this,t)||this}return o.__extends(t,e),t.initClass=function(){this.prototype.type=\"DataCube\",this.prototype.default_view=d,this.define({grouping:[r.Array,[]],target:[r.Instance]})},t.__name__=\"DataCube\",t}(l.DataTable);n.DataCube=p,p.initClass()},481:function(e,t,n){var o=e(426),r=e(496).RowSelectionModel,i=e(495).CheckboxSelectColumn,A=e(494).CellExternalCopyManager,l=e(491),a=e(18),s=e(40),c=e(46),u=e(24),d=e(35),p=e(17),f=e(13),h=e(486),g=e(487),m=e(489);n.DTINDEX_NAME=\"__bkdt_internal_index__\";var v=function(){function e(e,t){if(this.source=e,this.view=t,n.DTINDEX_NAME in this.source.data)throw new Error(\"special name \"+n.DTINDEX_NAME+\" cannot be used as a data table column\");this.index=this.view.indices}return e.prototype.getLength=function(){return this.index.length},e.prototype.getItem=function(e){for(var t={},o=0,r=d.keys(this.source.data);ou?s:-s;if(0!=d)return d}return 0})},e.__name__=\"TableDataProvider\",e}();n.TableDataProvider=v;var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._in_selection_update=!1,t._warned_not_reorderable=!1,t}return o.__extends(t,e),t.prototype.connect_signals=function(){var t=this;e.prototype.connect_signals.call(this),this.connect(this.model.change,function(){return t.render()}),this.connect(this.model.source.streaming,function(){return t.updateGrid()}),this.connect(this.model.source.patching,function(){return t.updateGrid()}),this.connect(this.model.source.change,function(){return t.updateGrid()}),this.connect(this.model.source.properties.data.change,function(){return t.updateGrid()}),this.connect(this.model.source.selected.change,function(){return t.updateSelection()}),this.connect(this.model.source.selected.properties.indices.change,function(){return t.updateSelection()})},t.prototype._update_layout=function(){this.layout=new f.LayoutItem,this.layout.set_sizing(this.box_sizing())},t.prototype.update_position=function(){e.prototype.update_position.call(this),this.grid.resizeCanvas()},t.prototype.updateGrid=function(){var e=this;this.model.view.compute_indices(),this.data.constructor(this.model.source,this.model.view);var t=this.grid.getColumns(),n=this.grid.getSortColumns().map(function(n){return{sortCol:{field:t[e.grid.getColumnIndex(n.columnId)].field},sortAsc:n.sortAsc}});this.data.sort(n),this.grid.invalidate(),this.grid.render()},t.prototype.updateSelection=function(){var e=this;if(!this._in_selection_update){var t=this.model.source.selected.indices.map(function(t){return e.data.index.indexOf(t)}).sort();this._in_selection_update=!0,this.grid.setSelectedRows(t),this._in_selection_update=!1;var n=this.grid.getViewport(),o=this.model.get_scroll_index(n,t);null!=o&&this.grid.scrollRowToTop(o)}},t.prototype.newIndexColumn=function(){return{id:s.uniqueId(),name:this.model.index_header,field:n.DTINDEX_NAME,width:this.model.index_width,behavior:\"select\",cannotTriggerInsert:!0,resizable:!1,selectable:!1,sortable:!0,cssClass:m.bk_cell_index,headerCssClass:m.bk_header_index}},t.prototype.css_classes=function(){return e.prototype.css_classes.call(this).concat(m.bk_data_table)},t.prototype.render=function(){var e,t=this,n=this.model.columns.map(function(e){return e.toColumn()});if(\"checkbox\"==this.model.selectable&&(e=new i({cssClass:m.bk_cell_select}),n.unshift(e.getColumnDefinition())),null!=this.model.index_position){var o=this.model.index_position,a=this.newIndexColumn();-1==o?n.push(a):o<-1?n.splice(o+1,0,a):n.splice(o,0,a)}var s=this.model.reorderable;!s||\"undefined\"!=typeof $&&null!=$.fn&&null!=$.fn.sortable||(this._warned_not_reorderable||(p.logger.warn(\"jquery-ui is required to enable DataTable.reorderable\"),this._warned_not_reorderable=!0),s=!1);var u={enableCellNavigation:!1!==this.model.selectable,enableColumnReorder:s,forceFitColumns:this.model.fit_columns,multiColumnSort:this.model.sortable,editable:this.model.editable,autoEdit:!1,rowHeight:this.model.row_height};if(this.data=new v(this.model.source,this.model.view),this.grid=new l.Grid(this.el,this.data,n,u),this.grid.onSort.subscribe(function(e,o){n=o.sortCols,t.data.sort(n),t.grid.invalidate(),t.updateSelection(),t.grid.render(),t.model.header_row||t._hide_header(),t.model.update_sort_columns(n)}),!1!==this.model.selectable){this.grid.setSelectionModel(new r({selectActiveRow:null==e})),null!=e&&this.grid.registerPlugin(e);var d={dataItemColumnValueExtractor:function(e,t){var n=e[t.field];return c.isString(n)&&(n=n.replace(/\\n/g,\"\\\\n\")),n},includeHeaderWhenCopying:!1};this.grid.registerPlugin(new A(d)),this.grid.onSelectedRowsChanged.subscribe(function(e,n){t._in_selection_update||(t.model.source.selected.indices=n.rows.map(function(e){return t.data.index[e]}))}),this.updateSelection(),this.model.header_row||this._hide_header()}},t.prototype._hide_header=function(){for(var e=0,t=Array.from(this.el.querySelectorAll(\".slick-header-columns\"));e .slick-header-button {\\n width: 15px;\\n}\\n.bk-root .slick-header-menubutton {\\n position: absolute;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n width: 14px;\\n background-repeat: no-repeat;\\n background-position: left center;\\n background-image: url(../images/down.gif);\\n cursor: pointer;\\n display: none;\\n border-left: thin ridge silver;\\n}\\n.bk-root .slick-header-column:hover > .slick-header-menubutton,\\n.bk-root .slick-header-column-active .slick-header-menubutton {\\n display: inline-block;\\n}\\n.bk-root .slick-header-menu {\\n position: absolute;\\n display: inline-block;\\n margin: 0;\\n padding: 2px;\\n cursor: default;\\n}\\n.bk-root .slick-header-menuitem {\\n list-style: none;\\n margin: 0;\\n padding: 0;\\n cursor: pointer;\\n}\\n.bk-root .slick-header-menuicon {\\n display: inline-block;\\n width: 16px;\\n height: 16px;\\n vertical-align: middle;\\n margin-right: 4px;\\n background-repeat: no-repeat;\\n background-position: center center;\\n}\\n.bk-root .slick-header-menucontent {\\n display: inline-block;\\n vertical-align: middle;\\n}\\n.bk-root .slick-header-menuitem-disabled {\\n color: silver;\\n}\\n.bk-root .slick-columnpicker {\\n border: 1px solid #718BB7;\\n background: #f0f0f0;\\n padding: 6px;\\n -moz-box-shadow: 2px 2px 2px silver;\\n -webkit-box-shadow: 2px 2px 2px silver;\\n box-shadow: 2px 2px 2px silver;\\n min-width: 150px;\\n cursor: default;\\n position: absolute;\\n z-index: 20;\\n overflow: auto;\\n resize: both;\\n}\\n.bk-root .slick-columnpicker > .close {\\n float: right;\\n}\\n.bk-root .slick-columnpicker .title {\\n font-size: 16px;\\n width: 60%;\\n border-bottom: solid 1px #d6d6d6;\\n margin-bottom: 10px;\\n}\\n.bk-root .slick-columnpicker li {\\n list-style: none;\\n margin: 0;\\n padding: 0;\\n background: none;\\n}\\n.bk-root .slick-columnpicker input {\\n margin: 4px;\\n}\\n.bk-root .slick-columnpicker li a {\\n display: block;\\n padding: 4px;\\n font-weight: bold;\\n}\\n.bk-root .slick-columnpicker li a:hover {\\n background: white;\\n}\\n.bk-root .slick-pager {\\n width: 100%;\\n height: 26px;\\n border: 1px solid gray;\\n border-top: 0;\\n background: url(\\'../images/header-columns-bg.gif\\') repeat-x center bottom;\\n vertical-align: middle;\\n}\\n.bk-root .slick-pager .slick-pager-status {\\n display: inline-block;\\n padding: 6px;\\n}\\n.bk-root .slick-pager .ui-icon-container {\\n display: inline-block;\\n margin: 2px;\\n border-color: gray;\\n}\\n.bk-root .slick-pager .slick-pager-nav {\\n display: inline-block;\\n float: left;\\n padding: 2px;\\n}\\n.bk-root .slick-pager .slick-pager-settings {\\n display: block;\\n float: right;\\n padding: 2px;\\n}\\n.bk-root .slick-pager .slick-pager-settings * {\\n vertical-align: middle;\\n}\\n.bk-root .slick-pager .slick-pager-settings a {\\n padding: 2px;\\n text-decoration: underline;\\n cursor: pointer;\\n}\\n.bk-root .slick-header-columns {\\n background-image: url(\"data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=\");\\n}\\n.bk-root .slick-header-column {\\n background-image: url(\"data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=\");\\n}\\n.bk-root .slick-header-column:hover,\\n.bk-root .slick-header-column-active {\\n background-image: url(\"data:image/gif;base64,R0lGODlhAgAWAIcAAKrM9tno++vz/QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABYAAAgUAAUIHEiwoIAACBMqXMhwIQAAAQEAOw==\");\\n}\\n.bk-root .slick-group-toggle.expanded {\\n background-image: url(\"data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIMwADCBxIUIDBgwIEChgwwECBAgQUFjBAkaJCABgxGlB4AGHCAAIQiBypEEECkScJqgwQEAA7\");\\n}\\n.bk-root .slick-group-toggle.collapsed {\\n background-image: url(\"data:image/gif;base64,R0lGODlhCQAJAPcAAAFGeoCAgNXz/+v5/+v6/+z5/+36//L7//X8//j9/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAACQAJAAAIOAADCBxIUIDBgwIEChgwAECBAgQUFjAAQIABAwoBaNSIMYCAAwIqGlSIAEHFkiQTIBCgkqDLAAEBADs=\");\\n}\\n.bk-root .slick-group-select-checkbox.checked {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAAEcSURBVChTjdI9S8NQFAbg/raQXVwCRRFE7GK7OXTwD+ikk066VF3a0ja0hQTyQdJrwNq0zrYSQRLEXMSWSlCIb8glqRcFD+9yz3nugXwU4n9XQqMoGjj36uBJsTwuaNo3EwBG4Yy7pe7Gv8YcvhJCGFVsjxsjxujj6OTSGlHv+U2WZUZbPWKOv1ZjT5a7pbIoiptbO5b73mwrjHa1B27l8VlTEIS1damlTnEE+EEN9/P8WrfH81qdAIGeXvTTmzltdCy46sEhxpKUINReZR9NnqZbr9puugxV3NjWh/k74WmmEdWhmUNy2jNmWRc6fZTVADCqao52u+DGWTACYNT3fRxwtatPufTNR4yCIGAUn5hS+vJHhWGY/ANx/A3tvdv+1tZmuwAAAABJRU5ErkJggg==\");\\n}\\n.bk-root .slick-group-select-checkbox.unchecked {\\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAIAAACQKrqGAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAACXSURBVChT1dIxC4MwEAXg/v8/VOhQVDBNakV0KA6pxS4JhWRSIYPEJxwdDi1de7wleR+3JIf486w0hKCKRpSvvOhZcCmvNQBRuKqdah03U7UjNNH81rOaBYDo8SQaPX8JANFEaLaGBeAPaaY61rGksiN6TmR5H1j9CSoAosYYHLA7vTxYMvVEZa0liif23r93xjm3/oEYF8PiDn/I2FHCAAAAAElFTkSuQmCC\");\\n}\\n.bk-root .slick-sort-indicator-desc {\\n background-image: url(\"data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgeAAUAGEgQgIAACBEKLHgwYcKFBh1KFNhQosOKEgMCADs=\");\\n}\\n.bk-root .slick-sort-indicator-asc {\\n background-image: url(\"data:image/gif;base64,R0lGODlhDQAFAIcAAGGQzUD/QOPu+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAMAAAEALAAAAAANAAUAAAgbAAMIDABgoEGDABIeRJhQ4cKGEA8KmEiRosGAADs=\");\\n}\\n.bk-root .slick-header-menubutton {\\n background-image: url(\"data:image/gif;base64,R0lGODlhDgAOAIABADtKYwAAACH5BAEAAAEALAAAAAAOAA4AAAISjI+py+0PHZgUsGobhTn6DxoFADs=\");\\n}\\n.bk-root .slick-pager {\\n background-image: url(\"data:image/gif;base64,R0lGODlhAgAYAIcAANDQ0Ovs7uzt7+3u8O7v8e/w8vDx8/Hy9Pn5+QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAP8ALAAAAAACABgAAAghABEIHEiwYMEDCA8YWMiwgMMCBAgMmDhAgIAAGAMAABAQADs=\");\\n}\\n')},489:function(e,t,n){e(311),e(488),e(5).styles.append('.bk-root .bk-data-table {\\n box-sizing: content-box;\\n font-size: 11px;\\n}\\n.bk-root .bk-data-table input[type=\"checkbox\"] {\\n margin-left: 4px;\\n margin-right: 4px;\\n}\\n.bk-root .bk-cell-special-defaults {\\n border-right-color: silver;\\n border-right-style: solid;\\n background: #f5f5f5;\\n}\\n.bk-root .bk-cell-select {\\n border-right-color: silver;\\n border-right-style: solid;\\n background: #f5f5f5;\\n}\\n.bk-root .bk-cell-index {\\n border-right-color: silver;\\n border-right-style: solid;\\n background: #f5f5f5;\\n text-align: right;\\n color: gray;\\n}\\n.bk-root .bk-header-index .slick-column-name {\\n float: right;\\n}\\n.bk-root .slick-row.selected .bk-cell-index {\\n background-color: transparent;\\n}\\n.bk-root .slick-cell {\\n padding-left: 4px;\\n padding-right: 4px;\\n}\\n.bk-root .slick-cell.active {\\n border-style: dashed;\\n}\\n.bk-root .slick-cell.editable {\\n padding-left: 0;\\n padding-right: 0;\\n}\\n.bk-root .bk-cell-editor input,\\n.bk-root .bk-cell-editor select {\\n width: 100%;\\n height: 100%;\\n border: 0;\\n margin: 0;\\n padding: 0;\\n outline: 0;\\n background: transparent;\\n vertical-align: baseline;\\n}\\n.bk-root .bk-cell-editor input {\\n padding-left: 4px;\\n padding-right: 4px;\\n}\\n.bk-root .bk-cell-editor-completion {\\n font-size: 11px;\\n}\\n'),n.bk_data_table=\"bk-data-table\",n.bk_cell_index=\"bk-cell-index\",n.bk_header_index=\"bk-header-index\",n.bk_cell_editor=\"bk-cell-editor\",n.bk_cell_select=\"bk-cell-select\"},490:function(e,t,n){\n", " /*!\n", " * jQuery JavaScript Library v3.4.1\n", " * https://jquery.com/\n", " *\n", " * Includes Sizzle.js\n", " * https://sizzlejs.com/\n", " *\n", " * Copyright JS Foundation and other contributors\n", " * Released under the MIT license\n", " * https://jquery.org/license\n", " *\n", " * Date: 2019-05-01T21:04Z\n", " */\n", " !function(e,n){\"use strict\";\"object\"==typeof t&&\"object\"==typeof t.exports?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error(\"jQuery requires a window with a document\");return n(e)}:n(e)}(\"undefined\"!=typeof window?window:this,function(e,t){\"use strict\";var n=[],o=e.document,r=Object.getPrototypeOf,i=n.slice,A=n.concat,l=n.push,a=n.indexOf,s={},c=s.toString,u=s.hasOwnProperty,d=u.toString,p=d.call(Object),f={},h=function(e){return\"function\"==typeof e&&\"number\"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},m={type:!0,src:!0,nonce:!0,noModule:!0};function v(e,t,n){var r,i,A=(n=n||o).createElement(\"script\");if(A.text=e,t)for(r in m)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&A.setAttribute(r,i);n.head.appendChild(A).parentNode.removeChild(A)}function w(e){return null==e?e+\"\":\"object\"==typeof e||\"function\"==typeof e?s[c.call(e)]||\"object\":typeof e}var C=function(e,t){return new C.fn.init(e,t)},y=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;function b(e){var t=!!e&&\"length\"in e&&e.length,n=w(e);return!h(e)&&!g(e)&&(\"array\"===n||0===t||\"number\"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:\"3.4.1\",constructor:C,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|\"+L+\")\"+L+\"*\"),q=new RegExp(L+\"|>\"),G=new RegExp(W),K=new RegExp(\"^\"+F+\"$\"),U={ID:new RegExp(\"^#(\"+F+\")\"),CLASS:new RegExp(\"^\\\\.(\"+F+\")\"),TAG:new RegExp(\"^(\"+F+\"|[*])\"),ATTR:new RegExp(\"^\"+V),PSEUDO:new RegExp(\"^\"+W),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+L+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+L+\"*(?:([+-]|)\"+L+\"*(\\\\d+)|))\"+L+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+M+\")$\",\"i\"),needsContext:new RegExp(\"^\"+L+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+L+\"*((?:-\\\\d)?\\\\d*)\"+L+\"*\\\\)|)(?=[^-]|$)\",\"i\")},X=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Y=/^h\\d$/i,J=/^[^{]+\\{\\s*\\[native \\w/,Z=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,ee=/[+~]/,te=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+L+\"?|(\"+L+\")|.)\",\"ig\"),ne=function(e,t,n){var o=\"0x\"+t-65536;return o!=o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},oe=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,re=function(e,t){return t?\"\\0\"===e?\"�\":e.slice(0,-1)+\"\\\\\"+e.charCodeAt(e.length-1).toString(16)+\" \":\"\\\\\"+e},ie=function(){d()},Ae=Ce(function(e){return!0===e.disabled&&\"fieldset\"===e.nodeName.toLowerCase()},{dir:\"parentNode\",next:\"legend\"});try{N.apply(D=$.call(y.childNodes),y.childNodes),D[y.childNodes.length].nodeType}catch(e){N={apply:D.length?function(e,t){I.apply(e,$.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function le(e,t,o,r){var i,l,s,c,u,f,m,v=t&&t.ownerDocument,b=t?t.nodeType:9;if(o=o||[],\"string\"!=typeof e||!e||1!==b&&9!==b&&11!==b)return o;if(!r&&((t?t.ownerDocument||t:y)!==p&&d(t),t=t||p,h)){if(11!==b&&(u=Z.exec(e)))if(i=u[1]){if(9===b){if(!(s=t.getElementById(i)))return o;if(s.id===i)return o.push(s),o}else if(v&&(s=v.getElementById(i))&&w(t,s)&&s.id===i)return o.push(s),o}else{if(u[2])return N.apply(o,t.getElementsByTagName(e)),o;if((i=u[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(o,t.getElementsByClassName(i)),o}if(n.qsa&&!E[e+\" \"]&&(!g||!g.test(e))&&(1!==b||\"object\"!==t.nodeName.toLowerCase())){if(m=e,v=t,1===b&&q.test(e)){for((c=t.getAttribute(\"id\"))?c=c.replace(oe,re):t.setAttribute(\"id\",c=C),l=(f=A(e)).length;l--;)f[l]=\"#\"+c+\" \"+we(f[l]);m=f.join(\",\"),v=ee.test(e)&&me(t.parentNode)||t}try{return N.apply(o,v.querySelectorAll(m)),o}catch(t){E(e,!0)}finally{c===C&&t.removeAttribute(\"id\")}}}return a(e.replace(j,\"$1\"),t,o,r)}function ae(){var e=[];return function t(n,r){return e.push(n+\" \")>o.cacheLength&&delete t[e.shift()],t[n+\" \"]=r}}function se(e){return e[C]=!0,e}function ce(e){var t=p.createElement(\"fieldset\");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split(\"|\"),r=n.length;r--;)o.attrHandle[n[r]]=t}function de(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return\"input\"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return(\"input\"===n||\"button\"===n)&&t.type===e}}function he(e){return function(t){return\"form\"in t?t.parentNode&&!1===t.disabled?\"label\"in t?\"label\"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ae(t)===e:t.disabled===e:\"label\"in t&&t.disabled===e}}function ge(e){return se(function(t){return t=+t,se(function(n,o){for(var r,i=e([],n.length,t),A=i.length;A--;)n[r=i[A]]&&(n[r]=!(o[r]=n[r]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=le.support={},i=le.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||\"HTML\")},d=le.setDocument=function(e){var t,r,A=e?e.ownerDocument||e:y;return A!==p&&9===A.nodeType&&A.documentElement?(f=(p=A).documentElement,h=!i(p),y!==p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener(\"unload\",ie,!1):r.attachEvent&&r.attachEvent(\"onunload\",ie)),n.attributes=ce(function(e){return e.className=\"i\",!e.getAttribute(\"className\")}),n.getElementsByTagName=ce(function(e){return e.appendChild(p.createComment(\"\")),!e.getElementsByTagName(\"*\").length}),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ce(function(e){return f.appendChild(e).id=C,!p.getElementsByName||!p.getElementsByName(C).length}),n.getById?(o.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute(\"id\")===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(o.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode(\"id\");return n&&n.value===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode(\"id\"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode(\"id\"))&&n.value===e)return[i]}return[]}}),o.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if(\"*\"===e){for(;n=i[r++];)1===n.nodeType&&o.push(n);return o}return i},o.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},m=[],g=[],(n.qsa=J.test(p.querySelectorAll))&&(ce(function(e){f.appendChild(e).innerHTML=\"\",e.querySelectorAll(\"[msallowcapture^='']\").length&&g.push(\"[*^$]=\"+L+\"*(?:''|\\\"\\\")\"),e.querySelectorAll(\"[selected]\").length||g.push(\"\\\\[\"+L+\"*(?:value|\"+M+\")\"),e.querySelectorAll(\"[id~=\"+C+\"-]\").length||g.push(\"~=\"),e.querySelectorAll(\":checked\").length||g.push(\":checked\"),e.querySelectorAll(\"a#\"+C+\"+*\").length||g.push(\".#.+[+~]\")}),ce(function(e){e.innerHTML=\"\";var t=p.createElement(\"input\");t.setAttribute(\"type\",\"hidden\"),e.appendChild(t).setAttribute(\"name\",\"D\"),e.querySelectorAll(\"[name=d]\").length&&g.push(\"name\"+L+\"*[*^$|!~]?=\"),2!==e.querySelectorAll(\":enabled\").length&&g.push(\":enabled\",\":disabled\"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(\":disabled\").length&&g.push(\":enabled\",\":disabled\"),e.querySelectorAll(\"*,:x\"),g.push(\",.*:\")})),(n.matchesSelector=J.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=v.call(e,\"*\"),v.call(e,\"[s!='']:x\"),m.push(\"!=\",W)}),g=g.length&&new RegExp(g.join(\"|\")),m=m.length&&new RegExp(m.join(\"|\")),t=J.test(f.compareDocumentPosition),w=t||J.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},_=t?function(e,t){if(e===t)return u=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===o?e===p||e.ownerDocument===y&&w(y,e)?-1:t===p||t.ownerDocument===y&&w(y,t)?1:c?H(c,e)-H(c,t):0:4&o?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,A=[e],l=[t];if(!r||!i)return e===p?-1:t===p?1:r?-1:i?1:c?H(c,e)-H(c,t):0;if(r===i)return de(e,t);for(n=e;n=n.parentNode;)A.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;A[o]===l[o];)o++;return o?de(A[o],l[o]):A[o]===y?-1:l[o]===y?1:0},p):p},le.matches=function(e,t){return le(e,null,null,t)},le.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&d(e),n.matchesSelector&&h&&!E[t+\" \"]&&(!m||!m.test(t))&&(!g||!g.test(t)))try{var o=v.call(e,t);if(o||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){E(t,!0)}return le(t,p,null,[e]).length>0},le.contains=function(e,t){return(e.ownerDocument||e)!==p&&d(e),w(e,t)},le.attr=function(e,t){(e.ownerDocument||e)!==p&&d(e);var r=o.attrHandle[t.toLowerCase()],i=r&&T.call(o.attrHandle,t.toLowerCase())?r(e,t,!h):void 0;return void 0!==i?i:n.attributes||!h?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},le.escape=function(e){return(e+\"\").replace(oe,re)},le.error=function(e){throw new Error(\"Syntax error, unrecognized expression: \"+e)},le.uniqueSort=function(e){var t,o=[],r=0,i=0;if(u=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(_),u){for(;t=e[i++];)t===e[i]&&(r=o.push(i));for(;r--;)e.splice(o[r],1)}return c=null,e},r=le.getText=function(e){var t,n=\"\",o=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if(\"string\"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[o++];)n+=r(t);return n},(o=le.selectors={cacheLength:50,createPseudo:se,match:U,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||\"\").replace(te,ne),\"~=\"===e[2]&&(e[3]=\" \"+e[3]+\" \"),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),\"nth\"===e[1].slice(0,3)?(e[3]||le.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(\"even\"===e[3]||\"odd\"===e[3])),e[5]=+(e[7]+e[8]||\"odd\"===e[3])):e[3]&&le.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||\"\":n&&G.test(n)&&(t=A(n,!0))&&(t=n.indexOf(\")\",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return\"*\"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+\" \"];return t||(t=new RegExp(\"(^|\"+L+\")\"+e+\"(\"+L+\"|$)\"))&&k(e,function(e){return t.test(\"string\"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute(\"class\")||\"\")})},ATTR:function(e,t,n){return function(o){var r=le.attr(o,e);return null==r?\"!=\"===t:!t||(r+=\"\",\"=\"===t?r===n:\"!=\"===t?r!==n:\"^=\"===t?n&&0===r.indexOf(n):\"*=\"===t?n&&r.indexOf(n)>-1:\"$=\"===t?n&&r.slice(-n.length)===n:\"~=\"===t?(\" \"+r.replace(B,\" \")+\" \").indexOf(n)>-1:\"|=\"===t&&(r===n||r.slice(0,n.length+1)===n+\"-\"))}},CHILD:function(e,t,n,o,r){var i=\"nth\"!==e.slice(0,3),A=\"last\"!==e.slice(-4),l=\"of-type\"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,a){var s,c,u,d,p,f,h=i!==A?\"nextSibling\":\"previousSibling\",g=t.parentNode,m=l&&t.nodeName.toLowerCase(),v=!a&&!l,w=!1;if(g){if(i){for(;h;){for(d=t;d=d[h];)if(l?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;f=h=\"only\"===e&&!f&&\"nextSibling\"}return!0}if(f=[A?g.firstChild:g.lastChild],A&&v){for(w=(p=(s=(c=(u=(d=g)[C]||(d[C]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===b&&s[1])&&s[2],d=p&&g.childNodes[p];d=++p&&d&&d[h]||(w=p=0)||f.pop();)if(1===d.nodeType&&++w&&d===t){c[e]=[b,p,w];break}}else if(v&&(w=p=(s=(c=(u=(d=t)[C]||(d[C]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===b&&s[1]),!1===w)for(;(d=++p&&d&&d[h]||(w=p=0)||f.pop())&&((l?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++w||(v&&((c=(u=d[C]||(d[C]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]=[b,w]),d!==t)););return(w-=r)===o||w%o==0&&w/o>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||le.error(\"unsupported pseudo: \"+e);return r[C]?r(t):r.length>1?(n=[e,e,\"\",t],o.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var o,i=r(e,t),A=i.length;A--;)e[o=H(e,i[A])]=!(n[o]=i[A])}):function(e){return r(e,0,n)}):r}},pseudos:{not:se(function(e){var t=[],n=[],o=l(e.replace(j,\"$1\"));return o[C]?se(function(e,t,n,r){for(var i,A=o(e,null,r,[]),l=e.length;l--;)(i=A[l])&&(e[l]=!(t[l]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return le(e,t).length>0}}),contains:se(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}}),lang:se(function(e){return K.test(e||\"\")||le.error(\"unsupported lang: \"+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute(\"xml:lang\")||t.getAttribute(\"lang\"))return(n=n.toLowerCase())===e||0===n.indexOf(e+\"-\")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return\"input\"===t&&!!e.checked||\"option\"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return\"input\"===t&&\"button\"===e.type||\"button\"===t},text:function(e){var t;return\"input\"===e.nodeName.toLowerCase()&&\"text\"===e.type&&(null==(t=e.getAttribute(\"type\"))||\"text\"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;nt?t:n;--o>=0;)e.push(o);return e}),gt:ge(function(e,t,n){for(var o=n<0?n+t:n;++o1?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function be(e,t,n,o,r){for(var i,A=[],l=0,a=e.length,s=null!=t;l-1&&(i[s]=!(A[s]=u))}}else m=be(m===A?m.splice(f,m.length):m),r?r(null,A,m,a):N.apply(A,m)})}function ke(e){for(var t,n,r,i=e.length,A=o.relative[e[0].type],l=A||o.relative[\" \"],a=A?1:0,c=Ce(function(e){return e===t},l,!0),u=Ce(function(e){return H(t,e)>-1},l,!0),d=[function(e,n,o){var r=!A&&(o||n!==s)||((t=n).nodeType?c(e,n,o):u(e,n,o));return t=null,r}];a1&&ye(d),a>1&&we(e.slice(0,a-1).concat({value:\" \"===e[a-2].type?\"*\":\"\"})).replace(j,\"$1\"),n,a0,r=e.length>0,i=function(i,A,l,a,c){var u,f,g,m=0,v=\"0\",w=i&&[],C=[],y=s,x=i||r&&o.find.TAG(\"*\",c),k=b+=null==y?1:Math.random()||.1,R=x.length;for(c&&(s=A===p||A||c);v!==R&&null!=(u=x[v]);v++){if(r&&u){for(f=0,A||u.ownerDocument===p||(d(u),l=!h);g=e[f++];)if(g(u,A||p,l)){a.push(u);break}c&&(b=k)}n&&((u=!g&&u)&&m--,i&&w.push(u))}if(m+=v,n&&v!==m){for(f=0;g=t[f++];)g(w,C,A,l);if(i){if(m>0)for(;v--;)w[v]||C[v]||(C[v]=P.call(a));C=be(C)}N.apply(a,C),c&&!i&&C.length>0&&m+t.length>1&&le.uniqueSort(a)}return c&&(b=k,s=y),w};return n?se(i):i}(i,r))).selector=e}return l},a=le.select=function(e,t,n,r){var i,a,s,c,u,d=\"function\"==typeof e&&e,p=!r&&A(e=d.selector||e);if(n=n||[],1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&\"ID\"===(s=a[0]).type&&9===t.nodeType&&h&&o.relative[a[1].type]){if(!(t=(o.find.ID(s.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(i=U.needsContext.test(e)?0:a.length;i--&&(s=a[i],!o.relative[c=s.type]);)if((u=o.find[c])&&(r=u(s.matches[0].replace(te,ne),ee.test(a[0].type)&&me(t.parentNode)||t))){if(a.splice(i,1),!(e=r.length&&we(a)))return N.apply(n,r),n;break}}return(d||l(e,p))(r,t,!h,n,!t||ee.test(e)&&me(t.parentNode)||t),n},n.sortStable=C.split(\"\").sort(_).join(\"\")===C,n.detectDuplicates=!!u,d(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(p.createElement(\"fieldset\"))}),ce(function(e){return e.innerHTML=\"\",\"#\"===e.firstChild.getAttribute(\"href\")})||ue(\"type|href|height|width\",function(e,t,n){if(!n)return e.getAttribute(t,\"type\"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML=\"\",e.firstChild.setAttribute(\"value\",\"\"),\"\"===e.firstChild.getAttribute(\"value\")})||ue(\"value\",function(e,t,n){if(!n&&\"input\"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute(\"disabled\")})||ue(M,function(e,t,n){var o;if(!n)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),le}(e);C.find=x,C.expr=x.selectors,C.expr[\":\"]=C.expr.pseudos,C.uniqueSort=C.unique=x.uniqueSort,C.text=x.getText,C.isXMLDoc=x.isXML,C.contains=x.contains,C.escapeSelector=x.escape;var k=function(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&C(e).is(n))break;o.push(e)}return o},R=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=C.expr.match.needsContext;function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var _=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i;function T(e,t,n){return h(t)?C.grep(e,function(e,o){return!!t.call(e,o,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):\"string\"!=typeof t?C.grep(e,function(e){return a.call(t,e)>-1!==n}):C.filter(t,e,n)}C.filter=function(e,t,n){var o=t[0];return n&&(e=\":not(\"+e+\")\"),1===t.length&&1===o.nodeType?C.find.matchesSelector(o,e)?[o]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,o=this.length,r=this;if(\"string\"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,\"string\"==typeof e&&S.test(e)?C(e):e||[],!1).length}});var D,P=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/;(C.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,\"string\"==typeof e){if(!(r=\"<\"===e[0]&&\">\"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),_.test(r[1])&&C.isPlainObject(t))for(r in t)h(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=o.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,D=C(o);var I=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&C.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?C.uniqueSort(i):i)},index:function(e){return e?\"string\"==typeof e?a.call(C(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,\"parentNode\")},parentsUntil:function(e,t,n){return k(e,\"parentNode\",n)},next:function(e){return $(e,\"nextSibling\")},prev:function(e){return $(e,\"previousSibling\")},nextAll:function(e){return k(e,\"nextSibling\")},prevAll:function(e){return k(e,\"previousSibling\")},nextUntil:function(e,t,n){return k(e,\"nextSibling\",n)},prevUntil:function(e,t,n){return k(e,\"previousSibling\",n)},siblings:function(e){return R((e.parentNode||{}).firstChild,e)},children:function(e){return R(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(E(e,\"template\")&&(e=e.content||e),C.merge([],e.childNodes))}},function(e,t){C.fn[e]=function(n,o){var r=C.map(this,t,n);return\"Until\"!==e.slice(-5)&&(o=n),o&&\"string\"==typeof o&&(r=C.filter(o,r)),this.length>1&&(N[e]||C.uniqueSort(r),I.test(e)&&r.reverse()),this.pushStack(r)}});var H=/[^\\x20\\t\\r\\n\\f]+/g;function M(e){return e}function L(e){throw e}function F(e,t,n,o){var r;try{e&&h(r=e.promise)?r.call(e).done(t).fail(n):e&&h(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e=\"string\"==typeof e?function(e){var t={};return C.each(e.match(H)||[],function(e,n){t[n]=!0}),t}(e):C.extend({},e);var t,n,o,r,i=[],A=[],l=-1,a=function(){for(r=r||e.once,o=t=!0;A.length;l=-1)for(n=A.shift();++l-1;)i.splice(n,1),n<=l&&l--}),this},has:function(e){return e?C.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=A=[],i=n=\"\",this},disabled:function(){return!i},lock:function(){return r=A=[],n||t||(i=n=\"\"),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],A.push(n),t||a()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!o}};return s},C.extend({Deferred:function(t){var n=[[\"notify\",\"progress\",C.Callbacks(\"memory\"),C.Callbacks(\"memory\"),2],[\"resolve\",\"done\",C.Callbacks(\"once memory\"),C.Callbacks(\"once memory\"),0,\"resolved\"],[\"reject\",\"fail\",C.Callbacks(\"once memory\"),C.Callbacks(\"once memory\"),1,\"rejected\"]],o=\"pending\",r={state:function(){return o},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return C.Deferred(function(t){C.each(n,function(n,o){var r=h(e[o[4]])&&e[o[4]];i[o[1]](function(){var e=r&&r.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[o[0]+\"With\"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(t,o,r){var i=0;function A(t,n,o,r){return function(){var l=this,a=arguments,s=function(){var e,s;if(!(t=i&&(o!==L&&(l=void 0,a=[e]),n.rejectWith(l,a))}};t?c():(C.Deferred.getStackHook&&(c.stackTrace=C.Deferred.getStackHook()),e.setTimeout(c))}}return C.Deferred(function(e){n[0][3].add(A(0,e,h(r)?r:M,e.notifyWith)),n[1][3].add(A(0,e,h(t)?t:M)),n[2][3].add(A(0,e,h(o)?o:L))}).promise()},promise:function(e){return null!=e?C.extend(e,r):r}},i={};return C.each(n,function(e,t){var A=t[2],l=t[5];r[t[1]]=A.add,l&&A.add(function(){o=l},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),A.add(t[3].fire),i[t[0]]=function(){return i[t[0]+\"With\"](this===i?void 0:this,arguments),this},i[t[0]+\"With\"]=A.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(e){var t=arguments.length,n=t,o=Array(n),r=i.call(arguments),A=C.Deferred(),l=function(e){return function(n){o[e]=this,r[e]=arguments.length>1?i.call(arguments):n,--t||A.resolveWith(o,r)}};if(t<=1&&(F(e,A.done(l(n)).resolve,A.reject,!t),\"pending\"===A.state()||h(r[n]&&r[n].then)))return A.then();for(;n--;)F(r[n],l(n),A.reject);return A.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&V.test(t.name)&&e.console.warn(\"jQuery.Deferred exception: \"+t.message,t.stack,n)},C.readyException=function(t){e.setTimeout(function(){throw t})};var W=C.Deferred();function B(){o.removeEventListener(\"DOMContentLoaded\",B),e.removeEventListener(\"load\",B),C.ready()}C.fn.ready=function(e){return W.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||W.resolveWith(o,[C]))}}),C.ready.then=W.then,\"complete\"===o.readyState||\"loading\"!==o.readyState&&!o.documentElement.doScroll?e.setTimeout(C.ready):(o.addEventListener(\"DOMContentLoaded\",B),e.addEventListener(\"load\",B));var j=function(e,t,n,o,r,i,A){var l=0,a=e.length,s=null==n;if(\"object\"===w(n))for(l in r=!0,n)j(e,t,l,n[l],!0,i,A);else if(void 0!==o&&(r=!0,h(o)||(A=!0),s&&(A?(t.call(e,o),t=null):(s=t,t=function(e,t,n){return s.call(C(e),n)})),t))for(;l1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),C.extend({queue:function(e,t,n){var o;if(e)return t=(t||\"fx\")+\"queue\",o=X.get(e,t),n&&(!o||Array.isArray(n)?o=X.access(e,t,C.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||\"fx\";var n=C.queue(e,t),o=n.length,r=n.shift(),i=C._queueHooks(e,t);\"inprogress\"===r&&(r=n.shift(),o--),r&&(\"fx\"===t&&n.unshift(\"inprogress\"),delete i.stop,r.call(e,function(){C.dequeue(e,t)},i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+\"queueHooks\";return X.get(e,n)||X.access(e,n,{empty:C.Callbacks(\"once memory\").add(function(){X.remove(e,[t+\"queue\",n])})})}}),C.fn.extend({queue:function(e,t){var n=2;return\"string\"!=typeof e&&(t=e,e=\"fx\",n--),arguments.length\\x20\\t\\r\\n\\f]*)/i,fe=/^$|^module$|\\/(?:java|ecma)script/i,he={option:[1,\"\"],thead:[1,\"\",\"
\"],col:[2,\"\",\"
\"],tr:[2,\"\",\"
\"],td:[3,\"\",\"
\"],_default:[0,\"\",\"\"]};function ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||\"*\"):void 0!==e.querySelectorAll?e.querySelectorAll(t||\"*\"):[],void 0===t||t&&E(e,t)?C.merge([e],n):n}function me(e,t){for(var n=0,o=e.length;n-1)r&&r.push(i);else if(s=re(i),A=ge(u.appendChild(i),\"script\"),s&&me(A),n)for(c=0;i=A[c++];)fe.test(i.type||\"\")&&n.push(i);return u}ve=o.createDocumentFragment().appendChild(o.createElement(\"div\")),(we=o.createElement(\"input\")).setAttribute(\"type\",\"radio\"),we.setAttribute(\"checked\",\"checked\"),we.setAttribute(\"name\",\"t\"),ve.appendChild(we),f.checkClone=ve.cloneNode(!0).cloneNode(!0).lastChild.checked,ve.innerHTML=\"\",f.noCloneChecked=!!ve.cloneNode(!0).lastChild.defaultValue;var be=/^key/,xe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\\.(.+)|)/;function Re(){return!0}function Se(){return!1}function Ee(e,t){return e===function(){try{return o.activeElement}catch(e){}}()==(\"focus\"===t)}function _e(e,t,n,o,r,i){var A,l;if(\"object\"==typeof t){for(l in\"string\"!=typeof n&&(o=o||n,n=void 0),t)_e(e,l,n,o,t[l],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&(\"string\"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=Se;else if(!r)return e;return 1===i&&(A=r,(r=function(e){return C().off(e),A.apply(this,arguments)}).guid=A.guid||(A.guid=C.guid++)),e.each(function(){C.event.add(this,t,r,o,n)})}function Te(e,t,n){n?(X.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var o,r,A=X.get(this,t);if(1&e.isTrigger&&this[t]){if(A.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(A=i.call(arguments),X.set(this,t,A),o=n(this,t),this[t](),A!==(r=X.get(this,t))||o?X.set(this,t,!1):r={},A!==r)return e.stopImmediatePropagation(),e.preventDefault(),r.value}else A.length&&(X.set(this,t,{value:C.event.trigger(C.extend(A[0],C.Event.prototype),A.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&C.event.add(e,t,Re)}C.event={global:{},add:function(e,t,n,o,r){var i,A,l,a,s,c,u,d,p,f,h,g=X.get(e);if(g)for(n.handler&&(n=(i=n).handler,r=i.selector),r&&C.find.matchesSelector(oe,r),n.guid||(n.guid=C.guid++),(a=g.events)||(a=g.events={}),(A=g.handle)||(A=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),s=(t=(t||\"\").match(H)||[\"\"]).length;s--;)p=h=(l=ke.exec(t[s])||[])[1],f=(l[2]||\"\").split(\".\").sort(),p&&(u=C.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=C.event.special[p]||{},c=C.extend({type:p,origType:h,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&C.expr.match.needsContext.test(r),namespace:f.join(\".\")},i),(d=a[p])||((d=a[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,o,f,A)||e.addEventListener&&e.addEventListener(p,A)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),C.event.global[p]=!0)},remove:function(e,t,n,o,r){var i,A,l,a,s,c,u,d,p,f,h,g=X.hasData(e)&&X.get(e);if(g&&(a=g.events)){for(s=(t=(t||\"\").match(H)||[\"\"]).length;s--;)if(p=h=(l=ke.exec(t[s])||[])[1],f=(l[2]||\"\").split(\".\").sort(),p){for(u=C.event.special[p]||{},d=a[p=(o?u.delegateType:u.bindType)||p]||[],l=l[2]&&new RegExp(\"(^|\\\\.)\"+f.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),A=i=d.length;i--;)c=d[i],!r&&h!==c.origType||n&&n.guid!==c.guid||l&&!l.test(c.namespace)||o&&o!==c.selector&&(\"**\"!==o||!c.selector)||(d.splice(i,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(e,c));A&&!d.length&&(u.teardown&&!1!==u.teardown.call(e,f,g.handle)||C.removeEvent(e,p,g.handle),delete a[p])}else for(p in a)C.event.remove(e,p+t[s],n,o,!0);C.isEmptyObject(a)&&X.remove(e,\"handle events\")}},dispatch:function(e){var t,n,o,r,i,A,l=C.event.fix(e),a=new Array(arguments.length),s=(X.get(this,\"events\")||{})[l.type]||[],c=C.event.special[l.type]||{};for(a[0]=l,t=1;t=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&(\"click\"!==e.type||!0!==s.disabled)){for(i=[],A={},n=0;n-1:C.find(r,this,null,[s]).length),A[r]&&i.push(o);i.length&&l.push({elem:s,handlers:i})}return s=this,a\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi,Pe=/\\s*$/g;function $e(e,t){return E(e,\"table\")&&E(11!==t.nodeType?t:t.firstChild,\"tr\")&&C(e).children(\"tbody\")[0]||e}function He(e){return e.type=(null!==e.getAttribute(\"type\"))+\"/\"+e.type,e}function Me(e){return\"true/\"===(e.type||\"\").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute(\"type\"),e}function Le(e,t){var n,o,r,i,A,l,a,s;if(1===t.nodeType){if(X.hasData(e)&&(i=X.access(e),A=X.set(t,i),s=i.events))for(r in delete A.handle,A.events={},s)for(n=0,o=s[r].length;n1&&\"string\"==typeof g&&!f.checkClone&&Ie.test(g))return e.each(function(r){var i=e.eq(r);m&&(t[0]=g.call(this,r,i.html())),Fe(i,t,n,o)});if(d&&(i=(r=ye(t,e[0].ownerDocument,!1,e,o)).firstChild,1===r.childNodes.length&&(r=i),i||o)){for(a=(l=C.map(ge(r,\"script\"),He)).length;u\")},clone:function(e,t,n){var o,r,i,A,l,a,s,c=e.cloneNode(!0),u=re(e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(A=ge(c),o=0,r=(i=ge(e)).length;o0&&me(A,!u&&ge(e,\"script\")),c},cleanData:function(e){for(var t,n,o,r=C.event.special,i=0;void 0!==(n=e[i]);i++)if(K(n)){if(t=n[X.expando]){if(t.events)for(o in t.events)r[o]?C.event.remove(n,o):C.removeEvent(n,o,t.handle);n[X.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Ve(this,e,!0)},remove:function(e){return Ve(this,e)},text:function(e){return j(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Fe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$e(this,e).appendChild(e)})},prepend:function(){return Fe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=$e(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(ge(e,!1)),e.textContent=\"\");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return j(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if(\"string\"==typeof e&&!Pe.test(e)&&!he[(pe.exec(e)||[\"\",\"\"])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n=0&&(a+=Math.max(0,Math.ceil(e[\"offset\"+t[0].toUpperCase()+t.slice(1)]-i-a-l-.5))||0),a}function tt(e,t,n){var o=Be(e),r=(!f.boxSizingReliable()||n)&&\"border-box\"===C.css(e,\"boxSizing\",!1,o),i=r,A=Oe(e,t,o),l=\"offset\"+t[0].toUpperCase()+t.slice(1);if(We.test(A)){if(!n)return A;A=\"auto\"}return(!f.boxSizingReliable()&&r||\"auto\"===A||!parseFloat(A)&&\"inline\"===C.css(e,\"display\",!1,o))&&e.getClientRects().length&&(r=\"border-box\"===C.css(e,\"boxSizing\",!1,o),(i=l in e)&&(A=e[l])),(A=parseFloat(A)||0)+et(e,t,n||(r?\"border\":\"content\"),i,o,A)+\"px\"}function nt(e,t,n,o,r){return new nt.prototype.init(e,t,n,o,r)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Oe(e,\"opacity\");return\"\"===n?\"1\":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,A,l=G(t),a=Qe.test(t),s=e.style;if(a||(t=Ue(l)),A=C.cssHooks[t]||C.cssHooks[l],void 0===n)return A&&\"get\"in A&&void 0!==(r=A.get(e,!1,o))?r:s[t];\"string\"===(i=typeof n)&&(r=te.exec(n))&&r[1]&&(n=ae(e,t,r),i=\"number\"),null!=n&&n==n&&(\"number\"!==i||a||(n+=r&&r[3]||(C.cssNumber[l]?\"\":\"px\")),f.clearCloneStyle||\"\"!==n||0!==t.indexOf(\"background\")||(s[t]=\"inherit\"),A&&\"set\"in A&&void 0===(n=A.set(e,n,o))||(a?s.setProperty(t,n):s[t]=n))}},css:function(e,t,n,o){var r,i,A,l=G(t);return Qe.test(t)||(t=Ue(l)),(A=C.cssHooks[t]||C.cssHooks[l])&&\"get\"in A&&(r=A.get(e,!0,n)),void 0===r&&(r=Oe(e,t,o)),\"normal\"===r&&t in Je&&(r=Je[t]),\"\"===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),C.each([\"height\",\"width\"],function(e,t){C.cssHooks[t]={get:function(e,n,o){if(n)return!Xe.test(C.css(e,\"display\"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,o):le(e,Ye,function(){return tt(e,t,o)})},set:function(e,n,o){var r,i=Be(e),A=!f.scrollboxSize()&&\"absolute\"===i.position,l=(A||o)&&\"border-box\"===C.css(e,\"boxSizing\",!1,i),a=o?et(e,t,o,l,i):0;return l&&A&&(a-=Math.ceil(e[\"offset\"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-et(e,t,\"border\",!1,i)-.5)),a&&(r=te.exec(n))&&\"px\"!==(r[3]||\"px\")&&(e.style[t]=n,n=C.css(e,t)),Ze(0,n,a)}}}),C.cssHooks.marginLeft=ze(f.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Oe(e,\"marginLeft\"))||e.getBoundingClientRect().left-le(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+\"px\"}),C.each({margin:\"\",padding:\"\",border:\"Width\"},function(e,t){C.cssHooks[e+t]={expand:function(n){for(var o=0,r={},i=\"string\"==typeof n?n.split(\" \"):[n];o<4;o++)r[e+ne[o]+t]=i[o]||i[o-2]||i[0];return r}},\"margin\"!==e&&(C.cssHooks[e+t].set=Ze)}),C.fn.extend({css:function(e,t){return j(this,function(e,t,n){var o,r,i={},A=0;if(Array.isArray(t)){for(o=Be(e),r=t.length;A1)}}),C.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(C.cssNumber[n]?\"\":\"px\")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,\"\"))&&\"auto\"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Ue(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:\"swing\"},C.fx=nt.prototype.init,C.fx.step={};var ot,rt,it=/^(?:toggle|show|hide)$/,At=/queueHooks$/;function lt(){rt&&(!1===o.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(lt):e.setTimeout(lt,C.fx.interval),C.fx.tick())}function at(){return e.setTimeout(function(){ot=void 0}),ot=Date.now()}function st(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)r[\"margin\"+(n=ne[o])]=r[\"padding\"+n]=e;return t&&(r.opacity=r.width=e),r}function ct(e,t,n){for(var o,r=(ut.tweeners[t]||[]).concat(ut.tweeners[\"*\"]),i=0,A=r.length;i1)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?C.prop(e,t,n):(1===i&&C.isXMLDoc(e)||(r=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):r&&\"set\"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+\"\"),n):r&&\"get\"in r&&null!==(o=r.get(e,t))?o:null==(o=C.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&\"radio\"===t&&E(e,\"input\")){var n=e.value;return e.setAttribute(\"type\",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match(H);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\\w+/g),function(e,t){var n=pt[t]||C.find.attr;pt[t]=function(e,t,o){var r,i,A=t.toLowerCase();return o||(i=pt[A],pt[A]=r,r=null!=n(e,t,o)?A:null,pt[A]=i),r}});var ft=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function gt(e){return(e.match(H)||[]).join(\" \")}function mt(e){return e.getAttribute&&e.getAttribute(\"class\")||\"\"}function vt(e){return Array.isArray(e)?e:\"string\"==typeof e&&e.match(H)||[]}C.fn.extend({prop:function(e,t){return j(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&C.isXMLDoc(e)||(t=C.propFix[t]||t,r=C.propHooks[t]),void 0!==n?r&&\"set\"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&\"get\"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,\"tabindex\");return t?parseInt(t,10):ft.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:\"htmlFor\",class:\"className\"}}),f.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,n,o,r,i,A,l,a=0;if(h(e))return this.each(function(t){C(this).addClass(e.call(this,t,mt(this)))});if((t=vt(e)).length)for(;n=this[a++];)if(r=mt(n),o=1===n.nodeType&&\" \"+gt(r)+\" \"){for(A=0;i=t[A++];)o.indexOf(\" \"+i+\" \")<0&&(o+=i+\" \");r!==(l=gt(o))&&n.setAttribute(\"class\",l)}return this},removeClass:function(e){var t,n,o,r,i,A,l,a=0;if(h(e))return this.each(function(t){C(this).removeClass(e.call(this,t,mt(this)))});if(!arguments.length)return this.attr(\"class\",\"\");if((t=vt(e)).length)for(;n=this[a++];)if(r=mt(n),o=1===n.nodeType&&\" \"+gt(r)+\" \"){for(A=0;i=t[A++];)for(;o.indexOf(\" \"+i+\" \")>-1;)o=o.replace(\" \"+i+\" \",\" \");r!==(l=gt(o))&&n.setAttribute(\"class\",l)}return this},toggleClass:function(e,t){var n=typeof e,o=\"string\"===n||Array.isArray(e);return\"boolean\"==typeof t&&o?t?this.addClass(e):this.removeClass(e):h(e)?this.each(function(n){C(this).toggleClass(e.call(this,n,mt(this),t),t)}):this.each(function(){var t,r,i,A;if(o)for(r=0,i=C(this),A=vt(e);t=A[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&\"boolean\"!==n||((t=mt(this))&&X.set(this,\"__className__\",t),this.setAttribute&&this.setAttribute(\"class\",t||!1===e?\"\":X.get(this,\"__className__\")||\"\"))})},hasClass:function(e){var t,n,o=0;for(t=\" \"+e+\" \";n=this[o++];)if(1===n.nodeType&&(\" \"+gt(mt(n))+\" \").indexOf(t)>-1)return!0;return!1}});var wt=/\\r/g;C.fn.extend({val:function(e){var t,n,o,r=this[0];return arguments.length?(o=h(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=o?e.call(this,n,C(this).val()):e)?r=\"\":\"number\"==typeof r?r+=\"\":Array.isArray(r)&&(r=C.map(r,function(e){return null==e?\"\":e+\"\"})),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&\"set\"in t&&void 0!==t.set(this,r,\"value\")||(this.value=r))})):r?(t=C.valHooks[r.type]||C.valHooks[r.nodeName.toLowerCase()])&&\"get\"in t&&void 0!==(n=t.get(r,\"value\"))?n:\"string\"==typeof(n=r.value)?n.replace(wt,\"\"):null==n?\"\":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,\"value\");return null!=t?t:gt(C.text(e))}},select:{get:function(e){var t,n,o,r=e.options,i=e.selectedIndex,A=\"select-one\"===e.type,l=A?null:[],a=A?i+1:r.length;for(o=i<0?a:A?i:0;o-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),C.each([\"radio\",\"checkbox\"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},f.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute(\"value\")?\"on\":e.value})}),f.focusin=\"onfocusin\"in e;var Ct=/^(?:focusinfocus|focusoutblur)$/,yt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(t,n,r,i){var A,l,a,s,c,d,p,f,m=[r||o],v=u.call(t,\"type\")?t.type:t,w=u.call(t,\"namespace\")?t.namespace.split(\".\"):[];if(l=f=a=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!Ct.test(v+C.event.triggered)&&(v.indexOf(\".\")>-1&&(w=v.split(\".\"),v=w.shift(),w.sort()),c=v.indexOf(\":\")<0&&\"on\"+v,(t=t[C.expando]?t:new C.Event(v,\"object\"==typeof t&&t)).isTrigger=i?2:3,t.namespace=w.join(\".\"),t.rnamespace=t.namespace?new RegExp(\"(^|\\\\.)\"+w.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:C.makeArray(n,[t]),p=C.event.special[v]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!g(r)){for(s=p.delegateType||v,Ct.test(s+v)||(l=l.parentNode);l;l=l.parentNode)m.push(l),a=l;a===(r.ownerDocument||o)&&m.push(a.defaultView||a.parentWindow||e)}for(A=0;(l=m[A++])&&!t.isPropagationStopped();)f=l,t.type=A>1?s:p.bindType||v,(d=(X.get(l,\"events\")||{})[t.type]&&X.get(l,\"handle\"))&&d.apply(l,n),(d=c&&l[c])&&d.apply&&K(l)&&(t.result=d.apply(l,n),!1===t.result&&t.preventDefault());return t.type=v,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(m.pop(),n)||!K(r)||c&&h(r[v])&&!g(r)&&((a=r[c])&&(r[c]=null),C.event.triggered=v,t.isPropagationStopped()&&f.addEventListener(v,yt),r[v](),t.isPropagationStopped()&&f.removeEventListener(v,yt),C.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(e,t,n){var o=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(o,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),f.focusin||C.each({focus:\"focusin\",blur:\"focusout\"},function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var o=this.ownerDocument||this,r=X.access(o,t);r||o.addEventListener(e,n,!0),X.access(o,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this,r=X.access(o,t)-1;r?X.access(o,t,r):(o.removeEventListener(e,n,!0),X.remove(o,t))}}});var bt=e.location,xt=Date.now(),kt=/\\?/;C.parseXML=function(t){var n;if(!t||\"string\"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,\"text/xml\")}catch(e){n=void 0}return n&&!n.getElementsByTagName(\"parsererror\").length||C.error(\"Invalid XML: \"+t),n};var Rt=/\\[\\]$/,St=/\\r?\\n/g,Et=/^(?:submit|button|image|reset|file)$/i,_t=/^(?:input|select|textarea|keygen)/i;function Tt(e,t,n,o){var r;if(Array.isArray(t))C.each(t,function(t,r){n||Rt.test(e)?o(e,r):Tt(e+\"[\"+(\"object\"==typeof r&&null!=r?t:\"\")+\"]\",r,n,o)});else if(n||\"object\"!==w(t))o(e,t);else for(r in t)Tt(e+\"[\"+r+\"]\",t[r],n,o)}C.param=function(e,t){var n,o=[],r=function(e,t){var n=h(t)?t():t;o[o.length]=encodeURIComponent(e)+\"=\"+encodeURIComponent(null==n?\"\":n)};if(null==e)return\"\";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){r(this.name,this.value)});else for(n in e)Tt(n,e[n],t,r);return o.join(\"&\")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,\"elements\");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(\":disabled\")&&_t.test(this.nodeName)&&!Et.test(e)&&(this.checked||!de.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(St,\"\\r\\n\")}}):{name:t.name,value:n.replace(St,\"\\r\\n\")}}).get()}});var Dt=/%20/g,Pt=/#.*$/,It=/([?&])_=[^&]*/,Nt=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,$t=/^(?:GET|HEAD)$/,Ht=/^\\/\\//,Mt={},Lt={},Ft=\"*/\".concat(\"*\"),Vt=o.createElement(\"a\");function Wt(e){return function(t,n){\"string\"!=typeof t&&(n=t,t=\"*\");var o,r=0,i=t.toLowerCase().match(H)||[];if(h(n))for(;o=i[r++];)\"+\"===o[0]?(o=o.slice(1)||\"*\",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function Bt(e,t,n,o){var r={},i=e===Lt;function A(l){var a;return r[l]=!0,C.each(e[l]||[],function(e,l){var s=l(t,n,o);return\"string\"!=typeof s||i||r[s]?i?!(a=s):void 0:(t.dataTypes.unshift(s),A(s),!1)}),a}return A(t.dataTypes[0])||!r[\"*\"]&&A(\"*\")}function jt(e,t){var n,o,r=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&C.extend(!0,e,o),e}Vt.href=bt.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:\"GET\",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":Ft,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/\\bxml\\b/,html:/\\bhtml/,json:/\\bjson\\b/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":JSON.parse,\"text xml\":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?jt(jt(e,C.ajaxSettings),t):jt(C.ajaxSettings,e)},ajaxPrefilter:Wt(Mt),ajaxTransport:Wt(Lt),ajax:function(t,n){\"object\"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,A,l,a,s,c,u,d,p,f=C.ajaxSetup({},n),h=f.context||f,g=f.context&&(h.nodeType||h.jquery)?C(h):C.event,m=C.Deferred(),v=C.Callbacks(\"once memory\"),w=f.statusCode||{},y={},b={},x=\"canceled\",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!l)for(l={};t=Nt.exec(A);)l[t[1].toLowerCase()+\" \"]=(l[t[1].toLowerCase()+\" \"]||[]).concat(t[2]);t=l[e.toLowerCase()+\" \"]}return null==t?null:t.join(\", \")},getAllResponseHeaders:function(){return c?A:null},setRequestHeader:function(e,t){return null==c&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),R(0,t),this}};if(m.promise(k),f.url=((t||f.url||bt.href)+\"\").replace(Ht,bt.protocol+\"//\"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||\"*\").toLowerCase().match(H)||[\"\"],null==f.crossDomain){s=o.createElement(\"a\");try{s.href=f.url,s.href=s.href,f.crossDomain=Vt.protocol+\"//\"+Vt.host!=s.protocol+\"//\"+s.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&\"string\"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Bt(Mt,f,n,k),c)return k;for(d in(u=C.event&&f.global)&&0==C.active++&&C.event.trigger(\"ajaxStart\"),f.type=f.type.toUpperCase(),f.hasContent=!$t.test(f.type),i=f.url.replace(Pt,\"\"),f.hasContent?f.data&&f.processData&&0===(f.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&(f.data=f.data.replace(Dt,\"+\")):(p=f.url.slice(i.length),f.data&&(f.processData||\"string\"==typeof f.data)&&(i+=(kt.test(i)?\"&\":\"?\")+f.data,delete f.data),!1===f.cache&&(i=i.replace(It,\"$1\"),p=(kt.test(i)?\"&\":\"?\")+\"_=\"+xt+++p),f.url=i+p),f.ifModified&&(C.lastModified[i]&&k.setRequestHeader(\"If-Modified-Since\",C.lastModified[i]),C.etag[i]&&k.setRequestHeader(\"If-None-Match\",C.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&k.setRequestHeader(\"Content-Type\",f.contentType),k.setRequestHeader(\"Accept\",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(\"*\"!==f.dataTypes[0]?\", \"+Ft+\"; q=0.01\":\"\"):f.accepts[\"*\"]),f.headers)k.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(h,k,f)||c))return k.abort();if(x=\"abort\",v.add(f.complete),k.done(f.success),k.fail(f.error),r=Bt(Lt,f,n,k)){if(k.readyState=1,u&&g.trigger(\"ajaxSend\",[k,f]),c)return k;f.async&&f.timeout>0&&(a=e.setTimeout(function(){k.abort(\"timeout\")},f.timeout));try{c=!1,r.send(y,R)}catch(e){if(c)throw e;R(-1,e)}}else R(-1,\"No Transport\");function R(t,n,o,l){var s,d,p,y,b,x=n;c||(c=!0,a&&e.clearTimeout(a),r=void 0,A=l||\"\",k.readyState=t>0?4:0,s=t>=200&&t<300||304===t,o&&(y=function(e,t,n){for(var o,r,i,A,l=e.contents,a=e.dataTypes;\"*\"===a[0];)a.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader(\"Content-Type\"));if(o)for(r in l)if(l[r]&&l[r].test(o)){a.unshift(r);break}if(a[0]in n)i=a[0];else{for(r in n){if(!a[0]||e.converters[r+\" \"+a[0]]){i=r;break}A||(A=r)}i=i||A}if(i)return i!==a[0]&&a.unshift(i),n[i]}(f,k,o)),y=function(e,t,n,o){var r,i,A,l,a,s={},c=e.dataTypes.slice();if(c[1])for(A in e.converters)s[A.toLowerCase()]=e.converters[A];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!a&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=i,i=c.shift())if(\"*\"===i)i=a;else if(\"*\"!==a&&a!==i){if(!(A=s[a+\" \"+i]||s[\"* \"+i]))for(r in s)if((l=r.split(\" \"))[1]===i&&(A=s[a+\" \"+l[0]]||s[\"* \"+l[0]])){!0===A?A=s[r]:!0!==s[r]&&(i=l[0],c.unshift(l[1]));break}if(!0!==A)if(A&&e.throws)t=A(t);else try{t=A(t)}catch(e){return{state:\"parsererror\",error:A?e:\"No conversion from \"+a+\" to \"+i}}}return{state:\"success\",data:t}}(f,y,k,s),s?(f.ifModified&&((b=k.getResponseHeader(\"Last-Modified\"))&&(C.lastModified[i]=b),(b=k.getResponseHeader(\"etag\"))&&(C.etag[i]=b)),204===t||\"HEAD\"===f.type?x=\"nocontent\":304===t?x=\"notmodified\":(x=y.state,d=y.data,s=!(p=y.error))):(p=x,!t&&x||(x=\"error\",t<0&&(t=0))),k.status=t,k.statusText=(n||x)+\"\",s?m.resolveWith(h,[d,x,k]):m.rejectWith(h,[k,x,p]),k.statusCode(w),w=void 0,u&&g.trigger(s?\"ajaxSuccess\":\"ajaxError\",[k,f,s?d:p]),v.fireWith(h,[k,x]),u&&(g.trigger(\"ajaxComplete\",[k,f]),--C.active||C.event.trigger(\"ajaxStop\")))}return k},getJSON:function(e,t,n){return C.get(e,t,n,\"json\")},getScript:function(e,t){return C.get(e,void 0,t,\"script\")}}),C.each([\"get\",\"post\"],function(e,t){C[t]=function(e,n,o,r){return h(n)&&(r=r||o,o=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:r,data:n,success:o},C.isPlainObject(e)&&e))}}),C._evalUrl=function(e,t){return C.ajax({url:e,type:\"GET\",dataType:\"script\",cache:!0,async:!1,global:!1,converters:{\"text script\":function(){}},dataFilter:function(e){C.globalEval(e,t)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return h(e)?this.each(function(t){C(this).wrapInner(e.call(this,t))}):this.each(function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h(e);return this.each(function(n){C(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not(\"body\").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ot={0:200,1223:204},zt=C.ajaxSettings.xhr();f.cors=!!zt&&\"withCredentials\"in zt,f.ajax=zt=!!zt,C.ajaxTransport(function(t){var n,o;if(f.cors||zt&&!t.crossDomain)return{send:function(r,i){var A,l=t.xhr();if(l.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(A in t.xhrFields)l[A]=t.xhrFields[A];for(A in t.mimeType&&l.overrideMimeType&&l.overrideMimeType(t.mimeType),t.crossDomain||r[\"X-Requested-With\"]||(r[\"X-Requested-With\"]=\"XMLHttpRequest\"),r)l.setRequestHeader(A,r[A]);n=function(e){return function(){n&&(n=o=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,\"abort\"===e?l.abort():\"error\"===e?\"number\"!=typeof l.status?i(0,\"error\"):i(l.status,l.statusText):i(Ot[l.status]||l.status,l.statusText,\"text\"!==(l.responseType||\"text\")||\"string\"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=n(),o=l.onerror=l.ontimeout=n(\"error\"),void 0!==l.onabort?l.onabort=o:l.onreadystatechange=function(){4===l.readyState&&e.setTimeout(function(){n&&o()})},n=n(\"abort\");try{l.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/\\b(?:java|ecma)script\\b/},converters:{\"text script\":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter(\"script\",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type=\"GET\")}),C.ajaxTransport(\"script\",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=C(\"" ], "text/plain": [ ":Curve [x] (y)" ] }, "execution_count": 9, "metadata": { "application/vnd.holoviews_exec.v0+json": { "id": "1003" } }, "output_type": "execute_result" } ], "source": [ "# Generate data to plot\n", "x = np.linspace(0, 2 * np.pi, 200)\n", "y = np.exp(np.sin(np.sin(x)))\n", "\n", "# Make plot\n", "hv.Curve(\n", " (x, y),\n", " kdims='x',\n", " vdims='y'\n", ").opts(\n", " height=250,\n", " padding=0.02,\n", " show_grid=True,\n", " xlim=(0, 2*np.pi)\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We have a nice, interactive plot of a graceful curve!\n", "\n", "We will talk a lot more about display of graphics in our lessons on plotting and exploratory data analysis." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Proper formatting of cells\n", "\n", "Generally, it is a good idea to keep cells simple. You can define one function, or maybe two or three closely related functions, in a single cell, and that's about it. When you define a function, you should make sure it is properly commented with descriptive doc strings. Below is an example of how I might generate a plot of the Lorenz attractor (which I choose just because it is fun) with code cells and markdown cells with discussion of what I am doing. (The doc string in this function is nice, but longer than that is necessary for submitted homework in class. At least something akin to the first line of the doc string must appear in function definitions in your submitted notebooks.)\n", "\n", "Between cells, you should explain with text what you are doing. Let's look at an example for plotting a Lorenz attractor.\n", "\n", "We will use `scipy.integrate.odeint()` to numerically integrate the Lorenz attractor. We therefore first define a function that returns the right hand side of the system of ODEs that define the Lorentz attractor." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "def lorenz_attractor(r, t, p):\n", " \"\"\"\n", " Compute the right hand side of system of ODEs for Lorenz attractor.\n", " \n", " Parameters\n", " ----------\n", " r : array_like, shape (3,)\n", " (x, y, z) position of trajectory.\n", " t : dummy_argument\n", " Dummy argument, necessary to pass function into \n", " scipy.integrate.odeint\n", " p : array_like, shape (3,)\n", " Parameters (s, k, b) for the attractor.\n", " \n", " Returns\n", " -------\n", " output : ndarray, shape (3,)\n", " Time derivatives of Lorenz attractor.\n", " \n", " Notes\n", " -----\n", " .. Returns the right hand side of the system of ODEs describing\n", " the Lorenz attractor.\n", " x' = s * (y - x)\n", " y' = x * (k - z) - y\n", " z' = x * y - b * z\n", " \"\"\"\n", " # Unpack variables and parameters\n", " x, y, z = r\n", " s, p, b = p\n", " \n", " return np.array([s * (y - x), \n", " x * (p - z) - y, \n", " x * y - b * z])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "With this function in hand, we just have to pick our initial conditions and time points and run the numerical integration." ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "# Parameters to use\n", "p = np.array([10.0, 28.0, 8.0 / 3.0])\n", "\n", "# Initial condition\n", "r0 = np.array([0.1, 0.0, 0.0])\n", "\n", "# Time points to sample\n", "t = np.linspace(0.0, 30.0, 4000)\n", "\n", "# Use scipy.integrate.odeint to integrate Lorentz attractor\n", "r = scipy.integrate.odeint(lorenz_attractor, r0, t, args=(p,))\n", "\n", "# Unpack results into x, y, z.\n", "x, y, z = r.transpose()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now, we'll construct a plot of the trajectory using HoloViews. We will cover the mechanics of how this is done in the first weeks of the course." ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "application/vnd.holoviews_exec.v0+json": "", "text/html": [ "
\n", "
\n", "
\n", " \n", "
\n", "\n", "\n", "\n", "\n", "\n", "
\n", "
\n", " \n", "
\n", "
\n", "
\n", "
\n", " \n", " \n", "
\n", " \n", " \n", "
\n", " \n", " \n", "
\n", "
\n", "
\n", "" ], "text/plain": [ ":HoloMap [projection]\n", " :Path [y,z]" ] }, "execution_count": 12, "metadata": { "application/vnd.holoviews_exec.v0+json": { "id": "1113" } }, "output_type": "execute_result" } ], "source": [ "paths = {\n", " f\"({x_col}, {y_col})\": hv.Path(\n", " data={\"x\": x, \"y\": y, \"z\": z}, kdims=[x_col, y_col]\n", " )\n", " for x_col, y_col in itertools.combinations((\"x\", \"y\", \"z\"), 2)\n", "}\n", "\n", "lims = (\n", " np.min([x.min(), y.min(), z.min()]),\n", " np.max([x.max(), y.max(), z.max()]),\n", ")\n", "\n", "hv.HoloMap(paths, kdims=\"projection\").opts(\n", " hv.opts.Path(xlim=lims, ylim=lims, zlim=lims, title=\"\")\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "And we have three nice plots with projections onto the x-y, x-z, and y-z planes." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Best practices for code cells\n", "\n", "Here is a summary of some general rules for composing and formatting your code cells.\n", "\n", "1. Keep the width of code in cells below 80 characters.\n", "2. Keep your code cells short. If you find yourself having one massive code cell, break it up.\n", "3. Always properly comment your code. Provide complete doc strings for any functions you define.\n", "4. Do all of your imports in the first code cell at the top of the notebook. With the exception of \"`from ... import ...`\" imports, import one module per line.\n", "5. For submitting assignments, **always** display your graphics in the notebook." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Markdown cells\n", "\n", "Markdown cells contain text. The text is written in **markdown**, a lightweight markup language. The list of syntactical constructions at [this link](http://daringfireball.net/projects/markdown/syntax) are pretty much all you need to know for standard markdown. Note that you can also insert HTML into markdown cells, and this will be rendered properly. As you are typing the contents of these cells, the results appear as text. Hitting \"`shift + enter`\" renders the text in the formatting you specify.\n", "\n", "You can specify a cell as being a markdown cell in the Jupyter tool bar, or by hitting \"`esc, m`\" in the cell. Again, you have to hit enter after using the quick keys to bring the cell into edit mode.\n", "\n", "In addition to HTML, some $\\LaTeX$ expressions may be inserted into markdown cells. $\\LaTeX$ (pronounced \"lay-tech\") is a document markup language that uses the $\\TeX$ typesetting software. It is particularly well-suited for beautiful typesetting of mathematical expressions. In Jupyter notebooks, the $\\LaTeX$ mathematical input is rendered using software called MathJax. This is usually run off of a remote server, so if you are not connected to the internet, your equations may not be rendered. You will use $\\LaTeX$ extensively in preparation of your assignments. There are plenty of resources on the internet for getting started with $\\LaTeX$, but you will only need a tiny subset of its functionality in your assignments, and [Lesson 0c](l00c_intro_to_latex.ipynb), plus cheat sheets you may find by Google (such as [this one](http://users.dickinson.edu/~richesod/latex/latexcheatsheet.pdf)) are useful." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Quick keys\n", "\n", "There are some keyboard shortcuts that are convenient to use in JupyterLab. We already encountered `Shift + Enter` to run a code cell. Importantly, pressing `Esc` brings you into command mode in which you are not editing the contents of a single cell, but are doing things like adding cells. Below are some useful quick keys. If two keys are separated by a `+` sign, they are pressed simultaneously, and if they are separated by a `-` sign, they are pressed in succession.\n", "\n", "|Quick keys | mode | action |\n", "|:---:|:---:|:---:|\n", "|`Esc - m` | command | switch cell to Markdown cell|\n", "|`Esc - y` | command | switch cell to code cell|\n", "|`Esc - a` | command | insert cell above|\n", "|`Esc - b` | command | insert cell below|\n", "|`Esc - d - d` | command | delete cell|\n", "|`Alt + Enter` | edit | execute cell and insert a cell below |\n", "\n", "There are many others (and they are shown in the pulldown menus within JupyterLab), but these are the ones I seem to encounter most often." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Computing environment\n", "\n", "At the end of every lesson, and indeed at the end (or beginning) of any notebook you make, you should include information about the computing environment including the version numbers of all packages you use. This helps reproducibility. The [watermark package](https://github.com/rasbt/watermark) is quite useful for this. The watermark package is an **IPython magic extension**. These extensions allow convenient functionality within IPython or Jupyter notebooks. In general, to use magic functions, you precede them with a **`%`** sign (or a double **`%%`**) in a cell. We use the built-in `%load_ext` magic function to load watermark, and then we use `%watermark` to invoke it.\n", "\n", "We use the `-v` flag to ask watermark to give us the Python and IPython verison numbers and the `-p` flag to give us version numbers on specified packages we've used. We can also use a `-m` flag to give information about the machine running the notebook, and you should do that, but I will not do that for this course to avoid clutter." ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPython 3.7.4\n", "IPython 7.1.1\n", "\n", "numpy 1.16.5\n", "scipy 1.3.1\n", "bokeh 1.3.4\n", "holoviews 1.12.3\n", "jupyterlab 1.1.3\n" ] } ], "source": [ "%load_ext watermark\n", "%watermark -v -p numpy,scipy,bokeh,holoviews,jupyterlab" ] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.4" } }, "nbformat": 4, "nbformat_minor": 4 }